| 1 | <?php |
||
| 10 | abstract class AbstractValue implements ValueInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var mixed |
||
| 14 | */ |
||
| 15 | private $value; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * AbstractValue constructor. |
||
| 19 | * |
||
| 20 | * @param mixed $value |
||
| 21 | */ |
||
| 22 | 47 | public function __construct($value) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | 26 | public function get() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $string |
||
| 37 | * The string to hash. |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | * The string's hash. |
||
| 41 | */ |
||
| 42 | 9 | protected function doHash(string $string) : string |
|
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function __invoke() |
||
| 54 | } |
||
| 55 |