new Deps
This commit is contained in:
@@ -17,6 +17,7 @@ class DirectiveLocation
|
||||
const FRAGMENT_DEFINITION = 'FRAGMENT_DEFINITION';
|
||||
const FRAGMENT_SPREAD = 'FRAGMENT_SPREAD';
|
||||
const INLINE_FRAGMENT = 'INLINE_FRAGMENT';
|
||||
const VARIABLE_DEFINITION = 'VARIABLE_DEFINITION';
|
||||
|
||||
// Type System Definitions
|
||||
const SCHEMA = 'SCHEMA';
|
||||
@@ -53,12 +54,7 @@ class DirectiveLocation
|
||||
self::INPUT_FIELD_DEFINITION => self::INPUT_FIELD_DEFINITION,
|
||||
];
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function has($name)
|
||||
public static function has(string $name) : bool
|
||||
{
|
||||
return isset(self::$locations[$name]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user