| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?php
- /**
- * This file is auto-generated.
- */
- declare(strict_types=1);
- namespace App\Entity\Billing;
- use ApiPlatform\Metadata\ApiResource;
- use App;
- use App\Entity\AccessWish\AccessWish;
- use App\Entity\Organization\Organization;
- use DateTimeInterface;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- #[ApiResource(operations: [])]
- #[ORM\Entity]
- class BillSchedule
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private int $id;
- #[ORM\Column]
- protected mixed $label;
- #[ORM\Column(options: ['default' => false])]
- protected bool $isActive;
- #[ORM\Column]
- protected mixed $firstPayment;
- #[ORM\Column]
- protected mixed $periodicity;
- #[ORM\Column(type: 'integer', options: ['nullable' => true])]
- protected int $scheduleNumber;
- #[ORM\Column]
- protected mixed $firstBillScheduleDate;
- #[ORM\Column]
- protected mixed $paymentFirstMonth;
- #[ORM\Column(type: 'date', options: ['nullable' => true])]
- protected ?DateTimeInterface $createDate;
- #[ORM\Column(type: 'date', options: ['nullable' => true])]
- protected ?DateTimeInterface $updateDate;
- #[ORM\Column(type: 'integer', options: ['nullable' => true])]
- protected int $legacyId;
- #[ORM\Column(type: 'integer', options: ['nullable' => true])]
- protected int $createdBy;
- #[ORM\Column(type: 'integer', options: ['nullable' => true])]
- protected int $updatedBy;
- #[ORM\Column(options: ['default' => false])]
- protected bool $draft;
- #[ORM\ManyToOne(targetEntity: Organization::class, cascade: [], inversedBy: 'billSchedules')]
- #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
- protected App\Entity\Organization\Organization $organization;
- #[ORM\OneToMany(mappedBy: 'billSchedule', targetEntity: BillScheduleDate::class, cascade: ['persist'], orphanRemoval: true)]
- protected Collection $scheduleDates;
- #[ORM\OneToMany(mappedBy: 'billSchedule', targetEntity: AccessBilling::class, cascade: [], orphanRemoval: false)]
- protected Collection $accessBilling;
- #[ORM\OneToMany(mappedBy: 'billSchedule', targetEntity: AccessWish::class, cascade: [], orphanRemoval: false)]
- protected Collection $accessWishes;
- function getId(): int
- {
- return $this->id;
- }
- function setId(int $id): self
- {
- $this->id = $id;
- return $this;
- }
- function getLabel(): mixed
- {
- return $this->label;
- }
- function setLabel(mixed $label): self
- {
- $this->label = $label;
- return $this;
- }
- function getIsActive(): bool
- {
- return $this->isActive;
- }
- function setIsActive(bool $isActive): self
- {
- $this->isActive = $isActive;
- return $this;
- }
- function getFirstPayment(): mixed
- {
- return $this->firstPayment;
- }
- function setFirstPayment(mixed $firstPayment): self
- {
- $this->firstPayment = $firstPayment;
- return $this;
- }
- function getPeriodicity(): mixed
- {
- return $this->periodicity;
- }
- function setPeriodicity(mixed $periodicity): self
- {
- $this->periodicity = $periodicity;
- return $this;
- }
- function getScheduleNumber(): int
- {
- return $this->scheduleNumber;
- }
- function setScheduleNumber(int $scheduleNumber): self
- {
- $this->scheduleNumber = $scheduleNumber;
- return $this;
- }
- function getFirstBillScheduleDate(): mixed
- {
- return $this->firstBillScheduleDate;
- }
- function setFirstBillScheduleDate(mixed $firstBillScheduleDate): self
- {
- $this->firstBillScheduleDate = $firstBillScheduleDate;
- return $this;
- }
- function getPaymentFirstMonth(): mixed
- {
- return $this->paymentFirstMonth;
- }
- function setPaymentFirstMonth(mixed $paymentFirstMonth): self
- {
- $this->paymentFirstMonth = $paymentFirstMonth;
- return $this;
- }
- function getCreateDate(): DateTimeInterface
- {
- return $this->createDate;
- }
- function setCreateDate(DateTimeInterface $createDate): self
- {
- $this->createDate = $createDate;
- return $this;
- }
- function getUpdateDate(): DateTimeInterface
- {
- return $this->updateDate;
- }
- function setUpdateDate(DateTimeInterface $updateDate): self
- {
- $this->updateDate = $updateDate;
- return $this;
- }
- function getLegacyId(): int
- {
- return $this->legacyId;
- }
- function setLegacyId(int $legacyId): self
- {
- $this->legacyId = $legacyId;
- return $this;
- }
- function getCreatedBy(): int
- {
- return $this->createdBy;
- }
- function setCreatedBy(int $createdBy): self
- {
- $this->createdBy = $createdBy;
- return $this;
- }
- function getUpdatedBy(): int
- {
- return $this->updatedBy;
- }
- function setUpdatedBy(int $updatedBy): self
- {
- $this->updatedBy = $updatedBy;
- return $this;
- }
- function getDraft(): bool
- {
- return $this->draft;
- }
- function setDraft(bool $draft): self
- {
- $this->draft = $draft;
- return $this;
- }
- function getOrganization(): App\Entity\Organization\Organization
- {
- return $this->organization;
- }
- function setOrganization(App\Entity\Organization\Organization $organization): self
- {
- $this->organization = $organization;
- return $this;
- }
- function getScheduleDates(): Collection
- {
- return $this->scheduleDates;
- }
- function setScheduleDates(Collection $scheduleDates): self
- {
- $this->scheduleDates = $scheduleDates;
- return $this;
- }
- function getAccessBilling(): Collection
- {
- return $this->accessBilling;
- }
- function setAccessBilling(Collection $accessBilling): self
- {
- $this->accessBilling = $accessBilling;
- return $this;
- }
- function getAccessWishes(): Collection
- {
- return $this->accessWishes;
- }
- function setAccessWishes(Collection $accessWishes): self
- {
- $this->accessWishes = $accessWishes;
- return $this;
- }
- }
|