<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="mpesa_transaction")
*/
class MpesaTransaction {
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @var Mpesa
* @ORM\OneToOne(targetEntity="App\Entity\Mpesa")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="mpesa_id", referencedColumnName="id")
* })
*/
private $mpesa;
/**
* @var Transaction
* @ORM\OneToOne(targetEntity="App\Entity\Transaction")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="transaction_id", referencedColumnName="id")
* })
*/
private $transaction;
/**
* @var User
* @ORM\ManyToOne(targetEntity="User")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
* })
*/
private $createdBy;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id): void
{
$this->id = $id;
}
/**
* @return Mpesa
*/
public function getMpesa(): Mpesa
{
return $this->mpesa;
}
/**
* @param Mpesa $mpesa
*/
public function setMpesa(Mpesa $mpesa): void
{
$this->mpesa = $mpesa;
}
/**
* @return Transaction
*/
public function getTransaction(): Transaction
{
return $this->transaction;
}
/**
* @param Transaction $transaction
*/
public function setTransaction(Transaction $transaction): void
{
$this->transaction = $transaction;
}
/**
* @return User
*/
public function getCreatedBy(): User
{
return $this->createdBy;
}
/**
* @param User $createdBy
*/
public function setCreatedBy(User $createdBy): void
{
$this->createdBy = $createdBy;
}
/**
* @return mixed
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* @param mixed $createdAt
*/
public function setCreatedAt($createdAt): void
{
$this->createdAt = $createdAt;
}
}