TestimonialsAdmin
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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