src/Entity/Master/Contact.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Master;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="eposm_m_contact")
  7.  * @ORM\Entity
  8.  */
  9. class Contact
  10. {
  11.     /**
  12.      * @ORM\Column(name="id", type="bigint")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */
  16.     protected $id;
  17.     /**
  18.      * @ORM\Column(name="name", type="string", length=191)
  19.      */
  20.     protected $name;
  21.     
  22.     /**
  23.      * @ORM\Column(name="phone", type="string", length=191, nullable=true)
  24.      */
  25.     protected $phone;
  26.     
  27.     /**
  28.      * @ORM\Column(name="mobile", type="string", length=191, nullable=true)
  29.      */
  30.     protected $mobile;
  31.     
  32.     /**
  33.      * @ORM\Column(name="email", type="string", length=191, nullable=true)
  34.      */
  35.     protected $email;
  36.     
  37.     /**
  38.      * @ORM\Column(name="email2", type="string", length=191, nullable=true)
  39.      */
  40.     protected $email2;
  41.     
  42.     /**
  43.      * @ORM\Column(name="notes", type="text", nullable=true)
  44.      */
  45.     protected $notes;
  46.     
  47.     // ManyToOne
  48.         /**
  49.          * @ORM\ManyToOne(targetEntity="App\Entity\Master\Company", inversedBy="contacts")
  50.          * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
  51.          */
  52.         private $company;
  53.         public function getId(): ?string
  54.         {
  55.             return $this->id;
  56.         }
  57.         public function getName(): ?string
  58.         {
  59.             return $this->name;
  60.         }
  61.         public function setName(string $name): static
  62.         {
  63.             $this->name $name;
  64.             return $this;
  65.         }
  66.         public function getPhone(): ?string
  67.         {
  68.             return $this->phone;
  69.         }
  70.         public function setPhone(?string $phone): static
  71.         {
  72.             $this->phone $phone;
  73.             return $this;
  74.         }
  75.         public function getMobile(): ?string
  76.         {
  77.             return $this->mobile;
  78.         }
  79.         public function setMobile(?string $mobile): static
  80.         {
  81.             $this->mobile $mobile;
  82.             return $this;
  83.         }
  84.         public function getEmail(): ?string
  85.         {
  86.             return $this->email;
  87.         }
  88.         public function setEmail(?string $email): static
  89.         {
  90.             $this->email $email;
  91.             return $this;
  92.         }
  93.         public function getEmail2(): ?string
  94.         {
  95.             return $this->email2;
  96.         }
  97.         public function setEmail2(?string $email2): static
  98.         {
  99.             $this->email2 $email2;
  100.             return $this;
  101.         }
  102.         public function getNotes(): ?string
  103.         {
  104.             return $this->notes;
  105.         }
  106.         public function setNotes(?string $notes): static
  107.         {
  108.             $this->notes $notes;
  109.             return $this;
  110.         }
  111.         public function getCompany(): ?Company
  112.         {
  113.             return $this->company;
  114.         }
  115.         public function setCompany(?Company $company): static
  116.         {
  117.             $this->company $company;
  118.             return $this;
  119.         }
  120. }