| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function __construct(string $name, array $config) |
||
| 45 | { |
||
| 46 | $this->name = $name; |
||
| 47 | 1 | $this->apiKey = $config['api_key'] ?? null; |
|
| 48 | $this->status = $config['status'] ?? null; |
||
| 49 | 1 | $this->indexParameter = $config['index_parameter'] ?? null; |
|
| 50 | $this->domains = empty($config['domains']) ? [$name] : $config['domains']; |
||
| 51 | } |
||
| 91 |