1 | <?php declare(strict_types=1); |
||
28 | class NativeObjectWrapper implements NativeObjectWrapperInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var Isolate |
||
32 | */ |
||
33 | protected $isolate; |
||
34 | /** |
||
35 | * @var Context |
||
36 | */ |
||
37 | protected $context; |
||
38 | /** |
||
39 | * @var ObjectValue|FunctionObject |
||
40 | */ |
||
41 | protected $target; |
||
42 | /** |
||
43 | * @var WrapperInterface |
||
44 | */ |
||
45 | protected $wrapper; |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | 3 | public function __construct(Isolate $isolate, Context $context, ObjectValue $target, WrapperInterface $wrapper) |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 1 | public function set(string $key, $value): void |
|
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | 1 | public function get(string $key): Value |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | 1 | public function has(string $key): bool |
|
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | 1 | public function delete(string $key): bool |
|
101 | |||
102 | 1 | protected function wrapKey(string $key): StringValue |
|
106 | } |
||
107 |