| 1 | <?php |
||
| 10 | class ViewableTestObject extends DataObject implements TestOnly, ViewableDataObjectInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private static $db = [ |
||
| 16 | 'Title' => 'Varchar(255)', |
||
| 17 | 'Content' => 'HTMLText', |
||
| 18 | ]; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private static $table_name = 'ViewableTestObject'; |
||
|
|
|||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | private static $extensions = [ |
||
| 29 | ViewableDataObject::class, |
||
| 30 | ]; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return DataObject |
||
| 34 | */ |
||
| 35 | public function getParentPage() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getViewAction() |
||
| 47 | |||
| 48 | } |
This check marks private properties in classes that are never used. Those properties can be removed.