Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 35.7% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ServiceProxy extends ObjectProxy |
||
10 | { |
||
11 | use ProxyLogTrait; |
||
12 | |||
13 | private string $service; |
||
14 | |||
15 | 2 | public function __construct( |
|
16 | string $service, |
||
17 | object $instance, |
||
18 | ContainerProxyConfig $config |
||
19 | ) { |
||
20 | 2 | $this->service = $service; |
|
21 | 2 | $this->config = $config; |
|
22 | 2 | parent::__construct($instance); |
|
23 | 2 | } |
|
24 | |||
25 | protected function executeMethodProxy(string $methodName, array $arguments, $result, float $timeStart) |
||
26 | { |
||
27 | $this->log($this->service, $this->getInstance(), $methodName, $arguments, $result, $timeStart); |
||
28 | return $result; |
||
29 | } |
||
30 | |||
31 | protected function getNewStaticInstance(object $instance): ObjectProxy |
||
34 | } |
||
35 | |||
36 | protected function getService(): string |
||
39 | } |
||
40 | |||
41 | protected function getConfig(): ContainerProxyConfig |
||
44 | } |
||
45 | } |
||
46 |