1 | <?php |
||
18 | class HashCoder implements HashCoderInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var HashCoderInterface |
||
22 | */ |
||
23 | private static $default = null; |
||
24 | |||
25 | /** |
||
26 | * @return \Cubiche\Core\Hashable\HashCoderInterface |
||
27 | */ |
||
28 | public static function defaultHashCoder() |
||
36 | |||
37 | /** |
||
38 | * @param HashCoderInterface $hashCoder |
||
39 | * @param HashCoderInterface $default |
||
40 | * |
||
41 | * @return \Cubiche\Core\Hashable\HashCoderInterface |
||
42 | */ |
||
43 | public static function ensure(HashCoderInterface $hashCoder = null, HashCoderInterface $default = null) |
||
48 | |||
49 | /** |
||
50 | * @param mixed $value |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public static function defaultHashCode($value) |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function hashCode($value) |
||
78 | } |
||
79 |