src\Entity\MpesaAuth.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MpesaAuthRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MpesaAuthRepository::class)
  7.  * @ORM\Table(name = "neema.mpesa_auth")
  8.  */
  9. class MpesaAuth
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", name="till_number")
  19.      */
  20.     private $tillNumber;
  21.     /**
  22.      * @ORM\Column(type="string", name="consumer_key")
  23.      */
  24.     private $consumerKey;
  25.     /**
  26.      * @ORM\Column(type="string", name="consumer_secret")
  27.      */
  28.     private $consumerSecret;
  29.     /**
  30.      * @ORM\Column(type="string", name="pass_key")
  31.      */
  32.     private $passKey;
  33.     /**
  34.      * @ORM\Column(type="string", name="token")
  35.      */
  36.     private $token;
  37.     /**
  38.      * @var Branch
  39.      *
  40.      * @ORM\ManyToOne(targetEntity="App\Entity\Branch")
  41.      * @ORM\JoinColumns({
  42.      *   @ORM\JoinColumn(name="branch", referencedColumnName="id")
  43.      * })
  44.      */
  45.     private $branch;
  46.     /**
  47.      * @ORM\Column(type="string", name="pss")
  48.      */
  49.     private $pss;
  50.     /**
  51.      * @ORM\Column(type="datetime", name="token_updated_at")
  52.      */
  53.     private $tokenUpdatedAt;
  54.     /**
  55.      * @ORM\Column(type="string", name="auth_type")
  56.      */
  57.     private $authType;
  58.     /**
  59.      * @return mixed
  60.      */
  61.     public function getTillNumber()
  62.     {
  63.         return $this->tillNumber;
  64.     }
  65.     /**
  66.      * @param mixed $tillNumber
  67.      */
  68.     public function setTillNumber($tillNumber): void
  69.     {
  70.         $this->tillNumber $tillNumber;
  71.     }
  72.     /**
  73.      * @return mixed
  74.      */
  75.     public function getConsumerKey()
  76.     {
  77.         return $this->consumerKey;
  78.     }
  79.     /**
  80.      * @param mixed $consumerKey
  81.      */
  82.     public function setConsumerKey($consumerKey): void
  83.     {
  84.         $this->consumerKey $consumerKey;
  85.     }
  86.     /**
  87.      * @return mixed
  88.      */
  89.     public function getConsumerSecret()
  90.     {
  91.         return $this->consumerSecret;
  92.     }
  93.     /**
  94.      * @param mixed $consumerSecret
  95.      */
  96.     public function setConsumerSecret($consumerSecret): void
  97.     {
  98.         $this->consumerSecret $consumerSecret;
  99.     }
  100.     /**
  101.      * @return mixed
  102.      */
  103.     public function getPassKey()
  104.     {
  105.         return $this->passKey;
  106.     }
  107.     /**
  108.      * @param mixed $passKey
  109.      */
  110.     public function setPassKey($passKey): void
  111.     {
  112.         $this->passKey $passKey;
  113.     }
  114.     /**
  115.      * @return mixed
  116.      */
  117.     public function getToken()
  118.     {
  119.         return $this->token;
  120.     }
  121.     /**
  122.      * @param mixed $token
  123.      */
  124.     public function setToken($token): void
  125.     {
  126.         $this->token $token;
  127.     }
  128.     /**
  129.      * @return Branch
  130.      */
  131.     public function getBranch(): Branch
  132.     {
  133.         return $this->branch;
  134.     }
  135.     /**
  136.      * @param Branch $branch
  137.      */
  138.     public function setBranch(Branch $branch): void
  139.     {
  140.         $this->branch $branch;
  141.     }
  142.     /**
  143.      * @return mixed
  144.      */
  145.     public function getTokenUpdatedAt()
  146.     {
  147.         return $this->tokenUpdatedAt;
  148.     }
  149.     /**
  150.      * @param mixed $tokenUpdatedAt
  151.      */
  152.     public function setTokenUpdatedAt($tokenUpdatedAt): void
  153.     {
  154.         $this->tokenUpdatedAt $tokenUpdatedAt;
  155.     }
  156.     /**
  157.      * @return mixed
  158.      */
  159.     public function getAuthType()
  160.     {
  161.         return $this->authType;
  162.     }
  163.     /**
  164.      * @param mixed $authType
  165.      */
  166.     public function setAuthType($authType): void
  167.     {
  168.         $this->authType $authType;
  169.     }
  170.     /**
  171.      * @return mixed
  172.      */
  173.     public function getPss()
  174.     {
  175.         return $this->pss;
  176.     }
  177.     /**
  178.      * @param mixed $pss
  179.      */
  180.     public function setPss($pss): void
  181.     {
  182.         $this->pss $pss;
  183.     }
  184.     public function getId(): ?int
  185.     {
  186.         return $this->id;
  187.     }
  188. }