FinalPosition::getPosition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace OSS\CoreBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity
9
 */
10
class FinalPosition
11
{
12
    /**
13
     * @var Team
14
     *
15
     * @ORM\Id
16
     * @ORM\ManyToOne(targetEntity="Team", inversedBy="finalPositions")
17
     */
18
    private $team;
19
20
    /**
21
     * @var int
22
     *
23
     * @ORM\Id
24
     * @ORM\Column(type="integer")
25
     */
26
    private $season;
27
28
    /**
29
     * @var League
30
     *
31
     * @ORM\ManyToOne(targetEntity="League")
32
     */
33
    private $league;
34
35
    /**
36
     * @var integer
37
     *
38
     * @ORM\Column(type="integer")
39
     */
40
    private $position;
41
42
    /**
43
     * @return Team
44
     */
45
    public function getTeam()
46
    {
47
        return $this->team;
48
    }
49
50
    /**
51
     * @param Team $team
52
     */
53
    public function setTeam(Team $team)
54
    {
55
        $this->team = $team;
56
    }
57
58
    /**
59
     * @return int
60
     */
61
    public function getSeason()
62
    {
63
        return $this->season;
64
    }
65
66
    /**
67
     * @param int $season
68
     */
69
    public function setSeason($season)
70
    {
71
        $this->season = $season;
72
    }
73
74
    /**
75
     * @return League
76
     */
77
    public function getLeague()
78
    {
79
        return $this->league;
80
    }
81
82
    /**
83
     * @param League $league
84
     */
85
    public function setLeague(League $league)
86
    {
87
        $this->league = $league;
88
    }
89
90
    /**
91
     * @return int
92
     */
93
    public function getPosition()
94
    {
95
        return $this->position;
96
    }
97
98
    /**
99
     * @param int $position
100
     */
101
    public function setPosition($position)
102
    {
103
        $this->position = $position;
104
    }
105
}
106