src/Entity/ClientContact.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * ClientContact
  8.  *
  9.  * @ORM\Table(name="clients_contact")
  10.  * @ORM\Entity(repositoryClass="App\Repository\ClientContactRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class ClientContact
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var int
  25.      *
  26.      * @ORM\Column(name="client_id", type="integer")
  27.      * @Assert\NotBlank()
  28.      */
  29.     private $clientId;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="position", type="string", length=255)
  34.      * @Assert\NotBlank()
  35.      */
  36.     private $position;
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(name="department", type="string", length=255, nullable=true)
  41.      */
  42.     private $department;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="type_client", type="string", length=255)
  47.      * @Assert\NotBlank()
  48.      */
  49.     private $typeclient;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="name", type="string", length=255)
  54.      * @Assert\NotBlank()
  55.      */
  56.     private $name;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="last_name", type="string", length=255)
  61.      * @Assert\NotBlank()
  62.      */
  63.     private $lastName;
  64.     /**
  65.      * @var string
  66.      *
  67.      * @ORM\Column(name="email", type="string", length=255)
  68.      * @Assert\NotBlank()
  69.      */
  70.     private $email;
  71.     /**
  72.      * @var string
  73.      *
  74.      * @ORM\Column(name="password", type="string", length=255, nullable=true)
  75.      */
  76.     private $password;
  77.     /**
  78.      * @var string
  79.      *
  80.      * @ORM\Column(name="token", type="string", length=255, nullable=true)
  81.      */
  82.     private $token;
  83.     /**
  84.      * @var string
  85.      *
  86.      * @ORM\Column(name="phone", type="string", length=255)
  87.      * @Assert\NotBlank()
  88.      */
  89.     private $phone;
  90.     /**
  91.      * @var string
  92.      *
  93.      * @ORM\Column(name="mobile", type="string", length=255, nullable=true)
  94.      */
  95.     private $mobile;
  96.     /**
  97.      * @var date $birthday
  98.      *
  99.      * @ORM\Column(name="birthday", type="date", nullable=true)
  100.      */
  101.     private $birthday;
  102.     /**
  103.      * @var int
  104.      *
  105.      * @ORM\Column(name="assigned_agent", type="integer")
  106.      * @Assert\NotBlank()
  107.      */
  108.     private $assignedAgent;
  109.     /**
  110.      * @var string
  111.      *
  112.      * @ORM\Column(name="situation", type="string", length=255)
  113.      * @Assert\NotBlank()
  114.      */
  115.     private $situation;
  116.     /**
  117.      * @var string
  118.      *
  119.      * @ORM\Column(name="status", type="string", length=255, nullable=true)
  120.      * @Assert\NotBlank()
  121.      */
  122.     private $status;
  123.     /**
  124.      * @var int
  125.      *
  126.      * @ORM\Column(name="created_id", type="integer")
  127.      */
  128.     private $createdId;
  129.     /**
  130.      * @var \DateTime
  131.      *
  132.      * @ORM\Column(name="created_at", type="datetime")
  133.      */
  134.     private $createdAt;
  135.     /**
  136.      * @var int
  137.      *
  138.      * @ORM\Column(name="updated_id", type="integer")
  139.      */
  140.     private $updatedId;
  141.     /**
  142.      * @var \DateTime
  143.      *
  144.      * @ORM\Column(name="updated_at", type="datetime")
  145.      */
  146.     private $updatedAt;
  147.     /**
  148.      * @var string
  149.      *
  150.      * @ORM\Column(name="picture", type="string", length=255, nullable=true)
  151.      */
  152.     private $picture;
  153.     /**
  154.      * Get id
  155.      *
  156.      * @return int
  157.      */
  158.     public function getId()
  159.     {
  160.         return $this->id;
  161.     }
  162.     /**
  163.      * Set clientId
  164.      *
  165.      * @param integer $clientId
  166.      *
  167.      * @return ClientContact
  168.      */
  169.     public function setClientId($clientId)
  170.     {
  171.         $this->clientId $clientId;
  172.         return $this;
  173.     }
  174.     /**
  175.      * Get clientId
  176.      *
  177.      * @return int
  178.      */
  179.     public function getClientId()
  180.     {
  181.         return $this->clientId;
  182.     }
  183.     /**
  184.      * Set position
  185.      *
  186.      * @param string $position
  187.      *
  188.      * @return ClientContact
  189.      */
  190.     public function setPosition($position)
  191.     {
  192.         $this->position $position;
  193.         return $this;
  194.     }
  195.     /**
  196.      * Get position
  197.      *
  198.      * @return string
  199.      */
  200.     public function getPosition()
  201.     {
  202.         return $this->position;
  203.     }
  204.     /**
  205.      * Set name
  206.      *
  207.      * @param string $name
  208.      *
  209.      * @return ClientContact
  210.      */
  211.     public function setName($name)
  212.     {
  213.         $this->name $name;
  214.         return $this;
  215.     }
  216.     /**
  217.      * Get name
  218.      *
  219.      * @return string
  220.      */
  221.     public function getName()
  222.     {
  223.         return $this->name;
  224.     }
  225.     /**
  226.      * Set lastName
  227.      *
  228.      * @param string $lastName
  229.      *
  230.      * @return ClientContact
  231.      */
  232.     public function setLastName($lastName)
  233.     {
  234.         $this->lastName $lastName;
  235.         return $this;
  236.     }
  237.     /**
  238.      * Get lastName
  239.      *
  240.      * @return string
  241.      */
  242.     public function getLastName()
  243.     {
  244.         return $this->lastName;
  245.     }
  246.     /**
  247.      * Set email
  248.      *
  249.      * @param string $email
  250.      *
  251.      * @return ClientContact
  252.      */
  253.     public function setEmail($email)
  254.     {
  255.         $this->email $email;
  256.         return $this;
  257.     }
  258.     /**
  259.      * Get email
  260.      *
  261.      * @return string
  262.      */
  263.     public function getEmail()
  264.     {
  265.         return $this->email;
  266.     }
  267.     /**
  268.      * Set phone
  269.      *
  270.      * @param string $phone
  271.      *
  272.      * @return ClientContact
  273.      */
  274.     public function setPhone($phone)
  275.     {
  276.         $this->phone $phone;
  277.         return $this;
  278.     }
  279.     /**
  280.      * Get phone
  281.      *
  282.      * @return string
  283.      */
  284.     public function getPhone()
  285.     {
  286.         return $this->phone;
  287.     }
  288.     /**
  289.      * Set mobile
  290.      *
  291.      * @param string $mobile
  292.      *
  293.      * @return ClientContact
  294.      */
  295.     public function setMobile($mobile)
  296.     {
  297.         $this->mobile $mobile;
  298.         return $this;
  299.     }
  300.     /**
  301.      * Get mobile
  302.      *
  303.      * @return string
  304.      */
  305.     public function getMobile()
  306.     {
  307.         return $this->mobile;
  308.     }
  309.     /**
  310.      * Set birthday
  311.      *
  312.      * @param date $birthday
  313.      *
  314.      * @return ClientContact
  315.      */
  316.     public function setBirthday($birthday)
  317.     {
  318.         $this->birthday $birthday;
  319.         return $this;
  320.     }
  321.     /**
  322.      * Get birthday
  323.      *
  324.      * @return date
  325.      */
  326.     public function getBirthday()
  327.     {
  328.         return $this->birthday;
  329.     }
  330.     /**
  331.      * Set assignedAgent
  332.      *
  333.      * @param integer $assignedAgent
  334.      *
  335.      * @return ClientContact
  336.      */
  337.     public function setAssignedAgent($assignedAgent)
  338.     {
  339.         $this->assignedAgent $assignedAgent;
  340.         return $this;
  341.     }
  342.     /**
  343.      * Get assignedAgent
  344.      *
  345.      * @return int
  346.      */
  347.     public function getAssignedAgent()
  348.     {
  349.         return $this->assignedAgent;
  350.     }
  351.     /**
  352.      * Set createdId
  353.      *
  354.      * @param integer $createdId
  355.      *
  356.      * @return ClientContact
  357.      */
  358.     public function setCreatedId($createdId)
  359.     {
  360.         $this->createdId $createdId;
  361.         return $this;
  362.     }
  363.     /**
  364.      * Get createdId
  365.      *
  366.      * @return int
  367.      */
  368.     public function getCreatedId()
  369.     {
  370.         return $this->createdId;
  371.     }
  372.     /**
  373.      * Set createdAt
  374.      *
  375.      * @param \Datetime $createdAt
  376.      *
  377.      * @return ClientContact
  378.      */
  379.     public function setCreatedAt(\Datetime $createdAt)
  380.     {
  381.         $this->createdAt $createdAt;
  382.         return $this;
  383.     }
  384.     /**
  385.      * Get createdAt
  386.      *
  387.      * @return \DateTime
  388.      */
  389.     public function getCreatedAt()
  390.     {
  391.         return $this->createdAt;
  392.     }
  393.     /**
  394.      * Set updatedId
  395.      *
  396.      * @param integer $updatedId
  397.      *
  398.      * @return ClientContact
  399.      */
  400.     public function setUpdatedId($updatedId)
  401.     {
  402.         $this->updatedId $updatedId;
  403.         return $this;
  404.     }
  405.     /**
  406.      * Get updatedId
  407.      *
  408.      * @return int
  409.      */
  410.     public function getUpdatedId()
  411.     {
  412.         return $this->updatedId;
  413.     }
  414.     /**
  415.      * Set updatedAt
  416.      *
  417.      * @param \Datetime $updatedAt
  418.      *
  419.      * @return ClientContact
  420.      */
  421.     public function setUpdatedAt(\Datetime $updatedAt)
  422.     {
  423.         $this->updatedAt $updatedAt;
  424.         return $this;
  425.     }
  426.     /**
  427.      * Get updatedAt
  428.      *
  429.      * @return \DateTime
  430.      */
  431.     public function getUpdatedAt()
  432.     {
  433.         return $this->updatedAt;
  434.     }
  435.     /**
  436.      * @ORM\PrePersist
  437.      */
  438.     public function setCreatedAtValue()
  439.     {
  440.         $this->createdAt = new \Datetime();
  441.     }
  442.     /**
  443.      * @ORM\PrePersist
  444.      * @ORM\PreUpdate
  445.      */
  446.     public function setUpdatedAtValue()
  447.     {
  448.         $this->updatedAt = new \Datetime();
  449.     }
  450.     /**
  451.      * Set department
  452.      *
  453.      * @param string $department
  454.      *
  455.      * @return ClientContact
  456.      */
  457.     public function setDepartment($department)
  458.     {
  459.         $this->department $department;
  460.         return $this;
  461.     }
  462.     /**
  463.      * Get department
  464.      *
  465.      * @return string
  466.      */
  467.     public function getDepartment()
  468.     {
  469.         return $this->department;
  470.     }
  471.     /**
  472.      * Set typeclient
  473.      *
  474.      * @param string $typeclient
  475.      *
  476.      * @return ClientContact
  477.      */
  478.     public function setTypeclient($typeclient)
  479.     {
  480.         $this->typeclient $typeclient;
  481.         return $this;
  482.     }
  483.     /**
  484.      * Get typeclient
  485.      *
  486.      * @return string
  487.      */
  488.     public function getTypeclient()
  489.     {
  490.         return $this->typeclient;
  491.     }
  492.     /**
  493.      * Set picture
  494.      *
  495.      * @param string $picture
  496.      *
  497.      * @return ClientContact
  498.      */
  499.     public function setPicture($picture)
  500.     {
  501.         $this->picture $picture;
  502.         return $this;
  503.     }
  504.     /**
  505.      * Get picture
  506.      *
  507.      * @return string
  508.      */
  509.     public function getPicture()
  510.     {
  511.         return $this->picture;
  512.     }
  513.     /**
  514.      * Set situation
  515.      *
  516.      * @param string $situation
  517.      *
  518.      * @return ClientContact
  519.      */
  520.     public function setSituation($situation)
  521.     {
  522.         $this->situation $situation;
  523.         return $this;
  524.     }
  525.     /**
  526.      * Get situation
  527.      *
  528.      * @return string
  529.      */
  530.     public function getSituation()
  531.     {
  532.         return $this->situation;
  533.     }
  534.     /**
  535.      * Set status
  536.      *
  537.      * @param string $status
  538.      *
  539.      * @return ClientContact
  540.      */
  541.     public function setStatus($status)
  542.     {
  543.         $this->status $status;
  544.         return $this;
  545.     }
  546.     /**
  547.      * Get status
  548.      *
  549.      * @return string
  550.      */
  551.     public function getStatus()
  552.     {
  553.         return $this->status;
  554.     }
  555.     /**
  556.      * Set password
  557.      *
  558.      * @param string $password
  559.      *
  560.      * @return ClientContact
  561.      */
  562.     public function setPassword($password)
  563.     {
  564.         $this->password $password;
  565.         return $this;
  566.     }
  567.     /**
  568.      * Get password
  569.      *
  570.      * @return string
  571.      */
  572.     public function getPassword()
  573.     {
  574.         return $this->password;
  575.     }
  576.     /**
  577.      * Set token
  578.      *
  579.      * @param string $token
  580.      *
  581.      * @return ClientContact
  582.      */
  583.     public function setToken($token)
  584.     {
  585.         $this->token $token;
  586.         return $this;
  587.     }
  588.     /**
  589.      * Get token
  590.      *
  591.      * @return string
  592.      */
  593.     public function getToken()
  594.     {
  595.         return $this->token;
  596.     }
  597. }