| 1 | <?php  | 
            ||
| 13 | class Client  | 
            ||
| 14 | { | 
            ||
| 15 | /**  | 
            ||
| 16 | * @var int  | 
            ||
| 17 | *  | 
            ||
| 18 | * @ORM\Column(name="id", type="integer")  | 
            ||
| 19 | * @ORM\Id  | 
            ||
| 20 | * @ORM\GeneratedValue(strategy="AUTO")  | 
            ||
| 21 | */  | 
            ||
| 22 | private $id;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * @var string  | 
            ||
| 26 | *  | 
            ||
| 27 | * @ORM\Column(name="ip", type="string", length=20, unique=true)  | 
            ||
| 28 | */  | 
            ||
| 29 | private $ip;  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @var int  | 
            ||
| 33 | *  | 
            ||
| 34 | * @ORM\Column(name="countAttempts", type="integer")  | 
            ||
| 35 | */  | 
            ||
| 36 | private $countAttempts;  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * @var bool  | 
            ||
| 40 | *  | 
            ||
| 41 | * @ORM\Column(name="banned", type="boolean")  | 
            ||
| 42 | */  | 
            ||
| 43 | private $banned;  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * Get id.  | 
            ||
| 47 | *  | 
            ||
| 48 | * @return int  | 
            ||
| 49 | */  | 
            ||
| 50 | public function getId()  | 
            ||
| 51 |     { | 
            ||
| 52 | return $this->id;  | 
            ||
| 53 | }  | 
            ||
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * Set ip.  | 
            ||
| 57 | *  | 
            ||
| 58 | * @param string $ip  | 
            ||
| 59 | *  | 
            ||
| 60 | * @return Client  | 
            ||
| 61 | */  | 
            ||
| 62 | public function setIp($ip)  | 
            ||
| 68 | |||
| 69 | /**  | 
            ||
| 70 | * Get ip.  | 
            ||
| 71 | *  | 
            ||
| 72 | * @return string  | 
            ||
| 73 | */  | 
            ||
| 74 | public function getIp()  | 
            ||
| 78 | |||
| 79 | /**  | 
            ||
| 80 | * Set countAttempts.  | 
            ||
| 81 | *  | 
            ||
| 82 | * @param int $countAttempts  | 
            ||
| 83 | *  | 
            ||
| 84 | * @return Client  | 
            ||
| 85 | */  | 
            ||
| 86 | public function setCountAttempts($countAttempts)  | 
            ||
| 92 | |||
| 93 | /**  | 
            ||
| 94 | * Get countAttempts.  | 
            ||
| 95 | *  | 
            ||
| 96 | * @return int  | 
            ||
| 97 | */  | 
            ||
| 98 | public function getCountAttempts()  | 
            ||
| 102 | |||
| 103 | /**  | 
            ||
| 104 | * Set ban.  | 
            ||
| 105 | *  | 
            ||
| 106 | * @param bool $banned  | 
            ||
| 107 | *  | 
            ||
| 108 | * @return Client  | 
            ||
| 109 | */  | 
            ||
| 110 | public function setBanned($banned)  | 
            ||
| 116 | |||
| 117 | /**  | 
            ||
| 118 | * Get banned.  | 
            ||
| 119 | *  | 
            ||
| 120 | * @return bool  | 
            ||
| 121 | */  | 
            ||
| 122 | public function isBanned()  | 
            ||
| 126 | }  | 
            ||
| 127 |