src/Entity/FinancialPart.php line 16
<?phpnamespace App\Entity;use App\Enum\IncomeEnum;use App\Repository\FinancialPartRepository;use App\Repository\SantaRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: FinancialPartRepository::class)]class FinancialPart{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'integer', nullable: true, options: ['default' => IncomeEnum::TYPE_DAILY])]private ?int $incomeType = null;#[ORM\Column(type: 'text', nullable: true)]private mixed $comment;#[ORM\ManyToOne(targetEntity: Page::class, inversedBy: 'financialPart')]#[ORM\JoinColumn(nullable: true, onDelete: 'CASCADE')]private ?Page $page = null;#[ORM\OneToMany(mappedBy: 'financialPart', targetEntity: UserSalary::class, cascade: ["persist", "remove"])]protected ?Collection $userSalary = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $totalPrice;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType1 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity1 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity1 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType2 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity2 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity2 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType3 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity3 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity3 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType4 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity4 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity4 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType5 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity5 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity5 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType6 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity6 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity6 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType7 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity7 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity7 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType8 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity8 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity8 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType9 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity9 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity9 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType10 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity10 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity10 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType11 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity11 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity11 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType12 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity12 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity12 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType13 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity13 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity13 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType14 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity14 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity14 = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $coinType15 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $coinQuantity15 = null;#[ORM\Column(type: 'float', nullable: true)]private ?float $transferQuantity15 = null;#[ORM\Column(type: 'datetime', nullable: true)]private \DateTimeInterface|null $createdAt = null;#[ORM\Column(type: 'date', nullable: true)]private ?\DateTimeInterface $currentDay = null;#[ORM\Column(type: 'integer', nullable: true)]private ?int $type = null;public function __construct(){$this->userSalary = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getTotalPrice(): ?float{return $this->totalPrice;}public function setTotalPrice(?float $totalPrice): static{$this->totalPrice = $totalPrice;return $this;}public function getCoinType1(): ?string{return $this->coinType1;}public function setCoinType1(?string $coinType1): static{$this->coinType1 = $coinType1;return $this;}public function getCoinQuantity1(): ?float{return $this->coinQuantity1;}public function setCoinQuantity1(?float $coinQuantity1): static{$this->coinQuantity1 = $coinQuantity1;return $this;}public function getTransferQuantity1(): ?float{return $this->transferQuantity1;}public function setTransferQuantity1(?float $transferQuantity1): static{$this->transferQuantity1 = $transferQuantity1;return $this;}public function getCoinType2(): ?string{return $this->coinType2;}public function setCoinType2(?string $coinType2): static{$this->coinType2 = $coinType2;return $this;}public function getCoinQuantity2(): ?float{return $this->coinQuantity2;}public function setCoinQuantity2(?float $coinQuantity2): static{$this->coinQuantity2 = $coinQuantity2;return $this;}public function getTransferQuantity2(): ?float{return $this->transferQuantity2;}public function setTransferQuantity2(?float $transferQuantity2): static{$this->transferQuantity2 = $transferQuantity2;return $this;}public function getCoinType3(): ?string{return $this->coinType3;}public function setCoinType3(?string $coinType3): static{$this->coinType3 = $coinType3;return $this;}public function getCoinQuantity3(): ?float{return $this->coinQuantity3;}public function setCoinQuantity3(?float $coinQuantity3): static{$this->coinQuantity3 = $coinQuantity3;return $this;}public function getTransferQuantity3(): ?float{return $this->transferQuantity3;}public function setTransferQuantity3(?float $transferQuantity3): static{$this->transferQuantity3 = $transferQuantity3;return $this;}public function getCoinType4(): ?string{return $this->coinType4;}public function setCoinType4(?string $coinType4): static{$this->coinType4 = $coinType4;return $this;}public function getCoinQuantity4(): ?float{return $this->coinQuantity4;}public function setCoinQuantity4(?float $coinQuantity4): static{$this->coinQuantity4 = $coinQuantity4;return $this;}public function getTransferQuantity4(): ?float{return $this->transferQuantity4;}public function setTransferQuantity4(?float $transferQuantity4): static{$this->transferQuantity4 = $transferQuantity4;return $this;}public function getCoinType5(): ?string{return $this->coinType5;}public function setCoinType5(?string $coinType5): static{$this->coinType5 = $coinType5;return $this;}public function getCoinQuantity5(): ?float{return $this->coinQuantity5;}public function setCoinQuantity5(?float $coinQuantity5): static{$this->coinQuantity5 = $coinQuantity5;return $this;}public function getTransferQuantity5(): ?float{return $this->transferQuantity5;}public function setTransferQuantity5(?float $transferQuantity5): static{$this->transferQuantity5 = $transferQuantity5;return $this;}public function getCoinType6(): ?string{return $this->coinType6;}public function setCoinType6(?string $coinType6): static{$this->coinType6 = $coinType6;return $this;}public function getCoinQuantity6(): ?float{return $this->coinQuantity6;}public function setCoinQuantity6(?float $coinQuantity6): static{$this->coinQuantity6 = $coinQuantity6;return $this;}public function getTransferQuantity6(): ?float{return $this->transferQuantity6;}public function setTransferQuantity6(?float $transferQuantity6): static{$this->transferQuantity6 = $transferQuantity6;return $this;}public function getCoinType7(): ?string{return $this->coinType7;}public function setCoinType7(?string $coinType7): static{$this->coinType7 = $coinType7;return $this;}public function getCoinQuantity7(): ?float{return $this->coinQuantity7;}public function setCoinQuantity7(?float $coinQuantity7): static{$this->coinQuantity7 = $coinQuantity7;return $this;}public function getTransferQuantity7(): ?float{return $this->transferQuantity7;}public function setTransferQuantity7(?float $transferQuantity7): static{$this->transferQuantity7 = $transferQuantity7;return $this;}public function getCoinType8(): ?string{return $this->coinType8;}public function setCoinType8(?string $coinType8): static{$this->coinType8 = $coinType8;return $this;}public function getCoinQuantity8(): ?float{return $this->coinQuantity8;}public function setCoinQuantity8(?float $coinQuantity8): static{$this->coinQuantity8 = $coinQuantity8;return $this;}public function getTransferQuantity8(): ?float{return $this->transferQuantity8;}public function setTransferQuantity8(?float $transferQuantity8): static{$this->transferQuantity8 = $transferQuantity8;return $this;}public function getCoinType9(): ?string{return $this->coinType9;}public function setCoinType9(?string $coinType9): static{$this->coinType9 = $coinType9;return $this;}public function getCoinQuantity9(): ?float{return $this->coinQuantity9;}public function setCoinQuantity9(?float $coinQuantity9): static{$this->coinQuantity9 = $coinQuantity9;return $this;}public function getTransferQuantity9(): ?float{return $this->transferQuantity9;}public function setTransferQuantity9(?float $transferQuantity9): static{$this->transferQuantity9 = $transferQuantity9;return $this;}public function getCoinType10(): ?string{return $this->coinType10;}public function setCoinType10(?string $coinType10): static{$this->coinType10 = $coinType10;return $this;}public function getCoinQuantity10(): ?float{return $this->coinQuantity10;}public function setCoinQuantity10(?float $coinQuantity10): static{$this->coinQuantity10 = $coinQuantity10;return $this;}public function getTransferQuantity10(): ?float{return $this->transferQuantity10;}public function setTransferQuantity10(?float $transferQuantity10): static{$this->transferQuantity10 = $transferQuantity10;return $this;}public function getCoinType11(): ?string{return $this->coinType11;}public function setCoinType11(?string $coinType11): static{$this->coinType11 = $coinType11;return $this;}public function getCoinQuantity11(): ?float{return $this->coinQuantity11;}public function setCoinQuantity11(?float $coinQuantity11): static{$this->coinQuantity11 = $coinQuantity11;return $this;}public function getTransferQuantity11(): ?float{return $this->transferQuantity11;}public function setTransferQuantity11(?float $transferQuantity11): static{$this->transferQuantity11 = $transferQuantity11;return $this;}public function getCoinType12(): ?string{return $this->coinType12;}public function setCoinType12(?string $coinType12): static{$this->coinType12 = $coinType12;return $this;}public function getCoinQuantity12(): ?float{return $this->coinQuantity12;}public function setCoinQuantity12(?float $coinQuantity12): static{$this->coinQuantity12 = $coinQuantity12;return $this;}public function getTransferQuantity12(): ?float{return $this->transferQuantity12;}public function setTransferQuantity12(?float $transferQuantity12): static{$this->transferQuantity12 = $transferQuantity12;return $this;}public function getCoinType13(): ?string{return $this->coinType13;}public function setCoinType13(?string $coinType13): static{$this->coinType13 = $coinType13;return $this;}public function getCoinQuantity13(): ?float{return $this->coinQuantity13;}public function setCoinQuantity13(?float $coinQuantity13): static{$this->coinQuantity13 = $coinQuantity13;return $this;}public function getTransferQuantity13(): ?float{return $this->transferQuantity13;}public function setTransferQuantity13(?float $transferQuantity13): static{$this->transferQuantity13 = $transferQuantity13;return $this;}public function getCoinType14(): ?string{return $this->coinType14;}public function setCoinType14(?string $coinType14): static{$this->coinType14 = $coinType14;return $this;}public function getCoinQuantity14(): ?float{return $this->coinQuantity14;}public function setCoinQuantity14(?float $coinQuantity14): static{$this->coinQuantity14 = $coinQuantity14;return $this;}public function getTransferQuantity14(): ?float{return $this->transferQuantity14;}public function setTransferQuantity14(?float $transferQuantity14): static{$this->transferQuantity14 = $transferQuantity14;return $this;}public function getCoinType15(): ?string{return $this->coinType15;}public function setCoinType15(?string $coinType15): static{$this->coinType15 = $coinType15;return $this;}public function getCoinQuantity15(): ?float{return $this->coinQuantity15;}public function setCoinQuantity15(?float $coinQuantity15): static{$this->coinQuantity15 = $coinQuantity15;return $this;}public function getTransferQuantity15(): ?float{return $this->transferQuantity15;}public function setTransferQuantity15(?float $transferQuantity15): static{$this->transferQuantity15 = $transferQuantity15;return $this;}public function getPage(): ?Page{return $this->page;}public function setPage(?Page $page): static{$this->page = $page;return $this;}/*** @return \DateTimeInterface|null*/public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}/*** @param \DateTimeInterface|null $createdAt*/public function setCreatedAt(?\DateTimeInterface $createdAt): void{$this->createdAt = $createdAt;}/*** @return \DateTimeInterface|null*/public function getCurrentDay(): ?\DateTimeInterface{return $this->currentDay;}/*** @param \DateTimeInterface|null $currentDay*/public function setCurrentDay(?\DateTimeInterface $currentDay): void{$this->currentDay = $currentDay;}/*** @return int|null*/public function getType(): ?int{return $this->type;}/*** @param int|null $type*/public function setType(?int $type): void{$this->type = $type;}/*** @return Collection<int, UserSalary>*/public function getUserSalary(): Collection{return $this->userSalary;}public function addUserSalary(UserSalary $userSalary): static{if (!$this->userSalary->contains($userSalary)) {$this->userSalary->add($userSalary);$userSalary->setFinancialPart($this);}return $this;}public function removeUserSalary(UserSalary $userSalary): static{if ($this->userSalary->removeElement($userSalary)) {// set the owning side to null (unless already changed)if ($userSalary->getFinancialPart() === $this) {$userSalary->setFinancialPart(null);}}return $this;}public function getIncomeType(): ?int{return $this->incomeType;}public function setIncomeType(?int $incomeType): static{$this->incomeType = $incomeType;return $this;}public function getComment(): ?string{return $this->comment;}public function setComment(?string $comment): static{$this->comment = $comment;return $this;}}