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