Passed
Push — master ( b7bf1a...41d6b2 )
by Verlhac
02:57
created

Game::getGame()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Model;
4
5
use VideoGamesRecords\CoreBundle\Entity\Game as GameEntity;
6
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()
38
    {
39
        return $this->game;
40
    }
41
}
42