<?php
namespace App\Entity;
use App\Repository\BranchRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=BranchRepository::class)
* @ORM\Table(name = "neema.branch")
*/
class Branch
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=50)
*/
private $branchName;
/**
* @ORM\Column(type="string", length=5)
*/
private $branchCode;
/**
* @ORM\Column(type="string", length=100)
*/
private $email;
/**
* @ORM\Column(type="string", length=100)
*/
private $contactPerson;
/**
* @ORM\Column(type="string", length=12)
*/
private $phone;
/**
* @ORM\Column(type="boolean")
*/
private $active;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="string")
*/
private $location;
public function getId(): ?int
{
return $this->id;
}
/**
* @return mixed
*/
public function getBranchName()
{
return $this->branchName;
}
/**
* @param mixed $branchName
*/
public function setBranchName($branchName): void
{
$this->branchName = $branchName;
}
/**
* @return mixed
*/
public function getBranchCode()
{
return $this->branchCode;
}
/**
* @param mixed $branchCode
*/
public function setBranchCode($branchCode): void
{
$this->branchCode = $branchCode;
}
/**
* @return mixed
*/
public function getEmail()
{
return $this->email;
}
/**
* @param mixed $email
*/
public function setEmail($email): void
{
$this->email = $email;
}
/**
* @return mixed
*/
public function getContactPerson()
{
return $this->contactPerson;
}
/**
* @param mixed $contactPerson
*/
public function setContactPerson($contactPerson): void
{
$this->contactPerson = $contactPerson;
}
/**
* @return mixed
*/
public function getPhone()
{
return $this->phone;
}
/**
* @param mixed $phone
*/
public function setPhone($phone): void
{
$this->phone = $phone;
}
/**
* @return mixed
*/
public function getActive()
{
return $this->active;
}
/**
* @param mixed $active
*/
public function setActive($active): void
{
$this->active = $active;
}
/**
* @return mixed
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* @param mixed $createdAt
*/
public function setCreatedAt($createdAt): void
{
$this->createdAt = $createdAt;
}
/**
* @return mixed
*/
public function getLocation()
{
return $this->location;
}
/**
* @param mixed $location
*/
public function setLocation($location): void
{
$this->location = $location;
}
public function __toString()
{
// TODO: Implement __toString() method.
return $this->branchName;
}
}