Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | 4 | public function __construct(Config $config, string $baseId) |
|
34 | { |
||
35 | 4 | Assert::that($baseId) |
|
36 | 4 | ->notBlank('AirTable requires a non-empty $baseId'); |
|
37 | |||
38 | 4 | $this->client = new Client( |
|
39 | [ |
||
40 | 4 | 'base_uri' => $config->getBaseUrl() . '/' . $config->getVersion() . '/' . $baseId . '/', |
|
41 | 4 | 'handler' => $this->getBearerTokenStack($config->getApiKey()) |
|
42 | ] |
||
70 |