Total Complexity | 2 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class StaffDirectory extends Page |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private static $singular_name = 'Staff Directory'; |
||
|
|||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private static $plural_name = 'Staff Directories'; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private static $description = 'A list of staff members'; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | private static $extensions = [ |
||
34 | Lumberjack::class, |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * @var array |
||
39 | */ |
||
40 | private static $allowed_children = array( |
||
41 | StaffMember::class, |
||
42 | StaffDirectory::class, |
||
43 | ); |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | 3 | */ |
|
48 | private static $table_name = 'StaffDirectory'; |
||
49 | 3 | ||
50 | /** |
||
51 | 3 | * Return staff members |
|
52 | * |
||
53 | 3 | * @return DataList |
|
54 | */ |
||
55 | public function getStaffMembers() |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * |
||
66 | */ |
||
67 | public function getLumberjackTitle() |
||
72 |