public function add($item)
    {
        if ($item instanceof ItemInterface) {
            $this->items[] = $item;
        } else {
            $this->items[] = new MulticardsItem($item);
        }
    }
public function add($item)
    {
        if ($item instanceof ItemInterface) {
            $this->items[] = $item;
        } else {
            $this->items[] = new MulticardsItem($item);
        }
    }
public function add ( $ item ) { if ( $ item instanceof ItemInterface ) { $ this -> items [ ] = $ item ; } else { $ this -> items [ ] = new MulticardsItem ( $ item ) ; } }
Add an item to the bag

@see Item

@param ItemInterface|array $item An existing item, or associative array of item parameters
Add an item to the bag