| 1 | <?php |
||
| 17 | final class BooleanType extends StringType |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * The Boolean scalar public name constant. |
||
| 21 | * This name will be used in the future as the |
||
| 22 | * type name available for use in our schema. |
||
| 23 | */ |
||
| 24 | protected const SCALAR_TYPE_NAME = 'Boolean'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Short Boolean scalar public description. |
||
| 28 | */ |
||
| 29 | protected const TYPE_DESCRIPTION = 'The `Boolean` scalar type represents `true` or `false`.'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param mixed|bool $value |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | 168 | public function isCompatible($value): bool |
|
| 39 | } |
||
| 40 |