1 | <?php |
||
8 | final class CapabilityCommandResponse |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $advertisements = []; |
||
14 | |||
15 | /** |
||
16 | * CapabilityList constructor. |
||
17 | * @param array $list |
||
18 | */ |
||
19 | public function __construct(array $list) |
||
23 | |||
24 | /** |
||
25 | * @param string $command |
||
26 | * @return bool |
||
27 | */ |
||
28 | public function isAdvertising(string $command) |
||
36 | |||
37 | /** |
||
38 | * @param ResponseInterface $response |
||
39 | * @return CapabilityCommandResponse |
||
40 | */ |
||
41 | public static function fromResponse(ResponseInterface $response): self |
||
60 | |||
61 | } |