PHP Class GraphQL\Type\Definition\Directive

Exibir arquivo Open project: webonyx/graphql-php Class Usage Examples

Public Properties

Property Type Description
$args FieldArgument[]
$description string | null
$directiveLocations array
$internalDirectives array
$locations array Values from self::$locationMap
$name string

Public Methods

Method Description
__construct ( array $config ) Directive constructor.
deprecatedDirective ( ) : Directive
getInternalDirectives ( ) : array
includeDirective ( ) : Directive
skipDirective ( ) : Directive

Method Details

__construct() public method

Directive constructor.
public __construct ( array $config )
$config array

deprecatedDirective() public static method

public static deprecatedDirective ( ) : Directive
return Directive

getInternalDirectives() public static method

public static getInternalDirectives ( ) : array
return array

includeDirective() public static method

public static includeDirective ( ) : Directive
return Directive

skipDirective() public static method

public static skipDirective ( ) : Directive
return Directive

Property Details

$args public_oe property

public FieldArgument[],GraphQL\Type\Definition $args
return FieldArgument[]

$description public_oe property

public string|null $description
return string | null

$directiveLocations public_oe static_oe property

Deprecation: as of 8.0 (use DirectiveLocation constants directly)
public static array $directiveLocations
return array

$internalDirectives public_oe static_oe property

public static array $internalDirectives
return array

$locations public_oe property

Values from self::$locationMap
public array $locations
return array

$name public_oe property

public string $name
return string