| 1 | <?php |
||
| 13 | abstract class ResourceValue extends AbstractValue implements ResourceValueInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * ResourceValue constructor. |
||
| 17 | * |
||
| 18 | * @param mixed $value |
||
| 19 | */ |
||
| 20 | 7 | public function __construct($value) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | abstract public function hash(): string; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | 1 | public function equals(ValueInterface $item, $strict = true) : bool |
|
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 1 | public function serialize() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * {@inheritdoc} |
||
| 55 | */ |
||
| 56 | 1 | public function unserialize($serialized) |
|
| 60 | |||
| 61 | /** |
||
| 62 | * {@inheritdoc} |
||
| 63 | */ |
||
| 64 | public function type(): string |
||
| 68 | } |
||
| 69 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.