| 1 | <?php |
||
| 6 | final class CapabilityCommandResponse |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var array |
||
| 10 | */ |
||
| 11 | private $advertisements = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * CapabilityList constructor. |
||
| 15 | * @param array $list |
||
| 16 | */ |
||
| 17 | 6 | public function __construct(array $list) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $command |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | 5 | public function isAdvertising(string $command) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 1 | public function __toString(): string |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $response |
||
| 48 | * @return CapabilityCommandResponse |
||
| 49 | */ |
||
| 50 | 7 | public static function fromString(string $response): self |
|
| 70 | |||
| 71 | } |