src/Entity/Customers.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestampable;
  4. use App\Repository\CustomersRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CustomersRepository::class)
  8.  * @ORM\HasLifecycleCallbacks
  9.  */
  10. class Customers
  11. {
  12.     use Timestampable;
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255)
  21.      */
  22.     private $firstName;
  23.     /**
  24.      * @ORM\Column(type="string", length=255)
  25.      */
  26.     private $lastName;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, unique=true)
  29.      */
  30.     private $email;
  31.     /**
  32.      * @ORM\Column(type="string", length=255)
  33.      */
  34.     private $pieceNumber;
  35.     /**
  36.      * @ORM\Column(type="string", length=255)
  37.      */
  38.     private $phoneNumberFirst;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $phoneNumberSecond;
  43.     /**
  44.      * @ORM\Column(type="string", length=255, nullable=true)
  45.      */
  46.     private $company;
  47.     /**
  48.      * @ORM\Column(type="string", length=255, nullable=true)
  49.      */
  50.     private $fileAdd;
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="customers")
  53.      * @ORM\JoinColumn(nullable=false)
  54.      */
  55.     private $user;
  56.     public function getId(): ?int
  57.     {
  58.         return $this->id;
  59.     }
  60.     public function getFirstName(): ?string
  61.     {
  62.         return $this->firstName;
  63.     }
  64.     public function setFirstName(string $firstName): self
  65.     {
  66.         $this->firstName $firstName;
  67.         return $this;
  68.     }
  69.     public function getLastName(): ?string
  70.     {
  71.         return $this->lastName;
  72.     }
  73.     public function setLastName(string $lastName): self
  74.     {
  75.         $this->lastName $lastName;
  76.         return $this;
  77.     }
  78.     public function getEmail(): ?string
  79.     {
  80.         return $this->email;
  81.     }
  82.     public function setEmail(string $email): self
  83.     {
  84.         $this->email $email;
  85.         return $this;
  86.     }
  87.     public function getPieceNumber(): ?string
  88.     {
  89.         return $this->pieceNumber;
  90.     }
  91.     public function setPieceNumber(string $pieceNumber): self
  92.     {
  93.         $this->pieceNumber $pieceNumber;
  94.         return $this;
  95.     }
  96.     public function getPhoneNumberFirst(): ?string
  97.     {
  98.         return $this->phoneNumberFirst;
  99.     }
  100.     public function setPhoneNumberFirst(string $phoneNumberFirst): self
  101.     {
  102.         $this->phoneNumberFirst $phoneNumberFirst;
  103.         return $this;
  104.     }
  105.     public function getPhoneNumberSecond(): ?string
  106.     {
  107.         return $this->phoneNumberSecond;
  108.     }
  109.     public function setPhoneNumberSecond(?string $phoneNumberSecond): self
  110.     {
  111.         $this->phoneNumberSecond $phoneNumberSecond;
  112.         return $this;
  113.     }
  114.     public function getCompany(): ?string
  115.     {
  116.         return $this->company;
  117.     }
  118.     public function setCompany(?string $company): self
  119.     {
  120.         $this->company $company;
  121.         return $this;
  122.     }
  123.     public function getFileAdd(): ?string
  124.     {
  125.         return $this->fileAdd;
  126.     }
  127.     public function setFileAdd(?string $fileAdd): self
  128.     {
  129.         $this->fileAdd $fileAdd;
  130.         return $this;
  131.     }
  132.     public function getUser(): ?User
  133.     {
  134.         return $this->user;
  135.     }
  136.     public function setUser(?User $user): self
  137.     {
  138.         $this->user $user;
  139.         return $this;
  140.     }
  141. }