@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function __construct(TypeInterface $of) |
| 22 | 22 | { |
| 23 | - parent::__construct(static::LIST, $of); |
|
| 23 | + parent::__construct(static::list, $of); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | { |
| 66 | 66 | \assert(Name::isValid($name), 'Interface is not generic type'); |
| 67 | 67 | |
| 68 | - $interface = static::new(static::INTERFACE); |
|
| 68 | + $interface = static::new(static::interface); |
|
| 69 | 69 | |
| 70 | 70 | return $name ? static::new($name, $interface) : $interface; |
| 71 | 71 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | return [ |
| 23 | 23 | static::ROOT_TYPE => $any = self::createInternalType(static::ROOT_TYPE), |
| 24 | - static::INTERFACE => $interface = self::createInternalType(static::INTERFACE), |
|
| 24 | + static::interface => $interface = self::createInternalType(static::interface), |
|
| 25 | 25 | static::OBJECT => $object = self::createInternalType(static::OBJECT, $interface), |
| 26 | 26 | static::INPUT_OBJECT => $input = self::createInternalType(static::INPUT_OBJECT, $object), |
| 27 | 27 | static::UNION => $union = self::createInternalType(static::UNION, $object), |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * @var string |
| 34 | 34 | */ |
| 35 | - public const INTERFACE = 'Interface'; |
|
| 35 | + public const interface = 'Interface'; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @var string |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | /** |
| 88 | 88 | * @var string |
| 89 | 89 | */ |
| 90 | - public const LIST = 'List'; |
|
| 90 | + public const list = 'List'; |
|
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * @var string |
@@ -132,12 +132,12 @@ discard block |
||
| 132 | 132 | /** |
| 133 | 133 | * @var string |
| 134 | 134 | */ |
| 135 | - public const NULL = 'Null'; |
|
| 135 | + public const null = 'Null'; |
|
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | 138 | * @var string |
| 139 | 139 | */ |
| 140 | - public const CONST = 'Const'; |
|
| 140 | + public const const = 'Const'; |
|
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | 143 | * @var string |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | self::SCALAR, |
| 152 | 152 | self::OBJECT, |
| 153 | 153 | self::DIRECTIVE, |
| 154 | - self::INTERFACE, |
|
| 154 | + self::interface, |
|
| 155 | 155 | self::UNION, |
| 156 | 156 | self::ENUM, |
| 157 | 157 | self::INPUT_OBJECT, |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | public const WRAPPING_TYPES = [ |
| 177 | 177 | self::NON_NULL, |
| 178 | - self::LIST, |
|
| 178 | + self::list, |
|
| 179 | 179 | ]; |
| 180 | 180 | |
| 181 | 181 | /** |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | self::INPUT_OBJECT, |
| 189 | 189 | self::INPUT_FIELD, |
| 190 | 190 | self::NON_NULL, |
| 191 | - self::LIST, |
|
| 191 | + self::list, |
|
| 192 | 192 | self::ANY, |
| 193 | 193 | ]; |
| 194 | 194 | |
@@ -198,11 +198,11 @@ discard block |
||
| 198 | 198 | public const ALLOWS_TO_OUTPUT = [ |
| 199 | 199 | self::SCALAR, |
| 200 | 200 | self::OBJECT, |
| 201 | - self::INTERFACE, |
|
| 201 | + self::interface, |
|
| 202 | 202 | self::UNION, |
| 203 | 203 | self::ENUM, |
| 204 | 204 | self::NON_NULL, |
| 205 | - self::LIST, |
|
| 205 | + self::list, |
|
| 206 | 206 | self::ANY, |
| 207 | 207 | ]; |
| 208 | 208 | |
@@ -216,8 +216,8 @@ discard block |
||
| 216 | 216 | self::FLOAT, |
| 217 | 217 | self::ID, |
| 218 | 218 | self::DATE_TIME, |
| 219 | - self::NULL, |
|
| 220 | - self::CONST, |
|
| 219 | + self::null, |
|
| 220 | + self::const, |
|
| 221 | 221 | ]; |
| 222 | 222 | |
| 223 | 223 | /** |
@@ -37,10 +37,10 @@ |
||
| 37 | 37 | self::FLOAT => $float = self::createInternalType(self::FLOAT, $string), |
| 38 | 38 | self::INT => $int = self::createInternalType(self::INT, $float), |
| 39 | 39 | self::BOOLEAN => $bool = self::createInternalType(self::BOOLEAN, $string), |
| 40 | - self::NULL => $null = self::createInternalType(self::NULL, Type::scalar()), |
|
| 40 | + self::null => $null = self::createInternalType(self::null, Type::scalar()), |
|
| 41 | 41 | self::ID => $id = self::createInternalType(self::ID, $string), |
| 42 | 42 | self::DATE_TIME => $date = self::createInternalType(self::DATE_TIME, $string), |
| 43 | - self::CONST => $const = self::createInternalType(self::CONST, $string), |
|
| 43 | + self::const => $const = self::createInternalType(self::const, $string), |
|
| 44 | 44 | self::TYPE => $type = self::createInternalType(self::TYPE, Type::any()), |
| 45 | 45 | ]; |
| 46 | 46 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public static function null(): TypeInterface |
| 71 | 71 | { |
| 72 | - return static::new(static::NULL); |
|
| 72 | + return static::new(static::null); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public static function const(): TypeInterface |
| 79 | 79 | { |
| 80 | - return static::new(static::CONST); |
|
| 80 | + return static::new(static::const); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |