for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Entity;
use AppBundle\Traits\TimestampableTrait;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Blameable\Traits\BlameableEntity;
use Gedmo\Mapping\Annotation as Gedmo;
use AppBundle\Traits\DeletedByTrait;
/**
* Client.
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="AppBundle\Repository\ClientRepository")
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
*/
class Client
{
use TimestampableTrait, BlameableEntity, DeletedByTrait;
* @var int
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
private $id;
* @var string
* @ORM\Column(name="ip", type="string", length=20, unique=true)
private $ip;
* @ORM\Column(name="countAttempts", type="integer")
private $countAttempts;
* @var bool
* @ORM\Column(name="banned", type="boolean")
private $banned;
* Get id.
* @return int
public function getId()
return $this->id;
}
* Set ip.
* @param string $ip
* @return Client
public function setIp($ip)
$this->ip = $ip;
return $this;
* Get ip.
* @return string
public function getIp()
return $this->ip;
* Set countAttempts.
* @param int $countAttempts
public function setCountAttempts($countAttempts)
$this->countAttempts = $countAttempts;
* Get countAttempts.
public function getCountAttempts()
return $this->countAttempts;
* Set ban.
* @param bool $banned
public function setBanned($banned)
$this->banned = $banned;
* Get banned.
* @return bool
public function isBanned()
return $this->banned;
public function __toString()
return $this->getIp();