<?php
namespace App\Entity;
use Symfony\Component\Validator\Constraints as Assert;
class Contact{
/**
* @var string|null
* @Assert\NotBlank()
* @Assert\Length(min=2, max=100)
*/
private $firstname;
/**
* @var string|null
* @Assert\NotBlank()
* @Assert\Length(min=2, max=100)
*/
private $lastname;
/**
* @var string|null
* @Assert\NotBlank()
* @Assert\Length(min=2, max=100)
*/
private $phone;
/**
* @var string|null
* @Assert\NotBlank()
* @Assert\Length(min=2, max=100)
*/
private $adress;
/**
* @var string|null
* @Assert\Length(min=2, max=100)
* @Assert\NotBlank(allowNull=true)
*/
private $society;
/**
* @var string|null
* @Assert\NotBlank()
* @Assert\Email()
*/
private $email;
/**
* @var string|null
* @Assert\NotBlank(
* message="Votre message ne doit pas ĂȘtre vide."
* )
* @Assert\Length(min=10)
*/
private $message;
private $confidentialite;
/**
* @param null|string $firstname
* @return Contact
*/
public function setFirstname($firstname)
{
$this->firstname = $firstname;
return $this;
}
/**
* @return null|string
*/
public function getFirstname()
{
return $this->firstname;
}
/**
* @param null|string $lastname
* @return Contact
*/
public function setLastname($lastname)
{
$this->lastname = $lastname;
return $this;
}
/**
* @return null|string
*/
public function getLastname()
{
return $this->lastname;
}
/**
* @param null|string $adress
* @return Contact
*/
public function setAdress($adress)
{
$this->adress = $adress;
return $this;
}
/**
* @return null|string
*/
public function getAdress()
{
return $this->adress;
}
/**
* @param null|string $society
* @return Contact
*/
public function setSociety($society)
{
$this->society = $society;
return $this;
}
/**
* @return null|string
*/
public function getSociety()
{
return $this->society;
}
/**
* @param null|string $phone
* @return Contact
*/
public function setPhone($phone)
{
$this->phone = $phone;
return $this;
}
/**
* @return null|string
*/
public function getPhone()
{
return $this->phone;
}
/**
* @param null|string $email
* @return Contact
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* @return null|string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param null|string $message
* @return Contact
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
/**
* @return null|string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param $confidentialite
* @return Contact
*/
public function setConfidentialite($confidentialite)
{
$this->confidentialite = $confidentialite;
return $this;
}
/**
* @return null|boolean
*/
public function getConfidentialite()
{
return $this->confidentialite;
}
}