1 | <?php |
||
13 | class ClosureObject extends ObjectValue |
||
14 | { |
||
15 | /** |
||
16 | * ClosureObject constructor. |
||
17 | * |
||
18 | * @param \Closure $value |
||
19 | */ |
||
20 | 5 | public function __construct(\Closure $value) |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 2 | public function hash(): string |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 1 | public function __invoke() |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 1 | public function equals(ValueInterface $item, $strict = true): bool |
|
50 | } |
||
51 |