1 | <?php |
||
16 | class ResponseModeManager |
||
17 | { |
||
18 | /** |
||
19 | * @var ResponseMode[] |
||
20 | */ |
||
21 | private $responseModes = []; |
||
22 | |||
23 | /** |
||
24 | * @return string[] |
||
25 | */ |
||
26 | public function list(): array |
||
30 | |||
31 | /** |
||
32 | * @return string[] |
||
33 | */ |
||
34 | public function all(): array |
||
38 | |||
39 | /** |
||
40 | * @param ResponseMode $responseMode |
||
41 | * |
||
42 | * @return ResponseModeManager |
||
43 | */ |
||
44 | public function add(ResponseMode $responseMode) |
||
50 | |||
51 | /** |
||
52 | * @param string $name |
||
53 | * |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function has(string $name): bool |
||
60 | |||
61 | /** |
||
62 | * @param string $name |
||
63 | * |
||
64 | * @throws \InvalidArgumentException |
||
65 | * |
||
66 | * @return ResponseMode |
||
67 | */ |
||
68 | public function get(string $name): ResponseMode |
||
76 | } |
||
77 |