src/Entity/MpesaAuth.php line 18

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: parcel
  5.  * Date: 11/1/18
  6.  * Time: 7:50 AM
  7.  */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity
  12.  * @ORM\Table(name="mpesa_auth")
  13.  */
  14. class MpesaAuth {
  15.     /**
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\Column(type="string", name="paybill")
  23.      */
  24.     private $paybill;
  25.     /**
  26.      * @ORM\Column(type="string", name="consumer_key")
  27.      */
  28.     private $consumerKey;
  29.     /**
  30.      * @ORM\Column(type="string", name="consumer_secret")
  31.      */
  32.     private $consumerSecret;
  33.     /**
  34.      * @ORM\Column(type="string", name="pass_key")
  35.      */
  36.     private $passKey;
  37.     /**
  38.      * @ORM\Column(type="string", name="token")
  39.      */
  40.     private $token;
  41.     /**
  42.      * @var Station
  43.      *
  44.      * @ORM\ManyToOne(targetEntity="App\Entity\Station")
  45.      * @ORM\JoinColumns({
  46.      *   @ORM\JoinColumn(name="station", referencedColumnName="id")
  47.      * })
  48.      */
  49.     private $station;
  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.      * @ORM\Column(type="string", name="short_code_type")
  60.      */
  61.     private $shortCodeType;
  62.     /**
  63.      * @return mixed
  64.      */
  65.     public function getId()
  66.     {
  67.         return $this->id;
  68.     }
  69.     /**
  70.      * @param mixed $id
  71.      */
  72.     public function setId($id)
  73.     {
  74.         $this->id $id;
  75.     }
  76.     /**
  77.      * @return mixed
  78.      */
  79.     public function getPaybill()
  80.     {
  81.         return $this->paybill;
  82.     }
  83.     /**
  84.      * @param mixed $paybill
  85.      */
  86.     public function setPaybill($paybill)
  87.     {
  88.         $this->paybill $paybill;
  89.     }
  90.     /**
  91.      * @return mixed
  92.      */
  93.     public function getConsumerKey()
  94.     {
  95.         return $this->consumerKey;
  96.     }
  97.     /**
  98.      * @param mixed $consumerKey
  99.      */
  100.     public function setConsumerKey($consumerKey)
  101.     {
  102.         $this->consumerKey $consumerKey;
  103.     }
  104.     /**
  105.      * @return mixed
  106.      */
  107.     public function getConsumerSecret()
  108.     {
  109.         return $this->consumerSecret;
  110.     }
  111.     /**
  112.      * @param mixed $consumerSecret
  113.      */
  114.     public function setConsumerSecret($consumerSecret)
  115.     {
  116.         $this->consumerSecret $consumerSecret;
  117.     }
  118.     /**
  119.      * @return mixed
  120.      */
  121.     public function getPassKey()
  122.     {
  123.         return $this->passKey;
  124.     }
  125.     /**
  126.      * @param mixed $passKey
  127.      */
  128.     public function setPassKey($passKey)
  129.     {
  130.         $this->passKey $passKey;
  131.     }
  132.     /**
  133.      * @return mixed
  134.      */
  135.     public function getToken()
  136.     {
  137.         return $this->token;
  138.     }
  139.     /**
  140.      * @param mixed $token
  141.      */
  142.     public function setToken($token)
  143.     {
  144.         $this->token $token;
  145.     }
  146.     /**
  147.      * @return mixed
  148.      */
  149.     public function getTokenUpdatedAt()
  150.     {
  151.         return $this->tokenUpdatedAt;
  152.     }
  153.     /**
  154.      * @param mixed $tokenUpdatedAt
  155.      */
  156.     public function setTokenUpdatedAt($tokenUpdatedAt)
  157.     {
  158.         $this->tokenUpdatedAt $tokenUpdatedAt;
  159.     }
  160.     /**
  161.      * @return mixed
  162.      */
  163.     public function getAuthType()
  164.     {
  165.         return $this->authType;
  166.     }
  167.     /**
  168.      * @param mixed $authType
  169.      */
  170.     public function setAuthType($authType): void
  171.     {
  172.         $this->authType $authType;
  173.     }
  174.     /**
  175.      * @return Station
  176.      */
  177.     public function getStation(): Station
  178.     {
  179.         return $this->station;
  180.     }
  181.     /**
  182.      * @param Station $station
  183.      */
  184.     public function setStation(Station $station): void
  185.     {
  186.         $this->station $station;
  187.     }
  188.     /**
  189.      * @return mixed
  190.      */
  191.     public function getShortCodeType()
  192.     {
  193.         return $this->shortCodeType;
  194.     }
  195.     /**
  196.      * @param mixed $shortCodeType
  197.      */
  198.     public function setShortCodeType($shortCodeType): void
  199.     {
  200.         $this->shortCodeType $shortCodeType;
  201.     }
  202. }