| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Team_Extension extends DataExtension implements TestOnly |
||
| 9 | { |
||
| 10 | private static $summary_fields = [ |
||
|
|
|||
| 11 | 'Title' => 'Custom Title', // override non-associative 'Title' |
||
| 12 | ]; |
||
| 13 | |||
| 14 | private static $db = [ |
||
| 15 | 'ExtendedDatabaseField' => 'Varchar' |
||
| 16 | ]; |
||
| 17 | |||
| 18 | private static $has_one = [ |
||
| 19 | 'ExtendedHasOneRelationship' => Player::class |
||
| 20 | ]; |
||
| 21 | |||
| 22 | public function getExtendedDynamicField() |
||
| 25 | } |
||
| 26 | |||
| 27 | public function augmentHydrateFields() |
||
| 34 |