1 | <?php declare(strict_types=1); |
||
25 | class Wrapper implements WrapperInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var WrapperInterface |
||
29 | */ |
||
30 | private $primitive_wrapper; |
||
31 | /** |
||
32 | * @var WrapperInterface |
||
33 | */ |
||
34 | private $function_wrapper; |
||
35 | /** |
||
36 | * @var WrapperInterface |
||
37 | */ |
||
38 | private $object_wrapper; |
||
39 | /** |
||
40 | * @var WrapperInterface |
||
41 | */ |
||
42 | private $array_wrapper; |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function wrap(Isolate $isolate, Context $context, $value) |
||
72 | |||
73 | /** |
||
74 | * @param WrapperInterface $primitive_wrapper |
||
75 | */ |
||
76 | public function setPrimitiveWrapper(WrapperInterface $primitive_wrapper) |
||
80 | |||
81 | /** |
||
82 | * @param WrapperInterface $function_wrapper |
||
83 | */ |
||
84 | public function setFunctionWrapper(WrapperInterface $function_wrapper) |
||
88 | |||
89 | /** |
||
90 | * @param WrapperInterface $object_wrapper |
||
91 | */ |
||
92 | public function setObjectWrapper(WrapperInterface $object_wrapper) |
||
96 | |||
97 | /** |
||
98 | * @param WrapperInterface $array_wrapper |
||
99 | */ |
||
100 | public function setArrayWrapper(WrapperInterface $array_wrapper) |
||
104 | } |
||
105 |