Passed
Push — master ( f9c14b...c6fe8b )
by Laurens
02:03
created

ProtectProxy::__load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
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\Protect\AlarmState;
9
use LauLamanApps\NestApi\Client\Device\Protect\BatteryHealth;
10
use LauLamanApps\NestApi\Client\Device\Protect\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 ProtectProxy extends DeviceProxy
32
{
33 2
    protected function __load(NestClientInterface $client, string $deviceId)
34
    {
35 2
        return $client->getProtect($deviceId);
36
    }
37
}
38