1 | <?php |
||
14 | class ClosureObject extends ObjectValue |
||
15 | { |
||
16 | /** |
||
17 | * @var \SuperClosure\Serializer |
||
18 | */ |
||
19 | private $serializer; |
||
20 | |||
21 | /** |
||
22 | * ClosureObject constructor. |
||
23 | * |
||
24 | * @param \Closure $value |
||
25 | */ |
||
26 | 7 | public function __construct(\Closure $value) |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 2 | public function hash(): string |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 2 | public function __invoke() |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 1 | public function serialize() |
|
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | 1 | public function unserialize($serialized) |
|
70 | } |
||
71 |