Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class ServiceProxy extends ObjectProxy |
||
10 | { |
||
11 | use ProxyLogTrait; |
||
12 | |||
13 | private string $service; |
||
14 | |||
15 | public function __construct( |
||
23 | } |
||
24 | |||
25 | protected function afterCall(string $methodName, array $arguments, mixed $result, float $timeStart): mixed |
||
26 | { |
||
27 | $this->logProxy($this->service, $this->getInstance(), $methodName, $arguments, $result, $timeStart); |
||
28 | return $result; |
||
29 | } |
||
30 | |||
31 | protected function getNewStaticInstance(object $instance): ObjectProxy |
||
32 | { |
||
33 | return new static($this->service, $instance, $this->config); |
||
34 | } |
||
35 | |||
36 | protected function getService(): string |
||
39 | } |
||
40 | |||
41 | protected function getConfig(): ContainerProxyConfig |
||
44 | } |
||
45 | } |
||
46 |