| 1 | <?php declare(strict_types=1); |
||
| 25 | class NativeFunctionWrapper implements NativeFunctionWrapperInterface |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @var Context |
||
| 29 | */ |
||
| 30 | private $context; |
||
| 31 | /** |
||
| 32 | * @var ObjectValue |
||
| 33 | */ |
||
| 34 | private $recv; |
||
| 35 | /** |
||
| 36 | * @var FunctionObject |
||
| 37 | */ |
||
| 38 | private $function_object; |
||
| 39 | /** |
||
| 40 | * @var WrapperInterface |
||
| 41 | */ |
||
| 42 | private $wrapper; |
||
| 43 | |||
| 44 | public function __construct(Context $context, ObjectValue $recv, FunctionObject $function_object, WrapperInterface $wrapper) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function call(...$args) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * {@inheritdoc} |
||
| 67 | */ |
||
| 68 | public function __invoke(...$args) |
||
| 72 | } |
||
| 73 |