Total Complexity | 8 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class ClientId |
||
11 | { |
||
12 | /** |
||
13 | * This field indicates the name of the clientId that we'll pass on to the broker. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | private $clientId; |
||
18 | |||
19 | /** |
||
20 | * QoSLevel constructor. |
||
21 | * |
||
22 | * @param string $clientId |
||
23 | */ |
||
24 | 24 | public function __construct(string $clientId) |
|
25 | { |
||
26 | 24 | $this->clientId = $clientId; |
|
27 | 24 | } |
|
28 | |||
29 | /** |
||
30 | * Gets the current clientId |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | 21 | public function getClientId(): string |
|
37 | } |
||
38 | |||
39 | 21 | public function __toString(): string |
|
42 | } |
||
43 | |||
44 | 23 | public function isEmptyClientId(): bool |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return \Generator|string[] |
||
51 | */ |
||
52 | 3 | public function performStrictValidationCheck(): \Generator |
|
73 |