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.     //
  54.     public function getId(): ?string
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getName(): ?string
  59.     {
  60.         return $this->name;
  61.     }
  62.     public function setName(string $name): self
  63.     {
  64.         $this->name $name;
  65.         return $this;
  66.     }
  67.     public function getPhone(): ?string
  68.     {
  69.         return $this->phone;
  70.     }
  71.     public function setPhone(?string $phone): self
  72.     {
  73.         $this->phone $phone;
  74.         return $this;
  75.     }
  76.     public function getMobile(): ?string
  77.     {
  78.         return $this->mobile;
  79.     }
  80.     public function setMobile(?string $mobile): self
  81.     {
  82.         $this->mobile $mobile;
  83.         return $this;
  84.     }
  85.     public function getEmail(): ?string
  86.     {
  87.         return $this->email;
  88.     }
  89.     public function setEmail(?string $email): self
  90.     {
  91.         $this->email $email;
  92.         return $this;
  93.     }
  94.     public function getEmail2(): ?string
  95.     {
  96.         return $this->email2;
  97.     }
  98.     public function setEmail2(?string $email2): self
  99.     {
  100.         $this->email2 $email2;
  101.         return $this;
  102.     }
  103.     public function getNotes(): ?string
  104.     {
  105.         return $this->notes;
  106.     }
  107.     public function setNotes(?string $notes): self
  108.     {
  109.         $this->notes $notes;
  110.         return $this;
  111.     }
  112.     public function getCompany(): ?Company
  113.     {
  114.         return $this->company;
  115.     }
  116.     public function setCompany(?Company $company): self
  117.     {
  118.         $this->company $company;
  119.         return $this;
  120.     }
  121. }