1 | <?php |
||
9 | final class ProxyFactory |
||
10 | { |
||
11 | /** @var array<string,ReflectionProperty[]> */ |
||
12 | private static $properties = []; |
||
13 | |||
14 | /** @var array<string,ReflectionClass> */ |
||
15 | private static $reflections = []; |
||
16 | |||
17 | /** |
||
18 | * Create a proxy for a new object |
||
19 | */ |
||
20 | 3 | public static function create(string $className): Proxy |
|
26 | |||
27 | /** |
||
28 | * Create a proxy for an existing object |
||
29 | */ |
||
30 | 4 | public static function modify(object $instance): Proxy |
|
36 | |||
37 | /** @var ReflectionProperty[] */ |
||
38 | 4 | private static function properties(string $className): array |
|
54 | |||
55 | 3 | private static function reflect(string $className): ReflectionClass |
|
63 | |||
64 | /** |
||
65 | * @codeCoverageIgnore |
||
66 | */ |
||
67 | private function __construct() |
||
70 | } |
||
71 |