1 | <?php |
||
8 | abstract class AbstractValue implements ValueInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var mixed |
||
12 | */ |
||
13 | protected $value; |
||
14 | |||
15 | /** |
||
16 | * AbstractValue constructor. |
||
17 | * |
||
18 | * @param mixed $value |
||
19 | */ |
||
20 | 23 | public function __construct($value) |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 1 | public function get() |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function equals(ValueInterface $item, $strict = true) : bool |
||
42 | |||
43 | /** |
||
44 | * @param string $string |
||
45 | * The string to hash. |
||
46 | * |
||
47 | * @return string |
||
48 | * The string's hash. |
||
49 | */ |
||
50 | protected function doHash(string $string) : string |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function __invoke() |
||
62 | } |
||
63 |