UserExtraBetting   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 95
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 19
dl 0
loc 95
rs 10
c 0
b 0
f 0
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getUser() 0 3 1
A getType() 0 3 1
A getId() 0 3 1
A getText() 0 3 1
A getDate() 0 3 1
A setType() 0 5 1
A setDate() 0 5 1
A setText() 0 5 1
A setUser() 0 5 1
1
<?php
2
3
namespace App\GameExtraBetting\Persistence\Entity;
4
5
use App\GameCore\Persistence\Entity\Game;
6
use App\User\Persistence\Entity\User;
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * @ORM\Entity(repositoryClass="App\GameExtraBetting\Persistence\Repository\UserExtraBettingRepository")
11
 */
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
48
    {
49
        return $this->teamSecond;
0 ignored issues
show
Bug Best Practice introduced by
The property teamSecond does not exist on App\GameExtraBetting\Per...Entity\UserExtraBetting. Did you maybe forget to declare it?
Loading history...
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
75
    {
76
        return $this->type;
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
94
    {
95
        return $this->text;
96
    }
97
98
    /**
99
     * @param string $text
100
     * @return UserExtraBetting
101
     */
102
    public function setText(string $text): self
103
    {
104
        $this->text = $text;
105
106
        return $this;
107
    }
108
109
110
}
111
112