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

CameraProxy::__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\Camera\Event;
9
use LauLamanApps\NestApi\Client\DeviceProxy;
10
use LauLamanApps\NestApi\NestClientInterface;
11
12
/**
13
 * @method string getDeviceId()
14
 * @method string getStructureId()
15
 * @method string getWhereId()
16
 * @method string getName()
17
 * @method string getNameLong()
18
 * @method string getSoftwareVersion()
19
 * @method bool isOnline()
20
 * @method bool isStreaming()
21
 * @method bool isAudioInputEnabled()
22
 * @method DateTimeImmutable getLastIsOnlineChange()
23
 * @method bool isVideoHistoryEnabled()
24
 * @method Event|null getLastEvent()
25
 * @method string getWebUrl()
26
 * @method string getAppUrl()
27
 */
28
final class CameraProxy extends DeviceProxy
29
{
30 2
    protected function __load(NestClientInterface $client, string $deviceId)
31
    {
32 2
        return $client->getCamera($deviceId);
33
    }
34
}
35