original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Creates and fills an item model.
  
  @param array $response
  @return Item
docstring_tokens: Creates and fills an item model .