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