Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
24 | 1 | public function factory(): FactoryInterface |
|
25 | { |
||
26 | 1 | if ($this->factory === null) { |
|
27 | 1 | $class = $this->getServiceClass('CommunicationFactory', self::DIRECTORY) |
|
28 | 1 | ?: AbstractCommunicationFactory::class; |
|
29 | 1 | $this->factory = new $class( |
|
30 | 1 | $this->config(), |
|
31 | 1 | $this->container(), |
|
32 | 1 | $this->facade() |
|
33 | ); |
||
34 | } |
||
35 | |||
36 | 1 | return $this->factory; |
|
37 | } |
||
54 | } |