1 | <?php |
||
18 | class Client |
||
19 | { |
||
20 | use TimestampableTrait, BlameableEntity, DeletedByTrait; |
||
21 | /** |
||
22 | * @var int |
||
23 | * |
||
24 | * @ORM\Column(name="id", type="integer") |
||
25 | * @ORM\Id |
||
26 | * @ORM\GeneratedValue(strategy="AUTO") |
||
27 | */ |
||
28 | private $id; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | * |
||
33 | * @ORM\Column(name="ip", type="string", length=20, unique=true) |
||
34 | */ |
||
35 | private $ip; |
||
36 | |||
37 | /** |
||
38 | * @var int |
||
39 | * |
||
40 | * @ORM\Column(name="countAttempts", type="integer") |
||
41 | */ |
||
42 | private $countAttempts; |
||
43 | |||
44 | /** |
||
45 | * @var bool |
||
46 | * |
||
47 | * @ORM\Column(name="banned", type="boolean") |
||
48 | */ |
||
49 | private $banned; |
||
50 | |||
51 | /** |
||
52 | * Get id. |
||
53 | * |
||
54 | * @return int |
||
55 | */ |
||
56 | public function getId() |
||
57 | { |
||
58 | return $this->id; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * Set ip. |
||
63 | * |
||
64 | * @param string $ip |
||
65 | * |
||
66 | * @return Client |
||
67 | */ |
||
68 | public function setIp($ip) |
||
74 | |||
75 | /** |
||
76 | * Get ip. |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getIp() |
||
84 | |||
85 | /** |
||
86 | * Set countAttempts. |
||
87 | * |
||
88 | * @param int $countAttempts |
||
89 | * |
||
90 | * @return Client |
||
91 | */ |
||
92 | public function setCountAttempts($countAttempts) |
||
98 | |||
99 | /** |
||
100 | * Get countAttempts. |
||
101 | * |
||
102 | * @return int |
||
103 | */ |
||
104 | public function getCountAttempts() |
||
108 | |||
109 | /** |
||
110 | * Set ban. |
||
111 | * |
||
112 | * @param bool $banned |
||
113 | * |
||
114 | * @return Client |
||
115 | */ |
||
116 | public function setBanned($banned) |
||
122 | |||
123 | /** |
||
124 | * Get banned. |
||
125 | * |
||
126 | * @return bool |
||
127 | */ |
||
128 | public function isBanned() |
||
132 | |||
133 | public function __toString() |
||
137 | } |
||
138 |