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.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private ?int $id null;
  21.     /**
  22.      * @ORM\Column(name="client_id", type="integer")
  23.      * @Assert\NotBlank()
  24.      */
  25.     private ?int $clientId null;
  26.     /**
  27.      * @ORM\Column(name="position", type="string", length=255)
  28.      * @Assert\NotBlank()
  29.      */
  30.     private ?string $position null;
  31.     /**
  32.      * @ORM\Column(name="department", type="string", length=255, nullable=true)
  33.      */
  34.     private ?string $department null;
  35.     /**
  36.      * @ORM\Column(name="type_client", type="string", length=255)
  37.      * @Assert\NotBlank()
  38.      */
  39.     private ?string $typeclient null;
  40.     /**
  41.      * @ORM\Column(name="name", type="string", length=255)
  42.      * @Assert\NotBlank()
  43.      */
  44.     private ?string $name null;
  45.     /**
  46.      * @ORM\Column(name="last_name", type="string", length=255)
  47.      * @Assert\NotBlank()
  48.      */
  49.     private ?string $lastName null;
  50.     /**
  51.      * @ORM\Column(name="email", type="string", length=255)
  52.      * @Assert\NotBlank()
  53.      */
  54.     private ?string $email null;
  55.     /**
  56.      * @ORM\Column(name="password", type="string", length=255, nullable=true)
  57.      */
  58.     private ?string $password null;
  59.     /**
  60.      * @ORM\Column(name="token", type="string", length=255, nullable=true)
  61.      */
  62.     private ?string $token null;
  63.     /**
  64.      * @ORM\Column(name="phone", type="string", length=255)
  65.      * @Assert\NotBlank()
  66.      */
  67.     private ?string $phone null;
  68.     /**
  69.      * @ORM\Column(name="mobile", type="string", length=255, nullable=true)
  70.      */
  71.     private ?string $mobile null;
  72.     /**
  73.      * @ORM\Column(name="birthday", type="date", nullable=true)
  74.      */
  75.     private ?\DateTime $birthday null;
  76.     /**
  77.      * @ORM\Column(name="assigned_agent", type="integer")
  78.      * @Assert\NotBlank()
  79.      */
  80.     private ?int $assignedAgent null;
  81.     /**
  82.      * @ORM\Column(name="situation", type="string", length=255)
  83.      * @Assert\NotBlank()
  84.      */
  85.     private ?string $situation null;
  86.     /**
  87.      * @ORM\Column(name="status", type="string", length=255, nullable=true)
  88.      * @Assert\NotBlank()
  89.      */
  90.     private ?string $status null;
  91.     /**
  92.      * @ORM\Column(name="created_id", type="integer")
  93.      */
  94.     private ?int $createdId null;
  95.     /**
  96.      * @ORM\Column(name="created_at", type="datetime")
  97.      */
  98.     private ?\DateTime $createdAt null;
  99.     /**
  100.      * @ORM\Column(name="updated_id", type="integer")
  101.      */
  102.     private ?int $updatedId null;
  103.     /**
  104.      * @ORM\Column(name="updated_at", type="datetime")
  105.      */
  106.     private ?\DateTime $updatedAt null;
  107.     /**
  108.      * @ORM\Column(name="picture", type="string", length=255, nullable=true)
  109.      */
  110.     private ?string $picture null;
  111.     public function getId(): ?int
  112.     {
  113.         return $this->id;
  114.     }
  115.     public function setClientId(int $clientId): self
  116.     {
  117.         $this->clientId $clientId;
  118.         return $this;
  119.     }
  120.     public function getClientId(): ?int
  121.     {
  122.         return $this->clientId;
  123.     }
  124.     public function setPosition(string $position): self
  125.     {
  126.         $this->position $position;
  127.         return $this;
  128.     }
  129.     public function getPosition(): ?string
  130.     {
  131.         return $this->position;
  132.     }
  133.     public function setName(string $name): self
  134.     {
  135.         $this->name $name;
  136.         return $this;
  137.     }
  138.     public function getName(): ?string
  139.     {
  140.         return $this->name;
  141.     }
  142.     public function setLastName(string $lastName): self
  143.     {
  144.         $this->lastName $lastName;
  145.         return $this;
  146.     }
  147.     public function getLastName(): ?string
  148.     {
  149.         return $this->lastName;
  150.     }
  151.     public function setEmail(string $email): self
  152.     {
  153.         $this->email $email;
  154.         return $this;
  155.     }
  156.     public function getEmail(): ?string
  157.     {
  158.         return $this->email;
  159.     }
  160.     public function setPhone(string $phone): self
  161.     {
  162.         $this->phone $phone;
  163.         return $this;
  164.     }
  165.     public function getPhone(): ?string
  166.     {
  167.         return $this->phone;
  168.     }
  169.     public function setMobile(?string $mobile): self
  170.     {
  171.         $this->mobile $mobile;
  172.         return $this;
  173.     }
  174.     public function getMobile(): ?string
  175.     {
  176.         return $this->mobile;
  177.     }
  178.     public function setBirthday(?\DateTime $birthday): self
  179.     {
  180.         $this->birthday $birthday;
  181.         return $this;
  182.     }
  183.     public function getBirthday(): ?\DateTime
  184.     {
  185.         return $this->birthday;
  186.     }
  187.     public function setAssignedAgent(int $assignedAgent): self
  188.     {
  189.         $this->assignedAgent $assignedAgent;
  190.         return $this;
  191.     }
  192.     public function getAssignedAgent(): ?int
  193.     {
  194.         return $this->assignedAgent;
  195.     }
  196.     public function setCreatedId(int $createdId): self
  197.     {
  198.         $this->createdId $createdId;
  199.         return $this;
  200.     }
  201.     public function getCreatedId(): ?int
  202.     {
  203.         return $this->createdId;
  204.     }
  205.     public function setCreatedAt(\Datetime $createdAt): self
  206.     {
  207.         $this->createdAt $createdAt;
  208.         return $this;
  209.     }
  210.     public function getCreatedAt(): ?\DateTime
  211.     {
  212.         return $this->createdAt;
  213.     }
  214.     public function setUpdatedId(int $updatedId): self
  215.     {
  216.         $this->updatedId $updatedId;
  217.         return $this;
  218.     }
  219.     public function getUpdatedId(): ?int
  220.     {
  221.         return $this->updatedId;
  222.     }
  223.     public function setUpdatedAt(\Datetime $updatedAt): self
  224.     {
  225.         $this->updatedAt $updatedAt;
  226.         return $this;
  227.     }
  228.     public function getUpdatedAt(): ?\DateTime
  229.     {
  230.         return $this->updatedAt;
  231.     }
  232.     /**
  233.      * @ORM\PrePersist
  234.      */
  235.     public function setCreatedAtValue(): void
  236.     {
  237.         $this->createdAt = new \Datetime();
  238.     }
  239.     /**
  240.      * @ORM\PrePersist
  241.      * @ORM\PreUpdate
  242.      */
  243.     public function setUpdatedAtValue(): void
  244.     {
  245.         $this->updatedAt = new \Datetime();
  246.     }
  247.     public function setDepartment(?string $department): self
  248.     {
  249.         $this->department $department;
  250.         return $this;
  251.     }
  252.     public function getDepartment(): ?string
  253.     {
  254.         return $this->department;
  255.     }
  256.     public function setTypeclient(string $typeclient): self
  257.     {
  258.         $this->typeclient $typeclient;
  259.         return $this;
  260.     }
  261.     public function getTypeclient(): ?string
  262.     {
  263.         return $this->typeclient;
  264.     }
  265.     public function setPicture(?string $picture): self
  266.     {
  267.         $this->picture $picture;
  268.         return $this;
  269.     }
  270.     public function getPicture(): ?string
  271.     {
  272.         return $this->picture;
  273.     }
  274.     public function setSituation(string $situation): self
  275.     {
  276.         $this->situation $situation;
  277.         return $this;
  278.     }
  279.     public function getSituation(): ?string
  280.     {
  281.         return $this->situation;
  282.     }
  283.     public function setStatus(?string $status): self
  284.     {
  285.         $this->status $status;
  286.         return $this;
  287.     }
  288.     public function getStatus(): ?string
  289.     {
  290.         return $this->status;
  291.     }
  292.     public function setPassword(?string $password): self
  293.     {
  294.         $this->password $password;
  295.         return $this;
  296.     }
  297.     public function getPassword(): ?string
  298.     {
  299.         return $this->password;
  300.     }
  301.     public function setToken(?string $token): self
  302.     {
  303.         $this->token $token;
  304.         return $this;
  305.     }
  306.     public function getToken(): ?string
  307.     {
  308.         return $this->token;
  309.     }
  310. }