for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace FSi\FixturesBundle\Entity;
use DateTimeInterface;
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 = false;
* @ORM\Column(type="datetime", name="created_at")
protected $createdAt;
public function getId(): ?int
return $this->id;
}
public function setCreatedAt(?DateTimeInterface $createdAt): void
$this->createdAt = $createdAt;
public function getCreatedAt(): ?DateTimeInterface
return $this->createdAt;
public function setEmail(?string $email): void
$this->email = $email;
public function getEmail(): ?string
return $this->email;
public function setActive(bool $active): void
$this->active = $active;
public function isActive(): bool
return $this->active;