src/Entity/DailyFinancialStatement.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\DailyFinancialStatementRepository")
  8.  */
  9. class DailyFinancialStatement
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\Column(type="integer")
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="float", nullable=true)
  19.      */
  20.     private $cashbox_start_value;
  21.     /**
  22.      * @ORM\Column(type="float", nullable=true)
  23.      */
  24.     private $cashbox_end_value;
  25.     /**
  26.      * @ORM\Column(type="float", nullable=true)
  27.      */
  28.     private $receipt_value;
  29.     /**
  30.      * @ORM\Column(type="datetime", nullable=true)
  31.      */
  32.     private $start_date;
  33.     /**
  34.      * @ORM\Column(type="datetime", nullable=true)
  35.      */
  36.     private $end_date;
  37.     /**
  38.      * @ORM\Column(type="float", nullable=true)
  39.      */
  40.     private $deposits;
  41.     /**
  42.      * @ORM\Column(type="float", nullable=true)
  43.      */
  44.     private $withdrawals;
  45.     /**
  46.      * @ORM\Column(type="float", nullable=true)
  47.      */
  48.     private $payments_to_suppliers;
  49.     /**
  50.      * @ORM\Column(type="float", nullable=true)
  51.      */
  52.     private $card_payment;
  53.     /**
  54.      * @ORM\Column(type="boolean", nullable=true)
  55.      */
  56.     private $manually;
  57.     /**
  58.      * 
  59.      */
  60.     private $add_date;
  61.     /**
  62.      * @ORM\OneToMany(targetEntity="App\Entity\Receipt", mappedBy="dailyFinancialStatement")
  63.      */
  64.     private $receipts;
  65.     /**
  66.      * @ORM\OneToMany(targetEntity="App\Entity\DailyFinancialStatementCounting", mappedBy="dailyFinancialStatement")
  67.      */
  68.     private $dailyFinancialStatementCountings;
  69.     /**
  70.      * @ORM\ManyToOne(targetEntity="App\Entity\DailyFinancialStatementCashbox", inversedBy="dailyFinancialStatements")
  71.      * @ORM\JoinColumn(name="daily_financial_statement_cashbox_id", referencedColumnName="id")
  72.      */
  73.     private $dailyFinancialStatementCashbox;
  74.     public function __construct()
  75.     {
  76.         $this->receipts = new ArrayCollection();
  77.         $this->dailyFinancialStatementCountings = new ArrayCollection();
  78.     }
  79.     public function getId(): ?int
  80.     {
  81.         return $this->id;
  82.     }
  83.     public function getCashboxStartValue(): ?float
  84.     {
  85.         return $this->cashbox_start_value;
  86.     }
  87.     public function setCashboxStartValue(?float $cashbox_start_value): self
  88.     {
  89.         $this->cashbox_start_value $cashbox_start_value;
  90.         return $this;
  91.     }
  92.     public function getCashboxEndValue(): ?float
  93.     {
  94.         return $this->cashbox_end_value;
  95.     }
  96.     public function setCashboxEndValue(?float $cashbox_end_value): self
  97.     {
  98.         $this->cashbox_end_value $cashbox_end_value;
  99.         return $this;
  100.     }
  101.     public function getReceiptValue(): ?float
  102.     {
  103.         return $this->receipt_value;
  104.     }
  105.     public function setReceiptValue(?float $receipt_value): self
  106.     {
  107.         $this->receipt_value $receipt_value;
  108.         return $this;
  109.     }
  110.     public function getStartDate(): ?\DateTimeInterface
  111.     {
  112.         return $this->start_date;
  113.     }
  114.     public function setStartDate(?\DateTimeInterface $start_date): self
  115.     {
  116.         $this->start_date $start_date;
  117.         return $this;
  118.     }
  119.     public function getEndDate(): ?\DateTimeInterface
  120.     {
  121.         return $this->end_date;
  122.     }
  123.     public function setEndDate(?\DateTimeInterface $end_date): self
  124.     {
  125.         $this->end_date $end_date;
  126.         return $this;
  127.     }
  128.     public function getDeposits(): ?float
  129.     {
  130.         return $this->deposits;
  131.     }
  132.     public function setDeposits(?float $deposits): self
  133.     {
  134.         $this->deposits $deposits;
  135.         return $this;
  136.     }
  137.     public function getWithdrawals(): ?float
  138.     {
  139.         return $this->withdrawals;
  140.     }
  141.     public function setWithdrawals(?float $withdrawals): self
  142.     {
  143.         $this->withdrawals $withdrawals;
  144.         return $this;
  145.     }
  146.     public function getPaymentsToSuppliers(): ?float
  147.     {
  148.         return $this->payments_to_suppliers;
  149.     }
  150.     public function setPaymentsToSuppliers(?float $payments_to_suppliers): self
  151.     {
  152.         $this->payments_to_suppliers $payments_to_suppliers;
  153.         return $this;
  154.     }
  155.     public function getCardPayment(): ?float
  156.     {
  157.         return $this->card_payment;
  158.     }
  159.     public function setCardPayment(?float $card_payment): self
  160.     {
  161.         $this->card_payment $card_payment;
  162.         return $this;
  163.     }
  164.     public function getManually(): ?bool
  165.     {
  166.         return $this->manually;
  167.     }
  168.     public function setManually(?bool $manually): self
  169.     {
  170.         $this->manually $manually;
  171.         return $this;
  172.     }
  173.     /**
  174.      * @return Collection<int, Receipt>
  175.      */
  176.     public function getReceipts(): Collection
  177.     {
  178.         return $this->receipts;
  179.     }
  180.     public function addReceipt(Receipt $receipt): self
  181.     {
  182.         if (!$this->receipts->contains($receipt)) {
  183.             $this->receipts[] = $receipt;
  184.             $receipt->setDailyFinancialStatement($this);
  185.         }
  186.         return $this;
  187.     }
  188.     public function removeReceipt(Receipt $receipt): self
  189.     {
  190.         if ($this->receipts->removeElement($receipt)) {
  191.             // set the owning side to null (unless already changed)
  192.             if ($receipt->getDailyFinancialStatement() === $this) {
  193.                 $receipt->setDailyFinancialStatement(null);
  194.             }
  195.         }
  196.         return $this;
  197.     }
  198.     /**
  199.      * @return Collection<int, DailyFinancialStatementCounting>
  200.      */
  201.     public function getDailyFinancialStatementCountings(): Collection
  202.     {
  203.         return $this->dailyFinancialStatementCountings;
  204.     }
  205.     public function addDailyFinancialStatementCounting(DailyFinancialStatementCounting $dailyFinancialStatementCounting): self
  206.     {
  207.         if (!$this->dailyFinancialStatementCountings->contains($dailyFinancialStatementCounting)) {
  208.             $this->dailyFinancialStatementCountings[] = $dailyFinancialStatementCounting;
  209.             $dailyFinancialStatementCounting->setDailyFinancialStatement($this);
  210.         }
  211.         return $this;
  212.     }
  213.     public function removeDailyFinancialStatementCounting(DailyFinancialStatementCounting $dailyFinancialStatementCounting): self
  214.     {
  215.         if ($this->dailyFinancialStatementCountings->removeElement($dailyFinancialStatementCounting)) {
  216.             // set the owning side to null (unless already changed)
  217.             if ($dailyFinancialStatementCounting->getDailyFinancialStatement() === $this) {
  218.                 $dailyFinancialStatementCounting->setDailyFinancialStatement(null);
  219.             }
  220.         }
  221.         return $this;
  222.     }
  223.     public function getDailyFinancialStatementCashbox(): ?DailyFinancialStatementCashbox
  224.     {
  225.         return $this->dailyFinancialStatementCashbox;
  226.     }
  227.     public function setDailyFinancialStatementCashbox(?DailyFinancialStatementCashbox $dailyFinancialStatementCashbox): self
  228.     {
  229.         $this->dailyFinancialStatementCashbox $dailyFinancialStatementCashbox;
  230.         return $this;
  231.     }
  232. }