| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <?php
- namespace AppBundle\Entity\Education;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Serializer\Annotation\Groups;
- use Symfony\Component\Validator\Constraints as Assert;
- use AppBundle\Entity\Traits\TimestampableEntity;
- use AppBundle\Entity\Traits\CreatorUpdaterEntity;
- /**
- * (Non utilisé, à confirmer)
- */
- #[ORM\Entity]
- class CycleByEducation
- {
- use TimestampableEntity;
- use CreatorUpdaterEntity;
- /**
- * @var int
- */
- #[ORM\Column(type: 'integer')]
- #[ORM\Id]
- #[ORM\GeneratedValue(strategy: 'AUTO')]
- #[Groups(['cyclebyeducation'])]
- private $id;
- /**
- * @var string
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Education\Education', inversedBy: 'cycleByEducations')]
- #[Assert\NotNull]
- #[Groups(['cyclebyeducation'])]
- private $education;
- /**
- * @var bool
- */
- #[ORM\Column(type: 'boolean', options: ['default' => true])]
- #[Assert\Type(type: 'boolean')]
- #[Assert\NotNull]
- #[Groups(['cyclebyeducation'])]
- private $isActive = true;
- /**
- * @var string
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Education\Cycle')]
- #[Assert\NotNull]
- #[Groups(['cyclebyeducation', 'access_details_education_student'])]
- private $cycle;
- /**
- * @var integer
- */
- #[ORM\Column(type: 'integer', nullable: true)]
- #[Assert\Type(type: 'integer', message: 'invalid-integer')]
- #[Groups(['cyclebyeducation', 'access_details_education_student'])]
- private $years;
- /**
- * 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;
- }
- /**
- * Sets education.
- *
- * @param string $education
- *
- * @return $this
- */
- public function setEducation($education)
- {
- $this->education = $education;
- return $this;
- }
- /**
- * Gets education.
- *
- * @return string
- */
- public function getEducation()
- {
- return $this->education;
- }
- /**
- * Set isActive
- *
- * @param boolean $isActive
- *
- * @return CycleByNotation
- */
- public function setIsActive($isActive)
- {
- $this->isActive = $isActive;
- return $this;
- }
- /**
- * Get isActive
- *
- * @return boolean
- */
- public function getIsActive()
- {
- return $this->isActive;
- }
- /**
- * Sets cycle.
- *
- * @param string $cycle
- *
- * @return $this
- */
- public function setCycle($cycle)
- {
- $this->cycle = $cycle;
- return $this;
- }
- /**
- * Gets cycle.
- *
- * @return string
- */
- public function getCycle()
- {
- return $this->cycle;
- }
- /**
- * Sets years.
- *
- * @param integer $years
- *
- * @return $this
- */
- public function setYears($years)
- {
- $this->years = $years;
- return $this;
- }
- /**
- * Gets years.
- *
- * @return integer
- */
- public function getYears()
- {
- return $this->years;
- }
- }
|