| 1 | <?php |
||
| 10 | abstract class ResourceValue extends AbstractValue |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * ResourceValue constructor. |
||
| 14 | * |
||
| 15 | * @param mixed $value |
||
| 16 | */ |
||
| 17 | 5 | public function __construct($value) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | abstract public function hash(): string; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 1 | public function equals(ValueInterface $item, $strict = true) : bool |
|
| 41 | } |
||
| 42 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.