Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | #[ORM\Table(name:'vgr_team_serie')] |
||
20 | #[ORM\Entity(repositoryClass: TeamSerieRepository::class)] |
||
21 | class TeamSerie |
||
22 | { |
||
23 | use NbEqualTrait; |
||
24 | use RankPointChartTrait; |
||
25 | use PointChartTrait; |
||
26 | use RankMedalTrait; |
||
27 | use ChartRank0Trait; |
||
28 | use ChartRank1Trait; |
||
29 | use ChartRank2Trait; |
||
30 | use ChartRank3Trait; |
||
31 | use PointGameTrait; |
||
32 | |||
33 | #[ORM\Id] |
||
34 | #[ORM\ManyToOne(targetEntity: Team::class)] |
||
35 | #[ORM\JoinColumn(name:'team_id', referencedColumnName:'id', nullable:false, onDelete: 'CASCADE')] |
||
36 | private Team $team; |
||
37 | |||
38 | #[ORM\Id] |
||
39 | #[ORM\ManyToOne(targetEntity: Serie::class)] |
||
40 | #[ORM\JoinColumn(name:'serie_id', referencedColumnName:'id', nullable:false, onDelete: 'CASCADE')] |
||
41 | private Serie $serie; |
||
42 | |||
43 | public function setSerie(Serie $serie): void |
||
44 | { |
||
45 | $this->serie = $serie; |
||
46 | } |
||
47 | |||
48 | public function getSerie(): Serie |
||
49 | { |
||
50 | return $this->serie; |
||
51 | } |
||
52 | |||
53 | public function setTeam(Team $team): void |
||
54 | { |
||
55 | $this->team = $team; |
||
56 | } |
||
57 | |||
58 | public function getTeam(): Team |
||
61 | } |
||
62 | } |
||
63 |