<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\DailyFinancialStatementRepository")
*/
class DailyFinancialStatement
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $cashbox_start_value;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $cashbox_end_value;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $receipt_value;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $start_date;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $end_date;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $deposits;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $withdrawals;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $payments_to_suppliers;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $card_payment;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $manually;
/**
*
*/
private $add_date;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Receipt", mappedBy="dailyFinancialStatement")
*/
private $receipts;
/**
* @ORM\OneToMany(targetEntity="App\Entity\DailyFinancialStatementCounting", mappedBy="dailyFinancialStatement")
*/
private $dailyFinancialStatementCountings;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DailyFinancialStatementCashbox", inversedBy="dailyFinancialStatements")
* @ORM\JoinColumn(name="daily_financial_statement_cashbox_id", referencedColumnName="id")
*/
private $dailyFinancialStatementCashbox;
public function __construct()
{
$this->receipts = new ArrayCollection();
$this->dailyFinancialStatementCountings = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getCashboxStartValue(): ?float
{
return $this->cashbox_start_value;
}
public function setCashboxStartValue(?float $cashbox_start_value): self
{
$this->cashbox_start_value = $cashbox_start_value;
return $this;
}
public function getCashboxEndValue(): ?float
{
return $this->cashbox_end_value;
}
public function setCashboxEndValue(?float $cashbox_end_value): self
{
$this->cashbox_end_value = $cashbox_end_value;
return $this;
}
public function getReceiptValue(): ?float
{
return $this->receipt_value;
}
public function setReceiptValue(?float $receipt_value): self
{
$this->receipt_value = $receipt_value;
return $this;
}
public function getStartDate(): ?\DateTimeInterface
{
return $this->start_date;
}
public function setStartDate(?\DateTimeInterface $start_date): self
{
$this->start_date = $start_date;
return $this;
}
public function getEndDate(): ?\DateTimeInterface
{
return $this->end_date;
}
public function setEndDate(?\DateTimeInterface $end_date): self
{
$this->end_date = $end_date;
return $this;
}
public function getDeposits(): ?float
{
return $this->deposits;
}
public function setDeposits(?float $deposits): self
{
$this->deposits = $deposits;
return $this;
}
public function getWithdrawals(): ?float
{
return $this->withdrawals;
}
public function setWithdrawals(?float $withdrawals): self
{
$this->withdrawals = $withdrawals;
return $this;
}
public function getPaymentsToSuppliers(): ?float
{
return $this->payments_to_suppliers;
}
public function setPaymentsToSuppliers(?float $payments_to_suppliers): self
{
$this->payments_to_suppliers = $payments_to_suppliers;
return $this;
}
public function getCardPayment(): ?float
{
return $this->card_payment;
}
public function setCardPayment(?float $card_payment): self
{
$this->card_payment = $card_payment;
return $this;
}
public function getManually(): ?bool
{
return $this->manually;
}
public function setManually(?bool $manually): self
{
$this->manually = $manually;
return $this;
}
/**
* @return Collection<int, Receipt>
*/
public function getReceipts(): Collection
{
return $this->receipts;
}
public function addReceipt(Receipt $receipt): self
{
if (!$this->receipts->contains($receipt)) {
$this->receipts[] = $receipt;
$receipt->setDailyFinancialStatement($this);
}
return $this;
}
public function removeReceipt(Receipt $receipt): self
{
if ($this->receipts->removeElement($receipt)) {
// set the owning side to null (unless already changed)
if ($receipt->getDailyFinancialStatement() === $this) {
$receipt->setDailyFinancialStatement(null);
}
}
return $this;
}
/**
* @return Collection<int, DailyFinancialStatementCounting>
*/
public function getDailyFinancialStatementCountings(): Collection
{
return $this->dailyFinancialStatementCountings;
}
public function addDailyFinancialStatementCounting(DailyFinancialStatementCounting $dailyFinancialStatementCounting): self
{
if (!$this->dailyFinancialStatementCountings->contains($dailyFinancialStatementCounting)) {
$this->dailyFinancialStatementCountings[] = $dailyFinancialStatementCounting;
$dailyFinancialStatementCounting->setDailyFinancialStatement($this);
}
return $this;
}
public function removeDailyFinancialStatementCounting(DailyFinancialStatementCounting $dailyFinancialStatementCounting): self
{
if ($this->dailyFinancialStatementCountings->removeElement($dailyFinancialStatementCounting)) {
// set the owning side to null (unless already changed)
if ($dailyFinancialStatementCounting->getDailyFinancialStatement() === $this) {
$dailyFinancialStatementCounting->setDailyFinancialStatement(null);
}
}
return $this;
}
public function getDailyFinancialStatementCashbox(): ?DailyFinancialStatementCashbox
{
return $this->dailyFinancialStatementCashbox;
}
public function setDailyFinancialStatementCashbox(?DailyFinancialStatementCashbox $dailyFinancialStatementCashbox): self
{
$this->dailyFinancialStatementCashbox = $dailyFinancialStatementCashbox;
return $this;
}
}