src/Entity/Report.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReportRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ReportRepository::class)
  8.  * @Auditable()
  9.  */
  10. class Report
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Sites::class, inversedBy="reports")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $site;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="reports")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $user;
  28.     /**
  29.      * @ORM\Column(type="integer")
  30.      */
  31.     private $requestAmount;
  32.     /**
  33.      * @ORM\Column(type="integer")
  34.      */
  35.     private $totalDocumentPrinted;
  36.     /**
  37.      * @ORM\Column(type="decimal", precision=16, scale=2, nullable=true)
  38.      */
  39.     private $collectedAmountCDF;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity=Currency::class)
  42.      * @ORM\JoinColumn(nullable=true)
  43.      */
  44.     private $currency;
  45.     /**
  46.      * @ORM\Column(type="integer")
  47.      */
  48.     private $pendingRequestAmount;
  49.     /**
  50.      * @ORM\Column(type="integer", nullable=true)
  51.      */
  52.     private $damagedPaper;
  53.     /**
  54.      * @ORM\Column(type="integer", nullable=true)
  55.      */
  56.     private $soldStickerAmount;
  57.     /**
  58.      * @ORM\Column(type="integer", nullable=true)
  59.      */
  60.     private $damagedStickers;
  61.     /**
  62.      * @ORM\Column(type="decimal", precision=16, scale=2, nullable=true)
  63.      */
  64.     private $stickerCollectedAmountCDF;
  65.     /**
  66.      * @ORM\Column(type="decimal", precision=16, scale=2, nullable=true)
  67.      */
  68.     private $stickerCollectedAmountUSD;
  69.     /**
  70.      * @ORM\Column(type="decimal", precision=16, scale=2, nullable=true)
  71.      */
  72.     private $collectedAmountUSD;
  73.     /**
  74.      * @ORM\Column(type="datetime")
  75.      */
  76.     private $dateCreate;
  77.     /**
  78.      * @ORM\Column(type="integer", nullable=true)
  79.      */
  80.     private $status;
  81.     /**
  82.      * @ORM\Column(type="boolean", nullable=true)
  83.      */
  84.     private $isDeleted;
  85.     /**
  86.      * @ORM\Column(type="integer")
  87.      */
  88.     private $actualStoredPaperAmount;
  89.     /**
  90.      * @ORM\Column(type="integer")
  91.      */
  92.     private $actualStoredStickerAmount;
  93.     /**
  94.      * @ORM\Column(type="text", nullable=true)
  95.      */
  96.     private $comment;
  97.     /**
  98.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  99.      */
  100.     private $unitPrice;
  101.     /**
  102.      * @ORM\ManyToOne(targetEntity=Currency::class)
  103.      */
  104.     private $unitPriceCurrency;
  105.     /**
  106.      * @ORM\Column(type="date")
  107.      */
  108.     private $reportDate;
  109.     /**
  110.      * @ORM\ManyToOne(targetEntity=Users::class)
  111.      */
  112.     private $userUpdate;
  113.     /**
  114.      * @ORM\Column(type="datetime", nullable=true)
  115.      */
  116.     private $dateUpdate;
  117.     /**
  118.      * @ORM\Column(type="integer")
  119.      */
  120.     private $totalA4LandscapeRemain;
  121.     /**
  122.      * @ORM\Column(type="integer")
  123.      */
  124.     private $totalA5LandscapeRemain;
  125.     public function getId(): ?int
  126.     {
  127.         return $this->id;
  128.     }
  129.     public function getSite(): ?Sites
  130.     {
  131.         return $this->site;
  132.     }
  133.     public function setSite(?Sites $site): self
  134.     {
  135.         $this->site $site;
  136.         return $this;
  137.     }
  138.     public function getUser(): ?Users
  139.     {
  140.         return $this->user;
  141.     }
  142.     public function setUser(?Users $user): self
  143.     {
  144.         $this->user $user;
  145.         return $this;
  146.     }
  147.     public function getRequestAmount(): ?int
  148.     {
  149.         return $this->requestAmount;
  150.     }
  151.     public function setRequestAmount(int $requestAmount): self
  152.     {
  153.         $this->requestAmount $requestAmount;
  154.         return $this;
  155.     }
  156.     public function getTotalDocumentPrinted(): ?int
  157.     {
  158.         return $this->totalDocumentPrinted;
  159.     }
  160.     public function setTotalDocumentPrinted(int $totalDocumentPrinted): self
  161.     {
  162.         $this->totalDocumentPrinted $totalDocumentPrinted;
  163.         return $this;
  164.     }
  165.     public function getCollectedAmountCDF(): ?string
  166.     {
  167.         return $this->collectedAmountCDF;
  168.     }
  169.     public function setCollectedAmountCDF(?string $collectedAmountCDF): self
  170.     {
  171.         $this->collectedAmountCDF $collectedAmountCDF;
  172.         return $this;
  173.     }
  174.     public function getCurrency(): ?Currency
  175.     {
  176.         return $this->currency;
  177.     }
  178.     public function setCurrency(?Currency $currency): self
  179.     {
  180.         $this->currency $currency;
  181.         return $this;
  182.     }
  183.     public function getPendingRequestAmount(): ?int
  184.     {
  185.         return $this->pendingRequestAmount;
  186.     }
  187.     public function setPendingRequestAmount(int $pendingRequestAmount): self
  188.     {
  189.         $this->pendingRequestAmount $pendingRequestAmount;
  190.         return $this;
  191.     }
  192.     public function getDamagedPaper(): ?int
  193.     {
  194.         return $this->damagedPaper;
  195.     }
  196.     public function setDamagedPaper(?int $damagedPaper): self
  197.     {
  198.         $this->damagedPaper $damagedPaper;
  199.         return $this;
  200.     }
  201.     public function getSoldStickerAmount(): ?int
  202.     {
  203.         return $this->soldStickerAmount;
  204.     }
  205.     public function setSoldStickerAmount(?int $soldStickerAmount): self
  206.     {
  207.         $this->soldStickerAmount $soldStickerAmount;
  208.         return $this;
  209.     }
  210.     public function getDamagedStickers(): ?int
  211.     {
  212.         return $this->damagedStickers;
  213.     }
  214.     public function setDamagedStickers(?int $damagedStickers): self
  215.     {
  216.         $this->damagedStickers $damagedStickers;
  217.         return $this;
  218.     }
  219.     public function getStickerCollectedAmountCDF(): ?string
  220.     {
  221.         return $this->stickerCollectedAmountCDF;
  222.     }
  223.     public function setStickerCollectedAmountCDF(?string $stickerCollectedAmountCDF): self
  224.     {
  225.         $this->stickerCollectedAmountCDF $stickerCollectedAmountCDF;
  226.         return $this;
  227.     }
  228.     public function getStickerCollectedAmountUSD(): ?string
  229.     {
  230.         return $this->stickerCollectedAmountUSD;
  231.     }
  232.     public function setStickerCollectedAmountUSD(?string $stickerCollectedAmountUSD): self
  233.     {
  234.         $this->stickerCollectedAmountUSD $stickerCollectedAmountUSD;
  235.         return $this;
  236.     }
  237.     public function getCollectedAmountUSD(): ?string
  238.     {
  239.         return $this->collectedAmountUSD;
  240.     }
  241.     public function setCollectedAmountUSD(?string $collectedAmountUSD): self
  242.     {
  243.         $this->collectedAmountUSD $collectedAmountUSD;
  244.         return $this;
  245.     }
  246.     public function getDateCreate(): ?\DateTimeInterface
  247.     {
  248.         return $this->dateCreate;
  249.     }
  250.     public function setDateCreate(\DateTimeInterface $dateCreate): self
  251.     {
  252.         $this->dateCreate $dateCreate;
  253.         return $this;
  254.     }
  255.     public function getStatus(): ?int
  256.     {
  257.         return $this->status;
  258.     }
  259.     public function setStatus(?int $status): self
  260.     {
  261.         $this->status $status;
  262.         return $this;
  263.     }
  264.     public function getIsDeleted(): ?bool
  265.     {
  266.         return $this->isDeleted;
  267.     }
  268.     public function setIsDeleted(?bool $isDeleted): self
  269.     {
  270.         $this->isDeleted $isDeleted;
  271.         return $this;
  272.     }
  273.     public function getActualStoredPaperAmount(): ?int
  274.     {
  275.         return $this->actualStoredPaperAmount;
  276.     }
  277.     public function setActualStoredPaperAmount(int $actualStoredPaperAmount): self
  278.     {
  279.         $this->actualStoredPaperAmount $actualStoredPaperAmount;
  280.         return $this;
  281.     }
  282.     public function getActualStoredStickerAmount(): ?int
  283.     {
  284.         return $this->actualStoredStickerAmount;
  285.     }
  286.     public function setActualStoredStickerAmount(int $actualStoredStickerAmount): self
  287.     {
  288.         $this->actualStoredStickerAmount $actualStoredStickerAmount;
  289.         return $this;
  290.     }
  291.     public function getComment(): ?string
  292.     {
  293.         return $this->comment;
  294.     }
  295.     public function setComment(?string $comment): self
  296.     {
  297.         $this->comment $comment;
  298.         return $this;
  299.     }
  300.     public function getUnitPrice(): ?string
  301.     {
  302.         return $this->unitPrice;
  303.     }
  304.     public function setUnitPrice(?string $unitPrice): self
  305.     {
  306.         $this->unitPrice $unitPrice;
  307.         return $this;
  308.     }
  309.     public function getUnitPriceCurrency(): ?Currency
  310.     {
  311.         return $this->unitPriceCurrency;
  312.     }
  313.     public function setUnitPriceCurrency(?Currency $unitPriceCurrency): self
  314.     {
  315.         $this->unitPriceCurrency $unitPriceCurrency;
  316.         return $this;
  317.     }
  318.     public function getReportDate(): ?\DateTimeInterface
  319.     {
  320.         return $this->reportDate;
  321.     }
  322.     public function setReportDate(\DateTimeInterface $reportDate): self
  323.     {
  324.         $this->reportDate $reportDate;
  325.         return $this;
  326.     }
  327.     public function getUserUpdate(): ?Users
  328.     {
  329.         return $this->userUpdate;
  330.     }
  331.     public function setUserUpdate(?Users $userUpdate): self
  332.     {
  333.         $this->userUpdate $userUpdate;
  334.         return $this;
  335.     }
  336.     public function getDateUpdate(): ?\DateTimeInterface
  337.     {
  338.         return $this->dateUpdate;
  339.     }
  340.     public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
  341.     {
  342.         $this->dateUpdate $dateUpdate;
  343.         return $this;
  344.     }
  345.     public function getTotalA4LandscapeRemain(): ?int
  346.     {
  347.         return $this->totalA4LandscapeRemain;
  348.     }
  349.     public function setTotalA4LandscapeRemain(int $totalA4LandscapeRemain): self
  350.     {
  351.         $this->totalA4LandscapeRemain $totalA4LandscapeRemain;
  352.         return $this;
  353.     }
  354.     public function getTotalA5LandscapeRemain(): ?int
  355.     {
  356.         return $this->totalA5LandscapeRemain;
  357.     }
  358.     public function setTotalA5LandscapeRemain(int $totalA5LandscapeRemain): self
  359.     {
  360.         $this->totalA5LandscapeRemain $totalA5LandscapeRemain;
  361.         return $this;
  362.     }
  363. }