CameraProxy   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __load() 0 3 1
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