for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FSi\FixturesBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
* @ORM\Table(name="subscriber")
*/
class Subscriber
{
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
protected $id;
* @Assert\Email()
* @ORM\Column(type="string", length=100)
protected $email;
* @ORM\Column(type="boolean")
protected $active;
* @ORM\Column(type="datetime", name="created_at")
protected $createdAt;
* @return mixed
public function getId()
return $this->id;
}
* @param mixed $id
* @return Subscriber
public function setId($id)
$this->id = $id;
return $this;
* @param mixed $createdAt
public function setCreatedAt($createdAt)
$this->createdAt = $createdAt;
public function getCreatedAt()
return $this->createdAt;
* @param mixed $email
public function setEmail($email)
$this->email = $email;
public function getEmail()
return $this->email;
* @param mixed $active
public function setActive($active)
$this->active = (boolean) $active;
* @return bool
public function isActive()
return $this->active;