Completed
Push — master ( 6fa227...389cdb )
by Scott
02:24
created

Promotions   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php namespace Bedard\Shop\Controllers;
2
3
use BackendMenu;
4
use Bedard\Shop\Classes\BackendController;
5
6
/**
7
 * Promotions Back-end Controller
8
 */
9
class Promotions extends BackendController
10
{
11
    public $implement = [
12
        'Backend.Behaviors.FormController',
13
        'Backend.Behaviors.ListController'
14
    ];
15
16
    public $formConfig = 'config_form.yaml';
17
18
    public $listConfig = 'config_list.yaml';
19
20
    public $registerPermissions = [
21
        'bedard.shop.promotions.manage',
22
    ];
23
24
    public function __construct()
25
    {
26
        parent::__construct();
27
28
        BackendMenu::setContext('Bedard.Shop', 'shop', 'promotions');
29
        $this->addJs('/plugins/bedard/shop/assets/dist/promotions.js');
30
    }
31
}
32