public function addItem(Item $item, int $qty = 1): void
    {
        for ($i = 0; $i < $qty; ++$i) {
            $this->items->insert($item);
        }
        $this->logger->log(LogLevel::INFO, "added {$qty} x {$item->getDescription()}", ['item' => $item]);
    }
public function addItem(Item $item, int $qty = 1): void
    {
        for ($i = 0; $i < $qty; ++$i) {
            $this->items->insert($item);
        }
        $this->logger->log(LogLevel::INFO, "added {$qty} x {$item->getDescription()}", ['item' => $item]);
    }
public function addItem ( Item $ item , int $ qty = 1 ) : void { for ( $ i = 0 ; $ i < $ qty ; ++ $ i ) { $ this -> items -> insert ( $ item ) ; } $ this -> logger -> log ( LogLevel :: INFO , "added {$qty} x {$item->getDescription()}" , [ 'item' => $ item ] ) ; }
Add item to be packed.

@param Item $item
@param int  $qty
Add item to be packed .