| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0932 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 1 | public function __construct(AppConfig $config, ILogger $logger) { |
|
| 28 | 1 | parent::__construct($config, $logger); |
|
| 29 | 1 | $this->socket = $this->appConfig->getAvSocket(); |
|
| 30 | 1 | if ($this->socket === '') { |
|
| 31 | throw new InitException( |
||
| 32 | 'Socket mode requires a path to the unix socket but it is empty.' |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | 1 | } |
|
| 36 | |||
| 66 |