src\Entity\Branch.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BranchRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=BranchRepository::class)
  7.  * @ORM\Table(name = "neema.branch")
  8.  */
  9. class Branch
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=50)
  19.      */
  20.     private $branchName;
  21.     /**
  22.      * @ORM\Column(type="string", length=5)
  23.      */
  24.     private $branchCode;
  25.     /**
  26.      * @ORM\Column(type="string", length=100)
  27.      */
  28.     private $email;
  29.     /**
  30.      * @ORM\Column(type="string", length=100)
  31.      */
  32.     private $contactPerson;
  33.     /**
  34.      * @ORM\Column(type="string", length=12)
  35.      */
  36.     private $phone;
  37.     /**
  38.      * @ORM\Column(type="boolean")
  39.      */
  40.     private $active;
  41.     /**
  42.      * @ORM\Column(type="datetime")
  43.      */
  44.     private $createdAt;
  45.     /**
  46.      * @ORM\Column(type="string")
  47.      */
  48.     private $location;
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * @return mixed
  55.      */
  56.     public function getBranchName()
  57.     {
  58.         return $this->branchName;
  59.     }
  60.     /**
  61.      * @param mixed $branchName
  62.      */
  63.     public function setBranchName($branchName): void
  64.     {
  65.         $this->branchName $branchName;
  66.     }
  67.     /**
  68.      * @return mixed
  69.      */
  70.     public function getBranchCode()
  71.     {
  72.         return $this->branchCode;
  73.     }
  74.     /**
  75.      * @param mixed $branchCode
  76.      */
  77.     public function setBranchCode($branchCode): void
  78.     {
  79.         $this->branchCode $branchCode;
  80.     }
  81.     /**
  82.      * @return mixed
  83.      */
  84.     public function getEmail()
  85.     {
  86.         return $this->email;
  87.     }
  88.     /**
  89.      * @param mixed $email
  90.      */
  91.     public function setEmail($email): void
  92.     {
  93.         $this->email $email;
  94.     }
  95.     /**
  96.      * @return mixed
  97.      */
  98.     public function getContactPerson()
  99.     {
  100.         return $this->contactPerson;
  101.     }
  102.     /**
  103.      * @param mixed $contactPerson
  104.      */
  105.     public function setContactPerson($contactPerson): void
  106.     {
  107.         $this->contactPerson $contactPerson;
  108.     }
  109.     /**
  110.      * @return mixed
  111.      */
  112.     public function getPhone()
  113.     {
  114.         return $this->phone;
  115.     }
  116.     /**
  117.      * @param mixed $phone
  118.      */
  119.     public function setPhone($phone): void
  120.     {
  121.         $this->phone $phone;
  122.     }
  123.     /**
  124.      * @return mixed
  125.      */
  126.     public function getActive()
  127.     {
  128.         return $this->active;
  129.     }
  130.     /**
  131.      * @param mixed $active
  132.      */
  133.     public function setActive($active): void
  134.     {
  135.         $this->active $active;
  136.     }
  137.     /**
  138.      * @return mixed
  139.      */
  140.     public function getCreatedAt()
  141.     {
  142.         return $this->createdAt;
  143.     }
  144.     /**
  145.      * @param mixed $createdAt
  146.      */
  147.     public function setCreatedAt($createdAt): void
  148.     {
  149.         $this->createdAt $createdAt;
  150.     }
  151.     /**
  152.      * @return mixed
  153.      */
  154.     public function getLocation()
  155.     {
  156.         return $this->location;
  157.     }
  158.     /**
  159.      * @param mixed $location
  160.      */
  161.     public function setLocation($location): void
  162.     {
  163.         $this->location $location;
  164.     }
  165.     public function __toString()
  166.     {
  167.         // TODO: Implement __toString() method.
  168.         return $this->branchName;
  169.     }
  170. }