Game::setTeamFirst()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\GameCore\Persistence\Entity;
4
5
use App\GameCore\Persistence\Entity\Team;
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity(repositoryClass="App\GameCore\Persistence\Repository\GameRepository")
10
 */
11
class Game
12
{
13
    /**
14
     * @ORM\Id()
15
     * @ORM\GeneratedValue()
16
     * @ORM\Column(type="integer")
17
     */
18
    private $id;
19
20
    /**
21
     * @ORM\ManyToOne(targetEntity="App\GameCore\Persistence\Entity\Team", inversedBy="installations")
22
     * @ORM\JoinColumn(name="team_first_id", referencedColumnName="id")
23
     */
24
    private $teamFirst;
25
26
    /**
27
     * @ORM\ManyToOne(targetEntity="App\GameCore\Persistence\Entity\Team", inversedBy="installations")
28
     * @ORM\JoinColumn(name="team_second_id", referencedColumnName="id")
29
     */
30
    private $teamSecond;
31
32
    /**
33
     * @ORM\Column(type="datetime")
34
     */
35
    private $date;
36
37
    /**
38
     * @ORM\Column(type="integer", nullable=true)
39
     */
40
    private $firstTeamResult;
41
42
    /**
43
     * @ORM\Column(type="integer", nullable=true)
44
     */
45
    private $secondTeamResult;
46
47
    /**
48
     * @var integer
49
     * @ORM\Column(type="integer", nullable=true)
50
     */
51
    private $type;
52
53
    public function getId()
54
    {
55
        return $this->id;
56
    }
57
58
    public function getTeamFirst(): ?Team
59
    {
60
        return $this->teamFirst;
61
    }
62
63
    public function setTeamFirst(Team $teamFirst): self
64
    {
65
        $this->teamFirst = $teamFirst;
66
67
        return $this;
68
    }
69
70
    public function getTeamSecond(): ?Team
71
    {
72
        return $this->teamSecond;
73
    }
74
75
    public function setTeamSecond(Team $teamSecond): self
76
    {
77
        $this->teamSecond = $teamSecond;
78
79
        return $this;
80
    }
81
82
    public function getDate(): ?\DateTimeInterface
83
    {
84
        return $this->date;
85
    }
86
87
    public function setDate(\DateTimeInterface $date): self
88
    {
89
        $this->date = $date;
90
91
        return $this;
92
    }
93
94
    public function getFirstTeamResult(): ?int
95
    {
96
        return $this->firstTeamResult;
97
    }
98
99
    public function setFirstTeamResult(?int $firstTeamResult): self
100
    {
101
        $this->firstTeamResult = $firstTeamResult;
102
103
        return $this;
104
    }
105
106
    public function getSecondTeamResult(): ?int
107
    {
108
        return $this->secondTeamResult;
109
    }
110
111
    public function setSecondTeamResult(?int $secondTeamResult): self
112
    {
113
        $this->secondTeamResult = $secondTeamResult;
114
115
        return $this;
116
    }
117
118
    /**
119
     * @return int
120
     */
121
    public function getType(): int
122
    {
123
        return $this->type;
124
    }
125
126
    /**
127
     * @param int $type
128
     */
129
    public function setType(int $type): void
130
    {
131
        $this->type = $type;
132
    }
133
}
134
135