/** * And item adder * * @param ItemInterface $item * @return $this */ public function addItem(ItemInterface $item) { if ($this->currentProcessor) { $this->currentProcessor->addItem($item); return $this; } $this->items[] = $item; return $this; }