Statuses::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 6
Ratio 100 %

Importance

Changes 0
Metric Value
dl 6
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php namespace Bedard\Shop\Controllers;
2
3
use BackendMenu;
4
use Bedard\Shop\Classes\BackendController;
5
6
/**
7
  * Statuses Back-end Controller.
8
  */
9 View Code Duplication
 class Statuses extends BackendController
10
 {
11
     public $formConfig = 'config_form.yaml';
12
13
     public $implement = [
14
        'Backend.Behaviors.FormController',
15
        'Backend.Behaviors.ListController',
16
        'Owl.Behaviors.ListDelete.Behavior',
17
    ];
18
19
     public $listConfig = 'config_list.yaml';
20
21
     public $registerPermissions = [
22
        'bedard.shop.statuses.manage',
23
    ];
24
25
     public function __construct()
26
     {
27
         parent::__construct();
28
29
         BackendMenu::setContext('Bedard.Shop', 'shop', 'statuses');
30
     }
31
 }
32