| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | final class NestClientFactory |
||
| 21 | { |
||
| 22 | public static function create(string $accessToken): NestClient |
||
| 23 | { |
||
| 24 | return new NestClient( |
||
| 25 | self::createHttpClient($accessToken), |
||
| 26 | new ThermostatFactory(), |
||
| 27 | new SmokeCoAlarmFactory(), |
||
| 28 | new CameraFactory( |
||
| 29 | new EventFactory() |
||
| 30 | ), |
||
| 31 | new StructureFactory() |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 35 | private static function createHttpClient(string $accessToken): ClientInterface |
||
| 47 | ); |
||
| 48 | } |
||
| 50 |