original_string: private function getCustomFields(DataService $annotation): array
      {
          $fields = $this->customFieldManager->getCustomFields();
          $customFields = [];
          if (isset($fields[$annotation->getService()][$annotation->getObjectType()])) {
              $customFields = $fields[$annotation->getService()][$annotation->getObjectType()];
          }
  
          return $customFields;
      }
code: private function getCustomFields(DataService $annotation): array
      {
          $fields = $this->customFieldManager->getCustomFields();
          $customFields = [];
          if (isset($fields[$annotation->getService()][$annotation->getObjectType()])) {
              $customFields = $fields[$annotation->getService()][$annotation->getObjectType()];
          }
  
          return $customFields;
      }
code_tokens: private function getCustomFields ( DataService $ annotation ) : array { $ fields = $ this -> customFieldManager -> getCustomFields ( ) ; $ customFields = [ ] ; if ( isset ( $ fields [ $ annotation -> getService ( ) ] [ $ annotation -> getObjectType ( ) ] ) ) { $ customFields = $ fields [ $ annotation -> getService ( ) ] [ $ annotation -> getObjectType ( ) ] ; } return $ customFields ; }
docstring: Return the array of custom fields for an annotation.
  
  @param DataService $annotation The Data Service annotation being discovered.
  
  @return DiscoveredCustomField[] An array of custom field definitions.
docstring_tokens: Return the array of custom fields for an annotation .