<?php
/**
* Created by PhpStorm.
* User: parcel
* Date: 11/1/18
* Time: 7:50 AM
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\MpesaRepository")
* @ORM\Table(name="mpesa")
*/
class Mpesa {
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", name="transaction_id")
*/
private $transactionId;
/**
* @ORM\Column(type="string", name="transaction_type")
*/
private $transactionType;
/**
* @ORM\Column(type="string", name="transaction_time")
*/
private $transactionTime;
/**
* @ORM\Column(type="float", name="transaction_amount")
*/
private $transactionAmount;
/**
* @ORM\Column(type="string", name="ref_number")
*/
private $refNumber;
/**
* @ORM\Column(type="integer", name="short_code")
*/
private $shortCode;
/**
* @ORM\Column(type="float", name="balance")
*/
private $balance;
/**
* @ORM\Column(type="string", name="msisdn")
*/
private $msisdn;
/**
* @ORM\Column(type="string", name="first_name")
*/
private $firstName;
/**
* @ORM\Column(type="string", name="middle_name")
*/
private $middleName;
/**
* @ORM\Column(type="string", name="last_name")
*/
private $lastName;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="boolean", name="is_used")
*/
private $isUsed;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getTransactionId()
{
return $this->transactionId;
}
/**
* @param mixed $transactionId
*/
public function setTransactionId($transactionId)
{
$this->transactionId = $transactionId;
}
/**
* @return mixed
*/
public function getTransactionType()
{
return $this->transactionType;
}
/**
* @param mixed $transactionType
*/
public function setTransactionType($transactionType)
{
$this->transactionType = $transactionType;
}
/**
* @return mixed
*/
public function getTransactionTime()
{
return $this->transactionTime;
}
/**
* @param mixed $transactionTime
*/
public function setTransactionTime($transactionTime)
{
$this->transactionTime = $transactionTime;
}
/**
* @return mixed
*/
public function getTransactionAmount()
{
return $this->transactionAmount;
}
/**
* @param mixed $transactionAmount
*/
public function setTransactionAmount($transactionAmount)
{
$this->transactionAmount = $transactionAmount;
}
/**
* @return mixed
*/
public function getRefNumber()
{
return $this->refNumber;
}
/**
* @param mixed $refNumber
*/
public function setRefNumber($refNumber)
{
$this->refNumber = $refNumber;
}
/**
* @return mixed
*/
public function getShortCode()
{
return $this->shortCode;
}
/**
* @param mixed $shortCode
*/
public function setShortCode($shortCode)
{
$this->shortCode = $shortCode;
}
/**
* @return mixed
*/
public function getBalance()
{
return $this->balance;
}
/**
* @param mixed $balance
*/
public function setBalance($balance)
{
$this->balance = $balance;
}
/**
* @return mixed
*/
public function getMsisdn()
{
return $this->msisdn;
}
/**
* @param mixed $msisdn
*/
public function setMsisdn($msisdn)
{
$this->msisdn = $msisdn;
}
/**
* @return mixed
*/
public function getFirstName()
{
return $this->firstName;
}
/**
* @param mixed $firstName
*/
public function setFirstName($firstName)
{
$this->firstName = $firstName;
}
/**
* @return mixed
*/
public function getMiddleName()
{
return $this->middleName;
}
/**
* @param mixed $middleName
*/
public function setMiddleName($middleName)
{
$this->middleName = $middleName;
}
/**
* @return mixed
*/
public function getLastName()
{
return $this->lastName;
}
/**
* @param mixed $lastName
*/
public function setLastName($lastName)
{
$this->lastName = $lastName;
}
/**
* @return mixed
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* @param mixed $createdAt
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
}
/**
* @return mixed
*/
public function getIsUsed()
{
return $this->isUsed;
}
/**
* @param mixed $isUsed
*/
public function setIsUsed($isUsed): void
{
$this->isUsed = $isUsed;
}
public function __toString()
{
// TODO: Implement __toString() method.
return $this->firstName.' '.$this->middleName.' '.$this->lastName;
}
}