1 | <?php |
||
10 | class TranslatableTestPage extends Page implements TestOnly |
||
11 | { |
||
12 | // static $extensions is inherited from SiteTree, |
||
13 | // we don't need to explicitly specify the fields |
||
14 | |||
15 | private static $db = [ |
||
|
|||
16 | 'TranslatableProperty' => 'Text' |
||
17 | ]; |
||
18 | |||
19 | private static $has_one = [ |
||
20 | 'TranslatableObject' => TranslatableTestDataObject::class |
||
21 | ]; |
||
22 | |||
23 | private static $table_name = 'TranslatableTestPage'; |
||
24 | |||
25 | public function getCMSFields() |
||
41 | } |
||
42 |
This check marks private properties in classes that are never used. Those properties can be removed.