src/Entity/Contact.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity
  6.  */
  7. class Contact
  8. {
  9.     public const CIVILITY_MR 'MR';
  10.     public const CIVILITY_MRS 'MRS';
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      *
  16.      * @var int
  17.      */
  18.     protected $id;
  19.     /**
  20.      * @ORM\Column(type="string")
  21.      *
  22.      * @var string
  23.      */
  24.     protected $firstName;
  25.     /**
  26.      * @ORM\Column(type="string")
  27.      *
  28.      * @var string
  29.      */
  30.     protected $lastName;
  31.     /**
  32.      * @ORM\Column(type="string")
  33.      *
  34.      * @var string
  35.      */
  36.     protected $civility;
  37.     /**
  38.      * @ORM\Column(type="string")
  39.      *
  40.      * @var string
  41.      */
  42.     protected $email;
  43.     /**
  44.      * @ORM\Column(type="string", nullable=true)
  45.      *
  46.      * @var string
  47.      */
  48.     protected $organization '';
  49.     /**
  50.      * @ORM\Column(type="string", nullable=true)
  51.      *
  52.      * @var string
  53.      */
  54.     protected $job '';
  55.     /**
  56.      * @ORM\Column(type="string", nullable=true)
  57.      *
  58.      * @var string
  59.      */
  60.     protected $phone '';
  61.     /**
  62.      * @ORM\Column(type="string", nullable=true)
  63.      *
  64.      * @var string
  65.      */
  66.     protected $cellPhone '';
  67.     /**
  68.      * @ORM\Column(type="string")
  69.      *
  70.      * @var string
  71.      */
  72.     protected $address '';
  73.     /**
  74.      * @ORM\Column(type="string")
  75.      *
  76.      * @var string
  77.      */
  78.     protected $zipCode '';
  79.     /**
  80.      * @ORM\Column(type="string")
  81.      *
  82.      * @var string
  83.      */
  84.     protected $city '';
  85.     /**
  86.      * @ORM\Column(type="json")
  87.      *
  88.      * @var array
  89.      */
  90.     protected $contractNumbers = [];
  91.     public function getId(): int
  92.     {
  93.         return $this->id;
  94.     }
  95.     /**
  96.      * @return Contact
  97.      */
  98.     public function setId(int $id): self
  99.     {
  100.         $this->id $id;
  101.         return $this;
  102.     }
  103.     public function getFirstName(): ?string
  104.     {
  105.         return $this->firstName;
  106.     }
  107.     /**
  108.      * @return Contact
  109.      */
  110.     public function setFirstName(string $firstName): self
  111.     {
  112.         $this->firstName $firstName;
  113.         return $this;
  114.     }
  115.     public function getLastName(): ?string
  116.     {
  117.         return $this->lastName;
  118.     }
  119.     /**
  120.      * @return Contact
  121.      */
  122.     public function setLastName(string $lastName): self
  123.     {
  124.         $this->lastName $lastName;
  125.         return $this;
  126.     }
  127.     public function getOrganization(): ?string
  128.     {
  129.         return $this->organization;
  130.     }
  131.     /**
  132.      * @param string $organization
  133.      *
  134.      * @return Contact
  135.      */
  136.     public function setOrganization(?string $organization): self
  137.     {
  138.         $this->organization $organization;
  139.         return $this;
  140.     }
  141.     public function getJob(): ?string
  142.     {
  143.         return $this->job;
  144.     }
  145.     /**
  146.      * @param string $job
  147.      *
  148.      * @return Contact
  149.      */
  150.     public function setJob(?string $job): self
  151.     {
  152.         $this->job $job;
  153.         return $this;
  154.     }
  155.     public function getPhone(): ?string
  156.     {
  157.         return $this->phone;
  158.     }
  159.     /**
  160.      * @param string $phone
  161.      *
  162.      * @return Contact
  163.      */
  164.     public function setPhone(?string $phone): self
  165.     {
  166.         $this->phone $phone;
  167.         return $this;
  168.     }
  169.     public function getCellPhone(): ?string
  170.     {
  171.         return $this->cellPhone;
  172.     }
  173.     /**
  174.      * @param string $cellPhone
  175.      *
  176.      * @return Contact
  177.      */
  178.     public function setCellPhone(?string $cellPhone): self
  179.     {
  180.         $this->cellPhone $cellPhone;
  181.         return $this;
  182.     }
  183.     public function getAddress(): ?string
  184.     {
  185.         return $this->address;
  186.     }
  187.     /**
  188.      * @return Contact
  189.      */
  190.     public function setAddress(string $address): self
  191.     {
  192.         $this->address $address;
  193.         return $this;
  194.     }
  195.     public function getZipCode(): ?string
  196.     {
  197.         return $this->zipCode;
  198.     }
  199.     /**
  200.      * @return Contact
  201.      */
  202.     public function setZipCode(string $zipCode): self
  203.     {
  204.         $this->zipCode $zipCode;
  205.         return $this;
  206.     }
  207.     public function getCity(): ?string
  208.     {
  209.         return $this->city;
  210.     }
  211.     /**
  212.      * @return Contact
  213.      */
  214.     public function setCity(string $city): self
  215.     {
  216.         $this->city $city;
  217.         return $this;
  218.     }
  219.     public function getContractNumbers(): array
  220.     {
  221.         return $this->contractNumbers;
  222.     }
  223.     /**
  224.      * @return Contact
  225.      */
  226.     public function setContractNumbers(array $contractNumbers): self
  227.     {
  228.         $this->contractNumbers $contractNumbers;
  229.         return $this;
  230.     }
  231.     public function setCivility(?string $civility): self
  232.     {
  233.         $this->civility $civility;
  234.         return $this;
  235.     }
  236.     public function getCivility(): ?string
  237.     {
  238.         return $this->civility;
  239.     }
  240.     public function getEmail(): ?string
  241.     {
  242.         return $this->email;
  243.     }
  244.     public function setEmail(string $email): self
  245.     {
  246.         $this->email $email;
  247.         return $this;
  248.     }
  249. }