private function _createItem(array $response)
    {
        $model = new Item();
        $model->setName($response[Item::FIELD_NAME])
            ->setDescription($response[Item::FIELD_DESCRIPTION])
            ->setItemNumber($response[Item::FIELD_ITEM_NUMBER])
            ->setUrl($response[Item::FIELD_URL])
            ->setAmount($response[Item::FIELD_AMOUNT])
            ->setQuantity($response[Item::FIELD_QUANTITY]);
        
        return $model;
    }
private function _createItem(array $response)
    {
        $model = new Item();
        $model->setName($response[Item::FIELD_NAME])
            ->setDescription($response[Item::FIELD_DESCRIPTION])
            ->setItemNumber($response[Item::FIELD_ITEM_NUMBER])
            ->setUrl($response[Item::FIELD_URL])
            ->setAmount($response[Item::FIELD_AMOUNT])
            ->setQuantity($response[Item::FIELD_QUANTITY]);
        
        return $model;
    }
private function _createItem ( array $ response ) { $ model = new Item ( ) ; $ model -> setName ( $ response [ Item :: FIELD_NAME ] ) -> setDescription ( $ response [ Item :: FIELD_DESCRIPTION ] ) -> setItemNumber ( $ response [ Item :: FIELD_ITEM_NUMBER ] ) -> setUrl ( $ response [ Item :: FIELD_URL ] ) -> setAmount ( $ response [ Item :: FIELD_AMOUNT ] ) -> setQuantity ( $ response [ Item :: FIELD_QUANTITY ] ) ; return $ model ; }
Creates and fills an item model.

@param array $response
@return Item
Creates and fills an item model .