src\Entity\MpesaManual.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MpesaManualRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MpesaManualRepository::class)
  7.  * @ORM\Table(name = "neema.mpesa_manual")
  8.  */
  9. class MpesaManual
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=MpesaTransaction::class, inversedBy="mpesaManuals")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $mpesaTransaction;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=User::class)
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $createdBy;
  27.     /**
  28.      * @ORM\Column(type="datetime")
  29.      */
  30.     private $createdAt;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity=Branch::class)
  33.      * @ORM\JoinColumn(nullable=false)
  34.      */
  35.     private $branch;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getMpesaTransaction(): ?MpesaTransaction
  41.     {
  42.         return $this->mpesaTransaction;
  43.     }
  44.     public function setMpesaTransaction(?MpesaTransaction $mpesaTransaction): self
  45.     {
  46.         $this->mpesaTransaction $mpesaTransaction;
  47.         return $this;
  48.     }
  49.     public function getCreatedBy(): ?User
  50.     {
  51.         return $this->createdBy;
  52.     }
  53.     public function setCreatedBy(?User $createdBy): self
  54.     {
  55.         $this->createdBy $createdBy;
  56.         return $this;
  57.     }
  58.     public function getCreatedAt(): ?\DateTimeInterface
  59.     {
  60.         return $this->createdAt;
  61.     }
  62.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  63.     {
  64.         $this->createdAt $createdAt;
  65.         return $this;
  66.     }
  67.     public function getBranch(): ?Branch
  68.     {
  69.         return $this->branch;
  70.     }
  71.     public function setBranch(?Branch $branch): self
  72.     {
  73.         $this->branch $branch;
  74.         return $this;
  75.     }
  76. }