original_string: public function getIncluded()
      {
          $data = [];
          $include_params = $this->getIncludeParams();
  
          if (!$include_params) {
              return $include_params;
          }
  
          foreach ($include_params->getData() as $key => $params) {
              $method = 'include' . ucfirst($key);
              $transformer = $this->getTransformer();
              $allowed = $transformer->getAllowedIncludes();
  
              if (in_array($key, $allowed) && method_exists($transformer, $method)) {
                  $result = $transformer->$method($this->getData(), $params);
                  $data[$key] = $result;
              }
          }
  
          return $data;
      }
code: public function getIncluded()
      {
          $data = [];
          $include_params = $this->getIncludeParams();
  
          if (!$include_params) {
              return $include_params;
          }
  
          foreach ($include_params->getData() as $key => $params) {
              $method = 'include' . ucfirst($key);
              $transformer = $this->getTransformer();
              $allowed = $transformer->getAllowedIncludes();
  
              if (in_array($key, $allowed) && method_exists($transformer, $method)) {
                  $result = $transformer->$method($this->getData(), $params);
                  $data[$key] = $result;
              }
          }
  
          return $data;
      }
code_tokens: public function getIncluded ( ) { $ data = [ ] ; $ include_params = $ this -> getIncludeParams ( ) ; if ( ! $ include_params ) { return $ include_params ; } foreach ( $ include_params -> getData ( ) as $ key => $ params ) { $ method = 'include' . ucfirst ( $ key ) ; $ transformer = $ this -> getTransformer ( ) ; $ allowed = $ transformer -> getAllowedIncludes ( ) ; if ( in_array ( $ key , $ allowed ) && method_exists ( $ transformer , $ method ) ) { $ result = $ transformer -> $ method ( $ this -> getData ( ) , $ params ) ; $ data [ $ key ] = $ result ; } } return $ data ; }
docstring: Get the includes to be parsed
  
  @param Item $item
  @return array
docstring_tokens: Get the includes to be parsed