| 1 | <?php |
||
| 14 | abstract class TypeValue extends AbstractValue implements Stringable |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | */ |
||
| 19 | 4 | public function hash(): string |
|
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | 13 | public function type() |
|
| 28 | { |
||
| 29 | 13 | return \gettype($this->value()); |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | 1 | public function equals(ValueInterface $item, $strict = true) : bool |
|
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | 6 | public function serialize() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | 6 | public function unserialize($serialized) |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 4 | public function __toString(): string |
|
| 69 | } |
||
| 70 |