| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 3 | public static function create(Authentication $authentication): WatsonServiceInterface |
|
| 29 | { |
||
| 30 | $httpClient = (new Builder()) |
||
| 31 | ->withHostname(static::API_HOSTNAME) |
||
| 32 | ->withPath(static::API_PATH) |
||
| 33 | ->withAuthentication($authentication) |
||
| 34 | ->createConfiguredClient(); |
||
| 35 | |||
| 36 | 3 | return new self($httpClient); |
|
| 37 | } |
||
| 49 |