Issues (38)

src/Model/StaffDepartment.php (5 issues)

Severity
1
<?php
2
3
namespace Dynamic\Staff\Model;
4
5
use Dynamic\Staff\Pages\StaffMember;
6
use SilverStripe\ORM\DataObject;
7
8
class StaffDepartment extends DataObject
9
{
10
    /**
11
     * @var string
12
     */
13
    private static $singular_name = 'Department';
0 ignored issues
show
The private property $singular_name is not used, and could be removed.
Loading history...
14
15
    /**
16
     * @var string
17
     */
18
    private static $plural_name = 'Departments';
0 ignored issues
show
The private property $plural_name is not used, and could be removed.
Loading history...
19
20
    /**
21
     * @var string
22
     */
23
    private static $table_name = 'StaffDepartment';
0 ignored issues
show
The private property $table_name is not used, and could be removed.
Loading history...
24
25
    /**
26
     * @var array
27
     */
28
    private static $db = [
0 ignored issues
show
The private property $db is not used, and could be removed.
Loading history...
29
        'Title' => 'Varchar(255)',
30
    ];
31
32
    /**
33
     * @var array
34
     */
35
    private static $has_many = [
0 ignored issues
show
The private property $has_many is not used, and could be removed.
Loading history...
36
        'StaffMembers' => StaffMember::class,
37
    ];
38
}
39