1 | <?php |
||
18 | class ProxyBuilder |
||
19 | { |
||
20 | /** |
||
21 | * @var ProxyContainer |
||
22 | */ |
||
23 | protected $container; |
||
24 | |||
25 | /** |
||
26 | * @var MockingStrategyInterface |
||
27 | */ |
||
28 | protected $mockingStrategy; |
||
29 | |||
30 | /** |
||
31 | * ProxyBuilder constructor. |
||
32 | * @param MockingStrategyInterface $mockingStrategy |
||
33 | */ |
||
34 | 6 | public function __construct(MockingStrategyInterface $mockingStrategy) |
|
39 | |||
40 | /** |
||
41 | * @return void |
||
42 | */ |
||
43 | 7 | public function reset(): void |
|
47 | |||
48 | /** |
||
49 | * @param string $fqcnOrAlias |
||
50 | * @param string|null $alias |
||
51 | * @return ProxyInterface |
||
52 | * |
||
53 | * @throws MockNotCreatedException |
||
54 | * @throws InvalidIdentifierException |
||
55 | * @throws InvalidArgumentException |
||
56 | * @throws \ReflectionException |
||
57 | */ |
||
58 | 8 | public function getProxy(string $fqcnOrAlias, string $alias = null): ProxyInterface |
|
74 | |||
75 | /** |
||
76 | * @param string $fqcn |
||
77 | * @return ProxyInterface |
||
78 | * |
||
79 | * @throws \ReflectionException |
||
80 | * @throws InvalidArgumentException |
||
81 | * @throws MockNotCreatedException |
||
82 | */ |
||
83 | 8 | protected function buildProxy(string $fqcn): ProxyInterface |
|
87 | } |
||
88 |