| 1 | <?php |
||
| 15 | class ComposerUpdateExtension extends DataExtension |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $jobName = 'CheckComposerUpdatesJob'; |
||
| 21 | |||
| 22 | private static $db = [ |
||
|
|
|||
| 23 | 'VersionHash' => 'Varchar', |
||
| 24 | 'LatestVersion' => 'Varchar', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | private static $summary_fields = [ |
||
| 28 | 'LatestVersion', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Automatically schedule a self update job on dev/build |
||
| 33 | */ |
||
| 34 | public function requireDefaultRecords() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Return the name of the related job |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getJobName() |
||
| 50 | } |
||
| 51 |
This check marks private properties in classes that are never used. Those properties can be removed.