Merge pull request #504 from simPod/fielddef-types

Add FieldDefinition return type
This commit is contained in:
Vladimir Razuvaev 2019-07-12 16:32:45 +07:00 committed by GitHub
commit 4401f4dd18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -695,7 +695,7 @@ EOD;
return self::$map['__DirectiveLocation']; return self::$map['__DirectiveLocation'];
} }
public static function schemaMetaFieldDef() public static function schemaMetaFieldDef() : FieldDefinition
{ {
if (! isset(self::$map[self::SCHEMA_FIELD_NAME])) { if (! isset(self::$map[self::SCHEMA_FIELD_NAME])) {
self::$map[self::SCHEMA_FIELD_NAME] = FieldDefinition::create([ self::$map[self::SCHEMA_FIELD_NAME] = FieldDefinition::create([
@ -717,7 +717,7 @@ EOD;
return self::$map[self::SCHEMA_FIELD_NAME]; return self::$map[self::SCHEMA_FIELD_NAME];
} }
public static function typeMetaFieldDef() public static function typeMetaFieldDef() : FieldDefinition
{ {
if (! isset(self::$map[self::TYPE_FIELD_NAME])) { if (! isset(self::$map[self::TYPE_FIELD_NAME])) {
self::$map[self::TYPE_FIELD_NAME] = FieldDefinition::create([ self::$map[self::TYPE_FIELD_NAME] = FieldDefinition::create([
@ -736,7 +736,7 @@ EOD;
return self::$map[self::TYPE_FIELD_NAME]; 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])) { if (! isset(self::$map[self::TYPE_NAME_FIELD_NAME])) {
self::$map[self::TYPE_NAME_FIELD_NAME] = FieldDefinition::create([ self::$map[self::TYPE_NAME_FIELD_NAME] = FieldDefinition::create([