original_string: protected function respondWithItem(
          $item,
          $resource_name = '',
          array $links = [],
          array $included = []
      ) {
          $resource = new Item($item, $resource_name, $links, $included);
          return $this->respondWithArray($resource->toArray());
      }
code: protected function respondWithItem(
          $item,
          $resource_name = '',
          array $links = [],
          array $included = []
      ) {
          $resource = new Item($item, $resource_name, $links, $included);
          return $this->respondWithArray($resource->toArray());
      }
code_tokens: protected function respondWithItem ( $ item , $ resource_name = '' , array $ links = [ ] , array $ included = [ ] ) { $ resource = new Item ( $ item , $ resource_name , $ links , $ included ) ; return $ this -> respondWithArray ( $ resource -> toArray ( ) ) ; }
docstring: Response with item
  
  @param Object $item
  @param $resource_name
  @param array $links
  @param array $included
  @return Json Object
docstring_tokens: Response with item