Total Complexity | 1 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class Team extends DataObject implements TestOnly |
||
18 | { |
||
19 | |||
20 | private static $extensions = [ |
||
21 | Team_Extension::class |
||
22 | ]; |
||
23 | |||
24 | private static $db = [ |
||
25 | 'Title' => 'Varchar', |
||
26 | 'VisitCount' => 'Int', |
||
27 | 'Price' => 'Currency' |
||
28 | ]; |
||
29 | |||
30 | private static $has_one = [ |
||
31 | 'Captain' => Player::class, |
||
32 | 'HasOneRelationship' => Player::class, |
||
33 | ]; |
||
34 | |||
35 | private static $has_many = [ |
||
36 | 'SubTeams' => SubTeam::class, |
||
37 | 'Comments' => TeamComment::class |
||
38 | ]; |
||
39 | |||
40 | private static $many_many = [ |
||
41 | 'Players' => 'SilverLeague\IDEAnnotator\Tests\Player.Players', |
||
42 | 'Reserves' => 'SilverLeague\IDEAnnotator\Tests\Player.Reserves', |
||
43 | 'SecondarySubTeams' => SubTeam::class, |
||
44 | ]; |
||
45 | |||
46 | public function SecondarySubTeams() |
||
47 | { |
||
48 | |||
51 |