Total Complexity | 4 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 63.64% |
Changes | 0 |
1 | <?php |
||
11 | abstract class AbstractFacade implements FacadeInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var FactoryInterface |
||
15 | */ |
||
16 | protected $factory; |
||
17 | |||
18 | /** |
||
19 | * @var ConfigInterface |
||
20 | */ |
||
21 | private $config; |
||
22 | |||
23 | /** |
||
24 | * @var ClientInterface |
||
25 | */ |
||
26 | private $client; |
||
27 | |||
28 | /** |
||
29 | * AbstractFacade constructor. |
||
30 | * |
||
31 | * @param \Xervice\Core\Factory\FactoryInterface $factory |
||
32 | * @param \Xervice\Core\Config\ConfigInterface $config |
||
33 | * @param ClientInterface $client |
||
34 | */ |
||
35 | 4 | public function __construct( |
|
43 | 4 | } |
|
44 | |||
45 | /** |
||
46 | * @return ConfigInterface |
||
47 | */ |
||
48 | public function getConfig() : ConfigInterface |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return FactoryInterface |
||
55 | */ |
||
56 | 1 | public function getFactory() : FactoryInterface |
|
57 | { |
||
58 | 1 | return $this->factory; |
|
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return \Xervice\Core\Client\ClientInterface |
||
63 | */ |
||
64 | public function getClient(): ClientInterface |
||
67 | } |
||
68 | } |