isObjectType() public static méthode

public static isObjectType ( $type )
 public function assetTypeHasField(AbstractType $objectType, AstFieldInterface $ast)
 {
     /** @var AbstractObjectType $objectType */
     if (!(TypeService::isObjectType($objectType) || TypeService::isInputObjectType($objectType)) || !$objectType->hasField($ast->getName())) {
         throw new ResolveException(sprintf('Field "%s" not found in type "%s"', $ast->getName(), $objectType->getNamedType()->getName()), $ast->getLocation());
     }
 }
 private function isArrayOfObjectTypes($data)
 {
     if (!is_array($data) || !count($data)) {
         return false;
     }
     foreach ($data as $item) {
         if (!TypeService::isObjectType($item)) {
             return false;
         }
     }
     return true;
 }