| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989 |
- <?php
- namespace AppBundle\Entity\Core;
- use AppBundle\AppBundle;
- use AppBundle\Entity\AccessWish\DocumentWish;
- use AppBundle\Entity\Booking\CalendarSynchro;
- use AppBundle\Entity\Booking\EventReport;
- use AppBundle\Entity\Message\TemplateSystem;
- use AppBundle\Entity\Organization\Organization;
- use AppBundle\Entity\Organization\Parameters;
- use AppBundle\Entity\Person\Person;
- 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;
- use Symfony\Component\Validator\Context\ExecutionContextInterface;
- /**
- * Tout type de fichier associé à un Access ou une Organization
- *
- * @Iri("http://schema.org/File")
- */
- #[ORM\Entity(repositoryClass: 'AppBundle\Entity\Core\Repository\FileRepository')]
- #[ORM\Table(name: 'File')]
- #[ORM\Index(name: 'visibility', columns: ['visibility'])]
- #[ORM\Index(name: 'folder', columns: ['folder'])]
- class File
- {
- use TimestampableEntity;
- use CreatorUpdaterEntity;
- /**
- * @var int
- */
- #[ORM\Column(type: 'integer')]
- #[ORM\Id]
- #[ORM\GeneratedValue(strategy: 'AUTO')]
- #[Groups(['file', 'report_card', 'email_detail', 'access_details_person', 'organization_details', 'booking_event_documents', 'event_details', 'student_registration_person', 'onlineregistration_infos', 'worksbyusers_db_work'])]
- private $id;
- /**
- * @var string
- *
- *
- */
- #[ORM\Column(type: 'string', length: 255)]
- #[Assert\Type(type: 'string')]
- #[Assert\NotNull]
- private $slug;
- /**
- * @var string
- *
- *
- */
- #[ORM\Column(type: 'string', length: 255)]
- #[Assert\Type(type: 'string')]
- #[Assert\NotNull]
- private $path;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 255)]
- #[Assert\Type(type: 'string')]
- #[Assert\NotNull]
- #[Groups(['file', 'report_card', 'access_details_person', 'booking_event_documents_files', 'event_details_files', 'event_details_eventreports', 'my_bills_show_bills', 'access_files_person', 'email_detail_files', 'student_registration_person', 'onlineregistration_infos_introductionfiles', 'onlineregistration_infos_introductionfilesnewenrolments', 'worksbyusers_db_work'])]
- private $name;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 255, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['file'])]
- private $mimeType;
- /**
- * @var Person
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Person\Person', inversedBy: 'files')]
- #[ORM\JoinColumn(name: 'person_id', referencedColumnName: 'id')]
- #[Groups(['file', 'booking_event_documents_files'])]
- private $person;
- /**
- * @var Organization
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Organization\Organization', inversedBy: 'files')]
- #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id')]
- #[Groups(['file', 'booking_event_documents_files', 'email_detail_files'])]
- private $organization;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string')]
- #[Assert\Type(type: 'string')]
- #[Assert\NotNull]
- #[Assert\Choice(callback: ['\AppBundle\Enum\Core\FileVisibilityEnum', 'toArray'])]
- #[Groups(['file'])]
- private $visibility;
- /**
- * @var array
- */
- #[ORM\Column(type: 'json_array', nullable: true)]
- #[Groups(['file'])]
- private $accessRoles;
- /**
- * @var ArrayCollection<Person>
- */
- #[ORM\ManyToMany(targetEntity: 'AppBundle\Entity\Person\Person', inversedBy: 'personFiles')]
- #[Groups(['file_person'])]
- private $accessPersons;
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['file', 'booking_event_files', 'booking_event_documents_files'])]
- private $config;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string')]
- #[Assert\Type(type: 'string')]
- #[Assert\NotNull]
- #[Assert\Choice(callback: ['\AppBundle\Enum\Core\FileFolderEnum', 'toArray'])]
- #[Groups(['file', 'booking_event_files', 'booking_event_documents_files'])]
- private $folder;
- /**
- * @var ArrayCollection<Event>
- */
- #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Booking\Event', mappedBy: 'image')]
- #[Groups(['file_event'])]
- private $events;
- /**
- * @var ArrayCollection<Network>
- */
- #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Network\Network', mappedBy: 'image')]
- #[Groups(['file_network'])]
- private $networks;
- /**
- * @var ArrayCollection<Activity>
- */
- #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Organization\Activity', mappedBy: 'logo')]
- #[Groups(['file_activity'])]
- private $activityLogos;
- /**
- * @var ArrayCollection<Activity>
- */
- #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Organization\Activity', mappedBy: 'imageActivity')]
- #[Groups(['file_activity'])]
- private $activityImages;
- /**
- * @var ArrayCollection<Organization>
- */
- #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Organization\Organization', mappedBy: 'logo')]
- #[Groups(['file_organization'])]
- private $organizationLogos;
- /**
- * @var ArrayCollection<Organization>
- */
- #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Organization\Organization', mappedBy: 'image')]
- #[Groups(['file_organization'])]
- private $organizationImages;
- /**
- * @var ArrayCollection<Person>
- */
- #[ORM\OneToMany(targetEntity: 'AppBundle\Entity\Person\Person', mappedBy: 'image')]
- #[Groups(['file_person'])]
- private $personImages;
- /**
- * @var Parameters
- */
- #[ORM\OneToOne(targetEntity: 'AppBundle\Entity\Organization\Parameters', mappedBy: 'qrCode', fetch: 'EAGER')]
- #[Groups(['file'])]
- private $qrCode;
- /**
- * @var EventReport
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Booking\EventReport', inversedBy: 'files')]
- #[ORM\JoinColumn(onDelete: 'CASCADE')]
- #[Groups(['file'])]
- private $eventReport;
- /**
- * @var DocumentWish
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\AccessWish\DocumentWish', inversedBy: 'files', cascade: ['persist'])]
- #[ORM\JoinColumn(onDelete: 'CASCADE')]
- #[Groups(['file'])]
- private $documentWish;
- /**
- * @var DocumentWish
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Organization\OnlineRegistrationSettings', inversedBy: 'introductionFiles', cascade: ['persist'])]
- #[ORM\JoinColumn(onDelete: 'CASCADE')]
- #[Groups(['file'])]
- private $onlineRegistrationSetting;
- /**
- * @var DocumentWish
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Organization\OnlineRegistrationSettings', inversedBy: 'introductionFilesNewEnrolments', cascade: ['persist'])]
- #[ORM\JoinColumn(onDelete: 'CASCADE')]
- #[Groups(['file'])]
- private $onlineRegistrationSettingNewEnrolments;
- /**
- * @var DocumentWish
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Booking\Work', inversedBy: 'files', cascade: ['persist'])]
- #[ORM\JoinColumn(onDelete: 'CASCADE')]
- #[Groups(['file'])]
- private $work;
- /**
- * @var CalendarSynchro
- */
- #[ORM\OneToOne(targetEntity: 'AppBundle\Entity\Booking\CalendarSynchro', mappedBy: 'file', fetch: 'EAGER')]
- #[Groups(['file'])]
- private $calendarSynchro;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', options: ['default' => 'NONE'])]
- #[Assert\Type(type: 'string')]
- #[Assert\NotNull]
- #[Assert\Choice(callback: ['\AppBundle\Enum\Core\FileTypeEnum', 'toArray'])]
- #[Groups(['file', 'booking_event_files', 'access_files_person'])]
- private $type = "NONE";
- /**
- * @var \DateTime
- */
- #[ORM\Column(type: 'date', nullable: true)]
- #[Assert\Date]
- #[Groups(['file', 'access_files_person'])]
- private $availabilityDate;
- /**
- * @var integer
- */
- #[ORM\Column(type: 'integer', nullable: true)]
- #[Groups(['file'])]
- private $size;
- /**
- * @var bool
- */
- #[ORM\Column(type: 'boolean', options: ['default' => 0])]
- #[Assert\Type(type: 'boolean')]
- #[Assert\NotNull]
- #[Groups(['file'])]
- private $isTemporaryFile = false;
- /**
- * @var TemplateSystem
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Message\TemplateSystem', inversedBy: 'files', cascade: ['persist'])]
- #[ORM\JoinColumn(onDelete: 'CASCADE')]
- #[Groups(['file'])]
- private $templateSystem;
- public function __construct()
- {
- $this->accessPersons = new ArrayCollection();
- $this->events = new ArrayCollection();
- $this->networks = new ArrayCollection();
- $this->activityLogos = new ArrayCollection();
- $this->organizationLogos = new ArrayCollection();
- $this->organizationImages = new ArrayCollection();
- $this->personImages = 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;
- }
- /**
- * Gets slug.
- *
- * @return string
- */
- public function getSlug() {
- return $this->slug;
- }
- /**
- * Sets slug.
- *
- * @param string $slug
- * @return $this
- */
- public function setSlug($slug) {
- $this->slug = $slug;
- return $this;
- }
- /**
- * Sets path.
- *
- * @param string $path
- *
- * @return $this
- */
- public function setPath($path)
- {
- $this->path = $path;
- return $this;
- }
- /**
- * Gets path.
- *
- * @return string
- */
- public function getPath()
- {
- return $this->path;
- }
- /**
- * Sets name.
- *
- * @param string $name
- *
- * @return $this
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * Gets name.
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Sets mimeType.
- *
- * @param string $mimeType
- *
- * @return $this
- */
- public function setMimeType($mimeType)
- {
- $this->mimeType = $mimeType;
- return $this;
- }
- /**
- * Gets mimeType.
- *
- * @return string
- */
- public function getMimeType()
- {
- return $this->mimeType;
- }
- /**
- * @return Person
- */
- public function getPerson()
- {
- return $this->person;
- }
- /**
- * @param Person $person
- * @return $this
- */
- public function setPerson($person)
- {
- $this->person = $person;
- return $this;
- }
- /**
- * @return Organization
- */
- public function getOrganization()
- {
- return $this->organization;
- }
- /**
- * @param Organization $organization
- * @return $this
- */
- public function setOrganization($organization)
- {
- $this->organization = $organization;
- return $this;
- }
- /**
- * Adds person can access the file.
- *
- * @param Person $person
- *
- * @return $this
- */
- public function addAccessPerson(Person $person)
- {
- $this->accessPersons->add($person);
- return $this;
- }
- /**
- * Removes person has access the file.
- *
- * @param Person $person
- *
- * @return $this
- */
- public function removeAccessPerson(Person $person)
- {
- $this->accessPersons->removeElement($person);
- return $this;
- }
- /**
- * Gets accessPersons.
- *
- * @return ArrayCollection<Person>
- */
- public function getAccessPersons()
- {
- return $this->accessPersons;
- }
- /**
- * @return string
- */
- public function getVisibility()
- {
- return $this->visibility;
- }
- /**
- * @param string $visibility
- * @return $this
- */
- public function setVisibility($visibility)
- {
- $this->visibility = $visibility;
- return $this;
- }
- /**
- * @return array
- */
- public function getAccessRoles()
- {
- return $this->accessRoles;
- }
- /**
- * @param array $accessRoles
- * @return $this
- */
- public function setAccessRoles($accessRoles)
- {
- $this->accessRoles = $accessRoles;
- return $this;
- }
- /**
- * @return mixed
- */
- public function getConfig()
- {
- return $this->config;
- }
- /**
- * @param mixed $config
- * @return $this
- */
- public function setConfig($config)
- {
- $this->config = $config;
- return $this;
- }
- /**
- * Set folder
- *
- * @param string $folder
- *
- * @return $this
- */
- public function setFolder($folder)
- {
- $this->folder = $folder;
- return $this;
- }
- /**
- * Get folder
- *
- * @return string
- */
- public function getFolder()
- {
- return $this->folder;
- }
- #[Assert\Callback]
- public function validatePersonOrOrganization(ExecutionContextInterface $context)
- {
- if ((empty($this->person) && empty($this->organization))) {
- $context->buildViolation('You must specify one Person or one Organization')->atPath('person')->addViolation();
- $context->buildViolation('You must specify one Person or one Organization')->atPath('organization')->addViolation();
- }
- }
- /**
- * Add event
- *
- * @param \AppBundle\Entity\Booking\Event $event
- *
- * @return File
- */
- public function addEvent(\AppBundle\Entity\Booking\Event $event)
- {
- $this->events[] = $event;
- return $this;
- }
- /**
- * Remove event
- *
- * @param \AppBundle\Entity\Booking\Event $event
- */
- public function removeEvent(\AppBundle\Entity\Booking\Event $event)
- {
- $this->events->removeElement($event);
- }
- /**
- * Get events
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getEvents()
- {
- return $this->events;
- }
- /**
- * Add network
- *
- * @param \AppBundle\Entity\Network\Network $network
- *
- * @return File
- */
- public function addNetwork(\AppBundle\Entity\Network\Network $network)
- {
- $this->networks[] = $network;
- return $this;
- }
- /**
- * Remove network
- *
- * @param \AppBundle\Entity\Network\Network $network
- */
- public function removeNetwork(\AppBundle\Entity\Network\Network $network)
- {
- $this->networks->removeElement($network);
- }
- /**
- * Get networks
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getNetworks()
- {
- return $this->networks;
- }
- /**
- * Add activityLogo
- *
- * @param \AppBundle\Entity\Organization\Activity $activityLogo
- *
- * @return File
- */
- public function addActivityLogo(\AppBundle\Entity\Organization\Activity $activityLogo)
- {
- $this->activityLogos[] = $activityLogo;
- return $this;
- }
- /**
- * Remove activityLogo
- *
- * @param \AppBundle\Entity\Organization\Activity $activityLogo
- */
- public function removeActivityLogo(\AppBundle\Entity\Organization\Activity $activityLogo)
- {
- $this->activityLogos->removeElement($activityLogo);
- }
- /**
- * Get activityLogos
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getActivityLogos()
- {
- return $this->activityLogos;
- }
- /**
- * Add activityImage
- *
- * @param \AppBundle\Entity\Organization\Activity $activityImage
- *
- * @return File
- */
- public function addActivityImage(\AppBundle\Entity\Organization\Activity $activityImage)
- {
- $this->activityImages[] = $activityImage;
- return $this;
- }
- /**
- * Remove activityImage
- *
- * @param \AppBundle\Entity\Organization\Activity $activityImage
- */
- public function removeActivityImage(\AppBundle\Entity\Organization\Activity $activityImage)
- {
- $this->activityImages->removeElement($activityImage);
- }
- /**
- * Get activityImages
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getActivityImages()
- {
- return $this->activityImages;
- }
- /**
- * Add organizationLogo
- *
- * @param \AppBundle\Entity\Organization\Organization $organizationLogo
- *
- * @return File
- */
- public function addOrganizationLogo(\AppBundle\Entity\Organization\Organization $organizationLogo)
- {
- $this->organizationLogos[] = $organizationLogo;
- return $this;
- }
- /**
- * Remove organizationLogo
- *
- * @param \AppBundle\Entity\Organization\Organization $organizationLogo
- */
- public function removeOrganizationLogo(\AppBundle\Entity\Organization\Organization $organizationLogo)
- {
- $this->organizationLogos->removeElement($organizationLogo);
- }
- /**
- * Get organizationLogos
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getOrganizationLogos()
- {
- return $this->organizationLogos;
- }
- /**
- * Add organizationImage
- *
- * @param \AppBundle\Entity\Organization\Organization $organizationImage
- *
- * @return File
- */
- public function addOrganizationImage(\AppBundle\Entity\Organization\Organization $organizationImage)
- {
- $this->organizationImages[] = $organizationImage;
- return $this;
- }
- /**
- * Remove organizationImage
- *
- * @param \AppBundle\Entity\Organization\Organization $organizationImage
- */
- public function removeOrganizationImage(\AppBundle\Entity\Organization\Organization $organizationImage)
- {
- $this->organizationImages->removeElement($organizationImage);
- }
- /**
- * Get organizationImages
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getOrganizationImages()
- {
- return $this->organizationImages;
- }
- /**
- * Add personImage
- *
- * @param \AppBundle\Entity\Person\Person $personImage
- *
- * @return File
- */
- public function addPersonImage(\AppBundle\Entity\Person\Person $personImage)
- {
- $this->personImages[] = $personImage;
- return $this;
- }
- /**
- * Remove personImage
- *
- * @param \AppBundle\Entity\Person\Person $personImage
- */
- public function removePersonImage(\AppBundle\Entity\Person\Person $personImage)
- {
- $this->personImages->removeElement($personImage);
- }
- /**
- * Get personImages
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getPersonImages()
- {
- return $this->personImages;
- }
- /**
- * Set qrCode
- *
- * @param $qrCode
- *
- * @return File
- */
- public function setQrCode($qrCode)
- {
- $this->qrCode = $qrCode;
- return $this;
- }
- /**
- * Get qrCode
- *
- * @return string
- */
- public function getQrCode()
- {
- return $this->qrCode;
- }
- /**
- * Set type
- *
- * @param string $type
- *
- * @return File
- */
- public function setType($type)
- {
- $this->type = $type;
- return $this;
- }
- /**
- * Get type
- *
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * @return EventReport
- */
- public function getEventReport()
- {
- return $this->eventReport;
- }
- /**
- * @param EventReport $eventReport
- * @return $this
- */
- public function setEventReport($eventReport)
- {
- $this->eventReport = $eventReport;
- return $this;
- }
- /**
- * Set availabilityDate
- *
- * @param \DateTime $availabilityDate
- *
- * @return File
- */
- public function setAvailabilityDate($availabilityDate)
- {
- $this->availabilityDate = $availabilityDate;
- return $this;
- }
- /**
- * Get availabilityDate
- *
- * @return \DateTime
- */
- public function getAvailabilityDate()
- {
- return $this->availabilityDate;
- }
- /**
- * Set documentWish
- *
- * @param \AppBundle\Entity\AccessWish\DocumentWish $documentWish
- *
- * @return File
- */
- public function setDocumentWish(\AppBundle\Entity\AccessWish\DocumentWish $documentWish = null)
- {
- $this->documentWish = $documentWish;
- return $this;
- }
- /**
- * Get documentWish
- *
- * @return \AppBundle\Entity\AccessWish\DocumentWish
- */
- public function getDocumentWish()
- {
- return $this->documentWish;
- }
- /**
- * Set size
- *
- * @param integer $size
- *
- * @return File
- */
- public function setSize($size)
- {
- $this->size = $size;
- return $this;
- }
- /**
- * Get size
- *
- * @return integer
- */
- public function getSize()
- {
- return $this->size;
- }
- /**
- * @return bool
- */
- public function isTemporaryFile()
- {
- return $this->isTemporaryFile;
- }
- /**
- * @param bool $isTemporaryFile
- */
- public function setIsTemporaryFile($isTemporaryFile)
- {
- $this->isTemporaryFile = $isTemporaryFile;
- return $this;
- }
- /**
- * Set calendarSynchro
- *
- * @param \AppBundle\Entity\Booking\CalendarSynchro $calendarSynchro
- *
- * @return File
- */
- public function setCalendarSynchro(\AppBundle\Entity\Booking\CalendarSynchro $calendarSynchro = null)
- {
- $this->calendarSynchro = $calendarSynchro;
- return $this;
- }
- /**
- * Get calendarSynchro
- *
- * @return \AppBundle\Entity\Booking\CalendarSynchro
- */
- public function getCalendarSynchro()
- {
- return $this->calendarSynchro;
- }
- /**
- * Get isTemporaryFile
- *
- * @return boolean
- */
- public function getIsTemporaryFile()
- {
- return $this->isTemporaryFile;
- }
- /**
- * Set onlineRegistrationSetting
- *
- * @param \AppBundle\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSetting
- *
- * @return File
- */
- public function setOnlineRegistrationSetting(\AppBundle\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSetting = null)
- {
- $this->onlineRegistrationSetting = $onlineRegistrationSetting;
- return $this;
- }
- /**
- * Get onlineRegistrationSetting
- *
- * @return \AppBundle\Entity\Organization\OnlineRegistrationSettings
- */
- public function getOnlineRegistrationSetting()
- {
- return $this->onlineRegistrationSetting;
- }
- /**
- * Set templateSystem
- *
- * @param TemplateSystem $templateSystem
- *
- * @return File
- */
- public function setTemplateSystem(TemplateSystem $templateSystem = null)
- {
- $this->templateSystem = $templateSystem;
- return $this;
- }
- /**
- * Get templateSystem
- *
- * @return TemplateSystem
- */
- public function getTemplateSystem()
- {
- return $this->templateSystem;
- }
- /**
- * Set work
- *
- * @param \AppBundle\Entity\Booking\Work $work
- *
- * @return File
- */
- public function setWork(\AppBundle\Entity\Booking\Work $work = null)
- {
- $this->work = $work;
- return $this;
- }
- /**
- * Get work
- *
- * @return \AppBundle\Entity\Booking\Work
- */
- public function getWork()
- {
- return $this->work;
- }
- /**
- * Set onlineRegistrationSettingNewEnrolments
- *
- * @param \AppBundle\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettingNewEnrolments
- *
- * @return File
- */
- public function setOnlineRegistrationSettingNewEnrolments(\AppBundle\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettingNewEnrolments = null)
- {
- $this->onlineRegistrationSettingNewEnrolments = $onlineRegistrationSettingNewEnrolments;
- return $this;
- }
- /**
- * Get onlineRegistrationSettingNewEnrolments
- *
- * @return \AppBundle\Entity\Organization\OnlineRegistrationSettings
- */
- public function getOnlineRegistrationSettingNewEnrolments()
- {
- return $this->onlineRegistrationSettingNewEnrolments;
- }
- }
|