Total Complexity | 9 |
Total Lines | 95 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class UserExtraBetting |
||
13 | { |
||
14 | /** |
||
15 | * @ORM\Id() |
||
16 | * @ORM\GeneratedValue() |
||
17 | * @ORM\Column(type="integer") |
||
18 | */ |
||
19 | private $id; |
||
20 | |||
21 | /** |
||
22 | * @ORM\ManyToOne(targetEntity="App\User\Persistence\Entity\User", inversedBy="installations") |
||
23 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
||
24 | */ |
||
25 | private $user; |
||
26 | |||
27 | /** |
||
28 | * @ORM\Column(type="datetime") |
||
29 | */ |
||
30 | private $date; |
||
31 | |||
32 | /** |
||
33 | * @ORM\Column(type="integer", nullable=false) |
||
34 | */ |
||
35 | private $type; |
||
36 | |||
37 | /** |
||
38 | * @ORM\Column(type="string", nullable=false) |
||
39 | */ |
||
40 | private $text; |
||
41 | |||
42 | public function getId() |
||
43 | { |
||
44 | return $this->id; |
||
45 | } |
||
46 | |||
47 | public function getUser(): ?User |
||
50 | } |
||
51 | |||
52 | public function setUser(User $user): self |
||
53 | { |
||
54 | $this->user = $user; |
||
55 | |||
56 | return $this; |
||
57 | } |
||
58 | |||
59 | public function getDate(): ?\DateTimeInterface |
||
60 | { |
||
61 | return $this->date; |
||
62 | } |
||
63 | |||
64 | public function setDate(\DateTimeInterface $date): self |
||
65 | { |
||
66 | $this->date = $date; |
||
67 | |||
68 | return $this; |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return int|null |
||
73 | */ |
||
74 | public function getType() : ?int |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * @param int $type |
||
81 | * @return UserExtraBetting |
||
82 | */ |
||
83 | public function setType(int $type): self |
||
84 | { |
||
85 | $this->type = $type; |
||
86 | |||
87 | return $this; |
||
88 | } |
||
89 | |||
90 | /** |
||
91 | * @return null|string |
||
92 | */ |
||
93 | public function getText() : ?string |
||
96 | } |
||
97 | |||
98 | /** |
||
99 | * @param string $text |
||
100 | * @return UserExtraBetting |
||
101 | */ |
||
102 | public function setText(string $text): self |
||
107 | } |
||
108 | |||
112 |