PHP Class GraphQL\Type\Definition\Directive

Show file 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 property

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

$description public property

public string|null $description
return string | null

$directiveLocations public static property

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

$internalDirectives public static property

public static array $internalDirectives
return array

$locations public property

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

$name public property

public string $name
return string