Test Failed
Push — master ( 92951c...6d737b )
by Laurens
04:18
created

SmokeCoAlarmProxy::__load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\NestApi\Client\Structure;
6
7
use DateTimeImmutable;
8
use LauLamanApps\NestApi\Client\Device\SmokeCoAlarm\AlarmState;
9
use LauLamanApps\NestApi\Client\Device\SmokeCoAlarm\BatteryHealth;
10
use LauLamanApps\NestApi\Client\Device\SmokeCoAlarm\UiColorState;
11
use LauLamanApps\NestApi\Client\DeviceProxy;
12
use LauLamanApps\NestApi\NestClientInterface;
13
14
/**
15
 * @method string getDeviceId()
16
 * @method string getWhereId()
17
 * @method string getStructureId()
18
 * @method string getName()
19
 * @method string getNameLong()
20
 * @method string getLocale()
21
 * @method string getSoftwareVersion()
22
 * @method bool isOnline()
23
 * @method DateTimeImmutable getLastConnection()
24
 * @method BatteryHealth getBatteryHealth()
25
 * @method AlarmState getCoAlarmState()
26
 * @method AlarmState getSmokeAlarmState()
27
 * @method UiColorState getUiColorState()
28
 * @method bool isManualTestActive()
29
 * @method DateTimeImmutable getLastManualTest()
30
 */
31
final class SmokeCoAlarmProxy extends DeviceProxy
32
{
33
    protected function __load(NestClientInterface $client, string $deviceId)
34
    {
35
        return $client->getSmokeCoAlarm($deviceId);
36
    }
37
}
38