<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* ClientContact
*
* @ORM\Table(name="clients_contact")
* @ORM\Entity(repositoryClass="App\Repository\ClientContactRepository")
* @ORM\HasLifecycleCallbacks()
*/
class ClientContact
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="client_id", type="integer")
* @Assert\NotBlank()
*/
private $clientId;
/**
* @var string
*
* @ORM\Column(name="position", type="string", length=255)
* @Assert\NotBlank()
*/
private $position;
/**
* @var string
*
* @ORM\Column(name="department", type="string", length=255, nullable=true)
*/
private $department;
/**
* @var string
*
* @ORM\Column(name="type_client", type="string", length=255)
* @Assert\NotBlank()
*/
private $typeclient;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
* @Assert\NotBlank()
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="last_name", type="string", length=255)
* @Assert\NotBlank()
*/
private $lastName;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255)
* @Assert\NotBlank()
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="password", type="string", length=255, nullable=true)
*/
private $password;
/**
* @var string
*
* @ORM\Column(name="token", type="string", length=255, nullable=true)
*/
private $token;
/**
* @var string
*
* @ORM\Column(name="phone", type="string", length=255)
* @Assert\NotBlank()
*/
private $phone;
/**
* @var string
*
* @ORM\Column(name="mobile", type="string", length=255, nullable=true)
*/
private $mobile;
/**
* @var date $birthday
*
* @ORM\Column(name="birthday", type="date", nullable=true)
*/
private $birthday;
/**
* @var int
*
* @ORM\Column(name="assigned_agent", type="integer")
* @Assert\NotBlank()
*/
private $assignedAgent;
/**
* @var string
*
* @ORM\Column(name="situation", type="string", length=255)
* @Assert\NotBlank()
*/
private $situation;
/**
* @var string
*
* @ORM\Column(name="status", type="string", length=255, nullable=true)
* @Assert\NotBlank()
*/
private $status;
/**
* @var int
*
* @ORM\Column(name="created_id", type="integer")
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="updated_id", type="integer")
*/
private $updatedId;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="datetime")
*/
private $updatedAt;
/**
* @var string
*
* @ORM\Column(name="picture", type="string", length=255, nullable=true)
*/
private $picture;
/**
* @var string
*
* @ORM\Column(name="newsletter", type="string", length=255, nullable=true)
*/
private $newsletter;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set clientId
*
* @param integer $clientId
*
* @return ClientContact
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
return $this;
}
/**
* Get clientId
*
* @return int
*/
public function getClientId()
{
return $this->clientId;
}
/**
* Set position
*
* @param string $position
*
* @return ClientContact
*/
public function setPosition($position)
{
$this->position = $position;
return $this;
}
/**
* Get position
*
* @return string
*/
public function getPosition()
{
return $this->position;
}
/**
* Set name
*
* @param string $name
*
* @return ClientContact
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set lastName
*
* @param string $lastName
*
* @return ClientContact
*/
public function setLastName($lastName)
{
$this->lastName = $lastName;
return $this;
}
/**
* Get lastName
*
* @return string
*/
public function getLastName()
{
return $this->lastName;
}
/**
* Set email
*
* @param string $email
*
* @return ClientContact
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set phone
*
* @param string $phone
*
* @return ClientContact
*/
public function setPhone($phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get phone
*
* @return string
*/
public function getPhone()
{
return $this->phone;
}
/**
* Set mobile
*
* @param string $mobile
*
* @return ClientContact
*/
public function setMobile($mobile)
{
$this->mobile = $mobile;
return $this;
}
/**
* Get mobile
*
* @return string
*/
public function getMobile()
{
return $this->mobile;
}
/**
* Set birthday
*
* @param date $birthday
*
* @return ClientContact
*/
public function setBirthday($birthday)
{
$this->birthday = $birthday;
return $this;
}
/**
* Get birthday
*
* @return date
*/
public function getBirthday()
{
return $this->birthday;
}
/**
* Set assignedAgent
*
* @param integer $assignedAgent
*
* @return ClientContact
*/
public function setAssignedAgent($assignedAgent)
{
$this->assignedAgent = $assignedAgent;
return $this;
}
/**
* Get assignedAgent
*
* @return int
*/
public function getAssignedAgent()
{
return $this->assignedAgent;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return ClientContact
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return int
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set createdAt
*
* @param \Datetime $createdAt
*
* @return ClientContact
*/
public function setCreatedAt(\Datetime $createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return ClientContact
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return int
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* Set updatedAt
*
* @param \Datetime $updatedAt
*
* @return ClientContact
*/
public function setUpdatedAt(\Datetime $updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
/**
* Set department
*
* @param string $department
*
* @return ClientContact
*/
public function setDepartment($department)
{
$this->department = $department;
return $this;
}
/**
* Get department
*
* @return string
*/
public function getDepartment()
{
return $this->department;
}
/**
* Set typeclient
*
* @param string $typeclient
*
* @return ClientContact
*/
public function setTypeclient($typeclient)
{
$this->typeclient = $typeclient;
return $this;
}
/**
* Get typeclient
*
* @return string
*/
public function getTypeclient()
{
return $this->typeclient;
}
/**
* Set picture
*
* @param string $picture
*
* @return ClientContact
*/
public function setPicture($picture)
{
$this->picture = $picture;
return $this;
}
/**
* Get picture
*
* @return string
*/
public function getPicture()
{
return $this->picture;
}
/**
* Set newsletter
*
* @param string $newsletter
*
* @return ClientContact
*/
public function setNewsletter($newsletter)
{
$this->newsletter = $newsletter;
return $this;
}
/**
* Get newsletter
*
* @return string
*/
public function getNewsletter()
{
return $this->newsletter;
}
/**
* Set situation
*
* @param string $situation
*
* @return ClientContact
*/
public function setSituation($situation)
{
$this->situation = $situation;
return $this;
}
/**
* Get situation
*
* @return string
*/
public function getSituation()
{
return $this->situation;
}
/**
* Set status
*
* @param string $status
*
* @return ClientContact
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Get status
*
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Set password
*
* @param string $password
*
* @return ClientContact
*/
public function setPassword($password)
{
$this->password = $password;
return $this;
}
/**
* Get password
*
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Set token
*
* @param string $token
*
* @return ClientContact
*/
public function setToken($token)
{
$this->token = $token;
return $this;
}
/**
* Get token
*
* @return string
*/
public function getToken()
{
return $this->token;
}
}