mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +03:00
Merge pull request #504 from simPod/fielddef-types
Add FieldDefinition return type
This commit is contained in:
commit
4401f4dd18
@ -695,7 +695,7 @@ EOD;
|
||||
return self::$map['__DirectiveLocation'];
|
||||
}
|
||||
|
||||
public static function schemaMetaFieldDef()
|
||||
public static function schemaMetaFieldDef() : FieldDefinition
|
||||
{
|
||||
if (! isset(self::$map[self::SCHEMA_FIELD_NAME])) {
|
||||
self::$map[self::SCHEMA_FIELD_NAME] = FieldDefinition::create([
|
||||
@ -717,7 +717,7 @@ EOD;
|
||||
return self::$map[self::SCHEMA_FIELD_NAME];
|
||||
}
|
||||
|
||||
public static function typeMetaFieldDef()
|
||||
public static function typeMetaFieldDef() : FieldDefinition
|
||||
{
|
||||
if (! isset(self::$map[self::TYPE_FIELD_NAME])) {
|
||||
self::$map[self::TYPE_FIELD_NAME] = FieldDefinition::create([
|
||||
@ -736,7 +736,7 @@ EOD;
|
||||
return self::$map[self::TYPE_FIELD_NAME];
|
||||
}
|
||||
|
||||
public static function typeNameMetaFieldDef()
|
||||
public static function typeNameMetaFieldDef() : FieldDefinition
|
||||
{
|
||||
if (! isset(self::$map[self::TYPE_NAME_FIELD_NAME])) {
|
||||
self::$map[self::TYPE_NAME_FIELD_NAME] = FieldDefinition::create([
|
||||
|
Loading…
Reference in New Issue
Block a user