PromosAdmin
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 20
wmc 0
1
<?php
2
3
namespace Dynamic\Elements\Promos\Admin;
4
5
use Dynamic\Elements\Promos\Model\PromoObject;
6
use SilverStripe\Admin\ModelAdmin;
7
8
/**
9
 * Class PromosAdmin
10
 * @package Dynamic\Elements\Promos\Admin
11
 */
12
class PromosAdmin extends ModelAdmin
13
{
14
    /**
15
     * @var array
16
     */
17
    private static $managed_models = [
0 ignored issues
show
introduced by
The private property $managed_models is not used, and could be removed.
Loading history...
18
        PromoObject::class => [
19
            'title' => 'Promos',
20
        ],
21
    ];
22
23
    /**
24
     * @var string
25
     */
26
    private static $url_segment = 'promos';
0 ignored issues
show
introduced by
The private property $url_segment is not used, and could be removed.
Loading history...
27
28
    /**
29
     * @var string
30
     */
31
    private static $menu_title = 'Promos';
0 ignored issues
show
introduced by
The private property $menu_title is not used, and could be removed.
Loading history...
32
}
33