src/Model/Followup.php line 7
<?php
namespace App\Model;
use Symfony\Component\Validator\Constraints as Assert;
class Followup
{
#[Assert\NotBlank(message: "Le mail est obligatoire")]
#[Assert\Email(message: "Le mail est incorrect")]
private string $email;
#[Assert\NotBlank(message: "La référence est obligatoire")]
private string $reference;
public function getEmail(): string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getReference(): string
{
return $this->reference;
}
public function setReference(string $reference): self
{
$this->reference = $reference;
return $this;
}
public function __toArray()
{
return call_user_func('get_object_vars', $this);
}
}