1 | <?php |
||
16 | class ResponseTypeManager |
||
17 | { |
||
18 | /** |
||
19 | * @var ResponseType[] |
||
20 | */ |
||
21 | private $responseTypes = []; |
||
22 | |||
23 | public function add(ResponseType $responseType): void |
||
27 | |||
28 | public function has(string $responseType): bool |
||
32 | |||
33 | public function get(string $responseType): ResponseType |
||
41 | |||
42 | /** |
||
43 | * @return string[] |
||
44 | */ |
||
45 | public function list(): array |
||
49 | |||
50 | /** |
||
51 | * @return ResponseType[] |
||
52 | */ |
||
53 | public function all(): array |
||
57 | } |
||
58 |