| Total Complexity | 1 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | #[\Attribute(\Attribute::TARGET_PARAMETER)] |
||
| 16 | final class Proxy implements Plugin |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @param bool $attach Attach the container to the proxy object. |
||
| 20 | * If TRUE, the same container that created the proxy object will be used when accessing the proxy object. |
||
| 21 | * If FALSE, the container of the current executing context (scope) will be used. |
||
| 22 | * @internal |
||
| 23 | */ |
||
| 24 | public bool $attachContainer = false; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param bool $proxyOverloads Include `__call` and `__callStatic` methods in proxy to redirect method calls that |
||
| 28 | * are not defined in the interface. |
||
| 29 | * @internal |
||
| 30 | */ |
||
| 31 | public bool $proxyOverloads = false; |
||
| 32 | |||
| 33 | 14 | public function __construct( |
|
| 37 |