public function addObject($object)
    {
        $item = $this
            ->transformer
            ->toItem($object);

        if ($item instanceof Item) {
            $this->addItem($item);
        }
    }
public function addObject($object)
    {
        $item = $this
            ->transformer
            ->toItem($object);

        if ($item instanceof Item) {
            $this->addItem($item);
        }
    }
public function addObject ( $ object ) { $ item = $ this -> transformer -> toItem ( $ object ) ; if ( $ item instanceof Item ) { $ this -> addItem ( $ item ) ; } }
Generate item document by a simple object.

@param mixed $object
Generate item document by a simple object .