/** * Add items * * @param \Victoire\Widget\ListingBundle\Entity\WidgetListingItem $item * * @return WidgetListing */ public function addItem(\Victoire\Widget\ListingBundle\Entity\WidgetListingItem $item) { $item->setListing($this); $item->setPage($this->getPage()); $item->setSlot($this->getSlot()); $item->setMode($this->getMode()); $this->items[] = $item; return $this; }