1 | <?php |
||
11 | class ApiListingHandler extends BaseHandler |
||
12 | { |
||
13 | /** |
||
14 | * @var ApiDecider |
||
15 | */ |
||
16 | private $apiDecider; |
||
17 | |||
18 | /** |
||
19 | * @var ApiLink |
||
20 | */ |
||
21 | private $apiLink; |
||
22 | |||
23 | /** |
||
24 | * ApiListingHandler constructor. |
||
25 | * |
||
26 | * @param ApiDecider $apiDecider |
||
27 | * @param ApiLink $apiLink |
||
28 | */ |
||
29 | 6 | public function __construct(ApiDecider $apiDecider, ApiLink $apiLink) |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 6 | public function handle($params) |
|
45 | |||
46 | /** |
||
47 | * Create handler list for specified version |
||
48 | * |
||
49 | * @param integer $version |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | 6 | private function getApiList($version) |
|
71 | |||
72 | /** |
||
73 | * Create array with params for specified handler |
||
74 | * |
||
75 | * @param ApiHandlerInterface $handler |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | 6 | private function createParamsList(ApiHandlerInterface $handler) |
|
93 | } |
||
94 |