mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 07:49:24 +03:00
improve docstrings
This commit is contained in:
parent
af60f1ee4d
commit
6bdb7b7f80
@ -129,6 +129,8 @@ class FindBreakingChanges
|
|||||||
* breaking or dangerous changes in the newSchema related to arguments
|
* breaking or dangerous changes in the newSchema related to arguments
|
||||||
* (such as removal or change of type of an argument, or a change in an
|
* (such as removal or change of type of an argument, or a change in an
|
||||||
* argument's default value).
|
* argument's default value).
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function findArgChanges(
|
public function findArgChanges(
|
||||||
Schema $oldSchema, Schema $newSchema
|
Schema $oldSchema, Schema $newSchema
|
||||||
@ -233,6 +235,8 @@ class FindBreakingChanges
|
|||||||
* changes in the newSchema related to the fields on a type. This includes if
|
* changes in the newSchema related to the fields on a type. This includes if
|
||||||
* a field has been removed from a type, if a field has changed type, or if
|
* a field has been removed from a type, if a field has changed type, or if
|
||||||
* a non-null field is added to an input type.
|
* a non-null field is added to an input type.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function findFieldsThatChangedType(
|
public static function findFieldsThatChangedType(
|
||||||
Schema $oldSchema, Schema $newSchema
|
Schema $oldSchema, Schema $newSchema
|
||||||
@ -383,6 +387,8 @@ class FindBreakingChanges
|
|||||||
/**
|
/**
|
||||||
* Given two schemas, returns an Array containing descriptions of any breaking
|
* Given two schemas, returns an Array containing descriptions of any breaking
|
||||||
* changes in the newSchema related to removing types from a union type.
|
* changes in the newSchema related to removing types from a union type.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function findTypesRemovedFromUnions(
|
public static function findTypesRemovedFromUnions(
|
||||||
Schema $oldSchema, Schema $newSchema
|
Schema $oldSchema, Schema $newSchema
|
||||||
@ -414,6 +420,8 @@ class FindBreakingChanges
|
|||||||
/**
|
/**
|
||||||
* Given two schemas, returns an Array containing descriptions of any dangerous
|
* Given two schemas, returns an Array containing descriptions of any dangerous
|
||||||
* changes in the newSchema related to adding types to a union type.
|
* changes in the newSchema related to adding types to a union type.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function findTypesAddedToUnions(
|
public static function findTypesAddedToUnions(
|
||||||
Schema $oldSchema, Schema $newSchema
|
Schema $oldSchema, Schema $newSchema
|
||||||
@ -447,6 +455,8 @@ class FindBreakingChanges
|
|||||||
/**
|
/**
|
||||||
* Given two schemas, returns an Array containing descriptions of any breaking
|
* Given two schemas, returns an Array containing descriptions of any breaking
|
||||||
* changes in the newSchema related to removing values from an enum type.
|
* changes in the newSchema related to removing values from an enum type.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function findValuesRemovedFromEnums(
|
public static function findValuesRemovedFromEnums(
|
||||||
Schema $oldSchema, Schema $newSchema
|
Schema $oldSchema, Schema $newSchema
|
||||||
@ -511,6 +521,12 @@ class FindBreakingChanges
|
|||||||
return $valuesAddedToEnums;
|
return $valuesAddedToEnums;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Schema $oldSchema
|
||||||
|
* @param Schema $newSchema
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
public static function findInterfacesRemovedFromObjectTypes(
|
public static function findInterfacesRemovedFromObjectTypes(
|
||||||
Schema $oldSchema, Schema $newSchema
|
Schema $oldSchema, Schema $newSchema
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user