1 | <?php |
||
6 | final class CapabilityCommandResponse |
||
7 | { |
||
8 | /** |
||
9 | * @var array<int, string> |
||
10 | */ |
||
11 | private $advertisements = []; |
||
12 | |||
13 | /** |
||
14 | * @param array<int, string> $list |
||
15 | */ |
||
16 | 11 | public function __construct(array $list) |
|
20 | |||
21 | /** |
||
22 | * @param string $command |
||
23 | * @return bool |
||
24 | */ |
||
25 | 10 | public function isAdvertising(string $command) |
|
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | 1 | public function __toString(): string |
|
44 | |||
45 | /** |
||
46 | * @param string $response |
||
47 | * @return CapabilityCommandResponse |
||
48 | */ |
||
49 | 12 | public static function fromString(string $response): self |
|
76 | } |
||
77 |