| 1 | <?php |
||
| 5 | class Invoker implements InvokerInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var callable[] |
||
| 9 | */ |
||
| 10 | protected $proxies; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param callable[] $proxies |
||
| 14 | */ |
||
| 15 | 10 | public function __construct($proxies = []) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * |
||
| 27 | */ |
||
| 28 | 10 | public function __destruct() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @override |
||
| 35 | * @inheritDoc |
||
| 36 | */ |
||
| 37 | 2 | public function call($func, $args = []) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @override |
||
| 44 | * @inheritDoc |
||
| 45 | */ |
||
| 46 | 5 | public function existsProxy($func) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @override |
||
| 53 | * @inheritDoc |
||
| 54 | */ |
||
| 55 | 6 | public function setProxy($func, $callable) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @override |
||
| 62 | * @inheritDoc |
||
| 63 | */ |
||
| 64 | 1 | public function removeProxy($func) |
|
| 68 | |||
| 69 | /** |
||
| 70 | * @override |
||
| 71 | * @inheritDoc |
||
| 72 | */ |
||
| 73 | 3 | public function getProxy($func) |
|
| 77 | } |
||
| 78 |