1 | <?php |
||
23 | class ListUnitController extends Controller implements UnitListResponderInterface |
||
24 | { |
||
25 | /** @var UnitListUseCase */ |
||
26 | private $unitListUseCase; |
||
27 | |||
28 | /** @var UnitListItem[] */ |
||
29 | private $listItems; |
||
30 | |||
31 | /** |
||
32 | * ListUnitController constructor. |
||
33 | * |
||
34 | * @param UnitListUseCase $unitListUseCase |
||
35 | */ |
||
36 | public function __construct(UnitListUseCase $unitListUseCase) |
||
41 | |||
42 | /** |
||
43 | * @return \Symfony\Component\HttpFoundation\Response |
||
44 | * @Route("/", name="unit_list") |
||
45 | */ |
||
46 | public function listAction() |
||
54 | |||
55 | /** |
||
56 | * @param UnitListResponse $response |
||
57 | */ |
||
58 | public function unitListFetched(UnitListResponse $response) |
||
62 | } |
||
63 |