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