| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class UserController |
||
| 12 | { |
||
| 13 | /** @var UserRepository */ |
||
| 14 | private $userRepository; |
||
| 15 | |||
| 16 | public function __construct(UserRepository $userRepository) |
||
| 17 | { |
||
| 18 | $this->userRepository = $userRepository; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function index(Request $request) : Response |
||
| 22 | { |
||
| 23 | return new Response([ |
||
| 24 | 'controllerData' => 'This data came from the controller', |
||
| 25 | 'request' => $request, |
||
| 26 | ]); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function user(string $username) : Response |
||
| 34 | } |
||
| 35 | } |
||
| 36 |