<?php
/**
* Created by PhpStorm.
* User: parcel
* Date: 11/12/18
* Time: 1:37 PM
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Entity
* @ORM\Table(name="station_daily_account")
*/
class StationDailyAccount {
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date")
*/
private $accountDate;
/**
* @ORM\Column(type="boolean")
*/
private $isClosed;
/**
* @var \App\Entity\User
* @Serializer\Type("App\Entity\User")
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="closed_by", referencedColumnName="id", nullable=true)
* })
*/
private $closedBy;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $closingDate;
/**
* @ORM\Column(type="boolean")
*/
private $isBanked;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @var \App\Entity\User
* @Serializer\Type("App\Entity\User")
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
* })
*/
private $createdBy;
/**
* @var \App\Entity\Station
* @Serializer\Type("App\Entity\Station")
* @ORM\ManyToOne(targetEntity="App\Entity\Station")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="station_id", referencedColumnName="id")
* })
*/
private $station;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getAccountDate()
{
return $this->accountDate;
}
/**
* @param mixed $accountDate
*/
public function setAccountDate($accountDate)
{
$this->accountDate = $accountDate;
}
/**
* @return mixed
*/
public function getisClosed()
{
return $this->isClosed;
}
/**
* @param mixed $isClosed
*/
public function setIsClosed($isClosed)
{
$this->isClosed = $isClosed;
}
/**
* @return User
*/
public function getClosedBy()
{
return $this->closedBy;
}
/**
* @param User $closedBy
*/
public function setClosedBy($closedBy)
{
$this->closedBy = $closedBy;
}
/**
* @return mixed
*/
public function getClosingDate()
{
return $this->closingDate;
}
/**
* @param mixed $closingDate
*/
public function setClosingDate($closingDate)
{
$this->closingDate = $closingDate;
}
/**
* @return mixed
*/
public function getisBanked()
{
return $this->isBanked;
}
/**
* @param mixed $isBanked
*/
public function setIsBanked($isBanked)
{
$this->isBanked = $isBanked;
}
/**
* @return mixed
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* @param mixed $createdAt
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
}
/**
* @return User
*/
public function getCreatedBy()
{
return $this->createdBy;
}
/**
* @param User $createdBy
*/
public function setCreatedBy($createdBy)
{
$this->createdBy = $createdBy;
}
/**
* @return Station
*/
public function getStation()
{
return $this->station;
}
/**
* @param Station $station
*/
public function setStation($station)
{
$this->station = $station;
}
}