Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | trait Game |
||
8 | { |
||
9 | /** |
||
10 | * @var GameEntity |
||
11 | * |
||
12 | * @ORM\ManyToOne(targetEntity="VideoGamesRecords\CoreBundle\Entity\Game") |
||
13 | * @ORM\JoinColumns({ |
||
14 | * @ORM\JoinColumn(name="idGame", referencedColumnName="id") |
||
15 | * }) |
||
16 | */ |
||
17 | private $game; |
||
18 | |||
19 | /** |
||
20 | * Set game |
||
21 | * |
||
22 | * @param GameEntity $game |
||
23 | * @return $this |
||
24 | */ |
||
25 | public function setGame(GameEntity $game = null) |
||
26 | { |
||
27 | $this->game = $game; |
||
28 | |||
29 | return $this; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Get game |
||
34 | * |
||
35 | * @return GameEntity |
||
36 | */ |
||
37 | public function getGame() |
||
40 | } |
||
41 | } |
||
42 |