| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?php
- namespace AppBundle\Entity\Billing;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\ORM\Mapping as ORM;
- use Dunglas\ApiBundle\Annotation\Iri;
- use Symfony\Component\Serializer\Annotation\Groups;
- use Symfony\Component\Validator\Constraints as Assert;
- use AppBundle\Entity\Traits\TimestampableEntity;
- use AppBundle\Entity\Traits\CreatorUpdaterEntity;
- /**
- * Définition d'une tranche de quotient familial
- *
- * @Iri("http://schema.org/FamilyQuotient")
- */
- #[ORM\Entity]
- class FamilyQuotient
- {
- use TimestampableEntity;
- use CreatorUpdaterEntity;
- /**
- * @var int
- */
- #[ORM\Column(type: 'integer')]
- #[ORM\Id]
- #[ORM\GeneratedValue(strategy: 'AUTO')]
- #[Groups(['familyquotient'])]
- private $id;
- /**
- * @var BillingSetting
- */
- #[ORM\ManyToOne(targetEntity: 'BillingSetting', inversedBy: 'familyQuotients')]
- #[ORM\JoinColumn(nullable: false)]
- #[Assert\NotNull]
- #[Groups(['familyquotient'])]
- private $billingSetting;
- /**
- * @var string
- *
- *
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['familyquotient', 'familyquotient_reference', 'payer_list_accessbilling', 'fusion_accesses_accessbilling', 'student_list_accessbilling'])]
- private $sliceName;
- /**
- * @var string
- *
- *
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['familyquotient', 'familyquotient_reference'])]
- private $lowerBound;
- /**
- * @var string
- *
- *
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['familyquotient', 'familyquotient_reference'])]
- private $upperBound;
- /**
- * @var ArrayCollection<AccessBilling>
- */
- #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Billing\AccessBilling', mappedBy: 'familyQuotient')]
- #[Groups(['familyquotient_accessbilling'])]
- private $accessBilling;
- /**
- * @var ArrayCollection<IntangibleDiscountDetail>
- */
- #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Product\IntangibleDiscountDetail', mappedBy: 'familyQuotient')]
- #[Groups(['familyquotient_intangiblediscountdetail'])]
- private $intangibleDiscountDetails;
- /**
- * Constructor
- */
- public function __construct()
- {
- $this->accessBilling = new ArrayCollection();
- $this->intangibleDiscountDetails = new ArrayCollection();
- }
- /**
- * Sets id.
- *
- * @param int $id
- *
- * @return $this
- */
- public function setId($id)
- {
- $this->id = $id;
- return $this;
- }
- /**
- * Gets id.
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set sliceName
- *
- * @param string $sliceName
- *
- * @return FamilyQuotient
- */
- public function setSliceName($sliceName)
- {
- $this->sliceName = $sliceName;
- return $this;
- }
- /**
- * Get sliceName
- *
- * @return string
- */
- public function getSliceName()
- {
- return $this->sliceName;
- }
- /**
- * Set lowerBound
- *
- * @param string $lowerBound
- *
- * @return FamilyQuotient
- */
- public function setLowerBound($lowerBound)
- {
- $this->lowerBound = $lowerBound;
- return $this;
- }
- /**
- * Get lowerBound
- *
- * @return string
- */
- public function getLowerBound()
- {
- return $this->lowerBound;
- }
- /**
- * Set upperBound
- *
- * @param string $upperBound
- *
- * @return FamilyQuotient
- */
- public function setUpperBound($upperBound)
- {
- $this->upperBound = $upperBound;
- return $this;
- }
- /**
- * Get upperBound
- *
- * @return string
- */
- public function getUpperBound()
- {
- return $this->upperBound;
- }
- /**
- * Set billingSetting
- *
- * @param \AppBundle\Entity\Billing\BillingSetting $billingSetting
- *
- * @return FamilyQuotient
- */
- public function setBillingSetting(\AppBundle\Entity\Billing\BillingSetting $billingSetting)
- {
- $this->billingSetting = $billingSetting;
- return $this;
- }
- /**
- * Get billingSetting
- *
- * @return \AppBundle\Entity\Billing\BillingSetting
- */
- public function getBillingSetting()
- {
- return $this->billingSetting;
- }
- /**
- * Add accessBilling
- *
- * @param \AppBundle\Entity\Billing\AccessBilling $accessBilling
- *
- * @return FamilyQuotient
- */
- public function addAccessBilling(\AppBundle\Entity\Billing\AccessBilling $accessBilling)
- {
- $this->accessBilling[] = $accessBilling;
- return $this;
- }
- /**
- * Remove accessBilling
- *
- * @param \AppBundle\Entity\Billing\AccessBilling $accessBilling
- */
- public function removeAccessBilling(\AppBundle\Entity\Billing\AccessBilling $accessBilling)
- {
- $this->accessBilling->removeElement($accessBilling);
- }
- /**
- * Get accessBilling
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getAccessBilling()
- {
- return $this->accessBilling;
- }
- /**
- * Add intangibleDiscountDetail
- *
- * @param \AppBundle\Entity\Product\IntangibleDiscountDetail $intangibleDiscountDetail
- *
- * @return FamilyQuotient
- */
- public function addIntangibleDiscountDetail(\AppBundle\Entity\Product\IntangibleDiscountDetail $intangibleDiscountDetail)
- {
- $this->intangibleDiscountDetails[] = $intangibleDiscountDetail;
- return $this;
- }
- /**
- * Remove intangibleDiscountDetail
- *
- * @param \AppBundle\Entity\Product\IntangibleDiscountDetail $intangibleDiscountDetail
- */
- public function removeIntangibleDiscountDetail(\AppBundle\Entity\Product\IntangibleDiscountDetail $intangibleDiscountDetail)
- {
- $this->intangibleDiscountDetails->removeElement($intangibleDiscountDetail);
- }
- /**
- * Get intangibleDiscountDetails
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getIntangibleDiscountDetails()
- {
- return $this->intangibleDiscountDetails;
- }
- }
|