Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
19 | 6 | public function __construct(Client $client, $key) |
|
20 | { |
||
21 | 6 | $this->client = $client; |
|
22 | 6 | $this->key = $key; |
|
23 | 6 | $baseUrl = $this->client->getConfig('base_uri'); |
|
24 | 6 | Validator::notEmpty() |
|
25 | 6 | ->url() |
|
26 | 6 | ->endsWith('/') |
|
27 | 6 | ->setName("URL for NewRelic's Insights API must be valid and have a trailing slash") |
|
28 | 6 | ->assert($baseUrl); |
|
29 | 6 | } |
|
30 | |||
48 |