<?php
namespace App\Entity\Gos\Uniqskills;
use App\Entity\Gos\Orders;
use Doctrine\ORM\Mapping as ORM;
/**
* PaymentOptions
*
* @ORM\Table(name="cash_payments")
* @ORM\Entity(repositoryClass="App\Repository\Uniqskills\CashPaymentRepository")
* @ORM\HasLifecycleCallbacks
*/
class CashPayment
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Gos\Orders")
* @ORM\JoinColumn(name="order_id", referencedColumnName="id")
*/
private $order;
/**
* @ORM\Column(type="string", length=255)
*/
private $paymentLink;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $countryCode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $payBefore;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $vid;
/**
* @ORM\Column(type="boolean", options={"default": false})
*/
private $done;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": false})
*/
private $inProgress;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* Constructor
*/
public function __construct()
{
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return CashPayment
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return CashPayment
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* @param Orders $order
* @return $this
*/
public function serOrder(Orders $order)
{
$this->order = $order;
return $this;
}
/**
* @return Orders
*/
public function getOrder()
{
return $this->order;
}
/**
* @return string
*/
public function getPaymentLink()
{
return $this->paymentLink;
}
/**
* @param string $oxxoLink
* @return $this
*/
public function setPaymentLink($paymentLink)
{
$this->paymentLink = $paymentLink;
return $this;
}
/**
* @return boolean
*/
public function getDone()
{
return $this->done;
}
/**
* @param $done
* @return $this
*/
public function setDone($done)
{
$this->done = $done;
return $this;
}
/**
* @param $countryCode
* @return $this
*/
public function setCountryCode($countryCode)
{
$this->countryCode = $countryCode;
return $this;
}
/**
* @return string
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* @param $payBefore
* @return $this
*/
public function setPayBefore($payBefore)
{
$this->payBefore = $payBefore;
return $this;
}
/**
* @return string
*/
public function getPayBefore()
{
return $this->payBefore;
}
/**
* @return string
*/
public function getVid()
{
return $this->vid;
}
/**
* @param $vid
* @return $this
*/
public function setVid($vid)
{
$this->vid = $vid;
return $this;
}
public function getInProgress()
{
return $this->inProgress;
}
public function setInProgress($inProgress)
{
$this->inProgress = $inProgress;
}
}