Completed
Push — master ( ac011d...56c397 )
by Mikołaj
03:19
created

DashboardController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 9 1
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 void
15
     */
16
    public function indexAction()
17
    {
18
        $list = new ExamsListModel($this->get('dbh'));
19
20
        $this->render('admin/index', [
21
            'title'     => 'Panel zarządzania',
22
            'examsList' => $list->getList(),
23
        ]);
24
    }
25
}
26