Completed
Push — master ( 7e54ec...8b45a6 )
by Vojta
9s
created

Categories   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 23
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php namespace VojtaSvoboda\Reviews\Controllers;
2
3
use BackendMenu;
4
use Backend\Classes\Controller;
5
6
/**
7
 * Categories Back-end Controller
8
 */
9
class Categories extends Controller
10
{
11
    public $implement = [
12
        'Backend\Behaviors\FormController',
13
        'Backend\Behaviors\ListController',
14
        'Backend\Behaviors\ReorderController',
15
    ];
16
17
    public $formConfig = 'config_form.yaml';
18
    public $listConfig = 'config_list.yaml';
19
    public $reorderConfig = 'config_reorder.yaml';
20
21
    public $requiredPermissions = [
22
        'vojtasvoboda.reviews.categories',
23
    ];
24
25
    public function __construct()
26
    {
27
        parent::__construct();
28
29
        BackendMenu::setContext('VojtaSvoboda.Reviews', 'reviews', 'categories');
30
    }
31
}
32