| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- namespace AppBundle\Entity\Billing;
- use AppBundle\Entity\AccessAndFunction\Access;
- use AppBundle\Entity\Booking\EducationalProject;
- 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;
- /**
- *
- * Fais le lien entre l'Access qui règle la facture et l'EducationalProject concerné
- *
- * @Iri("http://schema.org/EducationalProjectPayer")
- */
- #[ORM\Entity]
- class EducationalProjectPayer extends AbstractBillingPayer
- {
- /**
- * @var Access
- */
- #[Assert\Valid]
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\AccessAndFunction\Access', inversedBy: 'billingEducationalProjectPayers', cascade: ['persist'])]
- #[Groups(['educationalprojectpayer', 'educationalproject_details_billingreceivers', 'accessbilling_edit_billingeducationalprojectpayers'])]
- private $educationalProjectPayer;
- /**
- * @var EducationalProject
- */
- #[Assert\Valid]
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Booking\EducationalProject', inversedBy: 'billingReceivers', cascade: ['persist'])]
- #[Groups(['educationalprojectpayer', 'accessbilling_edit_billingeducationalprojectpayers'])]
- private $educationalProjectReceiver;
- /**
- * Set educationalProjectReceiver
- *
- * @param \AppBundle\Entity\Booking\EducationalProject $educationalProjectReceiver
- *
- * @return EducationalProjectPayer
- */
- public function setEducationalProjectReceiver(\AppBundle\Entity\Booking\EducationalProject $educationalProjectReceiver = null)
- {
- $this->educationalProjectReceiver = $educationalProjectReceiver;
- return $this;
- }
- /**
- * Get educationalProjectReceiver
- *
- * @return \AppBundle\Entity\Booking\EducationalProject
- */
- public function getEducationalProjectReceiver()
- {
- return $this->educationalProjectReceiver;
- }
- /**
- * Set educationalProjectPayer
- *
- * @param \AppBundle\Entity\AccessAndFunction\Access $educationalProjectPayer
- *
- * @return EducationalProjectPayer
- */
- public function setEducationalProjectPayer(\AppBundle\Entity\AccessAndFunction\Access $educationalProjectPayer = null)
- {
- $this->educationalProjectPayer = $educationalProjectPayer;
- return $this;
- }
- /**
- * Get educationalProjectPayer
- *
- * @return \AppBundle\Entity\AccessAndFunction\Access
- */
- public function getEducationalProjectPayer()
- {
- return $this->educationalProjectPayer;
- }
- }
|