| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Billing;
- use ApiPlatform\Metadata\ApiResource;
- use App\Entity\Product\IntangibleDiscountDetail;
- use DateTimeInterface;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- #[ApiResource(operations: [])]
- #[ORM\Entity]
- class FamilyQuotientBand
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private int $id;
- #[ORM\ManyToOne(targetEntity: FamilyQuotientModel::class, cascade: [], inversedBy: 'familyQuotientBands')]
- #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
- protected mixed $familyQuotientModel;
- #[ORM\OneToMany(
- mappedBy: 'familyQuotientBand',
- targetEntity: FamilyQuotientBandDetail::class,
- cascade: ['persist'],
- orphanRemoval: true,
- )]
- protected Collection $familyQuotientBandDetails;
- #[ORM\OneToMany(mappedBy: 'familyQuotientBand', targetEntity: IntangibleDiscountDetail::class, cascade: [], orphanRemoval: true)]
- protected Collection $intangibleDiscountDetails;
- function getId(): int
- {
- return $this->id;
- }
- function setId(int $id): self
- {
- $this->id = $id;
- return $this;
- }
- function getFamilyQuotientModel(): mixed
- {
- return $this->familyQuotientModel;
- }
- function setFamilyQuotientModel(mixed $familyQuotientModel): self
- {
- $this->familyQuotientModel = $familyQuotientModel;
- return $this;
- }
- function getFamilyQuotientBandDetails(): Collection
- {
- return $this->familyQuotientBandDetails;
- }
- function setFamilyQuotientBandDetails(Collection $familyQuotientBandDetails): self
- {
- $this->familyQuotientBandDetails = $familyQuotientBandDetails;
- return $this;
- }
- function getIntangibleDiscountDetails(): Collection
- {
- return $this->intangibleDiscountDetails;
- }
- function setIntangibleDiscountDetails(Collection $intangibleDiscountDetails): self
- {
- $this->intangibleDiscountDetails = $intangibleDiscountDetails;
- return $this;
- }
- }
|