| 1 | <?php |
||
| 19 | abstract class BaseScalar extends BaseTypeDefinition implements ScalarDefinition |
||
| 20 | { |
||
| 21 | use BaseDirectivesContainer; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Object type name |
||
| 25 | */ |
||
| 26 | protected const TYPE_NAME = Type::SCALAR; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 567 | public function getTypeName(): string |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param mixed $value |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | 318 | public function isCompatible($value): bool |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | 1222 | public function __sleep(): array |
|
| 55 | } |
||
| 56 |