| Total Complexity | 2 | 
| Total Lines | 33 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 22 | class VersionController | ||
| 23 | { | ||
| 24 | private Version $version; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * VersionController constructor. | ||
| 28 | */ | ||
| 29 | 3 | public function __construct(Version $version) | |
| 32 | 3 | } | |
| 33 | |||
| 34 | /** | ||
| 35 | * Route for get API version. | ||
| 36 | * | ||
| 37 | * @Route( | ||
| 38 | * path="/version", | ||
| 39 |      *     methods={"GET"} | ||
| 40 | * ) | ||
| 41 | * | ||
| 42 | * @SWG\Response( | ||
| 43 | * response=200, | ||
| 44 | * description="success", | ||
| 45 | * @SWG\Schema( | ||
| 46 | * type="object", | ||
| 47 |      *          example={"version": "1.2.3"}, | ||
| 48 | * @SWG\Property(property="version", type="string", description="Version number"), | ||
| 49 | * ), | ||
| 50 | * ) | ||
| 51 | */ | ||
| 52 | 3 | public function __invoke(): JsonResponse | |
| 57 |