|
|
@@ -0,0 +1,319 @@
|
|
|
+<?php
|
|
|
+namespace Opentalent\OtCore\Domain\Model;
|
|
|
+
|
|
|
+use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
|
|
+
|
|
|
+/**
|
|
|
+ * FederationStructure
|
|
|
+ *
|
|
|
+ * Similar to the Organization object, this entity is created from the federation_structures api route,
|
|
|
+ * which is designed to return the structures belonging to a federation
|
|
|
+ */
|
|
|
+class FederationStructure extends AbstractEntity
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * id
|
|
|
+ *
|
|
|
+ * @var int
|
|
|
+ */
|
|
|
+ protected $id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * name
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ protected $name;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * principalType
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ protected $principalType;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * addressCity
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ protected $addressCity;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * postalCode
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ protected $postalCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * streetAdress
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ protected $streetAddress;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * latitude
|
|
|
+ *
|
|
|
+ * @var float
|
|
|
+ */
|
|
|
+ protected $latitude;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * longitude
|
|
|
+ *
|
|
|
+ * @var float
|
|
|
+ */
|
|
|
+ protected $longitude;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * country
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ protected $country;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * logo
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ protected $logo_id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * parents
|
|
|
+ *
|
|
|
+ * @var string
|
|
|
+ */
|
|
|
+ protected $parents;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the id
|
|
|
+ *
|
|
|
+ * @return int $id
|
|
|
+ */
|
|
|
+ public function getId(): int
|
|
|
+ {
|
|
|
+ return $this->id;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the id
|
|
|
+ *
|
|
|
+ * @param int $id
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function setId(int $id)
|
|
|
+ {
|
|
|
+ $this->id = $id;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the name
|
|
|
+ *
|
|
|
+ * @return string $name
|
|
|
+ */
|
|
|
+ public function getName(): ?string
|
|
|
+ {
|
|
|
+ return $this->name;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the name
|
|
|
+ *
|
|
|
+ * @param string|null $name
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function setName(?string $name)
|
|
|
+ {
|
|
|
+ $this->name = $name;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the principalType
|
|
|
+ *
|
|
|
+ * @return string $principalType
|
|
|
+ */
|
|
|
+ public function getPrincipalType(): ?string
|
|
|
+ {
|
|
|
+ return $this->principalType;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the principalType
|
|
|
+ *
|
|
|
+ * @param string|null $principalType
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function setPrincipalType(?string $principalType)
|
|
|
+ {
|
|
|
+ $this->principalType = $principalType;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the addressCity
|
|
|
+ *
|
|
|
+ * @return string $addressCity
|
|
|
+ */
|
|
|
+ public function getAddressCity(): ?string
|
|
|
+ {
|
|
|
+ return $this->addressCity;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the addressCity
|
|
|
+ *
|
|
|
+ * @param string|null $addressCity
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function setAddressCity(?string $addressCity)
|
|
|
+ {
|
|
|
+ $this->addressCity = $addressCity;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the postalCode
|
|
|
+ *
|
|
|
+ * @return string $postalCode
|
|
|
+ */
|
|
|
+ public function getPostalCode(): ?string
|
|
|
+ {
|
|
|
+ return $this->postalCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the postalCode
|
|
|
+ *
|
|
|
+ * @param string|null $postalCode
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function setPostalCode(?string $postalCode)
|
|
|
+ {
|
|
|
+ $this->postalCode = $postalCode;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the streetAddress
|
|
|
+ *
|
|
|
+ * @return string $streetAddress
|
|
|
+ */
|
|
|
+ public function getStreetAddress(): ?string
|
|
|
+ {
|
|
|
+ return $this->streetAddress;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the streetAdress
|
|
|
+ *
|
|
|
+ * @param string|null $streetAddress
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function setStreetAddress(?string $streetAddress)
|
|
|
+ {
|
|
|
+ $this->streetAddress = $streetAddress;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the latitude
|
|
|
+ *
|
|
|
+ * @return float $latitude
|
|
|
+ */
|
|
|
+ public function getLatitude(): ?float
|
|
|
+ {
|
|
|
+ return $this->latitude;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the latitude
|
|
|
+ *
|
|
|
+ * @param float|null $latitude
|
|
|
+ */
|
|
|
+ public function setLatitude(?float $latitude)
|
|
|
+ {
|
|
|
+ $this->latitude = $latitude;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the longitude
|
|
|
+ *
|
|
|
+ * @return float $longitude
|
|
|
+ */
|
|
|
+ public function getLongitude(): ?float
|
|
|
+ {
|
|
|
+ return $this->longitude;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the longitude
|
|
|
+ *
|
|
|
+ * @param float|null $longitude
|
|
|
+ */
|
|
|
+ public function setLongitude(?float $longitude)
|
|
|
+ {
|
|
|
+ $this->longitude = $longitude;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the country
|
|
|
+ *
|
|
|
+ * @return string $country
|
|
|
+ */
|
|
|
+ public function getCountry(): ?string
|
|
|
+ {
|
|
|
+ return $this->country;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the country
|
|
|
+ *
|
|
|
+ * @param string|null $country
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function setCountry(?string $country)
|
|
|
+ {
|
|
|
+ $this->country = $country;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the logo
|
|
|
+ *
|
|
|
+ * @return string $logo_id
|
|
|
+ */
|
|
|
+ public function getLogoId(): ?string
|
|
|
+ {
|
|
|
+ return $this->logo_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the logo
|
|
|
+ *
|
|
|
+ * @param string|null $logo_id
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function setLogoId(?string $logo_id)
|
|
|
+ {
|
|
|
+ $this->logo_id = $logo_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Returns the parents
|
|
|
+ *
|
|
|
+ * @return string $parents
|
|
|
+ */
|
|
|
+ public function getParents(): ?string
|
|
|
+ {
|
|
|
+ return $this->parents;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Sets the parents
|
|
|
+ *
|
|
|
+ * @param string|null $parents
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function setParents(?string $parents)
|
|
|
+ {
|
|
|
+ $this->parents = $parents;
|
|
|
+ }
|
|
|
+}
|