src/Entity/Contact.php line 7
<?php
namespace App\Entity;
use Symfony\Component\Validator\Constraints as Assert;
class Contact
{
#[Assert\NotBlank()]
private $subject;
#[Assert\NotBlank()]
#[Assert\Length(min: 2, max: 100)]
private $name;
#[Assert\NotBlank()]
#[Assert\Length(min: 2, max: 100)]
private $city;
#[Assert\NotBlank()]
#[Assert\Length(min: 10, max: 14)]
private $phone;
#[Assert\NotBlank()]
#[Assert\Email()]
private $email;
#[Assert\NotBlank()]
#[Assert\Length(min: 10)]
private $message;
/**
* Get the value of subject
*/
public function getSubject()
{
return $this->subject;
}
/**
* Set the value of subject
* @return self
*/
public function setSubject($subject)
{
$this->subject = $subject;
return $this;
}
/**
* Get the value of name
*/
public function getName()
{
return $this->name;
}
/**
* Set the value of name
* @return self
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get the value of business
*/
public function getCity()
{
return $this->city;
}
/**
* Set the value of business
* @return self
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get the value of phone
*/
public function getPhone()
{
return $this->phone;
}
/**
* Set the value of phone
* @return self
*/
public function setPhone($phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get the value of email
*/
public function getEmail()
{
return $this->email;
}
/**
* Set the value of email
* @return self
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get the value of message
*/
public function getMessage()
{
return $this->message;
}
/**
* Set the value of message
* @return self
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
}