<?php
namespace App\Entity;
use DateTime;
use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;
/**
* AccountRunout
*
* @ORM\Table(name="accounts_runout")
* @ORM\Entity
*/
class AccountRunout
{
/**
* @var DateTime
*
* @ORM\Column(name="created", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $created = null;
/**
* @var string|null
*
* @ORM\Column(name="runout", type="decimal", precision=18, scale=9, nullable=true)
*/
private $runout;
/**
* @var Account
*
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
* @ORM\OneToOne(targetEntity="Account")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="id", referencedColumnName="id")
* })
*/
private $account;
public function __construct()
{
$this->created = new DateTime();
}
public function getCreated(): ?DateTimeInterface
{
return $this->created;
}
public function setCreated(DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getRunout(): ?string
{
return $this->runout;
}
public function setRunout(?string $runout): self
{
$this->runout = $runout;
return $this;
}
}