1 | <?php |
||
21 | class Client extends AbstractPersonalTranslatable implements TranslatableInterface |
||
22 | { |
||
23 | use TimestampableTrait, BlameableEntity, DeletedByTrait; |
||
24 | /** |
||
25 | * @var int |
||
26 | * |
||
27 | * @ORM\Column(name="id", type="integer") |
||
28 | * @ORM\Id |
||
29 | * @ORM\GeneratedValue(strategy="AUTO") |
||
30 | */ |
||
31 | private $id; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | * |
||
36 | * @ORM\Column(name="ip", type="string", length=20, unique=true) |
||
37 | */ |
||
38 | private $ip; |
||
39 | |||
40 | /** |
||
41 | * @var int |
||
42 | * |
||
43 | * @ORM\Column(name="countAttempts", type="integer") |
||
44 | */ |
||
45 | private $countAttempts; |
||
46 | |||
47 | /** |
||
48 | * @var bool |
||
49 | * |
||
50 | * @ORM\Column(name="banned", type="boolean") |
||
51 | */ |
||
52 | private $banned; |
||
53 | |||
54 | /** |
||
55 | * Get id. |
||
56 | * |
||
57 | * @return int |
||
58 | */ |
||
59 | public function getId() |
||
60 | { |
||
61 | return $this->id; |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * Set ip. |
||
66 | * |
||
67 | * @param string $ip |
||
68 | * |
||
69 | * @return Client |
||
70 | */ |
||
71 | public function setIp($ip) |
||
77 | |||
78 | /** |
||
79 | * Get ip. |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getIp() |
||
87 | |||
88 | /** |
||
89 | * Set countAttempts. |
||
90 | * |
||
91 | * @param int $countAttempts |
||
92 | * |
||
93 | * @return Client |
||
94 | */ |
||
95 | public function setCountAttempts($countAttempts) |
||
101 | |||
102 | /** |
||
103 | * Get countAttempts. |
||
104 | * |
||
105 | * @return int |
||
106 | */ |
||
107 | public function getCountAttempts() |
||
111 | |||
112 | /** |
||
113 | * Set ban. |
||
114 | * |
||
115 | * @param bool $banned |
||
116 | * |
||
117 | * @return Client |
||
118 | */ |
||
119 | public function setBanned($banned) |
||
125 | |||
126 | /** |
||
127 | * Get banned. |
||
128 | * |
||
129 | * @return bool |
||
130 | */ |
||
131 | public function isBanned() |
||
135 | |||
136 | public function __toString() |
||
140 | } |
||
141 |