public function add(array $collection)
    {
        foreach ($collection as $data) {
            $breadcrumb = new Breadcrumb();
            $breadcrumb->setName($data['name'])
                       ->setLink(isset($data['link']) ? $data['link'] : '#');

            array_push($this->collection, $breadcrumb);
        }

        return $this;
    }
public function add(array $collection)
    {
        foreach ($collection as $data) {
            $breadcrumb = new Breadcrumb();
            $breadcrumb->setName($data['name'])
                       ->setLink(isset($data['link']) ? $data['link'] : '#');

            array_push($this->collection, $breadcrumb);
        }

        return $this;
    }
public function add ( array $ collection ) { foreach ( $ collection as $ data ) { $ breadcrumb = new Breadcrumb ( ) ; $ breadcrumb -> setName ( $ data [ 'name' ] ) -> setLink ( isset ( $ data [ 'link' ] ) ? $ data [ 'link' ] : '#' ) ; array_push ( $ this -> collection , $ breadcrumb ) ; } return $ this ; }
Adds breadcrumb collection

@param array $collection
@return \Krystal\Form\Navigation\BreadcrumbBag
Adds breadcrumb collection