DashboardController::indexAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Egzaminer\Controller;
4
5
use Egzaminer\Model\ExamsListModel;
6
7
class DashboardController extends AdminController
8
{
9
    /**
10
     * Dashboard admin page.
11
     *
12
     * GET /admin
13
     *
14
     * @return string
15
     */
16
    public function indexAction(): string
17
    {
18
        $list = new ExamsListModel($this->get('dbh'));
19
20
        return $this->render('admin/index', [
21
            'title'     => 'Panel zarządzania',
22
            'examsList' => $list->getList(),
23
        ]);
24
    }
25
}
26