| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?php
- namespace AppBundle\Entity\Person;
- 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;
- /**
- * Parcours scolaire d'une Person
- *
- * @Iri("http://schema.org/SchoolingInEstablishment")
- */
- #[ORM\Entity]
- class SchoolingInEstablishment
- {
- use TimestampableEntity;
- use CreatorUpdaterEntity;
- /**
- * @var int
- */
- #[ORM\Column(type: 'integer')]
- #[ORM\Id]
- #[ORM\GeneratedValue(strategy: 'AUTO')]
- #[Groups(['schoolinginestablishment', 'access_details_person'])]
- private $id;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 255, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['schoolinginestablishment', 'access_details_person'])]
- private $establishmentName;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 255, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['schoolinginestablishment'])]
- private $cityName;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 255, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['schoolinginestablishment'])]
- private $disponibility;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 255, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['schoolinginestablishment', 'access_details_person'])]
- private $className;
- #[ORM\Column(type: 'integer', nullable: true)]
- #[Assert\Type(type: 'integer', message: 'invalid-integer')]
- #[Groups(['schoolinginestablishment'])]
- private $startYear;
- #[ORM\Column(type: 'integer', nullable: true)]
- #[Assert\Type(type: 'integer', message: 'invalid-integer')]
- #[Groups(['schoolinginestablishment'])]
- private $endYear;
- /**
- * @var Person
- */
- #[ORM\ManyToOne(targetEntity: 'Person', inversedBy: 'schoolingEstablisments')]
- #[Groups(['schoolinginestablishment'])]
- private $person;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 255, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['schoolinginestablishment', 'access_details_person'])]
- private $teacher;
- /**
- * 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 establishmentName.
- *
- * @param string $establishmentName
- *
- * @return $this
- */
- public function setEstablishmentName($establishmentName)
- {
- $this->establishmentName = $establishmentName;
- return $this;
- }
- /**
- * Gets establishmentName.
- *
- * @return string
- */
- public function getEstablishmentName()
- {
- return $this->establishmentName;
- }
- /**
- * Sets cityName.
- *
- * @param string $cityName
- *
- * @return $this
- */
- public function setCityName($cityName)
- {
- $this->cityName = $cityName;
- return $this;
- }
- /**
- * Gets cityName.
- *
- * @return string
- */
- public function getCityName()
- {
- return $this->cityName;
- }
- /**
- * Sets disponibility.
- *
- * @param string $disponibility
- *
- * @return $this
- */
- public function setDisponibility($disponibility)
- {
- $this->disponibility = $disponibility;
- return $this;
- }
- /**
- * Gets disponibility.
- *
- * @return string
- */
- public function getDisponibility()
- {
- return $this->disponibility;
- }
- /**
- * Sets className.
- *
- * @param string $className
- *
- * @return $this
- */
- public function setClassName($className)
- {
- $this->className = $className;
- return $this;
- }
- /**
- * Gets className.
- *
- * @return string
- */
- public function getClassName()
- {
- return $this->className;
- }
- /**
- * Sets person.
- *
- * @param Person $person
- *
- * @return $this
- */
- public function setPerson(Person $person = null)
- {
- $this->person = $person;
- return $this;
- }
- /**
- * Gets person.
- *
- * @return Person
- */
- public function getPerson()
- {
- return $this->person;
- }
- /**
- * Set teacher
- *
- * @param string $teacher
- *
- * @return SchoolingInEstablishment
- */
- public function setTeacher($teacher)
- {
- $this->teacher = $teacher;
- return $this;
- }
- /**
- * Get teacher
- *
- * @return string
- */
- public function getTeacher()
- {
- return $this->teacher;
- }
- /**
- * Set startYear
- *
- * @param integer $startYear
- *
- * @return SchoolingInEstablishment
- */
- public function setStartYear($startYear)
- {
- $this->startYear = $startYear;
- return $this;
- }
- /**
- * Get startYear
- *
- * @return integer
- */
- public function getStartYear()
- {
- return $this->startYear;
- }
- /**
- * Set endYear
- *
- * @param integer $endYear
- *
- * @return SchoolingInEstablishment
- */
- public function setEndYear($endYear)
- {
- $this->endYear = $endYear;
- return $this;
- }
- /**
- * Get endYear
- *
- * @return integer
- */
- public function getEndYear()
- {
- return $this->endYear;
- }
- }
|