diff --git a/src/Enums/PropertyEnumeration.php b/src/Enums/PropertyEnumeration.php
index 5c24a90a..4a4a5368 100644
--- a/src/Enums/PropertyEnumeration.php
+++ b/src/Enums/PropertyEnumeration.php
@@ -137,6 +137,7 @@ class PropertyEnumeration
const Affiliation = \OpenActive\Enums\PropertyEnumeration\Affiliation::class;
const AfterMedia = \OpenActive\Enums\PropertyEnumeration\AfterMedia::class;
const Agent = \OpenActive\Enums\PropertyEnumeration\Agent::class;
+ const AgentInteractionStatistic = \OpenActive\Enums\PropertyEnumeration\AgentInteractionStatistic::class;
const AggregateRating = \OpenActive\Enums\PropertyEnumeration\AggregateRating::class;
const Aircraft = \OpenActive\Enums\PropertyEnumeration\Aircraft::class;
const Album = \OpenActive\Enums\PropertyEnumeration\Album::class;
@@ -193,6 +194,7 @@ class PropertyEnumeration
const ArticleSection = \OpenActive\Enums\PropertyEnumeration\ArticleSection::class;
const Artist = \OpenActive\Enums\PropertyEnumeration\Artist::class;
const ArtworkSurface = \OpenActive\Enums\PropertyEnumeration\ArtworkSurface::class;
+ const Asin = \OpenActive\Enums\PropertyEnumeration\Asin::class;
const Aspect = \OpenActive\Enums\PropertyEnumeration\Aspect::class;
const Assembly = \OpenActive\Enums\PropertyEnumeration\Assembly::class;
const AssemblyVersion = \OpenActive\Enums\PropertyEnumeration\AssemblyVersion::class;
@@ -211,6 +213,7 @@ class PropertyEnumeration
const Audience = \OpenActive\Enums\PropertyEnumeration\Audience::class;
const AudienceType = \OpenActive\Enums\PropertyEnumeration\AudienceType::class;
const Audio = \OpenActive\Enums\PropertyEnumeration\Audio::class;
+ const AuditDate = \OpenActive\Enums\PropertyEnumeration\AuditDate::class;
const Authenticator = \OpenActive\Enums\PropertyEnumeration\Authenticator::class;
const Author = \OpenActive\Enums\PropertyEnumeration\Author::class;
const Availability = \OpenActive\Enums\PropertyEnumeration\Availability::class;
@@ -308,11 +311,15 @@ class PropertyEnumeration
const Category = \OpenActive\Enums\PropertyEnumeration\Category::class;
const CauseOf = \OpenActive\Enums\PropertyEnumeration\CauseOf::class;
const CcRecipient = \OpenActive\Enums\PropertyEnumeration\CcRecipient::class;
+ const CertificationIdentification = \OpenActive\Enums\PropertyEnumeration\CertificationIdentification::class;
+ const CertificationRating = \OpenActive\Enums\PropertyEnumeration\CertificationRating::class;
+ const CertificationStatus = \OpenActive\Enums\PropertyEnumeration\CertificationStatus::class;
const Character = \OpenActive\Enums\PropertyEnumeration\Character::class;
const CharacterAttribute = \OpenActive\Enums\PropertyEnumeration\CharacterAttribute::class;
const CharacterName = \OpenActive\Enums\PropertyEnumeration\CharacterName::class;
const CheatCode = \OpenActive\Enums\PropertyEnumeration\CheatCode::class;
const CheckinTime = \OpenActive\Enums\PropertyEnumeration\CheckinTime::class;
+ const CheckoutPageURLTemplate = \OpenActive\Enums\PropertyEnumeration\CheckoutPageURLTemplate::class;
const CheckoutTime = \OpenActive\Enums\PropertyEnumeration\CheckoutTime::class;
const ChemicalComposition = \OpenActive\Enums\PropertyEnumeration\ChemicalComposition::class;
const ChemicalRole = \OpenActive\Enums\PropertyEnumeration\ChemicalRole::class;
@@ -340,6 +347,7 @@ class PropertyEnumeration
const Collection = \OpenActive\Enums\PropertyEnumeration\Collection::class;
const CollectionSize = \OpenActive\Enums\PropertyEnumeration\CollectionSize::class;
const Color = \OpenActive\Enums\PropertyEnumeration\Color::class;
+ const ColorSwatch = \OpenActive\Enums\PropertyEnumeration\ColorSwatch::class;
const Colorist = \OpenActive\Enums\PropertyEnumeration\Colorist::class;
const Comment = \OpenActive\Enums\PropertyEnumeration\Comment::class;
const CommentCount = \OpenActive\Enums\PropertyEnumeration\CommentCount::class;
@@ -352,7 +360,7 @@ class PropertyEnumeration
const ConditionsOfAccess = \OpenActive\Enums\PropertyEnumeration\ConditionsOfAccess::class;
const ConfirmationNumber = \OpenActive\Enums\PropertyEnumeration\ConfirmationNumber::class;
const ConnectedTo = \OpenActive\Enums\PropertyEnumeration\ConnectedTo::class;
- const ConstrainingProperty = \OpenActive\Enums\PropertyEnumeration\ConstrainingProperty::class;
+ const ConstraintProperty = \OpenActive\Enums\PropertyEnumeration\ConstraintProperty::class;
const ContactOption = \OpenActive\Enums\PropertyEnumeration\ContactOption::class;
const ContactPoint = \OpenActive\Enums\PropertyEnumeration\ContactPoint::class;
const ContactPoints = \OpenActive\Enums\PropertyEnumeration\ContactPoints::class;
@@ -390,6 +398,7 @@ class PropertyEnumeration
const CourseCode = \OpenActive\Enums\PropertyEnumeration\CourseCode::class;
const CourseMode = \OpenActive\Enums\PropertyEnumeration\CourseMode::class;
const CoursePrerequisites = \OpenActive\Enums\PropertyEnumeration\CoursePrerequisites::class;
+ const CourseSchedule = \OpenActive\Enums\PropertyEnumeration\CourseSchedule::class;
const CourseWorkload = \OpenActive\Enums\PropertyEnumeration\CourseWorkload::class;
const CoverageEndTime = \OpenActive\Enums\PropertyEnumeration\CoverageEndTime::class;
const CoverageStartTime = \OpenActive\Enums\PropertyEnumeration\CoverageStartTime::class;
@@ -464,6 +473,7 @@ class PropertyEnumeration
const Diet = \OpenActive\Enums\PropertyEnumeration\Diet::class;
const DietFeatures = \OpenActive\Enums\PropertyEnumeration\DietFeatures::class;
const DifferentialDiagnosis = \OpenActive\Enums\PropertyEnumeration\DifferentialDiagnosis::class;
+ const DigitalSourceType = \OpenActive\Enums\PropertyEnumeration\DigitalSourceType::class;
const DirectApply = \OpenActive\Enums\PropertyEnumeration\DirectApply::class;
const Director = \OpenActive\Enums\PropertyEnumeration\Director::class;
const Directors = \OpenActive\Enums\PropertyEnumeration\Directors::class;
@@ -670,6 +680,7 @@ class PropertyEnumeration
const HasBioPolymerSequence = \OpenActive\Enums\PropertyEnumeration\HasBioPolymerSequence::class;
const HasBroadcastChannel = \OpenActive\Enums\PropertyEnumeration\HasBroadcastChannel::class;
const HasCategoryCode = \OpenActive\Enums\PropertyEnumeration\HasCategoryCode::class;
+ const HasCertification = \OpenActive\Enums\PropertyEnumeration\HasCertification::class;
const HasCourse = \OpenActive\Enums\PropertyEnumeration\HasCourse::class;
const HasCourseInstance = \OpenActive\Enums\PropertyEnumeration\HasCourseInstance::class;
const HasCredential = \OpenActive\Enums\PropertyEnumeration\HasCredential::class;
@@ -679,6 +690,7 @@ class PropertyEnumeration
const HasDriveThroughService = \OpenActive\Enums\PropertyEnumeration\HasDriveThroughService::class;
const HasEnergyConsumptionDetails = \OpenActive\Enums\PropertyEnumeration\HasEnergyConsumptionDetails::class;
const HasEnergyEfficiencyCategory = \OpenActive\Enums\PropertyEnumeration\HasEnergyEfficiencyCategory::class;
+ const HasGS1DigitalLink = \OpenActive\Enums\PropertyEnumeration\HasGS1DigitalLink::class;
const HasHealthAspect = \OpenActive\Enums\PropertyEnumeration\HasHealthAspect::class;
const HasMap = \OpenActive\Enums\PropertyEnumeration\HasMap::class;
const HasMeasurement = \OpenActive\Enums\PropertyEnumeration\HasMeasurement::class;
@@ -900,7 +912,9 @@ class PropertyEnumeration
const MaximumVirtualAttendeeCapacity = \OpenActive\Enums\PropertyEnumeration\MaximumVirtualAttendeeCapacity::class;
const MealService = \OpenActive\Enums\PropertyEnumeration\MealService::class;
const MeasuredProperty = \OpenActive\Enums\PropertyEnumeration\MeasuredProperty::class;
- const MeasuredValue = \OpenActive\Enums\PropertyEnumeration\MeasuredValue::class;
+ const MeasurementDenominator = \OpenActive\Enums\PropertyEnumeration\MeasurementDenominator::class;
+ const MeasurementMethod = \OpenActive\Enums\PropertyEnumeration\MeasurementMethod::class;
+ const MeasurementQualifier = \OpenActive\Enums\PropertyEnumeration\MeasurementQualifier::class;
const MeasurementTechnique = \OpenActive\Enums\PropertyEnumeration\MeasurementTechnique::class;
const MechanismOfAction = \OpenActive\Enums\PropertyEnumeration\MechanismOfAction::class;
const MediaAuthenticityCategory = \OpenActive\Enums\PropertyEnumeration\MediaAuthenticityCategory::class;
@@ -928,6 +942,7 @@ class PropertyEnumeration
const MinValue = \OpenActive\Enums\PropertyEnumeration\MinValue::class;
const MinimumPaymentDue = \OpenActive\Enums\PropertyEnumeration\MinimumPaymentDue::class;
const MissionCoveragePrioritiesPolicy = \OpenActive\Enums\PropertyEnumeration\MissionCoveragePrioritiesPolicy::class;
+ const MobileUrl = \OpenActive\Enums\PropertyEnumeration\MobileUrl::class;
const Model = \OpenActive\Enums\PropertyEnumeration\Model::class;
const ModelDate = \OpenActive\Enums\PropertyEnumeration\ModelDate::class;
const ModifiedTime = \OpenActive\Enums\PropertyEnumeration\ModifiedTime::class;
@@ -990,8 +1005,9 @@ class PropertyEnumeration
const NumberedPosition = \OpenActive\Enums\PropertyEnumeration\NumberedPosition::class;
const Nutrition = \OpenActive\Enums\PropertyEnumeration\Nutrition::class;
const Object = \OpenActive\Enums\PropertyEnumeration\Object::class;
+ const ObservationAbout = \OpenActive\Enums\PropertyEnumeration\ObservationAbout::class;
const ObservationDate = \OpenActive\Enums\PropertyEnumeration\ObservationDate::class;
- const ObservedNode = \OpenActive\Enums\PropertyEnumeration\ObservedNode::class;
+ const ObservationPeriod = \OpenActive\Enums\PropertyEnumeration\ObservationPeriod::class;
const Occupancy = \OpenActive\Enums\PropertyEnumeration\Occupancy::class;
const OccupationLocation = \OpenActive\Enums\PropertyEnumeration\OccupationLocation::class;
const OccupationalCategory = \OpenActive\Enums\PropertyEnumeration\OccupationalCategory::class;
@@ -1094,6 +1110,7 @@ class PropertyEnumeration
const PostalCodeRange = \OpenActive\Enums\PropertyEnumeration\PostalCodeRange::class;
const PotentialAction = \OpenActive\Enums\PropertyEnumeration\PotentialAction::class;
const PotentialUse = \OpenActive\Enums\PropertyEnumeration\PotentialUse::class;
+ const PracticesAt = \OpenActive\Enums\PropertyEnumeration\PracticesAt::class;
const PreOp = \OpenActive\Enums\PropertyEnumeration\PreOp::class;
const PredecessorOf = \OpenActive\Enums\PropertyEnumeration\PredecessorOf::class;
const PregnancyCategory = \OpenActive\Enums\PropertyEnumeration\PregnancyCategory::class;
@@ -1302,6 +1319,7 @@ class PropertyEnumeration
const ShippingDestination = \OpenActive\Enums\PropertyEnumeration\ShippingDestination::class;
const ShippingDetails = \OpenActive\Enums\PropertyEnumeration\ShippingDetails::class;
const ShippingLabel = \OpenActive\Enums\PropertyEnumeration\ShippingLabel::class;
+ const ShippingOrigin = \OpenActive\Enums\PropertyEnumeration\ShippingOrigin::class;
const ShippingRate = \OpenActive\Enums\PropertyEnumeration\ShippingRate::class;
const ShippingSettingsLink = \OpenActive\Enums\PropertyEnumeration\ShippingSettingsLink::class;
const Sibling = \OpenActive\Enums\PropertyEnumeration\Sibling::class;
@@ -1347,6 +1365,7 @@ class PropertyEnumeration
const StartDate = \OpenActive\Enums\PropertyEnumeration\StartDate::class;
const StartOffset = \OpenActive\Enums\PropertyEnumeration\StartOffset::class;
const StartTime = \OpenActive\Enums\PropertyEnumeration\StartTime::class;
+ const StatType = \OpenActive\Enums\PropertyEnumeration\StatType::class;
const Status = \OpenActive\Enums\PropertyEnumeration\Status::class;
const SteeringPosition = \OpenActive\Enums\PropertyEnumeration\SteeringPosition::class;
const Step = \OpenActive\Enums\PropertyEnumeration\Step::class;
@@ -1386,6 +1405,7 @@ class PropertyEnumeration
const SupplyTo = \OpenActive\Enums\PropertyEnumeration\SupplyTo::class;
const SupportingData = \OpenActive\Enums\PropertyEnumeration\SupportingData::class;
const Surface = \OpenActive\Enums\PropertyEnumeration\Surface::class;
+ const SyllabusSections = \OpenActive\Enums\PropertyEnumeration\SyllabusSections::class;
const Target = \OpenActive\Enums\PropertyEnumeration\Target::class;
const TargetCollection = \OpenActive\Enums\PropertyEnumeration\TargetCollection::class;
const TargetDescription = \OpenActive\Enums\PropertyEnumeration\TargetDescription::class;
@@ -1426,6 +1446,7 @@ class PropertyEnumeration
const TongueWeight = \OpenActive\Enums\PropertyEnumeration\TongueWeight::class;
const Tool = \OpenActive\Enums\PropertyEnumeration\Tool::class;
const Torque = \OpenActive\Enums\PropertyEnumeration\Torque::class;
+ const TotalHistoricalEnrollment = \OpenActive\Enums\PropertyEnumeration\TotalHistoricalEnrollment::class;
const TotalJobOpenings = \OpenActive\Enums\PropertyEnumeration\TotalJobOpenings::class;
const TotalPaymentDue = \OpenActive\Enums\PropertyEnumeration\TotalPaymentDue::class;
const TotalPrice = \OpenActive\Enums\PropertyEnumeration\TotalPrice::class;
@@ -1451,6 +1472,7 @@ class PropertyEnumeration
const TravelBans = \OpenActive\Enums\PropertyEnumeration\TravelBans::class;
const TrialDesign = \OpenActive\Enums\PropertyEnumeration\TrialDesign::class;
const Tributary = \OpenActive\Enums\PropertyEnumeration\Tributary::class;
+ const TripOrigin = \OpenActive\Enums\PropertyEnumeration\TripOrigin::class;
const TypeOfBed = \OpenActive\Enums\PropertyEnumeration\TypeOfBed::class;
const TypeOfGood = \OpenActive\Enums\PropertyEnumeration\TypeOfGood::class;
const TypicalAgeRange = \OpenActive\Enums\PropertyEnumeration\TypicalAgeRange::class;
@@ -1465,6 +1487,7 @@ class PropertyEnumeration
const UpvoteCount = \OpenActive\Enums\PropertyEnumeration\UpvoteCount::class;
const Url = \OpenActive\Enums\PropertyEnumeration\Url::class;
const UrlTemplate = \OpenActive\Enums\PropertyEnumeration\UrlTemplate::class;
+ const UsNPI = \OpenActive\Enums\PropertyEnumeration\UsNPI::class;
const UsageInfo = \OpenActive\Enums\PropertyEnumeration\UsageInfo::class;
const UsedToDiagnose = \OpenActive\Enums\PropertyEnumeration\UsedToDiagnose::class;
const UserInteractionCount = \OpenActive\Enums\PropertyEnumeration\UserInteractionCount::class;
diff --git a/src/Enums/PropertyEnumeration/AgentInteractionStatistic.php b/src/Enums/PropertyEnumeration/AgentInteractionStatistic.php
new file mode 100644
index 00000000..770b1867
--- /dev/null
+++ b/src/Enums/PropertyEnumeration/AgentInteractionStatistic.php
@@ -0,0 +1,13 @@
+ "url",
"formattedDescription" => "beta:formattedDescription",
"video" => "beta:video",
- "virtualTour" => "beta:virtualTour",
"serviceOperator" => "beta:serviceOperator",
"placeType" => "beta:placeType",
];
@@ -152,14 +151,33 @@ public static function fieldList() {
protected $containedInPlace;
/**
- * Places that exist within this place
+ * A specific identifiable facility (`SportsActivityLocation`) or place (`Place`) that exist within this place
*
* ```json
- * "containsPlace": {
- * "@type": "Place",
- * "url": "https://www.everyoneactive.com/centres/Center-Parcs-Sports-Plaza",
- * "name": "Center Parcs Sports Plaza"
- * }
+ * "containsPlace": [
+ * {
+ * "@type": "SportsActivityLocation",
+ * "@id": "https://api.example.com/places/1402CBP20150217/sports-activity-locations/3",
+ * "url": "https://www.better.org.uk/leisure-centre/manchester/belle-vue-sports-village/facilities",
+ * "name": "Studio",
+ * "description": "We have a great range of Fitness Classes at Belle Vue Leisure Centre including Group Cycle, Zumba, Pilates and much much more.",
+ * "image": [
+ * {
+ * "@type": "ImageObject",
+ * "url": "https://res-1.cloudinary.com/gll/image/upload/c_fit,f_auto,h_169,w_384/v1592158966/production/0065/7/66/PHOTO-2020-06-09-14-25-53_3.jpg"
+ * }
+ * ],
+ * "specialOpeningHoursSpecification": [
+ * {
+ * "@type": "OpeningHoursSpecification",
+ * "opens": "00:00",
+ * "closes": "00:00",
+ * "validFrom": "2022-01-01",
+ * "validThrough": "2022-12-31"
+ * }
+ * ]
+ * }
+ * ]
* ```
*
* @var \OpenActive\Models\OA\Place[]
@@ -269,17 +287,6 @@ public static function fieldList() {
*/
protected $video;
- /**
- * [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.]
- * A related virtual tour.
- *
- * If you are using this property, please join the discussion at proposal [#306](https://github.com/openactive/modelling-opportunity-data/issues/306).
- *
- *
- * @var \OpenActive\Models\SchemaOrg\3DModel[]
- */
- protected $virtualTour;
-
/**
* [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.]
* The organization responsible for the operation of the `Place`.
@@ -692,30 +699,6 @@ public function setVideo($video)
$this->video = $video;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\3DModel[]
- */
- public function getVirtualTour()
- {
- return $this->virtualTour;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\3DModel[] $virtualTour
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setVirtualTour($virtualTour)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\3DModel[]",
- ];
-
- $virtualTour = self::checkTypes($virtualTour, $types);
-
- $this->virtualTour = $virtualTour;
- }
-
/**
* @return \OpenActive\Models\OA\Organization
*/
diff --git a/src/Models/OA/QuantitativeValue.php b/src/Models/OA/QuantitativeValue.php
index 34f692b5..aa73d045 100644
--- a/src/Models/OA/QuantitativeValue.php
+++ b/src/Models/OA/QuantitativeValue.php
@@ -26,7 +26,7 @@ public static function fieldList() {
}
/**
- * The maximum value.
+ * The maximum value, inclusive.
*
* ```json
* "maxValue": 60
@@ -37,7 +37,7 @@ public static function fieldList() {
protected $maxValue;
/**
- * The minimum value.
+ * The minimum value, inclusive.
*
* ```json
* "minValue": 16
diff --git a/src/Models/OA/WebAPI.php b/src/Models/OA/WebAPI.php
index 9ffb1dc4..bfd4e9e0 100644
--- a/src/Models/OA/WebAPI.php
+++ b/src/Models/OA/WebAPI.php
@@ -58,7 +58,7 @@ public static function fieldList() {
protected $description;
/**
- * The location of the OpenID Provider or other relevant authentication authority that must be used to access the API.
+ * The location of the OpenID Provider that must be used to access the API.
*
* ```json
* "authenticationAuthority": "https://auth.bookingsystem.com"
@@ -82,10 +82,10 @@ public static function fieldList() {
protected $conformsTo;
/**
- * A link to documentation related to the Dataset, or a link to the OpenActive developer documentation if no Dataset-specific documentation is available.
+ * A link to documentation related to how to use the Open Booking API, or a link to the OpenActive developer documentation using `https://permalink.openactive.io/dataset-site/open-booking-api-documentation` if no system-specific documentation is available.
*
* ```json
- * "documentation": "https://developer.openactive.io"
+ * "documentation": "https://permalink.openactive.io/dataset-site/open-booking-api-documentation"
* ```
*
* @var string
@@ -104,7 +104,7 @@ public static function fieldList() {
protected $endpointDescription;
/**
- * The base URL of the Open Booking API
+ * The Base URI of this implementation of the Open Booking API
*
* ```json
* "endpointUrl": "https://example.bookingsystem.com/api/openbooking"
@@ -115,7 +115,7 @@ public static function fieldList() {
protected $endpointUrl;
/**
- * The web page the broker uses to obtain access to the API, e.g. via a web form.
+ * The URL of a web page that the Broker may use to obtain access to the API, e.g. via a web form.
*
* ```json
* "landingPage": "https://exampleforms.com/get-me-an-api-access-key"
diff --git a/src/Models/SchemaOrg/APIReference.php b/src/Models/SchemaOrg/APIReference.php
index 5b335a17..ec43cb5c 100644
--- a/src/Models/SchemaOrg/APIReference.php
+++ b/src/Models/SchemaOrg/APIReference.php
@@ -17,174 +17,174 @@ public static function getType()
public static function fieldList() {
$fields = [
- "assembly" => "assembly",
- "targetPlatform" => "targetPlatform",
- "executableLibraryName" => "executableLibraryName",
"programmingModel" => "programmingModel",
"assemblyVersion" => "assemblyVersion",
+ "assembly" => "assembly",
+ "executableLibraryName" => "executableLibraryName",
+ "targetPlatform" => "targetPlatform",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Library file name e.g., mscorlib.dll, system.web.dll.
+ * Indicates whether API is managed or unmanaged.
*
*
* @var string
*/
- protected $assembly;
+ protected $programmingModel;
/**
- * Type of app development: phone, Metro style, desktop, XBox, etc.
+ * Associated product/technology version. E.g., .NET Framework 4.5.
*
*
* @var string
*/
- protected $targetPlatform;
+ protected $assemblyVersion;
/**
- * Library file name e.g., mscorlib.dll, system.web.dll.
+ * Library file name, e.g., mscorlib.dll, system.web.dll.
*
*
* @var string
*/
- protected $executableLibraryName;
+ protected $assembly;
/**
- * Indicates whether API is managed or unmanaged.
+ * Library file name, e.g., mscorlib.dll, system.web.dll.
*
*
* @var string
*/
- protected $programmingModel;
+ protected $executableLibraryName;
/**
- * Associated product/technology version. e.g., .NET Framework 4.5.
+ * Type of app development: phone, Metro style, desktop, XBox, etc.
*
*
* @var string
*/
- protected $assemblyVersion;
+ protected $targetPlatform;
/**
* @return string
*/
- public function getAssembly()
+ public function getProgrammingModel()
{
- return $this->assembly;
+ return $this->programmingModel;
}
/**
- * @param string $assembly
+ * @param string $programmingModel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssembly($assembly)
+ public function setProgrammingModel($programmingModel)
{
$types = [
"string",
];
- $assembly = self::checkTypes($assembly, $types);
+ $programmingModel = self::checkTypes($programmingModel, $types);
- $this->assembly = $assembly;
+ $this->programmingModel = $programmingModel;
}
/**
* @return string
*/
- public function getTargetPlatform()
+ public function getAssemblyVersion()
{
- return $this->targetPlatform;
+ return $this->assemblyVersion;
}
/**
- * @param string $targetPlatform
+ * @param string $assemblyVersion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetPlatform($targetPlatform)
+ public function setAssemblyVersion($assemblyVersion)
{
$types = [
"string",
];
- $targetPlatform = self::checkTypes($targetPlatform, $types);
+ $assemblyVersion = self::checkTypes($assemblyVersion, $types);
- $this->targetPlatform = $targetPlatform;
+ $this->assemblyVersion = $assemblyVersion;
}
/**
* @return string
*/
- public function getExecutableLibraryName()
+ public function getAssembly()
{
- return $this->executableLibraryName;
+ return $this->assembly;
}
/**
- * @param string $executableLibraryName
+ * @param string $assembly
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExecutableLibraryName($executableLibraryName)
+ public function setAssembly($assembly)
{
$types = [
"string",
];
- $executableLibraryName = self::checkTypes($executableLibraryName, $types);
+ $assembly = self::checkTypes($assembly, $types);
- $this->executableLibraryName = $executableLibraryName;
+ $this->assembly = $assembly;
}
/**
* @return string
*/
- public function getProgrammingModel()
+ public function getExecutableLibraryName()
{
- return $this->programmingModel;
+ return $this->executableLibraryName;
}
/**
- * @param string $programmingModel
+ * @param string $executableLibraryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProgrammingModel($programmingModel)
+ public function setExecutableLibraryName($executableLibraryName)
{
$types = [
"string",
];
- $programmingModel = self::checkTypes($programmingModel, $types);
+ $executableLibraryName = self::checkTypes($executableLibraryName, $types);
- $this->programmingModel = $programmingModel;
+ $this->executableLibraryName = $executableLibraryName;
}
/**
* @return string
*/
- public function getAssemblyVersion()
+ public function getTargetPlatform()
{
- return $this->assemblyVersion;
+ return $this->targetPlatform;
}
/**
- * @param string $assemblyVersion
+ * @param string $targetPlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssemblyVersion($assemblyVersion)
+ public function setTargetPlatform($targetPlatform)
{
$types = [
"string",
];
- $assemblyVersion = self::checkTypes($assemblyVersion, $types);
+ $targetPlatform = self::checkTypes($targetPlatform, $types);
- $this->assemblyVersion = $assemblyVersion;
+ $this->targetPlatform = $targetPlatform;
}
}
diff --git a/src/Models/SchemaOrg/Accommodation.php b/src/Models/SchemaOrg/Accommodation.php
index f94a1485..f98c963b 100644
--- a/src/Models/SchemaOrg/Accommodation.php
+++ b/src/Models/SchemaOrg/Accommodation.php
@@ -17,75 +17,78 @@ public static function getType()
public static function fieldList() {
$fields = [
- "floorLevel" => "floorLevel",
- "numberOfBathroomsTotal" => "numberOfBathroomsTotal",
"numberOfRooms" => "numberOfRooms",
+ "occupancy" => "occupancy",
+ "permittedUsage" => "permittedUsage",
+ "accommodationFloorPlan" => "accommodationFloorPlan",
+ "floorSize" => "floorSize",
"leaseLength" => "leaseLength",
- "yearBuilt" => "yearBuilt",
- "accommodationCategory" => "accommodationCategory",
"amenityFeature" => "amenityFeature",
"tourBookingPage" => "tourBookingPage",
- "numberOfBedrooms" => "numberOfBedrooms",
"numberOfPartialBathrooms" => "numberOfPartialBathrooms",
- "floorSize" => "floorSize",
- "accommodationFloorPlan" => "accommodationFloorPlan",
- "numberOfFullBathrooms" => "numberOfFullBathrooms",
- "permittedUsage" => "permittedUsage",
+ "bed" => "bed",
+ "numberOfBathroomsTotal" => "numberOfBathroomsTotal",
"petsAllowed" => "petsAllowed",
+ "accommodationCategory" => "accommodationCategory",
+ "yearBuilt" => "yearBuilt",
+ "numberOfBedrooms" => "numberOfBedrooms",
+ "floorLevel" => "floorLevel",
+ "numberOfFullBathrooms" => "numberOfFullBathrooms",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The floor level for an [[Accommodation]] in a multi-storey building. Since counting
- * systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.
+ * The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business.
+ * Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $floorLevel;
+ protected $numberOfRooms;
/**
- * The total integer number of bathrooms in a some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].
+ * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person).
+ * Typical unit code(s): C62 for person.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfBathroomsTotal;
+ protected $occupancy;
/**
- * The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business.
- * Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.
+ * Indications regarding the permitted usage of the accommodation.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @var string
*/
- protected $numberOfRooms;
+ protected $permittedUsage;
/**
- * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
+ * A floorplan of some [[Accommodation]].
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\FloorPlan|string
*/
- protected $leaseLength;
+ protected $accommodationFloorPlan;
/**
- * The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field).
+ * The size of the accommodation, e.g. in square meter or squarefoot.
+ * Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $yearBuilt;
+ protected $floorSize;
/**
- * Category of an [[Accommodation]], following real estate conventions e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields for suggested values).
+ * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
*
*
- * @var string
+ * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $accommodationCategory;
+ protected $leaseLength;
/**
* An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.
@@ -104,212 +107,230 @@ public static function fieldList() {
protected $tourBookingPage;
/**
- * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ * Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field).
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var Number|null
*/
- protected $numberOfBedrooms;
+ protected $numberOfPartialBathrooms;
/**
- * Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field).
+ * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text.
+ * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType
*/
- protected $numberOfPartialBathrooms;
+ protected $bed;
/**
- * The size of the accommodation, e.g. in square meter or squarefoot.
- * Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard
+ * The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var int|null
*/
- protected $floorSize;
+ protected $numberOfBathroomsTotal;
/**
- * A floorplan of some [[Accommodation]].
+ * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
*
*
- * @var \OpenActive\Models\SchemaOrg\FloorPlan|string
+ * @var bool|string|null
*/
- protected $accommodationFloorPlan;
+ protected $petsAllowed;
/**
- * Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).
+ * Category of an [[Accommodation]], following real estate conventions, e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields for suggested values).
+ *
+ *
+ * @var string
+ */
+ protected $accommodationCategory;
+
+ /**
+ * The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field).
*
*
* @var Number|null
*/
- protected $numberOfFullBathrooms;
+ protected $yearBuilt;
/**
- * Indications regarding the permitted usage of the accommodation.
+ * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ *
+ *
+ * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ */
+ protected $numberOfBedrooms;
+
+ /**
+ * The floor level for an [[Accommodation]] in a multi-storey building. Since counting
+ * systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.
*
*
* @var string
*/
- protected $permittedUsage;
+ protected $floorLevel;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).
*
*
- * @var bool|string|null
+ * @var Number|null
*/
- protected $petsAllowed;
+ protected $numberOfFullBathrooms;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getFloorLevel()
+ public function getNumberOfRooms()
{
- return $this->floorLevel;
+ return $this->numberOfRooms;
}
/**
- * @param string $floorLevel
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFloorLevel($floorLevel)
+ public function setNumberOfRooms($numberOfRooms)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
+ "null",
];
- $floorLevel = self::checkTypes($floorLevel, $types);
+ $numberOfRooms = self::checkTypes($numberOfRooms, $types);
- $this->floorLevel = $floorLevel;
+ $this->numberOfRooms = $numberOfRooms;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfBathroomsTotal()
+ public function getOccupancy()
{
- return $this->numberOfBathroomsTotal;
+ return $this->occupancy;
}
/**
- * @param int|null $numberOfBathroomsTotal
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfBathroomsTotal($numberOfBathroomsTotal)
+ public function setOccupancy($occupancy)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types);
+ $occupancy = self::checkTypes($occupancy, $types);
- $this->numberOfBathroomsTotal = $numberOfBathroomsTotal;
+ $this->occupancy = $occupancy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @return string
*/
- public function getNumberOfRooms()
+ public function getPermittedUsage()
{
- return $this->numberOfRooms;
+ return $this->permittedUsage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms
+ * @param string $permittedUsage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfRooms($numberOfRooms)
+ public function setPermittedUsage($permittedUsage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "Number",
- "null",
];
- $numberOfRooms = self::checkTypes($numberOfRooms, $types);
+ $permittedUsage = self::checkTypes($permittedUsage, $types);
- $this->numberOfRooms = $numberOfRooms;
+ $this->permittedUsage = $permittedUsage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\FloorPlan|string
*/
- public function getLeaseLength()
+ public function getAccommodationFloorPlan()
{
- return $this->leaseLength;
+ return $this->accommodationFloorPlan;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength
+ * @param \OpenActive\Models\SchemaOrg\FloorPlan|string $accommodationFloorPlan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLeaseLength($leaseLength)
+ public function setAccommodationFloorPlan($accommodationFloorPlan)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\FloorPlan",
"string",
- "null",
];
- $leaseLength = self::checkTypes($leaseLength, $types);
+ $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types);
- $this->leaseLength = $leaseLength;
+ $this->accommodationFloorPlan = $accommodationFloorPlan;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getYearBuilt()
+ public function getFloorSize()
{
- return $this->yearBuilt;
+ return $this->floorSize;
}
/**
- * @param Number|null $yearBuilt
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setYearBuilt($yearBuilt)
+ public function setFloorSize($floorSize)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $yearBuilt = self::checkTypes($yearBuilt, $types);
+ $floorSize = self::checkTypes($floorSize, $types);
- $this->yearBuilt = $yearBuilt;
+ $this->floorSize = $floorSize;
}
/**
- * @return string
+ * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getAccommodationCategory()
+ public function getLeaseLength()
{
- return $this->accommodationCategory;
+ return $this->leaseLength;
}
/**
- * @param string $accommodationCategory
+ * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $leaseLength
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccommodationCategory($accommodationCategory)
+ public function setLeaseLength($leaseLength)
{
$types = [
+ "DateInterval",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "null",
];
- $accommodationCategory = self::checkTypes($accommodationCategory, $types);
+ $leaseLength = self::checkTypes($leaseLength, $types);
- $this->accommodationCategory = $accommodationCategory;
+ $this->leaseLength = $leaseLength;
}
/**
@@ -362,180 +383,230 @@ public function setTourBookingPage($tourBookingPage)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return Number|null
*/
- public function getNumberOfBedrooms()
+ public function getNumberOfPartialBathrooms()
{
- return $this->numberOfBedrooms;
+ return $this->numberOfPartialBathrooms;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms
+ * @param Number|null $numberOfPartialBathrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfBedrooms($numberOfBedrooms)
+ public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
{
$types = [
"Number",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
"null",
];
- $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
+ $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
- $this->numberOfBedrooms = $numberOfBedrooms;
+ $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType
*/
- public function getNumberOfPartialBathrooms()
+ public function getBed()
{
- return $this->numberOfPartialBathrooms;
+ return $this->bed;
}
/**
- * @param Number|null $numberOfPartialBathrooms
+ * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
+ public function setBed($bed)
{
$types = [
- "Number",
+ "\OpenActive\Models\SchemaOrg\BedDetails",
+ "string",
+ "\OpenActive\Models\SchemaOrg\BedType",
+ ];
+
+ $bed = self::checkTypes($bed, $types);
+
+ $this->bed = $bed;
+ }
+
+ /**
+ * @return int|null
+ */
+ public function getNumberOfBathroomsTotal()
+ {
+ return $this->numberOfBathroomsTotal;
+ }
+
+ /**
+ * @param int|null $numberOfBathroomsTotal
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setNumberOfBathroomsTotal($numberOfBathroomsTotal)
+ {
+ $types = [
+ "int",
"null",
];
- $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
+ $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types);
- $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
+ $this->numberOfBathroomsTotal = $numberOfBathroomsTotal;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return bool|string|null
*/
- public function getFloorSize()
+ public function getPetsAllowed()
{
- return $this->floorSize;
+ return $this->petsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFloorSize($floorSize)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "bool",
"string",
+ "null",
];
- $floorSize = self::checkTypes($floorSize, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->floorSize = $floorSize;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\FloorPlan|string
+ * @return string
*/
- public function getAccommodationFloorPlan()
+ public function getAccommodationCategory()
{
- return $this->accommodationFloorPlan;
+ return $this->accommodationCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\FloorPlan|string $accommodationFloorPlan
+ * @param string $accommodationCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccommodationFloorPlan($accommodationFloorPlan)
+ public function setAccommodationCategory($accommodationCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\FloorPlan",
"string",
];
- $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types);
+ $accommodationCategory = self::checkTypes($accommodationCategory, $types);
- $this->accommodationFloorPlan = $accommodationFloorPlan;
+ $this->accommodationCategory = $accommodationCategory;
}
/**
* @return Number|null
*/
- public function getNumberOfFullBathrooms()
+ public function getYearBuilt()
{
- return $this->numberOfFullBathrooms;
+ return $this->yearBuilt;
}
/**
- * @param Number|null $numberOfFullBathrooms
+ * @param Number|null $yearBuilt
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfFullBathrooms($numberOfFullBathrooms)
+ public function setYearBuilt($yearBuilt)
{
$types = [
"Number",
"null",
];
- $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
+ $yearBuilt = self::checkTypes($yearBuilt, $types);
- $this->numberOfFullBathrooms = $numberOfFullBathrooms;
+ $this->yearBuilt = $yearBuilt;
}
/**
- * @return string
+ * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getPermittedUsage()
+ public function getNumberOfBedrooms()
{
- return $this->permittedUsage;
+ return $this->numberOfBedrooms;
}
/**
- * @param string $permittedUsage
+ * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPermittedUsage($permittedUsage)
+ public function setNumberOfBedrooms($numberOfBedrooms)
{
$types = [
+ "Number",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "null",
];
- $permittedUsage = self::checkTypes($permittedUsage, $types);
+ $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
- $this->permittedUsage = $permittedUsage;
+ $this->numberOfBedrooms = $numberOfBedrooms;
}
/**
- * @return bool|string|null
+ * @return string
*/
- public function getPetsAllowed()
+ public function getFloorLevel()
{
- return $this->petsAllowed;
+ return $this->floorLevel;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param string $floorLevel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setFloorLevel($floorLevel)
{
$types = [
- "bool",
"string",
+ ];
+
+ $floorLevel = self::checkTypes($floorLevel, $types);
+
+ $this->floorLevel = $floorLevel;
+ }
+
+ /**
+ * @return Number|null
+ */
+ public function getNumberOfFullBathrooms()
+ {
+ return $this->numberOfFullBathrooms;
+ }
+
+ /**
+ * @param Number|null $numberOfFullBathrooms
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setNumberOfFullBathrooms($numberOfFullBathrooms)
+ {
+ $types = [
+ "Number",
"null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->numberOfFullBathrooms = $numberOfFullBathrooms;
}
}
diff --git a/src/Models/SchemaOrg/Action.php b/src/Models/SchemaOrg/Action.php
index 88a8db68..bd4c3d58 100644
--- a/src/Models/SchemaOrg/Action.php
+++ b/src/Models/SchemaOrg/Action.php
@@ -18,120 +18,120 @@ public static function getType()
public static function fieldList() {
$fields = [
"agent" => "agent",
- "startTime" => "startTime",
+ "instrument" => "instrument",
+ "endTime" => "endTime",
+ "object" => "object",
"actionStatus" => "actionStatus",
- "provider" => "provider",
+ "target" => "target",
"result" => "result",
+ "startTime" => "startTime",
"location" => "location",
- "object" => "object",
- "target" => "target",
- "endTime" => "endTime",
- "participant" => "participant",
- "instrument" => "instrument",
"error" => "error",
+ "provider" => "provider",
+ "participant" => "participant",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book.
+ * The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $agent;
/**
- * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $startTime;
+ protected $instrument;
/**
- * Indicates the current disposition of the Action.
+ * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var \OpenActive\Models\SchemaOrg\ActionStatusType|string
+ * @var DateTime|string|null
*/
- protected $actionStatus;
+ protected $endTime;
/**
- * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
+ * The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn't). E.g. John read *a book*.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $provider;
+ protected $object;
/**
- * The result produced in the action. e.g. John wrote *a book*.
+ * Indicates the current disposition of the Action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\ActionStatusType|string
*/
- protected $result;
+ protected $actionStatus;
/**
- * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
+ * Indicates a target EntryPoint, or url, for an Action.
*
*
- * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var string|\OpenActive\Models\SchemaOrg\EntryPoint
*/
- protected $location;
+ protected $target;
/**
- * The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn't). e.g. John read *a book*.
+ * The result produced in the action. E.g. John wrote *a book*.
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $object;
+ protected $result;
/**
- * Indicates a target EntryPoint for an Action.
+ * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var \OpenActive\Models\SchemaOrg\EntryPoint|string
+ * @var DateTime|string|null
*/
- protected $target;
+ protected $startTime;
/**
- * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
*
*
- * @var DateTime|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
*/
- protected $endTime;
+ protected $location;
/**
- * Other co-agents that participated in the action indirectly. e.g. John wrote a book with *Steve*.
+ * For failed actions, more information on the cause of the failure.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $participant;
+ protected $error;
/**
- * The object that helped the agent perform the action. e.g. John wrote a book with *a pen*.
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $instrument;
+ protected $provider;
/**
- * For failed actions, more information on the cause of the failure.
+ * Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $error;
+ protected $participant;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getAgent()
{
@@ -139,15 +139,15 @@ public function getAgent()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $agent
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $agent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAgent($agent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
@@ -157,284 +157,284 @@ public function setAgent($agent)
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getStartTime()
+ public function getInstrument()
{
- return $this->startTime;
+ return $this->instrument;
}
/**
- * @param DateTime|string|null $startTime
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $instrument
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartTime($startTime)
+ public function setInstrument($instrument)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
- $startTime = self::checkTypes($startTime, $types);
+ $instrument = self::checkTypes($instrument, $types);
- $this->startTime = $startTime;
+ $this->instrument = $instrument;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ActionStatusType|string
+ * @return DateTime|string|null
*/
- public function getActionStatus()
+ public function getEndTime()
{
- return $this->actionStatus;
+ return $this->endTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ActionStatusType|string $actionStatus
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActionStatus($actionStatus)
+ public function setEndTime($endTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ActionStatusType",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $actionStatus = self::checkTypes($actionStatus, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->actionStatus = $actionStatus;
+ $this->endTime = $endTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getProvider()
+ public function getObject()
{
- return $this->provider;
+ return $this->object;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $object
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setObject($object)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $object = self::checkTypes($object, $types);
- $this->provider = $provider;
+ $this->object = $object;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\ActionStatusType|string
*/
- public function getResult()
+ public function getActionStatus()
{
- return $this->result;
+ return $this->actionStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $result
+ * @param \OpenActive\Models\SchemaOrg\ActionStatusType|string $actionStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setResult($result)
+ public function setActionStatus($actionStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\ActionStatusType",
"string",
];
- $result = self::checkTypes($result, $types);
+ $actionStatus = self::checkTypes($actionStatus, $types);
- $this->result = $result;
+ $this->actionStatus = $actionStatus;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return string|\OpenActive\Models\SchemaOrg\EntryPoint
*/
- public function getLocation()
+ public function getTarget()
{
- return $this->location;
+ return $this->target;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @param string|\OpenActive\Models\SchemaOrg\EntryPoint $target
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLocation($location)
+ public function setTarget($target)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\VirtualLocation",
+ "\OpenActive\Models\SchemaOrg\EntryPoint",
];
- $location = self::checkTypes($location, $types);
+ $target = self::checkTypes($target, $types);
- $this->location = $location;
+ $this->target = $target;
}
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getObject()
+ public function getResult()
{
- return $this->object;
+ return $this->result;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $object
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $result
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setObject($object)
+ public function setResult($result)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $object = self::checkTypes($object, $types);
+ $result = self::checkTypes($result, $types);
- $this->object = $object;
+ $this->result = $result;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EntryPoint|string
+ * @return DateTime|string|null
*/
- public function getTarget()
+ public function getStartTime()
{
- return $this->target;
+ return $this->startTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EntryPoint|string $target
+ * @param DateTime|string|null $startTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTarget($target)
+ public function setStartTime($startTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EntryPoint",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $target = self::checkTypes($target, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->target = $target;
+ $this->startTime = $startTime;
}
/**
- * @return DateTime|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
*/
- public function getEndTime()
+ public function getLocation()
{
- return $this->endTime;
+ return $this->location;
}
/**
- * @param DateTime|string|null $endTime
+ * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndTime($endTime)
+ public function setLocation($location)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\VirtualLocation",
];
- $endTime = self::checkTypes($endTime, $types);
+ $location = self::checkTypes($location, $types);
- $this->endTime = $endTime;
+ $this->location = $location;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getParticipant()
+ public function getError()
{
- return $this->participant;
+ return $this->error;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $participant
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $error
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setParticipant($participant)
+ public function setError($error)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $participant = self::checkTypes($participant, $types);
+ $error = self::checkTypes($error, $types);
- $this->participant = $participant;
+ $this->error = $error;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getInstrument()
+ public function getProvider()
{
- return $this->instrument;
+ return $this->provider;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $instrument
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInstrument($instrument)
+ public function setProvider($provider)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $instrument = self::checkTypes($instrument, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->instrument = $instrument;
+ $this->provider = $provider;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getError()
+ public function getParticipant()
{
- return $this->error;
+ return $this->participant;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $error
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $participant
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setError($error)
+ public function setParticipant($participant)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $error = self::checkTypes($error, $types);
+ $participant = self::checkTypes($participant, $types);
- $this->error = $error;
+ $this->participant = $participant;
}
}
diff --git a/src/Models/SchemaOrg/ActionAccessSpecification.php b/src/Models/SchemaOrg/ActionAccessSpecification.php
index 168e3daf..be6ed5ba 100644
--- a/src/Models/SchemaOrg/ActionAccessSpecification.php
+++ b/src/Models/SchemaOrg/ActionAccessSpecification.php
@@ -17,249 +17,249 @@ public static function getType()
public static function fieldList() {
$fields = [
- "expectsAcceptanceOf" => "expectsAcceptanceOf",
- "category" => "category",
+ "eligibleRegion" => "eligibleRegion",
"ineligibleRegion" => "ineligibleRegion",
+ "availabilityStarts" => "availabilityStarts",
+ "category" => "category",
"requiresSubscription" => "requiresSubscription",
+ "expectsAcceptanceOf" => "expectsAcceptanceOf",
"availabilityEnds" => "availabilityEnds",
- "eligibleRegion" => "eligibleRegion",
- "availabilityStarts" => "availabilityStarts",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]].
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string
*/
- protected $expectsAcceptanceOf;
+ protected $eligibleRegion;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
+ *
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $category;
+ protected $ineligibleRegion;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
- *
+ * The beginning of the availability of the product or service included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var Date|DateTime|string|null
*/
- protected $ineligibleRegion;
+ protected $availabilityStarts;
/**
- * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no').
+ * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null
*/
- protected $requiresSubscription;
+ protected $category;
/**
- * The end of the availability of the product or service included in the offer.
+ * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no').
*
*
- * @var Date|DateTime|string|null
+ * @var bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- protected $availabilityEnds;
+ protected $requiresSubscription;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]].
- *
+ * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $eligibleRegion;
+ protected $expectsAcceptanceOf;
/**
- * The beginning of the availability of the product or service included in the offer.
+ * The end of the availability of the product or service included in the offer.
*
*
* @var Date|DateTime|string|null
*/
- protected $availabilityStarts;
+ protected $availabilityEnds;
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string
*/
- public function getExpectsAcceptanceOf()
+ public function getEligibleRegion()
{
- return $this->expectsAcceptanceOf;
+ return $this->eligibleRegion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string $eligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpectsAcceptanceOf($expectsAcceptanceOf)
+ public function setEligibleRegion($eligibleRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
];
- $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types);
+ $eligibleRegion = self::checkTypes($eligibleRegion, $types);
- $this->expectsAcceptanceOf = $expectsAcceptanceOf;
+ $this->eligibleRegion = $eligibleRegion;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- public function getCategory()
+ public function getIneligibleRegion()
{
- return $this->category;
+ return $this->ineligibleRegion;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCategory($category)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
"string",
- "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
- "\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\CategoryCode",
- "null",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $category = self::checkTypes($category, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->category = $category;
+ $this->ineligibleRegion = $ineligibleRegion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @return Date|DateTime|string|null
*/
- public function getIneligibleRegion()
+ public function getAvailabilityStarts()
{
- return $this->ineligibleRegion;
+ return $this->availabilityStarts;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param Date|DateTime|string|null $availabilityStarts
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setAvailabilityStarts($availabilityStarts)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "Date",
+ "DateTime",
+ "Time",
+ "null",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $availabilityStarts = self::checkTypes($availabilityStarts, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->availabilityStarts = $availabilityStarts;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null
*/
- public function getRequiresSubscription()
+ public function getCategory()
{
- return $this->requiresSubscription;
+ return $this->category;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null $requiresSubscription
+ * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiresSubscription($requiresSubscription)
+ public function setCategory($category)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaSubscription",
- "bool",
+ "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
"null",
];
- $requiresSubscription = self::checkTypes($requiresSubscription, $types);
+ $category = self::checkTypes($category, $types);
- $this->requiresSubscription = $requiresSubscription;
+ $this->category = $category;
}
/**
- * @return Date|DateTime|string|null
+ * @return bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- public function getAvailabilityEnds()
+ public function getRequiresSubscription()
{
- return $this->availabilityEnds;
+ return $this->requiresSubscription;
}
/**
- * @param Date|DateTime|string|null $availabilityEnds
+ * @param bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null $requiresSubscription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailabilityEnds($availabilityEnds)
+ public function setRequiresSubscription($requiresSubscription)
{
$types = [
- "Date",
- "DateTime",
- "Time",
+ "bool",
+ "\OpenActive\Models\SchemaOrg\MediaSubscription",
+ "string",
"null",
];
- $availabilityEnds = self::checkTypes($availabilityEnds, $types);
+ $requiresSubscription = self::checkTypes($requiresSubscription, $types);
- $this->availabilityEnds = $availabilityEnds;
+ $this->requiresSubscription = $requiresSubscription;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getEligibleRegion()
+ public function getExpectsAcceptanceOf()
{
- return $this->eligibleRegion;
+ return $this->expectsAcceptanceOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
+ * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleRegion($eligibleRegion)
+ public function setExpectsAcceptanceOf($expectsAcceptanceOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
];
- $eligibleRegion = self::checkTypes($eligibleRegion, $types);
+ $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types);
- $this->eligibleRegion = $eligibleRegion;
+ $this->expectsAcceptanceOf = $expectsAcceptanceOf;
}
/**
* @return Date|DateTime|string|null
*/
- public function getAvailabilityStarts()
+ public function getAvailabilityEnds()
{
- return $this->availabilityStarts;
+ return $this->availabilityEnds;
}
/**
- * @param Date|DateTime|string|null $availabilityStarts
+ * @param Date|DateTime|string|null $availabilityEnds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailabilityStarts($availabilityStarts)
+ public function setAvailabilityEnds($availabilityEnds)
{
$types = [
"Date",
@@ -268,9 +268,9 @@ public function setAvailabilityStarts($availabilityStarts)
"null",
];
- $availabilityStarts = self::checkTypes($availabilityStarts, $types);
+ $availabilityEnds = self::checkTypes($availabilityEnds, $types);
- $this->availabilityStarts = $availabilityStarts;
+ $this->availabilityEnds = $availabilityEnds;
}
}
diff --git a/src/Models/SchemaOrg/AggregateOffer.php b/src/Models/SchemaOrg/AggregateOffer.php
index 6fca86b3..928d9e23 100644
--- a/src/Models/SchemaOrg/AggregateOffer.php
+++ b/src/Models/SchemaOrg/AggregateOffer.php
@@ -17,9 +17,9 @@ public static function getType()
public static function fieldList() {
$fields = [
- "highPrice" => "highPrice",
- "offers" => "offers",
"lowPrice" => "lowPrice",
+ "offers" => "offers",
+ "highPrice" => "highPrice",
"offerCount" => "offerCount",
];
@@ -27,12 +27,12 @@ public static function fieldList() {
}
/**
- * The highest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * The lowest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
*
*
* @var string|Number|null
*/
- protected $highPrice;
+ protected $lowPrice;
/**
* An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
@@ -44,12 +44,12 @@ public static function fieldList() {
protected $offers;
/**
- * The lowest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * The highest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
*
*
* @var string|Number|null
*/
- protected $lowPrice;
+ protected $highPrice;
/**
* The number of offers for the product.
@@ -62,17 +62,17 @@ public static function fieldList() {
/**
* @return string|Number|null
*/
- public function getHighPrice()
+ public function getLowPrice()
{
- return $this->highPrice;
+ return $this->lowPrice;
}
/**
- * @param string|Number|null $highPrice
+ * @param string|Number|null $lowPrice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHighPrice($highPrice)
+ public function setLowPrice($lowPrice)
{
$types = [
"string",
@@ -80,9 +80,9 @@ public function setHighPrice($highPrice)
"null",
];
- $highPrice = self::checkTypes($highPrice, $types);
+ $lowPrice = self::checkTypes($lowPrice, $types);
- $this->highPrice = $highPrice;
+ $this->lowPrice = $lowPrice;
}
/**
@@ -114,17 +114,17 @@ public function setOffers($offers)
/**
* @return string|Number|null
*/
- public function getLowPrice()
+ public function getHighPrice()
{
- return $this->lowPrice;
+ return $this->highPrice;
}
/**
- * @param string|Number|null $lowPrice
+ * @param string|Number|null $highPrice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLowPrice($lowPrice)
+ public function setHighPrice($highPrice)
{
$types = [
"string",
@@ -132,9 +132,9 @@ public function setLowPrice($lowPrice)
"null",
];
- $lowPrice = self::checkTypes($lowPrice, $types);
+ $highPrice = self::checkTypes($highPrice, $types);
- $this->lowPrice = $lowPrice;
+ $this->highPrice = $highPrice;
}
/**
diff --git a/src/Models/SchemaOrg/AggregateRating.php b/src/Models/SchemaOrg/AggregateRating.php
index 67100854..eb1f8015 100644
--- a/src/Models/SchemaOrg/AggregateRating.php
+++ b/src/Models/SchemaOrg/AggregateRating.php
@@ -17,22 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
- "itemReviewed" => "itemReviewed",
"reviewCount" => "reviewCount",
"ratingCount" => "ratingCount",
+ "itemReviewed" => "itemReviewed",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The item that is being reviewed/rated.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Thing|string
- */
- protected $itemReviewed;
-
/**
* The count of total number of reviews.
*
@@ -50,29 +42,12 @@ public static function fieldList() {
protected $ratingCount;
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
- */
- public function getItemReviewed()
- {
- return $this->itemReviewed;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The item that is being reviewed/rated.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function setItemReviewed($itemReviewed)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Thing",
- "string",
- ];
-
- $itemReviewed = self::checkTypes($itemReviewed, $types);
-
- $this->itemReviewed = $itemReviewed;
- }
+ protected $itemReviewed;
/**
* @return int|null
@@ -124,4 +99,29 @@ public function setRatingCount($ratingCount)
$this->ratingCount = $ratingCount;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ public function getItemReviewed()
+ {
+ return $this->itemReviewed;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setItemReviewed($itemReviewed)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
+ ];
+
+ $itemReviewed = self::checkTypes($itemReviewed, $types);
+
+ $this->itemReviewed = $itemReviewed;
+ }
+
}
diff --git a/src/Models/SchemaOrg/Airline.php b/src/Models/SchemaOrg/Airline.php
index a4de60d7..b93d32c8 100644
--- a/src/Models/SchemaOrg/Airline.php
+++ b/src/Models/SchemaOrg/Airline.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "iataCode" => "iataCode",
"boardingPolicy" => "boardingPolicy",
+ "iataCode" => "iataCode",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * IATA identifier for an airline or airport.
+ * The type of boarding policy used by the airline (e.g. zone-based or group-based).
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null
*/
- protected $iataCode;
+ protected $boardingPolicy;
/**
- * The type of boarding policy used by the airline (e.g. zone-based or group-based).
+ * IATA identifier for an airline or airport.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null
+ * @var string
*/
- protected $boardingPolicy;
+ protected $iataCode;
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null
*/
- public function getIataCode()
+ public function getBoardingPolicy()
{
- return $this->iataCode;
+ return $this->boardingPolicy;
}
/**
- * @param string $iataCode
+ * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIataCode($iataCode)
+ public function setBoardingPolicy($boardingPolicy)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\BoardingPolicyType",
+ "null",
];
- $iataCode = self::checkTypes($iataCode, $types);
+ $boardingPolicy = self::checkTypes($boardingPolicy, $types);
- $this->iataCode = $iataCode;
+ $this->boardingPolicy = $boardingPolicy;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null
+ * @return string
*/
- public function getBoardingPolicy()
+ public function getIataCode()
{
- return $this->boardingPolicy;
+ return $this->iataCode;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy
+ * @param string $iataCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBoardingPolicy($boardingPolicy)
+ public function setIataCode($iataCode)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BoardingPolicyType",
- "null",
+ "string",
];
- $boardingPolicy = self::checkTypes($boardingPolicy, $types);
+ $iataCode = self::checkTypes($iataCode, $types);
- $this->boardingPolicy = $boardingPolicy;
+ $this->iataCode = $iataCode;
}
}
diff --git a/src/Models/SchemaOrg/AlignmentObject.php b/src/Models/SchemaOrg/AlignmentObject.php
index 88da01c9..fe28d63e 100644
--- a/src/Models/SchemaOrg/AlignmentObject.php
+++ b/src/Models/SchemaOrg/AlignmentObject.php
@@ -17,16 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "targetName" => "targetName",
"alignmentType" => "alignmentType",
"educationalFramework" => "educationalFramework",
"targetDescription" => "targetDescription",
- "targetName" => "targetName",
"targetUrl" => "targetUrl",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The name of a node in an established educational framework.
+ *
+ *
+ * @var string
+ */
+ protected $targetName;
+
/**
* A category of alignment between the learning resource and the framework node. Recommended values include: 'requires', 'textComplexity', 'readingLevel', and 'educationalSubject'.
*
@@ -52,20 +60,36 @@ public static function fieldList() {
protected $targetDescription;
/**
- * The name of a node in an established educational framework.
+ * The URL of a node in an established educational framework.
*
*
* @var string
*/
- protected $targetName;
+ protected $targetUrl;
/**
- * The URL of a node in an established educational framework.
- *
- *
- * @var string
+ * @return string
*/
- protected $targetUrl;
+ public function getTargetName()
+ {
+ return $this->targetName;
+ }
+
+ /**
+ * @param string $targetName
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setTargetName($targetName)
+ {
+ $types = [
+ "string",
+ ];
+
+ $targetName = self::checkTypes($targetName, $types);
+
+ $this->targetName = $targetName;
+ }
/**
* @return string
@@ -139,30 +163,6 @@ public function setTargetDescription($targetDescription)
$this->targetDescription = $targetDescription;
}
- /**
- * @return string
- */
- public function getTargetName()
- {
- return $this->targetName;
- }
-
- /**
- * @param string $targetName
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setTargetName($targetName)
- {
- $types = [
- "string",
- ];
-
- $targetName = self::checkTypes($targetName, $types);
-
- $this->targetName = $targetName;
- }
-
/**
* @return string
*/
diff --git a/src/Models/SchemaOrg/AmpStory.php b/src/Models/SchemaOrg/AmpStory.php
index cc5088b0..7a4303af 100644
--- a/src/Models/SchemaOrg/AmpStory.php
+++ b/src/Models/SchemaOrg/AmpStory.php
@@ -5,7 +5,7 @@
/**
*
*/
-class AmpStory extends \OpenActive\Models\SchemaOrg\CreativeWork
+class AmpStory extends \OpenActive\Models\SchemaOrg\MediaObject
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/AnatomicalStructure.php b/src/Models/SchemaOrg/AnatomicalStructure.php
index 7151ee2f..e16a733d 100644
--- a/src/Models/SchemaOrg/AnatomicalStructure.php
+++ b/src/Models/SchemaOrg/AnatomicalStructure.php
@@ -18,13 +18,13 @@ public static function getType()
public static function fieldList() {
$fields = [
"bodyLocation" => "bodyLocation",
- "connectedTo" => "connectedTo",
+ "diagram" => "diagram",
"partOfSystem" => "partOfSystem",
+ "associatedPathophysiology" => "associatedPathophysiology",
+ "subStructure" => "subStructure",
+ "connectedTo" => "connectedTo",
"relatedTherapy" => "relatedTherapy",
- "diagram" => "diagram",
"relatedCondition" => "relatedCondition",
- "subStructure" => "subStructure",
- "associatedPathophysiology" => "associatedPathophysiology",
];
return array_merge(parent::fieldList(), $fields);
@@ -39,12 +39,12 @@ public static function fieldList() {
protected $bodyLocation;
/**
- * Other anatomical structures to which this structure is connected.
+ * An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $connectedTo;
+ protected $diagram;
/**
* The anatomical or organ system that this structure is part of.
@@ -55,44 +55,44 @@ public static function fieldList() {
protected $partOfSystem;
/**
- * A medical therapy related to this anatomy.
+ * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var string
*/
- protected $relatedTherapy;
+ protected $associatedPathophysiology;
/**
- * An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures.
+ * Component (sub-)structure(s) that comprise this anatomical structure.
*
*
- * @var \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $diagram;
+ protected $subStructure;
/**
- * A medical condition associated with this anatomy.
+ * Other anatomical structures to which this structure is connected.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $relatedCondition;
+ protected $connectedTo;
/**
- * Component (sub-)structure(s) that comprise this anatomical structure.
+ * A medical therapy related to this anatomy.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $subStructure;
+ protected $relatedTherapy;
/**
- * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system.
+ * A medical condition associated with this anatomy.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $associatedPathophysiology;
+ protected $relatedCondition;
/**
* @return string
@@ -119,28 +119,28 @@ public function setBodyLocation($bodyLocation)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getConnectedTo()
+ public function getDiagram()
{
- return $this->connectedTo;
+ return $this->diagram;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $connectedTo
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|string $diagram
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setConnectedTo($connectedTo)
+ public function setDiagram($diagram)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $connectedTo = self::checkTypes($connectedTo, $types);
+ $diagram = self::checkTypes($diagram, $types);
- $this->connectedTo = $connectedTo;
+ $this->diagram = $diagram;
}
/**
@@ -169,127 +169,127 @@ public function setPartOfSystem($partOfSystem)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return string
*/
- public function getRelatedTherapy()
+ public function getAssociatedPathophysiology()
{
- return $this->relatedTherapy;
+ return $this->associatedPathophysiology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
+ * @param string $associatedPathophysiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelatedTherapy($relatedTherapy)
+ public function setAssociatedPathophysiology($associatedPathophysiology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $relatedTherapy = self::checkTypes($relatedTherapy, $types);
+ $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types);
- $this->relatedTherapy = $relatedTherapy;
+ $this->associatedPathophysiology = $associatedPathophysiology;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getDiagram()
+ public function getSubStructure()
{
- return $this->diagram;
+ return $this->subStructure;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|string $diagram
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $subStructure
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiagram($diagram)
+ public function setSubStructure($subStructure)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $diagram = self::checkTypes($diagram, $types);
+ $subStructure = self::checkTypes($subStructure, $types);
- $this->diagram = $diagram;
+ $this->subStructure = $subStructure;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getRelatedCondition()
+ public function getConnectedTo()
{
- return $this->relatedCondition;
+ return $this->connectedTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $connectedTo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelatedCondition($relatedCondition)
+ public function setConnectedTo($connectedTo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $relatedCondition = self::checkTypes($relatedCondition, $types);
+ $connectedTo = self::checkTypes($connectedTo, $types);
- $this->relatedCondition = $relatedCondition;
+ $this->connectedTo = $connectedTo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getSubStructure()
+ public function getRelatedTherapy()
{
- return $this->subStructure;
+ return $this->relatedTherapy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $subStructure
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSubStructure($subStructure)
+ public function setRelatedTherapy($relatedTherapy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $subStructure = self::checkTypes($subStructure, $types);
+ $relatedTherapy = self::checkTypes($relatedTherapy, $types);
- $this->subStructure = $subStructure;
+ $this->relatedTherapy = $relatedTherapy;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getAssociatedPathophysiology()
+ public function getRelatedCondition()
{
- return $this->associatedPathophysiology;
+ return $this->relatedCondition;
}
/**
- * @param string $associatedPathophysiology
+ * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedPathophysiology($associatedPathophysiology)
+ public function setRelatedCondition($relatedCondition)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types);
+ $relatedCondition = self::checkTypes($relatedCondition, $types);
- $this->associatedPathophysiology = $associatedPathophysiology;
+ $this->relatedCondition = $relatedCondition;
}
}
diff --git a/src/Models/SchemaOrg/AnatomicalSystem.php b/src/Models/SchemaOrg/AnatomicalSystem.php
index 3c5f3391..eabc9511 100644
--- a/src/Models/SchemaOrg/AnatomicalSystem.php
+++ b/src/Models/SchemaOrg/AnatomicalSystem.php
@@ -17,179 +17,179 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "comprisedOf" => "comprisedOf",
+ "associatedPathophysiology" => "associatedPathophysiology",
"relatedTherapy" => "relatedTherapy",
- "relatedCondition" => "relatedCondition",
"relatedStructure" => "relatedStructure",
- "associatedPathophysiology" => "associatedPathophysiology",
- "comprisedOf" => "comprisedOf",
+ "relatedCondition" => "relatedCondition",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A medical therapy related to this anatomy.
+ * Specifying something physically contained by something else. Typically used here for the underlying anatomical structures, such as organs, that comprise the anatomical system.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- protected $relatedTherapy;
+ protected $comprisedOf;
/**
- * A medical condition associated with this anatomy.
+ * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var string
*/
- protected $relatedCondition;
+ protected $associatedPathophysiology;
/**
- * Related anatomical structure(s) that are not part of the system but relate or connect to it, such as vascular bundles associated with an organ system.
+ * A medical therapy related to this anatomy.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $relatedStructure;
+ protected $relatedTherapy;
/**
- * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system.
+ * Related anatomical structure(s) that are not part of the system but relate or connect to it, such as vascular bundles associated with an organ system.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $associatedPathophysiology;
+ protected $relatedStructure;
/**
- * Specifying something physically contained by something else. Typically used here for the underlying anatomical structures, such as organs, that comprise the anatomical system.
+ * A medical condition associated with this anatomy.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $comprisedOf;
+ protected $relatedCondition;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- public function getRelatedTherapy()
+ public function getComprisedOf()
{
- return $this->relatedTherapy;
+ return $this->comprisedOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $comprisedOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelatedTherapy($relatedTherapy)
+ public function setComprisedOf($comprisedOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
- $relatedTherapy = self::checkTypes($relatedTherapy, $types);
+ $comprisedOf = self::checkTypes($comprisedOf, $types);
- $this->relatedTherapy = $relatedTherapy;
+ $this->comprisedOf = $comprisedOf;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return string
*/
- public function getRelatedCondition()
+ public function getAssociatedPathophysiology()
{
- return $this->relatedCondition;
+ return $this->associatedPathophysiology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition
+ * @param string $associatedPathophysiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelatedCondition($relatedCondition)
+ public function setAssociatedPathophysiology($associatedPathophysiology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $relatedCondition = self::checkTypes($relatedCondition, $types);
+ $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types);
- $this->relatedCondition = $relatedCondition;
+ $this->associatedPathophysiology = $associatedPathophysiology;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getRelatedStructure()
+ public function getRelatedTherapy()
{
- return $this->relatedStructure;
+ return $this->relatedTherapy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $relatedStructure
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelatedStructure($relatedStructure)
+ public function setRelatedTherapy($relatedTherapy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $relatedStructure = self::checkTypes($relatedStructure, $types);
+ $relatedTherapy = self::checkTypes($relatedTherapy, $types);
- $this->relatedStructure = $relatedStructure;
+ $this->relatedTherapy = $relatedTherapy;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getAssociatedPathophysiology()
+ public function getRelatedStructure()
{
- return $this->associatedPathophysiology;
+ return $this->relatedStructure;
}
/**
- * @param string $associatedPathophysiology
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $relatedStructure
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedPathophysiology($associatedPathophysiology)
+ public function setRelatedStructure($relatedStructure)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types);
+ $relatedStructure = self::checkTypes($relatedStructure, $types);
- $this->associatedPathophysiology = $associatedPathophysiology;
+ $this->relatedStructure = $relatedStructure;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getComprisedOf()
+ public function getRelatedCondition()
{
- return $this->comprisedOf;
+ return $this->relatedCondition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $comprisedOf
+ * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setComprisedOf($comprisedOf)
+ public function setRelatedCondition($relatedCondition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $comprisedOf = self::checkTypes($comprisedOf, $types);
+ $relatedCondition = self::checkTypes($relatedCondition, $types);
- $this->comprisedOf = $comprisedOf;
+ $this->relatedCondition = $relatedCondition;
}
}
diff --git a/src/Models/SchemaOrg/Answer.php b/src/Models/SchemaOrg/Answer.php
index a188ef02..8821e1f9 100644
--- a/src/Models/SchemaOrg/Answer.php
+++ b/src/Models/SchemaOrg/Answer.php
@@ -17,12 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "parentItem" => "parentItem",
"answerExplanation" => "answerExplanation",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The parent of a question, answer or item in general. Typically used for Q/A discussion threads e.g. a chain of comments with the first comment being an [[Article]] or other [[CreativeWork]]. See also [[comment]] which points from something to a comment about it.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string
+ */
+ protected $parentItem;
+
/**
* A step-by-step or full explanation about Answer. Can outline how this Answer was achieved or contain more broad clarification or statement about it.
*
@@ -31,6 +40,32 @@ public static function fieldList() {
*/
protected $answerExplanation;
+ /**
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string
+ */
+ public function getParentItem()
+ {
+ return $this->parentItem;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string $parentItem
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setParentItem($parentItem)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Comment",
+ "string",
+ ];
+
+ $parentItem = self::checkTypes($parentItem, $types);
+
+ $this->parentItem = $parentItem;
+ }
+
/**
* @return \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Comment|string
*/
diff --git a/src/Models/SchemaOrg/Apartment.php b/src/Models/SchemaOrg/Apartment.php
index 89cfe3f1..95533952 100644
--- a/src/Models/SchemaOrg/Apartment.php
+++ b/src/Models/SchemaOrg/Apartment.php
@@ -35,7 +35,7 @@ public static function fieldList() {
/**
* The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person).
- * Typical unit code(s): C62 for person
+ * Typical unit code(s): C62 for person.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
diff --git a/src/Models/SchemaOrg/ApartmentComplex.php b/src/Models/SchemaOrg/ApartmentComplex.php
index 840b9180..48ca8e52 100644
--- a/src/Models/SchemaOrg/ApartmentComplex.php
+++ b/src/Models/SchemaOrg/ApartmentComplex.php
@@ -17,24 +17,16 @@ public static function getType()
public static function fieldList() {
$fields = [
- "numberOfAccommodationUnits" => "numberOfAccommodationUnits",
"numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits",
"tourBookingPage" => "tourBookingPage",
- "numberOfBedrooms" => "numberOfBedrooms",
"petsAllowed" => "petsAllowed",
+ "numberOfBedrooms" => "numberOfBedrooms",
+ "numberOfAccommodationUnits" => "numberOfAccommodationUnits",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]].
- *
- *
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
- */
- protected $numberOfAccommodationUnits;
-
/**
* Indicates the number of available accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAccommodationUnits]].
*
@@ -51,6 +43,14 @@ public static function fieldList() {
*/
protected $tourBookingPage;
+ /**
+ * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ *
+ *
+ * @var bool|string|null
+ */
+ protected $petsAllowed;
+
/**
* The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
*
@@ -60,85 +60,86 @@ public static function fieldList() {
protected $numberOfBedrooms;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]].
*
*
- * @var bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $petsAllowed;
+ protected $numberOfAccommodationUnits;
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfAccommodationUnits()
+ public function getNumberOfAvailableAccommodationUnits()
{
- return $this->numberOfAccommodationUnits;
+ return $this->numberOfAvailableAccommodationUnits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
+ public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
+ $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
- $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
+ $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getNumberOfAvailableAccommodationUnits()
+ public function getTourBookingPage()
{
- return $this->numberOfAvailableAccommodationUnits;
+ return $this->tourBookingPage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits
+ * @param string $tourBookingPage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
+ public function setTourBookingPage($tourBookingPage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
+ $tourBookingPage = self::checkTypes($tourBookingPage, $types);
- $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
+ $this->tourBookingPage = $tourBookingPage;
}
/**
- * @return string
+ * @return bool|string|null
*/
- public function getTourBookingPage()
+ public function getPetsAllowed()
{
- return $this->tourBookingPage;
+ return $this->petsAllowed;
}
/**
- * @param string $tourBookingPage
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTourBookingPage($tourBookingPage)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
+ "bool",
"string",
+ "null",
];
- $tourBookingPage = self::checkTypes($tourBookingPage, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->tourBookingPage = $tourBookingPage;
+ $this->petsAllowed = $petsAllowed;
}
/**
@@ -169,29 +170,28 @@ public function setNumberOfBedrooms($numberOfBedrooms)
}
/**
- * @return bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getPetsAllowed()
+ public function getNumberOfAccommodationUnits()
{
- return $this->petsAllowed;
+ return $this->numberOfAccommodationUnits;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
}
}
diff --git a/src/Models/SchemaOrg/ArchiveComponent.php b/src/Models/SchemaOrg/ArchiveComponent.php
index 3aa0360c..9e014ae9 100644
--- a/src/Models/SchemaOrg/ArchiveComponent.php
+++ b/src/Models/SchemaOrg/ArchiveComponent.php
@@ -36,7 +36,7 @@ public static function fieldList() {
* [object Object]
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place
*/
protected $itemLocation;
@@ -66,7 +66,7 @@ public function setHoldingArchive($holdingArchive)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place
*/
public function getItemLocation()
{
@@ -74,16 +74,16 @@ public function getItemLocation()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $itemLocation
+ * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place $itemLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setItemLocation($itemLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
"\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Place",
];
$itemLocation = self::checkTypes($itemLocation, $types);
diff --git a/src/Models/SchemaOrg/Artery.php b/src/Models/SchemaOrg/Artery.php
index 31bd6c37..d38df343 100644
--- a/src/Models/SchemaOrg/Artery.php
+++ b/src/Models/SchemaOrg/Artery.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "supplyTo" => "supplyTo",
"arterialBranch" => "arterialBranch",
+ "supplyTo" => "supplyTo",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The area to which the artery supplies blood.
+ * The branches that comprise the arterial structure.
*
*
* @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $supplyTo;
+ protected $arterialBranch;
/**
- * The branches that comprise the arterial structure.
+ * The area to which the artery supplies blood.
*
*
* @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $arterialBranch;
+ protected $supplyTo;
/**
* @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getSupplyTo()
+ public function getArterialBranch()
{
- return $this->supplyTo;
+ return $this->arterialBranch;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $supplyTo
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $arterialBranch
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSupplyTo($supplyTo)
+ public function setArterialBranch($arterialBranch)
{
$types = [
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $supplyTo = self::checkTypes($supplyTo, $types);
+ $arterialBranch = self::checkTypes($arterialBranch, $types);
- $this->supplyTo = $supplyTo;
+ $this->arterialBranch = $arterialBranch;
}
/**
* @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getArterialBranch()
+ public function getSupplyTo()
{
- return $this->arterialBranch;
+ return $this->supplyTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $arterialBranch
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $supplyTo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArterialBranch($arterialBranch)
+ public function setSupplyTo($supplyTo)
{
$types = [
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $arterialBranch = self::checkTypes($arterialBranch, $types);
+ $supplyTo = self::checkTypes($supplyTo, $types);
- $this->arterialBranch = $arterialBranch;
+ $this->supplyTo = $supplyTo;
}
}
diff --git a/src/Models/SchemaOrg/Article.php b/src/Models/SchemaOrg/Article.php
index 7191721f..11629f53 100644
--- a/src/Models/SchemaOrg/Article.php
+++ b/src/Models/SchemaOrg/Article.php
@@ -17,50 +17,71 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "pagination" => "pagination",
+ "backstory" => "backstory",
+ "speakable" => "speakable",
"pageStart" => "pageStart",
- "articleSection" => "articleSection",
"pageEnd" => "pageEnd",
- "backstory" => "backstory",
"wordCount" => "wordCount",
"articleBody" => "articleBody",
- "speakable" => "speakable",
- "pagination" => "pagination",
+ "articleSection" => "articleSection",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The page on which the work starts; for example "135" or "xiii".
+ * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".
*
*
- * @var string|int|null
+ * @var string
*/
- protected $pageStart;
+ protected $pagination;
/**
- * Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc.
+ * For an [[Article]], typically a [[NewsArticle]], the backstory property provides a textual summary giving a brief explanation of why and how an article was created. In a journalistic setting this could include information about reporting process, methods, interviews, data sources, etc.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $articleSection;
+ protected $backstory;
/**
- * The page on which the work ends; for example "138" or "xvi".
+ * Indicates sections of a Web page that are particularly 'speakable' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the 'speakable' property serves to indicate the parts most likely to be generally useful for speech.
+ *
+ * The *speakable* property can be repeated an arbitrary number of times, with three kinds of possible 'content-locator' values:
+ *
+ * 1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned.
+ *
+ * 2.) CSS Selectors - addresses content in the annotated page, e.g. via class attribute. Use the [[cssSelector]] property.
+ *
+ * 3.) XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property.
+ *
+ *
+ * For more sophisticated markup of speakable sections beyond simple ID references, either CSS selectors or XPath expressions to pick out document section(s) as speakable. For this
+ * we define a supporting type, [[SpeakableSpecification]] which is defined to be a possible value of the *speakable* property.
+ *
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\SpeakableSpecification|string
+ */
+ protected $speakable;
+
+ /**
+ * The page on which the work starts; for example "135" or "xiii".
*
*
* @var string|int|null
*/
- protected $pageEnd;
+ protected $pageStart;
/**
- * For an [[Article]], typically a [[NewsArticle]], the backstory property provides a textual summary giving a brief explanation of why and how an article was created. In a journalistic setting this could include information about reporting process, methods, interviews, data sources, etc.
+ * The page on which the work ends; for example "138" or "xvi".
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var string|int|null
*/
- protected $backstory;
+ protected $pageEnd;
/**
* The number of words in the text of the Article.
@@ -79,98 +100,101 @@ public static function fieldList() {
protected $articleBody;
/**
- * Indicates sections of a Web page that are particularly 'speakable' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the 'speakable' property serves to indicate the parts most likely to be generally useful for speech.
- *
- * The *speakable* property can be repeated an arbitrary number of times, with three kinds of possible 'content-locator' values:
- *
- * 1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned.
- *
- * 2.) CSS Selectors - addresses content in the annotated page, eg. via class attribute. Use the [[cssSelector]] property.
- *
- * 3.) XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property.
- *
- *
- * For more sophisticated markup of speakable sections beyond simple ID references, either CSS selectors or XPath expressions to pick out document section(s) as speakable. For this
- * we define a supporting type, [[SpeakableSpecification]] which is defined to be a possible value of the *speakable* property.
- *
+ * Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\SpeakableSpecification
+ * @var string
*/
- protected $speakable;
+ protected $articleSection;
/**
- * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".
- *
- *
- * @var string
+ * @return string
*/
- protected $pagination;
+ public function getPagination()
+ {
+ return $this->pagination;
+ }
/**
- * @return string|int|null
+ * @param string $pagination
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function getPageStart()
+ public function setPagination($pagination)
{
- return $this->pageStart;
+ $types = [
+ "string",
+ ];
+
+ $pagination = self::checkTypes($pagination, $types);
+
+ $this->pagination = $pagination;
}
/**
- * @param string|int|null $pageStart
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ public function getBackstory()
+ {
+ return $this->backstory;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $backstory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPageStart($pageStart)
+ public function setBackstory($backstory)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "int",
- "null",
];
- $pageStart = self::checkTypes($pageStart, $types);
+ $backstory = self::checkTypes($backstory, $types);
- $this->pageStart = $pageStart;
+ $this->backstory = $backstory;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\SpeakableSpecification|string
*/
- public function getArticleSection()
+ public function getSpeakable()
{
- return $this->articleSection;
+ return $this->speakable;
}
/**
- * @param string $articleSection
+ * @param \OpenActive\Models\SchemaOrg\SpeakableSpecification|string $speakable
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArticleSection($articleSection)
+ public function setSpeakable($speakable)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SpeakableSpecification",
"string",
];
- $articleSection = self::checkTypes($articleSection, $types);
+ $speakable = self::checkTypes($speakable, $types);
- $this->articleSection = $articleSection;
+ $this->speakable = $speakable;
}
/**
* @return string|int|null
*/
- public function getPageEnd()
+ public function getPageStart()
{
- return $this->pageEnd;
+ return $this->pageStart;
}
/**
- * @param string|int|null $pageEnd
+ * @param string|int|null $pageStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPageEnd($pageEnd)
+ public function setPageStart($pageStart)
{
$types = [
"string",
@@ -178,34 +202,35 @@ public function setPageEnd($pageEnd)
"null",
];
- $pageEnd = self::checkTypes($pageEnd, $types);
+ $pageStart = self::checkTypes($pageStart, $types);
- $this->pageEnd = $pageEnd;
+ $this->pageStart = $pageStart;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return string|int|null
*/
- public function getBackstory()
+ public function getPageEnd()
{
- return $this->backstory;
+ return $this->pageEnd;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $backstory
+ * @param string|int|null $pageEnd
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBackstory($backstory)
+ public function setPageEnd($pageEnd)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "int",
+ "null",
];
- $backstory = self::checkTypes($backstory, $types);
+ $pageEnd = self::checkTypes($pageEnd, $types);
- $this->backstory = $backstory;
+ $this->pageEnd = $pageEnd;
}
/**
@@ -257,53 +282,28 @@ public function setArticleBody($articleBody)
$this->articleBody = $articleBody;
}
- /**
- * @return string|\OpenActive\Models\SchemaOrg\SpeakableSpecification
- */
- public function getSpeakable()
- {
- return $this->speakable;
- }
-
- /**
- * @param string|\OpenActive\Models\SchemaOrg\SpeakableSpecification $speakable
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setSpeakable($speakable)
- {
- $types = [
- "string",
- "\OpenActive\Models\SchemaOrg\SpeakableSpecification",
- ];
-
- $speakable = self::checkTypes($speakable, $types);
-
- $this->speakable = $speakable;
- }
-
/**
* @return string
*/
- public function getPagination()
+ public function getArticleSection()
{
- return $this->pagination;
+ return $this->articleSection;
}
/**
- * @param string $pagination
+ * @param string $articleSection
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPagination($pagination)
+ public function setArticleSection($articleSection)
{
$types = [
"string",
];
- $pagination = self::checkTypes($pagination, $types);
+ $articleSection = self::checkTypes($articleSection, $types);
- $this->pagination = $pagination;
+ $this->articleSection = $articleSection;
}
}
diff --git a/src/Models/SchemaOrg/AudioObject.php b/src/Models/SchemaOrg/AudioObject.php
index 6c0af6a0..b7d98c84 100644
--- a/src/Models/SchemaOrg/AudioObject.php
+++ b/src/Models/SchemaOrg/AudioObject.php
@@ -17,109 +17,109 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "transcript" => "transcript",
"embeddedTextCaption" => "embeddedTextCaption",
"caption" => "caption",
- "transcript" => "transcript",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.
+ * If this MediaObject is an AudioObject or VideoObject, the transcript of that object.
*
*
* @var string
*/
- protected $embeddedTextCaption;
+ protected $transcript;
/**
- * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]].
+ * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @var string
*/
- protected $caption;
+ protected $embeddedTextCaption;
/**
- * If this MediaObject is an AudioObject or VideoObject, the transcript of that object.
+ * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- protected $transcript;
+ protected $caption;
/**
* @return string
*/
- public function getEmbeddedTextCaption()
+ public function getTranscript()
{
- return $this->embeddedTextCaption;
+ return $this->transcript;
}
/**
- * @param string $embeddedTextCaption
+ * @param string $transcript
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmbeddedTextCaption($embeddedTextCaption)
+ public function setTranscript($transcript)
{
$types = [
"string",
];
- $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
+ $transcript = self::checkTypes($transcript, $types);
- $this->embeddedTextCaption = $embeddedTextCaption;
+ $this->transcript = $transcript;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @return string
*/
- public function getCaption()
+ public function getEmbeddedTextCaption()
{
- return $this->caption;
+ return $this->embeddedTextCaption;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption
+ * @param string $embeddedTextCaption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCaption($caption)
+ public function setEmbeddedTextCaption($embeddedTextCaption)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
];
- $caption = self::checkTypes($caption, $types);
+ $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
- $this->caption = $caption;
+ $this->embeddedTextCaption = $embeddedTextCaption;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getTranscript()
+ public function getCaption()
{
- return $this->transcript;
+ return $this->caption;
}
/**
- * @param string $transcript
+ * @param \OpenActive\Models\SchemaOrg\MediaObject|string $caption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranscript($transcript)
+ public function setCaption($caption)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $transcript = self::checkTypes($transcript, $types);
+ $caption = self::checkTypes($caption, $types);
- $this->transcript = $transcript;
+ $this->caption = $caption;
}
}
diff --git a/src/Models/SchemaOrg/Audiobook.php b/src/Models/SchemaOrg/Audiobook.php
index 86bdf5c8..28a3874c 100644
--- a/src/Models/SchemaOrg/Audiobook.php
+++ b/src/Models/SchemaOrg/Audiobook.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Audiobook extends \OpenActive\Models\SchemaOrg\AudioObject
+class Audiobook extends \OpenActive\Models\SchemaOrg\Book
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/AuthorizeAction.php b/src/Models/SchemaOrg/AuthorizeAction.php
index 8f33b194..162a3356 100644
--- a/src/Models/SchemaOrg/AuthorizeAction.php
+++ b/src/Models/SchemaOrg/AuthorizeAction.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A sub property of participant. The participant who is at the receiving end of the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
public function getRecipient()
{
@@ -40,17 +40,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
diff --git a/src/Models/SchemaOrg/AutoPartsStore.php b/src/Models/SchemaOrg/AutoPartsStore.php
index 92b5ba9f..c321eaea 100644
--- a/src/Models/SchemaOrg/AutoPartsStore.php
+++ b/src/Models/SchemaOrg/AutoPartsStore.php
@@ -5,7 +5,7 @@
/**
*
*/
-class AutoPartsStore extends \OpenActive\Models\SchemaOrg\Store
+class AutoPartsStore extends \OpenActive\Models\SchemaOrg\AutomotiveBusiness
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/BankAccount.php b/src/Models/SchemaOrg/BankAccount.php
index d574381d..e2e78acb 100644
--- a/src/Models/SchemaOrg/BankAccount.php
+++ b/src/Models/SchemaOrg/BankAccount.php
@@ -17,110 +17,110 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "accountOverdraftLimit" => "accountOverdraftLimit",
"bankAccountType" => "bankAccountType",
"accountMinimumInflow" => "accountMinimumInflow",
- "accountOverdraftLimit" => "accountOverdraftLimit",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type of a bank account.
+ * An overdraft is an extension of credit from a lending institution when an account reaches zero. An overdraft allows the individual to continue withdrawing money even if the account has no funds in it. Basically the bank allows people to borrow a set amount of money.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $bankAccountType;
+ protected $accountOverdraftLimit;
/**
- * A minimum amount that has to be paid in every month.
+ * The type of a bank account.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var string
*/
- protected $accountMinimumInflow;
+ protected $bankAccountType;
/**
- * An overdraft is an extension of credit from a lending institution when an account reaches zero. An overdraft allows the individual to continue withdrawing money even if the account has no funds in it. Basically the bank allows people to borrow a set amount of money.
+ * A minimum amount that has to be paid in every month.
*
*
* @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $accountOverdraftLimit;
+ protected $accountMinimumInflow;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getBankAccountType()
+ public function getAccountOverdraftLimit()
{
- return $this->bankAccountType;
+ return $this->accountOverdraftLimit;
}
/**
- * @param string $bankAccountType
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $accountOverdraftLimit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBankAccountType($bankAccountType)
+ public function setAccountOverdraftLimit($accountOverdraftLimit)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $bankAccountType = self::checkTypes($bankAccountType, $types);
+ $accountOverdraftLimit = self::checkTypes($accountOverdraftLimit, $types);
- $this->bankAccountType = $bankAccountType;
+ $this->accountOverdraftLimit = $accountOverdraftLimit;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return string
*/
- public function getAccountMinimumInflow()
+ public function getBankAccountType()
{
- return $this->accountMinimumInflow;
+ return $this->bankAccountType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $accountMinimumInflow
+ * @param string $bankAccountType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccountMinimumInflow($accountMinimumInflow)
+ public function setBankAccountType($bankAccountType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $accountMinimumInflow = self::checkTypes($accountMinimumInflow, $types);
+ $bankAccountType = self::checkTypes($bankAccountType, $types);
- $this->accountMinimumInflow = $accountMinimumInflow;
+ $this->bankAccountType = $bankAccountType;
}
/**
* @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getAccountOverdraftLimit()
+ public function getAccountMinimumInflow()
{
- return $this->accountOverdraftLimit;
+ return $this->accountMinimumInflow;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $accountOverdraftLimit
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $accountMinimumInflow
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccountOverdraftLimit($accountOverdraftLimit)
+ public function setAccountMinimumInflow($accountMinimumInflow)
{
$types = [
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $accountOverdraftLimit = self::checkTypes($accountOverdraftLimit, $types);
+ $accountMinimumInflow = self::checkTypes($accountMinimumInflow, $types);
- $this->accountOverdraftLimit = $accountOverdraftLimit;
+ $this->accountMinimumInflow = $accountMinimumInflow;
}
}
diff --git a/src/Models/SchemaOrg/BioChemEntity.php b/src/Models/SchemaOrg/BioChemEntity.php
index c73b1a54..748d6075 100644
--- a/src/Models/SchemaOrg/BioChemEntity.php
+++ b/src/Models/SchemaOrg/BioChemEntity.php
@@ -17,24 +17,32 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "hasBioChemEntityPart" => "hasBioChemEntityPart",
"funding" => "funding",
- "isEncodedByBioChemEntity" => "isEncodedByBioChemEntity",
- "isPartOfBioChemEntity" => "isPartOfBioChemEntity",
- "taxonomicRange" => "taxonomicRange",
+ "biologicalRole" => "biologicalRole",
+ "associatedDisease" => "associatedDisease",
"isInvolvedInBiologicalProcess" => "isInvolvedInBiologicalProcess",
+ "isPartOfBioChemEntity" => "isPartOfBioChemEntity",
"isLocatedInSubcellularLocation" => "isLocatedInSubcellularLocation",
- "associatedDisease" => "associatedDisease",
- "hasMolecularFunction" => "hasMolecularFunction",
- "hasBioChemEntityPart" => "hasBioChemEntityPart",
- "bioChemInteraction" => "bioChemInteraction",
"hasRepresentation" => "hasRepresentation",
+ "isEncodedByBioChemEntity" => "isEncodedByBioChemEntity",
"bioChemSimilarity" => "bioChemSimilarity",
- "biologicalRole" => "biologicalRole",
+ "bioChemInteraction" => "bioChemInteraction",
+ "hasMolecularFunction" => "hasMolecularFunction",
+ "taxonomicRange" => "taxonomicRange",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ */
+ protected $hasBioChemEntityPart;
+
/**
* A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
@@ -44,68 +52,68 @@ public static function fieldList() {
protected $funding;
/**
- * Another BioChemEntity encoding by this one.
+ * A role played by the BioChemEntity within a biological context.
*
*
- * @var \OpenActive\Models\SchemaOrg\Gene|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $isEncodedByBioChemEntity;
+ protected $biologicalRole;
/**
- * Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity.
+ * Disease associated to this BioChemEntity. Such disease can be a MedicalCondition or a URL. If you want to add an evidence supporting the association, please use PropertyValue.
*
*
- * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $isPartOfBioChemEntity;
+ protected $associatedDisease;
/**
- * The taxonomic grouping of the organism that expresses, encodes, or in someway related to the BioChemEntity.
+ * Biological process this BioChemEntity is involved in; please use PropertyValue if you want to include any evidence.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $taxonomicRange;
+ protected $isInvolvedInBiologicalProcess;
/**
- * Biological process this BioChemEntity is involved in; please use PropertyValue if you want to include any evidence.
+ * Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $isInvolvedInBiologicalProcess;
+ protected $isPartOfBioChemEntity;
/**
* Subcellular location where this BioChemEntity is located; please use PropertyValue if you want to include any evidence.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string
*/
protected $isLocatedInSubcellularLocation;
/**
- * Disease associated to this BioChemEntity. Such disease can be a MedicalCondition or a URL. If you want to add an evidence supporting the association, please use PropertyValue.
+ * A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition
+ * @var string|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- protected $associatedDisease;
+ protected $hasRepresentation;
/**
- * Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence.
+ * Another BioChemEntity encoding by this one.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\Gene|string
*/
- protected $hasMolecularFunction;
+ protected $isEncodedByBioChemEntity;
/**
- * Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part.
+ * A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms.
*
*
* @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $hasBioChemEntityPart;
+ protected $bioChemSimilarity;
/**
* A BioChemEntity that is known to interact with this item.
@@ -116,28 +124,45 @@ public static function fieldList() {
protected $bioChemInteraction;
/**
- * A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image.
+ * Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PropertyValue
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $hasRepresentation;
+ protected $hasMolecularFunction;
/**
- * A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms.
+ * The taxonomic grouping of the organism that expresses, encodes, or in some way related to the BioChemEntity.
*
*
- * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
*/
- protected $bioChemSimilarity;
+ protected $taxonomicRange;
/**
- * A role played by the BioChemEntity within a biological context.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $biologicalRole;
+ public function getHasBioChemEntityPart()
+ {
+ return $this->hasBioChemEntityPart;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $hasBioChemEntityPart
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setHasBioChemEntityPart($hasBioChemEntityPart)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
+ "string",
+ ];
+
+ $hasBioChemEntityPart = self::checkTypes($hasBioChemEntityPart, $types);
+
+ $this->hasBioChemEntityPart = $hasBioChemEntityPart;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\Grant|string
@@ -165,109 +190,109 @@ public function setFunding($funding)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Gene|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getIsEncodedByBioChemEntity()
+ public function getBiologicalRole()
{
- return $this->isEncodedByBioChemEntity;
+ return $this->biologicalRole;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Gene|string $isEncodedByBioChemEntity
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $biologicalRole
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsEncodedByBioChemEntity($isEncodedByBioChemEntity)
+ public function setBiologicalRole($biologicalRole)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Gene",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $isEncodedByBioChemEntity = self::checkTypes($isEncodedByBioChemEntity, $types);
+ $biologicalRole = self::checkTypes($biologicalRole, $types);
- $this->isEncodedByBioChemEntity = $isEncodedByBioChemEntity;
+ $this->biologicalRole = $biologicalRole;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getIsPartOfBioChemEntity()
+ public function getAssociatedDisease()
{
- return $this->isPartOfBioChemEntity;
+ return $this->associatedDisease;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $isPartOfBioChemEntity
+ * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition|string $associatedDisease
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsPartOfBioChemEntity($isPartOfBioChemEntity)
+ public function setAssociatedDisease($associatedDisease)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $isPartOfBioChemEntity = self::checkTypes($isPartOfBioChemEntity, $types);
+ $associatedDisease = self::checkTypes($associatedDisease, $types);
- $this->isPartOfBioChemEntity = $isPartOfBioChemEntity;
+ $this->associatedDisease = $associatedDisease;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getTaxonomicRange()
+ public function getIsInvolvedInBiologicalProcess()
{
- return $this->taxonomicRange;
+ return $this->isInvolvedInBiologicalProcess;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon $taxonomicRange
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $isInvolvedInBiologicalProcess
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTaxonomicRange($taxonomicRange)
+ public function setIsInvolvedInBiologicalProcess($isInvolvedInBiologicalProcess)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
- "\OpenActive\Models\SchemaOrg\Taxon",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "string",
];
- $taxonomicRange = self::checkTypes($taxonomicRange, $types);
+ $isInvolvedInBiologicalProcess = self::checkTypes($isInvolvedInBiologicalProcess, $types);
- $this->taxonomicRange = $taxonomicRange;
+ $this->isInvolvedInBiologicalProcess = $isInvolvedInBiologicalProcess;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- public function getIsInvolvedInBiologicalProcess()
+ public function getIsPartOfBioChemEntity()
{
- return $this->isInvolvedInBiologicalProcess;
+ return $this->isPartOfBioChemEntity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm $isInvolvedInBiologicalProcess
+ * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $isPartOfBioChemEntity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsInvolvedInBiologicalProcess($isInvolvedInBiologicalProcess)
+ public function setIsPartOfBioChemEntity($isPartOfBioChemEntity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $isInvolvedInBiologicalProcess = self::checkTypes($isInvolvedInBiologicalProcess, $types);
+ $isPartOfBioChemEntity = self::checkTypes($isPartOfBioChemEntity, $types);
- $this->isInvolvedInBiologicalProcess = $isInvolvedInBiologicalProcess;
+ $this->isPartOfBioChemEntity = $isPartOfBioChemEntity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string
*/
public function getIsLocatedInSubcellularLocation()
{
@@ -275,15 +300,15 @@ public function getIsLocatedInSubcellularLocation()
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $isLocatedInSubcellularLocation
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $isLocatedInSubcellularLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
@@ -293,80 +318,78 @@ public function setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocatio
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition
+ * @return string|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- public function getAssociatedDisease()
+ public function getHasRepresentation()
{
- return $this->associatedDisease;
+ return $this->hasRepresentation;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition $associatedDisease
+ * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $hasRepresentation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedDisease($associatedDisease)
+ public function setHasRepresentation($hasRepresentation)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\PropertyValue",
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
];
- $associatedDisease = self::checkTypes($associatedDisease, $types);
+ $hasRepresentation = self::checkTypes($hasRepresentation, $types);
- $this->associatedDisease = $associatedDisease;
+ $this->hasRepresentation = $hasRepresentation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\Gene|string
*/
- public function getHasMolecularFunction()
+ public function getIsEncodedByBioChemEntity()
{
- return $this->hasMolecularFunction;
+ return $this->isEncodedByBioChemEntity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $hasMolecularFunction
+ * @param \OpenActive\Models\SchemaOrg\Gene|string $isEncodedByBioChemEntity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMolecularFunction($hasMolecularFunction)
+ public function setIsEncodedByBioChemEntity($isEncodedByBioChemEntity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Gene",
"string",
];
- $hasMolecularFunction = self::checkTypes($hasMolecularFunction, $types);
+ $isEncodedByBioChemEntity = self::checkTypes($isEncodedByBioChemEntity, $types);
- $this->hasMolecularFunction = $hasMolecularFunction;
+ $this->isEncodedByBioChemEntity = $isEncodedByBioChemEntity;
}
/**
* @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- public function getHasBioChemEntityPart()
+ public function getBioChemSimilarity()
{
- return $this->hasBioChemEntityPart;
+ return $this->bioChemSimilarity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $hasBioChemEntityPart
+ * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemSimilarity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasBioChemEntityPart($hasBioChemEntityPart)
+ public function setBioChemSimilarity($bioChemSimilarity)
{
$types = [
"\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
];
- $hasBioChemEntityPart = self::checkTypes($hasBioChemEntityPart, $types);
+ $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types);
- $this->hasBioChemEntityPart = $hasBioChemEntityPart;
+ $this->bioChemSimilarity = $bioChemSimilarity;
}
/**
@@ -395,78 +418,55 @@ public function setBioChemInteraction($bioChemInteraction)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PropertyValue
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getHasRepresentation()
+ public function getHasMolecularFunction()
{
- return $this->hasRepresentation;
+ return $this->hasMolecularFunction;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $hasRepresentation
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $hasMolecularFunction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasRepresentation($hasRepresentation)
+ public function setHasMolecularFunction($hasMolecularFunction)
{
$types = [
- "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"\OpenActive\Models\SchemaOrg\PropertyValue",
- ];
-
- $hasRepresentation = self::checkTypes($hasRepresentation, $types);
-
- $this->hasRepresentation = $hasRepresentation;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
- */
- public function getBioChemSimilarity()
- {
- return $this->bioChemSimilarity;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemSimilarity
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setBioChemSimilarity($bioChemSimilarity)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
];
- $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types);
+ $hasMolecularFunction = self::checkTypes($hasMolecularFunction, $types);
- $this->bioChemSimilarity = $bioChemSimilarity;
+ $this->hasMolecularFunction = $hasMolecularFunction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
*/
- public function getBiologicalRole()
+ public function getTaxonomicRange()
{
- return $this->biologicalRole;
+ return $this->taxonomicRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $biologicalRole
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon $taxonomicRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBiologicalRole($biologicalRole)
+ public function setTaxonomicRange($taxonomicRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Taxon",
];
- $biologicalRole = self::checkTypes($biologicalRole, $types);
+ $taxonomicRange = self::checkTypes($taxonomicRange, $types);
- $this->biologicalRole = $biologicalRole;
+ $this->taxonomicRange = $taxonomicRange;
}
}
diff --git a/src/Models/SchemaOrg/Blog.php b/src/Models/SchemaOrg/Blog.php
index 723f2dad..d13aa964 100644
--- a/src/Models/SchemaOrg/Blog.php
+++ b/src/Models/SchemaOrg/Blog.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"blogPosts" => "blogPosts",
- "issn" => "issn",
"blogPost" => "blogPost",
+ "issn" => "issn",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $blogPosts;
/**
- * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.
+ * A posting that is part of this blog.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- protected $issn;
+ protected $blogPost;
/**
- * A posting that is part of this blog.
+ * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.
*
*
- * @var \OpenActive\Models\SchemaOrg\BlogPosting|string
+ * @var string
*/
- protected $blogPost;
+ protected $issn;
/**
* @return \OpenActive\Models\SchemaOrg\BlogPosting|string
@@ -75,52 +75,52 @@ public function setBlogPosts($blogPosts)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- public function getIssn()
+ public function getBlogPost()
{
- return $this->issn;
+ return $this->blogPost;
}
/**
- * @param string $issn
+ * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPost
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIssn($issn)
+ public function setBlogPost($blogPost)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BlogPosting",
"string",
];
- $issn = self::checkTypes($issn, $types);
+ $blogPost = self::checkTypes($blogPost, $types);
- $this->issn = $issn;
+ $this->blogPost = $blogPost;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BlogPosting|string
+ * @return string
*/
- public function getBlogPost()
+ public function getIssn()
{
- return $this->blogPost;
+ return $this->issn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPost
+ * @param string $issn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBlogPost($blogPost)
+ public function setIssn($issn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BlogPosting",
"string",
];
- $blogPost = self::checkTypes($blogPost, $types);
+ $issn = self::checkTypes($issn, $types);
- $this->blogPost = $blogPost;
+ $this->issn = $issn;
}
}
diff --git a/src/Models/SchemaOrg/BoatTrip.php b/src/Models/SchemaOrg/BoatTrip.php
index 12ae8ef7..d3c50358 100644
--- a/src/Models/SchemaOrg/BoatTrip.php
+++ b/src/Models/SchemaOrg/BoatTrip.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "arrivalBoatTerminal" => "arrivalBoatTerminal",
"departureBoatTerminal" => "departureBoatTerminal",
+ "arrivalBoatTerminal" => "arrivalBoatTerminal",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The terminal or port from which the boat arrives.
+ * The terminal or port from which the boat departs.
*
*
* @var \OpenActive\Models\SchemaOrg\BoatTerminal|string
*/
- protected $arrivalBoatTerminal;
+ protected $departureBoatTerminal;
/**
- * The terminal or port from which the boat departs.
+ * The terminal or port from which the boat arrives.
*
*
* @var \OpenActive\Models\SchemaOrg\BoatTerminal|string
*/
- protected $departureBoatTerminal;
+ protected $arrivalBoatTerminal;
/**
* @return \OpenActive\Models\SchemaOrg\BoatTerminal|string
*/
- public function getArrivalBoatTerminal()
+ public function getDepartureBoatTerminal()
{
- return $this->arrivalBoatTerminal;
+ return $this->departureBoatTerminal;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BoatTerminal|string $arrivalBoatTerminal
+ * @param \OpenActive\Models\SchemaOrg\BoatTerminal|string $departureBoatTerminal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArrivalBoatTerminal($arrivalBoatTerminal)
+ public function setDepartureBoatTerminal($departureBoatTerminal)
{
$types = [
"\OpenActive\Models\SchemaOrg\BoatTerminal",
"string",
];
- $arrivalBoatTerminal = self::checkTypes($arrivalBoatTerminal, $types);
+ $departureBoatTerminal = self::checkTypes($departureBoatTerminal, $types);
- $this->arrivalBoatTerminal = $arrivalBoatTerminal;
+ $this->departureBoatTerminal = $departureBoatTerminal;
}
/**
* @return \OpenActive\Models\SchemaOrg\BoatTerminal|string
*/
- public function getDepartureBoatTerminal()
+ public function getArrivalBoatTerminal()
{
- return $this->departureBoatTerminal;
+ return $this->arrivalBoatTerminal;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BoatTerminal|string $departureBoatTerminal
+ * @param \OpenActive\Models\SchemaOrg\BoatTerminal|string $arrivalBoatTerminal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureBoatTerminal($departureBoatTerminal)
+ public function setArrivalBoatTerminal($arrivalBoatTerminal)
{
$types = [
"\OpenActive\Models\SchemaOrg\BoatTerminal",
"string",
];
- $departureBoatTerminal = self::checkTypes($departureBoatTerminal, $types);
+ $arrivalBoatTerminal = self::checkTypes($arrivalBoatTerminal, $types);
- $this->departureBoatTerminal = $departureBoatTerminal;
+ $this->arrivalBoatTerminal = $arrivalBoatTerminal;
}
}
diff --git a/src/Models/SchemaOrg/Book.php b/src/Models/SchemaOrg/Book.php
index e1fc9cfc..4c2f2565 100644
--- a/src/Models/SchemaOrg/Book.php
+++ b/src/Models/SchemaOrg/Book.php
@@ -17,11 +17,11 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "bookFormat" => "bookFormat",
"isbn" => "isbn",
- "illustrator" => "illustrator",
"numberOfPages" => "numberOfPages",
"abridged" => "abridged",
- "bookFormat" => "bookFormat",
+ "illustrator" => "illustrator",
"bookEdition" => "bookEdition",
];
@@ -29,20 +29,20 @@ public static function fieldList() {
}
/**
- * The ISBN of the book.
+ * The format of the book.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null
*/
- protected $isbn;
+ protected $bookFormat;
/**
- * The illustrator of the book.
+ * The ISBN of the book.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $illustrator;
+ protected $isbn;
/**
* The number of pages in the book.
@@ -61,12 +61,12 @@ public static function fieldList() {
protected $abridged;
/**
- * The format of the book.
+ * The illustrator of the book.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $bookFormat;
+ protected $illustrator;
/**
* The edition of the book.
@@ -77,52 +77,52 @@ public static function fieldList() {
protected $bookEdition;
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null
*/
- public function getIsbn()
+ public function getBookFormat()
{
- return $this->isbn;
+ return $this->bookFormat;
}
/**
- * @param string $isbn
+ * @param \OpenActive\Enums\SchemaOrg\BookFormatType|null $bookFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsbn($isbn)
+ public function setBookFormat($bookFormat)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\BookFormatType",
+ "null",
];
- $isbn = self::checkTypes($isbn, $types);
+ $bookFormat = self::checkTypes($bookFormat, $types);
- $this->isbn = $isbn;
+ $this->bookFormat = $bookFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getIllustrator()
+ public function getIsbn()
{
- return $this->illustrator;
+ return $this->isbn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $illustrator
+ * @param string $isbn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIllustrator($illustrator)
+ public function setIsbn($isbn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $illustrator = self::checkTypes($illustrator, $types);
+ $isbn = self::checkTypes($isbn, $types);
- $this->illustrator = $illustrator;
+ $this->isbn = $isbn;
}
/**
@@ -176,28 +176,28 @@ public function setAbridged($abridged)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getBookFormat()
+ public function getIllustrator()
{
- return $this->bookFormat;
+ return $this->illustrator;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BookFormatType|null $bookFormat
+ * @param \OpenActive\Models\SchemaOrg\Person|string $illustrator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBookFormat($bookFormat)
+ public function setIllustrator($illustrator)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BookFormatType",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $bookFormat = self::checkTypes($bookFormat, $types);
+ $illustrator = self::checkTypes($illustrator, $types);
- $this->bookFormat = $bookFormat;
+ $this->illustrator = $illustrator;
}
/**
diff --git a/src/Models/SchemaOrg/Brand.php b/src/Models/SchemaOrg/Brand.php
index ccca908c..86c11135 100644
--- a/src/Models/SchemaOrg/Brand.php
+++ b/src/Models/SchemaOrg/Brand.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "review" => "review",
- "aggregateRating" => "aggregateRating",
"slogan" => "slogan",
+ "aggregateRating" => "aggregateRating",
"logo" => "logo",
+ "review" => "review",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A review of the item.
+ * A slogan or motto associated with the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var string
*/
- protected $review;
+ protected $slogan;
/**
* The overall rating, based on a collection of reviews or ratings, of the item.
@@ -43,44 +43,43 @@ public static function fieldList() {
protected $aggregateRating;
/**
- * A slogan or motto associated with the item.
+ * An associated logo.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $slogan;
+ protected $logo;
/**
- * An associated logo.
+ * A review of the item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $logo;
+ protected $review;
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return string
*/
- public function getReview()
+ public function getSlogan()
{
- return $this->review;
+ return $this->slogan;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param string $slogan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setSlogan($slogan)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $review = self::checkTypes($review, $types);
+ $slogan = self::checkTypes($slogan, $types);
- $this->review = $review;
+ $this->slogan = $slogan;
}
/**
@@ -109,52 +108,53 @@ public function setAggregateRating($aggregateRating)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getSlogan()
+ public function getLogo()
{
- return $this->slogan;
+ return $this->logo;
}
/**
- * @param string $slogan
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSlogan($slogan)
+ public function setLogo($logo)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $slogan = self::checkTypes($slogan, $types);
+ $logo = self::checkTypes($logo, $types);
- $this->slogan = $slogan;
+ $this->logo = $logo;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getLogo()
+ public function getReview()
{
- return $this->logo;
+ return $this->review;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo
+ * @param \OpenActive\Models\SchemaOrg\Review|string $review
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLogo($logo)
+ public function setReview($review)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
- "\OpenActive\Models\SchemaOrg\ImageObject",
];
- $logo = self::checkTypes($logo, $types);
+ $review = self::checkTypes($review, $types);
- $this->logo = $logo;
+ $this->review = $review;
}
}
diff --git a/src/Models/SchemaOrg/BroadcastChannel.php b/src/Models/SchemaOrg/BroadcastChannel.php
index 54888ffb..3eb9d669 100644
--- a/src/Models/SchemaOrg/BroadcastChannel.php
+++ b/src/Models/SchemaOrg/BroadcastChannel.php
@@ -17,32 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "genre" => "genre",
- "broadcastFrequency" => "broadcastFrequency",
+ "broadcastServiceTier" => "broadcastServiceTier",
"providesBroadcastService" => "providesBroadcastService",
"broadcastChannelId" => "broadcastChannelId",
+ "genre" => "genre",
+ "broadcastFrequency" => "broadcastFrequency",
"inBroadcastLineup" => "inBroadcastLineup",
- "broadcastServiceTier" => "broadcastServiceTier",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Genre of the creative work, broadcast channel or group.
+ * The type of service required to have access to the channel (e.g. Standard or Premium).
*
*
* @var string
*/
- protected $genre;
-
- /**
- * The frequency used for over-the-air broadcasts. Numeric values or simple ranges e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM".
- *
- *
- * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
- */
- protected $broadcastFrequency;
+ protected $broadcastServiceTier;
/**
* The BroadcastService offered on this channel.
@@ -61,166 +53,174 @@ public static function fieldList() {
protected $broadcastChannelId;
/**
- * The CableOrSatelliteService offering the channel.
+ * Genre of the creative work, broadcast channel or group.
*
*
- * @var \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string
+ * @var string
*/
- protected $inBroadcastLineup;
+ protected $genre;
/**
- * The type of service required to have access to the channel (e.g. Standard or Premium).
+ * The frequency used for over-the-air broadcasts. Numeric values or simple ranges, e.g. 87-99. In addition a shortcut idiom is supported for frequencies of AM and FM radio channels, e.g. "87 FM".
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
*/
- protected $broadcastServiceTier;
+ protected $broadcastFrequency;
+
+ /**
+ * The CableOrSatelliteService offering the channel.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string
+ */
+ protected $inBroadcastLineup;
/**
* @return string
*/
- public function getGenre()
+ public function getBroadcastServiceTier()
{
- return $this->genre;
+ return $this->broadcastServiceTier;
}
/**
- * @param string $genre
+ * @param string $broadcastServiceTier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGenre($genre)
+ public function setBroadcastServiceTier($broadcastServiceTier)
{
$types = [
"string",
];
- $genre = self::checkTypes($genre, $types);
+ $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types);
- $this->genre = $genre;
+ $this->broadcastServiceTier = $broadcastServiceTier;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastService|string
*/
- public function getBroadcastFrequency()
+ public function getProvidesBroadcastService()
{
- return $this->broadcastFrequency;
+ return $this->providesBroadcastService;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency
+ * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $providesBroadcastService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastFrequency($broadcastFrequency)
+ public function setProvidesBroadcastService($providesBroadcastService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
+ "\OpenActive\Models\SchemaOrg\BroadcastService",
"string",
];
- $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
+ $providesBroadcastService = self::checkTypes($providesBroadcastService, $types);
- $this->broadcastFrequency = $broadcastFrequency;
+ $this->providesBroadcastService = $providesBroadcastService;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastService|string
+ * @return string
*/
- public function getProvidesBroadcastService()
+ public function getBroadcastChannelId()
{
- return $this->providesBroadcastService;
+ return $this->broadcastChannelId;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $providesBroadcastService
+ * @param string $broadcastChannelId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvidesBroadcastService($providesBroadcastService)
+ public function setBroadcastChannelId($broadcastChannelId)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastService",
"string",
];
- $providesBroadcastService = self::checkTypes($providesBroadcastService, $types);
+ $broadcastChannelId = self::checkTypes($broadcastChannelId, $types);
- $this->providesBroadcastService = $providesBroadcastService;
+ $this->broadcastChannelId = $broadcastChannelId;
}
/**
* @return string
*/
- public function getBroadcastChannelId()
+ public function getGenre()
{
- return $this->broadcastChannelId;
+ return $this->genre;
}
/**
- * @param string $broadcastChannelId
+ * @param string $genre
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastChannelId($broadcastChannelId)
+ public function setGenre($genre)
{
$types = [
"string",
];
- $broadcastChannelId = self::checkTypes($broadcastChannelId, $types);
+ $genre = self::checkTypes($genre, $types);
- $this->broadcastChannelId = $broadcastChannelId;
+ $this->genre = $genre;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
*/
- public function getInBroadcastLineup()
+ public function getBroadcastFrequency()
{
- return $this->inBroadcastLineup;
+ return $this->broadcastFrequency;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string $inBroadcastLineup
+ * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInBroadcastLineup($inBroadcastLineup)
+ public function setBroadcastFrequency($broadcastFrequency)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CableOrSatelliteService",
+ "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
"string",
];
- $inBroadcastLineup = self::checkTypes($inBroadcastLineup, $types);
+ $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
- $this->inBroadcastLineup = $inBroadcastLineup;
+ $this->broadcastFrequency = $broadcastFrequency;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string
*/
- public function getBroadcastServiceTier()
+ public function getInBroadcastLineup()
{
- return $this->broadcastServiceTier;
+ return $this->inBroadcastLineup;
}
/**
- * @param string $broadcastServiceTier
+ * @param \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string $inBroadcastLineup
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastServiceTier($broadcastServiceTier)
+ public function setInBroadcastLineup($inBroadcastLineup)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CableOrSatelliteService",
"string",
];
- $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types);
+ $inBroadcastLineup = self::checkTypes($inBroadcastLineup, $types);
- $this->broadcastServiceTier = $broadcastServiceTier;
+ $this->inBroadcastLineup = $inBroadcastLineup;
}
}
diff --git a/src/Models/SchemaOrg/BroadcastEvent.php b/src/Models/SchemaOrg/BroadcastEvent.php
index 43106fc0..35976cc7 100644
--- a/src/Models/SchemaOrg/BroadcastEvent.php
+++ b/src/Models/SchemaOrg/BroadcastEvent.php
@@ -18,9 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"subtitleLanguage" => "subtitleLanguage",
- "videoFormat" => "videoFormat",
- "broadcastOfEvent" => "broadcastOfEvent",
"isLiveBroadcast" => "isLiveBroadcast",
+ "broadcastOfEvent" => "broadcastOfEvent",
+ "videoFormat" => "videoFormat",
];
return array_merge(parent::fieldList(), $fields);
@@ -30,17 +30,17 @@ public static function fieldList() {
* Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
*
*
- * @var \OpenActive\Models\SchemaOrg\Language|string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
protected $subtitleLanguage;
/**
- * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
+ * True if the broadcast is of a live event.
*
*
- * @var string
+ * @var bool|null
*/
- protected $videoFormat;
+ protected $isLiveBroadcast;
/**
* The event being broadcast such as a sporting event or awards ceremony.
@@ -51,15 +51,15 @@ public static function fieldList() {
protected $broadcastOfEvent;
/**
- * True if the broadcast is of a live event.
+ * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
*
*
- * @var bool|null
+ * @var string
*/
- protected $isLiveBroadcast;
+ protected $videoFormat;
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
public function getSubtitleLanguage()
{
@@ -67,15 +67,15 @@ public function getSubtitleLanguage()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage
+ * @param string|\OpenActive\Models\SchemaOrg\Language $subtitleLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSubtitleLanguage($subtitleLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
$subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
@@ -84,27 +84,28 @@ public function setSubtitleLanguage($subtitleLanguage)
}
/**
- * @return string
+ * @return bool|null
*/
- public function getVideoFormat()
+ public function getIsLiveBroadcast()
{
- return $this->videoFormat;
+ return $this->isLiveBroadcast;
}
/**
- * @param string $videoFormat
+ * @param bool|null $isLiveBroadcast
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVideoFormat($videoFormat)
+ public function setIsLiveBroadcast($isLiveBroadcast)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $videoFormat = self::checkTypes($videoFormat, $types);
+ $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types);
- $this->videoFormat = $videoFormat;
+ $this->isLiveBroadcast = $isLiveBroadcast;
}
/**
@@ -133,28 +134,27 @@ public function setBroadcastOfEvent($broadcastOfEvent)
}
/**
- * @return bool|null
+ * @return string
*/
- public function getIsLiveBroadcast()
+ public function getVideoFormat()
{
- return $this->isLiveBroadcast;
+ return $this->videoFormat;
}
/**
- * @param bool|null $isLiveBroadcast
+ * @param string $videoFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsLiveBroadcast($isLiveBroadcast)
+ public function setVideoFormat($videoFormat)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types);
+ $videoFormat = self::checkTypes($videoFormat, $types);
- $this->isLiveBroadcast = $isLiveBroadcast;
+ $this->videoFormat = $videoFormat;
}
}
diff --git a/src/Models/SchemaOrg/BroadcastFrequencySpecification.php b/src/Models/SchemaOrg/BroadcastFrequencySpecification.php
index fab6a903..d373f3d0 100644
--- a/src/Models/SchemaOrg/BroadcastFrequencySpecification.php
+++ b/src/Models/SchemaOrg/BroadcastFrequencySpecification.php
@@ -37,7 +37,7 @@ public static function fieldList() {
* The modulation (e.g. FM, AM, etc) used by a particular broadcast service.
*
*
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
protected $broadcastSignalModulation;
@@ -74,7 +74,7 @@ public function setBroadcastSubChannel($broadcastSubChannel)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
public function getBroadcastSignalModulation()
{
@@ -82,15 +82,15 @@ public function getBroadcastSignalModulation()
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $broadcastSignalModulation
+ * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $broadcastSignalModulation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setBroadcastSignalModulation($broadcastSignalModulation)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"null",
];
diff --git a/src/Models/SchemaOrg/BroadcastService.php b/src/Models/SchemaOrg/BroadcastService.php
index df992ffd..50ebdb5a 100644
--- a/src/Models/SchemaOrg/BroadcastService.php
+++ b/src/Models/SchemaOrg/BroadcastService.php
@@ -17,16 +17,16 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "broadcaster" => "broadcaster",
+ "hasBroadcastChannel" => "hasBroadcastChannel",
+ "broadcastFrequency" => "broadcastFrequency",
"parentService" => "parentService",
+ "broadcastAffiliateOf" => "broadcastAffiliateOf",
"broadcastDisplayName" => "broadcastDisplayName",
- "videoFormat" => "videoFormat",
"broadcastTimezone" => "broadcastTimezone",
- "broadcastFrequency" => "broadcastFrequency",
"callSign" => "callSign",
+ "videoFormat" => "videoFormat",
"inLanguage" => "inLanguage",
- "hasBroadcastChannel" => "hasBroadcastChannel",
- "broadcaster" => "broadcaster",
- "broadcastAffiliateOf" => "broadcastAffiliateOf",
"area" => "area",
];
@@ -34,84 +34,84 @@ public static function fieldList() {
}
/**
- * A broadcast service to which the broadcast service may belong to such as regional variations of a national channel.
+ * The organization owning or operating the broadcast service.
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastService|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $parentService;
+ protected $broadcaster;
/**
- * The name displayed in the channel guide. For many US affiliates, it is the network name.
+ * A broadcast channel of a broadcast service.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\BroadcastChannel|string
*/
- protected $broadcastDisplayName;
+ protected $hasBroadcastChannel;
/**
- * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
+ * The frequency used for over-the-air broadcasts. Numeric values or simple ranges, e.g. 87-99. In addition a shortcut idiom is supported for frequencies of AM and FM radio channels, e.g. "87 FM".
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
*/
- protected $videoFormat;
+ protected $broadcastFrequency;
/**
- * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts
+ * A broadcast service to which the broadcast service may belong to such as regional variations of a national channel.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\BroadcastService|string
*/
- protected $broadcastTimezone;
+ protected $parentService;
/**
- * The frequency used for over-the-air broadcasts. Numeric values or simple ranges e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM".
+ * The media network(s) whose content is broadcast on this station.
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $broadcastFrequency;
+ protected $broadcastAffiliateOf;
/**
- * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles.
+ * The name displayed in the channel guide. For many US affiliates, it is the network name.
*
*
* @var string
*/
- protected $callSign;
+ protected $broadcastDisplayName;
/**
- * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
+ * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var string
*/
- protected $inLanguage;
+ protected $broadcastTimezone;
/**
- * A broadcast channel of a broadcast service.
+ * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles.
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastChannel|string
+ * @var string
*/
- protected $hasBroadcastChannel;
+ protected $callSign;
/**
- * The organization owning or operating the broadcast service.
+ * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $broadcaster;
+ protected $videoFormat;
/**
- * The media network(s) whose content is broadcast on this station.
+ * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $broadcastAffiliateOf;
+ protected $inLanguage;
/**
* The area within which users can expect to reach the broadcast service.
@@ -122,249 +122,249 @@ public static function fieldList() {
protected $area;
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastService|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getParentService()
+ public function getBroadcaster()
{
- return $this->parentService;
+ return $this->broadcaster;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $parentService
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcaster
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setParentService($parentService)
+ public function setBroadcaster($broadcaster)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastService",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $parentService = self::checkTypes($parentService, $types);
+ $broadcaster = self::checkTypes($broadcaster, $types);
- $this->parentService = $parentService;
+ $this->broadcaster = $broadcaster;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastChannel|string
*/
- public function getBroadcastDisplayName()
+ public function getHasBroadcastChannel()
{
- return $this->broadcastDisplayName;
+ return $this->hasBroadcastChannel;
}
/**
- * @param string $broadcastDisplayName
+ * @param \OpenActive\Models\SchemaOrg\BroadcastChannel|string $hasBroadcastChannel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastDisplayName($broadcastDisplayName)
+ public function setHasBroadcastChannel($hasBroadcastChannel)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BroadcastChannel",
"string",
];
- $broadcastDisplayName = self::checkTypes($broadcastDisplayName, $types);
+ $hasBroadcastChannel = self::checkTypes($hasBroadcastChannel, $types);
- $this->broadcastDisplayName = $broadcastDisplayName;
+ $this->hasBroadcastChannel = $hasBroadcastChannel;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
*/
- public function getVideoFormat()
+ public function getBroadcastFrequency()
{
- return $this->videoFormat;
+ return $this->broadcastFrequency;
}
/**
- * @param string $videoFormat
+ * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVideoFormat($videoFormat)
+ public function setBroadcastFrequency($broadcastFrequency)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
"string",
];
- $videoFormat = self::checkTypes($videoFormat, $types);
+ $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
- $this->videoFormat = $videoFormat;
+ $this->broadcastFrequency = $broadcastFrequency;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastService|string
*/
- public function getBroadcastTimezone()
+ public function getParentService()
{
- return $this->broadcastTimezone;
+ return $this->parentService;
}
/**
- * @param string $broadcastTimezone
+ * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $parentService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastTimezone($broadcastTimezone)
+ public function setParentService($parentService)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BroadcastService",
"string",
];
- $broadcastTimezone = self::checkTypes($broadcastTimezone, $types);
+ $parentService = self::checkTypes($parentService, $types);
- $this->broadcastTimezone = $broadcastTimezone;
+ $this->parentService = $parentService;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getBroadcastFrequency()
+ public function getBroadcastAffiliateOf()
{
- return $this->broadcastFrequency;
+ return $this->broadcastAffiliateOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcastAffiliateOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastFrequency($broadcastFrequency)
+ public function setBroadcastAffiliateOf($broadcastAffiliateOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
+ $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types);
- $this->broadcastFrequency = $broadcastFrequency;
+ $this->broadcastAffiliateOf = $broadcastAffiliateOf;
}
/**
* @return string
*/
- public function getCallSign()
+ public function getBroadcastDisplayName()
{
- return $this->callSign;
+ return $this->broadcastDisplayName;
}
/**
- * @param string $callSign
+ * @param string $broadcastDisplayName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCallSign($callSign)
+ public function setBroadcastDisplayName($broadcastDisplayName)
{
$types = [
"string",
];
- $callSign = self::checkTypes($callSign, $types);
+ $broadcastDisplayName = self::checkTypes($broadcastDisplayName, $types);
- $this->callSign = $callSign;
+ $this->broadcastDisplayName = $broadcastDisplayName;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return string
*/
- public function getInLanguage()
+ public function getBroadcastTimezone()
{
- return $this->inLanguage;
+ return $this->broadcastTimezone;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param string $broadcastTimezone
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInLanguage($inLanguage)
+ public function setBroadcastTimezone($broadcastTimezone)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $broadcastTimezone = self::checkTypes($broadcastTimezone, $types);
- $this->inLanguage = $inLanguage;
+ $this->broadcastTimezone = $broadcastTimezone;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastChannel|string
+ * @return string
*/
- public function getHasBroadcastChannel()
+ public function getCallSign()
{
- return $this->hasBroadcastChannel;
+ return $this->callSign;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastChannel|string $hasBroadcastChannel
+ * @param string $callSign
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasBroadcastChannel($hasBroadcastChannel)
+ public function setCallSign($callSign)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastChannel",
"string",
];
- $hasBroadcastChannel = self::checkTypes($hasBroadcastChannel, $types);
+ $callSign = self::checkTypes($callSign, $types);
- $this->hasBroadcastChannel = $hasBroadcastChannel;
+ $this->callSign = $callSign;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getBroadcaster()
+ public function getVideoFormat()
{
- return $this->broadcaster;
+ return $this->videoFormat;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcaster
+ * @param string $videoFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcaster($broadcaster)
+ public function setVideoFormat($videoFormat)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $broadcaster = self::checkTypes($broadcaster, $types);
+ $videoFormat = self::checkTypes($videoFormat, $types);
- $this->broadcaster = $broadcaster;
+ $this->videoFormat = $videoFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getBroadcastAffiliateOf()
+ public function getInLanguage()
{
- return $this->broadcastAffiliateOf;
+ return $this->inLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcastAffiliateOf
+ * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastAffiliateOf($broadcastAffiliateOf)
+ public function setInLanguage($inLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->broadcastAffiliateOf = $broadcastAffiliateOf;
+ $this->inLanguage = $inLanguage;
}
/**
diff --git a/src/Models/SchemaOrg/BusTrip.php b/src/Models/SchemaOrg/BusTrip.php
index ff0e89cc..c7341a22 100644
--- a/src/Models/SchemaOrg/BusTrip.php
+++ b/src/Models/SchemaOrg/BusTrip.php
@@ -17,15 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "busNumber" => "busNumber",
"departureBusStop" => "departureBusStop",
"busName" => "busName",
"arrivalBusStop" => "arrivalBusStop",
- "busNumber" => "busNumber",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The unique identifier for the bus.
+ *
+ *
+ * @var string
+ */
+ protected $busNumber;
+
/**
* The stop or station from which the bus departs.
*
@@ -51,12 +59,28 @@ public static function fieldList() {
protected $arrivalBusStop;
/**
- * The unique identifier for the bus.
- *
- *
- * @var string
+ * @return string
*/
- protected $busNumber;
+ public function getBusNumber()
+ {
+ return $this->busNumber;
+ }
+
+ /**
+ * @param string $busNumber
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setBusNumber($busNumber)
+ {
+ $types = [
+ "string",
+ ];
+
+ $busNumber = self::checkTypes($busNumber, $types);
+
+ $this->busNumber = $busNumber;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string
@@ -134,28 +158,4 @@ public function setArrivalBusStop($arrivalBusStop)
$this->arrivalBusStop = $arrivalBusStop;
}
- /**
- * @return string
- */
- public function getBusNumber()
- {
- return $this->busNumber;
- }
-
- /**
- * @param string $busNumber
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setBusNumber($busNumber)
- {
- $types = [
- "string",
- ];
-
- $busNumber = self::checkTypes($busNumber, $types);
-
- $this->busNumber = $busNumber;
- }
-
}
diff --git a/src/Models/SchemaOrg/BusinessAudience.php b/src/Models/SchemaOrg/BusinessAudience.php
index ddce1e28..39cc9449 100644
--- a/src/Models/SchemaOrg/BusinessAudience.php
+++ b/src/Models/SchemaOrg/BusinessAudience.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "yearlyRevenue" => "yearlyRevenue",
"numberOfEmployees" => "numberOfEmployees",
+ "yearlyRevenue" => "yearlyRevenue",
"yearsInOperation" => "yearsInOperation",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * The size of the business in annual revenue.
+ * The number of employees in an organization, e.g. business.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $yearlyRevenue;
+ protected $numberOfEmployees;
/**
- * The number of employees in an organization e.g. business.
+ * The size of the business in annual revenue.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfEmployees;
+ protected $yearlyRevenue;
/**
* The age of the business.
@@ -52,51 +52,51 @@ public static function fieldList() {
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getYearlyRevenue()
+ public function getNumberOfEmployees()
{
- return $this->yearlyRevenue;
+ return $this->numberOfEmployees;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $yearlyRevenue
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setYearlyRevenue($yearlyRevenue)
+ public function setNumberOfEmployees($numberOfEmployees)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $yearlyRevenue = self::checkTypes($yearlyRevenue, $types);
+ $numberOfEmployees = self::checkTypes($numberOfEmployees, $types);
- $this->yearlyRevenue = $yearlyRevenue;
+ $this->numberOfEmployees = $numberOfEmployees;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfEmployees()
+ public function getYearlyRevenue()
{
- return $this->numberOfEmployees;
+ return $this->yearlyRevenue;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $yearlyRevenue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfEmployees($numberOfEmployees)
+ public function setYearlyRevenue($yearlyRevenue)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $numberOfEmployees = self::checkTypes($numberOfEmployees, $types);
+ $yearlyRevenue = self::checkTypes($yearlyRevenue, $types);
- $this->numberOfEmployees = $numberOfEmployees;
+ $this->yearlyRevenue = $yearlyRevenue;
}
/**
diff --git a/src/Models/SchemaOrg/BuyAction.php b/src/Models/SchemaOrg/BuyAction.php
index 35beaa40..5398617a 100644
--- a/src/Models/SchemaOrg/BuyAction.php
+++ b/src/Models/SchemaOrg/BuyAction.php
@@ -17,103 +17,103 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "vendor" => "vendor",
"warrantyPromise" => "warrantyPromise",
"seller" => "seller",
- "vendor" => "vendor",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The warranty promise(s) included in the offer.
+ * 'vendor' is an earlier term for 'seller'.
*
*
- * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $warrantyPromise;
+ protected $vendor;
/**
- * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
+ * The warranty promise(s) included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- protected $seller;
+ protected $warrantyPromise;
/**
- * 'vendor' is an earlier term for 'seller'.
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $vendor;
+ protected $seller;
/**
- * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getWarrantyPromise()
+ public function getVendor()
{
- return $this->warrantyPromise;
+ return $this->vendor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $vendor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWarrantyPromise($warrantyPromise)
+ public function setVendor($vendor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WarrantyPromise",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $warrantyPromise = self::checkTypes($warrantyPromise, $types);
+ $vendor = self::checkTypes($vendor, $types);
- $this->warrantyPromise = $warrantyPromise;
+ $this->vendor = $vendor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- public function getSeller()
+ public function getWarrantyPromise()
{
- return $this->seller;
+ return $this->warrantyPromise;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
+ * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeller($seller)
+ public function setWarrantyPromise($warrantyPromise)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\WarrantyPromise",
"string",
];
- $seller = self::checkTypes($seller, $types);
+ $warrantyPromise = self::checkTypes($warrantyPromise, $types);
- $this->seller = $seller;
+ $this->warrantyPromise = $warrantyPromise;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getVendor()
+ public function getSeller()
{
- return $this->vendor;
+ return $this->seller;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $vendor
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $seller
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVendor($vendor)
+ public function setSeller($seller)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
@@ -121,9 +121,9 @@ public function setVendor($vendor)
"string",
];
- $vendor = self::checkTypes($vendor, $types);
+ $seller = self::checkTypes($seller, $types);
- $this->vendor = $vendor;
+ $this->seller = $seller;
}
}
diff --git a/src/Models/SchemaOrg/CDCPMDRecord.php b/src/Models/SchemaOrg/CDCPMDRecord.php
index 824f6aca..f83af459 100644
--- a/src/Models/SchemaOrg/CDCPMDRecord.php
+++ b/src/Models/SchemaOrg/CDCPMDRecord.php
@@ -17,147 +17,147 @@ public static function getType()
public static function fieldList() {
$fields = [
- "cvdNumBedsOcc" => "cvdNumBedsOcc",
- "cvdNumICUBedsOcc" => "cvdNumICUBedsOcc",
"cvdNumVent" => "cvdNumVent",
- "cvdNumC19Died" => "cvdNumC19Died",
- "cvdNumTotBeds" => "cvdNumTotBeds",
- "cvdFacilityCounty" => "cvdFacilityCounty",
"cvdNumICUBeds" => "cvdNumICUBeds",
- "cvdCollectionDate" => "cvdCollectionDate",
- "cvdNumC19HOPats" => "cvdNumC19HOPats",
- "cvdNumC19OFMechVentPats" => "cvdNumC19OFMechVentPats",
+ "datePosted" => "datePosted",
+ "cvdNumTotBeds" => "cvdNumTotBeds",
+ "cvdNumC19MechVentPats" => "cvdNumC19MechVentPats",
"cvdFacilityId" => "cvdFacilityId",
+ "cvdNumC19Died" => "cvdNumC19Died",
"cvdNumVentUse" => "cvdNumVentUse",
+ "cvdNumC19HospPats" => "cvdNumC19HospPats",
+ "cvdNumBedsOcc" => "cvdNumBedsOcc",
+ "cvdNumICUBedsOcc" => "cvdNumICUBedsOcc",
"cvdNumBeds" => "cvdNumBeds",
- "cvdNumC19MechVentPats" => "cvdNumC19MechVentPats",
- "datePosted" => "datePosted",
+ "cvdCollectionDate" => "cvdCollectionDate",
+ "cvdFacilityCounty" => "cvdFacilityCounty",
+ "cvdNumC19OFMechVentPats" => "cvdNumC19OFMechVentPats",
"cvdNumC19OverflowPats" => "cvdNumC19OverflowPats",
- "cvdNumC19HospPats" => "cvdNumC19HospPats",
+ "cvdNumC19HOPats" => "cvdNumC19HOPats",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds that are occupied.
+ * numvent - MECHANICAL VENTILATORS: Total number of ventilators available.
*
*
* @var Number|null
*/
- protected $cvdNumBedsOcc;
+ protected $cvdNumVent;
/**
- * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied.
+ * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds.
*
*
* @var Number|null
*/
- protected $cvdNumICUBedsOcc;
+ protected $cvdNumICUBeds;
/**
- * numvent - MECHANICAL VENTILATORS: Total number of ventilators available.
+ * Publication date of an online listing.
*
*
- * @var Number|null
+ * @var Date|DateTime|null
*/
- protected $cvdNumVent;
+ protected $datePosted;
/**
- * numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital, ED, or any overflow location.
+ * numtotbeds - ALL HOSPITAL BEDS: Total number of all inpatient and outpatient beds, including all staffed, ICU, licensed, and overflow (surge) beds used for inpatients or outpatients.
*
*
* @var Number|null
*/
- protected $cvdNumC19Died;
+ protected $cvdNumTotBeds;
/**
- * numtotbeds - ALL HOSPITAL BEDS: Total number of all Inpatient and outpatient beds, including all staffed,ICU, licensed, and overflow (surge) beds used for inpatients or outpatients.
+ * numc19mechventpats - HOSPITALIZED and VENTILATED: Patients hospitalized in an NHSN inpatient care location who have suspected or confirmed COVID-19 and are on a mechanical ventilator.
*
*
* @var Number|null
*/
- protected $cvdNumTotBeds;
+ protected $cvdNumC19MechVentPats;
/**
- * Name of the County of the NHSN facility that this data record applies to. Use [[cvdFacilityId]] to identify the facility. To provide other details, [[healthcareReportingData]] can be used on a [[Hospital]] entry.
+ * Identifier of the NHSN facility that this data record applies to. Use [[cvdFacilityCounty]] to indicate the county. To provide other details, [[healthcareReportingData]] can be used on a [[Hospital]] entry.
*
*
* @var string
*/
- protected $cvdFacilityCounty;
+ protected $cvdFacilityId;
/**
- * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds.
+ * numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital, ED, or any overflow location.
*
*
* @var Number|null
*/
- protected $cvdNumICUBeds;
+ protected $cvdNumC19Died;
/**
- * collectiondate - Date for which patient counts are reported.
+ * numventuse - MECHANICAL VENTILATORS IN USE: Total number of ventilators in use.
*
*
- * @var DateTime|string|null
+ * @var Number|null
*/
- protected $cvdCollectionDate;
+ protected $cvdNumVentUse;
/**
- * numc19hopats - HOSPITAL ONSET: Patients hospitalized in an NHSN inpatient care location with onset of suspected or confirmed COVID-19 14 or more days after hospitalization.
+ * numc19hosppats - HOSPITALIZED: Patients currently hospitalized in an inpatient care location who have suspected or confirmed COVID-19.
*
*
* @var Number|null
*/
- protected $cvdNumC19HOPats;
+ protected $cvdNumC19HospPats;
/**
- * numc19ofmechventpats - ED/OVERFLOW and VENTILATED: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed and on a mechanical ventilator.
+ * numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds that are occupied.
*
*
* @var Number|null
*/
- protected $cvdNumC19OFMechVentPats;
+ protected $cvdNumBedsOcc;
/**
- * Identifier of the NHSN facility that this data record applies to. Use [[cvdFacilityCounty]] to indicate the county. To provide other details, [[healthcareReportingData]] can be used on a [[Hospital]] entry.
+ * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied.
*
*
- * @var string
+ * @var Number|null
*/
- protected $cvdFacilityId;
+ protected $cvdNumICUBedsOcc;
/**
- * numventuse - MECHANICAL VENTILATORS IN USE: Total number of ventilators in use.
+ * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients.
*
*
* @var Number|null
*/
- protected $cvdNumVentUse;
+ protected $cvdNumBeds;
/**
- * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients.
+ * collectiondate - Date for which patient counts are reported.
*
*
- * @var Number|null
+ * @var DateTime|string|null
*/
- protected $cvdNumBeds;
+ protected $cvdCollectionDate;
/**
- * numc19mechventpats - HOSPITALIZED and VENTILATED: Patients hospitalized in an NHSN inpatient care location who have suspected or confirmed COVID-19 and are on a mechanical ventilator.
+ * Name of the County of the NHSN facility that this data record applies to. Use [[cvdFacilityId]] to identify the facility. To provide other details, [[healthcareReportingData]] can be used on a [[Hospital]] entry.
*
*
- * @var Number|null
+ * @var string
*/
- protected $cvdNumC19MechVentPats;
+ protected $cvdFacilityCounty;
/**
- * Publication date of an online listing.
+ * numc19ofmechventpats - ED/OVERFLOW and VENTILATED: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed and on a mechanical ventilator.
*
*
- * @var Date|DateTime|null
+ * @var Number|null
*/
- protected $datePosted;
+ protected $cvdNumC19OFMechVentPats;
/**
* numc19overflowpats - ED/OVERFLOW: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed.
@@ -168,386 +168,386 @@ public static function fieldList() {
protected $cvdNumC19OverflowPats;
/**
- * numc19hosppats - HOSPITALIZED: Patients currently hospitalized in an inpatient care location who have suspected or confirmed COVID-19.
+ * numc19hopats - HOSPITAL ONSET: Patients hospitalized in an NHSN inpatient care location with onset of suspected or confirmed COVID-19 14 or more days after hospitalization.
*
*
* @var Number|null
*/
- protected $cvdNumC19HospPats;
+ protected $cvdNumC19HOPats;
/**
* @return Number|null
*/
- public function getCvdNumBedsOcc()
+ public function getCvdNumVent()
{
- return $this->cvdNumBedsOcc;
+ return $this->cvdNumVent;
}
/**
- * @param Number|null $cvdNumBedsOcc
+ * @param Number|null $cvdNumVent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumBedsOcc($cvdNumBedsOcc)
+ public function setCvdNumVent($cvdNumVent)
{
$types = [
"Number",
"null",
];
- $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types);
+ $cvdNumVent = self::checkTypes($cvdNumVent, $types);
- $this->cvdNumBedsOcc = $cvdNumBedsOcc;
+ $this->cvdNumVent = $cvdNumVent;
}
/**
* @return Number|null
*/
- public function getCvdNumICUBedsOcc()
+ public function getCvdNumICUBeds()
{
- return $this->cvdNumICUBedsOcc;
+ return $this->cvdNumICUBeds;
}
/**
- * @param Number|null $cvdNumICUBedsOcc
+ * @param Number|null $cvdNumICUBeds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc)
+ public function setCvdNumICUBeds($cvdNumICUBeds)
{
$types = [
"Number",
"null",
];
- $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types);
+ $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types);
- $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc;
+ $this->cvdNumICUBeds = $cvdNumICUBeds;
}
/**
- * @return Number|null
+ * @return Date|DateTime|null
*/
- public function getCvdNumVent()
+ public function getDatePosted()
{
- return $this->cvdNumVent;
+ return $this->datePosted;
}
/**
- * @param Number|null $cvdNumVent
+ * @param Date|DateTime|null $datePosted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumVent($cvdNumVent)
+ public function setDatePosted($datePosted)
{
$types = [
- "Number",
+ "Date",
+ "DateTime",
"null",
];
- $cvdNumVent = self::checkTypes($cvdNumVent, $types);
+ $datePosted = self::checkTypes($datePosted, $types);
- $this->cvdNumVent = $cvdNumVent;
+ $this->datePosted = $datePosted;
}
/**
* @return Number|null
*/
- public function getCvdNumC19Died()
+ public function getCvdNumTotBeds()
{
- return $this->cvdNumC19Died;
+ return $this->cvdNumTotBeds;
}
/**
- * @param Number|null $cvdNumC19Died
+ * @param Number|null $cvdNumTotBeds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19Died($cvdNumC19Died)
+ public function setCvdNumTotBeds($cvdNumTotBeds)
{
$types = [
"Number",
"null",
];
- $cvdNumC19Died = self::checkTypes($cvdNumC19Died, $types);
+ $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types);
- $this->cvdNumC19Died = $cvdNumC19Died;
+ $this->cvdNumTotBeds = $cvdNumTotBeds;
}
/**
* @return Number|null
*/
- public function getCvdNumTotBeds()
+ public function getCvdNumC19MechVentPats()
{
- return $this->cvdNumTotBeds;
+ return $this->cvdNumC19MechVentPats;
}
/**
- * @param Number|null $cvdNumTotBeds
+ * @param Number|null $cvdNumC19MechVentPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumTotBeds($cvdNumTotBeds)
+ public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats)
{
$types = [
"Number",
"null",
];
- $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types);
+ $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types);
- $this->cvdNumTotBeds = $cvdNumTotBeds;
+ $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats;
}
/**
* @return string
*/
- public function getCvdFacilityCounty()
+ public function getCvdFacilityId()
{
- return $this->cvdFacilityCounty;
+ return $this->cvdFacilityId;
}
/**
- * @param string $cvdFacilityCounty
+ * @param string $cvdFacilityId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdFacilityCounty($cvdFacilityCounty)
+ public function setCvdFacilityId($cvdFacilityId)
{
$types = [
"string",
];
- $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types);
+ $cvdFacilityId = self::checkTypes($cvdFacilityId, $types);
- $this->cvdFacilityCounty = $cvdFacilityCounty;
+ $this->cvdFacilityId = $cvdFacilityId;
}
/**
* @return Number|null
*/
- public function getCvdNumICUBeds()
+ public function getCvdNumC19Died()
{
- return $this->cvdNumICUBeds;
+ return $this->cvdNumC19Died;
}
/**
- * @param Number|null $cvdNumICUBeds
+ * @param Number|null $cvdNumC19Died
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumICUBeds($cvdNumICUBeds)
+ public function setCvdNumC19Died($cvdNumC19Died)
{
$types = [
"Number",
"null",
];
- $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types);
+ $cvdNumC19Died = self::checkTypes($cvdNumC19Died, $types);
- $this->cvdNumICUBeds = $cvdNumICUBeds;
+ $this->cvdNumC19Died = $cvdNumC19Died;
}
/**
- * @return DateTime|string|null
+ * @return Number|null
*/
- public function getCvdCollectionDate()
+ public function getCvdNumVentUse()
{
- return $this->cvdCollectionDate;
+ return $this->cvdNumVentUse;
}
/**
- * @param DateTime|string|null $cvdCollectionDate
+ * @param Number|null $cvdNumVentUse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdCollectionDate($cvdCollectionDate)
+ public function setCvdNumVentUse($cvdNumVentUse)
{
$types = [
- "DateTime",
- "string",
+ "Number",
"null",
];
- $cvdCollectionDate = self::checkTypes($cvdCollectionDate, $types);
+ $cvdNumVentUse = self::checkTypes($cvdNumVentUse, $types);
- $this->cvdCollectionDate = $cvdCollectionDate;
+ $this->cvdNumVentUse = $cvdNumVentUse;
}
/**
* @return Number|null
*/
- public function getCvdNumC19HOPats()
+ public function getCvdNumC19HospPats()
{
- return $this->cvdNumC19HOPats;
+ return $this->cvdNumC19HospPats;
}
/**
- * @param Number|null $cvdNumC19HOPats
+ * @param Number|null $cvdNumC19HospPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19HOPats($cvdNumC19HOPats)
+ public function setCvdNumC19HospPats($cvdNumC19HospPats)
{
$types = [
"Number",
"null",
];
- $cvdNumC19HOPats = self::checkTypes($cvdNumC19HOPats, $types);
+ $cvdNumC19HospPats = self::checkTypes($cvdNumC19HospPats, $types);
- $this->cvdNumC19HOPats = $cvdNumC19HOPats;
+ $this->cvdNumC19HospPats = $cvdNumC19HospPats;
}
/**
* @return Number|null
*/
- public function getCvdNumC19OFMechVentPats()
+ public function getCvdNumBedsOcc()
{
- return $this->cvdNumC19OFMechVentPats;
+ return $this->cvdNumBedsOcc;
}
/**
- * @param Number|null $cvdNumC19OFMechVentPats
+ * @param Number|null $cvdNumBedsOcc
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19OFMechVentPats($cvdNumC19OFMechVentPats)
+ public function setCvdNumBedsOcc($cvdNumBedsOcc)
{
$types = [
"Number",
"null",
];
- $cvdNumC19OFMechVentPats = self::checkTypes($cvdNumC19OFMechVentPats, $types);
+ $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types);
- $this->cvdNumC19OFMechVentPats = $cvdNumC19OFMechVentPats;
+ $this->cvdNumBedsOcc = $cvdNumBedsOcc;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getCvdFacilityId()
+ public function getCvdNumICUBedsOcc()
{
- return $this->cvdFacilityId;
+ return $this->cvdNumICUBedsOcc;
}
/**
- * @param string $cvdFacilityId
+ * @param Number|null $cvdNumICUBedsOcc
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdFacilityId($cvdFacilityId)
+ public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $cvdFacilityId = self::checkTypes($cvdFacilityId, $types);
+ $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types);
- $this->cvdFacilityId = $cvdFacilityId;
+ $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc;
}
/**
* @return Number|null
*/
- public function getCvdNumVentUse()
+ public function getCvdNumBeds()
{
- return $this->cvdNumVentUse;
+ return $this->cvdNumBeds;
}
/**
- * @param Number|null $cvdNumVentUse
+ * @param Number|null $cvdNumBeds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumVentUse($cvdNumVentUse)
+ public function setCvdNumBeds($cvdNumBeds)
{
$types = [
"Number",
"null",
];
- $cvdNumVentUse = self::checkTypes($cvdNumVentUse, $types);
+ $cvdNumBeds = self::checkTypes($cvdNumBeds, $types);
- $this->cvdNumVentUse = $cvdNumVentUse;
+ $this->cvdNumBeds = $cvdNumBeds;
}
/**
- * @return Number|null
+ * @return DateTime|string|null
*/
- public function getCvdNumBeds()
+ public function getCvdCollectionDate()
{
- return $this->cvdNumBeds;
+ return $this->cvdCollectionDate;
}
/**
- * @param Number|null $cvdNumBeds
+ * @param DateTime|string|null $cvdCollectionDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumBeds($cvdNumBeds)
+ public function setCvdCollectionDate($cvdCollectionDate)
{
$types = [
- "Number",
+ "DateTime",
+ "string",
"null",
];
- $cvdNumBeds = self::checkTypes($cvdNumBeds, $types);
+ $cvdCollectionDate = self::checkTypes($cvdCollectionDate, $types);
- $this->cvdNumBeds = $cvdNumBeds;
+ $this->cvdCollectionDate = $cvdCollectionDate;
}
/**
- * @return Number|null
+ * @return string
*/
- public function getCvdNumC19MechVentPats()
+ public function getCvdFacilityCounty()
{
- return $this->cvdNumC19MechVentPats;
+ return $this->cvdFacilityCounty;
}
/**
- * @param Number|null $cvdNumC19MechVentPats
+ * @param string $cvdFacilityCounty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats)
+ public function setCvdFacilityCounty($cvdFacilityCounty)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types);
+ $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types);
- $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats;
+ $this->cvdFacilityCounty = $cvdFacilityCounty;
}
/**
- * @return Date|DateTime|null
+ * @return Number|null
*/
- public function getDatePosted()
+ public function getCvdNumC19OFMechVentPats()
{
- return $this->datePosted;
+ return $this->cvdNumC19OFMechVentPats;
}
/**
- * @param Date|DateTime|null $datePosted
+ * @param Number|null $cvdNumC19OFMechVentPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDatePosted($datePosted)
+ public function setCvdNumC19OFMechVentPats($cvdNumC19OFMechVentPats)
{
$types = [
- "Date",
- "DateTime",
+ "Number",
"null",
];
- $datePosted = self::checkTypes($datePosted, $types);
+ $cvdNumC19OFMechVentPats = self::checkTypes($cvdNumC19OFMechVentPats, $types);
- $this->datePosted = $datePosted;
+ $this->cvdNumC19OFMechVentPats = $cvdNumC19OFMechVentPats;
}
/**
@@ -578,26 +578,26 @@ public function setCvdNumC19OverflowPats($cvdNumC19OverflowPats)
/**
* @return Number|null
*/
- public function getCvdNumC19HospPats()
+ public function getCvdNumC19HOPats()
{
- return $this->cvdNumC19HospPats;
+ return $this->cvdNumC19HOPats;
}
/**
- * @param Number|null $cvdNumC19HospPats
+ * @param Number|null $cvdNumC19HOPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19HospPats($cvdNumC19HospPats)
+ public function setCvdNumC19HOPats($cvdNumC19HOPats)
{
$types = [
"Number",
"null",
];
- $cvdNumC19HospPats = self::checkTypes($cvdNumC19HospPats, $types);
+ $cvdNumC19HOPats = self::checkTypes($cvdNumC19HOPats, $types);
- $this->cvdNumC19HospPats = $cvdNumC19HospPats;
+ $this->cvdNumC19HOPats = $cvdNumC19HOPats;
}
}
diff --git a/src/Models/SchemaOrg/Campground.php b/src/Models/SchemaOrg/Campground.php
index 1aec6fea..ce9b8e5b 100644
--- a/src/Models/SchemaOrg/Campground.php
+++ b/src/Models/SchemaOrg/Campground.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Campground extends \OpenActive\Models\SchemaOrg\LodgingBusiness
+class Campground extends \OpenActive\Models\SchemaOrg\CivicStructure
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/CategoryCode.php b/src/Models/SchemaOrg/CategoryCode.php
index 3b1522b0..770497b2 100644
--- a/src/Models/SchemaOrg/CategoryCode.php
+++ b/src/Models/SchemaOrg/CategoryCode.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "codeValue" => "codeValue",
"inCodeSet" => "inCodeSet",
+ "codeValue" => "codeValue",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A short textual code that uniquely identifies the value.
+ * A [[CategoryCodeSet]] that contains this category code.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CategoryCodeSet|string
*/
- protected $codeValue;
+ protected $inCodeSet;
/**
- * A [[CategoryCodeSet]] that contains this category code.
+ * A short textual code that uniquely identifies the value.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCodeSet|string
+ * @var string
*/
- protected $inCodeSet;
+ protected $codeValue;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CategoryCodeSet|string
*/
- public function getCodeValue()
+ public function getInCodeSet()
{
- return $this->codeValue;
+ return $this->inCodeSet;
}
/**
- * @param string $codeValue
+ * @param \OpenActive\Models\SchemaOrg\CategoryCodeSet|string $inCodeSet
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCodeValue($codeValue)
+ public function setInCodeSet($inCodeSet)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CategoryCodeSet",
"string",
];
- $codeValue = self::checkTypes($codeValue, $types);
+ $inCodeSet = self::checkTypes($inCodeSet, $types);
- $this->codeValue = $codeValue;
+ $this->inCodeSet = $inCodeSet;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCodeSet|string
+ * @return string
*/
- public function getInCodeSet()
+ public function getCodeValue()
{
- return $this->inCodeSet;
+ return $this->codeValue;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCodeSet|string $inCodeSet
+ * @param string $codeValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInCodeSet($inCodeSet)
+ public function setCodeValue($codeValue)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCodeSet",
"string",
];
- $inCodeSet = self::checkTypes($inCodeSet, $types);
+ $codeValue = self::checkTypes($codeValue, $types);
- $this->inCodeSet = $inCodeSet;
+ $this->codeValue = $codeValue;
}
}
diff --git a/src/Models/SchemaOrg/Certification.php b/src/Models/SchemaOrg/Certification.php
new file mode 100644
index 00000000..7bdc1828
--- /dev/null
+++ b/src/Models/SchemaOrg/Certification.php
@@ -0,0 +1,437 @@
+ "expires",
+ "certificationStatus" => "certificationStatus",
+ "about" => "about",
+ "issuedBy" => "issuedBy",
+ "certificationIdentification" => "certificationIdentification",
+ "certificationRating" => "certificationRating",
+ "validFrom" => "validFrom",
+ "validIn" => "validIn",
+ "hasMeasurement" => "hasMeasurement",
+ "logo" => "logo",
+ "datePublished" => "datePublished",
+ "auditDate" => "auditDate",
+ ];
+
+ return array_merge(parent::fieldList(), $fields);
+ }
+
+ /**
+ * Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date, or a [[Certification]] the validity has expired.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $expires;
+
+ /**
+ * Indicates the current status of a certification: active or inactive. See also [gs1:certificationStatus](https://www.gs1.org/voc/certificationStatus).
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\CertificationStatusEnumeration|null
+ */
+ protected $certificationStatus;
+
+ /**
+ * The subject matter of the content.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ protected $about;
+
+ /**
+ * The organization issuing the item, for example a [[Permit]], [[Ticket]], or [[Certification]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $issuedBy;
+
+ /**
+ * Identifier of a certification instance (as registered with an independent certification body). Typically this identifier can be used to consult and verify the certification instance. See also [gs1:certificationIdentification](https://www.gs1.org/voc/certificationIdentification).
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ */
+ protected $certificationIdentification;
+
+ /**
+ * Rating of a certification instance (as defined by an independent certification body). Typically this rating can be used to rate the level to which the requirements of the certification instance are fulfilled. See also [gs1:certificationValue](https://www.gs1.org/voc/certificationValue).
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
+ */
+ protected $certificationRating;
+
+ /**
+ * The date when the item becomes valid.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $validFrom;
+
+ /**
+ * The geographic area where the item is valid. Applies for example to a [[Permit]], a [[Certification]], or an [[EducationalOccupationalCredential]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ */
+ protected $validIn;
+
+ /**
+ * A measurement of an item, For example, the inseam of pants, the wheel size of a bicycle, the gauge of a screw, or the carbon footprint measured for certification by an authority. Usually an exact measurement, but can also be a range of measurements for adjustable products, for example belts and ski bindings.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $hasMeasurement;
+
+ /**
+ * An associated logo.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
+ */
+ protected $logo;
+
+ /**
+ * Date of first publication or broadcast. For example the date a [[CreativeWork]] was broadcast or a [[Certification]] was issued.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $datePublished;
+
+ /**
+ * Date when a certification was last audited. See also [gs1:certificationAuditDate](https://www.gs1.org/voc/certificationAuditDate).
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $auditDate;
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getExpires()
+ {
+ return $this->expires;
+ }
+
+ /**
+ * @param Date|DateTime|null $expires
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setExpires($expires)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $expires = self::checkTypes($expires, $types);
+
+ $this->expires = $expires;
+ }
+
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\CertificationStatusEnumeration|null
+ */
+ public function getCertificationStatus()
+ {
+ return $this->certificationStatus;
+ }
+
+ /**
+ * @param \OpenActive\Enums\SchemaOrg\CertificationStatusEnumeration|null $certificationStatus
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCertificationStatus($certificationStatus)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\CertificationStatusEnumeration",
+ "null",
+ ];
+
+ $certificationStatus = self::checkTypes($certificationStatus, $types);
+
+ $this->certificationStatus = $certificationStatus;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ public function getAbout()
+ {
+ return $this->about;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $about
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setAbout($about)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
+ ];
+
+ $about = self::checkTypes($about, $types);
+
+ $this->about = $about;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
+ */
+ public function getIssuedBy()
+ {
+ return $this->issuedBy;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $issuedBy
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setIssuedBy($issuedBy)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
+ ];
+
+ $issuedBy = self::checkTypes($issuedBy, $types);
+
+ $this->issuedBy = $issuedBy;
+ }
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ */
+ public function getCertificationIdentification()
+ {
+ return $this->certificationIdentification;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $certificationIdentification
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCertificationIdentification($certificationIdentification)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ ];
+
+ $certificationIdentification = self::checkTypes($certificationIdentification, $types);
+
+ $this->certificationIdentification = $certificationIdentification;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
+ */
+ public function getCertificationRating()
+ {
+ return $this->certificationRating;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Rating|string $certificationRating
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCertificationRating($certificationRating)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Rating",
+ "string",
+ ];
+
+ $certificationRating = self::checkTypes($certificationRating, $types);
+
+ $this->certificationRating = $certificationRating;
+ }
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getValidFrom()
+ {
+ return $this->validFrom;
+ }
+
+ /**
+ * @param Date|DateTime|null $validFrom
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setValidFrom($validFrom)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $validFrom = self::checkTypes($validFrom, $types);
+
+ $this->validFrom = $validFrom;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ */
+ public function getValidIn()
+ {
+ return $this->validIn;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $validIn
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setValidIn($validIn)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "string",
+ ];
+
+ $validIn = self::checkTypes($validIn, $types);
+
+ $this->validIn = $validIn;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getHasMeasurement()
+ {
+ return $this->hasMeasurement;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setHasMeasurement($hasMeasurement)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ ];
+
+ $hasMeasurement = self::checkTypes($hasMeasurement, $types);
+
+ $this->hasMeasurement = $hasMeasurement;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ */
+ public function getLogo()
+ {
+ return $this->logo;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setLogo($logo)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\ImageObject",
+ "string",
+ ];
+
+ $logo = self::checkTypes($logo, $types);
+
+ $this->logo = $logo;
+ }
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getDatePublished()
+ {
+ return $this->datePublished;
+ }
+
+ /**
+ * @param Date|DateTime|null $datePublished
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDatePublished($datePublished)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $datePublished = self::checkTypes($datePublished, $types);
+
+ $this->datePublished = $datePublished;
+ }
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getAuditDate()
+ {
+ return $this->auditDate;
+ }
+
+ /**
+ * @param Date|DateTime|null $auditDate
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setAuditDate($auditDate)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $auditDate = self::checkTypes($auditDate, $types);
+
+ $this->auditDate = $auditDate;
+ }
+
+}
diff --git a/src/Models/SchemaOrg/Chapter.php b/src/Models/SchemaOrg/Chapter.php
index f0e6159a..6efa6618 100644
--- a/src/Models/SchemaOrg/Chapter.php
+++ b/src/Models/SchemaOrg/Chapter.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "pagination" => "pagination",
"pageStart" => "pageStart",
"pageEnd" => "pageEnd",
- "pagination" => "pagination",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".
+ *
+ *
+ * @var string
+ */
+ protected $pagination;
+
/**
* The page on which the work starts; for example "135" or "xiii".
*
@@ -42,12 +50,28 @@ public static function fieldList() {
protected $pageEnd;
/**
- * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".
- *
- *
- * @var string
+ * @return string
*/
- protected $pagination;
+ public function getPagination()
+ {
+ return $this->pagination;
+ }
+
+ /**
+ * @param string $pagination
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setPagination($pagination)
+ {
+ $types = [
+ "string",
+ ];
+
+ $pagination = self::checkTypes($pagination, $types);
+
+ $this->pagination = $pagination;
+ }
/**
* @return string|int|null
@@ -101,28 +125,4 @@ public function setPageEnd($pageEnd)
$this->pageEnd = $pageEnd;
}
- /**
- * @return string
- */
- public function getPagination()
- {
- return $this->pagination;
- }
-
- /**
- * @param string $pagination
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setPagination($pagination)
- {
- $types = [
- "string",
- ];
-
- $pagination = self::checkTypes($pagination, $types);
-
- $this->pagination = $pagination;
- }
-
}
diff --git a/src/Models/SchemaOrg/ChemicalSubstance.php b/src/Models/SchemaOrg/ChemicalSubstance.php
index 4000ad52..48bfa375 100644
--- a/src/Models/SchemaOrg/ChemicalSubstance.php
+++ b/src/Models/SchemaOrg/ChemicalSubstance.php
@@ -17,22 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
- "chemicalComposition" => "chemicalComposition",
"potentialUse" => "potentialUse",
"chemicalRole" => "chemicalRole",
+ "chemicalComposition" => "chemicalComposition",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The chemical composition describes the identity and relative ratio of the chemical elements that make up the substance.
- *
- *
- * @var string
- */
- protected $chemicalComposition;
-
/**
* Intended use of the BioChemEntity by humans.
*
@@ -50,28 +42,12 @@ public static function fieldList() {
protected $chemicalRole;
/**
- * @return string
- */
- public function getChemicalComposition()
- {
- return $this->chemicalComposition;
- }
-
- /**
- * @param string $chemicalComposition
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The chemical composition describes the identity and relative ratio of the chemical elements that make up the substance.
+ *
+ *
+ * @var string
*/
- public function setChemicalComposition($chemicalComposition)
- {
- $types = [
- "string",
- ];
-
- $chemicalComposition = self::checkTypes($chemicalComposition, $types);
-
- $this->chemicalComposition = $chemicalComposition;
- }
+ protected $chemicalComposition;
/**
* @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
@@ -123,4 +99,28 @@ public function setChemicalRole($chemicalRole)
$this->chemicalRole = $chemicalRole;
}
+ /**
+ * @return string
+ */
+ public function getChemicalComposition()
+ {
+ return $this->chemicalComposition;
+ }
+
+ /**
+ * @param string $chemicalComposition
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setChemicalComposition($chemicalComposition)
+ {
+ $types = [
+ "string",
+ ];
+
+ $chemicalComposition = self::checkTypes($chemicalComposition, $types);
+
+ $this->chemicalComposition = $chemicalComposition;
+ }
+
}
diff --git a/src/Models/SchemaOrg/ChooseAction.php b/src/Models/SchemaOrg/ChooseAction.php
index d1c71ddd..6e687cd7 100644
--- a/src/Models/SchemaOrg/ChooseAction.php
+++ b/src/Models/SchemaOrg/ChooseAction.php
@@ -28,7 +28,7 @@ public static function fieldList() {
* A sub property of object. The options subject to this action.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Thing
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
protected $option;
@@ -41,7 +41,7 @@ public static function fieldList() {
protected $actionOption;
/**
- * @return string|\OpenActive\Models\SchemaOrg\Thing
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
public function getOption()
{
@@ -49,15 +49,15 @@ public function getOption()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Thing $option
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $option
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setOption($option)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
$option = self::checkTypes($option, $types);
diff --git a/src/Models/SchemaOrg/Claim.php b/src/Models/SchemaOrg/Claim.php
index a56747c9..5d32b346 100644
--- a/src/Models/SchemaOrg/Claim.php
+++ b/src/Models/SchemaOrg/Claim.php
@@ -17,25 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "claimInterpreter" => "claimInterpreter",
- "firstAppearance" => "firstAppearance",
"appearance" => "appearance",
+ "firstAppearance" => "firstAppearance",
+ "claimInterpreter" => "claimInterpreter",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * For a [[Claim]] interpreted from [[MediaObject]] content
- * sed to indicate a claim contained, implied or refined from the content of a [[MediaObject]].
+ * Indicates an occurrence of a [[Claim]] in some [[CreativeWork]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $claimInterpreter;
+ protected $appearance;
/**
- * Indicates the first known occurence of a [[Claim]] in some [[CreativeWork]].
+ * Indicates the first known occurrence of a [[Claim]] in some [[CreativeWork]].
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
@@ -43,37 +42,36 @@ public static function fieldList() {
protected $firstAppearance;
/**
- * Indicates an occurence of a [[Claim]] in some [[CreativeWork]].
+ * For a [[Claim]] interpreted from [[MediaObject]] content, the [[interpretedAsClaim]] property can be used to indicate a claim contained, implied or refined from the content of a [[MediaObject]].
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $appearance;
+ protected $claimInterpreter;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getClaimInterpreter()
+ public function getAppearance()
{
- return $this->claimInterpreter;
+ return $this->appearance;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $claimInterpreter
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $appearance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setClaimInterpreter($claimInterpreter)
+ public function setAppearance($appearance)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $claimInterpreter = self::checkTypes($claimInterpreter, $types);
+ $appearance = self::checkTypes($appearance, $types);
- $this->claimInterpreter = $claimInterpreter;
+ $this->appearance = $appearance;
}
/**
@@ -102,28 +100,29 @@ public function setFirstAppearance($firstAppearance)
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAppearance()
+ public function getClaimInterpreter()
{
- return $this->appearance;
+ return $this->claimInterpreter;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $appearance
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $claimInterpreter
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAppearance($appearance)
+ public function setClaimInterpreter($claimInterpreter)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $appearance = self::checkTypes($appearance, $types);
+ $claimInterpreter = self::checkTypes($claimInterpreter, $types);
- $this->appearance = $appearance;
+ $this->claimInterpreter = $claimInterpreter;
}
}
diff --git a/src/Models/SchemaOrg/Class.php b/src/Models/SchemaOrg/Class.php
index bfafaeae..a1de846e 100644
--- a/src/Models/SchemaOrg/Class.php
+++ b/src/Models/SchemaOrg/Class.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* Relates a term (i.e. a property, class or enumeration) to one that supersedes it.
*
*
- * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null
*/
protected $supersededBy;
/**
- * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null
*/
public function getSupersededBy()
{
@@ -40,17 +40,17 @@ public function getSupersededBy()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy
+ * @param \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null $supersededBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSupersededBy($supersededBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Enumeration",
"\OpenActive\Models\SchemaOrg\Class",
- "string",
"\OpenActive\Enums\PropertyEnumeration",
+ "\OpenActive\Models\SchemaOrg\Enumeration",
+ "string",
"null",
];
diff --git a/src/Models/SchemaOrg/Clip.php b/src/Models/SchemaOrg/Clip.php
index 152585a2..a29c314f 100644
--- a/src/Models/SchemaOrg/Clip.php
+++ b/src/Models/SchemaOrg/Clip.php
@@ -17,29 +17,29 @@ public static function getType()
public static function fieldList() {
$fields = [
- "startOffset" => "startOffset",
+ "partOfSeason" => "partOfSeason",
"endOffset" => "endOffset",
- "director" => "director",
"actor" => "actor",
- "partOfEpisode" => "partOfEpisode",
"clipNumber" => "clipNumber",
- "partOfSeries" => "partOfSeries",
- "partOfSeason" => "partOfSeason",
- "actors" => "actors",
+ "partOfEpisode" => "partOfEpisode",
"musicBy" => "musicBy",
"directors" => "directors",
+ "startOffset" => "startOffset",
+ "director" => "director",
+ "actors" => "actors",
+ "partOfSeries" => "partOfSeries",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The start time of the clip expressed as the number of seconds from the beginning of the work.
+ * The season to which this episode belongs.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $startOffset;
+ protected $partOfSeason;
/**
* The end time of the clip expressed as the number of seconds from the beginning of the work.
@@ -50,20 +50,20 @@ public static function fieldList() {
protected $endOffset;
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $director;
+ protected $actor;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * Position of the clip within an ordered group of clips.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string|int|null
*/
- protected $actor;
+ protected $clipNumber;
/**
* The episode to which this clip belongs.
@@ -74,78 +74,76 @@ public static function fieldList() {
protected $partOfEpisode;
/**
- * Position of the clip within an ordered group of clips.
+ * The composer of the soundtrack.
*
*
- * @var string|int|null
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $clipNumber;
+ protected $musicBy;
/**
- * The series to which this episode or season belongs.
+ * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $partOfSeries;
+ protected $directors;
/**
- * The season to which this episode belongs.
+ * The start time of the clip expressed as the number of seconds from the beginning of the work.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
*/
- protected $partOfSeason;
+ protected $startOffset;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $actors;
+ protected $director;
/**
- * The composer of the soundtrack.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $musicBy;
+ protected $actors;
/**
- * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
+ * The series to which this episode or season belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- protected $directors;
+ protected $partOfSeries;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getStartOffset()
+ public function getPartOfSeason()
{
- return $this->startOffset;
+ return $this->partOfSeason;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset
+ * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartOffset($startOffset)
+ public function setPartOfSeason($partOfSeason)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\HyperTocEntry",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
- "null",
];
- $startOffset = self::checkTypes($startOffset, $types);
+ $partOfSeason = self::checkTypes($partOfSeason, $types);
- $this->startOffset = $startOffset;
+ $this->partOfSeason = $partOfSeason;
}
/**
@@ -178,51 +176,52 @@ public function setEndOffset($endOffset)
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirector()
+ public function getActor()
{
- return $this->director;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $director = self::checkTypes($director, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->director = $director;
+ $this->actor = $actor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string|int|null
*/
- public function getActor()
+ public function getClipNumber()
{
- return $this->actor;
+ return $this->clipNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param string|int|null $clipNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setClipNumber($clipNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "int",
+ "null",
];
- $actor = self::checkTypes($actor, $types);
+ $clipNumber = self::checkTypes($clipNumber, $types);
- $this->actor = $actor;
+ $this->clipNumber = $clipNumber;
}
/**
@@ -251,155 +250,156 @@ public function setPartOfEpisode($partOfEpisode)
}
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getClipNumber()
+ public function getMusicBy()
{
- return $this->clipNumber;
+ return $this->musicBy;
}
/**
- * @param string|int|null $clipNumber
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setClipNumber($clipNumber)
+ public function setMusicBy($musicBy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "int",
- "null",
];
- $clipNumber = self::checkTypes($clipNumber, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->clipNumber = $clipNumber;
+ $this->musicBy = $musicBy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPartOfSeries()
+ public function getDirectors()
{
- return $this->partOfSeries;
+ return $this->directors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries
+ * @param \OpenActive\Models\SchemaOrg\Person|string $directors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfSeries($partOfSeries)
+ public function setDirectors($directors)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $partOfSeries = self::checkTypes($partOfSeries, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->partOfSeries = $partOfSeries;
+ $this->directors = $directors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
*/
- public function getPartOfSeason()
+ public function getStartOffset()
{
- return $this->partOfSeason;
+ return $this->startOffset;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason
+ * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfSeason($partOfSeason)
+ public function setStartOffset($startOffset)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\HyperTocEntry",
"string",
+ "null",
];
- $partOfSeason = self::checkTypes($partOfSeason, $types);
+ $startOffset = self::checkTypes($startOffset, $types);
- $this->partOfSeason = $partOfSeason;
+ $this->startOffset = $startOffset;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActors()
+ public function getDirector()
{
- return $this->actors;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @param \OpenActive\Models\SchemaOrg\Person|string $director
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActors($actors)
+ public function setDirector($director)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actors = self::checkTypes($actors, $types);
+ $director = self::checkTypes($director, $types);
- $this->actors = $actors;
+ $this->director = $director;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getMusicBy()
+ public function getActors()
{
- return $this->musicBy;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicBy($musicBy)
+ public function setActors($actors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $musicBy = self::checkTypes($musicBy, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->musicBy = $musicBy;
+ $this->actors = $actors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- public function getDirectors()
+ public function getPartOfSeries()
{
- return $this->directors;
+ return $this->partOfSeries;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirectors($directors)
+ public function setPartOfSeries($partOfSeries)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $partOfSeries = self::checkTypes($partOfSeries, $types);
- $this->directors = $directors;
+ $this->partOfSeries = $partOfSeries;
}
}
diff --git a/src/Models/SchemaOrg/ComicCoverArt.php b/src/Models/SchemaOrg/ComicCoverArt.php
index 8112afb0..f8c1c408 100644
--- a/src/Models/SchemaOrg/ComicCoverArt.php
+++ b/src/Models/SchemaOrg/ComicCoverArt.php
@@ -5,7 +5,7 @@
/**
*
*/
-class ComicCoverArt extends \OpenActive\Models\SchemaOrg\ComicStory
+class ComicCoverArt extends \OpenActive\Models\SchemaOrg\CoverArt
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/ComicIssue.php b/src/Models/SchemaOrg/ComicIssue.php
index ffd3a40f..6e23b278 100644
--- a/src/Models/SchemaOrg/ComicIssue.php
+++ b/src/Models/SchemaOrg/ComicIssue.php
@@ -17,32 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "letterer" => "letterer",
- "colorist" => "colorist",
- "variantCover" => "variantCover",
"inker" => "inker",
- "penciler" => "penciler",
+ "variantCover" => "variantCover",
+ "letterer" => "letterer",
"artist" => "artist",
+ "penciler" => "penciler",
+ "colorist" => "colorist",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The individual who adds lettering, including speech balloons and sound effects, to artwork.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Person|string
- */
- protected $letterer;
-
- /**
- * The individual who adds color to inked drawings.
+ * The individual who traces over the pencil drawings in ink after pencils are complete.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $colorist;
+ protected $inker;
/**
* A description of the variant cover
@@ -55,12 +47,22 @@ public static function fieldList() {
protected $variantCover;
/**
- * The individual who traces over the pencil drawings in ink after pencils are complete.
+ * The individual who adds lettering, including speech balloons and sound effects, to artwork.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $inker;
+ protected $letterer;
+
+ /**
+ * The primary artist for a work
+ * in a medium other than pencils or digital line art--for example, if the
+ * primary artwork is done in watercolors or digital paints.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Person|string
+ */
+ protected $artist;
/**
* The individual who draws the primary narrative artwork.
@@ -71,112 +73,110 @@ public static function fieldList() {
protected $penciler;
/**
- * The primary artist for a work
- * in a medium other than pencils or digital line art--for example, if the
- * primary artwork is done in watercolors or digital paints.
+ * The individual who adds color to inked drawings.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $artist;
+ protected $colorist;
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getLetterer()
+ public function getInker()
{
- return $this->letterer;
+ return $this->inker;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $letterer
+ * @param \OpenActive\Models\SchemaOrg\Person|string $inker
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLetterer($letterer)
+ public function setInker($inker)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $letterer = self::checkTypes($letterer, $types);
+ $inker = self::checkTypes($inker, $types);
- $this->letterer = $letterer;
+ $this->inker = $inker;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getColorist()
+ public function getVariantCover()
{
- return $this->colorist;
+ return $this->variantCover;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $colorist
+ * @param string $variantCover
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setColorist($colorist)
+ public function setVariantCover($variantCover)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $colorist = self::checkTypes($colorist, $types);
+ $variantCover = self::checkTypes($variantCover, $types);
- $this->colorist = $colorist;
+ $this->variantCover = $variantCover;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getVariantCover()
+ public function getLetterer()
{
- return $this->variantCover;
+ return $this->letterer;
}
/**
- * @param string $variantCover
+ * @param \OpenActive\Models\SchemaOrg\Person|string $letterer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVariantCover($variantCover)
+ public function setLetterer($letterer)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $variantCover = self::checkTypes($variantCover, $types);
+ $letterer = self::checkTypes($letterer, $types);
- $this->variantCover = $variantCover;
+ $this->letterer = $letterer;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getInker()
+ public function getArtist()
{
- return $this->inker;
+ return $this->artist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $inker
+ * @param \OpenActive\Models\SchemaOrg\Person|string $artist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInker($inker)
+ public function setArtist($artist)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $inker = self::checkTypes($inker, $types);
+ $artist = self::checkTypes($artist, $types);
- $this->inker = $inker;
+ $this->artist = $artist;
}
/**
@@ -207,26 +207,26 @@ public function setPenciler($penciler)
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getArtist()
+ public function getColorist()
{
- return $this->artist;
+ return $this->colorist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $artist
+ * @param \OpenActive\Models\SchemaOrg\Person|string $colorist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArtist($artist)
+ public function setColorist($colorist)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $artist = self::checkTypes($artist, $types);
+ $colorist = self::checkTypes($colorist, $types);
- $this->artist = $artist;
+ $this->colorist = $colorist;
}
}
diff --git a/src/Models/SchemaOrg/ComicStory.php b/src/Models/SchemaOrg/ComicStory.php
index 8ec03973..f091edc5 100644
--- a/src/Models/SchemaOrg/ComicStory.php
+++ b/src/Models/SchemaOrg/ComicStory.php
@@ -17,39 +17,41 @@ public static function getType()
public static function fieldList() {
$fields = [
- "letterer" => "letterer",
- "colorist" => "colorist",
"inker" => "inker",
- "penciler" => "penciler",
+ "letterer" => "letterer",
"artist" => "artist",
+ "penciler" => "penciler",
+ "colorist" => "colorist",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The individual who adds lettering, including speech balloons and sound effects, to artwork.
+ * The individual who traces over the pencil drawings in ink after pencils are complete.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $letterer;
+ protected $inker;
/**
- * The individual who adds color to inked drawings.
+ * The individual who adds lettering, including speech balloons and sound effects, to artwork.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $colorist;
+ protected $letterer;
/**
- * The individual who traces over the pencil drawings in ink after pencils are complete.
+ * The primary artist for a work
+ * in a medium other than pencils or digital line art--for example, if the
+ * primary artwork is done in watercolors or digital paints.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $inker;
+ protected $artist;
/**
* The individual who draws the primary narrative artwork.
@@ -60,88 +62,86 @@ public static function fieldList() {
protected $penciler;
/**
- * The primary artist for a work
- * in a medium other than pencils or digital line art--for example, if the
- * primary artwork is done in watercolors or digital paints.
+ * The individual who adds color to inked drawings.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $artist;
+ protected $colorist;
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getLetterer()
+ public function getInker()
{
- return $this->letterer;
+ return $this->inker;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $letterer
+ * @param \OpenActive\Models\SchemaOrg\Person|string $inker
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLetterer($letterer)
+ public function setInker($inker)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $letterer = self::checkTypes($letterer, $types);
+ $inker = self::checkTypes($inker, $types);
- $this->letterer = $letterer;
+ $this->inker = $inker;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getColorist()
+ public function getLetterer()
{
- return $this->colorist;
+ return $this->letterer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $colorist
+ * @param \OpenActive\Models\SchemaOrg\Person|string $letterer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setColorist($colorist)
+ public function setLetterer($letterer)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $colorist = self::checkTypes($colorist, $types);
+ $letterer = self::checkTypes($letterer, $types);
- $this->colorist = $colorist;
+ $this->letterer = $letterer;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getInker()
+ public function getArtist()
{
- return $this->inker;
+ return $this->artist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $inker
+ * @param \OpenActive\Models\SchemaOrg\Person|string $artist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInker($inker)
+ public function setArtist($artist)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $inker = self::checkTypes($inker, $types);
+ $artist = self::checkTypes($artist, $types);
- $this->inker = $inker;
+ $this->artist = $artist;
}
/**
@@ -172,26 +172,26 @@ public function setPenciler($penciler)
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getArtist()
+ public function getColorist()
{
- return $this->artist;
+ return $this->colorist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $artist
+ * @param \OpenActive\Models\SchemaOrg\Person|string $colorist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArtist($artist)
+ public function setColorist($colorist)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $artist = self::checkTypes($artist, $types);
+ $colorist = self::checkTypes($colorist, $types);
- $this->artist = $artist;
+ $this->colorist = $colorist;
}
}
diff --git a/src/Models/SchemaOrg/Comment.php b/src/Models/SchemaOrg/Comment.php
index e45f4dde..b0fdf588 100644
--- a/src/Models/SchemaOrg/Comment.php
+++ b/src/Models/SchemaOrg/Comment.php
@@ -17,19 +17,28 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "upvoteCount" => "upvoteCount",
"parentItem" => "parentItem",
"downvoteCount" => "downvoteCount",
- "upvoteCount" => "upvoteCount",
+ "sharedContent" => "sharedContent",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The parent of a question, answer or item in general.
+ * The number of upvotes this question, answer or comment has received from the community.
+ *
+ *
+ * @var int|null
+ */
+ protected $upvoteCount;
+
+ /**
+ * The parent of a question, answer or item in general. Typically used for Q/A discussion threads e.g. a chain of comments with the first comment being an [[Article]] or other [[CreativeWork]]. See also [[comment]] which points from something to a comment about it.
*
*
- * @var \OpenActive\Models\SchemaOrg\Comment|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string
*/
protected $parentItem;
@@ -42,15 +51,40 @@ public static function fieldList() {
protected $downvoteCount;
/**
- * The number of upvotes this question, answer or comment has received from the community.
+ * A CreativeWork such as an image, video, or audio clip shared as part of this posting.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $upvoteCount;
+ protected $sharedContent;
+
+ /**
+ * @return int|null
+ */
+ public function getUpvoteCount()
+ {
+ return $this->upvoteCount;
+ }
+
+ /**
+ * @param int|null $upvoteCount
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setUpvoteCount($upvoteCount)
+ {
+ $types = [
+ "int",
+ "null",
+ ];
+
+ $upvoteCount = self::checkTypes($upvoteCount, $types);
+
+ $this->upvoteCount = $upvoteCount;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\Comment|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string
*/
public function getParentItem()
{
@@ -58,13 +92,14 @@ public function getParentItem()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Comment|string $parentItem
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string $parentItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setParentItem($parentItem)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"\OpenActive\Models\SchemaOrg\Comment",
"string",
];
@@ -100,28 +135,28 @@ public function setDownvoteCount($downvoteCount)
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getUpvoteCount()
+ public function getSharedContent()
{
- return $this->upvoteCount;
+ return $this->sharedContent;
}
/**
- * @param int|null $upvoteCount
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $sharedContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUpvoteCount($upvoteCount)
+ public function setSharedContent($sharedContent)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $upvoteCount = self::checkTypes($upvoteCount, $types);
+ $sharedContent = self::checkTypes($sharedContent, $types);
- $this->upvoteCount = $upvoteCount;
+ $this->sharedContent = $sharedContent;
}
}
diff --git a/src/Models/SchemaOrg/CommunicateAction.php b/src/Models/SchemaOrg/CommunicateAction.php
index 91f19d19..47fa37c8 100644
--- a/src/Models/SchemaOrg/CommunicateAction.php
+++ b/src/Models/SchemaOrg/CommunicateAction.php
@@ -17,30 +17,30 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "about" => "about",
"recipient" => "recipient",
- "inLanguage" => "inLanguage",
"language" => "language",
- "about" => "about",
+ "inLanguage" => "inLanguage",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A sub property of participant. The participant who is at the receiving end of the action.
+ * The subject matter of the content.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $recipient;
+ protected $about;
/**
- * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
+ * A sub property of participant. The participant who is at the receiving end of the action.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $inLanguage;
+ protected $recipient;
/**
* A sub property of instrument. The language used on this action.
@@ -51,64 +51,64 @@ public static function fieldList() {
protected $language;
/**
- * The subject matter of the content.
+ * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $about;
+ protected $inLanguage;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getRecipient()
+ public function getAbout()
{
- return $this->recipient;
+ return $this->about;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $about
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecipient($recipient)
+ public function setAbout($about)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $recipient = self::checkTypes($recipient, $types);
+ $about = self::checkTypes($about, $types);
- $this->recipient = $recipient;
+ $this->about = $about;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getInLanguage()
+ public function getRecipient()
{
- return $this->inLanguage;
+ return $this->recipient;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInLanguage($inLanguage)
+ public function setRecipient($recipient)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $recipient = self::checkTypes($recipient, $types);
- $this->inLanguage = $inLanguage;
+ $this->recipient = $recipient;
}
/**
@@ -137,28 +137,28 @@ public function setLanguage($language)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getAbout()
+ public function getInLanguage()
{
- return $this->about;
+ return $this->inLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $about
+ * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAbout($about)
+ public function setInLanguage($inLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $about = self::checkTypes($about, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->about = $about;
+ $this->inLanguage = $inLanguage;
}
}
diff --git a/src/Models/SchemaOrg/ConstraintNode.php b/src/Models/SchemaOrg/ConstraintNode.php
new file mode 100644
index 00000000..c2526daf
--- /dev/null
+++ b/src/Models/SchemaOrg/ConstraintNode.php
@@ -0,0 +1,94 @@
+ "numConstraints",
+ "constraintProperty" => "constraintProperty",
+ ];
+
+ return array_merge(parent::fieldList(), $fields);
+ }
+
+ /**
+ * Indicates the number of constraints property values defined for a particular [[ConstraintNode]] such as [[StatisticalVariable]]. This helps applications understand if they have access to a sufficiently complete description of a [[StatisticalVariable]] or other construct that is defined using properties on template-style nodes.
+ *
+ *
+ * @var int|null
+ */
+ protected $numConstraints;
+
+ /**
+ * Indicates a property used as a constraint. For example, in the definition of a [[StatisticalVariable]]. The value is a property, either from within Schema.org or from other compatible (e.g. RDF) systems such as DataCommons.org or Wikidata.org.
+ *
+ *
+ * @var string|\OpenActive\Enums\PropertyEnumeration|null
+ */
+ protected $constraintProperty;
+
+ /**
+ * @return int|null
+ */
+ public function getNumConstraints()
+ {
+ return $this->numConstraints;
+ }
+
+ /**
+ * @param int|null $numConstraints
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setNumConstraints($numConstraints)
+ {
+ $types = [
+ "int",
+ "null",
+ ];
+
+ $numConstraints = self::checkTypes($numConstraints, $types);
+
+ $this->numConstraints = $numConstraints;
+ }
+
+ /**
+ * @return string|\OpenActive\Enums\PropertyEnumeration|null
+ */
+ public function getConstraintProperty()
+ {
+ return $this->constraintProperty;
+ }
+
+ /**
+ * @param string|\OpenActive\Enums\PropertyEnumeration|null $constraintProperty
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setConstraintProperty($constraintProperty)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Enums\PropertyEnumeration",
+ "null",
+ ];
+
+ $constraintProperty = self::checkTypes($constraintProperty, $types);
+
+ $this->constraintProperty = $constraintProperty;
+ }
+
+}
diff --git a/src/Models/SchemaOrg/ConsumeAction.php b/src/Models/SchemaOrg/ConsumeAction.php
index d13f0fa1..03a79fd7 100644
--- a/src/Models/SchemaOrg/ConsumeAction.php
+++ b/src/Models/SchemaOrg/ConsumeAction.php
@@ -33,7 +33,7 @@ public static function fieldList() {
protected $expectsAcceptanceOf;
/**
- * A set of requirements that a must be fulfilled in order to perform an Action. If more than one value is specied, fulfilling one set of requirements will allow the Action to be performed.
+ * A set of requirements that must be fulfilled in order to perform an Action. If more than one value is specified, fulfilling one set of requirements will allow the Action to be performed.
*
*
* @var \OpenActive\Models\SchemaOrg\ActionAccessSpecification|string
diff --git a/src/Models/SchemaOrg/ContactPoint.php b/src/Models/SchemaOrg/ContactPoint.php
index 8541bcfa..b65fa077 100644
--- a/src/Models/SchemaOrg/ContactPoint.php
+++ b/src/Models/SchemaOrg/ContactPoint.php
@@ -18,15 +18,15 @@ public static function getType()
public static function fieldList() {
$fields = [
"telephone" => "telephone",
- "hoursAvailable" => "hoursAvailable",
"email" => "email",
- "contactOption" => "contactOption",
"availableLanguage" => "availableLanguage",
+ "faxNumber" => "faxNumber",
+ "hoursAvailable" => "hoursAvailable",
+ "contactOption" => "contactOption",
"serviceArea" => "serviceArea",
- "areaServed" => "areaServed",
- "contactType" => "contactType",
"productSupported" => "productSupported",
- "faxNumber" => "faxNumber",
+ "contactType" => "contactType",
+ "areaServed" => "areaServed",
];
return array_merge(parent::fieldList(), $fields);
@@ -40,14 +40,6 @@ public static function fieldList() {
*/
protected $telephone;
- /**
- * The hours during which this service or contact is available.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
- */
- protected $hoursAvailable;
-
/**
* Email address.
*
@@ -57,44 +49,44 @@ public static function fieldList() {
protected $email;
/**
- * An option available on this contact point (e.g. a toll-free number or support for hearing-impaired callers).
+ * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]].
*
*
- * @var \OpenActive\Enums\SchemaOrg\ContactPointOption|null
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $contactOption;
+ protected $availableLanguage;
/**
- * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]
+ * The fax number.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var string
*/
- protected $availableLanguage;
+ protected $faxNumber;
/**
- * The geographic area where the service is provided.
+ * The hours during which this service or contact is available.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- protected $serviceArea;
+ protected $hoursAvailable;
/**
- * The geographic area where a service or offered item is provided.
+ * An option available on this contact point (e.g. a toll-free number or support for hearing-impaired callers).
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Enums\SchemaOrg\ContactPointOption|null
*/
- protected $areaServed;
+ protected $contactOption;
/**
- * A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.
+ * The geographic area where the service is provided.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $contactType;
+ protected $serviceArea;
/**
* The product or service this support contact point is related to (such as product support for a particular product line). This can be a specific product or product line (e.g. "iPhone") or a general category of products or services (e.g. "smartphones").
@@ -105,12 +97,20 @@ public static function fieldList() {
protected $productSupported;
/**
- * The fax number.
+ * A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point.
*
*
* @var string
*/
- protected $faxNumber;
+ protected $contactType;
+
+ /**
+ * The geographic area where a service or offered item is provided.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place
+ */
+ protected $areaServed;
/**
* @return string
@@ -137,229 +137,229 @@ public function setTelephone($telephone)
}
/**
- * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ * @return string
*/
- public function getHoursAvailable()
+ public function getEmail()
{
- return $this->hoursAvailable;
+ return $this->email;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable
+ * @param string $email
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHoursAvailable($hoursAvailable)
+ public function setEmail($email)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
"string",
];
- $hoursAvailable = self::checkTypes($hoursAvailable, $types);
+ $email = self::checkTypes($email, $types);
- $this->hoursAvailable = $hoursAvailable;
+ $this->email = $email;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getEmail()
+ public function getAvailableLanguage()
{
- return $this->email;
+ return $this->availableLanguage;
}
/**
- * @param string $email
+ * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmail($email)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $email = self::checkTypes($email, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->email = $email;
+ $this->availableLanguage = $availableLanguage;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ContactPointOption|null
+ * @return string
*/
- public function getContactOption()
+ public function getFaxNumber()
{
- return $this->contactOption;
+ return $this->faxNumber;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ContactPointOption|null $contactOption
+ * @param string $faxNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContactOption($contactOption)
+ public function setFaxNumber($faxNumber)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ContactPointOption",
- "null",
+ "string",
];
- $contactOption = self::checkTypes($contactOption, $types);
+ $faxNumber = self::checkTypes($faxNumber, $types);
- $this->contactOption = $contactOption;
+ $this->faxNumber = $faxNumber;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- public function getAvailableLanguage()
+ public function getHoursAvailable()
{
- return $this->availableLanguage;
+ return $this->hoursAvailable;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
+ * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableLanguage($availableLanguage)
+ public function setHoursAvailable($hoursAvailable)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $availableLanguage = self::checkTypes($availableLanguage, $types);
+ $hoursAvailable = self::checkTypes($hoursAvailable, $types);
- $this->availableLanguage = $availableLanguage;
+ $this->hoursAvailable = $hoursAvailable;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Enums\SchemaOrg\ContactPointOption|null
*/
- public function getServiceArea()
+ public function getContactOption()
{
- return $this->serviceArea;
+ return $this->contactOption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea
+ * @param \OpenActive\Enums\SchemaOrg\ContactPointOption|null $contactOption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServiceArea($serviceArea)
+ public function setContactOption($contactOption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ContactPointOption",
+ "null",
];
- $serviceArea = self::checkTypes($serviceArea, $types);
+ $contactOption = self::checkTypes($contactOption, $types);
- $this->serviceArea = $serviceArea;
+ $this->contactOption = $contactOption;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getAreaServed()
+ public function getServiceArea()
{
- return $this->areaServed;
+ return $this->serviceArea;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string $serviceArea
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAreaServed($areaServed)
+ public function setServiceArea($serviceArea)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $serviceArea = self::checkTypes($serviceArea, $types);
- $this->areaServed = $areaServed;
+ $this->serviceArea = $serviceArea;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Product
*/
- public function getContactType()
+ public function getProductSupported()
{
- return $this->contactType;
+ return $this->productSupported;
}
/**
- * @param string $contactType
+ * @param string|\OpenActive\Models\SchemaOrg\Product $productSupported
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContactType($contactType)
+ public function setProductSupported($productSupported)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Product",
];
- $contactType = self::checkTypes($contactType, $types);
+ $productSupported = self::checkTypes($productSupported, $types);
- $this->contactType = $contactType;
+ $this->productSupported = $productSupported;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Product
+ * @return string
*/
- public function getProductSupported()
+ public function getContactType()
{
- return $this->productSupported;
+ return $this->contactType;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Product $productSupported
+ * @param string $contactType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductSupported($productSupported)
+ public function setContactType($contactType)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $productSupported = self::checkTypes($productSupported, $types);
+ $contactType = self::checkTypes($contactType, $types);
- $this->productSupported = $productSupported;
+ $this->contactType = $contactType;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place
*/
- public function getFaxNumber()
+ public function getAreaServed()
{
- return $this->faxNumber;
+ return $this->areaServed;
}
/**
- * @param string $faxNumber
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFaxNumber($faxNumber)
+ public function setAreaServed($areaServed)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
];
- $faxNumber = self::checkTypes($faxNumber, $types);
+ $areaServed = self::checkTypes($areaServed, $types);
- $this->faxNumber = $faxNumber;
+ $this->areaServed = $areaServed;
}
}
diff --git a/src/Models/SchemaOrg/CookAction.php b/src/Models/SchemaOrg/CookAction.php
index 0c80482f..7edb2d5b 100644
--- a/src/Models/SchemaOrg/CookAction.php
+++ b/src/Models/SchemaOrg/CookAction.php
@@ -17,112 +17,112 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "foodEvent" => "foodEvent",
"recipe" => "recipe",
"foodEstablishment" => "foodEstablishment",
- "foodEvent" => "foodEvent",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A sub property of instrument. The recipe/instructions used to perform the action.
+ * A sub property of location. The specific food event where the action occurred.
*
*
- * @var \OpenActive\Models\SchemaOrg\Recipe|string
+ * @var \OpenActive\Models\SchemaOrg\FoodEvent|string
*/
- protected $recipe;
+ protected $foodEvent;
/**
- * A sub property of location. The specific food establishment where the action occurred.
+ * A sub property of instrument. The recipe/instructions used to perform the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string
+ * @var \OpenActive\Models\SchemaOrg\Recipe|string
*/
- protected $foodEstablishment;
+ protected $recipe;
/**
- * A sub property of location. The specific food event where the action occurred.
+ * A sub property of location. The specific food establishment where the action occurred.
*
*
- * @var \OpenActive\Models\SchemaOrg\FoodEvent|string
+ * @var \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $foodEvent;
+ protected $foodEstablishment;
/**
- * @return \OpenActive\Models\SchemaOrg\Recipe|string
+ * @return \OpenActive\Models\SchemaOrg\FoodEvent|string
*/
- public function getRecipe()
+ public function getFoodEvent()
{
- return $this->recipe;
+ return $this->foodEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Recipe|string $recipe
+ * @param \OpenActive\Models\SchemaOrg\FoodEvent|string $foodEvent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecipe($recipe)
+ public function setFoodEvent($foodEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Recipe",
+ "\OpenActive\Models\SchemaOrg\FoodEvent",
"string",
];
- $recipe = self::checkTypes($recipe, $types);
+ $foodEvent = self::checkTypes($foodEvent, $types);
- $this->recipe = $recipe;
+ $this->foodEvent = $foodEvent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string
+ * @return \OpenActive\Models\SchemaOrg\Recipe|string
*/
- public function getFoodEstablishment()
+ public function getRecipe()
{
- return $this->foodEstablishment;
+ return $this->recipe;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string $foodEstablishment
+ * @param \OpenActive\Models\SchemaOrg\Recipe|string $recipe
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFoodEstablishment($foodEstablishment)
+ public function setRecipe($recipe)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\FoodEstablishment",
+ "\OpenActive\Models\SchemaOrg\Recipe",
"string",
];
- $foodEstablishment = self::checkTypes($foodEstablishment, $types);
+ $recipe = self::checkTypes($recipe, $types);
- $this->foodEstablishment = $foodEstablishment;
+ $this->recipe = $recipe;
}
/**
- * @return \OpenActive\Models\SchemaOrg\FoodEvent|string
+ * @return \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getFoodEvent()
+ public function getFoodEstablishment()
{
- return $this->foodEvent;
+ return $this->foodEstablishment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\FoodEvent|string $foodEvent
+ * @param \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string $foodEstablishment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFoodEvent($foodEvent)
+ public function setFoodEstablishment($foodEstablishment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\FoodEvent",
+ "\OpenActive\Models\SchemaOrg\FoodEstablishment",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $foodEvent = self::checkTypes($foodEvent, $types);
+ $foodEstablishment = self::checkTypes($foodEstablishment, $types);
- $this->foodEvent = $foodEvent;
+ $this->foodEstablishment = $foodEstablishment;
}
}
diff --git a/src/Models/SchemaOrg/Corporation.php b/src/Models/SchemaOrg/Corporation.php
index 3954b7f0..13ab4280 100644
--- a/src/Models/SchemaOrg/Corporation.php
+++ b/src/Models/SchemaOrg/Corporation.php
@@ -24,7 +24,7 @@ public static function fieldList() {
}
/**
- * The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we recommend using the controlled vocabulary of Market Identifier Codes (MIC) specified in ISO15022.
+ * The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we recommend using the controlled vocabulary of Market Identifier Codes (MIC) specified in ISO 15022.
*
*
* @var string
diff --git a/src/Models/SchemaOrg/Course.php b/src/Models/SchemaOrg/Course.php
index 09300453..364c5ba9 100644
--- a/src/Models/SchemaOrg/Course.php
+++ b/src/Models/SchemaOrg/Course.php
@@ -17,48 +17,52 @@ public static function getType()
public static function fieldList() {
$fields = [
- "coursePrerequisites" => "coursePrerequisites",
+ "financialAidEligible" => "financialAidEligible",
+ "availableLanguage" => "availableLanguage",
+ "syllabusSections" => "syllabusSections",
+ "hasCourseInstance" => "hasCourseInstance",
+ "courseCode" => "courseCode",
"educationalCredentialAwarded" => "educationalCredentialAwarded",
+ "totalHistoricalEnrollment" => "totalHistoricalEnrollment",
"numberOfCredits" => "numberOfCredits",
+ "coursePrerequisites" => "coursePrerequisites",
"occupationalCredentialAwarded" => "occupationalCredentialAwarded",
- "courseCode" => "courseCode",
- "hasCourseInstance" => "hasCourseInstance",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Requirements for taking the Course. May be completion of another [[Course]] or a textual description like "permission of instructor". Requirements may be a pre-requisite competency, referenced using [[AlignmentObject]].
+ * A financial aid type or program which students may use to pay for tuition or fees associated with the program.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $coursePrerequisites;
+ protected $financialAidEligible;
/**
- * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program.
+ * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]].
*
*
- * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $educationalCredentialAwarded;
+ protected $availableLanguage;
/**
- * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.
+ * Indicates (typically several) Syllabus entities that lay out what each section of the overall course will cover.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\Syllabus|string
*/
- protected $numberOfCredits;
+ protected $syllabusSections;
/**
- * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program.
+ * An offering of the course at a specific time and place or through specific media or mode of study or to a specific section of students.
*
*
- * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var \OpenActive\Models\SchemaOrg\CourseInstance|string
*/
- protected $occupationalCredentialAwarded;
+ protected $hasCourseInstance;
/**
* The identifier for the [[Course]] used by the course [[provider]] (e.g. CS101 or 6.001).
@@ -69,37 +73,167 @@ public static function fieldList() {
protected $courseCode;
/**
- * An offering of the course at a specific time and place or through specific media or mode of study or to a specific section of students.
+ * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program.
*
*
- * @var \OpenActive\Models\SchemaOrg\CourseInstance|string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $hasCourseInstance;
+ protected $educationalCredentialAwarded;
/**
- * @return string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
+ * The total number of students that have enrolled in the history of the course.
+ *
+ *
+ * @var int|null
*/
- public function getCoursePrerequisites()
+ protected $totalHistoricalEnrollment;
+
+ /**
+ * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null
+ */
+ protected $numberOfCredits;
+
+ /**
+ * Requirements for taking the Course. May be completion of another [[Course]] or a textual description like "permission of instructor". Requirements may be a pre-requisite competency, referenced using [[AlignmentObject]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|string
+ */
+ protected $coursePrerequisites;
+
+ /**
+ * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ */
+ protected $occupationalCredentialAwarded;
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ */
+ public function getFinancialAidEligible()
{
- return $this->coursePrerequisites;
+ return $this->financialAidEligible;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course $coursePrerequisites
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $financialAidEligible
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCoursePrerequisites($coursePrerequisites)
+ public function setFinancialAidEligible($financialAidEligible)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\AlignmentObject",
- "\OpenActive\Models\SchemaOrg\Course",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $coursePrerequisites = self::checkTypes($coursePrerequisites, $types);
+ $financialAidEligible = self::checkTypes($financialAidEligible, $types);
- $this->coursePrerequisites = $coursePrerequisites;
+ $this->financialAidEligible = $financialAidEligible;
+ }
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\Language
+ */
+ public function getAvailableLanguage()
+ {
+ return $this->availableLanguage;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setAvailableLanguage($availableLanguage)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\Language",
+ ];
+
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
+
+ $this->availableLanguage = $availableLanguage;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Syllabus|string
+ */
+ public function getSyllabusSections()
+ {
+ return $this->syllabusSections;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Syllabus|string $syllabusSections
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setSyllabusSections($syllabusSections)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Syllabus",
+ "string",
+ ];
+
+ $syllabusSections = self::checkTypes($syllabusSections, $types);
+
+ $this->syllabusSections = $syllabusSections;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\CourseInstance|string
+ */
+ public function getHasCourseInstance()
+ {
+ return $this->hasCourseInstance;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\CourseInstance|string $hasCourseInstance
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setHasCourseInstance($hasCourseInstance)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CourseInstance",
+ "string",
+ ];
+
+ $hasCourseInstance = self::checkTypes($hasCourseInstance, $types);
+
+ $this->hasCourseInstance = $hasCourseInstance;
+ }
+
+ /**
+ * @return string
+ */
+ public function getCourseCode()
+ {
+ return $this->courseCode;
+ }
+
+ /**
+ * @param string $courseCode
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCourseCode($courseCode)
+ {
+ $types = [
+ "string",
+ ];
+
+ $courseCode = self::checkTypes($courseCode, $types);
+
+ $this->courseCode = $courseCode;
}
/**
@@ -128,104 +262,106 @@ public function setEducationalCredentialAwarded($educationalCredentialAwarded)
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @return int|null
*/
- public function getNumberOfCredits()
+ public function getTotalHistoricalEnrollment()
{
- return $this->numberOfCredits;
+ return $this->totalHistoricalEnrollment;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $numberOfCredits
+ * @param int|null $totalHistoricalEnrollment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfCredits($numberOfCredits)
+ public function setTotalHistoricalEnrollment($totalHistoricalEnrollment)
{
$types = [
"int",
- "\OpenActive\Models\SchemaOrg\StructuredValue",
- "string",
"null",
];
- $numberOfCredits = self::checkTypes($numberOfCredits, $types);
+ $totalHistoricalEnrollment = self::checkTypes($totalHistoricalEnrollment, $types);
- $this->numberOfCredits = $numberOfCredits;
+ $this->totalHistoricalEnrollment = $totalHistoricalEnrollment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null
*/
- public function getOccupationalCredentialAwarded()
+ public function getNumberOfCredits()
{
- return $this->occupationalCredentialAwarded;
+ return $this->numberOfCredits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded
+ * @param \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null $numberOfCredits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCredentialAwarded($occupationalCredentialAwarded)
+ public function setNumberOfCredits($numberOfCredits)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
"string",
+ "int",
+ "null",
];
- $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
+ $numberOfCredits = self::checkTypes($numberOfCredits, $types);
- $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
+ $this->numberOfCredits = $numberOfCredits;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|string
*/
- public function getCourseCode()
+ public function getCoursePrerequisites()
{
- return $this->courseCode;
+ return $this->coursePrerequisites;
}
/**
- * @param string $courseCode
+ * @param \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|string $coursePrerequisites
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCourseCode($courseCode)
+ public function setCoursePrerequisites($coursePrerequisites)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
+ "\OpenActive\Models\SchemaOrg\Course",
"string",
];
- $courseCode = self::checkTypes($courseCode, $types);
+ $coursePrerequisites = self::checkTypes($coursePrerequisites, $types);
- $this->courseCode = $courseCode;
+ $this->coursePrerequisites = $coursePrerequisites;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CourseInstance|string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getHasCourseInstance()
+ public function getOccupationalCredentialAwarded()
{
- return $this->hasCourseInstance;
+ return $this->occupationalCredentialAwarded;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CourseInstance|string $hasCourseInstance
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $occupationalCredentialAwarded
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasCourseInstance($hasCourseInstance)
+ public function setOccupationalCredentialAwarded($occupationalCredentialAwarded)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CourseInstance",
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $hasCourseInstance = self::checkTypes($hasCourseInstance, $types);
+ $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
- $this->hasCourseInstance = $hasCourseInstance;
+ $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
}
}
diff --git a/src/Models/SchemaOrg/CourseInstance.php b/src/Models/SchemaOrg/CourseInstance.php
index 5f6f9db7..30d0b90d 100644
--- a/src/Models/SchemaOrg/CourseInstance.php
+++ b/src/Models/SchemaOrg/CourseInstance.php
@@ -17,14 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "courseMode" => "courseMode",
"instructor" => "instructor",
"courseWorkload" => "courseWorkload",
- "courseMode" => "courseMode",
+ "courseSchedule" => "courseSchedule",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or as a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous).
+ *
+ *
+ * @var string
+ */
+ protected $courseMode;
+
/**
* A person assigned to instruct or provide instructional assistance for the [[CourseInstance]].
*
@@ -42,12 +51,36 @@ public static function fieldList() {
protected $courseWorkload;
/**
- * The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or as a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous ).
+ * Represents the length and pace of a course, expressed as a [[Schedule]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Schedule|string
*/
- protected $courseMode;
+ protected $courseSchedule;
+
+ /**
+ * @return string
+ */
+ public function getCourseMode()
+ {
+ return $this->courseMode;
+ }
+
+ /**
+ * @param string $courseMode
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCourseMode($courseMode)
+ {
+ $types = [
+ "string",
+ ];
+
+ $courseMode = self::checkTypes($courseMode, $types);
+
+ $this->courseMode = $courseMode;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
@@ -99,27 +132,28 @@ public function setCourseWorkload($courseWorkload)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Schedule|string
*/
- public function getCourseMode()
+ public function getCourseSchedule()
{
- return $this->courseMode;
+ return $this->courseSchedule;
}
/**
- * @param string $courseMode
+ * @param \OpenActive\Models\SchemaOrg\Schedule|string $courseSchedule
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCourseMode($courseMode)
+ public function setCourseSchedule($courseSchedule)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Schedule",
"string",
];
- $courseMode = self::checkTypes($courseMode, $types);
+ $courseSchedule = self::checkTypes($courseSchedule, $types);
- $this->courseMode = $courseMode;
+ $this->courseSchedule = $courseSchedule;
}
}
diff --git a/src/Models/SchemaOrg/CreativeWork.php b/src/Models/SchemaOrg/CreativeWork.php
index bf378797..50973762 100644
--- a/src/Models/SchemaOrg/CreativeWork.php
+++ b/src/Models/SchemaOrg/CreativeWork.php
@@ -17,218 +17,274 @@ public static function getType()
public static function fieldList() {
$fields = [
- "teaches" => "teaches",
- "educationalLevel" => "educationalLevel",
- "abstract" => "abstract",
- "creativeWorkStatus" => "creativeWorkStatus",
"expires" => "expires",
- "contentReferenceTime" => "contentReferenceTime",
- "material" => "material",
- "review" => "review",
- "fileFormat" => "fileFormat",
- "text" => "text",
- "translator" => "translator",
- "award" => "award",
- "assesses" => "assesses",
- "copyrightNotice" => "copyrightNotice",
- "schemaVersion" => "schemaVersion",
- "countryOfOrigin" => "countryOfOrigin",
- "pattern" => "pattern",
- "accountablePerson" => "accountablePerson",
+ "sdPublisher" => "sdPublisher",
+ "contentRating" => "contentRating",
+ "dateModified" => "dateModified",
"funding" => "funding",
+ "correction" => "correction",
+ "interactivityType" => "interactivityType",
+ "editEIDR" => "editEIDR",
+ "isPartOf" => "isPartOf",
+ "abstract" => "abstract",
+ "accessMode" => "accessMode",
+ "timeRequired" => "timeRequired",
+ "about" => "about",
+ "contentLocation" => "contentLocation",
+ "author" => "author",
+ "materialExtent" => "materialExtent",
+ "learningResourceType" => "learningResourceType",
+ "discussionUrl" => "discussionUrl",
+ "assesses" => "assesses",
+ "spatial" => "spatial",
+ "text" => "text",
+ "editor" => "editor",
"educationalUse" => "educationalUse",
- "genre" => "genre",
- "keywords" => "keywords",
- "position" => "position",
- "accessibilityHazard" => "accessibilityHazard",
- "alternativeHeadline" => "alternativeHeadline",
- "audience" => "audience",
+ "acquireLicensePage" => "acquireLicensePage",
+ "citation" => "citation",
+ "interactionStatistic" => "interactionStatistic",
+ "contentReferenceTime" => "contentReferenceTime",
+ "dateCreated" => "dateCreated",
+ "workTranslation" => "workTranslation",
+ "isFamilyFriendly" => "isFamilyFriendly",
"offers" => "offers",
- "locationCreated" => "locationCreated",
- "associatedMedia" => "associatedMedia",
- "materialExtent" => "materialExtent",
- "mainEntity" => "mainEntity",
- "copyrightHolder" => "copyrightHolder",
- "awards" => "awards",
- "contentLocation" => "contentLocation",
+ "alternativeHeadline" => "alternativeHeadline",
+ "genre" => "genre",
+ "thumbnail" => "thumbnail",
+ "thumbnailUrl" => "thumbnailUrl",
+ "funder" => "funder",
"sdDatePublished" => "sdDatePublished",
+ "keywords" => "keywords",
+ "accessibilityControl" => "accessibilityControl",
+ "encodings" => "encodings",
+ "size" => "size",
+ "releasedEvent" => "releasedEvent",
+ "license" => "license",
+ "creator" => "creator",
"producer" => "producer",
- "spatial" => "spatial",
- "publisher" => "publisher",
- "sourceOrganization" => "sourceOrganization",
- "character" => "character",
- "funder" => "funder",
- "exampleOfWork" => "exampleOfWork",
- "usageInfo" => "usageInfo",
- "provider" => "provider",
- "sdPublisher" => "sdPublisher",
+ "locationCreated" => "locationCreated",
+ "fileFormat" => "fileFormat",
+ "audio" => "audio",
+ "educationalAlignment" => "educationalAlignment",
"comment" => "comment",
"accessibilityFeature" => "accessibilityFeature",
- "publication" => "publication",
+ "character" => "character",
+ "interpretedAsClaim" => "interpretedAsClaim",
+ "translator" => "translator",
+ "pattern" => "pattern",
+ "publisher" => "publisher",
+ "copyrightNotice" => "copyrightNotice",
+ "video" => "video",
+ "accountablePerson" => "accountablePerson",
+ "award" => "award",
+ "usageInfo" => "usageInfo",
+ "reviews" => "reviews",
+ "countryOfOrigin" => "countryOfOrigin",
+ "maintainer" => "maintainer",
+ "headline" => "headline",
+ "publishingPrinciples" => "publishingPrinciples",
"translationOfWork" => "translationOfWork",
- "interactivityType" => "interactivityType",
- "commentCount" => "commentCount",
- "accessMode" => "accessMode",
+ "publication" => "publication",
"aggregateRating" => "aggregateRating",
- "timeRequired" => "timeRequired",
+ "position" => "position",
+ "digitalSourceType" => "digitalSourceType",
+ "accessibilitySummary" => "accessibilitySummary",
+ "recordedAt" => "recordedAt",
+ "sourceOrganization" => "sourceOrganization",
+ "sdLicense" => "sdLicense",
"typicalAgeRange" => "typicalAgeRange",
- "interactionStatistic" => "interactionStatistic",
- "copyrightYear" => "copyrightYear",
+ "associatedMedia" => "associatedMedia",
+ "temporal" => "temporal",
+ "educationalLevel" => "educationalLevel",
+ "exampleOfWork" => "exampleOfWork",
+ "mentions" => "mentions",
+ "conditionsOfAccess" => "conditionsOfAccess",
+ "encodingFormat" => "encodingFormat",
+ "material" => "material",
+ "isBasedOnUrl" => "isBasedOnUrl",
+ "publisherImprint" => "publisherImprint",
+ "isAccessibleForFree" => "isAccessibleForFree",
+ "awards" => "awards",
"isBasedOn" => "isBasedOn",
+ "accessibilityHazard" => "accessibilityHazard",
+ "copyrightYear" => "copyrightYear",
+ "encoding" => "encoding",
+ "spatialCoverage" => "spatialCoverage",
+ "sponsor" => "sponsor",
"workExample" => "workExample",
- "publishingPrinciples" => "publishingPrinciples",
- "discussionUrl" => "discussionUrl",
- "releasedEvent" => "releasedEvent",
- "dateCreated" => "dateCreated",
- "workTranslation" => "workTranslation",
- "editor" => "editor",
"creditText" => "creditText",
- "recordedAt" => "recordedAt",
- "editEIDR" => "editEIDR",
- "author" => "author",
- "dateModified" => "dateModified",
- "sponsor" => "sponsor",
- "accessibilitySummary" => "accessibilitySummary",
- "encodingFormat" => "encodingFormat",
- "maintainer" => "maintainer",
- "educationalAlignment" => "educationalAlignment",
- "acquireLicensePage" => "acquireLicensePage",
- "isAccessibleForFree" => "isAccessibleForFree",
"datePublished" => "datePublished",
- "spatialCoverage" => "spatialCoverage",
- "sdLicense" => "sdLicense",
- "conditionsOfAccess" => "conditionsOfAccess",
- "correction" => "correction",
- "contentRating" => "contentRating",
- "size" => "size",
- "isPartOf" => "isPartOf",
- "temporal" => "temporal",
- "thumbnailUrl" => "thumbnailUrl",
- "inLanguage" => "inLanguage",
- "license" => "license",
- "creator" => "creator",
- "reviews" => "reviews",
- "about" => "about",
- "isFamilyFriendly" => "isFamilyFriendly",
- "headline" => "headline",
"accessibilityAPI" => "accessibilityAPI",
- "publisherImprint" => "publisherImprint",
- "isBasedOnUrl" => "isBasedOnUrl",
- "encodings" => "encodings",
- "interpretedAsClaim" => "interpretedAsClaim",
- "accessibilityControl" => "accessibilityControl",
- "citation" => "citation",
+ "mainEntity" => "mainEntity",
+ "teaches" => "teaches",
+ "provider" => "provider",
+ "temporalCoverage" => "temporalCoverage",
+ "schemaVersion" => "schemaVersion",
+ "copyrightHolder" => "copyrightHolder",
+ "commentCount" => "commentCount",
"version" => "version",
+ "review" => "review",
+ "hasPart" => "hasPart",
+ "inLanguage" => "inLanguage",
"archivedAt" => "archivedAt",
- "learningResourceType" => "learningResourceType",
- "encoding" => "encoding",
- "audio" => "audio",
- "mentions" => "mentions",
+ "audience" => "audience",
+ "creativeWorkStatus" => "creativeWorkStatus",
"accessModeSufficient" => "accessModeSufficient",
- "hasPart" => "hasPart",
- "temporalCoverage" => "temporalCoverage",
"contributor" => "contributor",
- "video" => "video",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.
+ * Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date, or a [[Certification]] the validity has expired.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var Date|DateTime|null
*/
- protected $teaches;
+ protected $expires;
/**
- * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators.
+ * Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The
+ * [[sdPublisher]] property helps make such practices more explicit.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $educationalLevel;
+ protected $sdPublisher;
/**
- * An abstract is a short description that summarizes a [[CreativeWork]].
+ * Official rating of a piece of content—for example, 'MPAA PG-13'.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Rating
*/
- protected $abstract;
+ protected $contentRating;
/**
- * The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.
+ * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var Date|DateTime|null
*/
- protected $creativeWorkStatus;
+ protected $dateModified;
/**
- * Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $expires;
+ protected $funding;
/**
- * The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.
+ * Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.
*
*
- * @var DateTime|null
+ * @var string|\OpenActive\Models\SchemaOrg\CorrectionComment
*/
- protected $contentReferenceTime;
+ protected $correction;
/**
- * A material that something is made from, e.g. leather, wool, cotton, paper.
+ * The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Product
+ * @var string
*/
- protected $material;
+ protected $interactivityType;
/**
- * A review of the item.
+ * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television.
+ *
+ * For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3".
+ *
+ * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description.
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var string
*/
- protected $review;
+ protected $editEIDR;
/**
- * Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, 'encoding' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.
+ * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ protected $isPartOf;
+
+ /**
+ * An abstract is a short description that summarizes a [[CreativeWork]].
*
*
* @var string
*/
- protected $fileFormat;
+ protected $abstract;
/**
- * The textual content of this CreativeWork.
+ * The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).
*
*
* @var string
*/
- protected $text;
+ protected $accessMode;
/**
- * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.
+ * Approximate or typical time it usually takes to work with or through the content of this work for the typical or target audience.
+ *
+ *
+ * @var DateInterval|string|null
+ */
+ protected $timeRequired;
+
+ /**
+ * The subject matter of the content.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ protected $about;
+
+ /**
+ * The location depicted or described in the content. For example, the location in a photograph or painting.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Place|string
+ */
+ protected $contentLocation;
+
+ /**
+ * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $translator;
+ protected $author;
/**
- * An award won by or for this item.
+ * [object Object]
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ */
+ protected $materialExtent;
+
+ /**
+ * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ */
+ protected $learningResourceType;
+
+ /**
+ * A link to the page containing the comments of the CreativeWork.
*
*
* @var string
*/
- protected $award;
+ protected $discussionUrl;
/**
* The item being described is intended to assess the competency or learning outcome defined by the referenced term.
@@ -239,65 +295,110 @@ public static function fieldList() {
protected $assesses;
/**
- * Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.
+ * The "spatial" property can be used in cases when more specific properties
+ * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $copyrightNotice;
+ protected $spatial;
/**
- * Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to
- * indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.
+ * The textual content of this CreativeWork.
*
*
* @var string
*/
- protected $schemaVersion;
+ protected $text;
/**
- * The country of origin of something, including products as well as creative works such as movie and TV content.
- *
- * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable.
- *
- * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.
+ * Specifies the Person who edited the CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $countryOfOrigin;
+ protected $editor;
/**
- * A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'. Values are typically expressed as text, although links to controlled value schemes are also supported.
+ * The purpose of a work in the context of education; for example, 'assignment', 'group work'.
*
*
* @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $pattern;
+ protected $educationalUse;
/**
- * Specifies the Person that is legally accountable for the CreativeWork.
+ * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $accountablePerson;
+ protected $acquireLicensePage;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $funding;
+ protected $citation;
+
+ /**
+ * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ */
+ protected $interactionStatistic;
+
+ /**
+ * The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.
+ *
+ *
+ * @var DateTime|null
+ */
+ protected $contentReferenceTime;
+
+ /**
+ * The date on which the CreativeWork was created or the item was added to a DataFeed.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $dateCreated;
+
+ /**
+ * A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ protected $workTranslation;
+
+ /**
+ * Indicates whether this content is family friendly.
+ *
+ *
+ * @var bool|null
+ */
+ protected $isFamilyFriendly;
+
+ /**
+ * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ *
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ */
+ protected $offers;
/**
- * The purpose of a work in the context of education; for example, 'assignment', 'group work'.
+ * A secondary title of the CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $educationalUse;
+ protected $alternativeHeadline;
/**
* Genre of the creative work, broadcast channel or group.
@@ -308,150 +409,150 @@ public static function fieldList() {
protected $genre;
/**
- * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
+ * Thumbnail image for an image or video.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $keywords;
+ protected $thumbnail;
/**
- * The position of an item in a series or sequence of items.
+ * A thumbnail image relevant to the Thing.
*
*
- * @var string|int|null
+ * @var string
*/
- protected $position;
+ protected $thumbnailUrl;
/**
- * A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).
+ * A person or organization that supports (sponsors) something through some kind of financial contribution.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $accessibilityHazard;
+ protected $funder;
/**
- * A secondary title of the CreativeWork.
+ * Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]].
*
*
- * @var string
+ * @var Date|null
*/
- protected $alternativeHeadline;
+ protected $sdDatePublished;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $audience;
+ protected $keywords;
/**
- * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
- *
+ * Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var string
*/
- protected $offers;
+ protected $accessibilityControl;
/**
- * The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.
+ * A media object that encodes this CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- protected $locationCreated;
+ protected $encodings;
/**
- * A media object that encodes this CreativeWork. This property is a synonym for encoding.
+ * A standardized size of a product or creative work, specified either through a simple textual string (for example 'XL', '32Wx34L'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- protected $associatedMedia;
+ protected $size;
/**
- * [object Object]
+ * The place and time the release was issued, expressed as a PublicationEvent.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- protected $materialExtent;
+ protected $releasedEvent;
/**
- * Indicates the primary entity described in some page or other CreativeWork.
+ * A license document that applies to this content, typically indicated by URL.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $mainEntity;
+ protected $license;
/**
- * The party holding the legal copyright to the CreativeWork.
+ * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $copyrightHolder;
+ protected $creator;
/**
- * Awards won by or for this item.
+ * The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $awards;
+ protected $producer;
/**
- * The location depicted or described in the content. For example, the location in a photograph or painting.
+ * The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $contentLocation;
+ protected $locationCreated;
/**
- * Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]
+ * Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, 'encoding' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.
*
*
- * @var Date|null
+ * @var string
*/
- protected $sdDatePublished;
+ protected $fileFormat;
/**
- * The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.).
+ * An embedded audio object.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\AudioObject|string
*/
- protected $producer;
+ protected $audio;
/**
- * The "spatial" property can be used in cases when more specific properties
- * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.
+ * An alignment to an established educational framework.
+ *
+ * This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string
*/
- protected $spatial;
+ protected $educationalAlignment;
/**
- * The publisher of the creative work.
+ * Comments, typically from users.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Comment|string
*/
- protected $publisher;
+ protected $comment;
/**
- * The Organization on whose behalf the creator was working.
+ * Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $sourceOrganization;
+ protected $accessibilityFeature;
/**
* Fictional person connected with a creative work.
@@ -462,274 +563,258 @@ public static function fieldList() {
protected $character;
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
- */
- protected $funder;
-
- /**
- * A creative work that this work is an example/instance/realization/derivation of.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
- */
- protected $exampleOfWork;
-
- /**
- * The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options.
- *
- * This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.
+ * Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Claim|string
*/
- protected $usageInfo;
+ protected $interpretedAsClaim;
/**
- * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
+ * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $provider;
+ protected $translator;
/**
- * Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The
- * [[sdPublisher]] property helps make such practices more explicit.
+ * A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'. Values are typically expressed as text, although links to controlled value schemes are also supported.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $sdPublisher;
+ protected $pattern;
/**
- * Comments, typically from users.
+ * The publisher of the creative work.
*
*
- * @var \OpenActive\Models\SchemaOrg\Comment|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $comment;
+ protected $publisher;
/**
- * Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).
+ * Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.
*
*
* @var string
*/
- protected $accessibilityFeature;
+ protected $copyrightNotice;
/**
- * A publication event associated with the item.
+ * An embedded video object.
*
*
- * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $publication;
+ protected $video;
/**
- * The work that this work has been translated from. e.g. 物种起源 is a translationOf “On the Origin of Species”
+ * Specifies the Person that is legally accountable for the CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $translationOfWork;
+ protected $accountablePerson;
/**
- * The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'.
+ * An award won by or for this item.
*
*
* @var string
*/
- protected $interactivityType;
+ protected $award;
/**
- * The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.
+ * The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options.
+ *
+ * This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.
*
*
- * @var int|null
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $commentCount;
+ protected $usageInfo;
/**
- * The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).
+ * Review of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $accessMode;
+ protected $reviews;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * The country of origin of something, including products as well as creative works such as movie and TV content.
+ *
+ * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable.
+ *
+ * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $aggregateRating;
+ protected $countryOfOrigin;
/**
- * Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. 'PT30M', 'PT1H25M'.
+ * A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work.
+ *
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $timeRequired;
+ protected $maintainer;
/**
- * The typical expected age range, e.g. '7-9', '11-'.
+ * Headline of the article.
*
*
* @var string
*/
- protected $typicalAgeRange;
+ protected $headline;
/**
- * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.
+ * The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].
+ *
+ * While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology.
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $interactionStatistic;
+ protected $publishingPrinciples;
/**
- * The year during which the claimed copyright for the CreativeWork was first asserted.
+ * The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $copyrightYear;
+ protected $translationOfWork;
/**
- * A resource from which this work is derived or from which it is a modification or adaption.
+ * A publication event associated with the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product
+ * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- protected $isBasedOn;
+ protected $publication;
/**
- * Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook.
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $workExample;
+ protected $aggregateRating;
/**
- * The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].
- *
- * While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology.
- *
+ * The position of an item in a series or sequence of items.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var string|int|null
*/
- protected $publishingPrinciples;
+ protected $position;
/**
- * A link to the page containing the comments of the CreativeWork.
+ * Indicates an IPTCDigitalSourceEnumeration code indicating the nature of the digital source(s) for some [[CreativeWork]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string
*/
- protected $discussionUrl;
+ protected $digitalSourceType;
/**
- * The place and time the release was issued, expressed as a PublicationEvent.
+ * A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed".
*
*
- * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @var string
*/
- protected $releasedEvent;
+ protected $accessibilitySummary;
/**
- * The date on which the CreativeWork was created or the item was added to a DataFeed.
+ * The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $dateCreated;
+ protected $recordedAt;
/**
- * A work that is a translation of the content of this work. e.g. 西遊記 has an English workTranslation “Journey to the West”,a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo.
+ * The Organization on whose behalf the creator was working.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $workTranslation;
+ protected $sourceOrganization;
/**
- * Specifies the Person who edited the CreativeWork.
+ * A license document that applies to this structured data, typically indicated by URL.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $editor;
+ protected $sdLicense;
/**
- * Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.
+ * The typical expected age range, e.g. '7-9', '11-'.
*
*
* @var string
*/
- protected $creditText;
+ protected $typicalAgeRange;
/**
- * The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.
+ * A media object that encodes this CreativeWork. This property is a synonym for encoding.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- protected $recordedAt;
+ protected $associatedMedia;
/**
- * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television.
- *
- * For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J", has several edits e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3".
- *
- * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description.
- *
+ * The "temporal" property can be used in cases where more specific properties
+ * (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.
*
*
- * @var string
+ * @var DateTime|string|null
*/
- protected $editEIDR;
+ protected $temporal;
/**
- * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
+ * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $author;
+ protected $educationalLevel;
/**
- * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
+ * A creative work that this work is an example/instance/realization/derivation of.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $dateModified;
+ protected $exampleOfWork;
/**
- * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
+ * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $sponsor;
+ protected $mentions;
/**
- * A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."
+ * Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language.\n\nFor example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ".
*
*
* @var string
*/
- protected $accessibilitySummary;
+ protected $conditionsOfAccess;
/**
- * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)) e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.).
+ * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.
*
* In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information.
*
@@ -741,31 +826,28 @@ public static function fieldList() {
protected $encodingFormat;
/**
- * A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work.
- *
+ * A material that something is made from, e.g. leather, wool, cotton, paper.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|\OpenActive\Models\SchemaOrg\Product
*/
- protected $maintainer;
+ protected $material;
/**
- * An alignment to an established educational framework.
- *
- * This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.
+ * A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.
*
*
- * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string
+ * @var string|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $educationalAlignment;
+ protected $isBasedOnUrl;
/**
- * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.
+ * The publishing division which published the comic.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $acquireLicensePage;
+ protected $publisherImprint;
/**
* A flag to signal that the item, event, or place is accessible for free.
@@ -776,207 +858,187 @@ public static function fieldList() {
protected $isAccessibleForFree;
/**
- * Date of first broadcast/publication.
- *
- *
- * @var Date|DateTime|null
- */
- protected $datePublished;
-
- /**
- * The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of
- * contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates
- * areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.
+ * Awards won by or for this item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var string
*/
- protected $spatialCoverage;
+ protected $awards;
/**
- * A license document that applies to this structured data, typically indicated by URL.
+ * A resource from which this work is derived or from which it is a modification or adaptation.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $sdLicense;
+ protected $isBasedOn;
/**
- * Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language.\n\nFor example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ".
+ * A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).
*
*
* @var string
*/
- protected $conditionsOfAccess;
+ protected $accessibilityHazard;
/**
- * Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.
+ * The year during which the claimed copyright for the CreativeWork was first asserted.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CorrectionComment
+ * @var Number|null
*/
- protected $correction;
+ protected $copyrightYear;
/**
- * Official rating of a piece of content—for example,'MPAA PG-13'.
+ * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Rating
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- protected $contentRating;
+ protected $encoding;
/**
- * A standardized size of a product or creative work, specified either through a simple textual string (for example 'XL', '32Wx34L'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable.
+ * The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of
+ * contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates
+ * areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $size;
+ protected $spatialCoverage;
/**
- * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.
+ * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $isPartOf;
+ protected $sponsor;
/**
- * The "temporal" property can be used in cases where more specific properties
- * (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.
+ * Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $temporal;
+ protected $workExample;
/**
- * A thumbnail image relevant to the Thing.
+ * Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.
*
*
* @var string
*/
- protected $thumbnailUrl;
-
- /**
- * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\Language
- */
- protected $inLanguage;
-
- /**
- * A license document that applies to this content, typically indicated by URL.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
- */
- protected $license;
+ protected $creditText;
/**
- * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.
+ * Date of first publication or broadcast. For example the date a [[CreativeWork]] was broadcast or a [[Certification]] was issued.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|DateTime|null
*/
- protected $creator;
+ protected $datePublished;
/**
- * Review of the item.
+ * Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var string
*/
- protected $reviews;
+ protected $accessibilityAPI;
/**
- * The subject matter of the content.
+ * Indicates the primary entity described in some page or other CreativeWork.
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $about;
+ protected $mainEntity;
/**
- * Indicates whether this content is family friendly.
+ * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $isFamilyFriendly;
+ protected $teaches;
/**
- * Headline of the article.
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $headline;
+ protected $provider;
/**
- * Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).
+ * The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In
+ * the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL.
+ * Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945".
+ *
+ * Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.
*
*
- * @var string
+ * @var DateTime|string|null
*/
- protected $accessibilityAPI;
+ protected $temporalCoverage;
/**
- * The publishing division which published the comic.
+ * Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to
+ * indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $publisherImprint;
+ protected $schemaVersion;
/**
- * A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.
+ * The party holding the legal copyright to the CreativeWork.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $isBasedOnUrl;
+ protected $copyrightHolder;
/**
- * A media object that encodes this CreativeWork.
+ * The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @var int|null
*/
- protected $encodings;
+ protected $commentCount;
/**
- * Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].
+ * The version of the CreativeWork embodied by a specified resource.
*
*
- * @var \OpenActive\Models\SchemaOrg\Claim|string
+ * @var string|Number|null
*/
- protected $interpretedAsClaim;
+ protected $version;
/**
- * Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).
+ * A review of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $accessibilityControl;
+ protected $review;
/**
- * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
+ * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $citation;
+ protected $hasPart;
/**
- * The version of the CreativeWork embodied by a specified resource.
+ * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
*
*
- * @var string|Number|null
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $version;
+ protected $inLanguage;
/**
* Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.
@@ -987,923 +1049,934 @@ public static function fieldList() {
protected $archivedAt;
/**
- * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $learningResourceType;
+ protected $audience;
/**
- * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.
+ * The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $encoding;
+ protected $creativeWorkStatus;
/**
- * An embedded audio object.
+ * A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).
*
*
- * @var \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string
+ * @var \OpenActive\Models\SchemaOrg\ItemList|string
*/
- protected $audio;
+ protected $accessModeSufficient;
/**
- * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.
+ * A secondary contributor to the CreativeWork or Event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $mentions;
+ protected $contributor;
/**
- * A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).
- *
- *
- * @var \OpenActive\Models\SchemaOrg\ItemList|string
+ * @return Date|DateTime|null
*/
- protected $accessModeSufficient;
+ public function getExpires()
+ {
+ return $this->expires;
+ }
+
+ /**
+ * @param Date|DateTime|null $expires
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setExpires($expires)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $expires = self::checkTypes($expires, $types);
+
+ $this->expires = $expires;
+ }
/**
- * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).
- *
- *
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $hasPart;
+ public function getSdPublisher()
+ {
+ return $this->sdPublisher;
+ }
/**
- * The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In
- * the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content e.g. ScholarlyArticle, Book, TVSeries or TVEpisode may indicate their temporalCoverage in broader terms - textually or via well-known URL.
- * Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945".
- *
- * Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.
- *
- *
- * @var DateTime|string|null
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $sdPublisher
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $temporalCoverage;
+ public function setSdPublisher($sdPublisher)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
+ ];
- /**
- * A secondary contributor to the CreativeWork or Event.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
- */
- protected $contributor;
+ $sdPublisher = self::checkTypes($sdPublisher, $types);
- /**
- * An embedded video object.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
- */
- protected $video;
+ $this->sdPublisher = $sdPublisher;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\Rating
*/
- public function getTeaches()
+ public function getContentRating()
{
- return $this->teaches;
+ return $this->contentRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
+ * @param string|\OpenActive\Models\SchemaOrg\Rating $contentRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTeaches($teaches)
+ public function setContentRating($contentRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\Rating",
];
- $teaches = self::checkTypes($teaches, $types);
+ $contentRating = self::checkTypes($contentRating, $types);
- $this->teaches = $teaches;
+ $this->contentRating = $contentRating;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return Date|DateTime|null
*/
- public function getEducationalLevel()
+ public function getDateModified()
{
- return $this->educationalLevel;
+ return $this->dateModified;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @param Date|DateTime|null $dateModified
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalLevel($educationalLevel)
+ public function setDateModified($dateModified)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "Date",
+ "DateTime",
+ "null",
];
- $educationalLevel = self::checkTypes($educationalLevel, $types);
+ $dateModified = self::checkTypes($dateModified, $types);
- $this->educationalLevel = $educationalLevel;
+ $this->dateModified = $dateModified;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getAbstract()
+ public function getFunding()
{
- return $this->abstract;
+ return $this->funding;
}
/**
- * @param string $abstract
+ * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAbstract($abstract)
+ public function setFunding($funding)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $abstract = self::checkTypes($abstract, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->abstract = $abstract;
+ $this->funding = $funding;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return string|\OpenActive\Models\SchemaOrg\CorrectionComment
*/
- public function getCreativeWorkStatus()
+ public function getCorrection()
{
- return $this->creativeWorkStatus;
+ return $this->correction;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $creativeWorkStatus
+ * @param string|\OpenActive\Models\SchemaOrg\CorrectionComment $correction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreativeWorkStatus($creativeWorkStatus)
+ public function setCorrection($correction)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\CorrectionComment",
];
- $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types);
+ $correction = self::checkTypes($correction, $types);
- $this->creativeWorkStatus = $creativeWorkStatus;
+ $this->correction = $correction;
}
/**
- * @return Date|null
+ * @return string
*/
- public function getExpires()
+ public function getInteractivityType()
{
- return $this->expires;
+ return $this->interactivityType;
}
/**
- * @param Date|null $expires
+ * @param string $interactivityType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpires($expires)
+ public function setInteractivityType($interactivityType)
{
$types = [
- "Date",
- "null",
+ "string",
];
- $expires = self::checkTypes($expires, $types);
+ $interactivityType = self::checkTypes($interactivityType, $types);
- $this->expires = $expires;
+ $this->interactivityType = $interactivityType;
}
/**
- * @return DateTime|null
+ * @return string
*/
- public function getContentReferenceTime()
+ public function getEditEIDR()
{
- return $this->contentReferenceTime;
+ return $this->editEIDR;
}
/**
- * @param DateTime|null $contentReferenceTime
+ * @param string $editEIDR
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentReferenceTime($contentReferenceTime)
+ public function setEditEIDR($editEIDR)
{
$types = [
- "DateTime",
- "null",
+ "string",
];
- $contentReferenceTime = self::checkTypes($contentReferenceTime, $types);
+ $editEIDR = self::checkTypes($editEIDR, $types);
- $this->contentReferenceTime = $contentReferenceTime;
+ $this->editEIDR = $editEIDR;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Product
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getMaterial()
+ public function getIsPartOf()
{
- return $this->material;
+ return $this->isPartOf;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Product $material
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $isPartOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaterial($material)
+ public function setIsPartOf($isPartOf)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $material = self::checkTypes($material, $types);
+ $isPartOf = self::checkTypes($isPartOf, $types);
- $this->material = $material;
+ $this->isPartOf = $isPartOf;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return string
*/
- public function getReview()
+ public function getAbstract()
{
- return $this->review;
+ return $this->abstract;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param string $abstract
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setAbstract($abstract)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $review = self::checkTypes($review, $types);
+ $abstract = self::checkTypes($abstract, $types);
- $this->review = $review;
+ $this->abstract = $abstract;
}
/**
* @return string
*/
- public function getFileFormat()
+ public function getAccessMode()
{
- return $this->fileFormat;
+ return $this->accessMode;
}
/**
- * @param string $fileFormat
+ * @param string $accessMode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFileFormat($fileFormat)
+ public function setAccessMode($accessMode)
{
$types = [
"string",
];
- $fileFormat = self::checkTypes($fileFormat, $types);
+ $accessMode = self::checkTypes($accessMode, $types);
- $this->fileFormat = $fileFormat;
+ $this->accessMode = $accessMode;
}
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getText()
+ public function getTimeRequired()
{
- return $this->text;
+ return $this->timeRequired;
}
/**
- * @param string $text
+ * @param DateInterval|string|null $timeRequired
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setText($text)
+ public function setTimeRequired($timeRequired)
{
$types = [
+ "DateInterval",
"string",
+ "null",
];
- $text = self::checkTypes($text, $types);
+ $timeRequired = self::checkTypes($timeRequired, $types);
- $this->text = $text;
+ $this->timeRequired = $timeRequired;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getTranslator()
+ public function getAbout()
{
- return $this->translator;
+ return $this->about;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $about
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranslator($translator)
+ public function setAbout($about)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $translator = self::checkTypes($translator, $types);
+ $about = self::checkTypes($about, $types);
- $this->translator = $translator;
+ $this->about = $about;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getAward()
+ public function getContentLocation()
{
- return $this->award;
+ return $this->contentLocation;
}
/**
- * @param string $award
+ * @param \OpenActive\Models\SchemaOrg\Place|string $contentLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAward($award)
+ public function setContentLocation($contentLocation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $award = self::checkTypes($award, $types);
+ $contentLocation = self::checkTypes($contentLocation, $types);
- $this->award = $award;
+ $this->contentLocation = $contentLocation;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAssesses()
+ public function getAuthor()
{
- return $this->assesses;
+ return $this->author;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $author
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssesses($assesses)
+ public function setAuthor($author)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $assesses = self::checkTypes($assesses, $types);
+ $author = self::checkTypes($author, $types);
- $this->assesses = $assesses;
+ $this->author = $author;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getCopyrightNotice()
+ public function getMaterialExtent()
{
- return $this->copyrightNotice;
+ return $this->materialExtent;
}
/**
- * @param string $copyrightNotice
+ * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $materialExtent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCopyrightNotice($copyrightNotice)
+ public function setMaterialExtent($materialExtent)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $copyrightNotice = self::checkTypes($copyrightNotice, $types);
+ $materialExtent = self::checkTypes($materialExtent, $types);
- $this->copyrightNotice = $copyrightNotice;
+ $this->materialExtent = $materialExtent;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getSchemaVersion()
+ public function getLearningResourceType()
{
- return $this->schemaVersion;
+ return $this->learningResourceType;
}
/**
- * @param string $schemaVersion
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSchemaVersion($schemaVersion)
+ public function setLearningResourceType($learningResourceType)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $schemaVersion = self::checkTypes($schemaVersion, $types);
+ $learningResourceType = self::checkTypes($learningResourceType, $types);
- $this->schemaVersion = $schemaVersion;
+ $this->learningResourceType = $learningResourceType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return string
*/
- public function getCountryOfOrigin()
+ public function getDiscussionUrl()
{
- return $this->countryOfOrigin;
+ return $this->discussionUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
+ * @param string $discussionUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCountryOfOrigin($countryOfOrigin)
+ public function setDiscussionUrl($discussionUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
+ $discussionUrl = self::checkTypes($discussionUrl, $types);
- $this->countryOfOrigin = $countryOfOrigin;
+ $this->discussionUrl = $discussionUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getPattern()
+ public function getAssesses()
{
- return $this->pattern;
+ return $this->assesses;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPattern($pattern)
+ public function setAssesses($assesses)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $pattern = self::checkTypes($pattern, $types);
+ $assesses = self::checkTypes($assesses, $types);
- $this->pattern = $pattern;
+ $this->assesses = $assesses;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getAccountablePerson()
+ public function getSpatial()
{
- return $this->accountablePerson;
+ return $this->spatial;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $accountablePerson
+ * @param \OpenActive\Models\SchemaOrg\Place|string $spatial
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccountablePerson($accountablePerson)
+ public function setSpatial($spatial)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $accountablePerson = self::checkTypes($accountablePerson, $types);
+ $spatial = self::checkTypes($spatial, $types);
- $this->accountablePerson = $accountablePerson;
+ $this->spatial = $spatial;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return string
*/
- public function getFunding()
+ public function getText()
{
- return $this->funding;
+ return $this->text;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @param string $text
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunding($funding)
+ public function setText($text)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $text = self::checkTypes($text, $types);
- $this->funding = $funding;
+ $this->text = $text;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getEducationalUse()
+ public function getEditor()
{
- return $this->educationalUse;
+ return $this->editor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse
+ * @param \OpenActive\Models\SchemaOrg\Person|string $editor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalUse($educationalUse)
+ public function setEditor($editor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $educationalUse = self::checkTypes($educationalUse, $types);
+ $editor = self::checkTypes($editor, $types);
- $this->educationalUse = $educationalUse;
+ $this->editor = $editor;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getGenre()
+ public function getEducationalUse()
{
- return $this->genre;
+ return $this->educationalUse;
}
/**
- * @param string $genre
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGenre($genre)
+ public function setEducationalUse($educationalUse)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $genre = self::checkTypes($genre, $types);
+ $educationalUse = self::checkTypes($educationalUse, $types);
- $this->genre = $genre;
+ $this->educationalUse = $educationalUse;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getKeywords()
+ public function getAcquireLicensePage()
{
- return $this->keywords;
+ return $this->acquireLicensePage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $acquireLicensePage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setKeywords($keywords)
+ public function setAcquireLicensePage($acquireLicensePage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $keywords = self::checkTypes($keywords, $types);
+ $acquireLicensePage = self::checkTypes($acquireLicensePage, $types);
- $this->keywords = $keywords;
+ $this->acquireLicensePage = $acquireLicensePage;
}
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getPosition()
+ public function getCitation()
{
- return $this->position;
+ return $this->citation;
}
/**
- * @param string|int|null $position
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $citation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPosition($position)
+ public function setCitation($citation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "int",
- "null",
];
- $position = self::checkTypes($position, $types);
+ $citation = self::checkTypes($citation, $types);
- $this->position = $position;
+ $this->citation = $citation;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
*/
- public function getAccessibilityHazard()
+ public function getInteractionStatistic()
{
- return $this->accessibilityHazard;
+ return $this->interactionStatistic;
}
/**
- * @param string $accessibilityHazard
+ * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilityHazard($accessibilityHazard)
+ public function setInteractionStatistic($interactionStatistic)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\InteractionCounter",
"string",
];
- $accessibilityHazard = self::checkTypes($accessibilityHazard, $types);
+ $interactionStatistic = self::checkTypes($interactionStatistic, $types);
- $this->accessibilityHazard = $accessibilityHazard;
+ $this->interactionStatistic = $interactionStatistic;
}
/**
- * @return string
+ * @return DateTime|null
*/
- public function getAlternativeHeadline()
+ public function getContentReferenceTime()
{
- return $this->alternativeHeadline;
+ return $this->contentReferenceTime;
}
/**
- * @param string $alternativeHeadline
+ * @param DateTime|null $contentReferenceTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlternativeHeadline($alternativeHeadline)
+ public function setContentReferenceTime($contentReferenceTime)
{
$types = [
- "string",
+ "DateTime",
+ "null",
];
- $alternativeHeadline = self::checkTypes($alternativeHeadline, $types);
+ $contentReferenceTime = self::checkTypes($contentReferenceTime, $types);
- $this->alternativeHeadline = $alternativeHeadline;
+ $this->contentReferenceTime = $contentReferenceTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return Date|DateTime|null
*/
- public function getAudience()
+ public function getDateCreated()
{
- return $this->audience;
+ return $this->dateCreated;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @param Date|DateTime|null $dateCreated
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudience($audience)
+ public function setDateCreated($dateCreated)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $audience = self::checkTypes($audience, $types);
+ $dateCreated = self::checkTypes($dateCreated, $types);
- $this->audience = $audience;
+ $this->dateCreated = $dateCreated;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getOffers()
+ public function getWorkTranslation()
{
- return $this->offers;
+ return $this->workTranslation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workTranslation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setWorkTranslation($workTranslation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $offers = self::checkTypes($offers, $types);
+ $workTranslation = self::checkTypes($workTranslation, $types);
- $this->offers = $offers;
+ $this->workTranslation = $workTranslation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return bool|null
*/
- public function getLocationCreated()
+ public function getIsFamilyFriendly()
{
- return $this->locationCreated;
+ return $this->isFamilyFriendly;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $locationCreated
+ * @param bool|null $isFamilyFriendly
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLocationCreated($locationCreated)
+ public function setIsFamilyFriendly($isFamilyFriendly)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
+ "bool",
+ "null",
];
- $locationCreated = self::checkTypes($locationCreated, $types);
+ $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
- $this->locationCreated = $locationCreated;
+ $this->isFamilyFriendly = $isFamilyFriendly;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getAssociatedMedia()
+ public function getOffers()
{
- return $this->associatedMedia;
+ return $this->offers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia
+ * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedMedia($associatedMedia)
+ public function setOffers($offers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Demand",
"string",
];
- $associatedMedia = self::checkTypes($associatedMedia, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->associatedMedia = $associatedMedia;
+ $this->offers = $offers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getMaterialExtent()
+ public function getAlternativeHeadline()
{
- return $this->materialExtent;
+ return $this->alternativeHeadline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $materialExtent
+ * @param string $alternativeHeadline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaterialExtent($materialExtent)
+ public function setAlternativeHeadline($alternativeHeadline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $materialExtent = self::checkTypes($materialExtent, $types);
+ $alternativeHeadline = self::checkTypes($alternativeHeadline, $types);
- $this->materialExtent = $materialExtent;
+ $this->alternativeHeadline = $alternativeHeadline;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return string
*/
- public function getMainEntity()
+ public function getGenre()
{
- return $this->mainEntity;
+ return $this->genre;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $mainEntity
+ * @param string $genre
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMainEntity($mainEntity)
+ public function setGenre($genre)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $mainEntity = self::checkTypes($mainEntity, $types);
+ $genre = self::checkTypes($genre, $types);
- $this->mainEntity = $mainEntity;
+ $this->genre = $genre;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getCopyrightHolder()
+ public function getThumbnail()
{
- return $this->copyrightHolder;
+ return $this->thumbnail;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $copyrightHolder
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCopyrightHolder($copyrightHolder)
+ public function setThumbnail($thumbnail)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $copyrightHolder = self::checkTypes($copyrightHolder, $types);
+ $thumbnail = self::checkTypes($thumbnail, $types);
- $this->copyrightHolder = $copyrightHolder;
+ $this->thumbnail = $thumbnail;
}
/**
* @return string
*/
- public function getAwards()
+ public function getThumbnailUrl()
{
- return $this->awards;
+ return $this->thumbnailUrl;
}
/**
- * @param string $awards
+ * @param string $thumbnailUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAwards($awards)
+ public function setThumbnailUrl($thumbnailUrl)
{
$types = [
"string",
];
- $awards = self::checkTypes($awards, $types);
+ $thumbnailUrl = self::checkTypes($thumbnailUrl, $types);
- $this->awards = $awards;
+ $this->thumbnailUrl = $thumbnailUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getContentLocation()
+ public function getFunder()
{
- return $this->contentLocation;
+ return $this->funder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $contentLocation
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentLocation($contentLocation)
+ public function setFunder($funder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $contentLocation = self::checkTypes($contentLocation, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->contentLocation = $contentLocation;
+ $this->funder = $funder;
}
/**
@@ -1932,1938 +2005,1934 @@ public function setSdDatePublished($sdDatePublished)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getProducer()
+ public function getKeywords()
{
- return $this->producer;
+ return $this->keywords;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $producer
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProducer($producer)
+ public function setKeywords($keywords)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $producer = self::checkTypes($producer, $types);
+ $keywords = self::checkTypes($keywords, $types);
- $this->producer = $producer;
+ $this->keywords = $keywords;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string
*/
- public function getSpatial()
+ public function getAccessibilityControl()
{
- return $this->spatial;
+ return $this->accessibilityControl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $spatial
+ * @param string $accessibilityControl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSpatial($spatial)
+ public function setAccessibilityControl($accessibilityControl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $spatial = self::checkTypes($spatial, $types);
+ $accessibilityControl = self::checkTypes($accessibilityControl, $types);
- $this->spatial = $spatial;
+ $this->accessibilityControl = $accessibilityControl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getPublisher()
+ public function getEncodings()
{
- return $this->publisher;
+ return $this->encodings;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $publisher
+ * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encodings
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublisher($publisher)
+ public function setEncodings($encodings)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $publisher = self::checkTypes($publisher, $types);
+ $encodings = self::checkTypes($encodings, $types);
- $this->publisher = $publisher;
+ $this->encodings = $encodings;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getSourceOrganization()
+ public function getSize()
{
- return $this->sourceOrganization;
+ return $this->size;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $sourceOrganization
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\QuantitativeValue $size
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSourceOrganization($sourceOrganization)
+ public function setSize($size)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\SizeSpecification",
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $sourceOrganization = self::checkTypes($sourceOrganization, $types);
+ $size = self::checkTypes($size, $types);
- $this->sourceOrganization = $sourceOrganization;
+ $this->size = $size;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- public function getCharacter()
+ public function getReleasedEvent()
{
- return $this->character;
+ return $this->releasedEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $character
+ * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $releasedEvent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCharacter($character)
+ public function setReleasedEvent($releasedEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PublicationEvent",
"string",
];
- $character = self::checkTypes($character, $types);
+ $releasedEvent = self::checkTypes($releasedEvent, $types);
- $this->character = $character;
+ $this->releasedEvent = $releasedEvent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getFunder()
+ public function getLicense()
{
- return $this->funder;
+ return $this->license;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $license
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunder($funder)
+ public function setLicense($license)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $funder = self::checkTypes($funder, $types);
+ $license = self::checkTypes($license, $types);
- $this->funder = $funder;
+ $this->license = $license;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getExampleOfWork()
+ public function getCreator()
{
- return $this->exampleOfWork;
+ return $this->creator;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $exampleOfWork
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $creator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExampleOfWork($exampleOfWork)
+ public function setCreator($creator)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $exampleOfWork = self::checkTypes($exampleOfWork, $types);
+ $creator = self::checkTypes($creator, $types);
- $this->exampleOfWork = $exampleOfWork;
+ $this->creator = $creator;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getUsageInfo()
+ public function getProducer()
{
- return $this->usageInfo;
+ return $this->producer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $usageInfo
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $producer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUsageInfo($usageInfo)
+ public function setProducer($producer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $usageInfo = self::checkTypes($usageInfo, $types);
+ $producer = self::checkTypes($producer, $types);
- $this->usageInfo = $usageInfo;
+ $this->producer = $producer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getProvider()
+ public function getLocationCreated()
{
- return $this->provider;
+ return $this->locationCreated;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param \OpenActive\Models\SchemaOrg\Place|string $locationCreated
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setLocationCreated($locationCreated)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $locationCreated = self::checkTypes($locationCreated, $types);
- $this->provider = $provider;
+ $this->locationCreated = $locationCreated;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getSdPublisher()
+ public function getFileFormat()
{
- return $this->sdPublisher;
+ return $this->fileFormat;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sdPublisher
+ * @param string $fileFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSdPublisher($sdPublisher)
+ public function setFileFormat($fileFormat)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $sdPublisher = self::checkTypes($sdPublisher, $types);
+ $fileFormat = self::checkTypes($fileFormat, $types);
- $this->sdPublisher = $sdPublisher;
+ $this->fileFormat = $fileFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Comment|string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\AudioObject|string
*/
- public function getComment()
+ public function getAudio()
{
- return $this->comment;
+ return $this->audio;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Comment|string $comment
+ * @param \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\AudioObject|string $audio
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setComment($comment)
+ public function setAudio($audio)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Comment",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "\OpenActive\Models\SchemaOrg\Clip",
+ "\OpenActive\Models\SchemaOrg\AudioObject",
"string",
];
- $comment = self::checkTypes($comment, $types);
+ $audio = self::checkTypes($audio, $types);
- $this->comment = $comment;
+ $this->audio = $audio;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
*/
- public function getAccessibilityFeature()
+ public function getEducationalAlignment()
{
- return $this->accessibilityFeature;
+ return $this->educationalAlignment;
}
/**
- * @param string $accessibilityFeature
+ * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilityFeature($accessibilityFeature)
+ public function setEducationalAlignment($educationalAlignment)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
"string",
];
- $accessibilityFeature = self::checkTypes($accessibilityFeature, $types);
+ $educationalAlignment = self::checkTypes($educationalAlignment, $types);
- $this->accessibilityFeature = $accessibilityFeature;
+ $this->educationalAlignment = $educationalAlignment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @return \OpenActive\Models\SchemaOrg\Comment|string
*/
- public function getPublication()
+ public function getComment()
{
- return $this->publication;
+ return $this->comment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $publication
+ * @param \OpenActive\Models\SchemaOrg\Comment|string $comment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublication($publication)
+ public function setComment($comment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PublicationEvent",
+ "\OpenActive\Models\SchemaOrg\Comment",
"string",
];
- $publication = self::checkTypes($publication, $types);
+ $comment = self::checkTypes($comment, $types);
- $this->publication = $publication;
+ $this->comment = $comment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getTranslationOfWork()
+ public function getAccessibilityFeature()
{
- return $this->translationOfWork;
+ return $this->accessibilityFeature;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $translationOfWork
+ * @param string $accessibilityFeature
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranslationOfWork($translationOfWork)
+ public function setAccessibilityFeature($accessibilityFeature)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $translationOfWork = self::checkTypes($translationOfWork, $types);
+ $accessibilityFeature = self::checkTypes($accessibilityFeature, $types);
- $this->translationOfWork = $translationOfWork;
+ $this->accessibilityFeature = $accessibilityFeature;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getInteractivityType()
+ public function getCharacter()
{
- return $this->interactivityType;
+ return $this->character;
}
/**
- * @param string $interactivityType
+ * @param \OpenActive\Models\SchemaOrg\Person|string $character
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractivityType($interactivityType)
+ public function setCharacter($character)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $interactivityType = self::checkTypes($interactivityType, $types);
+ $character = self::checkTypes($character, $types);
- $this->interactivityType = $interactivityType;
+ $this->character = $character;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Claim|string
*/
- public function getCommentCount()
+ public function getInterpretedAsClaim()
{
- return $this->commentCount;
+ return $this->interpretedAsClaim;
}
/**
- * @param int|null $commentCount
+ * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCommentCount($commentCount)
+ public function setInterpretedAsClaim($interpretedAsClaim)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Claim",
+ "string",
];
- $commentCount = self::checkTypes($commentCount, $types);
+ $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
- $this->commentCount = $commentCount;
+ $this->interpretedAsClaim = $interpretedAsClaim;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAccessMode()
+ public function getTranslator()
{
- return $this->accessMode;
+ return $this->translator;
}
/**
- * @param string $accessMode
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessMode($accessMode)
+ public function setTranslator($translator)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $accessMode = self::checkTypes($accessMode, $types);
+ $translator = self::checkTypes($translator, $types);
- $this->accessMode = $accessMode;
+ $this->translator = $translator;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getAggregateRating()
+ public function getPattern()
{
- return $this->aggregateRating;
+ return $this->pattern;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAggregateRating($aggregateRating)
+ public function setPattern($pattern)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $pattern = self::checkTypes($pattern, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->pattern = $pattern;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTimeRequired()
+ public function getPublisher()
{
- return $this->timeRequired;
+ return $this->publisher;
}
/**
- * @param DateInterval|string|null $timeRequired
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $publisher
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTimeRequired($timeRequired)
+ public function setPublisher($publisher)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "null",
];
- $timeRequired = self::checkTypes($timeRequired, $types);
+ $publisher = self::checkTypes($publisher, $types);
- $this->timeRequired = $timeRequired;
+ $this->publisher = $publisher;
}
/**
* @return string
*/
- public function getTypicalAgeRange()
+ public function getCopyrightNotice()
{
- return $this->typicalAgeRange;
+ return $this->copyrightNotice;
}
/**
- * @param string $typicalAgeRange
+ * @param string $copyrightNotice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypicalAgeRange($typicalAgeRange)
+ public function setCopyrightNotice($copyrightNotice)
{
$types = [
"string",
];
- $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
+ $copyrightNotice = self::checkTypes($copyrightNotice, $types);
- $this->typicalAgeRange = $typicalAgeRange;
+ $this->copyrightNotice = $copyrightNotice;
}
/**
- * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getInteractionStatistic()
+ public function getVideo()
{
- return $this->interactionStatistic;
+ return $this->video;
}
/**
- * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic
+ * @param \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string $video
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractionStatistic($interactionStatistic)
+ public function setVideo($video)
{
$types = [
- "\OpenActive\Models\SchemaOrg\InteractionCounter",
+ "\OpenActive\Models\SchemaOrg\Clip",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $interactionStatistic = self::checkTypes($interactionStatistic, $types);
+ $video = self::checkTypes($video, $types);
- $this->interactionStatistic = $interactionStatistic;
+ $this->video = $video;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getCopyrightYear()
+ public function getAccountablePerson()
{
- return $this->copyrightYear;
+ return $this->accountablePerson;
}
/**
- * @param Number|null $copyrightYear
+ * @param \OpenActive\Models\SchemaOrg\Person|string $accountablePerson
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCopyrightYear($copyrightYear)
+ public function setAccountablePerson($accountablePerson)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $copyrightYear = self::checkTypes($copyrightYear, $types);
+ $accountablePerson = self::checkTypes($accountablePerson, $types);
- $this->copyrightYear = $copyrightYear;
+ $this->accountablePerson = $accountablePerson;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product
+ * @return string
*/
- public function getIsBasedOn()
+ public function getAward()
{
- return $this->isBasedOn;
+ return $this->award;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product $isBasedOn
+ * @param string $award
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsBasedOn($isBasedOn)
+ public function setAward($award)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $isBasedOn = self::checkTypes($isBasedOn, $types);
+ $award = self::checkTypes($award, $types);
- $this->isBasedOn = $isBasedOn;
+ $this->award = $award;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getWorkExample()
+ public function getUsageInfo()
{
- return $this->workExample;
+ return $this->usageInfo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workExample
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $usageInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkExample($workExample)
+ public function setUsageInfo($usageInfo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $workExample = self::checkTypes($workExample, $types);
+ $usageInfo = self::checkTypes($usageInfo, $types);
- $this->workExample = $workExample;
+ $this->usageInfo = $usageInfo;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getPublishingPrinciples()
+ public function getReviews()
{
- return $this->publishingPrinciples;
+ return $this->reviews;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples
+ * @param \OpenActive\Models\SchemaOrg\Review|string $reviews
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublishingPrinciples($publishingPrinciples)
+ public function setReviews($reviews)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
+ $reviews = self::checkTypes($reviews, $types);
- $this->publishingPrinciples = $publishingPrinciples;
+ $this->reviews = $reviews;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getDiscussionUrl()
+ public function getCountryOfOrigin()
{
- return $this->discussionUrl;
+ return $this->countryOfOrigin;
}
/**
- * @param string $discussionUrl
+ * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiscussionUrl($discussionUrl)
+ public function setCountryOfOrigin($countryOfOrigin)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $discussionUrl = self::checkTypes($discussionUrl, $types);
+ $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
- $this->discussionUrl = $discussionUrl;
+ $this->countryOfOrigin = $countryOfOrigin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getReleasedEvent()
+ public function getMaintainer()
{
- return $this->releasedEvent;
+ return $this->maintainer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $releasedEvent
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $maintainer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReleasedEvent($releasedEvent)
+ public function setMaintainer($maintainer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PublicationEvent",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $releasedEvent = self::checkTypes($releasedEvent, $types);
+ $maintainer = self::checkTypes($maintainer, $types);
- $this->releasedEvent = $releasedEvent;
+ $this->maintainer = $maintainer;
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getDateCreated()
+ public function getHeadline()
{
- return $this->dateCreated;
+ return $this->headline;
}
/**
- * @param Date|DateTime|null $dateCreated
+ * @param string $headline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateCreated($dateCreated)
+ public function setHeadline($headline)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $dateCreated = self::checkTypes($dateCreated, $types);
+ $headline = self::checkTypes($headline, $types);
- $this->dateCreated = $dateCreated;
+ $this->headline = $headline;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getWorkTranslation()
+ public function getPublishingPrinciples()
{
- return $this->workTranslation;
+ return $this->publishingPrinciples;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workTranslation
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $publishingPrinciples
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkTranslation($workTranslation)
+ public function setPublishingPrinciples($publishingPrinciples)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $workTranslation = self::checkTypes($workTranslation, $types);
+ $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
- $this->workTranslation = $workTranslation;
+ $this->publishingPrinciples = $publishingPrinciples;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getEditor()
+ public function getTranslationOfWork()
{
- return $this->editor;
+ return $this->translationOfWork;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $editor
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $translationOfWork
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEditor($editor)
+ public function setTranslationOfWork($translationOfWork)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $editor = self::checkTypes($editor, $types);
+ $translationOfWork = self::checkTypes($translationOfWork, $types);
- $this->editor = $editor;
+ $this->translationOfWork = $translationOfWork;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- public function getCreditText()
+ public function getPublication()
{
- return $this->creditText;
+ return $this->publication;
}
/**
- * @param string $creditText
+ * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $publication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreditText($creditText)
+ public function setPublication($publication)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PublicationEvent",
"string",
];
- $creditText = self::checkTypes($creditText, $types);
+ $publication = self::checkTypes($publication, $types);
- $this->creditText = $creditText;
+ $this->publication = $publication;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getRecordedAt()
+ public function getAggregateRating()
{
- return $this->recordedAt;
+ return $this->aggregateRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $recordedAt
+ * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordedAt($recordedAt)
+ public function setAggregateRating($aggregateRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $recordedAt = self::checkTypes($recordedAt, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->recordedAt = $recordedAt;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return string
+ * @return string|int|null
*/
- public function getEditEIDR()
+ public function getPosition()
{
- return $this->editEIDR;
+ return $this->position;
}
/**
- * @param string $editEIDR
+ * @param string|int|null $position
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEditEIDR($editEIDR)
+ public function setPosition($position)
{
$types = [
"string",
+ "int",
+ "null",
];
- $editEIDR = self::checkTypes($editEIDR, $types);
+ $position = self::checkTypes($position, $types);
- $this->editEIDR = $editEIDR;
+ $this->position = $position;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string
*/
- public function getAuthor()
+ public function getDigitalSourceType()
{
- return $this->author;
+ return $this->digitalSourceType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $author
+ * @param \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string $digitalSourceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAuthor($author)
+ public function setDigitalSourceType($digitalSourceType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration",
"string",
];
- $author = self::checkTypes($author, $types);
+ $digitalSourceType = self::checkTypes($digitalSourceType, $types);
- $this->author = $author;
+ $this->digitalSourceType = $digitalSourceType;
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getDateModified()
+ public function getAccessibilitySummary()
{
- return $this->dateModified;
+ return $this->accessibilitySummary;
}
/**
- * @param Date|DateTime|null $dateModified
+ * @param string $accessibilitySummary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateModified($dateModified)
+ public function setAccessibilitySummary($accessibilitySummary)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $dateModified = self::checkTypes($dateModified, $types);
+ $accessibilitySummary = self::checkTypes($accessibilitySummary, $types);
- $this->dateModified = $dateModified;
+ $this->accessibilitySummary = $accessibilitySummary;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getSponsor()
+ public function getRecordedAt()
{
- return $this->sponsor;
+ return $this->recordedAt;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @param \OpenActive\Models\SchemaOrg\Event|string $recordedAt
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSponsor($sponsor)
+ public function setRecordedAt($recordedAt)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $recordedAt = self::checkTypes($recordedAt, $types);
- $this->sponsor = $sponsor;
+ $this->recordedAt = $recordedAt;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAccessibilitySummary()
+ public function getSourceOrganization()
{
- return $this->accessibilitySummary;
+ return $this->sourceOrganization;
}
/**
- * @param string $accessibilitySummary
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $sourceOrganization
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilitySummary($accessibilitySummary)
+ public function setSourceOrganization($sourceOrganization)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $accessibilitySummary = self::checkTypes($accessibilitySummary, $types);
+ $sourceOrganization = self::checkTypes($sourceOrganization, $types);
- $this->accessibilitySummary = $accessibilitySummary;
+ $this->sourceOrganization = $sourceOrganization;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getEncodingFormat()
+ public function getSdLicense()
{
- return $this->encodingFormat;
+ return $this->sdLicense;
}
/**
- * @param string $encodingFormat
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $sdLicense
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodingFormat($encodingFormat)
+ public function setSdLicense($sdLicense)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $encodingFormat = self::checkTypes($encodingFormat, $types);
+ $sdLicense = self::checkTypes($sdLicense, $types);
- $this->encodingFormat = $encodingFormat;
+ $this->sdLicense = $sdLicense;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getMaintainer()
+ public function getTypicalAgeRange()
{
- return $this->maintainer;
+ return $this->typicalAgeRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $maintainer
+ * @param string $typicalAgeRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaintainer($maintainer)
+ public function setTypicalAgeRange($typicalAgeRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $maintainer = self::checkTypes($maintainer, $types);
+ $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
- $this->maintainer = $maintainer;
+ $this->typicalAgeRange = $typicalAgeRange;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getEducationalAlignment()
+ public function getAssociatedMedia()
{
- return $this->educationalAlignment;
+ return $this->associatedMedia;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment
+ * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalAlignment($educationalAlignment)
+ public function setAssociatedMedia($associatedMedia)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AlignmentObject",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $educationalAlignment = self::checkTypes($educationalAlignment, $types);
+ $associatedMedia = self::checkTypes($associatedMedia, $types);
- $this->educationalAlignment = $educationalAlignment;
+ $this->associatedMedia = $associatedMedia;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return DateTime|string|null
*/
- public function getAcquireLicensePage()
+ public function getTemporal()
{
- return $this->acquireLicensePage;
+ return $this->temporal;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $acquireLicensePage
+ * @param DateTime|string|null $temporal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcquireLicensePage($acquireLicensePage)
+ public function setTemporal($temporal)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "DateTime",
"string",
+ "null",
];
- $acquireLicensePage = self::checkTypes($acquireLicensePage, $types);
+ $temporal = self::checkTypes($temporal, $types);
- $this->acquireLicensePage = $acquireLicensePage;
+ $this->temporal = $temporal;
}
/**
- * @return bool|null
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getIsAccessibleForFree()
+ public function getEducationalLevel()
{
- return $this->isAccessibleForFree;
+ return $this->educationalLevel;
}
/**
- * @param bool|null $isAccessibleForFree
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsAccessibleForFree($isAccessibleForFree)
+ public function setEducationalLevel($educationalLevel)
{
$types = [
- "bool",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
+ $educationalLevel = self::checkTypes($educationalLevel, $types);
- $this->isAccessibleForFree = $isAccessibleForFree;
+ $this->educationalLevel = $educationalLevel;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDatePublished()
+ public function getExampleOfWork()
{
- return $this->datePublished;
+ return $this->exampleOfWork;
}
/**
- * @param Date|DateTime|null $datePublished
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $exampleOfWork
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDatePublished($datePublished)
+ public function setExampleOfWork($exampleOfWork)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $datePublished = self::checkTypes($datePublished, $types);
+ $exampleOfWork = self::checkTypes($exampleOfWork, $types);
- $this->datePublished = $datePublished;
+ $this->exampleOfWork = $exampleOfWork;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getSpatialCoverage()
+ public function getMentions()
{
- return $this->spatialCoverage;
+ return $this->mentions;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $spatialCoverage
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $mentions
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSpatialCoverage($spatialCoverage)
+ public function setMentions($mentions)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $spatialCoverage = self::checkTypes($spatialCoverage, $types);
+ $mentions = self::checkTypes($mentions, $types);
- $this->spatialCoverage = $spatialCoverage;
+ $this->mentions = $mentions;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getSdLicense()
+ public function getConditionsOfAccess()
{
- return $this->sdLicense;
+ return $this->conditionsOfAccess;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $sdLicense
+ * @param string $conditionsOfAccess
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSdLicense($sdLicense)
+ public function setConditionsOfAccess($conditionsOfAccess)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $sdLicense = self::checkTypes($sdLicense, $types);
+ $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types);
- $this->sdLicense = $sdLicense;
+ $this->conditionsOfAccess = $conditionsOfAccess;
}
/**
* @return string
*/
- public function getConditionsOfAccess()
+ public function getEncodingFormat()
{
- return $this->conditionsOfAccess;
+ return $this->encodingFormat;
}
/**
- * @param string $conditionsOfAccess
+ * @param string $encodingFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setConditionsOfAccess($conditionsOfAccess)
+ public function setEncodingFormat($encodingFormat)
{
$types = [
"string",
];
- $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types);
+ $encodingFormat = self::checkTypes($encodingFormat, $types);
- $this->conditionsOfAccess = $conditionsOfAccess;
+ $this->encodingFormat = $encodingFormat;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CorrectionComment
+ * @return string|\OpenActive\Models\SchemaOrg\Product
*/
- public function getCorrection()
+ public function getMaterial()
{
- return $this->correction;
+ return $this->material;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CorrectionComment $correction
+ * @param string|\OpenActive\Models\SchemaOrg\Product $material
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCorrection($correction)
+ public function setMaterial($material)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\CorrectionComment",
+ "\OpenActive\Models\SchemaOrg\Product",
];
- $correction = self::checkTypes($correction, $types);
+ $material = self::checkTypes($material, $types);
- $this->correction = $correction;
+ $this->material = $material;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Rating
+ * @return string|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getContentRating()
+ public function getIsBasedOnUrl()
{
- return $this->contentRating;
+ return $this->isBasedOnUrl;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Rating $contentRating
+ * @param string|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork $isBasedOnUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentRating($contentRating)
+ public function setIsBasedOnUrl($isBasedOnUrl)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Rating",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $contentRating = self::checkTypes($contentRating, $types);
+ $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types);
- $this->contentRating = $contentRating;
+ $this->isBasedOnUrl = $isBasedOnUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getSize()
+ public function getPublisherImprint()
{
- return $this->size;
+ return $this->publisherImprint;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification $size
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $publisherImprint
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSize($size)
+ public function setPublisherImprint($publisherImprint)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "\OpenActive\Models\SchemaOrg\SizeSpecification",
];
- $size = self::checkTypes($size, $types);
+ $publisherImprint = self::checkTypes($publisherImprint, $types);
- $this->size = $size;
+ $this->publisherImprint = $publisherImprint;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return bool|null
*/
- public function getIsPartOf()
+ public function getIsAccessibleForFree()
{
- return $this->isPartOf;
+ return $this->isAccessibleForFree;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $isPartOf
+ * @param bool|null $isAccessibleForFree
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsPartOf($isPartOf)
+ public function setIsAccessibleForFree($isAccessibleForFree)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "bool",
+ "null",
];
- $isPartOf = self::checkTypes($isPartOf, $types);
+ $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
- $this->isPartOf = $isPartOf;
+ $this->isAccessibleForFree = $isAccessibleForFree;
}
/**
- * @return DateTime|string|null
+ * @return string
*/
- public function getTemporal()
+ public function getAwards()
{
- return $this->temporal;
+ return $this->awards;
}
/**
- * @param DateTime|string|null $temporal
+ * @param string $awards
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTemporal($temporal)
+ public function setAwards($awards)
{
$types = [
- "DateTime",
"string",
- "null",
];
- $temporal = self::checkTypes($temporal, $types);
+ $awards = self::checkTypes($awards, $types);
- $this->temporal = $temporal;
+ $this->awards = $awards;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getThumbnailUrl()
+ public function getIsBasedOn()
{
- return $this->thumbnailUrl;
+ return $this->isBasedOn;
}
/**
- * @param string $thumbnailUrl
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string $isBasedOn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setThumbnailUrl($thumbnailUrl)
+ public function setIsBasedOn($isBasedOn)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $thumbnailUrl = self::checkTypes($thumbnailUrl, $types);
+ $isBasedOn = self::checkTypes($isBasedOn, $types);
- $this->thumbnailUrl = $thumbnailUrl;
+ $this->isBasedOn = $isBasedOn;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return string
*/
- public function getInLanguage()
+ public function getAccessibilityHazard()
{
- return $this->inLanguage;
+ return $this->accessibilityHazard;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param string $accessibilityHazard
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInLanguage($inLanguage)
+ public function setAccessibilityHazard($accessibilityHazard)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $accessibilityHazard = self::checkTypes($accessibilityHazard, $types);
- $this->inLanguage = $inLanguage;
+ $this->accessibilityHazard = $accessibilityHazard;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return Number|null
*/
- public function getLicense()
+ public function getCopyrightYear()
{
- return $this->license;
+ return $this->copyrightYear;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $license
+ * @param Number|null $copyrightYear
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLicense($license)
+ public function setCopyrightYear($copyrightYear)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "Number",
+ "null",
];
- $license = self::checkTypes($license, $types);
+ $copyrightYear = self::checkTypes($copyrightYear, $types);
- $this->license = $license;
+ $this->copyrightYear = $copyrightYear;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getCreator()
+ public function getEncoding()
{
- return $this->creator;
+ return $this->encoding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creator
+ * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encoding
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreator($creator)
+ public function setEncoding($encoding)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $creator = self::checkTypes($creator, $types);
+ $encoding = self::checkTypes($encoding, $types);
- $this->creator = $creator;
+ $this->encoding = $encoding;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getReviews()
+ public function getSpatialCoverage()
{
- return $this->reviews;
+ return $this->spatialCoverage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $reviews
+ * @param \OpenActive\Models\SchemaOrg\Place|string $spatialCoverage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReviews($reviews)
+ public function setSpatialCoverage($spatialCoverage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $reviews = self::checkTypes($reviews, $types);
+ $spatialCoverage = self::checkTypes($spatialCoverage, $types);
- $this->reviews = $reviews;
+ $this->spatialCoverage = $spatialCoverage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAbout()
+ public function getSponsor()
{
- return $this->about;
+ return $this->sponsor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $about
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAbout($about)
+ public function setSponsor($sponsor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $about = self::checkTypes($about, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->about = $about;
+ $this->sponsor = $sponsor;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getIsFamilyFriendly()
+ public function getWorkExample()
{
- return $this->isFamilyFriendly;
+ return $this->workExample;
}
/**
- * @param bool|null $isFamilyFriendly
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workExample
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsFamilyFriendly($isFamilyFriendly)
+ public function setWorkExample($workExample)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
+ $workExample = self::checkTypes($workExample, $types);
- $this->isFamilyFriendly = $isFamilyFriendly;
+ $this->workExample = $workExample;
}
/**
* @return string
*/
- public function getHeadline()
+ public function getCreditText()
{
- return $this->headline;
+ return $this->creditText;
}
/**
- * @param string $headline
+ * @param string $creditText
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHeadline($headline)
+ public function setCreditText($creditText)
{
$types = [
"string",
];
- $headline = self::checkTypes($headline, $types);
+ $creditText = self::checkTypes($creditText, $types);
- $this->headline = $headline;
+ $this->creditText = $creditText;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getAccessibilityAPI()
+ public function getDatePublished()
{
- return $this->accessibilityAPI;
+ return $this->datePublished;
}
/**
- * @param string $accessibilityAPI
+ * @param Date|DateTime|null $datePublished
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilityAPI($accessibilityAPI)
+ public function setDatePublished($datePublished)
{
$types = [
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $accessibilityAPI = self::checkTypes($accessibilityAPI, $types);
+ $datePublished = self::checkTypes($datePublished, $types);
- $this->accessibilityAPI = $accessibilityAPI;
+ $this->datePublished = $datePublished;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getPublisherImprint()
+ public function getAccessibilityAPI()
{
- return $this->publisherImprint;
+ return $this->accessibilityAPI;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $publisherImprint
+ * @param string $accessibilityAPI
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublisherImprint($publisherImprint)
+ public function setAccessibilityAPI($accessibilityAPI)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $publisherImprint = self::checkTypes($publisherImprint, $types);
+ $accessibilityAPI = self::checkTypes($accessibilityAPI, $types);
- $this->publisherImprint = $publisherImprint;
+ $this->accessibilityAPI = $accessibilityAPI;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getIsBasedOnUrl()
+ public function getMainEntity()
{
- return $this->isBasedOnUrl;
+ return $this->mainEntity;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product $isBasedOnUrl
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $mainEntity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsBasedOnUrl($isBasedOnUrl)
+ public function setMainEntity($mainEntity)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types);
+ $mainEntity = self::checkTypes($mainEntity, $types);
- $this->isBasedOnUrl = $isBasedOnUrl;
+ $this->mainEntity = $mainEntity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getEncodings()
+ public function getTeaches()
{
- return $this->encodings;
+ return $this->teaches;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encodings
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodings($encodings)
+ public function setTeaches($teaches)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $encodings = self::checkTypes($encodings, $types);
+ $teaches = self::checkTypes($teaches, $types);
- $this->encodings = $encodings;
+ $this->teaches = $teaches;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Claim|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getInterpretedAsClaim()
+ public function getProvider()
{
- return $this->interpretedAsClaim;
+ return $this->provider;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInterpretedAsClaim($interpretedAsClaim)
+ public function setProvider($provider)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Claim",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->interpretedAsClaim = $interpretedAsClaim;
+ $this->provider = $provider;
}
/**
- * @return string
+ * @return DateTime|string|null
*/
- public function getAccessibilityControl()
+ public function getTemporalCoverage()
{
- return $this->accessibilityControl;
+ return $this->temporalCoverage;
}
/**
- * @param string $accessibilityControl
+ * @param DateTime|string|null $temporalCoverage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilityControl($accessibilityControl)
+ public function setTemporalCoverage($temporalCoverage)
{
$types = [
+ "DateTime",
"string",
+ "null",
];
- $accessibilityControl = self::checkTypes($accessibilityControl, $types);
+ $temporalCoverage = self::checkTypes($temporalCoverage, $types);
- $this->accessibilityControl = $accessibilityControl;
+ $this->temporalCoverage = $temporalCoverage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getCitation()
+ public function getSchemaVersion()
{
- return $this->citation;
+ return $this->schemaVersion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $citation
+ * @param string $schemaVersion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCitation($citation)
+ public function setSchemaVersion($schemaVersion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $citation = self::checkTypes($citation, $types);
+ $schemaVersion = self::checkTypes($schemaVersion, $types);
- $this->citation = $citation;
+ $this->schemaVersion = $schemaVersion;
}
/**
- * @return string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getVersion()
+ public function getCopyrightHolder()
{
- return $this->version;
+ return $this->copyrightHolder;
}
/**
- * @param string|Number|null $version
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $copyrightHolder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVersion($version)
+ public function setCopyrightHolder($copyrightHolder)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "Number",
- "null",
];
- $version = self::checkTypes($version, $types);
+ $copyrightHolder = self::checkTypes($copyrightHolder, $types);
- $this->version = $version;
+ $this->copyrightHolder = $copyrightHolder;
}
/**
- * @return \OpenActive\Models\SchemaOrg\WebPage|string
+ * @return int|null
*/
- public function getArchivedAt()
+ public function getCommentCount()
{
- return $this->archivedAt;
+ return $this->commentCount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WebPage|string $archivedAt
+ * @param int|null $commentCount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArchivedAt($archivedAt)
+ public function setCommentCount($commentCount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WebPage",
- "string",
+ "int",
+ "null",
];
- $archivedAt = self::checkTypes($archivedAt, $types);
+ $commentCount = self::checkTypes($commentCount, $types);
- $this->archivedAt = $archivedAt;
+ $this->commentCount = $commentCount;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|Number|null
*/
- public function getLearningResourceType()
+ public function getVersion()
{
- return $this->learningResourceType;
+ return $this->version;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType
+ * @param string|Number|null $version
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLearningResourceType($learningResourceType)
+ public function setVersion($version)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "Number",
+ "null",
];
- $learningResourceType = self::checkTypes($learningResourceType, $types);
+ $version = self::checkTypes($version, $types);
- $this->learningResourceType = $learningResourceType;
+ $this->version = $version;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getEncoding()
+ public function getReview()
{
- return $this->encoding;
+ return $this->review;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encoding
+ * @param \OpenActive\Models\SchemaOrg\Review|string $review
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncoding($encoding)
+ public function setReview($review)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $encoding = self::checkTypes($encoding, $types);
+ $review = self::checkTypes($review, $types);
- $this->encoding = $encoding;
+ $this->review = $review;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getAudio()
+ public function getHasPart()
{
- return $this->audio;
+ return $this->hasPart;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string $audio
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $hasPart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudio($audio)
+ public function setHasPart($hasPart)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AudioObject",
- "\OpenActive\Models\SchemaOrg\MusicRecording",
- "\OpenActive\Models\SchemaOrg\Clip",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $audio = self::checkTypes($audio, $types);
+ $hasPart = self::checkTypes($hasPart, $types);
- $this->audio = $audio;
+ $this->hasPart = $hasPart;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getMentions()
+ public function getInLanguage()
{
- return $this->mentions;
+ return $this->inLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $mentions
+ * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMentions($mentions)
+ public function setInLanguage($inLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $mentions = self::checkTypes($mentions, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->mentions = $mentions;
+ $this->inLanguage = $inLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|string
+ * @return \OpenActive\Models\SchemaOrg\WebPage|string
*/
- public function getAccessModeSufficient()
+ public function getArchivedAt()
{
- return $this->accessModeSufficient;
+ return $this->archivedAt;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|string $accessModeSufficient
+ * @param \OpenActive\Models\SchemaOrg\WebPage|string $archivedAt
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessModeSufficient($accessModeSufficient)
+ public function setArchivedAt($archivedAt)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ItemList",
+ "\OpenActive\Models\SchemaOrg\WebPage",
"string",
];
- $accessModeSufficient = self::checkTypes($accessModeSufficient, $types);
+ $archivedAt = self::checkTypes($archivedAt, $types);
- $this->accessModeSufficient = $accessModeSufficient;
+ $this->archivedAt = $archivedAt;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getHasPart()
+ public function getAudience()
{
- return $this->hasPart;
+ return $this->audience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $hasPart
+ * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasPart($hasPart)
+ public function setAudience($audience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $hasPart = self::checkTypes($hasPart, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->hasPart = $hasPart;
+ $this->audience = $audience;
}
/**
- * @return DateTime|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getTemporalCoverage()
+ public function getCreativeWorkStatus()
{
- return $this->temporalCoverage;
+ return $this->creativeWorkStatus;
}
/**
- * @param DateTime|string|null $temporalCoverage
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $creativeWorkStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTemporalCoverage($temporalCoverage)
+ public function setCreativeWorkStatus($creativeWorkStatus)
{
$types = [
- "DateTime",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $temporalCoverage = self::checkTypes($temporalCoverage, $types);
+ $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types);
- $this->temporalCoverage = $temporalCoverage;
+ $this->creativeWorkStatus = $creativeWorkStatus;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\ItemList|string
*/
- public function getContributor()
+ public function getAccessModeSufficient()
{
- return $this->contributor;
+ return $this->accessModeSufficient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
+ * @param \OpenActive\Models\SchemaOrg\ItemList|string $accessModeSufficient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContributor($contributor)
+ public function setAccessModeSufficient($accessModeSufficient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\ItemList",
"string",
];
- $contributor = self::checkTypes($contributor, $types);
+ $accessModeSufficient = self::checkTypes($accessModeSufficient, $types);
- $this->contributor = $contributor;
+ $this->accessModeSufficient = $accessModeSufficient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getVideo()
+ public function getContributor()
{
- return $this->video;
+ return $this->contributor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string $video
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $contributor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVideo($video)
+ public function setContributor($contributor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Clip",
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $video = self::checkTypes($video, $types);
+ $contributor = self::checkTypes($contributor, $types);
- $this->video = $video;
+ $this->contributor = $contributor;
}
}
diff --git a/src/Models/SchemaOrg/CreativeWorkSeason.php b/src/Models/SchemaOrg/CreativeWorkSeason.php
index e094eb1e..66451c3f 100644
--- a/src/Models/SchemaOrg/CreativeWorkSeason.php
+++ b/src/Models/SchemaOrg/CreativeWorkSeason.php
@@ -17,40 +17,40 @@ public static function getType()
public static function fieldList() {
$fields = [
- "startDate" => "startDate",
- "director" => "director",
- "actor" => "actor",
+ "numberOfEpisodes" => "numberOfEpisodes",
"trailer" => "trailer",
+ "actor" => "actor",
+ "startDate" => "startDate",
"endDate" => "endDate",
- "episodes" => "episodes",
- "numberOfEpisodes" => "numberOfEpisodes",
- "partOfSeries" => "partOfSeries",
"productionCompany" => "productionCompany",
"seasonNumber" => "seasonNumber",
+ "director" => "director",
"episode" => "episode",
+ "episodes" => "episodes",
+ "partOfSeries" => "partOfSeries",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The number of episodes in this season or series.
*
*
- * @var Date|DateTime|null
+ * @var int|null
*/
- protected $startDate;
+ protected $numberOfEpisodes;
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $director;
+ protected $trailer;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
@@ -58,12 +58,12 @@ public static function fieldList() {
protected $actor;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var Date|DateTime|null
*/
- protected $trailer;
+ protected $startDate;
/**
* The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
@@ -74,102 +74,101 @@ public static function fieldList() {
protected $endDate;
/**
- * An episode of a TV/radio series or season.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Episode|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $episodes;
+ protected $productionCompany;
/**
- * The number of episodes in this season or series.
+ * Position of the season within an ordered group of seasons.
*
*
- * @var int|null
+ * @var string|int|null
*/
- protected $numberOfEpisodes;
+ protected $seasonNumber;
/**
- * The series to which this episode or season belongs.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $partOfSeries;
+ protected $director;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * An episode of a TV, radio or game media within a series or season.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $productionCompany;
+ protected $episode;
/**
- * Position of the season within an ordered group of seasons.
+ * An episode of a TV/radio series or season.
*
*
- * @var string|int|null
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $seasonNumber;
+ protected $episodes;
/**
- * An episode of a tv, radio or game media within a series or season.
+ * The series to which this episode or season belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Episode|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- protected $episode;
+ protected $partOfSeries;
/**
- * @return Date|DateTime|null
+ * @return int|null
*/
- public function getStartDate()
+ public function getNumberOfEpisodes()
{
- return $this->startDate;
+ return $this->numberOfEpisodes;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param int|null $numberOfEpisodes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setNumberOfEpisodes($numberOfEpisodes)
{
$types = [
- "Date",
- "DateTime",
+ "int",
"null",
];
- $startDate = self::checkTypes($startDate, $types);
+ $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
- $this->startDate = $startDate;
+ $this->numberOfEpisodes = $numberOfEpisodes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getDirector()
+ public function getTrailer()
{
- return $this->director;
+ return $this->trailer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setTrailer($trailer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $director = self::checkTypes($director, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->director = $director;
+ $this->trailer = $trailer;
}
/**
@@ -198,28 +197,29 @@ public function setActor($actor)
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return Date|DateTime|null
*/
- public function getTrailer()
+ public function getStartDate()
{
- return $this->trailer;
+ return $this->startDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrailer($trailer)
+ public function setStartDate($startDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $trailer = self::checkTypes($trailer, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->trailer = $trailer;
+ $this->startDate = $startDate;
}
/**
@@ -249,154 +249,154 @@ public function setEndDate($endDate)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Episode|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEpisodes()
+ public function getProductionCompany()
{
- return $this->episodes;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisodes($episodes)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $episodes = self::checkTypes($episodes, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->episodes = $episodes;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return int|null
+ * @return string|int|null
*/
- public function getNumberOfEpisodes()
+ public function getSeasonNumber()
{
- return $this->numberOfEpisodes;
+ return $this->seasonNumber;
}
/**
- * @param int|null $numberOfEpisodes
+ * @param string|int|null $seasonNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfEpisodes($numberOfEpisodes)
+ public function setSeasonNumber($seasonNumber)
{
$types = [
+ "string",
"int",
"null",
];
- $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
+ $seasonNumber = self::checkTypes($seasonNumber, $types);
- $this->numberOfEpisodes = $numberOfEpisodes;
+ $this->seasonNumber = $seasonNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPartOfSeries()
+ public function getDirector()
{
- return $this->partOfSeries;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries
+ * @param \OpenActive\Models\SchemaOrg\Person|string $director
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfSeries($partOfSeries)
+ public function setDirector($director)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $partOfSeries = self::checkTypes($partOfSeries, $types);
+ $director = self::checkTypes($director, $types);
- $this->partOfSeries = $partOfSeries;
+ $this->director = $director;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getProductionCompany()
+ public function getEpisode()
{
- return $this->productionCompany;
+ return $this->episode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setEpisode($episode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Episode",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $episode = self::checkTypes($episode, $types);
- $this->productionCompany = $productionCompany;
+ $this->episode = $episode;
}
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getSeasonNumber()
+ public function getEpisodes()
{
- return $this->seasonNumber;
+ return $this->episodes;
}
/**
- * @param string|int|null $seasonNumber
+ * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeasonNumber($seasonNumber)
+ public function setEpisodes($episodes)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Episode",
"string",
- "int",
- "null",
];
- $seasonNumber = self::checkTypes($seasonNumber, $types);
+ $episodes = self::checkTypes($episodes, $types);
- $this->seasonNumber = $seasonNumber;
+ $this->episodes = $episodes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Episode|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- public function getEpisode()
+ public function getPartOfSeries()
{
- return $this->episode;
+ return $this->partOfSeries;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
+ * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisode($episode)
+ public function setPartOfSeries($partOfSeries)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
"string",
];
- $episode = self::checkTypes($episode, $types);
+ $partOfSeries = self::checkTypes($partOfSeries, $types);
- $this->episode = $episode;
+ $this->partOfSeries = $partOfSeries;
}
}
diff --git a/src/Models/SchemaOrg/CreditCard.php b/src/Models/SchemaOrg/CreditCard.php
index 0df2c92b..ca17289b 100644
--- a/src/Models/SchemaOrg/CreditCard.php
+++ b/src/Models/SchemaOrg/CreditCard.php
@@ -5,7 +5,7 @@
/**
*
*/
-class CreditCard extends \OpenActive\Models\SchemaOrg\PaymentCard
+class CreditCard extends \OpenActive\Models\SchemaOrg\LoanOrCredit
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/DDxElement.php b/src/Models/SchemaOrg/DDxElement.php
index 52fe2353..0d91c43d 100644
--- a/src/Models/SchemaOrg/DDxElement.php
+++ b/src/Models/SchemaOrg/DDxElement.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "distinguishingSign" => "distinguishingSign",
"diagnosis" => "diagnosis",
+ "distinguishingSign" => "distinguishingSign",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * One of a set of signs and symptoms that can be used to distinguish this diagnosis from others in the differential diagnosis.
+ * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $distinguishingSign;
+ protected $diagnosis;
/**
- * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process.
+ * One of a set of signs and symptoms that can be used to distinguish this diagnosis from others in the differential diagnosis.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
*/
- protected $diagnosis;
+ protected $distinguishingSign;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getDistinguishingSign()
+ public function getDiagnosis()
{
- return $this->distinguishingSign;
+ return $this->diagnosis;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $distinguishingSign
+ * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $diagnosis
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDistinguishingSign($distinguishingSign)
+ public function setDiagnosis($diagnosis)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $distinguishingSign = self::checkTypes($distinguishingSign, $types);
+ $diagnosis = self::checkTypes($diagnosis, $types);
- $this->distinguishingSign = $distinguishingSign;
+ $this->diagnosis = $diagnosis;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
*/
- public function getDiagnosis()
+ public function getDistinguishingSign()
{
- return $this->diagnosis;
+ return $this->distinguishingSign;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $diagnosis
+ * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $distinguishingSign
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiagnosis($diagnosis)
+ public function setDistinguishingSign($distinguishingSign)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom",
"string",
];
- $diagnosis = self::checkTypes($diagnosis, $types);
+ $distinguishingSign = self::checkTypes($distinguishingSign, $types);
- $this->diagnosis = $diagnosis;
+ $this->distinguishingSign = $distinguishingSign;
}
}
diff --git a/src/Models/SchemaOrg/DataCatalog.php b/src/Models/SchemaOrg/DataCatalog.php
index 5f598c9d..3070cc02 100644
--- a/src/Models/SchemaOrg/DataCatalog.php
+++ b/src/Models/SchemaOrg/DataCatalog.php
@@ -19,24 +19,23 @@ public static function fieldList() {
$fields = [
"measurementTechnique" => "measurementTechnique",
"dataset" => "dataset",
+ "measurementMethod" => "measurementMethod",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]]),
- * corresponding to the method used for measuring the corresponding variable(s) (described using [[variableMeasured]]). This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but rather as a high level summary for dataset discovery.
+ * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable.
+ *
+ * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery.
*
- * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence".
+ * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
*
- * If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
- *
- * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]].
- *
+ * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]].
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
protected $measurementTechnique;
@@ -49,7 +48,15 @@ public static function fieldList() {
protected $dataset;
/**
- * @return string
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
+ *
+ *
+ * @var string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null
+ */
+ protected $measurementMethod;
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
public function getMeasurementTechnique()
{
@@ -57,7 +64,7 @@ public function getMeasurementTechnique()
}
/**
- * @param string $measurementTechnique
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -65,6 +72,9 @@ public function setMeasurementTechnique($measurementTechnique)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
$measurementTechnique = self::checkTypes($measurementTechnique, $types);
@@ -97,4 +107,31 @@ public function setDataset($dataset)
$this->dataset = $dataset;
}
+ /**
+ * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementMethod($measurementMethod)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "null",
+ ];
+
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
+
+ $this->measurementMethod = $measurementMethod;
+ }
+
}
diff --git a/src/Models/SchemaOrg/DataDownload.php b/src/Models/SchemaOrg/DataDownload.php
index 17725eeb..d1f0b358 100644
--- a/src/Models/SchemaOrg/DataDownload.php
+++ b/src/Models/SchemaOrg/DataDownload.php
@@ -18,29 +18,36 @@ public static function getType()
public static function fieldList() {
$fields = [
"measurementTechnique" => "measurementTechnique",
+ "measurementMethod" => "measurementMethod",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]]),
- * corresponding to the method used for measuring the corresponding variable(s) (described using [[variableMeasured]]). This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but rather as a high level summary for dataset discovery.
+ * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable.
+ *
+ * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery.
*
- * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence".
+ * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
*
- * If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
- *
- * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]].
- *
+ * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]].
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
protected $measurementTechnique;
/**
- * @return string
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
+ *
+ *
+ * @var string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null
+ */
+ protected $measurementMethod;
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
public function getMeasurementTechnique()
{
@@ -48,7 +55,7 @@ public function getMeasurementTechnique()
}
/**
- * @param string $measurementTechnique
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -56,6 +63,9 @@ public function setMeasurementTechnique($measurementTechnique)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
$measurementTechnique = self::checkTypes($measurementTechnique, $types);
@@ -63,4 +73,31 @@ public function setMeasurementTechnique($measurementTechnique)
$this->measurementTechnique = $measurementTechnique;
}
+ /**
+ * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementMethod($measurementMethod)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "null",
+ ];
+
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
+
+ $this->measurementMethod = $measurementMethod;
+ }
+
}
diff --git a/src/Models/SchemaOrg/DataFeed.php b/src/Models/SchemaOrg/DataFeed.php
index 15d9af55..faf4c430 100644
--- a/src/Models/SchemaOrg/DataFeed.php
+++ b/src/Models/SchemaOrg/DataFeed.php
@@ -24,15 +24,15 @@ public static function fieldList() {
}
/**
- * An item within in a data feed. Data feeds may have many elements.
+ * An item within a data feed. Data feeds may have many elements.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\DataFeedItem|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\DataFeedItem
*/
protected $dataFeedElement;
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\DataFeedItem|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\DataFeedItem
*/
public function getDataFeedElement()
{
@@ -40,7 +40,7 @@ public function getDataFeedElement()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\DataFeedItem|string $dataFeedElement
+ * @param \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\DataFeedItem $dataFeedElement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -48,8 +48,8 @@ public function setDataFeedElement($dataFeedElement)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\DataFeedItem",
"string",
+ "\OpenActive\Models\SchemaOrg\DataFeedItem",
];
$dataFeedElement = self::checkTypes($dataFeedElement, $types);
diff --git a/src/Models/SchemaOrg/DataFeedItem.php b/src/Models/SchemaOrg/DataFeedItem.php
index 6cd37b9f..800e688c 100644
--- a/src/Models/SchemaOrg/DataFeedItem.php
+++ b/src/Models/SchemaOrg/DataFeedItem.php
@@ -17,61 +17,61 @@ public static function getType()
public static function fieldList() {
$fields = [
- "dateDeleted" => "dateDeleted",
- "dateCreated" => "dateCreated",
"dateModified" => "dateModified",
"item" => "item",
+ "dateCreated" => "dateCreated",
+ "dateDeleted" => "dateDeleted",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The datetime the item was removed from the DataFeed.
+ * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
*
*
* @var Date|DateTime|null
*/
- protected $dateDeleted;
+ protected $dateModified;
/**
- * The date on which the CreativeWork was created or the item was added to a DataFeed.
+ * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists').
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $dateCreated;
+ protected $item;
/**
- * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
+ * The date on which the CreativeWork was created or the item was added to a DataFeed.
*
*
* @var Date|DateTime|null
*/
- protected $dateModified;
+ protected $dateCreated;
/**
- * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists')’.
+ * The datetime the item was removed from the DataFeed.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var Date|DateTime|null
*/
- protected $item;
+ protected $dateDeleted;
/**
* @return Date|DateTime|null
*/
- public function getDateDeleted()
+ public function getDateModified()
{
- return $this->dateDeleted;
+ return $this->dateModified;
}
/**
- * @param Date|DateTime|null $dateDeleted
+ * @param Date|DateTime|null $dateModified
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateDeleted($dateDeleted)
+ public function setDateModified($dateModified)
{
$types = [
"Date",
@@ -79,51 +79,50 @@ public function setDateDeleted($dateDeleted)
"null",
];
- $dateDeleted = self::checkTypes($dateDeleted, $types);
+ $dateModified = self::checkTypes($dateModified, $types);
- $this->dateDeleted = $dateDeleted;
+ $this->dateModified = $dateModified;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getDateCreated()
+ public function getItem()
{
- return $this->dateCreated;
+ return $this->item;
}
/**
- * @param Date|DateTime|null $dateCreated
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $item
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateCreated($dateCreated)
+ public function setItem($item)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
- $dateCreated = self::checkTypes($dateCreated, $types);
+ $item = self::checkTypes($item, $types);
- $this->dateCreated = $dateCreated;
+ $this->item = $item;
}
/**
* @return Date|DateTime|null
*/
- public function getDateModified()
+ public function getDateCreated()
{
- return $this->dateModified;
+ return $this->dateCreated;
}
/**
- * @param Date|DateTime|null $dateModified
+ * @param Date|DateTime|null $dateCreated
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateModified($dateModified)
+ public function setDateCreated($dateCreated)
{
$types = [
"Date",
@@ -131,34 +130,35 @@ public function setDateModified($dateModified)
"null",
];
- $dateModified = self::checkTypes($dateModified, $types);
+ $dateCreated = self::checkTypes($dateCreated, $types);
- $this->dateModified = $dateModified;
+ $this->dateCreated = $dateCreated;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return Date|DateTime|null
*/
- public function getItem()
+ public function getDateDeleted()
{
- return $this->item;
+ return $this->dateDeleted;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $item
+ * @param Date|DateTime|null $dateDeleted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItem($item)
+ public function setDateDeleted($dateDeleted)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $item = self::checkTypes($item, $types);
+ $dateDeleted = self::checkTypes($dateDeleted, $types);
- $this->item = $item;
+ $this->dateDeleted = $dateDeleted;
}
}
diff --git a/src/Models/SchemaOrg/Dataset.php b/src/Models/SchemaOrg/Dataset.php
index 0419a3de..66d2e900 100644
--- a/src/Models/SchemaOrg/Dataset.php
+++ b/src/Models/SchemaOrg/Dataset.php
@@ -17,12 +17,13 @@ public static function getType()
public static function fieldList() {
$fields = [
- "catalog" => "catalog",
- "includedDataCatalog" => "includedDataCatalog",
- "variableMeasured" => "variableMeasured",
"measurementTechnique" => "measurementTechnique",
- "datasetTimeInterval" => "datasetTimeInterval",
+ "variableMeasured" => "variableMeasured",
+ "measurementMethod" => "measurementMethod",
"distribution" => "distribution",
+ "includedDataCatalog" => "includedDataCatalog",
+ "datasetTimeInterval" => "datasetTimeInterval",
+ "catalog" => "catalog",
"issn" => "issn",
"includedInDataCatalog" => "includedInDataCatalog",
];
@@ -31,44 +32,50 @@ public static function fieldList() {
}
/**
- * A data catalog which contains this dataset.
+ * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable.
+ *
+ * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery.
+ *
+ * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
+ *
+ * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]].
*
*
- * @var \OpenActive\Models\SchemaOrg\DataCatalog|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- protected $catalog;
+ protected $measurementTechnique;
/**
- * A data catalog which contains this dataset (this property was previously 'catalog', preferred name is now 'includedInDataCatalog').
+ * The variableMeasured property can indicate (repeated as necessary) the variables that are measured in some dataset, either described as text or as pairs of identifier and description using PropertyValue, or more explicitly as a [[StatisticalVariable]].
*
*
- * @var \OpenActive\Models\SchemaOrg\DataCatalog|string
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null
*/
- protected $includedDataCatalog;
+ protected $variableMeasured;
/**
- * The variableMeasured property can indicate (repeated as necessary) the variables that are measured in some dataset, either described as text or as pairs of identifier and description using PropertyValue.
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null
*/
- protected $variableMeasured;
+ protected $measurementMethod;
/**
- * A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]]),
- * corresponding to the method used for measuring the corresponding variable(s) (described using [[variableMeasured]]). This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but rather as a high level summary for dataset discovery.
- *
- * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence".
- *
- * If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
- *
- * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]].
- *
+ * A downloadable form of this dataset, at a specific location, in a specific format. This property can be repeated if different variations are available. There is no expectation that different downloadable distributions must contain exactly equivalent information (see also [DCAT](https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution) on this point). Different distributions might include or exclude different subsets of the entire dataset, for example.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DataDownload|string
*/
- protected $measurementTechnique;
+ protected $distribution;
+
+ /**
+ * A data catalog which contains this dataset (this property was previously 'catalog', preferred name is now 'includedInDataCatalog').
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DataCatalog|string
+ */
+ protected $includedDataCatalog;
/**
* The range of temporal applicability of a dataset, e.g. for a 2011 census dataset, the year 2011 (in ISO 8601 time interval format).
@@ -79,12 +86,12 @@ public static function fieldList() {
protected $datasetTimeInterval;
/**
- * A downloadable form of this dataset, at a specific location, in a specific format.
+ * A data catalog which contains this dataset.
*
*
- * @var \OpenActive\Models\SchemaOrg\DataDownload|string
+ * @var \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- protected $distribution;
+ protected $catalog;
/**
* The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.
@@ -103,102 +110,135 @@ public static function fieldList() {
protected $includedInDataCatalog;
/**
- * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- public function getCatalog()
+ public function getMeasurementTechnique()
{
- return $this->catalog;
+ return $this->measurementTechnique;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $catalog
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCatalog($catalog)
+ public function setMeasurementTechnique($measurementTechnique)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataCatalog",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
- $catalog = self::checkTypes($catalog, $types);
+ $measurementTechnique = self::checkTypes($measurementTechnique, $types);
- $this->catalog = $catalog;
+ $this->measurementTechnique = $measurementTechnique;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null
*/
- public function getIncludedDataCatalog()
+ public function getVariableMeasured()
{
- return $this->includedDataCatalog;
+ return $this->variableMeasured;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $includedDataCatalog
+ * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null $variableMeasured
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludedDataCatalog($includedDataCatalog)
+ public function setVariableMeasured($variableMeasured)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataCatalog",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
"string",
+ "\OpenActive\Enums\PropertyEnumeration",
+ "null",
];
- $includedDataCatalog = self::checkTypes($includedDataCatalog, $types);
+ $variableMeasured = self::checkTypes($variableMeasured, $types);
- $this->includedDataCatalog = $includedDataCatalog;
+ $this->variableMeasured = $variableMeasured;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null
*/
- public function getVariableMeasured()
+ public function getMeasurementMethod()
{
- return $this->variableMeasured;
+ return $this->measurementMethod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $variableMeasured
+ * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVariableMeasured($variableMeasured)
+ public function setMeasurementMethod($measurementMethod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "null",
];
- $variableMeasured = self::checkTypes($variableMeasured, $types);
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
- $this->variableMeasured = $variableMeasured;
+ $this->measurementMethod = $measurementMethod;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DataDownload|string
*/
- public function getMeasurementTechnique()
+ public function getDistribution()
{
- return $this->measurementTechnique;
+ return $this->distribution;
}
/**
- * @param string $measurementTechnique
+ * @param \OpenActive\Models\SchemaOrg\DataDownload|string $distribution
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMeasurementTechnique($measurementTechnique)
+ public function setDistribution($distribution)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DataDownload",
"string",
];
- $measurementTechnique = self::checkTypes($measurementTechnique, $types);
+ $distribution = self::checkTypes($distribution, $types);
- $this->measurementTechnique = $measurementTechnique;
+ $this->distribution = $distribution;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
+ */
+ public function getIncludedDataCatalog()
+ {
+ return $this->includedDataCatalog;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $includedDataCatalog
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setIncludedDataCatalog($includedDataCatalog)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DataCatalog",
+ "string",
+ ];
+
+ $includedDataCatalog = self::checkTypes($includedDataCatalog, $types);
+
+ $this->includedDataCatalog = $includedDataCatalog;
}
/**
@@ -227,28 +267,28 @@ public function setDatasetTimeInterval($datasetTimeInterval)
}
/**
- * @return \OpenActive\Models\SchemaOrg\DataDownload|string
+ * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- public function getDistribution()
+ public function getCatalog()
{
- return $this->distribution;
+ return $this->catalog;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataDownload|string $distribution
+ * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $catalog
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDistribution($distribution)
+ public function setCatalog($catalog)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataDownload",
+ "\OpenActive\Models\SchemaOrg\DataCatalog",
"string",
];
- $distribution = self::checkTypes($distribution, $types);
+ $catalog = self::checkTypes($catalog, $types);
- $this->distribution = $distribution;
+ $this->catalog = $catalog;
}
/**
diff --git a/src/Models/SchemaOrg/DatedMoneySpecification.php b/src/Models/SchemaOrg/DatedMoneySpecification.php
index 4c29ff17..25f7102f 100644
--- a/src/Models/SchemaOrg/DatedMoneySpecification.php
+++ b/src/Models/SchemaOrg/DatedMoneySpecification.php
@@ -17,15 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "currency" => "currency",
"startDate" => "startDate",
"endDate" => "endDate",
- "currency" => "currency",
"amount" => "amount",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
+ *
+ *
+ * @var string
+ */
+ protected $currency;
+
/**
* The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
@@ -43,20 +51,36 @@ public static function fieldList() {
protected $endDate;
/**
- * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The amount of money.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $currency;
+ protected $amount;
/**
- * The amount of money.
- *
- *
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return string
*/
- protected $amount;
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+
+ /**
+ * @param string $currency
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCurrency($currency)
+ {
+ $types = [
+ "string",
+ ];
+
+ $currency = self::checkTypes($currency, $types);
+
+ $this->currency = $currency;
+ }
/**
* @return Date|DateTime|null
@@ -111,31 +135,7 @@ public function setEndDate($endDate)
}
/**
- * @return string
- */
- public function getCurrency()
- {
- return $this->currency;
- }
-
- /**
- * @param string $currency
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setCurrency($currency)
- {
- $types = [
- "string",
- ];
-
- $currency = self::checkTypes($currency, $types);
-
- $this->currency = $currency;
- }
-
- /**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getAmount()
{
@@ -143,16 +143,16 @@ public function getAmount()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAmount($amount)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/DefinedRegion.php b/src/Models/SchemaOrg/DefinedRegion.php
index ffbf2a32..1bfa819c 100644
--- a/src/Models/SchemaOrg/DefinedRegion.php
+++ b/src/Models/SchemaOrg/DefinedRegion.php
@@ -17,31 +17,31 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "postalCodePrefix" => "postalCodePrefix",
"addressCountry" => "addressCountry",
- "addressRegion" => "addressRegion",
"postalCodeRange" => "postalCodeRange",
- "postalCodePrefix" => "postalCodePrefix",
"postalCode" => "postalCode",
+ "addressRegion" => "addressRegion",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1).
+ * A defined range of postal codes indicated by a common textual prefix. Used for non-numeric systems such as UK.
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var string
*/
- protected $addressCountry;
+ protected $postalCodePrefix;
/**
- * The region in which the locality is, and which is in the country. For example, California or another appropriate first-level [Administrative division](https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country)
+ * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1).
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Country
*/
- protected $addressRegion;
+ protected $addressCountry;
/**
* A defined range of postal codes.
@@ -52,68 +52,68 @@ public static function fieldList() {
protected $postalCodeRange;
/**
- * A defined range of postal codes indicated by a common textual prefix. Used for non-numeric systems such as UK.
+ * The postal code. For example, 94043.
*
*
* @var string
*/
- protected $postalCodePrefix;
+ protected $postalCode;
/**
- * The postal code. For example, 94043.
+ * The region in which the locality is, and which is in the country. For example, California or another appropriate first-level [Administrative division](https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country).
*
*
* @var string
*/
- protected $postalCode;
+ protected $addressRegion;
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return string
*/
- public function getAddressCountry()
+ public function getPostalCodePrefix()
{
- return $this->addressCountry;
+ return $this->postalCodePrefix;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry
+ * @param string $postalCodePrefix
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAddressCountry($addressCountry)
+ public function setPostalCodePrefix($postalCodePrefix)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $addressCountry = self::checkTypes($addressCountry, $types);
+ $postalCodePrefix = self::checkTypes($postalCodePrefix, $types);
- $this->addressCountry = $addressCountry;
+ $this->postalCodePrefix = $postalCodePrefix;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Country
*/
- public function getAddressRegion()
+ public function getAddressCountry()
{
- return $this->addressRegion;
+ return $this->addressCountry;
}
/**
- * @param string $addressRegion
+ * @param string|\OpenActive\Models\SchemaOrg\Country $addressCountry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAddressRegion($addressRegion)
+ public function setAddressCountry($addressCountry)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Country",
];
- $addressRegion = self::checkTypes($addressRegion, $types);
+ $addressCountry = self::checkTypes($addressCountry, $types);
- $this->addressRegion = $addressRegion;
+ $this->addressCountry = $addressCountry;
}
/**
@@ -144,49 +144,49 @@ public function setPostalCodeRange($postalCodeRange)
/**
* @return string
*/
- public function getPostalCodePrefix()
+ public function getPostalCode()
{
- return $this->postalCodePrefix;
+ return $this->postalCode;
}
/**
- * @param string $postalCodePrefix
+ * @param string $postalCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCodePrefix($postalCodePrefix)
+ public function setPostalCode($postalCode)
{
$types = [
"string",
];
- $postalCodePrefix = self::checkTypes($postalCodePrefix, $types);
+ $postalCode = self::checkTypes($postalCode, $types);
- $this->postalCodePrefix = $postalCodePrefix;
+ $this->postalCode = $postalCode;
}
/**
* @return string
*/
- public function getPostalCode()
+ public function getAddressRegion()
{
- return $this->postalCode;
+ return $this->addressRegion;
}
/**
- * @param string $postalCode
+ * @param string $addressRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCode($postalCode)
+ public function setAddressRegion($addressRegion)
{
$types = [
"string",
];
- $postalCode = self::checkTypes($postalCode, $types);
+ $addressRegion = self::checkTypes($addressRegion, $types);
- $this->postalCode = $postalCode;
+ $this->addressRegion = $addressRegion;
}
}
diff --git a/src/Models/SchemaOrg/DefinedTerm.php b/src/Models/SchemaOrg/DefinedTerm.php
index b6285c55..bd529e59 100644
--- a/src/Models/SchemaOrg/DefinedTerm.php
+++ b/src/Models/SchemaOrg/DefinedTerm.php
@@ -25,7 +25,7 @@ public static function fieldList() {
}
/**
- * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]]
+ * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]].
*
*
* @var string
diff --git a/src/Models/SchemaOrg/DeliveryChargeSpecification.php b/src/Models/SchemaOrg/DeliveryChargeSpecification.php
index fa5ca7f7..c0447ded 100644
--- a/src/Models/SchemaOrg/DeliveryChargeSpecification.php
+++ b/src/Models/SchemaOrg/DeliveryChargeSpecification.php
@@ -17,40 +17,32 @@ public static function getType()
public static function fieldList() {
$fields = [
- "ineligibleRegion" => "ineligibleRegion",
"eligibleRegion" => "eligibleRegion",
- "areaServed" => "areaServed",
+ "ineligibleRegion" => "ineligibleRegion",
"appliesToDeliveryMethod" => "appliesToDeliveryMethod",
+ "areaServed" => "areaServed",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
- *
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
- */
- protected $ineligibleRegion;
-
/**
* The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]].
*
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string
*/
protected $eligibleRegion;
/**
- * The geographic area where a service or offered item is provided.
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $areaServed;
+ protected $ineligibleRegion;
/**
* The delivery method(s) to which the delivery charge or payment charge specification applies.
@@ -61,33 +53,15 @@ public static function fieldList() {
protected $appliesToDeliveryMethod;
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
- */
- public function getIneligibleRegion()
- {
- return $this->ineligibleRegion;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The geographic area where a service or offered item is provided.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place
*/
- public function setIneligibleRegion($ineligibleRegion)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
- ];
-
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
-
- $this->ineligibleRegion = $ineligibleRegion;
- }
+ protected $areaServed;
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string
*/
public function getEligibleRegion()
{
@@ -95,16 +69,16 @@ public function getEligibleRegion()
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string $eligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setEligibleRegion($eligibleRegion)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\GeoShape",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
];
$eligibleRegion = self::checkTypes($eligibleRegion, $types);
@@ -113,30 +87,29 @@ public function setEligibleRegion($eligibleRegion)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- public function getAreaServed()
+ public function getIneligibleRegion()
{
- return $this->areaServed;
+ return $this->ineligibleRegion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAreaServed($areaServed)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->areaServed = $areaServed;
+ $this->ineligibleRegion = $ineligibleRegion;
}
/**
@@ -164,4 +137,31 @@ public function setAppliesToDeliveryMethod($appliesToDeliveryMethod)
$this->appliesToDeliveryMethod = $appliesToDeliveryMethod;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place
+ */
+ public function getAreaServed()
+ {
+ return $this->areaServed;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setAreaServed($areaServed)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ ];
+
+ $areaServed = self::checkTypes($areaServed, $types);
+
+ $this->areaServed = $areaServed;
+ }
+
}
diff --git a/src/Models/SchemaOrg/DeliveryEvent.php b/src/Models/SchemaOrg/DeliveryEvent.php
index 2bb6ddc0..7a4f0e0a 100644
--- a/src/Models/SchemaOrg/DeliveryEvent.php
+++ b/src/Models/SchemaOrg/DeliveryEvent.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "accessCode" => "accessCode",
+ "availableFrom" => "availableFrom",
"availableThrough" => "availableThrough",
"hasDeliveryMethod" => "hasDeliveryMethod",
- "availableFrom" => "availableFrom",
+ "accessCode" => "accessCode",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Password, PIN, or access code needed for delivery (e.g. from a locker).
+ * When the item is available for pickup from the store, locker, etc.
*
*
- * @var string
+ * @var DateTime|null
*/
- protected $accessCode;
+ protected $availableFrom;
/**
* After this date, the item will no longer be available for pickup.
@@ -51,35 +51,36 @@ public static function fieldList() {
protected $hasDeliveryMethod;
/**
- * When the item is available for pickup from the store, locker, etc.
+ * Password, PIN, or access code needed for delivery (e.g. from a locker).
*
*
- * @var DateTime|null
+ * @var string
*/
- protected $availableFrom;
+ protected $accessCode;
/**
- * @return string
+ * @return DateTime|null
*/
- public function getAccessCode()
+ public function getAvailableFrom()
{
- return $this->accessCode;
+ return $this->availableFrom;
}
/**
- * @param string $accessCode
+ * @param DateTime|null $availableFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessCode($accessCode)
+ public function setAvailableFrom($availableFrom)
{
$types = [
- "string",
+ "DateTime",
+ "null",
];
- $accessCode = self::checkTypes($accessCode, $types);
+ $availableFrom = self::checkTypes($availableFrom, $types);
- $this->accessCode = $accessCode;
+ $this->availableFrom = $availableFrom;
}
/**
@@ -133,28 +134,27 @@ public function setHasDeliveryMethod($hasDeliveryMethod)
}
/**
- * @return DateTime|null
+ * @return string
*/
- public function getAvailableFrom()
+ public function getAccessCode()
{
- return $this->availableFrom;
+ return $this->accessCode;
}
/**
- * @param DateTime|null $availableFrom
+ * @param string $accessCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableFrom($availableFrom)
+ public function setAccessCode($accessCode)
{
$types = [
- "DateTime",
- "null",
+ "string",
];
- $availableFrom = self::checkTypes($availableFrom, $types);
+ $accessCode = self::checkTypes($accessCode, $types);
- $this->availableFrom = $availableFrom;
+ $this->accessCode = $accessCode;
}
}
diff --git a/src/Models/SchemaOrg/DeliveryTimeSettings.php b/src/Models/SchemaOrg/DeliveryTimeSettings.php
index 3347721e..a34a1158 100644
--- a/src/Models/SchemaOrg/DeliveryTimeSettings.php
+++ b/src/Models/SchemaOrg/DeliveryTimeSettings.php
@@ -17,17 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "deliveryTime" => "deliveryTime",
"shippingDestination" => "shippingDestination",
"transitTimeLabel" => "transitTimeLabel",
"isUnlabelledFallback" => "isUnlabelledFallback",
- "deliveryTime" => "deliveryTime",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges.
+ * The total delay between the receipt of the order and the goods reaching the final customer.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string
+ */
+ protected $deliveryTime;
+
+ /**
+ * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges.
*
*
* @var \OpenActive\Models\SchemaOrg\DefinedRegion|string
@@ -51,12 +59,29 @@ public static function fieldList() {
protected $isUnlabelledFallback;
/**
- * The total delay between the receipt of the order and the goods reaching the final customer.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string
+ * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string
*/
- protected $deliveryTime;
+ public function getDeliveryTime()
+ {
+ return $this->deliveryTime;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDeliveryTime($deliveryTime)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime",
+ "string",
+ ];
+
+ $deliveryTime = self::checkTypes($deliveryTime, $types);
+
+ $this->deliveryTime = $deliveryTime;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\DefinedRegion|string
@@ -132,29 +157,4 @@ public function setIsUnlabelledFallback($isUnlabelledFallback)
$this->isUnlabelledFallback = $isUnlabelledFallback;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string
- */
- public function getDeliveryTime()
- {
- return $this->deliveryTime;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setDeliveryTime($deliveryTime)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime",
- "string",
- ];
-
- $deliveryTime = self::checkTypes($deliveryTime, $types);
-
- $this->deliveryTime = $deliveryTime;
- }
-
}
diff --git a/src/Models/SchemaOrg/Demand.php b/src/Models/SchemaOrg/Demand.php
index 81f794fd..8ba4a482 100644
--- a/src/Models/SchemaOrg/Demand.php
+++ b/src/Models/SchemaOrg/Demand.php
@@ -17,198 +17,216 @@ public static function getType()
public static function fieldList() {
$fields = [
- "gtin12" => "gtin12",
- "itemOffered" => "itemOffered",
- "mpn" => "mpn",
- "includesObject" => "includesObject",
- "businessFunction" => "businessFunction",
- "itemCondition" => "itemCondition",
- "gtin" => "gtin",
- "eligibleQuantity" => "eligibleQuantity",
- "acceptedPaymentMethod" => "acceptedPaymentMethod",
- "warranty" => "warranty",
- "seller" => "seller",
- "ineligibleRegion" => "ineligibleRegion",
- "deliveryLeadTime" => "deliveryLeadTime",
- "availableDeliveryMethod" => "availableDeliveryMethod",
- "validFrom" => "validFrom",
- "availabilityEnds" => "availabilityEnds",
"eligibleRegion" => "eligibleRegion",
+ "deliveryLeadTime" => "deliveryLeadTime",
"gtin8" => "gtin8",
- "inventoryLevel" => "inventoryLevel",
- "sku" => "sku",
- "advanceBookingRequirement" => "advanceBookingRequirement",
- "gtin14" => "gtin14",
- "eligibleTransactionVolume" => "eligibleTransactionVolume",
- "areaServed" => "areaServed",
+ "priceSpecification" => "priceSpecification",
+ "availableDeliveryMethod" => "availableDeliveryMethod",
+ "validThrough" => "validThrough",
+ "ineligibleRegion" => "ineligibleRegion",
"eligibleCustomerType" => "eligibleCustomerType",
- "availability" => "availability",
+ "inventoryLevel" => "inventoryLevel",
"gtin13" => "gtin13",
- "validThrough" => "validThrough",
- "priceSpecification" => "priceSpecification",
+ "serialNumber" => "serialNumber",
+ "asin" => "asin",
+ "gtin" => "gtin",
"availabilityStarts" => "availabilityStarts",
- "eligibleDuration" => "eligibleDuration",
+ "businessFunction" => "businessFunction",
+ "mpn" => "mpn",
+ "eligibleTransactionVolume" => "eligibleTransactionVolume",
"availableAtOrFrom" => "availableAtOrFrom",
- "serialNumber" => "serialNumber",
+ "itemOffered" => "itemOffered",
+ "acceptedPaymentMethod" => "acceptedPaymentMethod",
+ "sku" => "sku",
+ "validFrom" => "validFrom",
+ "eligibleDuration" => "eligibleDuration",
+ "eligibleQuantity" => "eligibleQuantity",
+ "includesObject" => "includesObject",
+ "gtin14" => "gtin14",
+ "seller" => "seller",
+ "availability" => "availability",
+ "gtin12" => "gtin12",
+ "areaServed" => "areaServed",
+ "availabilityEnds" => "availabilityEnds",
+ "advanceBookingRequirement" => "advanceBookingRequirement",
+ "warranty" => "warranty",
+ "itemCondition" => "itemCondition",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]].
+ *
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string
*/
- protected $gtin12;
+ protected $eligibleRegion;
/**
- * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup.
*
*
- * @var \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $itemOffered;
+ protected $deliveryLeadTime;
/**
- * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
+ * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
* @var string
*/
- protected $mpn;
+ protected $gtin8;
/**
- * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
+ * One or more detailed price specifications, indicating the unit price and delivery or payment charges.
*
*
- * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $includesObject;
+ protected $priceSpecification;
/**
- * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell.
+ * The delivery method(s) available for this offer.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- protected $businessFunction;
+ protected $availableDeliveryMethod;
/**
- * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
+ * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var Date|DateTime|null
*/
- protected $itemCondition;
+ protected $validThrough;
/**
- * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties. The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs. A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged.
- *
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
+ *
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $gtin;
+ protected $ineligibleRegion;
/**
- * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity.
+ * The type(s) of customers for which the given offer is valid.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
+ */
+ protected $eligibleCustomerType;
+
+ /**
+ * The current approximate inventory level for the item or items.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $eligibleQuantity;
+ protected $inventoryLevel;
/**
- * The payment method(s) accepted by seller for this offer.
+ * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
- * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @var string
*/
- protected $acceptedPaymentMethod;
+ protected $gtin13;
/**
- * The warranty promise(s) included in the offer.
+ * The serial number or any alphanumeric identifier of a particular product. When attached to an offer, it is a shortcut for the serial number of the product included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @var string
*/
- protected $warranty;
+ protected $serialNumber;
/**
- * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
+ * An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization (summary from [Wikipedia](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)'s article).
+ *
+ * Note also that this is a definition for how to include ASINs in Schema.org data, and not a definition of ASINs in general - see documentation from Amazon for authoritative details.
+ * ASINs are most commonly encoded as text strings, but the [asin] property supports URL/URI as potential values too.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $seller;
+ protected $asin;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
- *
+ * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes.
+ *
+ * A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties.
+ *
+ * The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) expresses GTINs as URLs (URIs, IRIs, etc.).
+ * Digital Links should be populated into the [[hasGS1DigitalLink]] attribute.
+ *
+ * Note also that this is a definition for how to include GTINs in Schema.org data, and not a definition of GTINs in general - see the GS1 documentation for authoritative details.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var string
*/
- protected $ineligibleRegion;
+ protected $gtin;
/**
- * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup.
+ * The beginning of the availability of the product or service included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var Date|DateTime|string|null
*/
- protected $deliveryLeadTime;
+ protected $availabilityStarts;
/**
- * The delivery method(s) available for this offer.
+ * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null
*/
- protected $availableDeliveryMethod;
+ protected $businessFunction;
/**
- * The date when the item becomes valid.
+ * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
*
*
- * @var Date|DateTime|null
+ * @var string
*/
- protected $validFrom;
+ protected $mpn;
/**
- * The end of the availability of the product or service included in the offer.
+ * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.
*
*
- * @var Date|DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $availabilityEnds;
+ protected $eligibleTransactionVolume;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]].
- *
+ * The place(s) from which the offer can be obtained (e.g. store locations).
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $eligibleRegion;
+ protected $availableAtOrFrom;
/**
- * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $gtin8;
+ protected $itemOffered;
/**
- * The current approximate inventory level for the item or items.
+ * The payment method(s) that are accepted in general by an organization, or for some specific demand or offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
*/
- protected $inventoryLevel;
+ protected $acceptedPaymentMethod;
/**
* The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.
@@ -219,592 +237,614 @@ public static function fieldList() {
protected $sku;
/**
- * The amount of time that is required between accepting the offer and the actual usage of the resource or service.
+ * The date when the item becomes valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var Date|DateTime|null
*/
- protected $advanceBookingRequirement;
+ protected $validFrom;
/**
- * The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * The duration for which the given offer is valid.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $gtin14;
+ protected $eligibleDuration;
/**
- * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.
+ * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity.
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $eligibleTransactionVolume;
+ protected $eligibleQuantity;
/**
- * The geographic area where a service or offered item is provided.
+ * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
*/
- protected $areaServed;
+ protected $includesObject;
/**
- * The type(s) of customers for which the given offer is valid.
+ * The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
+ * @var string
*/
- protected $eligibleCustomerType;
+ protected $gtin14;
/**
- * The availability of this item—for example In stock, Out of stock, Pre-order, etc.
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $availability;
+ protected $seller;
/**
- * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * The availability of this item—for example In stock, Out of stock, Pre-order, etc.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- protected $gtin13;
+ protected $availability;
/**
- * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
+ * The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
- * @var Date|DateTime|null
+ * @var string
*/
- protected $validThrough;
+ protected $gtin12;
/**
- * One or more detailed price specifications, indicating the unit price and delivery or payment charges.
+ * The geographic area where a service or offered item is provided.
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place
*/
- protected $priceSpecification;
+ protected $areaServed;
/**
- * The beginning of the availability of the product or service included in the offer.
+ * The end of the availability of the product or service included in the offer.
*
*
* @var Date|DateTime|string|null
*/
- protected $availabilityStarts;
+ protected $availabilityEnds;
/**
- * The duration for which the given offer is valid.
+ * The amount of time that is required between accepting the offer and the actual usage of the resource or service.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $eligibleDuration;
+ protected $advanceBookingRequirement;
/**
- * The place(s) from which the offer can be obtained (e.g. store locations).
+ * The warranty promise(s) included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- protected $availableAtOrFrom;
+ protected $warranty;
/**
- * The serial number or any alphanumeric identifier of a particular product. When attached to an offer, it is a shortcut for the serial number of the product included in the offer.
+ * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- protected $serialNumber;
+ protected $itemCondition;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string
*/
- public function getGtin12()
+ public function getEligibleRegion()
{
- return $this->gtin12;
+ return $this->eligibleRegion;
}
/**
- * @param string $gtin12
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string $eligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin12($gtin12)
+ public function setEligibleRegion($eligibleRegion)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
];
- $gtin12 = self::checkTypes($gtin12, $types);
+ $eligibleRegion = self::checkTypes($eligibleRegion, $types);
- $this->gtin12 = $gtin12;
+ $this->eligibleRegion = $eligibleRegion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getItemOffered()
+ public function getDeliveryLeadTime()
{
- return $this->itemOffered;
+ return $this->deliveryLeadTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string $itemOffered
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemOffered($itemOffered)
+ public function setDeliveryLeadTime($deliveryLeadTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Trip",
- "\OpenActive\Models\SchemaOrg\Event",
- "\OpenActive\Models\SchemaOrg\Product",
- "\OpenActive\Models\SchemaOrg\AggregateOffer",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "\OpenActive\Models\SchemaOrg\MenuItem",
- "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $itemOffered = self::checkTypes($itemOffered, $types);
+ $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types);
- $this->itemOffered = $itemOffered;
+ $this->deliveryLeadTime = $deliveryLeadTime;
}
/**
* @return string
*/
- public function getMpn()
+ public function getGtin8()
{
- return $this->mpn;
+ return $this->gtin8;
}
/**
- * @param string $mpn
+ * @param string $gtin8
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMpn($mpn)
+ public function setGtin8($gtin8)
{
$types = [
"string",
];
- $mpn = self::checkTypes($mpn, $types);
+ $gtin8 = self::checkTypes($gtin8, $types);
- $this->mpn = $mpn;
+ $this->gtin8 = $gtin8;
}
/**
- * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getIncludesObject()
+ public function getPriceSpecification()
{
- return $this->includesObject;
+ return $this->priceSpecification;
}
/**
- * @param \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string $includesObject
+ * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludesObject($includesObject)
+ public function setPriceSpecification($priceSpecification)
{
$types = [
- "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $includesObject = self::checkTypes($includesObject, $types);
+ $priceSpecification = self::checkTypes($priceSpecification, $types);
- $this->includesObject = $includesObject;
+ $this->priceSpecification = $priceSpecification;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null
+ * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- public function getBusinessFunction()
+ public function getAvailableDeliveryMethod()
{
- return $this->businessFunction;
+ return $this->availableDeliveryMethod;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction
+ * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBusinessFunction($businessFunction)
+ public function setAvailableDeliveryMethod($availableDeliveryMethod)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BusinessFunction",
+ "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
"null",
];
- $businessFunction = self::checkTypes($businessFunction, $types);
+ $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types);
- $this->businessFunction = $businessFunction;
+ $this->availableDeliveryMethod = $availableDeliveryMethod;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @return Date|DateTime|null
*/
- public function getItemCondition()
+ public function getValidThrough()
{
- return $this->itemCondition;
+ return $this->validThrough;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemCondition($itemCondition)
+ public function setValidThrough($validThrough)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "Date",
+ "DateTime",
"null",
];
- $itemCondition = self::checkTypes($itemCondition, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->itemCondition = $itemCondition;
+ $this->validThrough = $validThrough;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- public function getGtin()
+ public function getIneligibleRegion()
{
- return $this->gtin;
+ return $this->ineligibleRegion;
}
/**
- * @param string $gtin
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin($gtin)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $gtin = self::checkTypes($gtin, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->gtin = $gtin;
+ $this->ineligibleRegion = $ineligibleRegion;
+ }
+
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
+ */
+ public function getEligibleCustomerType()
+ {
+ return $this->eligibleCustomerType;
+ }
+
+ /**
+ * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEligibleCustomerType($eligibleCustomerType)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\BusinessEntityType",
+ "null",
+ ];
+
+ $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types);
+
+ $this->eligibleCustomerType = $eligibleCustomerType;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEligibleQuantity()
+ public function getInventoryLevel()
{
- return $this->eligibleQuantity;
+ return $this->inventoryLevel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleQuantity($eligibleQuantity)
+ public function setInventoryLevel($inventoryLevel)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $eligibleQuantity = self::checkTypes($eligibleQuantity, $types);
+ $inventoryLevel = self::checkTypes($inventoryLevel, $types);
- $this->eligibleQuantity = $eligibleQuantity;
+ $this->inventoryLevel = $inventoryLevel;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @return string
*/
- public function getAcceptedPaymentMethod()
+ public function getGtin13()
{
- return $this->acceptedPaymentMethod;
+ return $this->gtin13;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod
+ * @param string $gtin13
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcceptedPaymentMethod($acceptedPaymentMethod)
+ public function setGtin13($gtin13)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LoanOrCredit",
- "\OpenActive\Enums\SchemaOrg\PaymentMethod",
"string",
- "null",
];
- $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types);
+ $gtin13 = self::checkTypes($gtin13, $types);
- $this->acceptedPaymentMethod = $acceptedPaymentMethod;
+ $this->gtin13 = $gtin13;
}
/**
- * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @return string
*/
- public function getWarranty()
+ public function getSerialNumber()
{
- return $this->warranty;
+ return $this->serialNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty
+ * @param string $serialNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWarranty($warranty)
+ public function setSerialNumber($serialNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WarrantyPromise",
"string",
];
- $warranty = self::checkTypes($warranty, $types);
+ $serialNumber = self::checkTypes($serialNumber, $types);
- $this->warranty = $warranty;
+ $this->serialNumber = $serialNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getSeller()
+ public function getAsin()
{
- return $this->seller;
+ return $this->asin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
+ * @param string $asin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeller($seller)
+ public function setAsin($asin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $seller = self::checkTypes($seller, $types);
+ $asin = self::checkTypes($asin, $types);
- $this->seller = $seller;
+ $this->asin = $asin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @return string
*/
- public function getIneligibleRegion()
+ public function getGtin()
{
- return $this->ineligibleRegion;
+ return $this->gtin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param string $gtin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setGtin($gtin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $gtin = self::checkTypes($gtin, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->gtin = $gtin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return Date|DateTime|string|null
*/
- public function getDeliveryLeadTime()
+ public function getAvailabilityStarts()
{
- return $this->deliveryLeadTime;
+ return $this->availabilityStarts;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime
+ * @param Date|DateTime|string|null $availabilityStarts
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDeliveryLeadTime($deliveryLeadTime)
+ public function setAvailabilityStarts($availabilityStarts)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "Date",
+ "DateTime",
+ "Time",
+ "null",
];
- $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types);
+ $availabilityStarts = self::checkTypes($availabilityStarts, $types);
- $this->deliveryLeadTime = $deliveryLeadTime;
+ $this->availabilityStarts = $availabilityStarts;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null
*/
- public function getAvailableDeliveryMethod()
+ public function getBusinessFunction()
{
- return $this->availableDeliveryMethod;
+ return $this->businessFunction;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod
+ * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableDeliveryMethod($availableDeliveryMethod)
+ public function setBusinessFunction($businessFunction)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
+ "\OpenActive\Enums\SchemaOrg\BusinessFunction",
"null",
];
- $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types);
+ $businessFunction = self::checkTypes($businessFunction, $types);
- $this->availableDeliveryMethod = $availableDeliveryMethod;
+ $this->businessFunction = $businessFunction;
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getValidFrom()
+ public function getMpn()
{
- return $this->validFrom;
+ return $this->mpn;
}
/**
- * @param Date|DateTime|null $validFrom
+ * @param string $mpn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFrom($validFrom)
+ public function setMpn($mpn)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $validFrom = self::checkTypes($validFrom, $types);
+ $mpn = self::checkTypes($mpn, $types);
- $this->validFrom = $validFrom;
+ $this->mpn = $mpn;
}
/**
- * @return Date|DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getAvailabilityEnds()
+ public function getEligibleTransactionVolume()
{
- return $this->availabilityEnds;
+ return $this->eligibleTransactionVolume;
}
/**
- * @param Date|DateTime|string|null $availabilityEnds
+ * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailabilityEnds($availabilityEnds)
+ public function setEligibleTransactionVolume($eligibleTransactionVolume)
{
$types = [
- "Date",
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "string",
];
- $availabilityEnds = self::checkTypes($availabilityEnds, $types);
+ $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types);
- $this->availabilityEnds = $availabilityEnds;
+ $this->eligibleTransactionVolume = $eligibleTransactionVolume;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getEligibleRegion()
+ public function getAvailableAtOrFrom()
{
- return $this->eligibleRegion;
+ return $this->availableAtOrFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
+ * @param \OpenActive\Models\SchemaOrg\Place|string $availableAtOrFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleRegion($eligibleRegion)
+ public function setAvailableAtOrFrom($availableAtOrFrom)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
- "string",
"\OpenActive\Models\SchemaOrg\Place",
+ "string",
];
- $eligibleRegion = self::checkTypes($eligibleRegion, $types);
+ $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types);
- $this->eligibleRegion = $eligibleRegion;
+ $this->availableAtOrFrom = $availableAtOrFrom;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getGtin8()
+ public function getItemOffered()
{
- return $this->gtin8;
+ return $this->itemOffered;
}
/**
- * @param string $gtin8
+ * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string $itemOffered
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin8($gtin8)
+ public function setItemOffered($itemOffered)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\Trip",
+ "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\AggregateOffer",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $gtin8 = self::checkTypes($gtin8, $types);
+ $itemOffered = self::checkTypes($itemOffered, $types);
- $this->gtin8 = $gtin8;
+ $this->itemOffered = $itemOffered;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
*/
- public function getInventoryLevel()
+ public function getAcceptedPaymentMethod()
{
- return $this->inventoryLevel;
+ return $this->acceptedPaymentMethod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel
+ * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInventoryLevel($inventoryLevel)
+ public function setAcceptedPaymentMethod($acceptedPaymentMethod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\LoanOrCredit",
+ "\OpenActive\Enums\SchemaOrg\PaymentMethod",
"string",
+ "null",
];
- $inventoryLevel = self::checkTypes($inventoryLevel, $types);
+ $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types);
- $this->inventoryLevel = $inventoryLevel;
+ $this->acceptedPaymentMethod = $acceptedPaymentMethod;
}
/**
@@ -832,245 +872,246 @@ public function setSku($sku)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return Date|DateTime|null
*/
- public function getAdvanceBookingRequirement()
+ public function getValidFrom()
{
- return $this->advanceBookingRequirement;
+ return $this->validFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement
+ * @param Date|DateTime|null $validFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdvanceBookingRequirement($advanceBookingRequirement)
+ public function setValidFrom($validFrom)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types);
+ $validFrom = self::checkTypes($validFrom, $types);
- $this->advanceBookingRequirement = $advanceBookingRequirement;
+ $this->validFrom = $validFrom;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getGtin14()
+ public function getEligibleDuration()
{
- return $this->gtin14;
+ return $this->eligibleDuration;
}
/**
- * @param string $gtin14
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleDuration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin14($gtin14)
+ public function setEligibleDuration($eligibleDuration)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $gtin14 = self::checkTypes($gtin14, $types);
+ $eligibleDuration = self::checkTypes($eligibleDuration, $types);
- $this->gtin14 = $gtin14;
+ $this->eligibleDuration = $eligibleDuration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEligibleTransactionVolume()
+ public function getEligibleQuantity()
{
- return $this->eligibleTransactionVolume;
+ return $this->eligibleQuantity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleTransactionVolume($eligibleTransactionVolume)
+ public function setEligibleQuantity($eligibleQuantity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types);
+ $eligibleQuantity = self::checkTypes($eligibleQuantity, $types);
- $this->eligibleTransactionVolume = $eligibleTransactionVolume;
+ $this->eligibleQuantity = $eligibleQuantity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
*/
- public function getAreaServed()
+ public function getIncludesObject()
{
- return $this->areaServed;
+ return $this->includesObject;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @param \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string $includesObject
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAreaServed($areaServed)
+ public function setIncludesObject($includesObject)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $includesObject = self::checkTypes($includesObject, $types);
- $this->areaServed = $areaServed;
+ $this->includesObject = $includesObject;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
+ * @return string
*/
- public function getEligibleCustomerType()
+ public function getGtin14()
{
- return $this->eligibleCustomerType;
+ return $this->gtin14;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType
+ * @param string $gtin14
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleCustomerType($eligibleCustomerType)
+ public function setGtin14($gtin14)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BusinessEntityType",
- "null",
+ "string",
];
- $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types);
+ $gtin14 = self::checkTypes($gtin14, $types);
- $this->eligibleCustomerType = $eligibleCustomerType;
+ $this->gtin14 = $gtin14;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAvailability()
+ public function getSeller()
{
- return $this->availability;
+ return $this->seller;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $seller
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailability($availability)
+ public function setSeller($seller)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ItemAvailability",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $availability = self::checkTypes($availability, $types);
+ $seller = self::checkTypes($seller, $types);
- $this->availability = $availability;
+ $this->seller = $seller;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- public function getGtin13()
+ public function getAvailability()
{
- return $this->gtin13;
+ return $this->availability;
}
/**
- * @param string $gtin13
+ * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin13($gtin13)
+ public function setAvailability($availability)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\ItemAvailability",
+ "null",
];
- $gtin13 = self::checkTypes($gtin13, $types);
+ $availability = self::checkTypes($availability, $types);
- $this->gtin13 = $gtin13;
+ $this->availability = $availability;
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getValidThrough()
+ public function getGtin12()
{
- return $this->validThrough;
+ return $this->gtin12;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @param string $gtin12
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidThrough($validThrough)
+ public function setGtin12($gtin12)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $gtin12 = self::checkTypes($gtin12, $types);
- $this->validThrough = $validThrough;
+ $this->gtin12 = $gtin12;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place
*/
- public function getPriceSpecification()
+ public function getAreaServed()
{
- return $this->priceSpecification;
+ return $this->areaServed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceSpecification($priceSpecification)
+ public function setAreaServed($areaServed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
];
- $priceSpecification = self::checkTypes($priceSpecification, $types);
+ $areaServed = self::checkTypes($areaServed, $types);
- $this->priceSpecification = $priceSpecification;
+ $this->areaServed = $areaServed;
}
/**
* @return Date|DateTime|string|null
*/
- public function getAvailabilityStarts()
+ public function getAvailabilityEnds()
{
- return $this->availabilityStarts;
+ return $this->availabilityEnds;
}
/**
- * @param Date|DateTime|string|null $availabilityStarts
+ * @param Date|DateTime|string|null $availabilityEnds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailabilityStarts($availabilityStarts)
+ public function setAvailabilityEnds($availabilityEnds)
{
$types = [
"Date",
@@ -1079,83 +1120,84 @@ public function setAvailabilityStarts($availabilityStarts)
"null",
];
- $availabilityStarts = self::checkTypes($availabilityStarts, $types);
+ $availabilityEnds = self::checkTypes($availabilityEnds, $types);
- $this->availabilityStarts = $availabilityStarts;
+ $this->availabilityEnds = $availabilityEnds;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEligibleDuration()
+ public function getAdvanceBookingRequirement()
{
- return $this->eligibleDuration;
+ return $this->advanceBookingRequirement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleDuration
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleDuration($eligibleDuration)
+ public function setAdvanceBookingRequirement($advanceBookingRequirement)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $eligibleDuration = self::checkTypes($eligibleDuration, $types);
+ $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types);
- $this->eligibleDuration = $eligibleDuration;
+ $this->advanceBookingRequirement = $advanceBookingRequirement;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- public function getAvailableAtOrFrom()
+ public function getWarranty()
{
- return $this->availableAtOrFrom;
+ return $this->warranty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $availableAtOrFrom
+ * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableAtOrFrom($availableAtOrFrom)
+ public function setWarranty($warranty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\WarrantyPromise",
"string",
];
- $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types);
+ $warranty = self::checkTypes($warranty, $types);
- $this->availableAtOrFrom = $availableAtOrFrom;
+ $this->warranty = $warranty;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- public function getSerialNumber()
+ public function getItemCondition()
{
- return $this->serialNumber;
+ return $this->itemCondition;
}
/**
- * @param string $serialNumber
+ * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSerialNumber($serialNumber)
+ public function setItemCondition($itemCondition)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "null",
];
- $serialNumber = self::checkTypes($serialNumber, $types);
+ $itemCondition = self::checkTypes($itemCondition, $types);
- $this->serialNumber = $serialNumber;
+ $this->itemCondition = $itemCondition;
}
}
diff --git a/src/Models/SchemaOrg/Dentist.php b/src/Models/SchemaOrg/Dentist.php
index bf1c01cb..c137790d 100644
--- a/src/Models/SchemaOrg/Dentist.php
+++ b/src/Models/SchemaOrg/Dentist.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Dentist extends \OpenActive\Models\SchemaOrg\MedicalOrganization
+class Dentist extends \OpenActive\Models\SchemaOrg\LocalBusiness
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/DepositAccount.php b/src/Models/SchemaOrg/DepositAccount.php
index 20cc5638..7ac033b1 100644
--- a/src/Models/SchemaOrg/DepositAccount.php
+++ b/src/Models/SchemaOrg/DepositAccount.php
@@ -5,7 +5,7 @@
/**
*
*/
-class DepositAccount extends \OpenActive\Models\SchemaOrg\InvestmentOrDeposit
+class DepositAccount extends \OpenActive\Models\SchemaOrg\BankAccount
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/Diet.php b/src/Models/SchemaOrg/Diet.php
index 52d35b52..677e0326 100644
--- a/src/Models/SchemaOrg/Diet.php
+++ b/src/Models/SchemaOrg/Diet.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Diet extends \OpenActive\Models\SchemaOrg\LifestyleModification
+class Diet extends \OpenActive\Models\SchemaOrg\CreativeWork
{
/**
* @return string[]|null
@@ -17,176 +17,176 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "endorsers" => "endorsers",
+ "dietFeatures" => "dietFeatures",
"expertConsiderations" => "expertConsiderations",
"risks" => "risks",
"physiologicalBenefits" => "physiologicalBenefits",
- "endorsers" => "endorsers",
- "dietFeatures" => "dietFeatures",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Medical expert advice related to the plan.
+ * People or organizations that endorse the plan.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $expertConsiderations;
+ protected $endorsers;
/**
- * Specific physiologic risks associated to the diet plan.
+ * Nutritional information specific to the dietary plan. May include dietary recommendations on what foods to avoid, what foods to consume, and specific alterations/deviations from the USDA or other regulatory body's approved dietary guidelines.
*
*
* @var string
*/
- protected $risks;
+ protected $dietFeatures;
/**
- * Specific physiologic benefits associated to the plan.
+ * Medical expert advice related to the plan.
*
*
* @var string
*/
- protected $physiologicalBenefits;
+ protected $expertConsiderations;
/**
- * People or organizations that endorse the plan.
+ * Specific physiologic risks associated to the diet plan.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $endorsers;
+ protected $risks;
/**
- * Nutritional information specific to the dietary plan. May include dietary recommendations on what foods to avoid, what foods to consume, and specific alterations/deviations from the USDA or other regulatory body's approved dietary guidelines.
+ * Specific physiologic benefits associated to the plan.
*
*
* @var string
*/
- protected $dietFeatures;
+ protected $physiologicalBenefits;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getExpertConsiderations()
+ public function getEndorsers()
{
- return $this->expertConsiderations;
+ return $this->endorsers;
}
/**
- * @param string $expertConsiderations
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $endorsers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpertConsiderations($expertConsiderations)
+ public function setEndorsers($endorsers)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $expertConsiderations = self::checkTypes($expertConsiderations, $types);
+ $endorsers = self::checkTypes($endorsers, $types);
- $this->expertConsiderations = $expertConsiderations;
+ $this->endorsers = $endorsers;
}
/**
* @return string
*/
- public function getRisks()
+ public function getDietFeatures()
{
- return $this->risks;
+ return $this->dietFeatures;
}
/**
- * @param string $risks
+ * @param string $dietFeatures
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRisks($risks)
+ public function setDietFeatures($dietFeatures)
{
$types = [
"string",
];
- $risks = self::checkTypes($risks, $types);
+ $dietFeatures = self::checkTypes($dietFeatures, $types);
- $this->risks = $risks;
+ $this->dietFeatures = $dietFeatures;
}
/**
* @return string
*/
- public function getPhysiologicalBenefits()
+ public function getExpertConsiderations()
{
- return $this->physiologicalBenefits;
+ return $this->expertConsiderations;
}
/**
- * @param string $physiologicalBenefits
+ * @param string $expertConsiderations
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPhysiologicalBenefits($physiologicalBenefits)
+ public function setExpertConsiderations($expertConsiderations)
{
$types = [
"string",
];
- $physiologicalBenefits = self::checkTypes($physiologicalBenefits, $types);
+ $expertConsiderations = self::checkTypes($expertConsiderations, $types);
- $this->physiologicalBenefits = $physiologicalBenefits;
+ $this->expertConsiderations = $expertConsiderations;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getEndorsers()
+ public function getRisks()
{
- return $this->endorsers;
+ return $this->risks;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $endorsers
+ * @param string $risks
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndorsers($endorsers)
+ public function setRisks($risks)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $endorsers = self::checkTypes($endorsers, $types);
+ $risks = self::checkTypes($risks, $types);
- $this->endorsers = $endorsers;
+ $this->risks = $risks;
}
/**
* @return string
*/
- public function getDietFeatures()
+ public function getPhysiologicalBenefits()
{
- return $this->dietFeatures;
+ return $this->physiologicalBenefits;
}
/**
- * @param string $dietFeatures
+ * @param string $physiologicalBenefits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDietFeatures($dietFeatures)
+ public function setPhysiologicalBenefits($physiologicalBenefits)
{
$types = [
"string",
];
- $dietFeatures = self::checkTypes($dietFeatures, $types);
+ $physiologicalBenefits = self::checkTypes($physiologicalBenefits, $types);
- $this->dietFeatures = $dietFeatures;
+ $this->physiologicalBenefits = $physiologicalBenefits;
}
}
diff --git a/src/Models/SchemaOrg/DietarySupplement.php b/src/Models/SchemaOrg/DietarySupplement.php
index c611c6e1..c22aba5c 100644
--- a/src/Models/SchemaOrg/DietarySupplement.php
+++ b/src/Models/SchemaOrg/DietarySupplement.php
@@ -5,7 +5,7 @@
/**
*
*/
-class DietarySupplement extends \OpenActive\Models\SchemaOrg\Substance
+class DietarySupplement extends \OpenActive\Models\SchemaOrg\Product
{
/**
* @return string[]|null
@@ -18,16 +18,15 @@ public static function getType()
public static function fieldList() {
$fields = [
"targetPopulation" => "targetPopulation",
- "recommendedIntake" => "recommendedIntake",
- "legalStatus" => "legalStatus",
- "mechanismOfAction" => "mechanismOfAction",
- "maximumIntake" => "maximumIntake",
- "activeIngredient" => "activeIngredient",
"proprietaryName" => "proprietaryName",
+ "activeIngredient" => "activeIngredient",
"nonProprietaryName" => "nonProprietaryName",
- "manufacturer" => "manufacturer",
+ "recommendedIntake" => "recommendedIntake",
+ "maximumIntake" => "maximumIntake",
+ "legalStatus" => "legalStatus",
"isProprietary" => "isProprietary",
"safetyConsideration" => "safetyConsideration",
+ "mechanismOfAction" => "mechanismOfAction",
];
return array_merge(parent::fieldList(), $fields);
@@ -42,68 +41,52 @@ public static function fieldList() {
protected $targetPopulation;
/**
- * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string
- */
- protected $recommendedIntake;
-
- /**
- * The drug or supplement's legal status, including any controlled substance schedules that apply.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
- */
- protected $legalStatus;
-
- /**
- * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
+ * Proprietary name given to the diet plan, typically by its originator or creator.
*
*
* @var string
*/
- protected $mechanismOfAction;
+ protected $proprietaryName;
/**
- * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
+ * An active ingredient, typically chemical compounds and/or biologic substances.
*
*
- * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
+ * @var string
*/
- protected $maximumIntake;
+ protected $activeIngredient;
/**
- * An active ingredient, typically chemical compounds and/or biologic substances.
+ * The generic name of this drug or supplement.
*
*
* @var string
*/
- protected $activeIngredient;
+ protected $nonProprietaryName;
/**
- * Proprietary name given to the diet plan, typically by its originator or creator.
+ * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string
*/
- protected $proprietaryName;
+ protected $recommendedIntake;
/**
- * The generic name of this drug or supplement.
+ * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
*/
- protected $nonProprietaryName;
+ protected $maximumIntake;
/**
- * The manufacturer of the product.
+ * The drug or supplement's legal status, including any controlled substance schedules that apply.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null
*/
- protected $manufacturer;
+ protected $legalStatus;
/**
* True if this item's name is a proprietary/brand name (vs. generic name).
@@ -121,6 +104,14 @@ public static function fieldList() {
*/
protected $safetyConsideration;
+ /**
+ * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
+ *
+ *
+ * @var string
+ */
+ protected $mechanismOfAction;
+
/**
* @return string
*/
@@ -146,250 +137,225 @@ public function setTargetPopulation($targetPopulation)
}
/**
- * @return \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string
+ * @return string
*/
- public function getRecommendedIntake()
+ public function getProprietaryName()
{
- return $this->recommendedIntake;
+ return $this->proprietaryName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string $recommendedIntake
+ * @param string $proprietaryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecommendedIntake($recommendedIntake)
+ public function setProprietaryName($proprietaryName)
{
$types = [
- "\OpenActive\Models\SchemaOrg\RecommendedDoseSchedule",
"string",
];
- $recommendedIntake = self::checkTypes($recommendedIntake, $types);
+ $proprietaryName = self::checkTypes($proprietaryName, $types);
- $this->recommendedIntake = $recommendedIntake;
+ $this->proprietaryName = $proprietaryName;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return string
*/
- public function getLegalStatus()
+ public function getActiveIngredient()
{
- return $this->legalStatus;
+ return $this->activeIngredient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
+ * @param string $activeIngredient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegalStatus($legalStatus)
+ public function setActiveIngredient($activeIngredient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $legalStatus = self::checkTypes($legalStatus, $types);
+ $activeIngredient = self::checkTypes($activeIngredient, $types);
- $this->legalStatus = $legalStatus;
+ $this->activeIngredient = $activeIngredient;
}
/**
* @return string
*/
- public function getMechanismOfAction()
+ public function getNonProprietaryName()
{
- return $this->mechanismOfAction;
+ return $this->nonProprietaryName;
}
/**
- * @param string $mechanismOfAction
+ * @param string $nonProprietaryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMechanismOfAction($mechanismOfAction)
+ public function setNonProprietaryName($nonProprietaryName)
{
$types = [
"string",
];
- $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
+ $nonProprietaryName = self::checkTypes($nonProprietaryName, $types);
- $this->mechanismOfAction = $mechanismOfAction;
+ $this->nonProprietaryName = $nonProprietaryName;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
+ * @return \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string
*/
- public function getMaximumIntake()
+ public function getRecommendedIntake()
{
- return $this->maximumIntake;
+ return $this->recommendedIntake;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake
+ * @param \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string $recommendedIntake
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumIntake($maximumIntake)
+ public function setRecommendedIntake($recommendedIntake)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
+ "\OpenActive\Models\SchemaOrg\RecommendedDoseSchedule",
"string",
];
- $maximumIntake = self::checkTypes($maximumIntake, $types);
+ $recommendedIntake = self::checkTypes($recommendedIntake, $types);
- $this->maximumIntake = $maximumIntake;
+ $this->recommendedIntake = $recommendedIntake;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
*/
- public function getActiveIngredient()
+ public function getMaximumIntake()
{
- return $this->activeIngredient;
+ return $this->maximumIntake;
}
/**
- * @param string $activeIngredient
+ * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActiveIngredient($activeIngredient)
+ public function setMaximumIntake($maximumIntake)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
"string",
];
- $activeIngredient = self::checkTypes($activeIngredient, $types);
+ $maximumIntake = self::checkTypes($maximumIntake, $types);
- $this->activeIngredient = $activeIngredient;
+ $this->maximumIntake = $maximumIntake;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null
*/
- public function getProprietaryName()
+ public function getLegalStatus()
{
- return $this->proprietaryName;
+ return $this->legalStatus;
}
/**
- * @param string $proprietaryName
+ * @param \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null $legalStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProprietaryName($proprietaryName)
+ public function setLegalStatus($legalStatus)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
+ "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
"string",
+ "null",
];
- $proprietaryName = self::checkTypes($proprietaryName, $types);
+ $legalStatus = self::checkTypes($legalStatus, $types);
- $this->proprietaryName = $proprietaryName;
+ $this->legalStatus = $legalStatus;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getNonProprietaryName()
+ public function getIsProprietary()
{
- return $this->nonProprietaryName;
+ return $this->isProprietary;
}
/**
- * @param string $nonProprietaryName
+ * @param bool|null $isProprietary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNonProprietaryName($nonProprietaryName)
+ public function setIsProprietary($isProprietary)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $nonProprietaryName = self::checkTypes($nonProprietaryName, $types);
+ $isProprietary = self::checkTypes($isProprietary, $types);
- $this->nonProprietaryName = $nonProprietaryName;
+ $this->isProprietary = $isProprietary;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getManufacturer()
+ public function getSafetyConsideration()
{
- return $this->manufacturer;
+ return $this->safetyConsideration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer
+ * @param string $safetyConsideration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setManufacturer($manufacturer)
+ public function setSafetyConsideration($safetyConsideration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $manufacturer = self::checkTypes($manufacturer, $types);
-
- $this->manufacturer = $manufacturer;
- }
-
- /**
- * @return bool|null
- */
- public function getIsProprietary()
- {
- return $this->isProprietary;
- }
-
- /**
- * @param bool|null $isProprietary
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setIsProprietary($isProprietary)
- {
- $types = [
- "bool",
- "null",
- ];
-
- $isProprietary = self::checkTypes($isProprietary, $types);
+ $safetyConsideration = self::checkTypes($safetyConsideration, $types);
- $this->isProprietary = $isProprietary;
+ $this->safetyConsideration = $safetyConsideration;
}
/**
* @return string
*/
- public function getSafetyConsideration()
+ public function getMechanismOfAction()
{
- return $this->safetyConsideration;
+ return $this->mechanismOfAction;
}
/**
- * @param string $safetyConsideration
+ * @param string $mechanismOfAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSafetyConsideration($safetyConsideration)
+ public function setMechanismOfAction($mechanismOfAction)
{
$types = [
"string",
];
- $safetyConsideration = self::checkTypes($safetyConsideration, $types);
+ $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
- $this->safetyConsideration = $safetyConsideration;
+ $this->mechanismOfAction = $mechanismOfAction;
}
}
diff --git a/src/Models/SchemaOrg/DigitalDocumentPermission.php b/src/Models/SchemaOrg/DigitalDocumentPermission.php
index 894e5b04..98f440ac 100644
--- a/src/Models/SchemaOrg/DigitalDocumentPermission.php
+++ b/src/Models/SchemaOrg/DigitalDocumentPermission.php
@@ -28,7 +28,7 @@ public static function fieldList() {
* The person, organization, contact point, or audience that has been granted this permission.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
protected $grantee;
@@ -41,7 +41,7 @@ public static function fieldList() {
protected $permissionType;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
public function getGrantee()
{
@@ -49,7 +49,7 @@ public function getGrantee()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $grantee
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string $grantee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -58,8 +58,8 @@ public function setGrantee($grantee)
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
diff --git a/src/Models/SchemaOrg/DonateAction.php b/src/Models/SchemaOrg/DonateAction.php
index b95e3cae..7fef2f76 100644
--- a/src/Models/SchemaOrg/DonateAction.php
+++ b/src/Models/SchemaOrg/DonateAction.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A sub property of participant. The participant who is at the receiving end of the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
public function getRecipient()
{
@@ -40,17 +40,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
diff --git a/src/Models/SchemaOrg/DoseSchedule.php b/src/Models/SchemaOrg/DoseSchedule.php
index cd5742d8..466e6912 100644
--- a/src/Models/SchemaOrg/DoseSchedule.php
+++ b/src/Models/SchemaOrg/DoseSchedule.php
@@ -17,143 +17,143 @@ public static function getType()
public static function fieldList() {
$fields = [
- "targetPopulation" => "targetPopulation",
- "frequency" => "frequency",
"doseUnit" => "doseUnit",
+ "targetPopulation" => "targetPopulation",
"doseValue" => "doseValue",
+ "frequency" => "frequency",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'.
+ * The unit of the dose, e.g. 'mg'.
*
*
* @var string
*/
- protected $targetPopulation;
+ protected $doseUnit;
/**
- * How often the dose is taken, e.g. 'daily'.
+ * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'.
*
*
* @var string
*/
- protected $frequency;
+ protected $targetPopulation;
/**
- * The unit of the dose, e.g. 'mg'.
+ * The value of the dose, e.g. 500.
*
*
- * @var string
+ * @var Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- protected $doseUnit;
+ protected $doseValue;
/**
- * The value of the dose, e.g. 500.
+ * How often the dose is taken, e.g. 'daily'.
*
*
- * @var Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @var string
*/
- protected $doseValue;
+ protected $frequency;
/**
* @return string
*/
- public function getTargetPopulation()
+ public function getDoseUnit()
{
- return $this->targetPopulation;
+ return $this->doseUnit;
}
/**
- * @param string $targetPopulation
+ * @param string $doseUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetPopulation($targetPopulation)
+ public function setDoseUnit($doseUnit)
{
$types = [
"string",
];
- $targetPopulation = self::checkTypes($targetPopulation, $types);
+ $doseUnit = self::checkTypes($doseUnit, $types);
- $this->targetPopulation = $targetPopulation;
+ $this->doseUnit = $doseUnit;
}
/**
* @return string
*/
- public function getFrequency()
+ public function getTargetPopulation()
{
- return $this->frequency;
+ return $this->targetPopulation;
}
/**
- * @param string $frequency
+ * @param string $targetPopulation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFrequency($frequency)
+ public function setTargetPopulation($targetPopulation)
{
$types = [
"string",
];
- $frequency = self::checkTypes($frequency, $types);
+ $targetPopulation = self::checkTypes($targetPopulation, $types);
- $this->frequency = $frequency;
+ $this->targetPopulation = $targetPopulation;
}
/**
- * @return string
+ * @return Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getDoseUnit()
+ public function getDoseValue()
{
- return $this->doseUnit;
+ return $this->doseValue;
}
/**
- * @param string $doseUnit
+ * @param Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $doseValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDoseUnit($doseUnit)
+ public function setDoseValue($doseValue)
{
$types = [
- "string",
+ "Number",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "null",
];
- $doseUnit = self::checkTypes($doseUnit, $types);
+ $doseValue = self::checkTypes($doseValue, $types);
- $this->doseUnit = $doseUnit;
+ $this->doseValue = $doseValue;
}
/**
- * @return Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @return string
*/
- public function getDoseValue()
+ public function getFrequency()
{
- return $this->doseValue;
+ return $this->frequency;
}
/**
- * @param Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $doseValue
+ * @param string $frequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDoseValue($doseValue)
+ public function setFrequency($frequency)
{
$types = [
- "Number",
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "null",
+ "string",
];
- $doseValue = self::checkTypes($doseValue, $types);
+ $frequency = self::checkTypes($frequency, $types);
- $this->doseValue = $doseValue;
+ $this->frequency = $frequency;
}
}
diff --git a/src/Models/SchemaOrg/Drug.php b/src/Models/SchemaOrg/Drug.php
index b48cecd6..2b9c420c 100644
--- a/src/Models/SchemaOrg/Drug.php
+++ b/src/Models/SchemaOrg/Drug.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Drug extends \OpenActive\Models\SchemaOrg\Substance
+class Drug extends \OpenActive\Models\SchemaOrg\Product
{
/**
* @return string[]|null
@@ -17,121 +17,120 @@ public static function getType()
public static function fieldList() {
$fields = [
- "pregnancyCategory" => "pregnancyCategory",
- "overdosage" => "overdosage",
- "legalStatus" => "legalStatus",
- "mechanismOfAction" => "mechanismOfAction",
+ "administrationRoute" => "administrationRoute",
+ "breastfeedingWarning" => "breastfeedingWarning",
"clinicalPharmacology" => "clinicalPharmacology",
- "rxcui" => "rxcui",
- "interactingDrug" => "interactingDrug",
- "dosageForm" => "dosageForm",
"labelDetails" => "labelDetails",
- "maximumIntake" => "maximumIntake",
- "activeIngredient" => "activeIngredient",
- "relatedDrug" => "relatedDrug",
- "administrationRoute" => "administrationRoute",
- "drugUnit" => "drugUnit",
- "foodWarning" => "foodWarning",
"warning" => "warning",
- "prescriptionStatus" => "prescriptionStatus",
+ "includedInHealthInsurancePlan" => "includedInHealthInsurancePlan",
"proprietaryName" => "proprietaryName",
+ "drugUnit" => "drugUnit",
+ "prescriptionStatus" => "prescriptionStatus",
"drugClass" => "drugClass",
- "prescribingInfo" => "prescribingInfo",
- "includedInHealthInsurancePlan" => "includedInHealthInsurancePlan",
+ "activeIngredient" => "activeIngredient",
"nonProprietaryName" => "nonProprietaryName",
- "manufacturer" => "manufacturer",
- "isProprietary" => "isProprietary",
+ "alcoholWarning" => "alcoholWarning",
+ "interactingDrug" => "interactingDrug",
+ "availableStrength" => "availableStrength",
"clincalPharmacology" => "clincalPharmacology",
+ "prescribingInfo" => "prescribingInfo",
+ "maximumIntake" => "maximumIntake",
+ "legalStatus" => "legalStatus",
+ "isProprietary" => "isProprietary",
+ "pregnancyCategory" => "pregnancyCategory",
+ "rxcui" => "rxcui",
+ "doseSchedule" => "doseSchedule",
+ "overdosage" => "overdosage",
+ "dosageForm" => "dosageForm",
+ "relatedDrug" => "relatedDrug",
"isAvailableGenerically" => "isAvailableGenerically",
- "breastfeedingWarning" => "breastfeedingWarning",
+ "foodWarning" => "foodWarning",
+ "mechanismOfAction" => "mechanismOfAction",
"pregnancyWarning" => "pregnancyWarning",
- "alcoholWarning" => "alcoholWarning",
- "doseSchedule" => "doseSchedule",
- "availableStrength" => "availableStrength",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Pregnancy category of this drug.
+ * A route by which this drug may be administered, e.g. 'oral'.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
+ * @var string
*/
- protected $pregnancyCategory;
+ protected $administrationRoute;
/**
- * Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response.
+ * Any precaution, guidance, contraindication, etc. related to this drug's use by breastfeeding mothers.
*
*
* @var string
*/
- protected $overdosage;
+ protected $breastfeedingWarning;
/**
- * The drug or supplement's legal status, including any controlled substance schedules that apply.
+ * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @var string
*/
- protected $legalStatus;
+ protected $clinicalPharmacology;
/**
- * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
+ * Link to the drug's label details.
*
*
* @var string
*/
- protected $mechanismOfAction;
+ protected $labelDetails;
/**
- * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
+ * Any FDA or other warnings about the drug (text or URL).
*
*
* @var string
*/
- protected $clinicalPharmacology;
+ protected $warning;
/**
- * The RxCUI drug identifier from RXNORM.
+ * The insurance plans that cover this drug.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
*/
- protected $rxcui;
+ protected $includedInHealthInsurancePlan;
/**
- * Another drug that is known to interact with this drug in a way that impacts the effect of this drug or causes a risk to the patient. Note: disease interactions are typically captured as contraindications.
+ * Proprietary name given to the diet plan, typically by its originator or creator.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var string
*/
- protected $interactingDrug;
+ protected $proprietaryName;
/**
- * A dosage form in which this drug/supplement is available, e.g. 'tablet', 'suspension', 'injection'.
+ * The unit in which the drug is measured, e.g. '5 mg tablet'.
*
*
* @var string
*/
- protected $dosageForm;
+ protected $drugUnit;
/**
- * Link to the drug's label details.
+ * Indicates the status of drug prescription, e.g. local catalogs classifications or whether the drug is available by prescription or over-the-counter, etc.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus
*/
- protected $labelDetails;
+ protected $prescriptionStatus;
/**
- * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
+ * The class of drug this belongs to (e.g., statins).
*
*
- * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
+ * @var \OpenActive\Models\SchemaOrg\DrugClass|string
*/
- protected $maximumIntake;
+ protected $drugClass;
/**
* An active ingredient, typically chemical compounds and/or biologic substances.
@@ -142,409 +141,398 @@ public static function fieldList() {
protected $activeIngredient;
/**
- * Any other drug related to this one, for example commonly-prescribed alternatives.
+ * The generic name of this drug or supplement.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var string
*/
- protected $relatedDrug;
+ protected $nonProprietaryName;
/**
- * A route by which this drug may be administered, e.g. 'oral'.
+ * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug.
*
*
* @var string
*/
- protected $administrationRoute;
+ protected $alcoholWarning;
/**
- * The unit in which the drug is measured, e.g. '5 mg tablet'.
+ * Another drug that is known to interact with this drug in a way that impacts the effect of this drug or causes a risk to the patient. Note: disease interactions are typically captured as contraindications.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Drug|string
*/
- protected $drugUnit;
+ protected $interactingDrug;
/**
- * Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug.
+ * An available dosage strength for the drug.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DrugStrength|string
*/
- protected $foodWarning;
+ protected $availableStrength;
/**
- * Any FDA or other warnings about the drug (text or URL).
+ * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
*
*
* @var string
*/
- protected $warning;
+ protected $clincalPharmacology;
/**
- * Indicates the status of drug prescription eg. local catalogs classifications or whether the drug is available by prescription or over-the-counter, etc.
+ * Link to prescribing information for the drug.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
+ * @var string
*/
- protected $prescriptionStatus;
+ protected $prescribingInfo;
/**
- * Proprietary name given to the diet plan, typically by its originator or creator.
+ * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
*/
- protected $proprietaryName;
+ protected $maximumIntake;
/**
- * The class of drug this belongs to (e.g., statins).
+ * The drug or supplement's legal status, including any controlled substance schedules that apply.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugClass|string
+ * @var \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null
*/
- protected $drugClass;
+ protected $legalStatus;
/**
- * Link to prescribing information for the drug.
+ * True if this item's name is a proprietary/brand name (vs. generic name).
*
*
- * @var string
+ * @var bool|null
*/
- protected $prescribingInfo;
+ protected $isProprietary;
/**
- * The insurance plans that cover this drug.
+ * Pregnancy category of this drug.
*
*
- * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
+ * @var \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
*/
- protected $includedInHealthInsurancePlan;
+ protected $pregnancyCategory;
/**
- * The generic name of this drug or supplement.
+ * The RxCUI drug identifier from RXNORM.
*
*
* @var string
*/
- protected $nonProprietaryName;
+ protected $rxcui;
/**
- * The manufacturer of the product.
+ * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string
*/
- protected $manufacturer;
+ protected $doseSchedule;
/**
- * True if this item's name is a proprietary/brand name (vs. generic name).
+ * Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response.
*
*
- * @var bool|null
+ * @var string
*/
- protected $isProprietary;
+ protected $overdosage;
/**
- * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
+ * A dosage form in which this drug/supplement is available, e.g. 'tablet', 'suspension', 'injection'.
*
*
* @var string
*/
- protected $clincalPharmacology;
+ protected $dosageForm;
/**
- * True if the drug is available in a generic form (regardless of name).
+ * Any other drug related to this one, for example commonly-prescribed alternatives.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\Drug|string
*/
- protected $isAvailableGenerically;
+ protected $relatedDrug;
/**
- * Any precaution, guidance, contraindication, etc. related to this drug's use by breastfeeding mothers.
+ * True if the drug is available in a generic form (regardless of name).
*
*
- * @var string
+ * @var bool|null
*/
- protected $breastfeedingWarning;
+ protected $isAvailableGenerically;
/**
- * Any precaution, guidance, contraindication, etc. related to this drug's use during pregnancy.
+ * Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug.
*
*
* @var string
*/
- protected $pregnancyWarning;
+ protected $foodWarning;
/**
- * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug.
+ * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
*
*
* @var string
*/
- protected $alcoholWarning;
-
- /**
- * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string
- */
- protected $doseSchedule;
+ protected $mechanismOfAction;
/**
- * An available dosage strength for the drug.
+ * Any precaution, guidance, contraindication, etc. related to this drug's use during pregnancy.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugStrength|string
+ * @var string
*/
- protected $availableStrength;
+ protected $pregnancyWarning;
/**
- * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
+ * @return string
*/
- public function getPregnancyCategory()
+ public function getAdministrationRoute()
{
- return $this->pregnancyCategory;
+ return $this->administrationRoute;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string $pregnancyCategory
+ * @param string $administrationRoute
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPregnancyCategory($pregnancyCategory)
+ public function setAdministrationRoute($administrationRoute)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory",
"string",
];
- $pregnancyCategory = self::checkTypes($pregnancyCategory, $types);
+ $administrationRoute = self::checkTypes($administrationRoute, $types);
- $this->pregnancyCategory = $pregnancyCategory;
+ $this->administrationRoute = $administrationRoute;
}
/**
* @return string
*/
- public function getOverdosage()
+ public function getBreastfeedingWarning()
{
- return $this->overdosage;
+ return $this->breastfeedingWarning;
}
/**
- * @param string $overdosage
+ * @param string $breastfeedingWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOverdosage($overdosage)
+ public function setBreastfeedingWarning($breastfeedingWarning)
{
$types = [
"string",
];
- $overdosage = self::checkTypes($overdosage, $types);
+ $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types);
- $this->overdosage = $overdosage;
+ $this->breastfeedingWarning = $breastfeedingWarning;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return string
*/
- public function getLegalStatus()
+ public function getClinicalPharmacology()
{
- return $this->legalStatus;
+ return $this->clinicalPharmacology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
+ * @param string $clinicalPharmacology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegalStatus($legalStatus)
+ public function setClinicalPharmacology($clinicalPharmacology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $legalStatus = self::checkTypes($legalStatus, $types);
+ $clinicalPharmacology = self::checkTypes($clinicalPharmacology, $types);
- $this->legalStatus = $legalStatus;
+ $this->clinicalPharmacology = $clinicalPharmacology;
}
/**
* @return string
*/
- public function getMechanismOfAction()
+ public function getLabelDetails()
{
- return $this->mechanismOfAction;
+ return $this->labelDetails;
}
/**
- * @param string $mechanismOfAction
+ * @param string $labelDetails
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMechanismOfAction($mechanismOfAction)
+ public function setLabelDetails($labelDetails)
{
$types = [
"string",
];
- $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
+ $labelDetails = self::checkTypes($labelDetails, $types);
- $this->mechanismOfAction = $mechanismOfAction;
+ $this->labelDetails = $labelDetails;
}
/**
* @return string
*/
- public function getClinicalPharmacology()
+ public function getWarning()
{
- return $this->clinicalPharmacology;
+ return $this->warning;
}
/**
- * @param string $clinicalPharmacology
+ * @param string $warning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setClinicalPharmacology($clinicalPharmacology)
+ public function setWarning($warning)
{
$types = [
"string",
];
- $clinicalPharmacology = self::checkTypes($clinicalPharmacology, $types);
+ $warning = self::checkTypes($warning, $types);
- $this->clinicalPharmacology = $clinicalPharmacology;
+ $this->warning = $warning;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
*/
- public function getRxcui()
+ public function getIncludedInHealthInsurancePlan()
{
- return $this->rxcui;
+ return $this->includedInHealthInsurancePlan;
}
/**
- * @param string $rxcui
+ * @param \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string $includedInHealthInsurancePlan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRxcui($rxcui)
+ public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\HealthInsurancePlan",
"string",
];
- $rxcui = self::checkTypes($rxcui, $types);
+ $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types);
- $this->rxcui = $rxcui;
+ $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return string
*/
- public function getInteractingDrug()
+ public function getProprietaryName()
{
- return $this->interactingDrug;
+ return $this->proprietaryName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $interactingDrug
+ * @param string $proprietaryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractingDrug($interactingDrug)
+ public function setProprietaryName($proprietaryName)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $interactingDrug = self::checkTypes($interactingDrug, $types);
+ $proprietaryName = self::checkTypes($proprietaryName, $types);
- $this->interactingDrug = $interactingDrug;
+ $this->proprietaryName = $proprietaryName;
}
/**
* @return string
*/
- public function getDosageForm()
+ public function getDrugUnit()
{
- return $this->dosageForm;
+ return $this->drugUnit;
}
/**
- * @param string $dosageForm
+ * @param string $drugUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDosageForm($dosageForm)
+ public function setDrugUnit($drugUnit)
{
$types = [
"string",
];
- $dosageForm = self::checkTypes($dosageForm, $types);
+ $drugUnit = self::checkTypes($drugUnit, $types);
- $this->dosageForm = $dosageForm;
+ $this->drugUnit = $drugUnit;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus
*/
- public function getLabelDetails()
+ public function getPrescriptionStatus()
{
- return $this->labelDetails;
+ return $this->prescriptionStatus;
}
/**
- * @param string $labelDetails
+ * @param string|\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus $prescriptionStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLabelDetails($labelDetails)
+ public function setPrescriptionStatus($prescriptionStatus)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus",
];
- $labelDetails = self::checkTypes($labelDetails, $types);
+ $prescriptionStatus = self::checkTypes($prescriptionStatus, $types);
- $this->labelDetails = $labelDetails;
+ $this->prescriptionStatus = $prescriptionStatus;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
+ * @return \OpenActive\Models\SchemaOrg\DrugClass|string
*/
- public function getMaximumIntake()
+ public function getDrugClass()
{
- return $this->maximumIntake;
+ return $this->drugClass;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake
+ * @param \OpenActive\Models\SchemaOrg\DrugClass|string $drugClass
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumIntake($maximumIntake)
+ public function setDrugClass($drugClass)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
+ "\OpenActive\Models\SchemaOrg\DrugClass",
"string",
];
- $maximumIntake = self::checkTypes($maximumIntake, $types);
+ $drugClass = self::checkTypes($drugClass, $types);
- $this->maximumIntake = $maximumIntake;
+ $this->drugClass = $drugClass;
}
/**
@@ -571,493 +559,471 @@ public function setActiveIngredient($activeIngredient)
$this->activeIngredient = $activeIngredient;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
- */
- public function getRelatedDrug()
- {
- return $this->relatedDrug;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $relatedDrug
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setRelatedDrug($relatedDrug)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Drug",
- "string",
- ];
-
- $relatedDrug = self::checkTypes($relatedDrug, $types);
-
- $this->relatedDrug = $relatedDrug;
- }
-
/**
* @return string
*/
- public function getAdministrationRoute()
+ public function getNonProprietaryName()
{
- return $this->administrationRoute;
+ return $this->nonProprietaryName;
}
/**
- * @param string $administrationRoute
+ * @param string $nonProprietaryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdministrationRoute($administrationRoute)
+ public function setNonProprietaryName($nonProprietaryName)
{
$types = [
"string",
];
- $administrationRoute = self::checkTypes($administrationRoute, $types);
+ $nonProprietaryName = self::checkTypes($nonProprietaryName, $types);
- $this->administrationRoute = $administrationRoute;
+ $this->nonProprietaryName = $nonProprietaryName;
}
/**
* @return string
*/
- public function getDrugUnit()
+ public function getAlcoholWarning()
{
- return $this->drugUnit;
+ return $this->alcoholWarning;
}
/**
- * @param string $drugUnit
+ * @param string $alcoholWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDrugUnit($drugUnit)
+ public function setAlcoholWarning($alcoholWarning)
{
$types = [
"string",
];
- $drugUnit = self::checkTypes($drugUnit, $types);
+ $alcoholWarning = self::checkTypes($alcoholWarning, $types);
- $this->drugUnit = $drugUnit;
+ $this->alcoholWarning = $alcoholWarning;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getFoodWarning()
+ public function getInteractingDrug()
{
- return $this->foodWarning;
+ return $this->interactingDrug;
}
/**
- * @param string $foodWarning
+ * @param \OpenActive\Models\SchemaOrg\Drug|string $interactingDrug
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFoodWarning($foodWarning)
+ public function setInteractingDrug($interactingDrug)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $foodWarning = self::checkTypes($foodWarning, $types);
+ $interactingDrug = self::checkTypes($interactingDrug, $types);
- $this->foodWarning = $foodWarning;
+ $this->interactingDrug = $interactingDrug;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugStrength|string
*/
- public function getWarning()
+ public function getAvailableStrength()
{
- return $this->warning;
+ return $this->availableStrength;
}
/**
- * @param string $warning
+ * @param \OpenActive\Models\SchemaOrg\DrugStrength|string $availableStrength
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWarning($warning)
+ public function setAvailableStrength($availableStrength)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugStrength",
"string",
];
- $warning = self::checkTypes($warning, $types);
+ $availableStrength = self::checkTypes($availableStrength, $types);
- $this->warning = $warning;
+ $this->availableStrength = $availableStrength;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
+ * @return string
*/
- public function getPrescriptionStatus()
+ public function getClincalPharmacology()
{
- return $this->prescriptionStatus;
+ return $this->clincalPharmacology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string $prescriptionStatus
+ * @param string $clincalPharmacology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrescriptionStatus($prescriptionStatus)
+ public function setClincalPharmacology($clincalPharmacology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus",
"string",
];
- $prescriptionStatus = self::checkTypes($prescriptionStatus, $types);
+ $clincalPharmacology = self::checkTypes($clincalPharmacology, $types);
- $this->prescriptionStatus = $prescriptionStatus;
+ $this->clincalPharmacology = $clincalPharmacology;
}
/**
* @return string
*/
- public function getProprietaryName()
+ public function getPrescribingInfo()
{
- return $this->proprietaryName;
+ return $this->prescribingInfo;
}
/**
- * @param string $proprietaryName
+ * @param string $prescribingInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProprietaryName($proprietaryName)
+ public function setPrescribingInfo($prescribingInfo)
{
$types = [
"string",
];
- $proprietaryName = self::checkTypes($proprietaryName, $types);
+ $prescribingInfo = self::checkTypes($prescribingInfo, $types);
- $this->proprietaryName = $proprietaryName;
+ $this->prescribingInfo = $prescribingInfo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugClass|string
+ * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
*/
- public function getDrugClass()
+ public function getMaximumIntake()
{
- return $this->drugClass;
+ return $this->maximumIntake;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugClass|string $drugClass
+ * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDrugClass($drugClass)
+ public function setMaximumIntake($maximumIntake)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugClass",
+ "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
"string",
];
- $drugClass = self::checkTypes($drugClass, $types);
+ $maximumIntake = self::checkTypes($maximumIntake, $types);
- $this->drugClass = $drugClass;
+ $this->maximumIntake = $maximumIntake;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null
*/
- public function getPrescribingInfo()
+ public function getLegalStatus()
{
- return $this->prescribingInfo;
+ return $this->legalStatus;
}
/**
- * @param string $prescribingInfo
+ * @param \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null $legalStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrescribingInfo($prescribingInfo)
+ public function setLegalStatus($legalStatus)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
+ "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
"string",
+ "null",
];
- $prescribingInfo = self::checkTypes($prescribingInfo, $types);
+ $legalStatus = self::checkTypes($legalStatus, $types);
- $this->prescribingInfo = $prescribingInfo;
+ $this->legalStatus = $legalStatus;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
+ * @return bool|null
*/
- public function getIncludedInHealthInsurancePlan()
+ public function getIsProprietary()
{
- return $this->includedInHealthInsurancePlan;
+ return $this->isProprietary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string $includedInHealthInsurancePlan
+ * @param bool|null $isProprietary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan)
+ public function setIsProprietary($isProprietary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HealthInsurancePlan",
- "string",
+ "bool",
+ "null",
];
- $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types);
+ $isProprietary = self::checkTypes($isProprietary, $types);
- $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan;
+ $this->isProprietary = $isProprietary;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
*/
- public function getNonProprietaryName()
+ public function getPregnancyCategory()
{
- return $this->nonProprietaryName;
+ return $this->pregnancyCategory;
}
/**
- * @param string $nonProprietaryName
+ * @param \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string $pregnancyCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNonProprietaryName($nonProprietaryName)
+ public function setPregnancyCategory($pregnancyCategory)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory",
"string",
];
- $nonProprietaryName = self::checkTypes($nonProprietaryName, $types);
+ $pregnancyCategory = self::checkTypes($pregnancyCategory, $types);
- $this->nonProprietaryName = $nonProprietaryName;
+ $this->pregnancyCategory = $pregnancyCategory;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getManufacturer()
+ public function getRxcui()
{
- return $this->manufacturer;
+ return $this->rxcui;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer
+ * @param string $rxcui
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setManufacturer($manufacturer)
+ public function setRxcui($rxcui)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $manufacturer = self::checkTypes($manufacturer, $types);
+ $rxcui = self::checkTypes($rxcui, $types);
- $this->manufacturer = $manufacturer;
+ $this->rxcui = $rxcui;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string
*/
- public function getIsProprietary()
+ public function getDoseSchedule()
{
- return $this->isProprietary;
+ return $this->doseSchedule;
}
/**
- * @param bool|null $isProprietary
+ * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsProprietary($isProprietary)
+ public function setDoseSchedule($doseSchedule)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\DoseSchedule",
+ "string",
];
- $isProprietary = self::checkTypes($isProprietary, $types);
+ $doseSchedule = self::checkTypes($doseSchedule, $types);
- $this->isProprietary = $isProprietary;
+ $this->doseSchedule = $doseSchedule;
}
/**
* @return string
*/
- public function getClincalPharmacology()
+ public function getOverdosage()
{
- return $this->clincalPharmacology;
+ return $this->overdosage;
}
/**
- * @param string $clincalPharmacology
+ * @param string $overdosage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setClincalPharmacology($clincalPharmacology)
+ public function setOverdosage($overdosage)
{
$types = [
"string",
];
- $clincalPharmacology = self::checkTypes($clincalPharmacology, $types);
+ $overdosage = self::checkTypes($overdosage, $types);
- $this->clincalPharmacology = $clincalPharmacology;
+ $this->overdosage = $overdosage;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getIsAvailableGenerically()
+ public function getDosageForm()
{
- return $this->isAvailableGenerically;
+ return $this->dosageForm;
}
/**
- * @param bool|null $isAvailableGenerically
+ * @param string $dosageForm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsAvailableGenerically($isAvailableGenerically)
+ public function setDosageForm($dosageForm)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types);
+ $dosageForm = self::checkTypes($dosageForm, $types);
- $this->isAvailableGenerically = $isAvailableGenerically;
+ $this->dosageForm = $dosageForm;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getBreastfeedingWarning()
+ public function getRelatedDrug()
{
- return $this->breastfeedingWarning;
+ return $this->relatedDrug;
}
/**
- * @param string $breastfeedingWarning
+ * @param \OpenActive\Models\SchemaOrg\Drug|string $relatedDrug
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBreastfeedingWarning($breastfeedingWarning)
+ public function setRelatedDrug($relatedDrug)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types);
+ $relatedDrug = self::checkTypes($relatedDrug, $types);
- $this->breastfeedingWarning = $breastfeedingWarning;
+ $this->relatedDrug = $relatedDrug;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getPregnancyWarning()
+ public function getIsAvailableGenerically()
{
- return $this->pregnancyWarning;
+ return $this->isAvailableGenerically;
}
/**
- * @param string $pregnancyWarning
+ * @param bool|null $isAvailableGenerically
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPregnancyWarning($pregnancyWarning)
+ public function setIsAvailableGenerically($isAvailableGenerically)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $pregnancyWarning = self::checkTypes($pregnancyWarning, $types);
+ $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types);
- $this->pregnancyWarning = $pregnancyWarning;
+ $this->isAvailableGenerically = $isAvailableGenerically;
}
/**
* @return string
*/
- public function getAlcoholWarning()
+ public function getFoodWarning()
{
- return $this->alcoholWarning;
+ return $this->foodWarning;
}
/**
- * @param string $alcoholWarning
+ * @param string $foodWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlcoholWarning($alcoholWarning)
+ public function setFoodWarning($foodWarning)
{
$types = [
"string",
];
- $alcoholWarning = self::checkTypes($alcoholWarning, $types);
+ $foodWarning = self::checkTypes($foodWarning, $types);
- $this->alcoholWarning = $alcoholWarning;
+ $this->foodWarning = $foodWarning;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string
+ * @return string
*/
- public function getDoseSchedule()
+ public function getMechanismOfAction()
{
- return $this->doseSchedule;
+ return $this->mechanismOfAction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule
+ * @param string $mechanismOfAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDoseSchedule($doseSchedule)
+ public function setMechanismOfAction($mechanismOfAction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DoseSchedule",
"string",
];
- $doseSchedule = self::checkTypes($doseSchedule, $types);
+ $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
- $this->doseSchedule = $doseSchedule;
+ $this->mechanismOfAction = $mechanismOfAction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugStrength|string
+ * @return string
*/
- public function getAvailableStrength()
+ public function getPregnancyWarning()
{
- return $this->availableStrength;
+ return $this->pregnancyWarning;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugStrength|string $availableStrength
+ * @param string $pregnancyWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableStrength($availableStrength)
+ public function setPregnancyWarning($pregnancyWarning)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugStrength",
"string",
];
- $availableStrength = self::checkTypes($availableStrength, $types);
+ $pregnancyWarning = self::checkTypes($pregnancyWarning, $types);
- $this->availableStrength = $availableStrength;
+ $this->pregnancyWarning = $pregnancyWarning;
}
}
diff --git a/src/Models/SchemaOrg/DrugCost.php b/src/Models/SchemaOrg/DrugCost.php
index 2db962a3..9a202525 100644
--- a/src/Models/SchemaOrg/DrugCost.php
+++ b/src/Models/SchemaOrg/DrugCost.php
@@ -17,17 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
- "applicableLocation" => "applicableLocation",
"costPerUnit" => "costPerUnit",
- "costCategory" => "costCategory",
+ "applicableLocation" => "applicableLocation",
"drugUnit" => "drugUnit",
- "costCurrency" => "costCurrency",
+ "costCategory" => "costCategory",
"costOrigin" => "costOrigin",
+ "costCurrency" => "costCurrency",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The cost per unit of the drug.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|Number|null
+ */
+ protected $costPerUnit;
+
/**
* The location in which the status applies.
*
@@ -37,12 +45,12 @@ public static function fieldList() {
protected $applicableLocation;
/**
- * The cost per unit of the drug.
+ * The unit in which the drug is measured, e.g. '5 mg tablet'.
*
*
- * @var string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @var string
*/
- protected $costPerUnit;
+ protected $drugUnit;
/**
* The category of cost, such as wholesale, retail, reimbursement cap, etc.
@@ -53,15 +61,15 @@ public static function fieldList() {
protected $costCategory;
/**
- * The unit in which the drug is measured, e.g. '5 mg tablet'.
+ * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'.
*
*
* @var string
*/
- protected $drugUnit;
+ protected $costOrigin;
/**
- * The currency (in 3-letter of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217.
+ * The currency (in 3-letter) of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217.
*
*
* @var string
@@ -69,12 +77,31 @@ public static function fieldList() {
protected $costCurrency;
/**
- * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'.
- *
- *
- * @var string
+ * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|Number|null
*/
- protected $costOrigin;
+ public function getCostPerUnit()
+ {
+ return $this->costPerUnit;
+ }
+
+ /**
+ * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|Number|null $costPerUnit
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCostPerUnit($costPerUnit)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "string",
+ "Number",
+ "null",
+ ];
+
+ $costPerUnit = self::checkTypes($costPerUnit, $types);
+
+ $this->costPerUnit = $costPerUnit;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
@@ -102,30 +129,27 @@ public function setApplicableLocation($applicableLocation)
}
/**
- * @return string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @return string
*/
- public function getCostPerUnit()
+ public function getDrugUnit()
{
- return $this->costPerUnit;
+ return $this->drugUnit;
}
/**
- * @param string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $costPerUnit
+ * @param string $drugUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCostPerUnit($costPerUnit)
+ public function setDrugUnit($drugUnit)
{
$types = [
"string",
- "Number",
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "null",
];
- $costPerUnit = self::checkTypes($costPerUnit, $types);
+ $drugUnit = self::checkTypes($drugUnit, $types);
- $this->costPerUnit = $costPerUnit;
+ $this->drugUnit = $drugUnit;
}
/**
@@ -156,25 +180,25 @@ public function setCostCategory($costCategory)
/**
* @return string
*/
- public function getDrugUnit()
+ public function getCostOrigin()
{
- return $this->drugUnit;
+ return $this->costOrigin;
}
/**
- * @param string $drugUnit
+ * @param string $costOrigin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDrugUnit($drugUnit)
+ public function setCostOrigin($costOrigin)
{
$types = [
"string",
];
- $drugUnit = self::checkTypes($drugUnit, $types);
+ $costOrigin = self::checkTypes($costOrigin, $types);
- $this->drugUnit = $drugUnit;
+ $this->costOrigin = $costOrigin;
}
/**
@@ -201,28 +225,4 @@ public function setCostCurrency($costCurrency)
$this->costCurrency = $costCurrency;
}
- /**
- * @return string
- */
- public function getCostOrigin()
- {
- return $this->costOrigin;
- }
-
- /**
- * @param string $costOrigin
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setCostOrigin($costOrigin)
- {
- $types = [
- "string",
- ];
-
- $costOrigin = self::checkTypes($costOrigin, $types);
-
- $this->costOrigin = $costOrigin;
- }
-
}
diff --git a/src/Models/SchemaOrg/DrugStrength.php b/src/Models/SchemaOrg/DrugStrength.php
index a5eaf983..5d1ab0ae 100644
--- a/src/Models/SchemaOrg/DrugStrength.php
+++ b/src/Models/SchemaOrg/DrugStrength.php
@@ -17,31 +17,31 @@ public static function getType()
public static function fieldList() {
$fields = [
- "availableIn" => "availableIn",
- "strengthUnit" => "strengthUnit",
- "maximumIntake" => "maximumIntake",
"activeIngredient" => "activeIngredient",
"strengthValue" => "strengthValue",
+ "maximumIntake" => "maximumIntake",
+ "availableIn" => "availableIn",
+ "strengthUnit" => "strengthUnit",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The location in which the strength is available.
+ * An active ingredient, typically chemical compounds and/or biologic substances.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var string
*/
- protected $availableIn;
+ protected $activeIngredient;
/**
- * The units of an active ingredient's strength, e.g. mg.
+ * The value of an active ingredient's strength, e.g. 325.
*
*
- * @var string
+ * @var Number|null
*/
- protected $strengthUnit;
+ protected $strengthValue;
/**
* Recommended intake of this supplement for a given population as defined by a specific recommending authority.
@@ -52,68 +52,68 @@ public static function fieldList() {
protected $maximumIntake;
/**
- * An active ingredient, typically chemical compounds and/or biologic substances.
+ * The location in which the strength is available.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $activeIngredient;
+ protected $availableIn;
/**
- * The value of an active ingredient's strength, e.g. 325.
+ * The units of an active ingredient's strength, e.g. mg.
*
*
- * @var Number|null
+ * @var string
*/
- protected $strengthValue;
+ protected $strengthUnit;
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string
*/
- public function getAvailableIn()
+ public function getActiveIngredient()
{
- return $this->availableIn;
+ return $this->activeIngredient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $availableIn
+ * @param string $activeIngredient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableIn($availableIn)
+ public function setActiveIngredient($activeIngredient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $availableIn = self::checkTypes($availableIn, $types);
+ $activeIngredient = self::checkTypes($activeIngredient, $types);
- $this->availableIn = $availableIn;
+ $this->activeIngredient = $activeIngredient;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getStrengthUnit()
+ public function getStrengthValue()
{
- return $this->strengthUnit;
+ return $this->strengthValue;
}
/**
- * @param string $strengthUnit
+ * @param Number|null $strengthValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStrengthUnit($strengthUnit)
+ public function setStrengthValue($strengthValue)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $strengthUnit = self::checkTypes($strengthUnit, $types);
+ $strengthValue = self::checkTypes($strengthValue, $types);
- $this->strengthUnit = $strengthUnit;
+ $this->strengthValue = $strengthValue;
}
/**
@@ -142,52 +142,52 @@ public function setMaximumIntake($maximumIntake)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getActiveIngredient()
+ public function getAvailableIn()
{
- return $this->activeIngredient;
+ return $this->availableIn;
}
/**
- * @param string $activeIngredient
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $availableIn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActiveIngredient($activeIngredient)
+ public function setAvailableIn($availableIn)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $activeIngredient = self::checkTypes($activeIngredient, $types);
+ $availableIn = self::checkTypes($availableIn, $types);
- $this->activeIngredient = $activeIngredient;
+ $this->availableIn = $availableIn;
}
/**
- * @return Number|null
+ * @return string
*/
- public function getStrengthValue()
+ public function getStrengthUnit()
{
- return $this->strengthValue;
+ return $this->strengthUnit;
}
/**
- * @param Number|null $strengthValue
+ * @param string $strengthUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStrengthValue($strengthValue)
+ public function setStrengthUnit($strengthUnit)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $strengthValue = self::checkTypes($strengthValue, $types);
+ $strengthUnit = self::checkTypes($strengthUnit, $types);
- $this->strengthValue = $strengthValue;
+ $this->strengthUnit = $strengthUnit;
}
}
diff --git a/src/Models/SchemaOrg/EducationEvent.php b/src/Models/SchemaOrg/EducationEvent.php
index 5c799d1e..f3e89833 100644
--- a/src/Models/SchemaOrg/EducationEvent.php
+++ b/src/Models/SchemaOrg/EducationEvent.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "teaches" => "teaches",
- "educationalLevel" => "educationalLevel",
"assesses" => "assesses",
+ "educationalLevel" => "educationalLevel",
+ "teaches" => "teaches",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.
+ * The item being described is intended to assess the competency or learning outcome defined by the referenced term.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $teaches;
+ protected $assesses;
/**
* The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators.
@@ -42,36 +42,36 @@ public static function fieldList() {
protected $educationalLevel;
/**
- * The item being described is intended to assess the competency or learning outcome defined by the referenced term.
+ * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $assesses;
+ protected $teaches;
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getTeaches()
+ public function getAssesses()
{
- return $this->teaches;
+ return $this->assesses;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTeaches($teaches)
+ public function setAssesses($assesses)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $teaches = self::checkTypes($teaches, $types);
+ $assesses = self::checkTypes($assesses, $types);
- $this->teaches = $teaches;
+ $this->assesses = $assesses;
}
/**
@@ -100,28 +100,28 @@ public function setEducationalLevel($educationalLevel)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getAssesses()
+ public function getTeaches()
{
- return $this->assesses;
+ return $this->teaches;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssesses($assesses)
+ public function setTeaches($teaches)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
];
- $assesses = self::checkTypes($assesses, $types);
+ $teaches = self::checkTypes($teaches, $types);
- $this->assesses = $assesses;
+ $this->teaches = $teaches;
}
}
diff --git a/src/Models/SchemaOrg/EducationalOccupationalCredential.php b/src/Models/SchemaOrg/EducationalOccupationalCredential.php
index fc10910a..7ed952c4 100644
--- a/src/Models/SchemaOrg/EducationalOccupationalCredential.php
+++ b/src/Models/SchemaOrg/EducationalOccupationalCredential.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"validFor" => "validFor",
- "educationalLevel" => "educationalLevel",
"credentialCategory" => "credentialCategory",
- "recognizedBy" => "recognizedBy",
"competencyRequired" => "competencyRequired",
+ "educationalLevel" => "educationalLevel",
+ "recognizedBy" => "recognizedBy",
"validIn" => "validIn",
];
@@ -37,39 +37,39 @@ public static function fieldList() {
protected $validFor;
/**
- * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators.
+ * The category or type of credential being described, for example "degree”, “certificate”, “badge”, or more specific term.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $educationalLevel;
+ protected $credentialCategory;
/**
- * The category or type of credential being described, for example "degree”, “certificate”, “badge”, or more specific term.
+ * Knowledge, skill, ability or personal attribute that must be demonstrated by a person or other entity in order to do something such as earn an Educational Occupational Credential or understand a LearningResource.
*
*
* @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $credentialCategory;
+ protected $competencyRequired;
/**
- * An organization that acknowledges the validity, value or utility of a credential. Note: recognition may include a process of quality assurance or accreditation.
+ * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $recognizedBy;
+ protected $educationalLevel;
/**
- * Knowledge, skill, ability or personal attribute that must be demonstrated by a person or other entity in order to do something such as earn an Educational Occupational Credential or understand a LearningResource.
+ * An organization that acknowledges the validity, value or utility of a credential. Note: recognition may include a process of quality assurance or accreditation.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $competencyRequired;
+ protected $recognizedBy;
/**
- * The geographic area where a permit or similar thing is valid.
+ * The geographic area where the item is valid. Applies for example to a [[Permit]], a [[Certification]], or an [[EducationalOccupationalCredential]].
*
*
* @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
@@ -103,103 +103,103 @@ public function setValidFor($validFor)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getEducationalLevel()
+ public function getCredentialCategory()
{
- return $this->educationalLevel;
+ return $this->credentialCategory;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $credentialCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalLevel($educationalLevel)
+ public function setCredentialCategory($credentialCategory)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
];
- $educationalLevel = self::checkTypes($educationalLevel, $types);
+ $credentialCategory = self::checkTypes($credentialCategory, $types);
- $this->educationalLevel = $educationalLevel;
+ $this->credentialCategory = $credentialCategory;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getCredentialCategory()
+ public function getCompetencyRequired()
{
- return $this->credentialCategory;
+ return $this->competencyRequired;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $credentialCategory
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $competencyRequired
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCredentialCategory($credentialCategory)
+ public function setCompetencyRequired($competencyRequired)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $credentialCategory = self::checkTypes($credentialCategory, $types);
+ $competencyRequired = self::checkTypes($competencyRequired, $types);
- $this->credentialCategory = $credentialCategory;
+ $this->competencyRequired = $competencyRequired;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getRecognizedBy()
+ public function getEducationalLevel()
{
- return $this->recognizedBy;
+ return $this->educationalLevel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizedBy
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecognizedBy($recognizedBy)
+ public function setEducationalLevel($educationalLevel)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $recognizedBy = self::checkTypes($recognizedBy, $types);
+ $educationalLevel = self::checkTypes($educationalLevel, $types);
- $this->recognizedBy = $recognizedBy;
+ $this->educationalLevel = $educationalLevel;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getCompetencyRequired()
+ public function getRecognizedBy()
{
- return $this->competencyRequired;
+ return $this->recognizedBy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $competencyRequired
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizedBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCompetencyRequired($competencyRequired)
+ public function setRecognizedBy($recognizedBy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $competencyRequired = self::checkTypes($competencyRequired, $types);
+ $recognizedBy = self::checkTypes($recognizedBy, $types);
- $this->competencyRequired = $competencyRequired;
+ $this->recognizedBy = $recognizedBy;
}
/**
diff --git a/src/Models/SchemaOrg/EducationalOccupationalProgram.php b/src/Models/SchemaOrg/EducationalOccupationalProgram.php
index 56cf7a09..6089bfb2 100644
--- a/src/Models/SchemaOrg/EducationalOccupationalProgram.php
+++ b/src/Models/SchemaOrg/EducationalOccupationalProgram.php
@@ -17,182 +17,183 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "applicationStartDate" => "applicationStartDate",
+ "trainingSalary" => "trainingSalary",
+ "financialAidEligible" => "financialAidEligible",
"programPrerequisites" => "programPrerequisites",
- "hasCourse" => "hasCourse",
"startDate" => "startDate",
- "salaryUponCompletion" => "salaryUponCompletion",
- "termsPerYear" => "termsPerYear",
- "dayOfWeek" => "dayOfWeek",
"offers" => "offers",
- "typicalCreditsPerTerm" => "typicalCreditsPerTerm",
- "applicationStartDate" => "applicationStartDate",
- "timeOfDay" => "timeOfDay",
"endDate" => "endDate",
- "provider" => "provider",
- "trainingSalary" => "trainingSalary",
- "educationalCredentialAwarded" => "educationalCredentialAwarded",
- "numberOfCredits" => "numberOfCredits",
+ "maximumEnrollment" => "maximumEnrollment",
"timeToComplete" => "timeToComplete",
- "occupationalCredentialAwarded" => "occupationalCredentialAwarded",
+ "dayOfWeek" => "dayOfWeek",
+ "salaryUponCompletion" => "salaryUponCompletion",
+ "educationalCredentialAwarded" => "educationalCredentialAwarded",
+ "occupationalCategory" => "occupationalCategory",
"termDuration" => "termDuration",
- "educationalProgramMode" => "educationalProgramMode",
+ "typicalCreditsPerTerm" => "typicalCreditsPerTerm",
+ "numberOfCredits" => "numberOfCredits",
"programType" => "programType",
- "maximumEnrollment" => "maximumEnrollment",
- "financialAidEligible" => "financialAidEligible",
+ "provider" => "provider",
+ "educationalProgramMode" => "educationalProgramMode",
+ "termsPerYear" => "termsPerYear",
+ "timeOfDay" => "timeOfDay",
+ "hasCourse" => "hasCourse",
+ "occupationalCredentialAwarded" => "occupationalCredentialAwarded",
"applicationDeadline" => "applicationDeadline",
- "occupationalCategory" => "occupationalCategory",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Prerequisites for enrolling in the program.
+ * The date at which the program begins collecting applications for the next enrollment cycle.
*
*
- * @var \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var Date|null
*/
- protected $programPrerequisites;
+ protected $applicationStartDate;
/**
- * A course or class that is one of the learning opportunities that constitute an educational / occupational program. No information is implied about whether the course is mandatory or optional; no guarantee is implied about whether the course will be available to everyone on the program.
+ * The estimated salary earned while in the program.
*
*
- * @var \OpenActive\Models\SchemaOrg\Course|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- protected $hasCourse;
+ protected $trainingSalary;
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * A financial aid type or program which students may use to pay for tuition or fees associated with the program.
*
*
- * @var Date|DateTime|null
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $startDate;
+ protected $financialAidEligible;
/**
- * The expected salary upon completing the training.
+ * Prerequisites for enrolling in the program.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @var \OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\AlignmentObject|string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $salaryUponCompletion;
+ protected $programPrerequisites;
/**
- * The number of times terms of study are offered per year. Semesters and quarters are common units for term. For example, if the student can only take 2 semesters for the program in one year, then termsPerYear should be 2.
+ * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var Number|null
+ * @var Date|DateTime|null
*/
- protected $termsPerYear;
+ protected $startDate;
/**
- * The day of the week for which these opening hours are valid.
+ * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ *
*
*
- * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null
+ * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- protected $dayOfWeek;
+ protected $offers;
/**
- * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
- *
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var Date|DateTime|null
*/
- protected $offers;
+ protected $endDate;
/**
- * The number of credits or units a full-time student would be expected to take in 1 term however 'term' is defined by the institution.
+ * The maximum number of students who may be enrolled in the program.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @var int|null
*/
- protected $typicalCreditsPerTerm;
+ protected $maximumEnrollment;
/**
- * The date at which the program begins collecting applications for the next enrollment cycle.
+ * The expected length of time to complete the program if attending full-time.
*
*
- * @var Date|null
+ * @var DateInterval|string|null
*/
- protected $applicationStartDate;
+ protected $timeToComplete;
/**
- * The time of day the program normally runs. For example, "evenings".
+ * The day of the week for which these opening hours are valid.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null
*/
- protected $timeOfDay;
+ protected $dayOfWeek;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The expected salary upon completing the training.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- protected $endDate;
+ protected $salaryUponCompletion;
/**
- * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
+ * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $provider;
+ protected $educationalCredentialAwarded;
/**
- * The estimated salary earned while in the program.
+ * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
+ * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @var string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- protected $trainingSalary;
+ protected $occupationalCategory;
/**
- * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program.
+ * The amount of time in a term as defined by the institution. A term is a length of time where students take one or more classes. Semesters and quarters are common units for term.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var DateInterval|string|null
*/
- protected $educationalCredentialAwarded;
+ protected $termDuration;
/**
- * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.
+ * The number of credits or units a full-time student would be expected to take in 1 term however 'term' is defined by the institution.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null
*/
- protected $numberOfCredits;
+ protected $typicalCreditsPerTerm;
/**
- * The expected length of time to complete the program if attending full-time.
+ * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null
*/
- protected $timeToComplete;
+ protected $numberOfCredits;
/**
- * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program.
+ * The type of educational or occupational program. For example, classroom, internship, alternance, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $occupationalCredentialAwarded;
+ protected $programType;
/**
- * The amount of time in a term as defined by the institution. A term is a length of time where students take one or more classes. Semesters and quarters are common units for term.
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $termDuration;
+ protected $provider;
/**
- * Similar to courseMode, The medium or means of delivery of the program as a whole. The value may either be a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous ).
+ * Similar to courseMode, the medium or means of delivery of the program as a whole. The value may either be a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous ).
*
*
* @var string
@@ -200,505 +201,505 @@ public static function fieldList() {
protected $educationalProgramMode;
/**
- * The type of educational or occupational program. For example, classroom, internship, alternance, etc..
+ * The number of times terms of study are offered per year. Semesters and quarters are common units for term. For example, if the student can only take 2 semesters for the program in one year, then termsPerYear should be 2.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var Number|null
*/
- protected $programType;
+ protected $termsPerYear;
/**
- * The maximum number of students who may be enrolled in the program.
+ * The time of day the program normally runs. For example, "evenings".
*
*
- * @var int|null
+ * @var string
*/
- protected $maximumEnrollment;
+ protected $timeOfDay;
/**
- * A financial aid type or program which students may use to pay for tuition or fees associated with the program.
+ * A course or class that is one of the learning opportunities that constitute an educational / occupational program. No information is implied about whether the course is mandatory or optional; no guarantee is implied about whether the course will be available to everyone on the program.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\Course|string
*/
- protected $financialAidEligible;
+ protected $hasCourse;
/**
- * The date at which the program stops collecting applications for the next enrollment cycle.
+ * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program.
*
*
- * @var Date|null
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $applicationDeadline;
+ protected $occupationalCredentialAwarded;
/**
- * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
- * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
+ * The date at which the program stops collecting applications for the next enrollment cycle.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var Date|null
*/
- protected $occupationalCategory;
+ protected $applicationDeadline;
/**
- * @return \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return Date|null
*/
- public function getProgramPrerequisites()
+ public function getApplicationStartDate()
{
- return $this->programPrerequisites;
+ return $this->applicationStartDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $programPrerequisites
+ * @param Date|null $applicationStartDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProgramPrerequisites($programPrerequisites)
+ public function setApplicationStartDate($applicationStartDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AlignmentObject",
- "\OpenActive\Models\SchemaOrg\Course",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
- "string",
+ "Date",
+ "null",
];
- $programPrerequisites = self::checkTypes($programPrerequisites, $types);
+ $applicationStartDate = self::checkTypes($applicationStartDate, $types);
- $this->programPrerequisites = $programPrerequisites;
+ $this->applicationStartDate = $applicationStartDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Course|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- public function getHasCourse()
+ public function getTrainingSalary()
{
- return $this->hasCourse;
+ return $this->trainingSalary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Course|string $hasCourse
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $trainingSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasCourse($hasCourse)
+ public function setTrainingSalary($trainingSalary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Course",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
];
- $hasCourse = self::checkTypes($hasCourse, $types);
+ $trainingSalary = self::checkTypes($trainingSalary, $types);
- $this->hasCourse = $hasCourse;
+ $this->trainingSalary = $trainingSalary;
}
/**
- * @return Date|DateTime|null
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getStartDate()
+ public function getFinancialAidEligible()
{
- return $this->startDate;
+ return $this->financialAidEligible;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $financialAidEligible
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setFinancialAidEligible($financialAidEligible)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $startDate = self::checkTypes($startDate, $types);
+ $financialAidEligible = self::checkTypes($financialAidEligible, $types);
- $this->startDate = $startDate;
+ $this->financialAidEligible = $financialAidEligible;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @return \OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\AlignmentObject|string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getSalaryUponCompletion()
+ public function getProgramPrerequisites()
{
- return $this->salaryUponCompletion;
+ return $this->programPrerequisites;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $salaryUponCompletion
+ * @param \OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\AlignmentObject|string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $programPrerequisites
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSalaryUponCompletion($salaryUponCompletion)
+ public function setProgramPrerequisites($programPrerequisites)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
+ "\OpenActive\Models\SchemaOrg\Course",
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types);
+ $programPrerequisites = self::checkTypes($programPrerequisites, $types);
- $this->salaryUponCompletion = $salaryUponCompletion;
+ $this->programPrerequisites = $programPrerequisites;
}
/**
- * @return Number|null
+ * @return Date|DateTime|null
*/
- public function getTermsPerYear()
+ public function getStartDate()
{
- return $this->termsPerYear;
+ return $this->startDate;
}
/**
- * @param Number|null $termsPerYear
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTermsPerYear($termsPerYear)
+ public function setStartDate($startDate)
{
$types = [
- "Number",
+ "Date",
+ "DateTime",
"null",
];
- $termsPerYear = self::checkTypes($termsPerYear, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->termsPerYear = $termsPerYear;
+ $this->startDate = $startDate;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null
+ * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getDayOfWeek()
+ public function getOffers()
{
- return $this->dayOfWeek;
+ return $this->offers;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|null $dayOfWeek
+ * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDayOfWeek($dayOfWeek)
+ public function setOffers($offers)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DayOfWeek",
- "null",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "string",
];
- $dayOfWeek = self::checkTypes($dayOfWeek, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->dayOfWeek = $dayOfWeek;
+ $this->offers = $offers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return Date|DateTime|null
*/
- public function getOffers()
+ public function getEndDate()
{
- return $this->offers;
+ return $this->endDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setEndDate($endDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $offers = self::checkTypes($offers, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->offers = $offers;
+ $this->endDate = $endDate;
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @return int|null
*/
- public function getTypicalCreditsPerTerm()
+ public function getMaximumEnrollment()
{
- return $this->typicalCreditsPerTerm;
+ return $this->maximumEnrollment;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $typicalCreditsPerTerm
+ * @param int|null $maximumEnrollment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypicalCreditsPerTerm($typicalCreditsPerTerm)
+ public function setMaximumEnrollment($maximumEnrollment)
{
$types = [
"int",
- "\OpenActive\Models\SchemaOrg\StructuredValue",
- "string",
"null",
];
- $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types);
+ $maximumEnrollment = self::checkTypes($maximumEnrollment, $types);
- $this->typicalCreditsPerTerm = $typicalCreditsPerTerm;
+ $this->maximumEnrollment = $maximumEnrollment;
}
/**
- * @return Date|null
+ * @return DateInterval|string|null
*/
- public function getApplicationStartDate()
+ public function getTimeToComplete()
{
- return $this->applicationStartDate;
+ return $this->timeToComplete;
}
/**
- * @param Date|null $applicationStartDate
+ * @param DateInterval|string|null $timeToComplete
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationStartDate($applicationStartDate)
+ public function setTimeToComplete($timeToComplete)
{
$types = [
- "Date",
+ "DateInterval",
+ "string",
"null",
];
- $applicationStartDate = self::checkTypes($applicationStartDate, $types);
+ $timeToComplete = self::checkTypes($timeToComplete, $types);
- $this->applicationStartDate = $applicationStartDate;
+ $this->timeToComplete = $timeToComplete;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null
*/
- public function getTimeOfDay()
+ public function getDayOfWeek()
{
- return $this->timeOfDay;
+ return $this->dayOfWeek;
}
/**
- * @param string $timeOfDay
+ * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|null $dayOfWeek
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTimeOfDay($timeOfDay)
+ public function setDayOfWeek($dayOfWeek)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\DayOfWeek",
+ "null",
];
- $timeOfDay = self::checkTypes($timeOfDay, $types);
+ $dayOfWeek = self::checkTypes($dayOfWeek, $types);
- $this->timeOfDay = $timeOfDay;
+ $this->dayOfWeek = $dayOfWeek;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- public function getEndDate()
+ public function getSalaryUponCompletion()
{
- return $this->endDate;
+ return $this->salaryUponCompletion;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $salaryUponCompletion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setSalaryUponCompletion($salaryUponCompletion)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
+ "string",
];
- $endDate = self::checkTypes($endDate, $types);
+ $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types);
- $this->endDate = $endDate;
+ $this->salaryUponCompletion = $salaryUponCompletion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getProvider()
+ public function getEducationalCredentialAwarded()
{
- return $this->provider;
+ return $this->educationalCredentialAwarded;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setEducationalCredentialAwarded($educationalCredentialAwarded)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $provider = self::checkTypes($provider, $types);
+ $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
- $this->provider = $provider;
+ $this->educationalCredentialAwarded = $educationalCredentialAwarded;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @return string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- public function getTrainingSalary()
+ public function getOccupationalCategory()
{
- return $this->trainingSalary;
+ return $this->occupationalCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $trainingSalary
+ * @param string|\OpenActive\Models\SchemaOrg\CategoryCode $occupationalCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrainingSalary($trainingSalary)
+ public function setOccupationalCategory($occupationalCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
];
- $trainingSalary = self::checkTypes($trainingSalary, $types);
+ $occupationalCategory = self::checkTypes($occupationalCategory, $types);
- $this->trainingSalary = $trainingSalary;
+ $this->occupationalCategory = $occupationalCategory;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return DateInterval|string|null
*/
- public function getEducationalCredentialAwarded()
+ public function getTermDuration()
{
- return $this->educationalCredentialAwarded;
+ return $this->termDuration;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded
+ * @param DateInterval|string|null $termDuration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalCredentialAwarded($educationalCredentialAwarded)
+ public function setTermDuration($termDuration)
{
$types = [
+ "DateInterval",
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "null",
];
- $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
+ $termDuration = self::checkTypes($termDuration, $types);
- $this->educationalCredentialAwarded = $educationalCredentialAwarded;
+ $this->termDuration = $termDuration;
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null
*/
- public function getNumberOfCredits()
+ public function getTypicalCreditsPerTerm()
{
- return $this->numberOfCredits;
+ return $this->typicalCreditsPerTerm;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $numberOfCredits
+ * @param \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null $typicalCreditsPerTerm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfCredits($numberOfCredits)
+ public function setTypicalCreditsPerTerm($typicalCreditsPerTerm)
{
$types = [
- "int",
"\OpenActive\Models\SchemaOrg\StructuredValue",
"string",
+ "int",
"null",
];
- $numberOfCredits = self::checkTypes($numberOfCredits, $types);
+ $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types);
- $this->numberOfCredits = $numberOfCredits;
+ $this->typicalCreditsPerTerm = $typicalCreditsPerTerm;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null
*/
- public function getTimeToComplete()
+ public function getNumberOfCredits()
{
- return $this->timeToComplete;
+ return $this->numberOfCredits;
}
/**
- * @param DateInterval|string|null $timeToComplete
+ * @param \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null $numberOfCredits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTimeToComplete($timeToComplete)
+ public function setNumberOfCredits($numberOfCredits)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
"string",
+ "int",
"null",
];
- $timeToComplete = self::checkTypes($timeToComplete, $types);
+ $numberOfCredits = self::checkTypes($numberOfCredits, $types);
- $this->timeToComplete = $timeToComplete;
+ $this->numberOfCredits = $numberOfCredits;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getOccupationalCredentialAwarded()
+ public function getProgramType()
{
- return $this->occupationalCredentialAwarded;
+ return $this->programType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $programType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCredentialAwarded($occupationalCredentialAwarded)
+ public function setProgramType($programType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
+ $programType = self::checkTypes($programType, $types);
- $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
+ $this->programType = $programType;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getTermDuration()
+ public function getProvider()
{
- return $this->termDuration;
+ return $this->provider;
}
/**
- * @param DateInterval|string|null $termDuration
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTermDuration($termDuration)
+ public function setProvider($provider)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "null",
];
- $termDuration = self::checkTypes($termDuration, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->termDuration = $termDuration;
+ $this->provider = $provider;
}
/**
@@ -726,128 +727,127 @@ public function setEducationalProgramMode($educationalProgramMode)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return Number|null
*/
- public function getProgramType()
+ public function getTermsPerYear()
{
- return $this->programType;
+ return $this->termsPerYear;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $programType
+ * @param Number|null $termsPerYear
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProgramType($programType)
+ public function setTermsPerYear($termsPerYear)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "Number",
+ "null",
];
- $programType = self::checkTypes($programType, $types);
+ $termsPerYear = self::checkTypes($termsPerYear, $types);
- $this->programType = $programType;
+ $this->termsPerYear = $termsPerYear;
}
/**
- * @return int|null
+ * @return string
*/
- public function getMaximumEnrollment()
+ public function getTimeOfDay()
{
- return $this->maximumEnrollment;
+ return $this->timeOfDay;
}
/**
- * @param int|null $maximumEnrollment
+ * @param string $timeOfDay
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumEnrollment($maximumEnrollment)
+ public function setTimeOfDay($timeOfDay)
{
$types = [
- "int",
- "null",
+ "string",
];
- $maximumEnrollment = self::checkTypes($maximumEnrollment, $types);
+ $timeOfDay = self::checkTypes($timeOfDay, $types);
- $this->maximumEnrollment = $maximumEnrollment;
+ $this->timeOfDay = $timeOfDay;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\Course|string
*/
- public function getFinancialAidEligible()
+ public function getHasCourse()
{
- return $this->financialAidEligible;
+ return $this->hasCourse;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $financialAidEligible
+ * @param \OpenActive\Models\SchemaOrg\Course|string $hasCourse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFinancialAidEligible($financialAidEligible)
+ public function setHasCourse($hasCourse)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Course",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $financialAidEligible = self::checkTypes($financialAidEligible, $types);
+ $hasCourse = self::checkTypes($hasCourse, $types);
- $this->financialAidEligible = $financialAidEligible;
+ $this->hasCourse = $hasCourse;
}
/**
- * @return Date|null
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getApplicationDeadline()
+ public function getOccupationalCredentialAwarded()
{
- return $this->applicationDeadline;
+ return $this->occupationalCredentialAwarded;
}
/**
- * @param Date|null $applicationDeadline
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $occupationalCredentialAwarded
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationDeadline($applicationDeadline)
+ public function setOccupationalCredentialAwarded($occupationalCredentialAwarded)
{
$types = [
- "Date",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $applicationDeadline = self::checkTypes($applicationDeadline, $types);
+ $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
- $this->applicationDeadline = $applicationDeadline;
+ $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return Date|null
*/
- public function getOccupationalCategory()
+ public function getApplicationDeadline()
{
- return $this->occupationalCategory;
+ return $this->applicationDeadline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param Date|null $applicationDeadline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setApplicationDeadline($applicationDeadline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
- "string",
+ "Date",
+ "null",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $applicationDeadline = self::checkTypes($applicationDeadline, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->applicationDeadline = $applicationDeadline;
}
}
diff --git a/src/Models/SchemaOrg/EducationalOrganization.php b/src/Models/SchemaOrg/EducationalOrganization.php
index 6a966106..03d14a41 100644
--- a/src/Models/SchemaOrg/EducationalOrganization.php
+++ b/src/Models/SchemaOrg/EducationalOrganization.php
@@ -5,7 +5,7 @@
/**
*
*/
-class EducationalOrganization extends \OpenActive\Models\SchemaOrg\CivicStructure
+class EducationalOrganization extends \OpenActive\Models\SchemaOrg\Organization
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/EmployeeRole.php b/src/Models/SchemaOrg/EmployeeRole.php
index 6740e91d..11c67e1e 100644
--- a/src/Models/SchemaOrg/EmployeeRole.php
+++ b/src/Models/SchemaOrg/EmployeeRole.php
@@ -17,79 +17,79 @@ public static function getType()
public static function fieldList() {
$fields = [
- "salaryCurrency" => "salaryCurrency",
"baseSalary" => "baseSalary",
+ "salaryCurrency" => "salaryCurrency",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) ) used for the main salary information in this job posting or for this employee.
+ * The base salary of the job or of an employee in an EmployeeRole.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null
*/
- protected $salaryCurrency;
+ protected $baseSalary;
/**
- * The base salary of the job or of an employee in an EmployeeRole.
+ * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)) used for the main salary information in this job posting or for this employee.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var string
*/
- protected $baseSalary;
+ protected $salaryCurrency;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null
*/
- public function getSalaryCurrency()
+ public function getBaseSalary()
{
- return $this->salaryCurrency;
+ return $this->baseSalary;
}
/**
- * @param string $salaryCurrency
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null $baseSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSalaryCurrency($salaryCurrency)
+ public function setBaseSalary($baseSalary)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
+ "null",
];
- $salaryCurrency = self::checkTypes($salaryCurrency, $types);
+ $baseSalary = self::checkTypes($baseSalary, $types);
- $this->salaryCurrency = $salaryCurrency;
+ $this->baseSalary = $baseSalary;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return string
*/
- public function getBaseSalary()
+ public function getSalaryCurrency()
{
- return $this->baseSalary;
+ return $this->salaryCurrency;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary
+ * @param string $salaryCurrency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBaseSalary($baseSalary)
+ public function setSalaryCurrency($salaryCurrency)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "null",
];
- $baseSalary = self::checkTypes($baseSalary, $types);
+ $salaryCurrency = self::checkTypes($salaryCurrency, $types);
- $this->baseSalary = $baseSalary;
+ $this->salaryCurrency = $salaryCurrency;
}
}
diff --git a/src/Models/SchemaOrg/EnergyConsumptionDetails.php b/src/Models/SchemaOrg/EnergyConsumptionDetails.php
index 0233f6c3..9fba7eee 100644
--- a/src/Models/SchemaOrg/EnergyConsumptionDetails.php
+++ b/src/Models/SchemaOrg/EnergyConsumptionDetails.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "energyEfficiencyScaleMin" => "energyEfficiencyScaleMin",
"hasEnergyEfficiencyCategory" => "hasEnergyEfficiencyCategory",
+ "energyEfficiencyScaleMin" => "energyEfficiencyScaleMin",
"energyEfficiencyScaleMax" => "energyEfficiencyScaleMax",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * Specifies the least energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++.
+ * Defines the energy efficiency Category (which could be either a rating out of range of values or a yes/no certification) for a product according to an international energy efficiency standard.
*
*
- * @var \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string
+ * @var \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null
*/
- protected $energyEfficiencyScaleMin;
+ protected $hasEnergyEfficiencyCategory;
/**
- * Defines the energy efficiency Category (which could be either a rating out of range of values or a yes/no certification) for a product according to an international energy efficiency standard.
+ * Specifies the least energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++.
*
*
- * @var \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string
*/
- protected $hasEnergyEfficiencyCategory;
+ protected $energyEfficiencyScaleMin;
/**
* Specifies the most energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++.
@@ -50,53 +50,53 @@ public static function fieldList() {
protected $energyEfficiencyScaleMax;
/**
- * @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string
+ * @return \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null
*/
- public function getEnergyEfficiencyScaleMin()
+ public function getHasEnergyEfficiencyCategory()
{
- return $this->energyEfficiencyScaleMin;
+ return $this->hasEnergyEfficiencyCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string $energyEfficiencyScaleMin
+ * @param \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null $hasEnergyEfficiencyCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEnergyEfficiencyScaleMin($energyEfficiencyScaleMin)
+ public function setHasEnergyEfficiencyCategory($hasEnergyEfficiencyCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration",
- "string",
+ "\OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration",
+ "null",
];
- $energyEfficiencyScaleMin = self::checkTypes($energyEfficiencyScaleMin, $types);
+ $hasEnergyEfficiencyCategory = self::checkTypes($hasEnergyEfficiencyCategory, $types);
- $this->energyEfficiencyScaleMin = $energyEfficiencyScaleMin;
+ $this->hasEnergyEfficiencyCategory = $hasEnergyEfficiencyCategory;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string
*/
- public function getHasEnergyEfficiencyCategory()
+ public function getEnergyEfficiencyScaleMin()
{
- return $this->hasEnergyEfficiencyCategory;
+ return $this->energyEfficiencyScaleMin;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null $hasEnergyEfficiencyCategory
+ * @param \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string $energyEfficiencyScaleMin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasEnergyEfficiencyCategory($hasEnergyEfficiencyCategory)
+ public function setEnergyEfficiencyScaleMin($energyEfficiencyScaleMin)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration",
+ "string",
];
- $hasEnergyEfficiencyCategory = self::checkTypes($hasEnergyEfficiencyCategory, $types);
+ $energyEfficiencyScaleMin = self::checkTypes($energyEfficiencyScaleMin, $types);
- $this->hasEnergyEfficiencyCategory = $hasEnergyEfficiencyCategory;
+ $this->energyEfficiencyScaleMin = $energyEfficiencyScaleMin;
}
/**
diff --git a/src/Models/SchemaOrg/EngineSpecification.php b/src/Models/SchemaOrg/EngineSpecification.php
index e534fd48..b0d5a459 100644
--- a/src/Models/SchemaOrg/EngineSpecification.php
+++ b/src/Models/SchemaOrg/EngineSpecification.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"fuelType" => "fuelType",
- "torque" => "torque",
- "engineDisplacement" => "engineDisplacement",
"enginePower" => "enginePower",
"engineType" => "engineType",
+ "engineDisplacement" => "engineDisplacement",
+ "torque" => "torque",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,37 +36,37 @@ public static function fieldList() {
protected $fuelType;
/**
- * The torque (turning force) of the vehicle's engine.\n\nTypical unit code(s): NU for newton metre (N m), F17 for pound-force per foot, or F48 for pound-force per inch\n\n* Note 1: You can link to information about how the given value has been determined (e.g. reference RPM) using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges.
+ * The power of the vehicle's engine.
+ * Typical unit code(s): KWT for kilowatt, BHP for brake horsepower, N12 for metric horsepower (PS, with 1 PS = 735,49875 W)\n\n* Note 1: There are many different ways of measuring an engine's power. For an overview, see [http://en.wikipedia.org/wiki/Horsepower#Engine\_power\_test\_codes](http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes).\n* Note 2: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 3: You can use [[minValue]] and [[maxValue]] to indicate ranges.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $torque;
+ protected $enginePower;
/**
- * The volume swept by all of the pistons inside the cylinders of an internal combustion engine in a single movement. \n\nTypical unit code(s): CMQ for cubic centimeter, LTR for liters, INQ for cubic inches\n* Note 1: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges.
+ * The type of engine or engines powering the vehicle.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- protected $engineDisplacement;
+ protected $engineType;
/**
- * The power of the vehicle's engine.
- * Typical unit code(s): KWT for kilowatt, BHP for brake horsepower, N12 for metric horsepower (PS, with 1 PS = 735,49875 W)\n\n* Note 1: There are many different ways of measuring an engine's power. For an overview, see [http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes](http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes).\n* Note 2: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 3: You can use [[minValue]] and [[maxValue]] to indicate ranges.
+ * The volume swept by all of the pistons inside the cylinders of an internal combustion engine in a single movement. \n\nTypical unit code(s): CMQ for cubic centimeter, LTR for liters, INQ for cubic inches\n* Note 1: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $enginePower;
+ protected $engineDisplacement;
/**
- * The type of engine or engines powering the vehicle.
+ * The torque (turning force) of the vehicle's engine.\n\nTypical unit code(s): NU for newton metre (N m), F17 for pound-force per foot, or F48 for pound-force per inch\n\n* Note 1: You can link to information about how the given value has been determined (e.g. reference RPM) using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges.
*
*
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $engineType;
+ protected $torque;
/**
* @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
@@ -97,102 +97,102 @@ public function setFuelType($fuelType)
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getTorque()
+ public function getEnginePower()
{
- return $this->torque;
+ return $this->enginePower;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $torque
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $enginePower
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTorque($torque)
+ public function setEnginePower($enginePower)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $torque = self::checkTypes($torque, $types);
+ $enginePower = self::checkTypes($enginePower, $types);
- $this->torque = $torque;
+ $this->enginePower = $enginePower;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- public function getEngineDisplacement()
+ public function getEngineType()
{
- return $this->engineDisplacement;
+ return $this->engineType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $engineDisplacement
+ * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $engineType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEngineDisplacement($engineDisplacement)
+ public function setEngineType($engineType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
+ "null",
];
- $engineDisplacement = self::checkTypes($engineDisplacement, $types);
+ $engineType = self::checkTypes($engineType, $types);
- $this->engineDisplacement = $engineDisplacement;
+ $this->engineType = $engineType;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEnginePower()
+ public function getEngineDisplacement()
{
- return $this->enginePower;
+ return $this->engineDisplacement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $enginePower
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $engineDisplacement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEnginePower($enginePower)
+ public function setEngineDisplacement($engineDisplacement)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $enginePower = self::checkTypes($enginePower, $types);
+ $engineDisplacement = self::checkTypes($engineDisplacement, $types);
- $this->enginePower = $enginePower;
+ $this->engineDisplacement = $engineDisplacement;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEngineType()
+ public function getTorque()
{
- return $this->engineType;
+ return $this->torque;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $engineType
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $torque
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEngineType($engineType)
+ public function setTorque($torque)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $engineType = self::checkTypes($engineType, $types);
+ $torque = self::checkTypes($torque, $types);
- $this->engineType = $engineType;
+ $this->torque = $torque;
}
}
diff --git a/src/Models/SchemaOrg/EntryPoint.php b/src/Models/SchemaOrg/EntryPoint.php
index 90f87fbb..7f3fa530 100644
--- a/src/Models/SchemaOrg/EntryPoint.php
+++ b/src/Models/SchemaOrg/EntryPoint.php
@@ -17,57 +17,57 @@ public static function getType()
public static function fieldList() {
$fields = [
- "actionApplication" => "actionApplication",
- "application" => "application",
- "actionPlatform" => "actionPlatform",
"httpMethod" => "httpMethod",
+ "contentType" => "contentType",
"urlTemplate" => "urlTemplate",
+ "application" => "application",
+ "actionApplication" => "actionApplication",
"encodingType" => "encodingType",
- "contentType" => "contentType",
+ "actionPlatform" => "actionPlatform",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An application that can complete the request.
+ * An HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint. Values are capitalized strings as used in HTTP.
*
*
- * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @var string
*/
- protected $actionApplication;
+ protected $httpMethod;
/**
- * An application that can complete the request.
+ * The supported content type(s) for an EntryPoint response.
*
*
- * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @var string
*/
- protected $application;
+ protected $contentType;
/**
- * The high level platform(s) where the Action can be performed for the given URL. To specify a specific application or operating system instance, use actionApplication.
+ * An url template (RFC6570) that will be used to construct the target of the execution of the action.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null
+ * @var string
*/
- protected $actionPlatform;
+ protected $urlTemplate;
/**
- * An HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint. Values are capitalized strings as used in HTTP.
+ * An application that can complete the request.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- protected $httpMethod;
+ protected $application;
/**
- * An url template (RFC6570) that will be used to construct the target of the execution of the action.
+ * An application that can complete the request.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- protected $urlTemplate;
+ protected $actionApplication;
/**
* The supported encoding type(s) for an EntryPoint request.
@@ -78,135 +78,133 @@ public static function fieldList() {
protected $encodingType;
/**
- * The supported content type(s) for an EntryPoint response.
+ * The high level platform(s) where the Action can be performed for the given URL. To specify a specific application or operating system instance, use actionApplication.
*
*
- * @var string
+ * @var string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null
*/
- protected $contentType;
+ protected $actionPlatform;
/**
- * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @return string
*/
- public function getActionApplication()
+ public function getHttpMethod()
{
- return $this->actionApplication;
+ return $this->httpMethod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $actionApplication
+ * @param string $httpMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActionApplication($actionApplication)
+ public function setHttpMethod($httpMethod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $actionApplication = self::checkTypes($actionApplication, $types);
+ $httpMethod = self::checkTypes($httpMethod, $types);
- $this->actionApplication = $actionApplication;
+ $this->httpMethod = $httpMethod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @return string
*/
- public function getApplication()
+ public function getContentType()
{
- return $this->application;
+ return $this->contentType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $application
+ * @param string $contentType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplication($application)
+ public function setContentType($contentType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $application = self::checkTypes($application, $types);
+ $contentType = self::checkTypes($contentType, $types);
- $this->application = $application;
+ $this->contentType = $contentType;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null
+ * @return string
*/
- public function getActionPlatform()
+ public function getUrlTemplate()
{
- return $this->actionPlatform;
+ return $this->urlTemplate;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null $actionPlatform
+ * @param string $urlTemplate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActionPlatform($actionPlatform)
+ public function setUrlTemplate($urlTemplate)
{
$types = [
"string",
- "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration",
- "null",
];
- $actionPlatform = self::checkTypes($actionPlatform, $types);
+ $urlTemplate = self::checkTypes($urlTemplate, $types);
- $this->actionPlatform = $actionPlatform;
+ $this->urlTemplate = $urlTemplate;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- public function getHttpMethod()
+ public function getApplication()
{
- return $this->httpMethod;
+ return $this->application;
}
/**
- * @param string $httpMethod
+ * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $application
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHttpMethod($httpMethod)
+ public function setApplication($application)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $httpMethod = self::checkTypes($httpMethod, $types);
+ $application = self::checkTypes($application, $types);
- $this->httpMethod = $httpMethod;
+ $this->application = $application;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- public function getUrlTemplate()
+ public function getActionApplication()
{
- return $this->urlTemplate;
+ return $this->actionApplication;
}
/**
- * @param string $urlTemplate
+ * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $actionApplication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUrlTemplate($urlTemplate)
+ public function setActionApplication($actionApplication)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $urlTemplate = self::checkTypes($urlTemplate, $types);
+ $actionApplication = self::checkTypes($actionApplication, $types);
- $this->urlTemplate = $urlTemplate;
+ $this->actionApplication = $actionApplication;
}
/**
@@ -234,27 +232,29 @@ public function setEncodingType($encodingType)
}
/**
- * @return string
+ * @return string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null
*/
- public function getContentType()
+ public function getActionPlatform()
{
- return $this->contentType;
+ return $this->actionPlatform;
}
/**
- * @param string $contentType
+ * @param string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null $actionPlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentType($contentType)
+ public function setActionPlatform($actionPlatform)
{
$types = [
"string",
+ "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration",
+ "null",
];
- $contentType = self::checkTypes($contentType, $types);
+ $actionPlatform = self::checkTypes($actionPlatform, $types);
- $this->contentType = $contentType;
+ $this->actionPlatform = $actionPlatform;
}
}
diff --git a/src/Models/SchemaOrg/Enumeration.php b/src/Models/SchemaOrg/Enumeration.php
index 62d87fa6..e1b69fdb 100644
--- a/src/Models/SchemaOrg/Enumeration.php
+++ b/src/Models/SchemaOrg/Enumeration.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* Relates a term (i.e. a property, class or enumeration) to one that supersedes it.
*
*
- * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null
*/
protected $supersededBy;
/**
- * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null
*/
public function getSupersededBy()
{
@@ -40,17 +40,17 @@ public function getSupersededBy()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy
+ * @param \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null $supersededBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSupersededBy($supersededBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Enumeration",
"\OpenActive\Models\SchemaOrg\Class",
- "string",
"\OpenActive\Enums\PropertyEnumeration",
+ "\OpenActive\Models\SchemaOrg\Enumeration",
+ "string",
"null",
];
diff --git a/src/Models/SchemaOrg/Episode.php b/src/Models/SchemaOrg/Episode.php
index faf85562..2d7323d7 100644
--- a/src/Models/SchemaOrg/Episode.php
+++ b/src/Models/SchemaOrg/Episode.php
@@ -17,40 +17,40 @@ public static function getType()
public static function fieldList() {
$fields = [
- "episodeNumber" => "episodeNumber",
- "director" => "director",
- "actor" => "actor",
- "trailer" => "trailer",
- "partOfSeries" => "partOfSeries",
- "duration" => "duration",
"partOfSeason" => "partOfSeason",
+ "trailer" => "trailer",
+ "actor" => "actor",
"productionCompany" => "productionCompany",
- "actors" => "actors",
"musicBy" => "musicBy",
"directors" => "directors",
+ "episodeNumber" => "episodeNumber",
+ "director" => "director",
+ "actors" => "actors",
+ "duration" => "duration",
+ "partOfSeries" => "partOfSeries",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Position of the episode within an ordered group of episodes.
+ * The season to which this episode belongs.
*
*
- * @var string|int|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $episodeNumber;
+ protected $partOfSeason;
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $director;
+ protected $trailer;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
@@ -58,47 +58,47 @@ public static function fieldList() {
protected $actor;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $trailer;
+ protected $productionCompany;
/**
- * The series to which this episode or season belongs.
+ * The composer of the soundtrack.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $partOfSeries;
+ protected $musicBy;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $duration;
+ protected $directors;
/**
- * The season to which this episode belongs.
+ * Position of the episode within an ordered group of episodes.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @var string|int|null
*/
- protected $partOfSeason;
+ protected $episodeNumber;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $productionCompany;
+ protected $director;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
@@ -106,70 +106,69 @@ public static function fieldList() {
protected $actors;
/**
- * The composer of the soundtrack.
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var DateInterval|string|null
*/
- protected $musicBy;
+ protected $duration;
/**
- * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
+ * The series to which this episode or season belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- protected $directors;
+ protected $partOfSeries;
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getEpisodeNumber()
+ public function getPartOfSeason()
{
- return $this->episodeNumber;
+ return $this->partOfSeason;
}
/**
- * @param string|int|null $episodeNumber
+ * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisodeNumber($episodeNumber)
+ public function setPartOfSeason($partOfSeason)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
- "int",
- "null",
];
- $episodeNumber = self::checkTypes($episodeNumber, $types);
+ $partOfSeason = self::checkTypes($partOfSeason, $types);
- $this->episodeNumber = $episodeNumber;
+ $this->partOfSeason = $partOfSeason;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getDirector()
+ public function getTrailer()
{
- return $this->director;
+ return $this->trailer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setTrailer($trailer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $director = self::checkTypes($director, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->director = $director;
+ $this->trailer = $trailer;
}
/**
@@ -198,129 +197,130 @@ public function setActor($actor)
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTrailer()
+ public function getProductionCompany()
{
- return $this->trailer;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrailer($trailer)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $trailer = self::checkTypes($trailer, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->trailer = $trailer;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPartOfSeries()
+ public function getMusicBy()
{
- return $this->partOfSeries;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfSeries($partOfSeries)
+ public function setMusicBy($musicBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $partOfSeries = self::checkTypes($partOfSeries, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->partOfSeries = $partOfSeries;
+ $this->musicBy = $musicBy;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDuration()
+ public function getDirectors()
{
- return $this->duration;
+ return $this->directors;
}
/**
- * @param DateInterval|string|null $duration
+ * @param \OpenActive\Models\SchemaOrg\Person|string $directors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setDirectors($directors)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->duration = $duration;
+ $this->directors = $directors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @return string|int|null
*/
- public function getPartOfSeason()
+ public function getEpisodeNumber()
{
- return $this->partOfSeason;
+ return $this->episodeNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason
+ * @param string|int|null $episodeNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfSeason($partOfSeason)
+ public function setEpisodeNumber($episodeNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
+ "int",
+ "null",
];
- $partOfSeason = self::checkTypes($partOfSeason, $types);
+ $episodeNumber = self::checkTypes($episodeNumber, $types);
- $this->partOfSeason = $partOfSeason;
+ $this->episodeNumber = $episodeNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getProductionCompany()
+ public function getDirector()
{
- return $this->productionCompany;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param \OpenActive\Models\SchemaOrg\Person|string $director
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setDirector($director)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $director = self::checkTypes($director, $types);
- $this->productionCompany = $productionCompany;
+ $this->director = $director;
}
/**
@@ -349,54 +349,54 @@ public function setActors($actors)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return DateInterval|string|null
*/
- public function getMusicBy()
+ public function getDuration()
{
- return $this->musicBy;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicBy($musicBy)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "DateInterval",
"string",
+ "null",
];
- $musicBy = self::checkTypes($musicBy, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->musicBy = $musicBy;
+ $this->duration = $duration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- public function getDirectors()
+ public function getPartOfSeries()
{
- return $this->directors;
+ return $this->partOfSeries;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirectors($directors)
+ public function setPartOfSeries($partOfSeries)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $partOfSeries = self::checkTypes($partOfSeries, $types);
- $this->directors = $directors;
+ $this->partOfSeries = $partOfSeries;
}
}
diff --git a/src/Models/SchemaOrg/Event.php b/src/Models/SchemaOrg/Event.php
index ece71294..63e86968 100644
--- a/src/Models/SchemaOrg/Event.php
+++ b/src/Models/SchemaOrg/Event.php
@@ -17,131 +17,140 @@ public static function getType()
public static function fieldList() {
$fields = [
- "superEvent" => "superEvent",
- "eventAttendanceMode" => "eventAttendanceMode",
- "review" => "review",
- "translator" => "translator",
- "startDate" => "startDate",
- "composer" => "composer",
- "maximumAttendeeCapacity" => "maximumAttendeeCapacity",
- "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity",
- "director" => "director",
"funding" => "funding",
- "keywords" => "keywords",
- "audience" => "audience",
- "offers" => "offers",
- "subEvent" => "subEvent",
+ "about" => "about",
+ "performer" => "performer",
"actor" => "actor",
- "eventStatus" => "eventStatus",
+ "subEvents" => "subEvents",
+ "maximumAttendeeCapacity" => "maximumAttendeeCapacity",
+ "startDate" => "startDate",
+ "previousStartDate" => "previousStartDate",
+ "offers" => "offers",
"endDate" => "endDate",
"funder" => "funder",
- "performer" => "performer",
+ "keywords" => "keywords",
+ "workFeatured" => "workFeatured",
+ "attendees" => "attendees",
+ "attendee" => "attendee",
+ "translator" => "translator",
+ "remainingAttendeeCapacity" => "remainingAttendeeCapacity",
+ "superEvent" => "superEvent",
+ "eventAttendanceMode" => "eventAttendanceMode",
+ "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity",
"aggregateRating" => "aggregateRating",
+ "performers" => "performers",
"typicalAgeRange" => "typicalAgeRange",
+ "subEvent" => "subEvent",
+ "doorTime" => "doorTime",
+ "eventSchedule" => "eventSchedule",
"location" => "location",
- "performers" => "performers",
- "duration" => "duration",
- "organizer" => "organizer",
- "sponsor" => "sponsor",
- "previousStartDate" => "previousStartDate",
+ "eventStatus" => "eventStatus",
"isAccessibleForFree" => "isAccessibleForFree",
- "remainingAttendeeCapacity" => "remainingAttendeeCapacity",
- "subEvents" => "subEvents",
+ "director" => "director",
"workPerformed" => "workPerformed",
- "doorTime" => "doorTime",
- "inLanguage" => "inLanguage",
- "about" => "about",
"recordedIn" => "recordedIn",
+ "sponsor" => "sponsor",
+ "organizer" => "organizer",
+ "composer" => "composer",
+ "review" => "review",
+ "duration" => "duration",
+ "inLanguage" => "inLanguage",
+ "audience" => "audience",
"maximumPhysicalAttendeeCapacity" => "maximumPhysicalAttendeeCapacity",
- "attendee" => "attendee",
- "workFeatured" => "workFeatured",
- "eventSchedule" => "eventSchedule",
"contributor" => "contributor",
- "attendees" => "attendees",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $superEvent;
+ protected $funding;
/**
- * The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.
+ * The subject matter of the content.
*
*
- * @var \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $eventAttendanceMode;
+ protected $about;
/**
- * A review of the item.
+ * A performer at the event—for example, a presenter, musician, musical group or actor.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $review;
+ protected $performer;
/**
- * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.
+ * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $translator;
+ protected $actor;
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $startDate;
+ protected $subEvents;
/**
- * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
+ * The total number of individuals that may attend an event or venue.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var int|null
*/
- protected $composer;
+ protected $maximumAttendeeCapacity;
/**
- * The total number of individuals that may attend an event or venue.
+ * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var int|null
+ * @var Date|DateTime|null
*/
- protected $maximumAttendeeCapacity;
+ protected $startDate;
/**
- * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]).
+ * Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.
*
*
- * @var int|null
+ * @var Date|null
*/
- protected $maximumVirtualAttendeeCapacity;
+ protected $previousStartDate;
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- protected $director;
+ protected $offers;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var Date|DateTime|null
*/
- protected $funding;
+ protected $endDate;
+
+ /**
+ * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $funder;
/**
* Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.
@@ -152,69 +161,69 @@ public static function fieldList() {
protected $keywords;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * A work featured in some event, e.g. exhibited in an ExhibitionEvent.
+ * Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $audience;
+ protected $workFeatured;
/**
- * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
- *
+ * A person attending the event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $offers;
+ protected $attendees;
/**
- * An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.
+ * A person or organization attending the event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $subEvent;
+ protected $attendee;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $actor;
+ protected $translator;
/**
- * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.
+ * The number of attendee places for an event that remain unallocated.
*
*
- * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null
+ * @var int|null
*/
- protected $eventStatus;
+ protected $remainingAttendeeCapacity;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $endDate;
+ protected $superEvent;
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ * The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
*/
- protected $funder;
+ protected $eventAttendanceMode;
/**
- * A performer at the event—for example, a presenter, musician, musical group or actor.
+ * The maximum virtual attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]).
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var int|null
*/
- protected $performer;
+ protected $maximumVirtualAttendeeCapacity;
/**
* The overall rating, based on a collection of reviews or ratings, of the item.
@@ -225,60 +234,65 @@ public static function fieldList() {
protected $aggregateRating;
/**
- * The typical expected age range, e.g. '7-9', '11-'.
+ * The main performer or performers of the event—for example, a presenter, musician, or actor.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $typicalAgeRange;
+ protected $performers;
/**
- * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
+ * The typical expected age range, e.g. '7-9', '11-'.
*
*
- * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var string
*/
- protected $location;
+ protected $typicalAgeRange;
/**
- * The main performer or performers of the event—for example, a presenter, musician, or actor.
+ * An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $performers;
+ protected $subEvent;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The time admission will commence.
*
*
- * @var DateInterval|string|null
+ * @var DateTime|string|null
*/
- protected $duration;
+ protected $doorTime;
/**
- * An organizer of an Event.
+ * Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of
+ * repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly
+ * gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that
+ * is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated
+ * [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months
+ * or seasons.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Schedule|string
*/
- protected $organizer;
+ protected $eventSchedule;
/**
- * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
+ * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
*/
- protected $sponsor;
+ protected $location;
/**
- * Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.
+ * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.
*
*
- * @var Date|null
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
- protected $previousStartDate;
+ protected $eventStatus;
/**
* A flag to signal that the item, event, or place is accessible for free.
@@ -289,366 +303,379 @@ public static function fieldList() {
protected $isAccessibleForFree;
/**
- * The number of attendee places for an event that remain unallocated.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $remainingAttendeeCapacity;
+ protected $director;
/**
- * Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.
+ * A work performed in some event, for example a play performed in a TheaterEvent.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $subEvents;
+ protected $workPerformed;
/**
- * A work performed in some event, for example a play performed in a TheaterEvent.
+ * The CreativeWork that captured all or part of this Event.
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $workPerformed;
+ protected $recordedIn;
/**
- * The time admission will commence.
+ * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $doorTime;
+ protected $sponsor;
/**
- * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
+ * An organizer of an Event.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $inLanguage;
+ protected $organizer;
/**
- * The subject matter of the content.
+ * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $about;
+ protected $composer;
/**
- * The CreativeWork that captured all or part of this Event.
+ * A review of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $recordedIn;
+ protected $review;
/**
- * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]).
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var int|null
+ * @var DateInterval|string|null
*/
- protected $maximumPhysicalAttendeeCapacity;
+ protected $duration;
/**
- * A person or organization attending the event.
+ * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $attendee;
+ protected $inLanguage;
/**
- * A work featured in some event, e.g. exhibited in an ExhibitionEvent.
- * Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $workFeatured;
+ protected $audience;
/**
- * Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of
- * repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly
- * gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that
- * is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated
- * [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months
- * or seasons.
+ * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]).
*
*
- * @var \OpenActive\Models\SchemaOrg\Schedule|string
+ * @var int|null
*/
- protected $eventSchedule;
+ protected $maximumPhysicalAttendeeCapacity;
/**
* A secondary contributor to the CreativeWork or Event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $contributor;
/**
- * A person attending the event.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $attendees;
+ public function getFunding()
+ {
+ return $this->funding;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function getSuperEvent()
+ public function setFunding($funding)
{
- return $this->superEvent;
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Grant",
+ "string",
+ ];
+
+ $funding = self::checkTypes($funding, $types);
+
+ $this->funding = $funding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $superEvent
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ public function getAbout()
+ {
+ return $this->about;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $about
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSuperEvent($superEvent)
+ public function setAbout($about)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $superEvent = self::checkTypes($superEvent, $types);
+ $about = self::checkTypes($about, $types);
- $this->superEvent = $superEvent;
+ $this->about = $about;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEventAttendanceMode()
+ public function getPerformer()
{
- return $this->eventAttendanceMode;
+ return $this->performer;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null $eventAttendanceMode
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $performer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEventAttendanceMode($eventAttendanceMode)
+ public function setPerformer($performer)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types);
+ $performer = self::checkTypes($performer, $types);
- $this->eventAttendanceMode = $eventAttendanceMode;
+ $this->performer = $performer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getReview()
+ public function getActor()
{
- return $this->review;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setActor($actor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $review = self::checkTypes($review, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->review = $review;
+ $this->actor = $actor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getTranslator()
+ public function getSubEvents()
{
- return $this->translator;
+ return $this->subEvents;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator
+ * @param \OpenActive\Models\SchemaOrg\Event|string $subEvents
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranslator($translator)
+ public function setSubEvents($subEvents)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $translator = self::checkTypes($translator, $types);
+ $subEvents = self::checkTypes($subEvents, $types);
- $this->translator = $translator;
+ $this->subEvents = $subEvents;
}
/**
- * @return Date|DateTime|null
+ * @return int|null
*/
- public function getStartDate()
+ public function getMaximumAttendeeCapacity()
{
- return $this->startDate;
+ return $this->maximumAttendeeCapacity;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param int|null $maximumAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
{
$types = [
- "Date",
- "DateTime",
+ "int",
"null",
];
- $startDate = self::checkTypes($startDate, $types);
+ $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types);
- $this->startDate = $startDate;
+ $this->maximumAttendeeCapacity = $maximumAttendeeCapacity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return Date|DateTime|null
*/
- public function getComposer()
+ public function getStartDate()
{
- return $this->composer;
+ return $this->startDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setComposer($composer)
+ public function setStartDate($startDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $composer = self::checkTypes($composer, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->composer = $composer;
+ $this->startDate = $startDate;
}
/**
- * @return int|null
+ * @return Date|null
*/
- public function getMaximumAttendeeCapacity()
+ public function getPreviousStartDate()
{
- return $this->maximumAttendeeCapacity;
+ return $this->previousStartDate;
}
/**
- * @param int|null $maximumAttendeeCapacity
+ * @param Date|null $previousStartDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
+ public function setPreviousStartDate($previousStartDate)
{
$types = [
- "int",
+ "Date",
"null",
];
- $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types);
+ $previousStartDate = self::checkTypes($previousStartDate, $types);
- $this->maximumAttendeeCapacity = $maximumAttendeeCapacity;
+ $this->previousStartDate = $previousStartDate;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getMaximumVirtualAttendeeCapacity()
+ public function getOffers()
{
- return $this->maximumVirtualAttendeeCapacity;
+ return $this->offers;
}
/**
- * @param int|null $maximumVirtualAttendeeCapacity
+ * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity)
+ public function setOffers($offers)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "string",
];
- $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity;
+ $this->offers = $offers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return Date|DateTime|null
*/
- public function getDirector()
+ public function getEndDate()
{
- return $this->director;
+ return $this->endDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setEndDate($endDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $director = self::checkTypes($director, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->director = $director;
+ $this->endDate = $endDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getFunding()
+ public function getFunder()
{
- return $this->funding;
+ return $this->funder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunding($funding)
+ public function setFunder($funder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->funding = $funding;
+ $this->funder = $funder;
}
/**
@@ -677,207 +704,206 @@ public function setKeywords($keywords)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getAudience()
+ public function getWorkFeatured()
{
- return $this->audience;
+ return $this->workFeatured;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workFeatured
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudience($audience)
+ public function setWorkFeatured($workFeatured)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $audience = self::checkTypes($audience, $types);
+ $workFeatured = self::checkTypes($workFeatured, $types);
- $this->audience = $audience;
+ $this->workFeatured = $workFeatured;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getOffers()
+ public function getAttendees()
{
- return $this->offers;
+ return $this->attendees;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $attendees
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setAttendees($attendees)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $offers = self::checkTypes($offers, $types);
+ $attendees = self::checkTypes($attendees, $types);
- $this->offers = $offers;
+ $this->attendees = $attendees;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getSubEvent()
+ public function getAttendee()
{
- return $this->subEvent;
+ return $this->attendee;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $subEvent
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSubEvent($subEvent)
+ public function setAttendee($attendee)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $subEvent = self::checkTypes($subEvent, $types);
+ $attendee = self::checkTypes($attendee, $types);
- $this->subEvent = $subEvent;
+ $this->attendee = $attendee;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getActor()
+ public function getTranslator()
{
- return $this->actor;
+ return $this->translator;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setTranslator($translator)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $translator = self::checkTypes($translator, $types);
- $this->actor = $actor;
+ $this->translator = $translator;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\EventStatusType|null
+ * @return int|null
*/
- public function getEventStatus()
+ public function getRemainingAttendeeCapacity()
{
- return $this->eventStatus;
+ return $this->remainingAttendeeCapacity;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\EventStatusType|null $eventStatus
+ * @param int|null $remainingAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEventStatus($eventStatus)
+ public function setRemainingAttendeeCapacity($remainingAttendeeCapacity)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "int",
"null",
];
- $eventStatus = self::checkTypes($eventStatus, $types);
+ $remainingAttendeeCapacity = self::checkTypes($remainingAttendeeCapacity, $types);
- $this->eventStatus = $eventStatus;
+ $this->remainingAttendeeCapacity = $remainingAttendeeCapacity;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getEndDate()
+ public function getSuperEvent()
{
- return $this->endDate;
+ return $this->superEvent;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param \OpenActive\Models\SchemaOrg\Event|string $superEvent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setSuperEvent($superEvent)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Event",
+ "string",
];
- $endDate = self::checkTypes($endDate, $types);
+ $superEvent = self::checkTypes($superEvent, $types);
- $this->endDate = $endDate;
+ $this->superEvent = $superEvent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
*/
- public function getFunder()
+ public function getEventAttendanceMode()
{
- return $this->funder;
+ return $this->eventAttendanceMode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @param \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null $eventAttendanceMode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunder($funder)
+ public function setEventAttendanceMode($eventAttendanceMode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration",
+ "null",
];
- $funder = self::checkTypes($funder, $types);
+ $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types);
- $this->funder = $funder;
+ $this->eventAttendanceMode = $eventAttendanceMode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return int|null
*/
- public function getPerformer()
+ public function getMaximumVirtualAttendeeCapacity()
{
- return $this->performer;
+ return $this->maximumVirtualAttendeeCapacity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $performer
+ * @param int|null $maximumVirtualAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPerformer($performer)
+ public function setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "int",
+ "null",
];
- $performer = self::checkTypes($performer, $types);
+ $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types);
- $this->performer = $performer;
+ $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity;
}
/**
@@ -906,183 +932,181 @@ public function setAggregateRating($aggregateRating)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTypicalAgeRange()
+ public function getPerformers()
{
- return $this->typicalAgeRange;
+ return $this->performers;
}
/**
- * @param string $typicalAgeRange
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $performers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypicalAgeRange($typicalAgeRange)
+ public function setPerformers($performers)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
+ $performers = self::checkTypes($performers, $types);
- $this->typicalAgeRange = $typicalAgeRange;
+ $this->performers = $performers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return string
*/
- public function getLocation()
+ public function getTypicalAgeRange()
{
- return $this->location;
+ return $this->typicalAgeRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @param string $typicalAgeRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLocation($location)
+ public function setTypicalAgeRange($typicalAgeRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\VirtualLocation",
];
- $location = self::checkTypes($location, $types);
+ $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
- $this->location = $location;
+ $this->typicalAgeRange = $typicalAgeRange;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getPerformers()
+ public function getSubEvent()
{
- return $this->performers;
+ return $this->subEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $performers
+ * @param \OpenActive\Models\SchemaOrg\Event|string $subEvent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPerformers($performers)
+ public function setSubEvent($subEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $performers = self::checkTypes($performers, $types);
+ $subEvent = self::checkTypes($subEvent, $types);
- $this->performers = $performers;
+ $this->subEvent = $subEvent;
}
/**
- * @return DateInterval|string|null
+ * @return DateTime|string|null
*/
- public function getDuration()
+ public function getDoorTime()
{
- return $this->duration;
+ return $this->doorTime;
}
/**
- * @param DateInterval|string|null $duration
+ * @param DateTime|string|null $doorTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setDoorTime($doorTime)
{
$types = [
- "DateInterval",
- "string",
+ "DateTime",
+ "Time",
"null",
];
- $duration = self::checkTypes($duration, $types);
+ $doorTime = self::checkTypes($doorTime, $types);
- $this->duration = $duration;
+ $this->doorTime = $doorTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Schedule|string
*/
- public function getOrganizer()
+ public function getEventSchedule()
{
- return $this->organizer;
+ return $this->eventSchedule;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $organizer
+ * @param \OpenActive\Models\SchemaOrg\Schedule|string $eventSchedule
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOrganizer($organizer)
+ public function setEventSchedule($eventSchedule)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Schedule",
"string",
];
- $organizer = self::checkTypes($organizer, $types);
+ $eventSchedule = self::checkTypes($eventSchedule, $types);
- $this->organizer = $organizer;
+ $this->eventSchedule = $eventSchedule;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
*/
- public function getSponsor()
+ public function getLocation()
{
- return $this->sponsor;
+ return $this->location;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSponsor($sponsor)
+ public function setLocation($location)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\VirtualLocation",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $location = self::checkTypes($location, $types);
- $this->sponsor = $sponsor;
+ $this->location = $location;
}
/**
- * @return Date|null
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
- public function getPreviousStartDate()
+ public function getEventStatus()
{
- return $this->previousStartDate;
+ return $this->eventStatus;
}
/**
- * @param Date|null $previousStartDate
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|null $eventStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPreviousStartDate($previousStartDate)
+ public function setEventStatus($eventStatus)
{
$types = [
- "Date",
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
"null",
];
- $previousStartDate = self::checkTypes($previousStartDate, $types);
+ $eventStatus = self::checkTypes($eventStatus, $types);
- $this->previousStartDate = $previousStartDate;
+ $this->eventStatus = $eventStatus;
}
/**
@@ -1111,53 +1135,28 @@ public function setIsAccessibleForFree($isAccessibleForFree)
}
/**
- * @return int|null
- */
- public function getRemainingAttendeeCapacity()
- {
- return $this->remainingAttendeeCapacity;
- }
-
- /**
- * @param int|null $remainingAttendeeCapacity
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setRemainingAttendeeCapacity($remainingAttendeeCapacity)
- {
- $types = [
- "int",
- "null",
- ];
-
- $remainingAttendeeCapacity = self::checkTypes($remainingAttendeeCapacity, $types);
-
- $this->remainingAttendeeCapacity = $remainingAttendeeCapacity;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSubEvents()
+ public function getDirector()
{
- return $this->subEvents;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $subEvents
+ * @param \OpenActive\Models\SchemaOrg\Person|string $director
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSubEvents($subEvents)
+ public function setDirector($director)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $subEvents = self::checkTypes($subEvents, $types);
+ $director = self::checkTypes($director, $types);
- $this->subEvents = $subEvents;
+ $this->director = $director;
}
/**
@@ -1186,247 +1185,248 @@ public function setWorkPerformed($workPerformed)
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDoorTime()
+ public function getRecordedIn()
{
- return $this->doorTime;
+ return $this->recordedIn;
}
/**
- * @param DateTime|string|null $doorTime
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $recordedIn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDoorTime($doorTime)
+ public function setRecordedIn($recordedIn)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $doorTime = self::checkTypes($doorTime, $types);
+ $recordedIn = self::checkTypes($recordedIn, $types);
- $this->doorTime = $doorTime;
+ $this->recordedIn = $recordedIn;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getInLanguage()
+ public function getSponsor()
{
- return $this->inLanguage;
+ return $this->sponsor;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInLanguage($inLanguage)
+ public function setSponsor($sponsor)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->inLanguage = $inLanguage;
+ $this->sponsor = $sponsor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAbout()
+ public function getOrganizer()
{
- return $this->about;
+ return $this->organizer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $about
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $organizer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAbout($about)
+ public function setOrganizer($organizer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $about = self::checkTypes($about, $types);
+ $organizer = self::checkTypes($organizer, $types);
- $this->about = $about;
+ $this->organizer = $organizer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getRecordedIn()
+ public function getComposer()
{
- return $this->recordedIn;
+ return $this->composer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $recordedIn
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordedIn($recordedIn)
+ public function setComposer($composer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $recordedIn = self::checkTypes($recordedIn, $types);
+ $composer = self::checkTypes($composer, $types);
- $this->recordedIn = $recordedIn;
+ $this->composer = $composer;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getMaximumPhysicalAttendeeCapacity()
+ public function getReview()
{
- return $this->maximumPhysicalAttendeeCapacity;
+ return $this->review;
}
/**
- * @param int|null $maximumPhysicalAttendeeCapacity
+ * @param \OpenActive\Models\SchemaOrg\Review|string $review
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity)
+ public function setReview($review)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Review",
+ "string",
];
- $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types);
+ $review = self::checkTypes($review, $types);
- $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity;
+ $this->review = $review;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return DateInterval|string|null
*/
- public function getAttendee()
+ public function getDuration()
{
- return $this->attendee;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendee
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAttendee($attendee)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "DateInterval",
"string",
+ "null",
];
- $attendee = self::checkTypes($attendee, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->attendee = $attendee;
+ $this->duration = $duration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getWorkFeatured()
+ public function getInLanguage()
{
- return $this->workFeatured;
+ return $this->inLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workFeatured
+ * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkFeatured($workFeatured)
+ public function setInLanguage($inLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $workFeatured = self::checkTypes($workFeatured, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->workFeatured = $workFeatured;
+ $this->inLanguage = $inLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Schedule|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getEventSchedule()
+ public function getAudience()
{
- return $this->eventSchedule;
+ return $this->audience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Schedule|string $eventSchedule
+ * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEventSchedule($eventSchedule)
+ public function setAudience($audience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Schedule",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $eventSchedule = self::checkTypes($eventSchedule, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->eventSchedule = $eventSchedule;
+ $this->audience = $audience;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return int|null
*/
- public function getContributor()
+ public function getMaximumPhysicalAttendeeCapacity()
{
- return $this->contributor;
+ return $this->maximumPhysicalAttendeeCapacity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
+ * @param int|null $maximumPhysicalAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContributor($contributor)
+ public function setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "int",
+ "null",
];
- $contributor = self::checkTypes($contributor, $types);
+ $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types);
- $this->contributor = $contributor;
+ $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAttendees()
+ public function getContributor()
{
- return $this->attendees;
+ return $this->contributor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendees
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $contributor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAttendees($attendees)
+ public function setContributor($contributor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
@@ -1434,9 +1434,9 @@ public function setAttendees($attendees)
"string",
];
- $attendees = self::checkTypes($attendees, $types);
+ $contributor = self::checkTypes($contributor, $types);
- $this->attendees = $attendees;
+ $this->contributor = $contributor;
}
}
diff --git a/src/Models/SchemaOrg/ExchangeRateSpecification.php b/src/Models/SchemaOrg/ExchangeRateSpecification.php
index 46d61d52..0c8bd4ff 100644
--- a/src/Models/SchemaOrg/ExchangeRateSpecification.php
+++ b/src/Models/SchemaOrg/ExchangeRateSpecification.php
@@ -17,65 +17,64 @@ public static function getType()
public static function fieldList() {
$fields = [
- "currentExchangeRate" => "currentExchangeRate",
- "exchangeRateSpread" => "exchangeRateSpread",
"currency" => "currency",
+ "exchangeRateSpread" => "exchangeRateSpread",
+ "currentExchangeRate" => "currentExchangeRate",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The current price of a currency.
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
- * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
+ * @var string
*/
- protected $currentExchangeRate;
+ protected $currency;
/**
* The difference between the price at which a broker or other intermediary buys and sells foreign currency.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
protected $exchangeRateSpread;
/**
- * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The current price of a currency.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
*/
- protected $currency;
+ protected $currentExchangeRate;
/**
- * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
+ * @return string
*/
- public function getCurrentExchangeRate()
+ public function getCurrency()
{
- return $this->currentExchangeRate;
+ return $this->currency;
}
/**
- * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $currentExchangeRate
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrentExchangeRate($currentExchangeRate)
+ public function setCurrency($currency)
{
$types = [
- "\OpenActive\Models\SchemaOrg\UnitPriceSpecification",
"string",
];
- $currentExchangeRate = self::checkTypes($currentExchangeRate, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->currentExchangeRate = $currentExchangeRate;
+ $this->currency = $currency;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getExchangeRateSpread()
{
@@ -83,16 +82,16 @@ public function getExchangeRateSpread()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $exchangeRateSpread
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $exchangeRateSpread
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setExchangeRateSpread($exchangeRateSpread)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
@@ -102,27 +101,28 @@ public function setExchangeRateSpread($exchangeRateSpread)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
*/
- public function getCurrency()
+ public function getCurrentExchangeRate()
{
- return $this->currency;
+ return $this->currentExchangeRate;
}
/**
- * @param string $currency
+ * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $currentExchangeRate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrency($currency)
+ public function setCurrentExchangeRate($currentExchangeRate)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\UnitPriceSpecification",
"string",
];
- $currency = self::checkTypes($currency, $types);
+ $currentExchangeRate = self::checkTypes($currentExchangeRate, $types);
- $this->currency = $currency;
+ $this->currentExchangeRate = $currentExchangeRate;
}
}
diff --git a/src/Models/SchemaOrg/ExerciseAction.php b/src/Models/SchemaOrg/ExerciseAction.php
index 77e1786e..2961ddd4 100644
--- a/src/Models/SchemaOrg/ExerciseAction.php
+++ b/src/Models/SchemaOrg/ExerciseAction.php
@@ -17,47 +17,47 @@ public static function getType()
public static function fieldList() {
$fields = [
- "sportsTeam" => "sportsTeam",
"course" => "course",
- "fromLocation" => "fromLocation",
- "diet" => "diet",
- "sportsActivityLocation" => "sportsActivityLocation",
- "distance" => "distance",
- "exercisePlan" => "exercisePlan",
- "sportsEvent" => "sportsEvent",
"exerciseRelatedDiet" => "exerciseRelatedDiet",
+ "sportsEvent" => "sportsEvent",
+ "diet" => "diet",
"opponent" => "opponent",
- "exerciseCourse" => "exerciseCourse",
- "toLocation" => "toLocation",
"exerciseType" => "exerciseType",
+ "exercisePlan" => "exercisePlan",
+ "toLocation" => "toLocation",
+ "sportsActivityLocation" => "sportsActivityLocation",
+ "exerciseCourse" => "exerciseCourse",
+ "fromLocation" => "fromLocation",
+ "distance" => "distance",
+ "sportsTeam" => "sportsTeam",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A sub property of participant. The sports team that participated on this action.
+ * A sub property of location. The course where this action was taken.
*
*
- * @var \OpenActive\Models\SchemaOrg\SportsTeam|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $sportsTeam;
+ protected $course;
/**
- * A sub property of location. The course where this action was taken.
+ * A sub property of instrument. The diet used in this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Diet|string
*/
- protected $course;
+ protected $exerciseRelatedDiet;
/**
- * A sub property of location. The original location of the object or the agent before the action.
+ * A sub property of location. The sports event where this action occurred.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\SportsEvent|string
*/
- protected $fromLocation;
+ protected $sportsEvent;
/**
* A sub property of instrument. The diet used in this action.
@@ -68,20 +68,20 @@ public static function fieldList() {
protected $diet;
/**
- * A sub property of location. The sports activity location where this action occurred.
+ * A sub property of participant. The opponent on this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\SportsActivityLocation|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $sportsActivityLocation;
+ protected $opponent;
/**
- * The distance travelled, e.g. exercising or travelling.
+ * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|string
+ * @var string
*/
- protected $distance;
+ protected $exerciseType;
/**
* A sub property of instrument. The exercise plan used on this action.
@@ -92,126 +92,126 @@ public static function fieldList() {
protected $exercisePlan;
/**
- * A sub property of location. The sports event where this action occurred.
+ * A sub property of location. The final location of the object or the agent after the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\SportsEvent|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $sportsEvent;
+ protected $toLocation;
/**
- * A sub property of instrument. The diet used in this action.
+ * A sub property of location. The sports activity location where this action occurred.
*
*
- * @var \OpenActive\Models\SchemaOrg\Diet|string
+ * @var \OpenActive\Models\SchemaOrg\SportsActivityLocation|string
*/
- protected $exerciseRelatedDiet;
+ protected $sportsActivityLocation;
/**
- * A sub property of participant. The opponent on this action.
+ * A sub property of location. The course where this action was taken.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $opponent;
+ protected $exerciseCourse;
/**
- * A sub property of location. The course where this action was taken.
+ * A sub property of location. The original location of the object or the agent before the action.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $exerciseCourse;
+ protected $fromLocation;
/**
- * A sub property of location. The final location of the object or the agent after the action.
+ * The distance travelled, e.g. exercising or travelling.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $toLocation;
+ protected $distance;
/**
- * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
+ * A sub property of participant. The sports team that participated on this action.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- protected $exerciseType;
+ protected $sportsTeam;
/**
- * @return \OpenActive\Models\SchemaOrg\SportsTeam|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getSportsTeam()
+ public function getCourse()
{
- return $this->sportsTeam;
+ return $this->course;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SportsTeam|string $sportsTeam
+ * @param \OpenActive\Models\SchemaOrg\Place|string $course
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSportsTeam($sportsTeam)
+ public function setCourse($course)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SportsTeam",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $sportsTeam = self::checkTypes($sportsTeam, $types);
+ $course = self::checkTypes($course, $types);
- $this->sportsTeam = $sportsTeam;
+ $this->course = $course;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Diet|string
*/
- public function getCourse()
+ public function getExerciseRelatedDiet()
{
- return $this->course;
+ return $this->exerciseRelatedDiet;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $course
+ * @param \OpenActive\Models\SchemaOrg\Diet|string $exerciseRelatedDiet
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCourse($course)
+ public function setExerciseRelatedDiet($exerciseRelatedDiet)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Diet",
"string",
];
- $course = self::checkTypes($course, $types);
+ $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types);
- $this->course = $course;
+ $this->exerciseRelatedDiet = $exerciseRelatedDiet;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\SportsEvent|string
*/
- public function getFromLocation()
+ public function getSportsEvent()
{
- return $this->fromLocation;
+ return $this->sportsEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation
+ * @param \OpenActive\Models\SchemaOrg\SportsEvent|string $sportsEvent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFromLocation($fromLocation)
+ public function setSportsEvent($sportsEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\SportsEvent",
"string",
];
- $fromLocation = self::checkTypes($fromLocation, $types);
+ $sportsEvent = self::checkTypes($sportsEvent, $types);
- $this->fromLocation = $fromLocation;
+ $this->sportsEvent = $sportsEvent;
}
/**
@@ -240,53 +240,52 @@ public function setDiet($diet)
}
/**
- * @return \OpenActive\Models\SchemaOrg\SportsActivityLocation|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSportsActivityLocation()
+ public function getOpponent()
{
- return $this->sportsActivityLocation;
+ return $this->opponent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SportsActivityLocation|string $sportsActivityLocation
+ * @param \OpenActive\Models\SchemaOrg\Person|string $opponent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSportsActivityLocation($sportsActivityLocation)
+ public function setOpponent($opponent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SportsActivityLocation",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $sportsActivityLocation = self::checkTypes($sportsActivityLocation, $types);
+ $opponent = self::checkTypes($opponent, $types);
- $this->sportsActivityLocation = $sportsActivityLocation;
+ $this->opponent = $opponent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|string
+ * @return string
*/
- public function getDistance()
+ public function getExerciseType()
{
- return $this->distance;
+ return $this->exerciseType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|string $distance
+ * @param string $exerciseType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDistance($distance)
+ public function setExerciseType($exerciseType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $distance = self::checkTypes($distance, $types);
+ $exerciseType = self::checkTypes($exerciseType, $types);
- $this->distance = $distance;
+ $this->exerciseType = $exerciseType;
}
/**
@@ -315,152 +314,153 @@ public function setExercisePlan($exercisePlan)
}
/**
- * @return \OpenActive\Models\SchemaOrg\SportsEvent|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getSportsEvent()
+ public function getToLocation()
{
- return $this->sportsEvent;
+ return $this->toLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SportsEvent|string $sportsEvent
+ * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSportsEvent($sportsEvent)
+ public function setToLocation($toLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SportsEvent",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $sportsEvent = self::checkTypes($sportsEvent, $types);
+ $toLocation = self::checkTypes($toLocation, $types);
- $this->sportsEvent = $sportsEvent;
+ $this->toLocation = $toLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Diet|string
+ * @return \OpenActive\Models\SchemaOrg\SportsActivityLocation|string
*/
- public function getExerciseRelatedDiet()
+ public function getSportsActivityLocation()
{
- return $this->exerciseRelatedDiet;
+ return $this->sportsActivityLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Diet|string $exerciseRelatedDiet
+ * @param \OpenActive\Models\SchemaOrg\SportsActivityLocation|string $sportsActivityLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExerciseRelatedDiet($exerciseRelatedDiet)
+ public function setSportsActivityLocation($sportsActivityLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Diet",
+ "\OpenActive\Models\SchemaOrg\SportsActivityLocation",
"string",
];
- $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types);
+ $sportsActivityLocation = self::checkTypes($sportsActivityLocation, $types);
- $this->exerciseRelatedDiet = $exerciseRelatedDiet;
+ $this->sportsActivityLocation = $sportsActivityLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getOpponent()
+ public function getExerciseCourse()
{
- return $this->opponent;
+ return $this->exerciseCourse;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $opponent
+ * @param \OpenActive\Models\SchemaOrg\Place|string $exerciseCourse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOpponent($opponent)
+ public function setExerciseCourse($exerciseCourse)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $opponent = self::checkTypes($opponent, $types);
+ $exerciseCourse = self::checkTypes($exerciseCourse, $types);
- $this->opponent = $opponent;
+ $this->exerciseCourse = $exerciseCourse;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getExerciseCourse()
+ public function getFromLocation()
{
- return $this->exerciseCourse;
+ return $this->fromLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $exerciseCourse
+ * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExerciseCourse($exerciseCourse)
+ public function setFromLocation($fromLocation)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $exerciseCourse = self::checkTypes($exerciseCourse, $types);
+ $fromLocation = self::checkTypes($fromLocation, $types);
- $this->exerciseCourse = $exerciseCourse;
+ $this->fromLocation = $fromLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getToLocation()
+ public function getDistance()
{
- return $this->toLocation;
+ return $this->distance;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation
+ * @param \OpenActive\Models\SchemaOrg\Distance|string $distance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setToLocation($toLocation)
+ public function setDistance($distance)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $toLocation = self::checkTypes($toLocation, $types);
+ $distance = self::checkTypes($distance, $types);
- $this->toLocation = $toLocation;
+ $this->distance = $distance;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- public function getExerciseType()
+ public function getSportsTeam()
{
- return $this->exerciseType;
+ return $this->sportsTeam;
}
/**
- * @param string $exerciseType
+ * @param \OpenActive\Models\SchemaOrg\SportsTeam|string $sportsTeam
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExerciseType($exerciseType)
+ public function setSportsTeam($sportsTeam)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SportsTeam",
"string",
];
- $exerciseType = self::checkTypes($exerciseType, $types);
+ $sportsTeam = self::checkTypes($sportsTeam, $types);
- $this->exerciseType = $exerciseType;
+ $this->sportsTeam = $sportsTeam;
}
}
diff --git a/src/Models/SchemaOrg/ExercisePlan.php b/src/Models/SchemaOrg/ExercisePlan.php
index df458ebc..6700602f 100644
--- a/src/Models/SchemaOrg/ExercisePlan.php
+++ b/src/Models/SchemaOrg/ExercisePlan.php
@@ -17,58 +17,50 @@ public static function getType()
public static function fieldList() {
$fields = [
- "repetitions" => "repetitions",
- "intensity" => "intensity",
- "workload" => "workload",
- "activityDuration" => "activityDuration",
"restPeriods" => "restPeriods",
- "activityFrequency" => "activityFrequency",
+ "workload" => "workload",
"additionalVariable" => "additionalVariable",
+ "intensity" => "intensity",
+ "activityFrequency" => "activityFrequency",
"exerciseType" => "exerciseType",
+ "repetitions" => "repetitions",
+ "activityDuration" => "activityDuration",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Number of times one should repeat the activity.
- *
- *
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
- */
- protected $repetitions;
-
- /**
- * Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement.
+ * How often one should break from the activity.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- protected $intensity;
+ protected $restPeriods;
/**
* Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string
+ * @var \OpenActive\Models\SchemaOrg\Energy|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
protected $workload;
/**
- * Length of time to engage in the activity.
+ * Any additional component of the exercise prescription that may need to be articulated to the patient. This may include the order of exercises, the number of repetitions of movement, quantitative distance, progressions over time, etc.
*
*
- * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var string
*/
- protected $activityDuration;
+ protected $additionalVariable;
/**
- * How often one should break from the activity.
+ * Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement.
*
*
* @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- protected $restPeriods;
+ protected $intensity;
/**
* How often one should engage in the activity.
@@ -78,14 +70,6 @@ public static function fieldList() {
*/
protected $activityFrequency;
- /**
- * Any additional component of the exercise prescription that may need to be articulated to the patient. This may include the order of exercises, the number of repetitions of movement, quantitative distance, progressions over time, etc.
- *
- *
- * @var string
- */
- protected $additionalVariable;
-
/**
* Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
*
@@ -95,59 +79,48 @@ public static function fieldList() {
protected $exerciseType;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * Number of times one should repeat the activity.
+ *
+ *
+ * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getRepetitions()
- {
- return $this->repetitions;
- }
+ protected $repetitions;
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $repetitions
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * Length of time to engage in the activity.
+ *
+ *
+ * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function setRepetitions($repetitions)
- {
- $types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
- "null",
- ];
-
- $repetitions = self::checkTypes($repetitions, $types);
-
- $this->repetitions = $repetitions;
- }
+ protected $activityDuration;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getIntensity()
+ public function getRestPeriods()
{
- return $this->intensity;
+ return $this->restPeriods;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $intensity
+ * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $restPeriods
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIntensity($intensity)
+ public function setRestPeriods($restPeriods)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $intensity = self::checkTypes($intensity, $types);
+ $restPeriods = self::checkTypes($restPeriods, $types);
- $this->intensity = $intensity;
+ $this->restPeriods = $restPeriods;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string
+ * @return \OpenActive\Models\SchemaOrg\Energy|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
public function getWorkload()
{
@@ -155,15 +128,15 @@ public function getWorkload()
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string $workload
+ * @param \OpenActive\Models\SchemaOrg\Energy|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $workload
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setWorkload($workload)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"\OpenActive\Models\SchemaOrg\Energy",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
@@ -173,55 +146,52 @@ public function setWorkload($workload)
}
/**
- * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return string
*/
- public function getActivityDuration()
+ public function getAdditionalVariable()
{
- return $this->activityDuration;
+ return $this->additionalVariable;
}
/**
- * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $activityDuration
+ * @param string $additionalVariable
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActivityDuration($activityDuration)
+ public function setAdditionalVariable($additionalVariable)
{
$types = [
- "DateInterval",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $activityDuration = self::checkTypes($activityDuration, $types);
+ $additionalVariable = self::checkTypes($additionalVariable, $types);
- $this->activityDuration = $activityDuration;
+ $this->additionalVariable = $additionalVariable;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getRestPeriods()
+ public function getIntensity()
{
- return $this->restPeriods;
+ return $this->intensity;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $restPeriods
+ * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $intensity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRestPeriods($restPeriods)
+ public function setIntensity($intensity)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $restPeriods = self::checkTypes($restPeriods, $types);
+ $intensity = self::checkTypes($intensity, $types);
- $this->restPeriods = $restPeriods;
+ $this->intensity = $intensity;
}
/**
@@ -252,49 +222,79 @@ public function setActivityFrequency($activityFrequency)
/**
* @return string
*/
- public function getAdditionalVariable()
+ public function getExerciseType()
{
- return $this->additionalVariable;
+ return $this->exerciseType;
}
/**
- * @param string $additionalVariable
+ * @param string $exerciseType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdditionalVariable($additionalVariable)
+ public function setExerciseType($exerciseType)
{
$types = [
"string",
];
- $additionalVariable = self::checkTypes($additionalVariable, $types);
+ $exerciseType = self::checkTypes($exerciseType, $types);
- $this->additionalVariable = $additionalVariable;
+ $this->exerciseType = $exerciseType;
}
/**
- * @return string
+ * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getExerciseType()
+ public function getRepetitions()
{
- return $this->exerciseType;
+ return $this->repetitions;
}
/**
- * @param string $exerciseType
+ * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $repetitions
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExerciseType($exerciseType)
+ public function setRepetitions($repetitions)
{
$types = [
+ "Number",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "null",
];
- $exerciseType = self::checkTypes($exerciseType, $types);
+ $repetitions = self::checkTypes($repetitions, $types);
- $this->exerciseType = $exerciseType;
+ $this->repetitions = $repetitions;
+ }
+
+ /**
+ * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ */
+ public function getActivityDuration()
+ {
+ return $this->activityDuration;
+ }
+
+ /**
+ * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $activityDuration
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setActivityDuration($activityDuration)
+ {
+ $types = [
+ "DateInterval",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ "null",
+ ];
+
+ $activityDuration = self::checkTypes($activityDuration, $types);
+
+ $this->activityDuration = $activityDuration;
}
}
diff --git a/src/Models/SchemaOrg/FinancialProduct.php b/src/Models/SchemaOrg/FinancialProduct.php
index b823898c..3cca89da 100644
--- a/src/Models/SchemaOrg/FinancialProduct.php
+++ b/src/Models/SchemaOrg/FinancialProduct.php
@@ -17,103 +17,103 @@ public static function getType()
public static function fieldList() {
$fields = [
- "annualPercentageRate" => "annualPercentageRate",
"feesAndCommissionsSpecification" => "feesAndCommissionsSpecification",
"interestRate" => "interestRate",
+ "annualPercentageRate" => "annualPercentageRate",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The annual rate that is charged for borrowing (or made by investing), expressed as a single percentage number that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction.
+ * Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var string
*/
- protected $annualPercentageRate;
+ protected $feesAndCommissionsSpecification;
/**
- * Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.
+ * The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $feesAndCommissionsSpecification;
+ protected $interestRate;
/**
- * The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.
+ * The annual rate that is charged for borrowing (or made by investing), expressed as a single percentage number that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction.
*
*
* @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $interestRate;
+ protected $annualPercentageRate;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return string
*/
- public function getAnnualPercentageRate()
+ public function getFeesAndCommissionsSpecification()
{
- return $this->annualPercentageRate;
+ return $this->feesAndCommissionsSpecification;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $annualPercentageRate
+ * @param string $feesAndCommissionsSpecification
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAnnualPercentageRate($annualPercentageRate)
+ public function setFeesAndCommissionsSpecification($feesAndCommissionsSpecification)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $annualPercentageRate = self::checkTypes($annualPercentageRate, $types);
+ $feesAndCommissionsSpecification = self::checkTypes($feesAndCommissionsSpecification, $types);
- $this->annualPercentageRate = $annualPercentageRate;
+ $this->feesAndCommissionsSpecification = $feesAndCommissionsSpecification;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getFeesAndCommissionsSpecification()
+ public function getInterestRate()
{
- return $this->feesAndCommissionsSpecification;
+ return $this->interestRate;
}
/**
- * @param string $feesAndCommissionsSpecification
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $interestRate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFeesAndCommissionsSpecification($feesAndCommissionsSpecification)
+ public function setInterestRate($interestRate)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
+ "null",
];
- $feesAndCommissionsSpecification = self::checkTypes($feesAndCommissionsSpecification, $types);
+ $interestRate = self::checkTypes($interestRate, $types);
- $this->feesAndCommissionsSpecification = $feesAndCommissionsSpecification;
+ $this->interestRate = $interestRate;
}
/**
* @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getInterestRate()
+ public function getAnnualPercentageRate()
{
- return $this->interestRate;
+ return $this->annualPercentageRate;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $interestRate
+ * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $annualPercentageRate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInterestRate($interestRate)
+ public function setAnnualPercentageRate($annualPercentageRate)
{
$types = [
"Number",
@@ -122,9 +122,9 @@ public function setInterestRate($interestRate)
"null",
];
- $interestRate = self::checkTypes($interestRate, $types);
+ $annualPercentageRate = self::checkTypes($annualPercentageRate, $types);
- $this->interestRate = $interestRate;
+ $this->annualPercentageRate = $annualPercentageRate;
}
}
diff --git a/src/Models/SchemaOrg/FireStation.php b/src/Models/SchemaOrg/FireStation.php
index 8cdd4a08..bacba6c2 100644
--- a/src/Models/SchemaOrg/FireStation.php
+++ b/src/Models/SchemaOrg/FireStation.php
@@ -5,7 +5,7 @@
/**
*
*/
-class FireStation extends \OpenActive\Models\SchemaOrg\CivicStructure
+class FireStation extends \OpenActive\Models\SchemaOrg\EmergencyService
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/Flight.php b/src/Models/SchemaOrg/Flight.php
index 884e8838..be1a4ceb 100644
--- a/src/Models/SchemaOrg/Flight.php
+++ b/src/Models/SchemaOrg/Flight.php
@@ -17,65 +17,65 @@ public static function getType()
public static function fieldList() {
$fields = [
- "flightDistance" => "flightDistance",
- "webCheckinTime" => "webCheckinTime",
- "aircraft" => "aircraft",
- "seller" => "seller",
- "arrivalAirport" => "arrivalAirport",
- "arrivalTerminal" => "arrivalTerminal",
- "departureAirport" => "departureAirport",
- "arrivalGate" => "arrivalGate",
+ "boardingPolicy" => "boardingPolicy",
"departureTerminal" => "departureTerminal",
- "carrier" => "carrier",
- "estimatedFlightDuration" => "estimatedFlightDuration",
+ "flightDistance" => "flightDistance",
"departureGate" => "departureGate",
"flightNumber" => "flightNumber",
+ "arrivalTerminal" => "arrivalTerminal",
+ "arrivalAirport" => "arrivalAirport",
+ "aircraft" => "aircraft",
+ "webCheckinTime" => "webCheckinTime",
"mealService" => "mealService",
- "boardingPolicy" => "boardingPolicy",
+ "estimatedFlightDuration" => "estimatedFlightDuration",
+ "carrier" => "carrier",
+ "departureAirport" => "departureAirport",
+ "seller" => "seller",
+ "arrivalGate" => "arrivalGate",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The distance of the flight.
+ * The type of boarding policy used by the airline (e.g. zone-based or group-based).
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|string
+ * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null
*/
- protected $flightDistance;
+ protected $boardingPolicy;
/**
- * The time when a passenger can check into the flight online.
+ * Identifier of the flight's departure terminal.
*
*
- * @var DateTime|null
+ * @var string
*/
- protected $webCheckinTime;
+ protected $departureTerminal;
/**
- * The kind of aircraft (e.g., "Boeing 747").
+ * The distance of the flight.
*
*
- * @var \OpenActive\Models\SchemaOrg\Vehicle|string
+ * @var \OpenActive\Models\SchemaOrg\Distance|string
*/
- protected $aircraft;
+ protected $flightDistance;
/**
- * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
+ * Identifier of the flight's departure gate.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $seller;
+ protected $departureGate;
/**
- * The airport where the flight terminates.
+ * The unique identifier for a flight including the airline IATA code. For example, if describing United flight 110, where the IATA code for United is 'UA', the flightNumber is 'UA110'.
*
*
- * @var \OpenActive\Models\SchemaOrg\Airport|string
+ * @var string
*/
- protected $arrivalAirport;
+ protected $flightNumber;
/**
* Identifier of the flight's arrival terminal.
@@ -86,36 +86,36 @@ public static function fieldList() {
protected $arrivalTerminal;
/**
- * The airport where the flight originates.
+ * The airport where the flight terminates.
*
*
* @var \OpenActive\Models\SchemaOrg\Airport|string
*/
- protected $departureAirport;
+ protected $arrivalAirport;
/**
- * Identifier of the flight's arrival gate.
+ * The kind of aircraft (e.g., "Boeing 747").
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Vehicle|string
*/
- protected $arrivalGate;
+ protected $aircraft;
/**
- * Identifier of the flight's departure terminal.
+ * The time when a passenger can check into the flight online.
*
*
- * @var string
+ * @var DateTime|null
*/
- protected $departureTerminal;
+ protected $webCheckinTime;
/**
- * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights.
+ * Description of the meals that will be provided or available for purchase.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $carrier;
+ protected $mealService;
/**
* The estimated time the flight will take.
@@ -126,161 +126,157 @@ public static function fieldList() {
protected $estimatedFlightDuration;
/**
- * Identifier of the flight's departure gate.
+ * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $departureGate;
+ protected $carrier;
/**
- * The unique identifier for a flight including the airline IATA code. For example, if describing United flight 110, where the IATA code for United is 'UA', the flightNumber is 'UA110'.
+ * The airport where the flight originates.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Airport|string
*/
- protected $flightNumber;
+ protected $departureAirport;
/**
- * Description of the meals that will be provided or available for purchase.
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $mealService;
+ protected $seller;
/**
- * The type of boarding policy used by the airline (e.g. zone-based or group-based).
+ * Identifier of the flight's arrival gate.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null
+ * @var string
*/
- protected $boardingPolicy;
+ protected $arrivalGate;
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|string
+ * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null
*/
- public function getFlightDistance()
+ public function getBoardingPolicy()
{
- return $this->flightDistance;
+ return $this->boardingPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|string $flightDistance
+ * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFlightDistance($flightDistance)
+ public function setBoardingPolicy($boardingPolicy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
- "string",
+ "\OpenActive\Enums\SchemaOrg\BoardingPolicyType",
+ "null",
];
- $flightDistance = self::checkTypes($flightDistance, $types);
+ $boardingPolicy = self::checkTypes($boardingPolicy, $types);
- $this->flightDistance = $flightDistance;
+ $this->boardingPolicy = $boardingPolicy;
}
/**
- * @return DateTime|null
+ * @return string
*/
- public function getWebCheckinTime()
+ public function getDepartureTerminal()
{
- return $this->webCheckinTime;
+ return $this->departureTerminal;
}
/**
- * @param DateTime|null $webCheckinTime
+ * @param string $departureTerminal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWebCheckinTime($webCheckinTime)
+ public function setDepartureTerminal($departureTerminal)
{
$types = [
- "DateTime",
- "null",
+ "string",
];
- $webCheckinTime = self::checkTypes($webCheckinTime, $types);
+ $departureTerminal = self::checkTypes($departureTerminal, $types);
- $this->webCheckinTime = $webCheckinTime;
+ $this->departureTerminal = $departureTerminal;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Vehicle|string
+ * @return \OpenActive\Models\SchemaOrg\Distance|string
*/
- public function getAircraft()
+ public function getFlightDistance()
{
- return $this->aircraft;
+ return $this->flightDistance;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vehicle|string $aircraft
+ * @param \OpenActive\Models\SchemaOrg\Distance|string $flightDistance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAircraft($aircraft)
+ public function setFlightDistance($flightDistance)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vehicle",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $aircraft = self::checkTypes($aircraft, $types);
+ $flightDistance = self::checkTypes($flightDistance, $types);
- $this->aircraft = $aircraft;
+ $this->flightDistance = $flightDistance;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getSeller()
+ public function getDepartureGate()
{
- return $this->seller;
+ return $this->departureGate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
+ * @param string $departureGate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeller($seller)
+ public function setDepartureGate($departureGate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $seller = self::checkTypes($seller, $types);
+ $departureGate = self::checkTypes($departureGate, $types);
- $this->seller = $seller;
+ $this->departureGate = $departureGate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Airport|string
+ * @return string
*/
- public function getArrivalAirport()
+ public function getFlightNumber()
{
- return $this->arrivalAirport;
+ return $this->flightNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Airport|string $arrivalAirport
+ * @param string $flightNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArrivalAirport($arrivalAirport)
+ public function setFlightNumber($flightNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Airport",
"string",
];
- $arrivalAirport = self::checkTypes($arrivalAirport, $types);
+ $flightNumber = self::checkTypes($flightNumber, $types);
- $this->arrivalAirport = $arrivalAirport;
+ $this->flightNumber = $flightNumber;
}
/**
@@ -310,99 +306,100 @@ public function setArrivalTerminal($arrivalTerminal)
/**
* @return \OpenActive\Models\SchemaOrg\Airport|string
*/
- public function getDepartureAirport()
+ public function getArrivalAirport()
{
- return $this->departureAirport;
+ return $this->arrivalAirport;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Airport|string $departureAirport
+ * @param \OpenActive\Models\SchemaOrg\Airport|string $arrivalAirport
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureAirport($departureAirport)
+ public function setArrivalAirport($arrivalAirport)
{
$types = [
"\OpenActive\Models\SchemaOrg\Airport",
"string",
];
- $departureAirport = self::checkTypes($departureAirport, $types);
+ $arrivalAirport = self::checkTypes($arrivalAirport, $types);
- $this->departureAirport = $departureAirport;
+ $this->arrivalAirport = $arrivalAirport;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Vehicle|string
*/
- public function getArrivalGate()
+ public function getAircraft()
{
- return $this->arrivalGate;
+ return $this->aircraft;
}
/**
- * @param string $arrivalGate
+ * @param \OpenActive\Models\SchemaOrg\Vehicle|string $aircraft
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArrivalGate($arrivalGate)
+ public function setAircraft($aircraft)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Vehicle",
"string",
];
- $arrivalGate = self::checkTypes($arrivalGate, $types);
+ $aircraft = self::checkTypes($aircraft, $types);
- $this->arrivalGate = $arrivalGate;
+ $this->aircraft = $aircraft;
}
/**
- * @return string
+ * @return DateTime|null
*/
- public function getDepartureTerminal()
+ public function getWebCheckinTime()
{
- return $this->departureTerminal;
+ return $this->webCheckinTime;
}
/**
- * @param string $departureTerminal
+ * @param DateTime|null $webCheckinTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureTerminal($departureTerminal)
+ public function setWebCheckinTime($webCheckinTime)
{
$types = [
- "string",
+ "DateTime",
+ "null",
];
- $departureTerminal = self::checkTypes($departureTerminal, $types);
+ $webCheckinTime = self::checkTypes($webCheckinTime, $types);
- $this->departureTerminal = $departureTerminal;
+ $this->webCheckinTime = $webCheckinTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getCarrier()
+ public function getMealService()
{
- return $this->carrier;
+ return $this->mealService;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier
+ * @param string $mealService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCarrier($carrier)
+ public function setMealService($mealService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $carrier = self::checkTypes($carrier, $types);
+ $mealService = self::checkTypes($mealService, $types);
- $this->carrier = $carrier;
+ $this->mealService = $mealService;
}
/**
@@ -432,100 +429,103 @@ public function setEstimatedFlightDuration($estimatedFlightDuration)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDepartureGate()
+ public function getCarrier()
{
- return $this->departureGate;
+ return $this->carrier;
}
/**
- * @param string $departureGate
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureGate($departureGate)
+ public function setCarrier($carrier)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $departureGate = self::checkTypes($departureGate, $types);
+ $carrier = self::checkTypes($carrier, $types);
- $this->departureGate = $departureGate;
+ $this->carrier = $carrier;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Airport|string
*/
- public function getFlightNumber()
+ public function getDepartureAirport()
{
- return $this->flightNumber;
+ return $this->departureAirport;
}
/**
- * @param string $flightNumber
+ * @param \OpenActive\Models\SchemaOrg\Airport|string $departureAirport
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFlightNumber($flightNumber)
+ public function setDepartureAirport($departureAirport)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Airport",
"string",
];
- $flightNumber = self::checkTypes($flightNumber, $types);
+ $departureAirport = self::checkTypes($departureAirport, $types);
- $this->flightNumber = $flightNumber;
+ $this->departureAirport = $departureAirport;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getMealService()
+ public function getSeller()
{
- return $this->mealService;
+ return $this->seller;
}
/**
- * @param string $mealService
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $seller
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMealService($mealService)
+ public function setSeller($seller)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $mealService = self::checkTypes($mealService, $types);
+ $seller = self::checkTypes($seller, $types);
- $this->mealService = $mealService;
+ $this->seller = $seller;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null
+ * @return string
*/
- public function getBoardingPolicy()
+ public function getArrivalGate()
{
- return $this->boardingPolicy;
+ return $this->arrivalGate;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy
+ * @param string $arrivalGate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBoardingPolicy($boardingPolicy)
+ public function setArrivalGate($arrivalGate)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BoardingPolicyType",
- "null",
+ "string",
];
- $boardingPolicy = self::checkTypes($boardingPolicy, $types);
+ $arrivalGate = self::checkTypes($arrivalGate, $types);
- $this->boardingPolicy = $boardingPolicy;
+ $this->arrivalGate = $arrivalGate;
}
}
diff --git a/src/Models/SchemaOrg/FlightReservation.php b/src/Models/SchemaOrg/FlightReservation.php
index 86c2d57b..ee916a5e 100644
--- a/src/Models/SchemaOrg/FlightReservation.php
+++ b/src/Models/SchemaOrg/FlightReservation.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"passengerPriorityStatus" => "passengerPriorityStatus",
- "boardingGroup" => "boardingGroup",
"securityScreening" => "securityScreening",
+ "boardingGroup" => "boardingGroup",
"passengerSequenceNumber" => "passengerSequenceNumber",
];
@@ -35,20 +35,20 @@ public static function fieldList() {
protected $passengerPriorityStatus;
/**
- * The airline-specific indicator of boarding order / preference.
+ * The type of security screening the passenger is subject to.
*
*
* @var string
*/
- protected $boardingGroup;
+ protected $securityScreening;
/**
- * The type of security screening the passenger is subject to.
+ * The airline-specific indicator of boarding order / preference.
*
*
* @var string
*/
- protected $securityScreening;
+ protected $boardingGroup;
/**
* The passenger's sequence number as assigned by the airline.
@@ -87,49 +87,49 @@ public function setPassengerPriorityStatus($passengerPriorityStatus)
/**
* @return string
*/
- public function getBoardingGroup()
+ public function getSecurityScreening()
{
- return $this->boardingGroup;
+ return $this->securityScreening;
}
/**
- * @param string $boardingGroup
+ * @param string $securityScreening
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBoardingGroup($boardingGroup)
+ public function setSecurityScreening($securityScreening)
{
$types = [
"string",
];
- $boardingGroup = self::checkTypes($boardingGroup, $types);
+ $securityScreening = self::checkTypes($securityScreening, $types);
- $this->boardingGroup = $boardingGroup;
+ $this->securityScreening = $securityScreening;
}
/**
* @return string
*/
- public function getSecurityScreening()
+ public function getBoardingGroup()
{
- return $this->securityScreening;
+ return $this->boardingGroup;
}
/**
- * @param string $securityScreening
+ * @param string $boardingGroup
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSecurityScreening($securityScreening)
+ public function setBoardingGroup($boardingGroup)
{
$types = [
"string",
];
- $securityScreening = self::checkTypes($securityScreening, $types);
+ $boardingGroup = self::checkTypes($boardingGroup, $types);
- $this->securityScreening = $securityScreening;
+ $this->boardingGroup = $boardingGroup;
}
/**
diff --git a/src/Models/SchemaOrg/FloorPlan.php b/src/Models/SchemaOrg/FloorPlan.php
index 118aa873..e17163e4 100644
--- a/src/Models/SchemaOrg/FloorPlan.php
+++ b/src/Models/SchemaOrg/FloorPlan.php
@@ -18,17 +18,17 @@ public static function getType()
public static function fieldList() {
$fields = [
"isPlanForApartment" => "isPlanForApartment",
- "numberOfBathroomsTotal" => "numberOfBathroomsTotal",
"numberOfRooms" => "numberOfRooms",
- "numberOfAccommodationUnits" => "numberOfAccommodationUnits",
"numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits",
+ "floorSize" => "floorSize",
"amenityFeature" => "amenityFeature",
- "numberOfBedrooms" => "numberOfBedrooms",
"numberOfPartialBathrooms" => "numberOfPartialBathrooms",
- "floorSize" => "floorSize",
- "numberOfFullBathrooms" => "numberOfFullBathrooms",
+ "numberOfBathroomsTotal" => "numberOfBathroomsTotal",
"petsAllowed" => "petsAllowed",
+ "numberOfBedrooms" => "numberOfBedrooms",
+ "numberOfAccommodationUnits" => "numberOfAccommodationUnits",
"layoutImage" => "layoutImage",
+ "numberOfFullBathrooms" => "numberOfFullBathrooms",
];
return array_merge(parent::fieldList(), $fields);
@@ -42,14 +42,6 @@ public static function fieldList() {
*/
protected $isPlanForApartment;
- /**
- * The total integer number of bathrooms in a some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].
- *
- *
- * @var int|null
- */
- protected $numberOfBathroomsTotal;
-
/**
* The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business.
* Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.
@@ -60,20 +52,21 @@ public static function fieldList() {
protected $numberOfRooms;
/**
- * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]].
+ * Indicates the number of available accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAccommodationUnits]].
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfAccommodationUnits;
+ protected $numberOfAvailableAccommodationUnits;
/**
- * Indicates the number of available accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAccommodationUnits]].
+ * The size of the accommodation, e.g. in square meter or squarefoot.
+ * Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfAvailableAccommodationUnits;
+ protected $floorSize;
/**
* An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.
@@ -84,45 +77,44 @@ public static function fieldList() {
protected $amenityFeature;
/**
- * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ * Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field).
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var Number|null
*/
- protected $numberOfBedrooms;
+ protected $numberOfPartialBathrooms;
/**
- * Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field).
+ * The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].
*
*
- * @var Number|null
+ * @var int|null
*/
- protected $numberOfPartialBathrooms;
+ protected $numberOfBathroomsTotal;
/**
- * The size of the accommodation, e.g. in square meter or squarefoot.
- * Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard
+ * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var bool|string|null
*/
- protected $floorSize;
+ protected $petsAllowed;
/**
- * Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).
+ * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
*
*
- * @var Number|null
+ * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $numberOfFullBathrooms;
+ protected $numberOfBedrooms;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]].
*
*
- * @var bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $petsAllowed;
+ protected $numberOfAccommodationUnits;
/**
* A schematic image showing the floorplan layout.
@@ -132,6 +124,14 @@ public static function fieldList() {
*/
protected $layoutImage;
+ /**
+ * Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).
+ *
+ *
+ * @var Number|null
+ */
+ protected $numberOfFullBathrooms;
+
/**
* @return \OpenActive\Models\SchemaOrg\Accommodation|string
*/
@@ -157,31 +157,6 @@ public function setIsPlanForApartment($isPlanForApartment)
$this->isPlanForApartment = $isPlanForApartment;
}
- /**
- * @return int|null
- */
- public function getNumberOfBathroomsTotal()
- {
- return $this->numberOfBathroomsTotal;
- }
-
- /**
- * @param int|null $numberOfBathroomsTotal
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setNumberOfBathroomsTotal($numberOfBathroomsTotal)
- {
- $types = [
- "int",
- "null",
- ];
-
- $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types);
-
- $this->numberOfBathroomsTotal = $numberOfBathroomsTotal;
- }
-
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
@@ -212,51 +187,51 @@ public function setNumberOfRooms($numberOfRooms)
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfAccommodationUnits()
+ public function getNumberOfAvailableAccommodationUnits()
{
- return $this->numberOfAccommodationUnits;
+ return $this->numberOfAvailableAccommodationUnits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
+ public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
+ $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
- $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
+ $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfAvailableAccommodationUnits()
+ public function getFloorSize()
{
- return $this->numberOfAvailableAccommodationUnits;
+ return $this->floorSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
+ public function setFloorSize($floorSize)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
+ $floorSize = self::checkTypes($floorSize, $types);
- $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
+ $this->floorSize = $floorSize;
}
/**
@@ -285,131 +260,131 @@ public function setAmenityFeature($amenityFeature)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return Number|null
*/
- public function getNumberOfBedrooms()
+ public function getNumberOfPartialBathrooms()
{
- return $this->numberOfBedrooms;
+ return $this->numberOfPartialBathrooms;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms
+ * @param Number|null $numberOfPartialBathrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfBedrooms($numberOfBedrooms)
+ public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
{
$types = [
"Number",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
"null",
];
- $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
+ $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
- $this->numberOfBedrooms = $numberOfBedrooms;
+ $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
}
/**
- * @return Number|null
+ * @return int|null
*/
- public function getNumberOfPartialBathrooms()
+ public function getNumberOfBathroomsTotal()
{
- return $this->numberOfPartialBathrooms;
+ return $this->numberOfBathroomsTotal;
}
/**
- * @param Number|null $numberOfPartialBathrooms
+ * @param int|null $numberOfBathroomsTotal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
+ public function setNumberOfBathroomsTotal($numberOfBathroomsTotal)
{
$types = [
- "Number",
+ "int",
"null",
];
- $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
+ $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types);
- $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
+ $this->numberOfBathroomsTotal = $numberOfBathroomsTotal;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return bool|string|null
*/
- public function getFloorSize()
+ public function getPetsAllowed()
{
- return $this->floorSize;
+ return $this->petsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFloorSize($floorSize)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "bool",
"string",
+ "null",
];
- $floorSize = self::checkTypes($floorSize, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->floorSize = $floorSize;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @return Number|null
+ * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getNumberOfFullBathrooms()
+ public function getNumberOfBedrooms()
{
- return $this->numberOfFullBathrooms;
+ return $this->numberOfBedrooms;
}
/**
- * @param Number|null $numberOfFullBathrooms
+ * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfFullBathrooms($numberOfFullBathrooms)
+ public function setNumberOfBedrooms($numberOfBedrooms)
{
$types = [
"Number",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
"null",
];
- $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
+ $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
- $this->numberOfFullBathrooms = $numberOfFullBathrooms;
+ $this->numberOfBedrooms = $numberOfBedrooms;
}
/**
- * @return bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getPetsAllowed()
+ public function getNumberOfAccommodationUnits()
{
- return $this->petsAllowed;
+ return $this->numberOfAccommodationUnits;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
}
/**
@@ -437,4 +412,29 @@ public function setLayoutImage($layoutImage)
$this->layoutImage = $layoutImage;
}
+ /**
+ * @return Number|null
+ */
+ public function getNumberOfFullBathrooms()
+ {
+ return $this->numberOfFullBathrooms;
+ }
+
+ /**
+ * @param Number|null $numberOfFullBathrooms
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setNumberOfFullBathrooms($numberOfFullBathrooms)
+ {
+ $types = [
+ "Number",
+ "null",
+ ];
+
+ $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
+
+ $this->numberOfFullBathrooms = $numberOfFullBathrooms;
+ }
+
}
diff --git a/src/Models/SchemaOrg/FollowAction.php b/src/Models/SchemaOrg/FollowAction.php
index 6508e81b..6d9f8462 100644
--- a/src/Models/SchemaOrg/FollowAction.php
+++ b/src/Models/SchemaOrg/FollowAction.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A sub property of object. The person or organization being followed.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $followee;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getFollowee()
{
@@ -40,15 +40,15 @@ public function getFollowee()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $followee
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $followee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setFollowee($followee)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
diff --git a/src/Models/SchemaOrg/FoodEstablishment.php b/src/Models/SchemaOrg/FoodEstablishment.php
index 554150aa..93be0a3b 100644
--- a/src/Models/SchemaOrg/FoodEstablishment.php
+++ b/src/Models/SchemaOrg/FoodEstablishment.php
@@ -17,179 +17,179 @@ public static function getType()
public static function fieldList() {
$fields = [
- "starRating" => "starRating",
- "servesCuisine" => "servesCuisine",
"acceptsReservations" => "acceptsReservations",
"hasMenu" => "hasMenu",
"menu" => "menu",
+ "starRating" => "starRating",
+ "servesCuisine" => "servesCuisine",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars).
+ * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```.
*
*
- * @var \OpenActive\Models\SchemaOrg\Rating|string
+ * @var bool|string|null
*/
- protected $starRating;
+ protected $acceptsReservations;
/**
- * The cuisine of the restaurant.
+ * Either the actual menu as a structured representation, as text, or a URL of the menu.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Menu
*/
- protected $servesCuisine;
+ protected $hasMenu;
/**
- * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```.
+ * Either the actual menu as a structured representation, as text, or a URL of the menu.
*
*
- * @var bool|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\Menu
*/
- protected $acceptsReservations;
+ protected $menu;
/**
- * Either the actual menu as a structured representation, as text, or a URL of the menu.
+ * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Menu
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
*/
- protected $hasMenu;
+ protected $starRating;
/**
- * Either the actual menu as a structured representation, as text, or a URL of the menu.
+ * The cuisine of the restaurant.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Menu
+ * @var string
*/
- protected $menu;
+ protected $servesCuisine;
/**
- * @return \OpenActive\Models\SchemaOrg\Rating|string
+ * @return bool|string|null
*/
- public function getStarRating()
+ public function getAcceptsReservations()
{
- return $this->starRating;
+ return $this->acceptsReservations;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating
+ * @param bool|string|null $acceptsReservations
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStarRating($starRating)
+ public function setAcceptsReservations($acceptsReservations)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Rating",
+ "bool",
"string",
+ "null",
];
- $starRating = self::checkTypes($starRating, $types);
+ $acceptsReservations = self::checkTypes($acceptsReservations, $types);
- $this->starRating = $starRating;
+ $this->acceptsReservations = $acceptsReservations;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Menu
*/
- public function getServesCuisine()
+ public function getHasMenu()
{
- return $this->servesCuisine;
+ return $this->hasMenu;
}
/**
- * @param string $servesCuisine
+ * @param string|\OpenActive\Models\SchemaOrg\Menu $hasMenu
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServesCuisine($servesCuisine)
+ public function setHasMenu($hasMenu)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Menu",
];
- $servesCuisine = self::checkTypes($servesCuisine, $types);
+ $hasMenu = self::checkTypes($hasMenu, $types);
- $this->servesCuisine = $servesCuisine;
+ $this->hasMenu = $hasMenu;
}
/**
- * @return bool|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\Menu
*/
- public function getAcceptsReservations()
+ public function getMenu()
{
- return $this->acceptsReservations;
+ return $this->menu;
}
/**
- * @param bool|string|null $acceptsReservations
+ * @param string|\OpenActive\Models\SchemaOrg\Menu $menu
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcceptsReservations($acceptsReservations)
+ public function setMenu($menu)
{
$types = [
- "bool",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\Menu",
];
- $acceptsReservations = self::checkTypes($acceptsReservations, $types);
+ $menu = self::checkTypes($menu, $types);
- $this->acceptsReservations = $acceptsReservations;
+ $this->menu = $menu;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Menu
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
*/
- public function getHasMenu()
+ public function getStarRating()
{
- return $this->hasMenu;
+ return $this->starRating;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Menu $hasMenu
+ * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenu($hasMenu)
+ public function setStarRating($starRating)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Rating",
"string",
- "\OpenActive\Models\SchemaOrg\Menu",
];
- $hasMenu = self::checkTypes($hasMenu, $types);
+ $starRating = self::checkTypes($starRating, $types);
- $this->hasMenu = $hasMenu;
+ $this->starRating = $starRating;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Menu
+ * @return string
*/
- public function getMenu()
+ public function getServesCuisine()
{
- return $this->menu;
+ return $this->servesCuisine;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Menu $menu
+ * @param string $servesCuisine
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMenu($menu)
+ public function setServesCuisine($servesCuisine)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Menu",
];
- $menu = self::checkTypes($menu, $types);
+ $servesCuisine = self::checkTypes($servesCuisine, $types);
- $this->menu = $menu;
+ $this->servesCuisine = $servesCuisine;
}
}
diff --git a/src/Models/SchemaOrg/FoodEstablishmentReservation.php b/src/Models/SchemaOrg/FoodEstablishmentReservation.php
index 15f0143c..c8565723 100644
--- a/src/Models/SchemaOrg/FoodEstablishmentReservation.php
+++ b/src/Models/SchemaOrg/FoodEstablishmentReservation.php
@@ -17,24 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "partySize" => "partySize",
- "startTime" => "startTime",
"endTime" => "endTime",
+ "startTime" => "startTime",
+ "partySize" => "partySize",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Number of people the reservation should accommodate.
+ * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var DateTime|string|null
*/
- protected $partySize;
+ protected $endTime;
/**
- * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
* @var DateTime|string|null
@@ -42,38 +42,37 @@ public static function fieldList() {
protected $startTime;
/**
- * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * Number of people the reservation should accommodate.
*
*
- * @var DateTime|string|null
+ * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $endTime;
+ protected $partySize;
/**
- * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return DateTime|string|null
*/
- public function getPartySize()
+ public function getEndTime()
{
- return $this->partySize;
+ return $this->endTime;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $partySize
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartySize($partySize)
+ public function setEndTime($endTime)
{
$types = [
- "int",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "DateTime",
+ "Time",
"null",
];
- $partySize = self::checkTypes($partySize, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->partySize = $partySize;
+ $this->endTime = $endTime;
}
/**
@@ -103,29 +102,30 @@ public function setStartTime($startTime)
}
/**
- * @return DateTime|string|null
+ * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getEndTime()
+ public function getPartySize()
{
- return $this->endTime;
+ return $this->partySize;
}
/**
- * @param DateTime|string|null $endTime
+ * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $partySize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndTime($endTime)
+ public function setPartySize($partySize)
{
$types = [
- "DateTime",
- "Time",
+ "int",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
"null",
];
- $endTime = self::checkTypes($endTime, $types);
+ $partySize = self::checkTypes($partySize, $types);
- $this->endTime = $endTime;
+ $this->partySize = $partySize;
}
}
diff --git a/src/Models/SchemaOrg/Game.php b/src/Models/SchemaOrg/Game.php
index c575597b..a4bdc8a4 100644
--- a/src/Models/SchemaOrg/Game.php
+++ b/src/Models/SchemaOrg/Game.php
@@ -17,180 +17,180 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "quest" => "quest",
"characterAttribute" => "characterAttribute",
"gameItem" => "gameItem",
- "numberOfPlayers" => "numberOfPlayers",
- "quest" => "quest",
"gameLocation" => "gameLocation",
+ "numberOfPlayers" => "numberOfPlayers",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage).
+ * The task that a player-controlled character, or group of characters may complete in order to gain a reward.
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $characterAttribute;
+ protected $quest;
/**
- * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character.
+ * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage).
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $gameItem;
+ protected $characterAttribute;
/**
- * Indicate how many people can play this game (minimum, maximum, or range).
+ * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $numberOfPlayers;
+ protected $gameItem;
/**
- * The task that a player-controlled character, or group of characters may complete in order to gain a reward.
+ * Real or fictional location of the game (or part of game).
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place
*/
- protected $quest;
+ protected $gameLocation;
/**
- * Real or fictional location of the game (or part of game).
+ * Indicate how many people can play this game (minimum, maximum, or range).
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $gameLocation;
+ protected $numberOfPlayers;
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getCharacterAttribute()
+ public function getQuest()
{
- return $this->characterAttribute;
+ return $this->quest;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $characterAttribute
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $quest
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCharacterAttribute($characterAttribute)
+ public function setQuest($quest)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $characterAttribute = self::checkTypes($characterAttribute, $types);
+ $quest = self::checkTypes($quest, $types);
- $this->characterAttribute = $characterAttribute;
+ $this->quest = $quest;
}
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getGameItem()
+ public function getCharacterAttribute()
{
- return $this->gameItem;
+ return $this->characterAttribute;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $characterAttribute
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGameItem($gameItem)
+ public function setCharacterAttribute($characterAttribute)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $gameItem = self::checkTypes($gameItem, $types);
+ $characterAttribute = self::checkTypes($characterAttribute, $types);
- $this->gameItem = $gameItem;
+ $this->characterAttribute = $characterAttribute;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getNumberOfPlayers()
+ public function getGameItem()
{
- return $this->numberOfPlayers;
+ return $this->gameItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfPlayers($numberOfPlayers)
+ public function setGameItem($gameItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $numberOfPlayers = self::checkTypes($numberOfPlayers, $types);
+ $gameItem = self::checkTypes($gameItem, $types);
- $this->numberOfPlayers = $numberOfPlayers;
+ $this->gameItem = $gameItem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place
*/
- public function getQuest()
+ public function getGameLocation()
{
- return $this->quest;
+ return $this->gameLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $quest
+ * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place $gameLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setQuest($quest)
+ public function setGameLocation($gameLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
];
- $quest = self::checkTypes($quest, $types);
+ $gameLocation = self::checkTypes($gameLocation, $types);
- $this->quest = $quest;
+ $this->gameLocation = $gameLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getGameLocation()
+ public function getNumberOfPlayers()
{
- return $this->gameLocation;
+ return $this->numberOfPlayers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGameLocation($gameLocation)
+ public function setNumberOfPlayers($numberOfPlayers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $gameLocation = self::checkTypes($gameLocation, $types);
+ $numberOfPlayers = self::checkTypes($numberOfPlayers, $types);
- $this->gameLocation = $gameLocation;
+ $this->numberOfPlayers = $numberOfPlayers;
}
}
diff --git a/src/Models/SchemaOrg/GameServer.php b/src/Models/SchemaOrg/GameServer.php
index a673a844..b2450aed 100644
--- a/src/Models/SchemaOrg/GameServer.php
+++ b/src/Models/SchemaOrg/GameServer.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "serverStatus" => "serverStatus",
- "game" => "game",
"playersOnline" => "playersOnline",
+ "game" => "game",
+ "serverStatus" => "serverStatus",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Status of a game server.
+ * Number of players on the server.
*
*
- * @var \OpenActive\Models\SchemaOrg\GameServerStatus|string
+ * @var int|null
*/
- protected $serverStatus;
+ protected $playersOnline;
/**
* Video game which is played on this server.
@@ -42,36 +42,36 @@ public static function fieldList() {
protected $game;
/**
- * Number of players on the server.
+ * Status of a game server.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\GameServerStatus|string
*/
- protected $playersOnline;
+ protected $serverStatus;
/**
- * @return \OpenActive\Models\SchemaOrg\GameServerStatus|string
+ * @return int|null
*/
- public function getServerStatus()
+ public function getPlayersOnline()
{
- return $this->serverStatus;
+ return $this->playersOnline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GameServerStatus|string $serverStatus
+ * @param int|null $playersOnline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServerStatus($serverStatus)
+ public function setPlayersOnline($playersOnline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GameServerStatus",
- "string",
+ "int",
+ "null",
];
- $serverStatus = self::checkTypes($serverStatus, $types);
+ $playersOnline = self::checkTypes($playersOnline, $types);
- $this->serverStatus = $serverStatus;
+ $this->playersOnline = $playersOnline;
}
/**
@@ -100,28 +100,28 @@ public function setGame($game)
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\GameServerStatus|string
*/
- public function getPlayersOnline()
+ public function getServerStatus()
{
- return $this->playersOnline;
+ return $this->serverStatus;
}
/**
- * @param int|null $playersOnline
+ * @param \OpenActive\Models\SchemaOrg\GameServerStatus|string $serverStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPlayersOnline($playersOnline)
+ public function setServerStatus($serverStatus)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\GameServerStatus",
+ "string",
];
- $playersOnline = self::checkTypes($playersOnline, $types);
+ $serverStatus = self::checkTypes($serverStatus, $types);
- $this->playersOnline = $playersOnline;
+ $this->serverStatus = $serverStatus;
}
}
diff --git a/src/Models/SchemaOrg/Gene.php b/src/Models/SchemaOrg/Gene.php
index 7ecc5fa5..588deb5c 100644
--- a/src/Models/SchemaOrg/Gene.php
+++ b/src/Models/SchemaOrg/Gene.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "alternativeOf" => "alternativeOf",
"hasBioPolymerSequence" => "hasBioPolymerSequence",
+ "alternativeOf" => "alternativeOf",
"encodesBioChemEntity" => "encodesBioChemEntity",
"expressedIn" => "expressedIn",
];
@@ -27,20 +27,20 @@ public static function fieldList() {
}
/**
- * Another gene which is a variation of this one.
+ * A symbolic representation of a BioChemEntity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein.
*
*
- * @var \OpenActive\Models\SchemaOrg\Gene|string
+ * @var string
*/
- protected $alternativeOf;
+ protected $hasBioPolymerSequence;
/**
- * A symbolic representation of a BioChemEnity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein.
+ * Another gene which is a variation of this one.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Gene|string
*/
- protected $hasBioPolymerSequence;
+ protected $alternativeOf;
/**
* Another BioChemEntity encoded by this one.
@@ -54,57 +54,57 @@ public static function fieldList() {
* Tissue, organ, biological sample, etc in which activity of this gene has been observed experimentally. For example brain, digestive system.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
protected $expressedIn;
/**
- * @return \OpenActive\Models\SchemaOrg\Gene|string
+ * @return string
*/
- public function getAlternativeOf()
+ public function getHasBioPolymerSequence()
{
- return $this->alternativeOf;
+ return $this->hasBioPolymerSequence;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Gene|string $alternativeOf
+ * @param string $hasBioPolymerSequence
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlternativeOf($alternativeOf)
+ public function setHasBioPolymerSequence($hasBioPolymerSequence)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Gene",
"string",
];
- $alternativeOf = self::checkTypes($alternativeOf, $types);
+ $hasBioPolymerSequence = self::checkTypes($hasBioPolymerSequence, $types);
- $this->alternativeOf = $alternativeOf;
+ $this->hasBioPolymerSequence = $hasBioPolymerSequence;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Gene|string
*/
- public function getHasBioPolymerSequence()
+ public function getAlternativeOf()
{
- return $this->hasBioPolymerSequence;
+ return $this->alternativeOf;
}
/**
- * @param string $hasBioPolymerSequence
+ * @param \OpenActive\Models\SchemaOrg\Gene|string $alternativeOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasBioPolymerSequence($hasBioPolymerSequence)
+ public function setAlternativeOf($alternativeOf)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Gene",
"string",
];
- $hasBioPolymerSequence = self::checkTypes($hasBioPolymerSequence, $types);
+ $alternativeOf = self::checkTypes($alternativeOf, $types);
- $this->hasBioPolymerSequence = $hasBioPolymerSequence;
+ $this->alternativeOf = $alternativeOf;
}
/**
@@ -133,7 +133,7 @@ public function setEncodesBioChemEntity($encodesBioChemEntity)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
public function getExpressedIn()
{
@@ -141,7 +141,7 @@ public function getExpressedIn()
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $expressedIn
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\BioChemEntity|string $expressedIn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -149,9 +149,9 @@ public function setExpressedIn($expressedIn)
{
$types = [
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
];
diff --git a/src/Models/SchemaOrg/GeoCircle.php b/src/Models/SchemaOrg/GeoCircle.php
index 81008cf6..83f7dca6 100644
--- a/src/Models/SchemaOrg/GeoCircle.php
+++ b/src/Models/SchemaOrg/GeoCircle.php
@@ -17,79 +17,79 @@ public static function getType()
public static function fieldList() {
$fields = [
- "geoRadius" => "geoRadius",
"geoMidpoint" => "geoMidpoint",
+ "geoRadius" => "geoRadius",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation).
+ * Indicates the GeoCoordinates at the centre of a GeoShape, e.g. GeoCircle.
*
*
- * @var string|Number|\OpenActive\Models\SchemaOrg\Distance|null
+ * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|string
*/
- protected $geoRadius;
+ protected $geoMidpoint;
/**
- * Indicates the GeoCoordinates at the centre of a GeoShape e.g. GeoCircle.
+ * Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation).
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|string
+ * @var Number|\OpenActive\Models\SchemaOrg\Distance|string|null
*/
- protected $geoMidpoint;
+ protected $geoRadius;
/**
- * @return string|Number|\OpenActive\Models\SchemaOrg\Distance|null
+ * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|string
*/
- public function getGeoRadius()
+ public function getGeoMidpoint()
{
- return $this->geoRadius;
+ return $this->geoMidpoint;
}
/**
- * @param string|Number|\OpenActive\Models\SchemaOrg\Distance|null $geoRadius
+ * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|string $geoMidpoint
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoRadius($geoRadius)
+ public function setGeoMidpoint($geoMidpoint)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\GeoCoordinates",
"string",
- "Number",
- "\OpenActive\Models\SchemaOrg\Distance",
- "null",
];
- $geoRadius = self::checkTypes($geoRadius, $types);
+ $geoMidpoint = self::checkTypes($geoMidpoint, $types);
- $this->geoRadius = $geoRadius;
+ $this->geoMidpoint = $geoMidpoint;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|string
+ * @return Number|\OpenActive\Models\SchemaOrg\Distance|string|null
*/
- public function getGeoMidpoint()
+ public function getGeoRadius()
{
- return $this->geoMidpoint;
+ return $this->geoRadius;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|string $geoMidpoint
+ * @param Number|\OpenActive\Models\SchemaOrg\Distance|string|null $geoRadius
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoMidpoint($geoMidpoint)
+ public function setGeoRadius($geoRadius)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoCoordinates",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
+ "null",
];
- $geoMidpoint = self::checkTypes($geoMidpoint, $types);
+ $geoRadius = self::checkTypes($geoRadius, $types);
- $this->geoMidpoint = $geoMidpoint;
+ $this->geoRadius = $geoRadius;
}
}
diff --git a/src/Models/SchemaOrg/GeoCoordinates.php b/src/Models/SchemaOrg/GeoCoordinates.php
index 9e61906e..48a6ffec 100644
--- a/src/Models/SchemaOrg/GeoCoordinates.php
+++ b/src/Models/SchemaOrg/GeoCoordinates.php
@@ -18,9 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"addressCountry" => "addressCountry",
+ "postalCode" => "postalCode",
"latitude" => "latitude",
"address" => "address",
- "postalCode" => "postalCode",
"elevation" => "elevation",
"longitude" => "longitude",
];
@@ -32,10 +32,18 @@ public static function fieldList() {
* The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1).
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var string|\OpenActive\Models\SchemaOrg\Country
*/
protected $addressCountry;
+ /**
+ * The postal code. For example, 94043.
+ *
+ *
+ * @var string
+ */
+ protected $postalCode;
+
/**
* The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
*
@@ -53,15 +61,7 @@ public static function fieldList() {
protected $address;
/**
- * The postal code. For example, 94043.
- *
- *
- * @var string
- */
- protected $postalCode;
-
- /**
- * The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT_OF_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters.
+ * The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT\_OF\_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters.
*
*
* @var string|Number|null
@@ -77,7 +77,7 @@ public static function fieldList() {
protected $longitude;
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return string|\OpenActive\Models\SchemaOrg\Country
*/
public function getAddressCountry()
{
@@ -85,15 +85,15 @@ public function getAddressCountry()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry
+ * @param string|\OpenActive\Models\SchemaOrg\Country $addressCountry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAddressCountry($addressCountry)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
"string",
+ "\OpenActive\Models\SchemaOrg\Country",
];
$addressCountry = self::checkTypes($addressCountry, $types);
@@ -102,78 +102,78 @@ public function setAddressCountry($addressCountry)
}
/**
- * @return string|Number|null
+ * @return string
*/
- public function getLatitude()
+ public function getPostalCode()
{
- return $this->latitude;
+ return $this->postalCode;
}
/**
- * @param string|Number|null $latitude
+ * @param string $postalCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLatitude($latitude)
+ public function setPostalCode($postalCode)
{
$types = [
"string",
- "Number",
- "null",
];
- $latitude = self::checkTypes($latitude, $types);
+ $postalCode = self::checkTypes($postalCode, $types);
- $this->latitude = $latitude;
+ $this->postalCode = $postalCode;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return string|Number|null
*/
- public function getAddress()
+ public function getLatitude()
{
- return $this->address;
+ return $this->latitude;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address
+ * @param string|Number|null $latitude
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAddress($address)
+ public function setLatitude($latitude)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "Number",
+ "null",
];
- $address = self::checkTypes($address, $types);
+ $latitude = self::checkTypes($latitude, $types);
- $this->address = $address;
+ $this->latitude = $latitude;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- public function getPostalCode()
+ public function getAddress()
{
- return $this->postalCode;
+ return $this->address;
}
/**
- * @param string $postalCode
+ * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCode($postalCode)
+ public function setAddress($address)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $postalCode = self::checkTypes($postalCode, $types);
+ $address = self::checkTypes($address, $types);
- $this->postalCode = $postalCode;
+ $this->address = $address;
}
/**
diff --git a/src/Models/SchemaOrg/GeoShape.php b/src/Models/SchemaOrg/GeoShape.php
index 3a4ebf30..491790aa 100644
--- a/src/Models/SchemaOrg/GeoShape.php
+++ b/src/Models/SchemaOrg/GeoShape.php
@@ -18,13 +18,13 @@ public static function getType()
public static function fieldList() {
$fields = [
"addressCountry" => "addressCountry",
- "circle" => "circle",
"line" => "line",
+ "box" => "box",
"polygon" => "polygon",
- "address" => "address",
"postalCode" => "postalCode",
+ "address" => "address",
"elevation" => "elevation",
- "box" => "box",
+ "circle" => "circle",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,25 +34,25 @@ public static function fieldList() {
* The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1).
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var string|\OpenActive\Models\SchemaOrg\Country
*/
protected $addressCountry;
/**
- * A circle is the circular region of a specified radius centered at a specified latitude and longitude. A circle is expressed as a pair followed by a radius in meters.
+ * A line is a point-to-point path consisting of two or more points. A line is expressed as a series of two or more point objects separated by space.
*
*
* @var string
*/
- protected $circle;
+ protected $line;
/**
- * A line is a point-to-point path consisting of two or more points. A line is expressed as a series of two or more point objects separated by space.
+ * A box is the area enclosed by the rectangle formed by two points. The first point is the lower corner, the second point is the upper corner. A box is expressed as two points separated by a space character.
*
*
* @var string
*/
- protected $line;
+ protected $box;
/**
* A polygon is the area enclosed by a point-to-point path for which the starting and ending points are the same. A polygon is expressed as a series of four or more space delimited points where the first and final points are identical.
@@ -63,23 +63,23 @@ public static function fieldList() {
protected $polygon;
/**
- * Physical address of the item.
+ * The postal code. For example, 94043.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var string
*/
- protected $address;
+ protected $postalCode;
/**
- * The postal code. For example, 94043.
+ * Physical address of the item.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- protected $postalCode;
+ protected $address;
/**
- * The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT_OF_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters.
+ * The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT\_OF\_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters.
*
*
* @var string|Number|null
@@ -87,15 +87,15 @@ public static function fieldList() {
protected $elevation;
/**
- * A box is the area enclosed by the rectangle formed by two points. The first point is the lower corner, the second point is the upper corner. A box is expressed as two points separated by a space character.
+ * A circle is the circular region of a specified radius centered at a specified latitude and longitude. A circle is expressed as a pair followed by a radius in meters.
*
*
* @var string
*/
- protected $box;
+ protected $circle;
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return string|\OpenActive\Models\SchemaOrg\Country
*/
public function getAddressCountry()
{
@@ -103,15 +103,15 @@ public function getAddressCountry()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry
+ * @param string|\OpenActive\Models\SchemaOrg\Country $addressCountry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAddressCountry($addressCountry)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
"string",
+ "\OpenActive\Models\SchemaOrg\Country",
];
$addressCountry = self::checkTypes($addressCountry, $types);
@@ -122,49 +122,49 @@ public function setAddressCountry($addressCountry)
/**
* @return string
*/
- public function getCircle()
+ public function getLine()
{
- return $this->circle;
+ return $this->line;
}
/**
- * @param string $circle
+ * @param string $line
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCircle($circle)
+ public function setLine($line)
{
$types = [
"string",
];
- $circle = self::checkTypes($circle, $types);
+ $line = self::checkTypes($line, $types);
- $this->circle = $circle;
+ $this->line = $line;
}
/**
* @return string
*/
- public function getLine()
+ public function getBox()
{
- return $this->line;
+ return $this->box;
}
/**
- * @param string $line
+ * @param string $box
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLine($line)
+ public function setBox($box)
{
$types = [
"string",
];
- $line = self::checkTypes($line, $types);
+ $box = self::checkTypes($box, $types);
- $this->line = $line;
+ $this->box = $box;
}
/**
@@ -192,52 +192,52 @@ public function setPolygon($polygon)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return string
*/
- public function getAddress()
+ public function getPostalCode()
{
- return $this->address;
+ return $this->postalCode;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address
+ * @param string $postalCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAddress($address)
+ public function setPostalCode($postalCode)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $address = self::checkTypes($address, $types);
+ $postalCode = self::checkTypes($postalCode, $types);
- $this->address = $address;
+ $this->postalCode = $postalCode;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- public function getPostalCode()
+ public function getAddress()
{
- return $this->postalCode;
+ return $this->address;
}
/**
- * @param string $postalCode
+ * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCode($postalCode)
+ public function setAddress($address)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $postalCode = self::checkTypes($postalCode, $types);
+ $address = self::checkTypes($address, $types);
- $this->postalCode = $postalCode;
+ $this->address = $address;
}
/**
@@ -269,25 +269,25 @@ public function setElevation($elevation)
/**
* @return string
*/
- public function getBox()
+ public function getCircle()
{
- return $this->box;
+ return $this->circle;
}
/**
- * @param string $box
+ * @param string $circle
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBox($box)
+ public function setCircle($circle)
{
$types = [
"string",
];
- $box = self::checkTypes($box, $types);
+ $circle = self::checkTypes($circle, $types);
- $this->box = $box;
+ $this->circle = $circle;
}
}
diff --git a/src/Models/SchemaOrg/GeospatialGeometry.php b/src/Models/SchemaOrg/GeospatialGeometry.php
index 41a3ac0f..ea68b1a3 100644
--- a/src/Models/SchemaOrg/GeospatialGeometry.php
+++ b/src/Models/SchemaOrg/GeospatialGeometry.php
@@ -17,115 +17,115 @@ public static function getType()
public static function fieldList() {
$fields = [
- "geoContains" => "geoContains",
+ "geoWithin" => "geoWithin",
+ "geoDisjoint" => "geoDisjoint",
"geoIntersects" => "geoIntersects",
- "geoTouches" => "geoTouches",
+ "geoContains" => "geoContains",
"geoCoveredBy" => "geoCoveredBy",
- "geoEquals" => "geoEquals",
- "geoCrosses" => "geoCrosses",
+ "geoTouches" => "geoTouches",
"geoCovers" => "geoCovers",
- "geoWithin" => "geoWithin",
- "geoDisjoint" => "geoDisjoint",
+ "geoEquals" => "geoEquals",
"geoOverlaps" => "geoOverlaps",
+ "geoCrosses" => "geoCrosses",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ * Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
* @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoContains;
+ protected $geoWithin;
/**
- * Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ * Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoIntersects;
+ protected $geoDisjoint;
/**
- * Represents spatial relations in which two geometries (or the places they represent) touch: they have at least one boundary point in common, but no interior points." (a symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM) )
+ * Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
* @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoTouches;
+ protected $geoIntersects;
/**
- * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ * Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $geoCoveredBy;
+ protected $geoContains;
/**
- * Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship)
+ * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
* @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoEquals;
+ protected $geoCoveredBy;
/**
- * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ * Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoCrosses;
+ protected $geoTouches;
/**
* Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
protected $geoCovers;
/**
- * Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ * Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).
*
*
* @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoWithin;
+ protected $geoEquals;
/**
- * Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: they have no point in common. They form a set of disconnected geometries." (a symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM))
+ * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoDisjoint;
+ protected $geoOverlaps;
/**
- * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
+ * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).
*
*
- * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoOverlaps;
+ protected $geoCrosses;
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoContains()
+ public function getGeoWithin()
{
- return $this->geoContains;
+ return $this->geoWithin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoContains($geoContains)
+ public function setGeoWithin($geoWithin)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -133,51 +133,51 @@ public function setGeoContains($geoContains)
"string",
];
- $geoContains = self::checkTypes($geoContains, $types);
+ $geoWithin = self::checkTypes($geoWithin, $types);
- $this->geoContains = $geoContains;
+ $this->geoWithin = $geoWithin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoIntersects()
+ public function getGeoDisjoint()
{
- return $this->geoIntersects;
+ return $this->geoDisjoint;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoDisjoint
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoIntersects($geoIntersects)
+ public function setGeoDisjoint($geoDisjoint)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoIntersects = self::checkTypes($geoIntersects, $types);
+ $geoDisjoint = self::checkTypes($geoDisjoint, $types);
- $this->geoIntersects = $geoIntersects;
+ $this->geoDisjoint = $geoDisjoint;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoTouches()
+ public function getGeoIntersects()
{
- return $this->geoTouches;
+ return $this->geoIntersects;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoIntersects
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoTouches($geoTouches)
+ public function setGeoIntersects($geoIntersects)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -185,51 +185,51 @@ public function setGeoTouches($geoTouches)
"string",
];
- $geoTouches = self::checkTypes($geoTouches, $types);
+ $geoIntersects = self::checkTypes($geoIntersects, $types);
- $this->geoTouches = $geoTouches;
+ $this->geoIntersects = $geoIntersects;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
+ * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getGeoCoveredBy()
+ public function getGeoContains()
{
- return $this->geoCoveredBy;
+ return $this->geoContains;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCoveredBy
+ * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoContains
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoCoveredBy($geoCoveredBy)
+ public function setGeoContains($geoContains)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\GeospatialGeometry",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $geoCoveredBy = self::checkTypes($geoCoveredBy, $types);
+ $geoContains = self::checkTypes($geoContains, $types);
- $this->geoCoveredBy = $geoCoveredBy;
+ $this->geoContains = $geoContains;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoEquals()
+ public function getGeoCoveredBy()
{
- return $this->geoEquals;
+ return $this->geoCoveredBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCoveredBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoEquals($geoEquals)
+ public function setGeoCoveredBy($geoCoveredBy)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -237,39 +237,39 @@ public function setGeoEquals($geoEquals)
"string",
];
- $geoEquals = self::checkTypes($geoEquals, $types);
+ $geoCoveredBy = self::checkTypes($geoCoveredBy, $types);
- $this->geoEquals = $geoEquals;
+ $this->geoCoveredBy = $geoCoveredBy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoCrosses()
+ public function getGeoTouches()
{
- return $this->geoCrosses;
+ return $this->geoTouches;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCrosses
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoCrosses($geoCrosses)
+ public function setGeoTouches($geoTouches)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoCrosses = self::checkTypes($geoCrosses, $types);
+ $geoTouches = self::checkTypes($geoTouches, $types);
- $this->geoCrosses = $geoCrosses;
+ $this->geoTouches = $geoTouches;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
public function getGeoCovers()
{
@@ -277,15 +277,15 @@ public function getGeoCovers()
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCovers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setGeoCovers($geoCovers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
@@ -297,17 +297,17 @@ public function setGeoCovers($geoCovers)
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoWithin()
+ public function getGeoEquals()
{
- return $this->geoWithin;
+ return $this->geoEquals;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoWithin($geoWithin)
+ public function setGeoEquals($geoEquals)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -315,61 +315,61 @@ public function setGeoWithin($geoWithin)
"string",
];
- $geoWithin = self::checkTypes($geoWithin, $types);
+ $geoEquals = self::checkTypes($geoEquals, $types);
- $this->geoWithin = $geoWithin;
+ $this->geoEquals = $geoEquals;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoDisjoint()
+ public function getGeoOverlaps()
{
- return $this->geoDisjoint;
+ return $this->geoOverlaps;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoOverlaps
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoDisjoint($geoDisjoint)
+ public function setGeoOverlaps($geoOverlaps)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoDisjoint = self::checkTypes($geoDisjoint, $types);
+ $geoOverlaps = self::checkTypes($geoOverlaps, $types);
- $this->geoDisjoint = $geoDisjoint;
+ $this->geoOverlaps = $geoOverlaps;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoOverlaps()
+ public function getGeoCrosses()
{
- return $this->geoOverlaps;
+ return $this->geoCrosses;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCrosses
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoOverlaps($geoOverlaps)
+ public function setGeoCrosses($geoCrosses)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoOverlaps = self::checkTypes($geoOverlaps, $types);
+ $geoCrosses = self::checkTypes($geoCrosses, $types);
- $this->geoOverlaps = $geoOverlaps;
+ $this->geoCrosses = $geoCrosses;
}
}
diff --git a/src/Models/SchemaOrg/GiveAction.php b/src/Models/SchemaOrg/GiveAction.php
index c6617005..66fef1cf 100644
--- a/src/Models/SchemaOrg/GiveAction.php
+++ b/src/Models/SchemaOrg/GiveAction.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A sub property of participant. The participant who is at the receiving end of the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
public function getRecipient()
{
@@ -40,17 +40,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
diff --git a/src/Models/SchemaOrg/GovernmentService.php b/src/Models/SchemaOrg/GovernmentService.php
index 524869a5..0facdb9c 100644
--- a/src/Models/SchemaOrg/GovernmentService.php
+++ b/src/Models/SchemaOrg/GovernmentService.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "jurisdiction" => "jurisdiction",
"serviceOperator" => "serviceOperator",
+ "jurisdiction" => "jurisdiction",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.
+ * The operating organization, if different from the provider. This enables the representation of services that are provided by an organization, but operated by another organization like a subcontractor.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $jurisdiction;
+ protected $serviceOperator;
/**
- * The operating organization, if different from the provider. This enables the representation of services that are provided by an organization, but operated by another organization like a subcontractor.
+ * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $serviceOperator;
+ protected $jurisdiction;
/**
- * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getJurisdiction()
+ public function getServiceOperator()
{
- return $this->jurisdiction;
+ return $this->serviceOperator;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $serviceOperator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJurisdiction($jurisdiction)
+ public function setServiceOperator($serviceOperator)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $jurisdiction = self::checkTypes($jurisdiction, $types);
+ $serviceOperator = self::checkTypes($serviceOperator, $types);
- $this->jurisdiction = $jurisdiction;
+ $this->serviceOperator = $serviceOperator;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getServiceOperator()
+ public function getJurisdiction()
{
- return $this->serviceOperator;
+ return $this->jurisdiction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $serviceOperator
+ * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServiceOperator($serviceOperator)
+ public function setJurisdiction($jurisdiction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $serviceOperator = self::checkTypes($serviceOperator, $types);
+ $jurisdiction = self::checkTypes($jurisdiction, $types);
- $this->serviceOperator = $serviceOperator;
+ $this->jurisdiction = $jurisdiction;
}
}
diff --git a/src/Models/SchemaOrg/Grant.php b/src/Models/SchemaOrg/Grant.php
index bfd1d00e..6db8a1cd 100644
--- a/src/Models/SchemaOrg/Grant.php
+++ b/src/Models/SchemaOrg/Grant.php
@@ -29,7 +29,7 @@ public static function fieldList() {
* A person or organization that supports (sponsors) something through some kind of financial contribution.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $funder;
@@ -37,12 +37,12 @@ public static function fieldList() {
* Indicates something directly or indirectly funded or sponsored through a [[Grant]]. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Event|string
*/
protected $fundedItem;
/**
- * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
+ * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
@@ -50,7 +50,7 @@ public static function fieldList() {
protected $sponsor;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getFunder()
{
@@ -58,15 +58,15 @@ public function getFunder()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setFunder($funder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
@@ -76,7 +76,7 @@ public function setFunder($funder)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Event|string
*/
public function getFundedItem()
{
@@ -84,20 +84,20 @@ public function getFundedItem()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|string $fundedItem
+ * @param \OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Event|string $fundedItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setFundedItem($fundedItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Product",
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\BioChemEntity",
- "\OpenActive\Models\SchemaOrg\Event",
"\OpenActive\Models\SchemaOrg\MedicalEntity",
+ "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\CreativeWork",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
diff --git a/src/Models/SchemaOrg/HealthInsurancePlan.php b/src/Models/SchemaOrg/HealthInsurancePlan.php
index 80f8844e..80ce66d5 100644
--- a/src/Models/SchemaOrg/HealthInsurancePlan.php
+++ b/src/Models/SchemaOrg/HealthInsurancePlan.php
@@ -17,28 +17,20 @@ public static function getType()
public static function fieldList() {
$fields = [
- "includesHealthPlanFormulary" => "includesHealthPlanFormulary",
"benefitsSummaryUrl" => "benefitsSummaryUrl",
- "healthPlanDrugOption" => "healthPlanDrugOption",
+ "usesHealthPlanIdStandard" => "usesHealthPlanIdStandard",
"healthPlanDrugTier" => "healthPlanDrugTier",
- "healthPlanId" => "healthPlanId",
"contactPoint" => "contactPoint",
- "usesHealthPlanIdStandard" => "usesHealthPlanIdStandard",
- "includesHealthPlanNetwork" => "includesHealthPlanNetwork",
+ "healthPlanId" => "healthPlanId",
+ "healthPlanDrugOption" => "healthPlanDrugOption",
+ "includesHealthPlanFormulary" => "includesHealthPlanFormulary",
"healthPlanMarketingUrl" => "healthPlanMarketingUrl",
+ "includesHealthPlanNetwork" => "includesHealthPlanNetwork",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * Formularies covered by this plan.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string
- */
- protected $includesHealthPlanFormulary;
-
/**
* The URL that goes directly to the summary of benefits and coverage for the specific standard plan or plan variation.
*
@@ -48,12 +40,12 @@ public static function fieldList() {
protected $benefitsSummaryUrl;
/**
- * TODO.
+ * The standard for interpreting the Plan ID. The preferred is "HIOS". See the Centers for Medicare & Medicaid Services for more details.
*
*
* @var string
*/
- protected $healthPlanDrugOption;
+ protected $usesHealthPlanIdStandard;
/**
* The tier(s) of drugs offered by this formulary or insurance plan.
@@ -64,36 +56,36 @@ public static function fieldList() {
protected $healthPlanDrugTier;
/**
- * The 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)
+ * A contact point for a person or organization.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $healthPlanId;
+ protected $contactPoint;
/**
- * A contact point for a person or organization.
+ * The 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var string
*/
- protected $contactPoint;
+ protected $healthPlanId;
/**
- * The standard for interpreting thePlan ID. The preferred is "HIOS". See the Centers for Medicare & Medicaid Services for more details.
+ * TODO.
*
*
* @var string
*/
- protected $usesHealthPlanIdStandard;
+ protected $healthPlanDrugOption;
/**
- * Networks covered by this plan.
+ * Formularies covered by this plan.
*
*
- * @var \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string
+ * @var \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string
*/
- protected $includesHealthPlanNetwork;
+ protected $includesHealthPlanFormulary;
/**
* The URL that goes directly to the plan brochure for the specific standard plan or plan variation.
@@ -104,29 +96,12 @@ public static function fieldList() {
protected $healthPlanMarketingUrl;
/**
- * @return \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string
- */
- public function getIncludesHealthPlanFormulary()
- {
- return $this->includesHealthPlanFormulary;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string $includesHealthPlanFormulary
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * Networks covered by this plan.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string
*/
- public function setIncludesHealthPlanFormulary($includesHealthPlanFormulary)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\HealthPlanFormulary",
- "string",
- ];
-
- $includesHealthPlanFormulary = self::checkTypes($includesHealthPlanFormulary, $types);
-
- $this->includesHealthPlanFormulary = $includesHealthPlanFormulary;
- }
+ protected $includesHealthPlanNetwork;
/**
* @return string
@@ -155,25 +130,25 @@ public function setBenefitsSummaryUrl($benefitsSummaryUrl)
/**
* @return string
*/
- public function getHealthPlanDrugOption()
+ public function getUsesHealthPlanIdStandard()
{
- return $this->healthPlanDrugOption;
+ return $this->usesHealthPlanIdStandard;
}
/**
- * @param string $healthPlanDrugOption
+ * @param string $usesHealthPlanIdStandard
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanDrugOption($healthPlanDrugOption)
+ public function setUsesHealthPlanIdStandard($usesHealthPlanIdStandard)
{
$types = [
"string",
];
- $healthPlanDrugOption = self::checkTypes($healthPlanDrugOption, $types);
+ $usesHealthPlanIdStandard = self::checkTypes($usesHealthPlanIdStandard, $types);
- $this->healthPlanDrugOption = $healthPlanDrugOption;
+ $this->usesHealthPlanIdStandard = $usesHealthPlanIdStandard;
}
/**
@@ -201,101 +176,101 @@ public function setHealthPlanDrugTier($healthPlanDrugTier)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getHealthPlanId()
+ public function getContactPoint()
{
- return $this->healthPlanId;
+ return $this->contactPoint;
}
/**
- * @param string $healthPlanId
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanId($healthPlanId)
+ public function setContactPoint($contactPoint)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $healthPlanId = self::checkTypes($healthPlanId, $types);
+ $contactPoint = self::checkTypes($contactPoint, $types);
- $this->healthPlanId = $healthPlanId;
+ $this->contactPoint = $contactPoint;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return string
*/
- public function getContactPoint()
+ public function getHealthPlanId()
{
- return $this->contactPoint;
+ return $this->healthPlanId;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint
+ * @param string $healthPlanId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContactPoint($contactPoint)
+ public function setHealthPlanId($healthPlanId)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $contactPoint = self::checkTypes($contactPoint, $types);
+ $healthPlanId = self::checkTypes($healthPlanId, $types);
- $this->contactPoint = $contactPoint;
+ $this->healthPlanId = $healthPlanId;
}
/**
* @return string
*/
- public function getUsesHealthPlanIdStandard()
+ public function getHealthPlanDrugOption()
{
- return $this->usesHealthPlanIdStandard;
+ return $this->healthPlanDrugOption;
}
/**
- * @param string $usesHealthPlanIdStandard
+ * @param string $healthPlanDrugOption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUsesHealthPlanIdStandard($usesHealthPlanIdStandard)
+ public function setHealthPlanDrugOption($healthPlanDrugOption)
{
$types = [
"string",
];
- $usesHealthPlanIdStandard = self::checkTypes($usesHealthPlanIdStandard, $types);
+ $healthPlanDrugOption = self::checkTypes($healthPlanDrugOption, $types);
- $this->usesHealthPlanIdStandard = $usesHealthPlanIdStandard;
+ $this->healthPlanDrugOption = $healthPlanDrugOption;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string
+ * @return \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string
*/
- public function getIncludesHealthPlanNetwork()
+ public function getIncludesHealthPlanFormulary()
{
- return $this->includesHealthPlanNetwork;
+ return $this->includesHealthPlanFormulary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string $includesHealthPlanNetwork
+ * @param \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string $includesHealthPlanFormulary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludesHealthPlanNetwork($includesHealthPlanNetwork)
+ public function setIncludesHealthPlanFormulary($includesHealthPlanFormulary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HealthPlanNetwork",
+ "\OpenActive\Models\SchemaOrg\HealthPlanFormulary",
"string",
];
- $includesHealthPlanNetwork = self::checkTypes($includesHealthPlanNetwork, $types);
+ $includesHealthPlanFormulary = self::checkTypes($includesHealthPlanFormulary, $types);
- $this->includesHealthPlanNetwork = $includesHealthPlanNetwork;
+ $this->includesHealthPlanFormulary = $includesHealthPlanFormulary;
}
/**
@@ -322,4 +297,29 @@ public function setHealthPlanMarketingUrl($healthPlanMarketingUrl)
$this->healthPlanMarketingUrl = $healthPlanMarketingUrl;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string
+ */
+ public function getIncludesHealthPlanNetwork()
+ {
+ return $this->includesHealthPlanNetwork;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string $includesHealthPlanNetwork
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setIncludesHealthPlanNetwork($includesHealthPlanNetwork)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\HealthPlanNetwork",
+ "string",
+ ];
+
+ $includesHealthPlanNetwork = self::checkTypes($includesHealthPlanNetwork, $types);
+
+ $this->includesHealthPlanNetwork = $includesHealthPlanNetwork;
+ }
+
}
diff --git a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php
index f1110c97..0860bf32 100644
--- a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php
+++ b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php
@@ -17,23 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
- "healthPlanCoinsuranceRate" => "healthPlanCoinsuranceRate",
- "healthPlanCoinsuranceOption" => "healthPlanCoinsuranceOption",
- "healthPlanPharmacyCategory" => "healthPlanPharmacyCategory",
"healthPlanCopay" => "healthPlanCopay",
+ "healthPlanCoinsuranceOption" => "healthPlanCoinsuranceOption",
+ "healthPlanCoinsuranceRate" => "healthPlanCoinsuranceRate",
"healthPlanCopayOption" => "healthPlanCopayOption",
+ "healthPlanPharmacyCategory" => "healthPlanPharmacyCategory",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Whether The rate of coinsurance expressed as a number between 0.0 and 1.0.
+ * The copay amount.
*
*
- * @var Number|null
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $healthPlanCoinsuranceRate;
+ protected $healthPlanCopay;
/**
* Whether the coinsurance applies before or after deductible, etc. TODO: Is this a closed set?
@@ -44,52 +44,52 @@ public static function fieldList() {
protected $healthPlanCoinsuranceOption;
/**
- * The category or type of pharmacy associated with this cost sharing.
+ * The rate of coinsurance expressed as a number between 0.0 and 1.0.
*
*
- * @var string
+ * @var Number|null
*/
- protected $healthPlanPharmacyCategory;
+ protected $healthPlanCoinsuranceRate;
/**
- * Whether The copay amount.
+ * Whether the copay is before or after deductible, etc. TODO: Is this a closed set?
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var string
*/
- protected $healthPlanCopay;
+ protected $healthPlanCopayOption;
/**
- * Whether the copay is before or after deductible, etc. TODO: Is this a closed set?
+ * The category or type of pharmacy associated with this cost sharing.
*
*
* @var string
*/
- protected $healthPlanCopayOption;
+ protected $healthPlanPharmacyCategory;
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getHealthPlanCoinsuranceRate()
+ public function getHealthPlanCopay()
{
- return $this->healthPlanCoinsuranceRate;
+ return $this->healthPlanCopay;
}
/**
- * @param Number|null $healthPlanCoinsuranceRate
+ * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $healthPlanCopay
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanCoinsuranceRate($healthPlanCoinsuranceRate)
+ public function setHealthPlanCopay($healthPlanCopay)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "string",
];
- $healthPlanCoinsuranceRate = self::checkTypes($healthPlanCoinsuranceRate, $types);
+ $healthPlanCopay = self::checkTypes($healthPlanCopay, $types);
- $this->healthPlanCoinsuranceRate = $healthPlanCoinsuranceRate;
+ $this->healthPlanCopay = $healthPlanCopay;
}
/**
@@ -117,76 +117,76 @@ public function setHealthPlanCoinsuranceOption($healthPlanCoinsuranceOption)
}
/**
- * @return string
+ * @return Number|null
*/
- public function getHealthPlanPharmacyCategory()
+ public function getHealthPlanCoinsuranceRate()
{
- return $this->healthPlanPharmacyCategory;
+ return $this->healthPlanCoinsuranceRate;
}
/**
- * @param string $healthPlanPharmacyCategory
+ * @param Number|null $healthPlanCoinsuranceRate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanPharmacyCategory($healthPlanPharmacyCategory)
+ public function setHealthPlanCoinsuranceRate($healthPlanCoinsuranceRate)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $healthPlanPharmacyCategory = self::checkTypes($healthPlanPharmacyCategory, $types);
+ $healthPlanCoinsuranceRate = self::checkTypes($healthPlanCoinsuranceRate, $types);
- $this->healthPlanPharmacyCategory = $healthPlanPharmacyCategory;
+ $this->healthPlanCoinsuranceRate = $healthPlanCoinsuranceRate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return string
*/
- public function getHealthPlanCopay()
+ public function getHealthPlanCopayOption()
{
- return $this->healthPlanCopay;
+ return $this->healthPlanCopayOption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $healthPlanCopay
+ * @param string $healthPlanCopayOption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanCopay($healthPlanCopay)
+ public function setHealthPlanCopayOption($healthPlanCopayOption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $healthPlanCopay = self::checkTypes($healthPlanCopay, $types);
+ $healthPlanCopayOption = self::checkTypes($healthPlanCopayOption, $types);
- $this->healthPlanCopay = $healthPlanCopay;
+ $this->healthPlanCopayOption = $healthPlanCopayOption;
}
/**
* @return string
*/
- public function getHealthPlanCopayOption()
+ public function getHealthPlanPharmacyCategory()
{
- return $this->healthPlanCopayOption;
+ return $this->healthPlanPharmacyCategory;
}
/**
- * @param string $healthPlanCopayOption
+ * @param string $healthPlanPharmacyCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanCopayOption($healthPlanCopayOption)
+ public function setHealthPlanPharmacyCategory($healthPlanPharmacyCategory)
{
$types = [
"string",
];
- $healthPlanCopayOption = self::checkTypes($healthPlanCopayOption, $types);
+ $healthPlanPharmacyCategory = self::checkTypes($healthPlanPharmacyCategory, $types);
- $this->healthPlanCopayOption = $healthPlanCopayOption;
+ $this->healthPlanPharmacyCategory = $healthPlanPharmacyCategory;
}
}
diff --git a/src/Models/SchemaOrg/HealthPlanFormulary.php b/src/Models/SchemaOrg/HealthPlanFormulary.php
index 52a8bfb6..535a68ad 100644
--- a/src/Models/SchemaOrg/HealthPlanFormulary.php
+++ b/src/Models/SchemaOrg/HealthPlanFormulary.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "offersPrescriptionByMail" => "offersPrescriptionByMail",
- "healthPlanDrugTier" => "healthPlanDrugTier",
"healthPlanCostSharing" => "healthPlanCostSharing",
+ "healthPlanDrugTier" => "healthPlanDrugTier",
+ "offersPrescriptionByMail" => "offersPrescriptionByMail",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Whether prescriptions can be delivered by mail.
+ * The costs to the patient for services under this network or formulary.
*
*
* @var bool|null
*/
- protected $offersPrescriptionByMail;
+ protected $healthPlanCostSharing;
/**
* The tier(s) of drugs offered by this formulary or insurance plan.
@@ -42,36 +42,36 @@ public static function fieldList() {
protected $healthPlanDrugTier;
/**
- * Whether The costs to the patient for services under this network or formulary.
+ * Whether prescriptions can be delivered by mail.
*
*
* @var bool|null
*/
- protected $healthPlanCostSharing;
+ protected $offersPrescriptionByMail;
/**
* @return bool|null
*/
- public function getOffersPrescriptionByMail()
+ public function getHealthPlanCostSharing()
{
- return $this->offersPrescriptionByMail;
+ return $this->healthPlanCostSharing;
}
/**
- * @param bool|null $offersPrescriptionByMail
+ * @param bool|null $healthPlanCostSharing
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffersPrescriptionByMail($offersPrescriptionByMail)
+ public function setHealthPlanCostSharing($healthPlanCostSharing)
{
$types = [
"bool",
"null",
];
- $offersPrescriptionByMail = self::checkTypes($offersPrescriptionByMail, $types);
+ $healthPlanCostSharing = self::checkTypes($healthPlanCostSharing, $types);
- $this->offersPrescriptionByMail = $offersPrescriptionByMail;
+ $this->healthPlanCostSharing = $healthPlanCostSharing;
}
/**
@@ -101,26 +101,26 @@ public function setHealthPlanDrugTier($healthPlanDrugTier)
/**
* @return bool|null
*/
- public function getHealthPlanCostSharing()
+ public function getOffersPrescriptionByMail()
{
- return $this->healthPlanCostSharing;
+ return $this->offersPrescriptionByMail;
}
/**
- * @param bool|null $healthPlanCostSharing
+ * @param bool|null $offersPrescriptionByMail
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanCostSharing($healthPlanCostSharing)
+ public function setOffersPrescriptionByMail($offersPrescriptionByMail)
{
$types = [
"bool",
"null",
];
- $healthPlanCostSharing = self::checkTypes($healthPlanCostSharing, $types);
+ $offersPrescriptionByMail = self::checkTypes($offersPrescriptionByMail, $types);
- $this->healthPlanCostSharing = $healthPlanCostSharing;
+ $this->offersPrescriptionByMail = $offersPrescriptionByMail;
}
}
diff --git a/src/Models/SchemaOrg/HealthPlanNetwork.php b/src/Models/SchemaOrg/HealthPlanNetwork.php
index 5f18dd0a..7ff43d67 100644
--- a/src/Models/SchemaOrg/HealthPlanNetwork.php
+++ b/src/Models/SchemaOrg/HealthPlanNetwork.php
@@ -17,24 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "healthPlanNetworkId" => "healthPlanNetworkId",
- "healthPlanCostSharing" => "healthPlanCostSharing",
"healthPlanNetworkTier" => "healthPlanNetworkTier",
+ "healthPlanCostSharing" => "healthPlanCostSharing",
+ "healthPlanNetworkId" => "healthPlanNetworkId",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Name or unique ID of network. (Networks are often reused across different insurance plans).
+ * The tier(s) for this network.
*
*
* @var string
*/
- protected $healthPlanNetworkId;
+ protected $healthPlanNetworkTier;
/**
- * Whether The costs to the patient for services under this network or formulary.
+ * The costs to the patient for services under this network or formulary.
*
*
* @var bool|null
@@ -42,35 +42,35 @@ public static function fieldList() {
protected $healthPlanCostSharing;
/**
- * The tier(s) for this network.
+ * Name or unique ID of network. (Networks are often reused across different insurance plans.)
*
*
* @var string
*/
- protected $healthPlanNetworkTier;
+ protected $healthPlanNetworkId;
/**
* @return string
*/
- public function getHealthPlanNetworkId()
+ public function getHealthPlanNetworkTier()
{
- return $this->healthPlanNetworkId;
+ return $this->healthPlanNetworkTier;
}
/**
- * @param string $healthPlanNetworkId
+ * @param string $healthPlanNetworkTier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanNetworkId($healthPlanNetworkId)
+ public function setHealthPlanNetworkTier($healthPlanNetworkTier)
{
$types = [
"string",
];
- $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types);
+ $healthPlanNetworkTier = self::checkTypes($healthPlanNetworkTier, $types);
- $this->healthPlanNetworkId = $healthPlanNetworkId;
+ $this->healthPlanNetworkTier = $healthPlanNetworkTier;
}
/**
@@ -101,25 +101,25 @@ public function setHealthPlanCostSharing($healthPlanCostSharing)
/**
* @return string
*/
- public function getHealthPlanNetworkTier()
+ public function getHealthPlanNetworkId()
{
- return $this->healthPlanNetworkTier;
+ return $this->healthPlanNetworkId;
}
/**
- * @param string $healthPlanNetworkTier
+ * @param string $healthPlanNetworkId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanNetworkTier($healthPlanNetworkTier)
+ public function setHealthPlanNetworkId($healthPlanNetworkId)
{
$types = [
"string",
];
- $healthPlanNetworkTier = self::checkTypes($healthPlanNetworkTier, $types);
+ $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types);
- $this->healthPlanNetworkTier = $healthPlanNetworkTier;
+ $this->healthPlanNetworkId = $healthPlanNetworkId;
}
}
diff --git a/src/Models/SchemaOrg/Hospital.php b/src/Models/SchemaOrg/Hospital.php
index 57b3d032..cf5616dd 100644
--- a/src/Models/SchemaOrg/Hospital.php
+++ b/src/Models/SchemaOrg/Hospital.php
@@ -17,114 +17,114 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "medicalSpecialty" => "medicalSpecialty",
"availableService" => "availableService",
"healthcareReportingData" => "healthcareReportingData",
- "medicalSpecialty" => "medicalSpecialty",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A medical service available from this provider.
+ * A medical specialty of the provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- protected $availableService;
+ protected $medicalSpecialty;
/**
- * Indicates data describing a hospital, e.g. a CDC [[CDCPMDRecord]] or as some kind of [[Dataset]].
+ * A medical service available from this provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string
*/
- protected $healthcareReportingData;
+ protected $availableService;
/**
- * A medical specialty of the provider.
+ * Indicates data describing a hospital, e.g. a CDC [[CDCPMDRecord]] or as some kind of [[Dataset]].
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @var \OpenActive\Models\SchemaOrg\CDCPMDRecord|\OpenActive\Models\SchemaOrg\Dataset|string
*/
- protected $medicalSpecialty;
+ protected $healthcareReportingData;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- public function getAvailableService()
+ public function getMedicalSpecialty()
{
- return $this->availableService;
+ return $this->medicalSpecialty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService
+ * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableService($availableService)
+ public function setMedicalSpecialty($medicalSpecialty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
- "\OpenActive\Models\SchemaOrg\MedicalProcedure",
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
"string",
];
- $availableService = self::checkTypes($availableService, $types);
+ $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
- $this->availableService = $availableService;
+ $this->medicalSpecialty = $medicalSpecialty;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string
*/
- public function getHealthcareReportingData()
+ public function getAvailableService()
{
- return $this->healthcareReportingData;
+ return $this->availableService;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string $healthcareReportingData
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string $availableService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthcareReportingData($healthcareReportingData)
+ public function setAvailableService($availableService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Dataset",
- "\OpenActive\Models\SchemaOrg\CDCPMDRecord",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
+ "\OpenActive\Models\SchemaOrg\MedicalProcedure",
"string",
];
- $healthcareReportingData = self::checkTypes($healthcareReportingData, $types);
+ $availableService = self::checkTypes($availableService, $types);
- $this->healthcareReportingData = $healthcareReportingData;
+ $this->availableService = $availableService;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @return \OpenActive\Models\SchemaOrg\CDCPMDRecord|\OpenActive\Models\SchemaOrg\Dataset|string
*/
- public function getMedicalSpecialty()
+ public function getHealthcareReportingData()
{
- return $this->medicalSpecialty;
+ return $this->healthcareReportingData;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty
+ * @param \OpenActive\Models\SchemaOrg\CDCPMDRecord|\OpenActive\Models\SchemaOrg\Dataset|string $healthcareReportingData
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMedicalSpecialty($medicalSpecialty)
+ public function setHealthcareReportingData($healthcareReportingData)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
+ "\OpenActive\Models\SchemaOrg\CDCPMDRecord",
+ "\OpenActive\Models\SchemaOrg\Dataset",
"string",
];
- $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
+ $healthcareReportingData = self::checkTypes($healthcareReportingData, $types);
- $this->medicalSpecialty = $medicalSpecialty;
+ $this->healthcareReportingData = $healthcareReportingData;
}
}
diff --git a/src/Models/SchemaOrg/HotelRoom.php b/src/Models/SchemaOrg/HotelRoom.php
index f44e621d..4d609eec 100644
--- a/src/Models/SchemaOrg/HotelRoom.php
+++ b/src/Models/SchemaOrg/HotelRoom.php
@@ -17,80 +17,80 @@ public static function getType()
public static function fieldList() {
$fields = [
- "bed" => "bed",
"occupancy" => "occupancy",
+ "bed" => "bed",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text.
- * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property.
+ * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person).
+ * Typical unit code(s): C62 for person.
*
*
- * @var \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $bed;
+ protected $occupancy;
/**
- * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person).
- * Typical unit code(s): C62 for person
+ * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text.
+ * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType
*/
- protected $occupancy;
+ protected $bed;
/**
- * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getBed()
+ public function getOccupancy()
{
- return $this->bed;
+ return $this->occupancy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBed($bed)
+ public function setOccupancy($occupancy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BedDetails",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Models\SchemaOrg\BedType",
];
- $bed = self::checkTypes($bed, $types);
+ $occupancy = self::checkTypes($occupancy, $types);
- $this->bed = $bed;
+ $this->occupancy = $occupancy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType
*/
- public function getOccupancy()
+ public function getBed()
{
- return $this->occupancy;
+ return $this->bed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy
+ * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupancy($occupancy)
+ public function setBed($bed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\BedDetails",
"string",
+ "\OpenActive\Models\SchemaOrg\BedType",
];
- $occupancy = self::checkTypes($occupancy, $types);
+ $bed = self::checkTypes($bed, $types);
- $this->occupancy = $occupancy;
+ $this->bed = $bed;
}
}
diff --git a/src/Models/SchemaOrg/HowTo.php b/src/Models/SchemaOrg/HowTo.php
index 61090b30..9a8b6e88 100644
--- a/src/Models/SchemaOrg/HowTo.php
+++ b/src/Models/SchemaOrg/HowTo.php
@@ -17,27 +17,27 @@ public static function getType()
public static function fieldList() {
$fields = [
- "yield" => "yield",
- "estimatedCost" => "estimatedCost",
"supply" => "supply",
- "step" => "step",
- "totalTime" => "totalTime",
+ "estimatedCost" => "estimatedCost",
+ "yield" => "yield",
"tool" => "tool",
+ "totalTime" => "totalTime",
"prepTime" => "prepTime",
- "steps" => "steps",
"performTime" => "performTime",
+ "step" => "step",
+ "steps" => "steps",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The quantity that results by performing instructions. For example, a paper airplane, 10 personalized candles.
+ * A sub-property of instrument. A supply consumed when performing instructions or a direction.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var \OpenActive\Models\SchemaOrg\HowToSupply|string
*/
- protected $yield;
+ protected $supply;
/**
* The estimated cost of the supply or supplies consumed when performing instructions.
@@ -48,20 +48,20 @@ public static function fieldList() {
protected $estimatedCost;
/**
- * A sub-property of instrument. A supply consumed when performing instructions or a direction.
+ * The quantity that results by performing instructions. For example, a paper airplane, 10 personalized candles.
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- protected $supply;
+ protected $yield;
/**
- * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection.
+ * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\HowToTool|string
*/
- protected $step;
+ protected $tool;
/**
* The total time required to perform instructions or a direction (including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
@@ -72,60 +72,60 @@ public static function fieldList() {
protected $totalTime;
/**
- * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
+ * The length of time it takes to prepare the items to be used in instructions or a direction, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @var DateInterval|string|null
*/
- protected $tool;
+ protected $prepTime;
/**
- * The length of time it takes to prepare the items to be used in instructions or a direction, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The length of time it takes to perform instructions or a direction (not including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
* @var DateInterval|string|null
*/
- protected $prepTime;
+ protected $performTime;
/**
- * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred).
+ * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection.
*
*
- * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string|\OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection
*/
- protected $steps;
+ protected $step;
/**
- * The length of time it takes to perform instructions or a direction (not including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
+ * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred).
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $performTime;
+ protected $steps;
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return \OpenActive\Models\SchemaOrg\HowToSupply|string
*/
- public function getYield()
+ public function getSupply()
{
- return $this->yield;
+ return $this->supply;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $yield
+ * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setYield($yield)
+ public function setSupply($supply)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\HowToSupply",
"string",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $yield = self::checkTypes($yield, $types);
+ $supply = self::checkTypes($supply, $types);
- $this->yield = $yield;
+ $this->supply = $supply;
}
/**
@@ -154,55 +154,53 @@ public function setEstimatedCost($estimatedCost)
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getSupply()
+ public function getYield()
{
- return $this->supply;
+ return $this->yield;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply
+ * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $yield
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSupply($supply)
+ public function setYield($yield)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToSupply",
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $supply = self::checkTypes($supply, $types);
+ $yield = self::checkTypes($yield, $types);
- $this->supply = $supply;
+ $this->yield = $yield;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\HowToTool|string
*/
- public function getStep()
+ public function getTool()
{
- return $this->step;
+ return $this->tool;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork $step
+ * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStep($step)
+ public function setTool($tool)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToStep",
- "\OpenActive\Models\SchemaOrg\HowToSection",
+ "\OpenActive\Models\SchemaOrg\HowToTool",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $step = self::checkTypes($step, $types);
+ $tool = self::checkTypes($tool, $types);
- $this->step = $step;
+ $this->tool = $tool;
}
/**
@@ -232,44 +230,45 @@ public function setTotalTime($totalTime)
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @return DateInterval|string|null
*/
- public function getTool()
+ public function getPrepTime()
{
- return $this->tool;
+ return $this->prepTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool
+ * @param DateInterval|string|null $prepTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTool($tool)
+ public function setPrepTime($prepTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToTool",
+ "DateInterval",
"string",
+ "null",
];
- $tool = self::checkTypes($tool, $types);
+ $prepTime = self::checkTypes($prepTime, $types);
- $this->tool = $tool;
+ $this->prepTime = $prepTime;
}
/**
* @return DateInterval|string|null
*/
- public function getPrepTime()
+ public function getPerformTime()
{
- return $this->prepTime;
+ return $this->performTime;
}
/**
- * @param DateInterval|string|null $prepTime
+ * @param DateInterval|string|null $performTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrepTime($prepTime)
+ public function setPerformTime($performTime)
{
$types = [
"DateInterval",
@@ -277,61 +276,62 @@ public function setPrepTime($prepTime)
"null",
];
- $prepTime = self::checkTypes($prepTime, $types);
+ $performTime = self::checkTypes($performTime, $types);
- $this->prepTime = $prepTime;
+ $this->performTime = $performTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string|\OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection
*/
- public function getSteps()
+ public function getStep()
{
- return $this->steps;
+ return $this->step;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string $steps
+ * @param string|\OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection $step
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSteps($steps)
+ public function setStep($step)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ItemList",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
+ "\OpenActive\Models\SchemaOrg\HowToStep",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\HowToSection",
];
- $steps = self::checkTypes($steps, $types);
+ $step = self::checkTypes($step, $types);
- $this->steps = $steps;
+ $this->step = $step;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getPerformTime()
+ public function getSteps()
{
- return $this->performTime;
+ return $this->steps;
}
/**
- * @param DateInterval|string|null $performTime
+ * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string $steps
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPerformTime($performTime)
+ public function setSteps($steps)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\ItemList",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "null",
];
- $performTime = self::checkTypes($performTime, $types);
+ $steps = self::checkTypes($steps, $types);
- $this->performTime = $performTime;
+ $this->steps = $steps;
}
}
diff --git a/src/Models/SchemaOrg/HowToDirection.php b/src/Models/SchemaOrg/HowToDirection.php
index c1650da5..0ef4c200 100644
--- a/src/Models/SchemaOrg/HowToDirection.php
+++ b/src/Models/SchemaOrg/HowToDirection.php
@@ -5,7 +5,7 @@
/**
*
*/
-class HowToDirection extends \OpenActive\Models\SchemaOrg\ListItem
+class HowToDirection extends \OpenActive\Models\SchemaOrg\CreativeWork
{
/**
* @return string[]|null
@@ -17,42 +17,42 @@ public static function getType()
public static function fieldList() {
$fields = [
- "afterMedia" => "afterMedia",
"supply" => "supply",
- "duringMedia" => "duringMedia",
- "totalTime" => "totalTime",
"beforeMedia" => "beforeMedia",
"tool" => "tool",
+ "totalTime" => "totalTime",
+ "duringMedia" => "duringMedia",
"prepTime" => "prepTime",
"performTime" => "performTime",
+ "afterMedia" => "afterMedia",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A media object representing the circumstances after performing this direction.
+ * A sub-property of instrument. A supply consumed when performing instructions or a direction.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @var \OpenActive\Models\SchemaOrg\HowToSupply|string
*/
- protected $afterMedia;
+ protected $supply;
/**
- * A sub-property of instrument. A supply consumed when performing instructions or a direction.
+ * A media object representing the circumstances before performing this direction.
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- protected $supply;
+ protected $beforeMedia;
/**
- * A media object representing the circumstances while performing this direction.
+ * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @var \OpenActive\Models\SchemaOrg\HowToTool|string
*/
- protected $duringMedia;
+ protected $tool;
/**
* The total time required to perform instructions or a direction (including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
@@ -63,20 +63,12 @@ public static function fieldList() {
protected $totalTime;
/**
- * A media object representing the circumstances before performing this direction.
+ * A media object representing the circumstances while performing this direction.
*
*
* @var string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- protected $beforeMedia;
-
- /**
- * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\HowToTool|string
- */
- protected $tool;
+ protected $duringMedia;
/**
* The length of time it takes to prepare the items to be used in instructions or a direction, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
@@ -95,78 +87,86 @@ public static function fieldList() {
protected $performTime;
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject
+ * A media object representing the circumstances after performing this direction.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- public function getAfterMedia()
+ protected $afterMedia;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\HowToSupply|string
+ */
+ public function getSupply()
{
- return $this->afterMedia;
+ return $this->supply;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $afterMedia
+ * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAfterMedia($afterMedia)
+ public function setSupply($supply)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\HowToSupply",
"string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
];
- $afterMedia = self::checkTypes($afterMedia, $types);
+ $supply = self::checkTypes($supply, $types);
- $this->afterMedia = $afterMedia;
+ $this->supply = $supply;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getSupply()
+ public function getBeforeMedia()
{
- return $this->supply;
+ return $this->beforeMedia;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply
+ * @param \OpenActive\Models\SchemaOrg\MediaObject|string $beforeMedia
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSupply($supply)
+ public function setBeforeMedia($beforeMedia)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToSupply",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $supply = self::checkTypes($supply, $types);
+ $beforeMedia = self::checkTypes($beforeMedia, $types);
- $this->supply = $supply;
+ $this->beforeMedia = $beforeMedia;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @return \OpenActive\Models\SchemaOrg\HowToTool|string
*/
- public function getDuringMedia()
+ public function getTool()
{
- return $this->duringMedia;
+ return $this->tool;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $duringMedia
+ * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuringMedia($duringMedia)
+ public function setTool($tool)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\HowToTool",
"string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
];
- $duringMedia = self::checkTypes($duringMedia, $types);
+ $tool = self::checkTypes($tool, $types);
- $this->duringMedia = $duringMedia;
+ $this->tool = $tool;
}
/**
@@ -198,67 +198,68 @@ public function setTotalTime($totalTime)
/**
* @return string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- public function getBeforeMedia()
+ public function getDuringMedia()
{
- return $this->beforeMedia;
+ return $this->duringMedia;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $beforeMedia
+ * @param string|\OpenActive\Models\SchemaOrg\MediaObject $duringMedia
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBeforeMedia($beforeMedia)
+ public function setDuringMedia($duringMedia)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\MediaObject",
];
- $beforeMedia = self::checkTypes($beforeMedia, $types);
+ $duringMedia = self::checkTypes($duringMedia, $types);
- $this->beforeMedia = $beforeMedia;
+ $this->duringMedia = $duringMedia;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @return DateInterval|string|null
*/
- public function getTool()
+ public function getPrepTime()
{
- return $this->tool;
+ return $this->prepTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool
+ * @param DateInterval|string|null $prepTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTool($tool)
+ public function setPrepTime($prepTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToTool",
+ "DateInterval",
"string",
+ "null",
];
- $tool = self::checkTypes($tool, $types);
+ $prepTime = self::checkTypes($prepTime, $types);
- $this->tool = $tool;
+ $this->prepTime = $prepTime;
}
/**
* @return DateInterval|string|null
*/
- public function getPrepTime()
+ public function getPerformTime()
{
- return $this->prepTime;
+ return $this->performTime;
}
/**
- * @param DateInterval|string|null $prepTime
+ * @param DateInterval|string|null $performTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrepTime($prepTime)
+ public function setPerformTime($performTime)
{
$types = [
"DateInterval",
@@ -266,35 +267,34 @@ public function setPrepTime($prepTime)
"null",
];
- $prepTime = self::checkTypes($prepTime, $types);
+ $performTime = self::checkTypes($performTime, $types);
- $this->prepTime = $prepTime;
+ $this->performTime = $performTime;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- public function getPerformTime()
+ public function getAfterMedia()
{
- return $this->performTime;
+ return $this->afterMedia;
}
/**
- * @param DateInterval|string|null $performTime
+ * @param string|\OpenActive\Models\SchemaOrg\MediaObject $afterMedia
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPerformTime($performTime)
+ public function setAfterMedia($afterMedia)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
];
- $performTime = self::checkTypes($performTime, $types);
+ $afterMedia = self::checkTypes($afterMedia, $types);
- $this->performTime = $performTime;
+ $this->afterMedia = $afterMedia;
}
}
diff --git a/src/Models/SchemaOrg/HowToItem.php b/src/Models/SchemaOrg/HowToItem.php
index 0792f4f3..0a0d05b8 100644
--- a/src/Models/SchemaOrg/HowToItem.php
+++ b/src/Models/SchemaOrg/HowToItem.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* The required quantity of the item(s).
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue|Number|null
*/
protected $requiredQuantity;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue|Number|null
*/
public function getRequiredQuantity()
{
@@ -40,15 +40,15 @@ public function getRequiredQuantity()
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $requiredQuantity
+ * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue|Number|null $requiredQuantity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRequiredQuantity($requiredQuantity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"Number",
"null",
];
diff --git a/src/Models/SchemaOrg/HowToStep.php b/src/Models/SchemaOrg/HowToStep.php
index f3a75a5f..be17f111 100644
--- a/src/Models/SchemaOrg/HowToStep.php
+++ b/src/Models/SchemaOrg/HowToStep.php
@@ -5,7 +5,7 @@
/**
*
*/
-class HowToStep extends \OpenActive\Models\SchemaOrg\ListItem
+class HowToStep extends \OpenActive\Models\SchemaOrg\CreativeWork
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/HyperToc.php b/src/Models/SchemaOrg/HyperToc.php
index d2dfb384..83cea49f 100644
--- a/src/Models/SchemaOrg/HyperToc.php
+++ b/src/Models/SchemaOrg/HyperToc.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "tocEntry" => "tocEntry",
"associatedMedia" => "associatedMedia",
+ "tocEntry" => "tocEntry",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates a [[HyperTocEntry]] in a [[HyperToc]].
+ * A media object that encodes this CreativeWork. This property is a synonym for encoding.
*
*
- * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- protected $tocEntry;
+ protected $associatedMedia;
/**
- * A media object that encodes this CreativeWork. This property is a synonym for encoding.
+ * Indicates a [[HyperTocEntry]] in a [[HyperToc]].
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string
*/
- protected $associatedMedia;
+ protected $tocEntry;
/**
- * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getTocEntry()
+ public function getAssociatedMedia()
{
- return $this->tocEntry;
+ return $this->associatedMedia;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string $tocEntry
+ * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTocEntry($tocEntry)
+ public function setAssociatedMedia($associatedMedia)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HyperTocEntry",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $tocEntry = self::checkTypes($tocEntry, $types);
+ $associatedMedia = self::checkTypes($associatedMedia, $types);
- $this->tocEntry = $tocEntry;
+ $this->associatedMedia = $associatedMedia;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string
*/
- public function getAssociatedMedia()
+ public function getTocEntry()
{
- return $this->associatedMedia;
+ return $this->tocEntry;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia
+ * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string $tocEntry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedMedia($associatedMedia)
+ public function setTocEntry($tocEntry)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "\OpenActive\Models\SchemaOrg\HyperTocEntry",
"string",
];
- $associatedMedia = self::checkTypes($associatedMedia, $types);
+ $tocEntry = self::checkTypes($tocEntry, $types);
- $this->associatedMedia = $associatedMedia;
+ $this->tocEntry = $tocEntry;
}
}
diff --git a/src/Models/SchemaOrg/HyperTocEntry.php b/src/Models/SchemaOrg/HyperTocEntry.php
index 3ec838dc..ba406acf 100644
--- a/src/Models/SchemaOrg/HyperTocEntry.php
+++ b/src/Models/SchemaOrg/HyperTocEntry.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "utterances" => "utterances",
"tocContinuation" => "tocContinuation",
"associatedMedia" => "associatedMedia",
- "utterances" => "utterances",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * Text of an utterances (spoken words, lyrics etc.) that occurs at a certain section of a media object, represented as a [[HyperTocEntry]].
+ *
+ *
+ * @var string
+ */
+ protected $utterances;
+
/**
* A [[HyperTocEntry]] can have a [[tocContinuation]] indicated, which is another [[HyperTocEntry]] that would be the default next item to play or render.
*
@@ -42,12 +50,28 @@ public static function fieldList() {
protected $associatedMedia;
/**
- * Text of an utterances (spoken words, lyrics etc.) that occurs at a certain section of a media object, represented as a [[HyperTocEntry]].
- *
- *
- * @var string
+ * @return string
*/
- protected $utterances;
+ public function getUtterances()
+ {
+ return $this->utterances;
+ }
+
+ /**
+ * @param string $utterances
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setUtterances($utterances)
+ {
+ $types = [
+ "string",
+ ];
+
+ $utterances = self::checkTypes($utterances, $types);
+
+ $this->utterances = $utterances;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string
@@ -99,28 +123,4 @@ public function setAssociatedMedia($associatedMedia)
$this->associatedMedia = $associatedMedia;
}
- /**
- * @return string
- */
- public function getUtterances()
- {
- return $this->utterances;
- }
-
- /**
- * @param string $utterances
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setUtterances($utterances)
- {
- $types = [
- "string",
- ];
-
- $utterances = self::checkTypes($utterances, $types);
-
- $this->utterances = $utterances;
- }
-
}
diff --git a/src/Models/SchemaOrg/IPTCDigitalSourceEnumeration.php b/src/Models/SchemaOrg/IPTCDigitalSourceEnumeration.php
new file mode 100644
index 00000000..0ac84b42
--- /dev/null
+++ b/src/Models/SchemaOrg/IPTCDigitalSourceEnumeration.php
@@ -0,0 +1,25 @@
+ "embeddedTextCaption",
"representativeOfPage" => "representativeOfPage",
- "caption" => "caption",
- "thumbnail" => "thumbnail",
"exifData" => "exifData",
+ "embeddedTextCaption" => "embeddedTextCaption",
+ "caption" => "caption",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.
- *
- *
- * @var string
- */
- protected $embeddedTextCaption;
-
/**
* Indicates whether this image is representative of the content of the page.
*
@@ -44,52 +35,28 @@ public static function fieldList() {
protected $representativeOfPage;
/**
- * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]].
+ * exif data for this object.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @var string|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- protected $caption;
+ protected $exifData;
/**
- * Thumbnail image for an image or video.
+ * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.
*
*
- * @var \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @var string
*/
- protected $thumbnail;
+ protected $embeddedTextCaption;
/**
- * exif data for this object.
+ * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]].
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
- */
- protected $exifData;
-
- /**
- * @return string
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getEmbeddedTextCaption()
- {
- return $this->embeddedTextCaption;
- }
-
- /**
- * @param string $embeddedTextCaption
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setEmbeddedTextCaption($embeddedTextCaption)
- {
- $types = [
- "string",
- ];
-
- $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
-
- $this->embeddedTextCaption = $embeddedTextCaption;
- }
+ protected $caption;
/**
* @return bool|null
@@ -117,78 +84,77 @@ public function setRepresentativeOfPage($representativeOfPage)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @return string|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- public function getCaption()
+ public function getExifData()
{
- return $this->caption;
+ return $this->exifData;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption
+ * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $exifData
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCaption($caption)
+ public function setExifData($exifData)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
];
- $caption = self::checkTypes($caption, $types);
+ $exifData = self::checkTypes($exifData, $types);
- $this->caption = $caption;
+ $this->exifData = $exifData;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return string
*/
- public function getThumbnail()
+ public function getEmbeddedTextCaption()
{
- return $this->thumbnail;
+ return $this->embeddedTextCaption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail
+ * @param string $embeddedTextCaption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setThumbnail($thumbnail)
+ public function setEmbeddedTextCaption($embeddedTextCaption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $thumbnail = self::checkTypes($thumbnail, $types);
+ $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
- $this->thumbnail = $thumbnail;
+ $this->embeddedTextCaption = $embeddedTextCaption;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getExifData()
+ public function getCaption()
{
- return $this->exifData;
+ return $this->caption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $exifData
+ * @param \OpenActive\Models\SchemaOrg\MediaObject|string $caption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExifData($exifData)
+ public function setCaption($caption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $exifData = self::checkTypes($exifData, $types);
+ $caption = self::checkTypes($caption, $types);
- $this->exifData = $exifData;
+ $this->caption = $caption;
}
}
diff --git a/src/Models/SchemaOrg/IndividualPhysician.php b/src/Models/SchemaOrg/IndividualPhysician.php
new file mode 100644
index 00000000..c1ee47d2
--- /dev/null
+++ b/src/Models/SchemaOrg/IndividualPhysician.php
@@ -0,0 +1,59 @@
+ "practicesAt",
+ ];
+
+ return array_merge(parent::fieldList(), $fields);
+ }
+
+ /**
+ * A [[MedicalOrganization]] where the [[IndividualPhysician]] practices.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MedicalOrganization|string
+ */
+ protected $practicesAt;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MedicalOrganization|string
+ */
+ public function getPracticesAt()
+ {
+ return $this->practicesAt;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\MedicalOrganization|string $practicesAt
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setPracticesAt($practicesAt)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MedicalOrganization",
+ "string",
+ ];
+
+ $practicesAt = self::checkTypes($practicesAt, $types);
+
+ $this->practicesAt = $practicesAt;
+ }
+
+}
diff --git a/src/Models/SchemaOrg/InteractionCounter.php b/src/Models/SchemaOrg/InteractionCounter.php
index 09f2c22b..7a7e95dd 100644
--- a/src/Models/SchemaOrg/InteractionCounter.php
+++ b/src/Models/SchemaOrg/InteractionCounter.php
@@ -17,25 +17,17 @@ public static function getType()
public static function fieldList() {
$fields = [
- "startTime" => "startTime",
"userInteractionCount" => "userInteractionCount",
- "location" => "location",
"interactionType" => "interactionType",
- "interactionService" => "interactionService",
"endTime" => "endTime",
+ "interactionService" => "interactionService",
+ "startTime" => "startTime",
+ "location" => "location",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
- *
- *
- * @var DateTime|string|null
- */
- protected $startTime;
-
/**
* The number of interactions for the CreativeWork using the WebSite or SoftwareApplication.
*
@@ -45,62 +37,44 @@ public static function fieldList() {
protected $userInteractionCount;
/**
- * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
+ * The Action representing the type of interaction. For up votes, +1s, etc. use [[LikeAction]]. For down votes use [[DislikeAction]]. Otherwise, use the most specific Action.
*
*
- * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var \OpenActive\Models\SchemaOrg\Action|string
*/
- protected $location;
+ protected $interactionType;
/**
- * The Action representing the type of interaction. For up votes, +1s, etc. use [[LikeAction]]. For down votes use [[DislikeAction]]. Otherwise, use the most specific Action.
+ * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var \OpenActive\Models\SchemaOrg\Action|string
+ * @var DateTime|string|null
*/
- protected $interactionType;
+ protected $endTime;
/**
* The WebSite or SoftwareApplication where the interactions took place.
*
*
- * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string
+ * @var \OpenActive\Models\SchemaOrg\WebSite|\OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
protected $interactionService;
/**
- * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
* @var DateTime|string|null
*/
- protected $endTime;
-
- /**
- * @return DateTime|string|null
- */
- public function getStartTime()
- {
- return $this->startTime;
- }
+ protected $startTime;
/**
- * @param DateTime|string|null $startTime
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
*/
- public function setStartTime($startTime)
- {
- $types = [
- "DateTime",
- "Time",
- "null",
- ];
-
- $startTime = self::checkTypes($startTime, $types);
-
- $this->startTime = $startTime;
- }
+ protected $location;
/**
* @return int|null
@@ -128,59 +102,58 @@ public function setUserInteractionCount($userInteractionCount)
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return \OpenActive\Models\SchemaOrg\Action|string
*/
- public function getLocation()
+ public function getInteractionType()
{
- return $this->location;
+ return $this->interactionType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @param \OpenActive\Models\SchemaOrg\Action|string $interactionType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLocation($location)
+ public function setInteractionType($interactionType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Action",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\VirtualLocation",
];
- $location = self::checkTypes($location, $types);
+ $interactionType = self::checkTypes($interactionType, $types);
- $this->location = $location;
+ $this->interactionType = $interactionType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Action|string
+ * @return DateTime|string|null
*/
- public function getInteractionType()
+ public function getEndTime()
{
- return $this->interactionType;
+ return $this->endTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Action|string $interactionType
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractionType($interactionType)
+ public function setEndTime($endTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Action",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $interactionType = self::checkTypes($interactionType, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->interactionType = $interactionType;
+ $this->endTime = $endTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string
+ * @return \OpenActive\Models\SchemaOrg\WebSite|\OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
public function getInteractionService()
{
@@ -188,15 +161,15 @@ public function getInteractionService()
}
/**
- * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string $interactionService
+ * @param \OpenActive\Models\SchemaOrg\WebSite|\OpenActive\Models\SchemaOrg\SoftwareApplication|string $interactionService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setInteractionService($interactionService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"\OpenActive\Models\SchemaOrg\WebSite",
+ "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
@@ -208,17 +181,17 @@ public function setInteractionService($interactionService)
/**
* @return DateTime|string|null
*/
- public function getEndTime()
+ public function getStartTime()
{
- return $this->endTime;
+ return $this->startTime;
}
/**
- * @param DateTime|string|null $endTime
+ * @param DateTime|string|null $startTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndTime($endTime)
+ public function setStartTime($startTime)
{
$types = [
"DateTime",
@@ -226,9 +199,36 @@ public function setEndTime($endTime)
"null",
];
- $endTime = self::checkTypes($endTime, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->endTime = $endTime;
+ $this->startTime = $startTime;
+ }
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ */
+ public function getLocation()
+ {
+ return $this->location;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setLocation($location)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\VirtualLocation",
+ ];
+
+ $location = self::checkTypes($location, $types);
+
+ $this->location = $location;
}
}
diff --git a/src/Models/SchemaOrg/InvestmentOrDeposit.php b/src/Models/SchemaOrg/InvestmentOrDeposit.php
index 0886a6e1..f33079e4 100644
--- a/src/Models/SchemaOrg/InvestmentOrDeposit.php
+++ b/src/Models/SchemaOrg/InvestmentOrDeposit.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* The amount of money.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
protected $amount;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getAmount()
{
@@ -40,16 +40,16 @@ public function getAmount()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAmount($amount)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/Invoice.php b/src/Models/SchemaOrg/Invoice.php
index d9aa9ed8..8d876f9d 100644
--- a/src/Models/SchemaOrg/Invoice.php
+++ b/src/Models/SchemaOrg/Invoice.php
@@ -17,122 +17,122 @@ public static function getType()
public static function fieldList() {
$fields = [
- "totalPaymentDue" => "totalPaymentDue",
+ "minimumPaymentDue" => "minimumPaymentDue",
+ "customer" => "customer",
+ "paymentMethodId" => "paymentMethodId",
+ "scheduledPaymentDate" => "scheduledPaymentDate",
"billingPeriod" => "billingPeriod",
- "referencesOrder" => "referencesOrder",
"accountId" => "accountId",
- "category" => "category",
- "scheduledPaymentDate" => "scheduledPaymentDate",
+ "paymentMethod" => "paymentMethod",
+ "broker" => "broker",
+ "paymentDue" => "paymentDue",
"confirmationNumber" => "confirmationNumber",
- "customer" => "customer",
- "provider" => "provider",
- "minimumPaymentDue" => "minimumPaymentDue",
+ "category" => "category",
"paymentDueDate" => "paymentDueDate",
- "broker" => "broker",
"paymentStatus" => "paymentStatus",
- "paymentMethodId" => "paymentMethodId",
- "paymentDue" => "paymentDue",
- "paymentMethod" => "paymentMethod",
+ "provider" => "provider",
+ "totalPaymentDue" => "totalPaymentDue",
+ "referencesOrder" => "referencesOrder",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The total amount due.
+ * The minimum payment required at this time.
*
*
* @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $totalPaymentDue;
+ protected $minimumPaymentDue;
/**
- * The time interval used to compute the invoice.
+ * Party placing the order or paying the invoice.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $billingPeriod;
+ protected $customer;
/**
- * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
+ * An identifier for the method of payment used (e.g. the last 4 digits of the credit card).
*
*
- * @var \OpenActive\Models\SchemaOrg\Order|string
+ * @var string
*/
- protected $referencesOrder;
+ protected $paymentMethodId;
/**
- * The identifier for the account the payment will be applied to.
+ * The date the invoice is scheduled to be paid.
*
*
- * @var string
+ * @var Date|null
*/
- protected $accountId;
+ protected $scheduledPaymentDate;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * The time interval used to compute the invoice.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var DateInterval|string|null
*/
- protected $category;
+ protected $billingPeriod;
/**
- * The date the invoice is scheduled to be paid.
+ * The identifier for the account the payment will be applied to.
*
*
- * @var Date|null
+ * @var string
*/
- protected $scheduledPaymentDate;
+ protected $accountId;
/**
- * A number that confirms the given order or payment has been received.
+ * The name of the credit card or other method of payment for the order.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null
*/
- protected $confirmationNumber;
+ protected $paymentMethod;
/**
- * Party placing the order or paying the invoice.
+ * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred.
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $customer;
+ protected $broker;
/**
- * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
+ * The date that payment is due.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var DateTime|null
*/
- protected $provider;
+ protected $paymentDue;
/**
- * The minimum payment required at this time.
+ * A number that confirms the given order or payment has been received.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var string
*/
- protected $minimumPaymentDue;
+ protected $confirmationNumber;
/**
- * The date that payment is due.
+ * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null
*/
- protected $paymentDueDate;
+ protected $category;
/**
- * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred.
+ * The date that payment is due.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var Date|DateTime|null
*/
- protected $broker;
+ protected $paymentDueDate;
/**
* The status of payment; whether the invoice has been paid or not.
@@ -143,43 +143,43 @@ public static function fieldList() {
protected $paymentStatus;
/**
- * An identifier for the method of payment used (e.g. the last 4 digits of the credit card).
+ * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $paymentMethodId;
+ protected $provider;
/**
- * The date that payment is due.
+ * The total amount due.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $paymentDue;
+ protected $totalPaymentDue;
/**
- * The name of the credit card or other method of payment for the order.
+ * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
*
*
- * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null
+ * @var \OpenActive\Models\SchemaOrg\Order|string
*/
- protected $paymentMethod;
+ protected $referencesOrder;
/**
* @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getTotalPaymentDue()
+ public function getMinimumPaymentDue()
{
- return $this->totalPaymentDue;
+ return $this->minimumPaymentDue;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $totalPaymentDue
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $minimumPaymentDue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTotalPaymentDue($totalPaymentDue)
+ public function setMinimumPaymentDue($minimumPaymentDue)
{
$types = [
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
@@ -187,177 +187,175 @@ public function setTotalPaymentDue($totalPaymentDue)
"string",
];
- $totalPaymentDue = self::checkTypes($totalPaymentDue, $types);
+ $minimumPaymentDue = self::checkTypes($minimumPaymentDue, $types);
- $this->totalPaymentDue = $totalPaymentDue;
+ $this->minimumPaymentDue = $minimumPaymentDue;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getBillingPeriod()
+ public function getCustomer()
{
- return $this->billingPeriod;
+ return $this->customer;
}
/**
- * @param DateInterval|string|null $billingPeriod
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $customer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBillingPeriod($billingPeriod)
+ public function setCustomer($customer)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "null",
];
- $billingPeriod = self::checkTypes($billingPeriod, $types);
+ $customer = self::checkTypes($customer, $types);
- $this->billingPeriod = $billingPeriod;
+ $this->customer = $customer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Order|string
+ * @return string
*/
- public function getReferencesOrder()
+ public function getPaymentMethodId()
{
- return $this->referencesOrder;
+ return $this->paymentMethodId;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Order|string $referencesOrder
+ * @param string $paymentMethodId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReferencesOrder($referencesOrder)
+ public function setPaymentMethodId($paymentMethodId)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Order",
"string",
];
- $referencesOrder = self::checkTypes($referencesOrder, $types);
+ $paymentMethodId = self::checkTypes($paymentMethodId, $types);
- $this->referencesOrder = $referencesOrder;
+ $this->paymentMethodId = $paymentMethodId;
}
/**
- * @return string
+ * @return Date|null
*/
- public function getAccountId()
+ public function getScheduledPaymentDate()
{
- return $this->accountId;
+ return $this->scheduledPaymentDate;
}
/**
- * @param string $accountId
+ * @param Date|null $scheduledPaymentDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccountId($accountId)
+ public function setScheduledPaymentDate($scheduledPaymentDate)
{
$types = [
- "string",
+ "Date",
+ "null",
];
- $accountId = self::checkTypes($accountId, $types);
+ $scheduledPaymentDate = self::checkTypes($scheduledPaymentDate, $types);
- $this->accountId = $accountId;
+ $this->scheduledPaymentDate = $scheduledPaymentDate;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return DateInterval|string|null
*/
- public function getCategory()
+ public function getBillingPeriod()
{
- return $this->category;
+ return $this->billingPeriod;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @param DateInterval|string|null $billingPeriod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCategory($category)
+ public function setBillingPeriod($billingPeriod)
{
$types = [
+ "DateInterval",
"string",
- "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
- "\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\CategoryCode",
"null",
];
- $category = self::checkTypes($category, $types);
+ $billingPeriod = self::checkTypes($billingPeriod, $types);
- $this->category = $category;
+ $this->billingPeriod = $billingPeriod;
}
/**
- * @return Date|null
+ * @return string
*/
- public function getScheduledPaymentDate()
+ public function getAccountId()
{
- return $this->scheduledPaymentDate;
+ return $this->accountId;
}
/**
- * @param Date|null $scheduledPaymentDate
+ * @param string $accountId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setScheduledPaymentDate($scheduledPaymentDate)
+ public function setAccountId($accountId)
{
$types = [
- "Date",
- "null",
+ "string",
];
- $scheduledPaymentDate = self::checkTypes($scheduledPaymentDate, $types);
+ $accountId = self::checkTypes($accountId, $types);
- $this->scheduledPaymentDate = $scheduledPaymentDate;
+ $this->accountId = $accountId;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null
*/
- public function getConfirmationNumber()
+ public function getPaymentMethod()
{
- return $this->confirmationNumber;
+ return $this->paymentMethod;
}
/**
- * @param string $confirmationNumber
+ * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setConfirmationNumber($confirmationNumber)
+ public function setPaymentMethod($paymentMethod)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\PaymentMethod",
+ "null",
];
- $confirmationNumber = self::checkTypes($confirmationNumber, $types);
+ $paymentMethod = self::checkTypes($paymentMethod, $types);
- $this->confirmationNumber = $confirmationNumber;
+ $this->paymentMethod = $paymentMethod;
}
/**
* @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getCustomer()
+ public function getBroker()
{
- return $this->customer;
+ return $this->broker;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $broker
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCustomer($customer)
+ public function setBroker($broker)
{
$types = [
"\OpenActive\Models\SchemaOrg\Organization",
@@ -365,113 +363,112 @@ public function setCustomer($customer)
"string",
];
- $customer = self::checkTypes($customer, $types);
+ $broker = self::checkTypes($broker, $types);
- $this->customer = $customer;
+ $this->broker = $broker;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return DateTime|null
*/
- public function getProvider()
+ public function getPaymentDue()
{
- return $this->provider;
+ return $this->paymentDue;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param DateTime|null $paymentDue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setPaymentDue($paymentDue)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "DateTime",
+ "null",
];
- $provider = self::checkTypes($provider, $types);
+ $paymentDue = self::checkTypes($paymentDue, $types);
- $this->provider = $provider;
+ $this->paymentDue = $paymentDue;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return string
*/
- public function getMinimumPaymentDue()
+ public function getConfirmationNumber()
{
- return $this->minimumPaymentDue;
+ return $this->confirmationNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $minimumPaymentDue
+ * @param string $confirmationNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMinimumPaymentDue($minimumPaymentDue)
+ public function setConfirmationNumber($confirmationNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $minimumPaymentDue = self::checkTypes($minimumPaymentDue, $types);
+ $confirmationNumber = self::checkTypes($confirmationNumber, $types);
- $this->minimumPaymentDue = $minimumPaymentDue;
+ $this->confirmationNumber = $confirmationNumber;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null
*/
- public function getPaymentDueDate()
+ public function getCategory()
{
- return $this->paymentDueDate;
+ return $this->category;
}
/**
- * @param Date|DateTime|null $paymentDueDate
+ * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentDueDate($paymentDueDate)
+ public function setCategory($category)
{
$types = [
- "Date",
- "DateTime",
+ "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
"null",
];
- $paymentDueDate = self::checkTypes($paymentDueDate, $types);
+ $category = self::checkTypes($category, $types);
- $this->paymentDueDate = $paymentDueDate;
+ $this->category = $category;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return Date|DateTime|null
*/
- public function getBroker()
+ public function getPaymentDueDate()
{
- return $this->broker;
+ return $this->paymentDueDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker
+ * @param Date|DateTime|null $paymentDueDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroker($broker)
+ public function setPaymentDueDate($paymentDueDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $broker = self::checkTypes($broker, $types);
+ $paymentDueDate = self::checkTypes($paymentDueDate, $types);
- $this->broker = $broker;
+ $this->paymentDueDate = $paymentDueDate;
}
/**
@@ -500,77 +497,80 @@ public function setPaymentStatus($paymentStatus)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPaymentMethodId()
+ public function getProvider()
{
- return $this->paymentMethodId;
+ return $this->provider;
}
/**
- * @param string $paymentMethodId
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentMethodId($paymentMethodId)
+ public function setProvider($provider)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $paymentMethodId = self::checkTypes($paymentMethodId, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->paymentMethodId = $paymentMethodId;
+ $this->provider = $provider;
}
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getPaymentDue()
+ public function getTotalPaymentDue()
{
- return $this->paymentDue;
+ return $this->totalPaymentDue;
}
/**
- * @param DateTime|null $paymentDue
+ * @param \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string $totalPaymentDue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentDue($paymentDue)
+ public function setTotalPaymentDue($totalPaymentDue)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
];
- $paymentDue = self::checkTypes($paymentDue, $types);
+ $totalPaymentDue = self::checkTypes($totalPaymentDue, $types);
- $this->paymentDue = $paymentDue;
+ $this->totalPaymentDue = $totalPaymentDue;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null
+ * @return \OpenActive\Models\SchemaOrg\Order|string
*/
- public function getPaymentMethod()
+ public function getReferencesOrder()
{
- return $this->paymentMethod;
+ return $this->referencesOrder;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod
+ * @param \OpenActive\Models\SchemaOrg\Order|string $referencesOrder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentMethod($paymentMethod)
+ public function setReferencesOrder($referencesOrder)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\PaymentMethod",
- "null",
+ "\OpenActive\Models\SchemaOrg\Order",
+ "string",
];
- $paymentMethod = self::checkTypes($paymentMethod, $types);
+ $referencesOrder = self::checkTypes($referencesOrder, $types);
- $this->paymentMethod = $paymentMethod;
+ $this->referencesOrder = $referencesOrder;
}
}
diff --git a/src/Models/SchemaOrg/ItemList.php b/src/Models/SchemaOrg/ItemList.php
index 358f73ce..80631083 100644
--- a/src/Models/SchemaOrg/ItemList.php
+++ b/src/Models/SchemaOrg/ItemList.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "itemListOrder" => "itemListOrder",
"numberOfItems" => "numberOfItems",
"itemListElement" => "itemListElement",
- "itemListOrder" => "itemListOrder",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * Type of ordering (e.g. Ascending, Descending, Unordered).
+ *
+ *
+ * @var string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
+ */
+ protected $itemListOrder;
+
/**
* The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list.
*
@@ -37,17 +45,35 @@ public static function fieldList() {
* For itemListElement values, you can use simple strings (e.g. "Peter", "Paul", "Mary"), existing entities, or use ListItem.\n\nText values are best if the elements in the list are plain strings. Existing entities are best for a simple, unordered list of existing things in your data. ListItem is used with ordered lists when you want to provide additional context about the element in that list or when the same item might be in different places in different lists.\n\nNote: The order of elements in your mark-up is not sufficient for indicating the order or elements. Use ListItem with a 'position' property in such cases.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\ListItem
*/
protected $itemListElement;
/**
- * Type of ordering (e.g. Ascending, Descending, Unordered).
- *
- *
- * @var string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
+ * @return string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
*/
- protected $itemListOrder;
+ public function getItemListOrder()
+ {
+ return $this->itemListOrder;
+ }
+
+ /**
+ * @param string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null $itemListOrder
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setItemListOrder($itemListOrder)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Enums\SchemaOrg\ItemListOrderType",
+ "null",
+ ];
+
+ $itemListOrder = self::checkTypes($itemListOrder, $types);
+
+ $this->itemListOrder = $itemListOrder;
+ }
/**
* @return int|null
@@ -75,7 +101,7 @@ public function setNumberOfItems($numberOfItems)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\ListItem
*/
public function getItemListElement()
{
@@ -83,7 +109,7 @@ public function getItemListElement()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string $itemListElement
+ * @param \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\ListItem $itemListElement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -91,8 +117,8 @@ public function setItemListElement($itemListElement)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\ListItem",
"string",
+ "\OpenActive\Models\SchemaOrg\ListItem",
];
$itemListElement = self::checkTypes($itemListElement, $types);
@@ -100,30 +126,4 @@ public function setItemListElement($itemListElement)
$this->itemListElement = $itemListElement;
}
- /**
- * @return string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
- */
- public function getItemListOrder()
- {
- return $this->itemListOrder;
- }
-
- /**
- * @param string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null $itemListOrder
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setItemListOrder($itemListOrder)
- {
- $types = [
- "string",
- "\OpenActive\Enums\SchemaOrg\ItemListOrderType",
- "null",
- ];
-
- $itemListOrder = self::checkTypes($itemListOrder, $types);
-
- $this->itemListOrder = $itemListOrder;
- }
-
}
diff --git a/src/Models/SchemaOrg/JobPosting.php b/src/Models/SchemaOrg/JobPosting.php
index ae041535..57ccc7a4 100644
--- a/src/Models/SchemaOrg/JobPosting.php
+++ b/src/Models/SchemaOrg/JobPosting.php
@@ -18,42 +18,42 @@ public static function getType()
public static function fieldList() {
$fields = [
"title" => "title",
- "employerOverview" => "employerOverview",
+ "jobLocation" => "jobLocation",
+ "applicantLocationRequirements" => "applicantLocationRequirements",
+ "eligibilityToWorkRequirement" => "eligibilityToWorkRequirement",
+ "totalJobOpenings" => "totalJobOpenings",
+ "datePosted" => "datePosted",
+ "workHours" => "workHours",
+ "baseSalary" => "baseSalary",
"estimatedSalary" => "estimatedSalary",
+ "experienceInPlaceOfEducation" => "experienceInPlaceOfEducation",
"jobLocationType" => "jobLocationType",
- "responsibilities" => "responsibilities",
- "jobLocation" => "jobLocation",
- "physicalRequirement" => "physicalRequirement",
- "incentives" => "incentives",
+ "industry" => "industry",
"directApply" => "directApply",
+ "validThrough" => "validThrough",
+ "hiringOrganization" => "hiringOrganization",
+ "salaryCurrency" => "salaryCurrency",
"sensoryRequirement" => "sensoryRequirement",
- "applicantLocationRequirements" => "applicantLocationRequirements",
- "workHours" => "workHours",
- "jobStartDate" => "jobStartDate",
- "employmentType" => "employmentType",
- "specialCommitments" => "specialCommitments",
- "applicationContact" => "applicationContact",
"incentiveCompensation" => "incentiveCompensation",
- "relevantOccupation" => "relevantOccupation",
- "totalJobOpenings" => "totalJobOpenings",
- "experienceRequirements" => "experienceRequirements",
- "jobBenefits" => "jobBenefits",
- "salaryCurrency" => "salaryCurrency",
- "experienceInPlaceOfEducation" => "experienceInPlaceOfEducation",
+ "incentives" => "incentives",
"securityClearanceRequirement" => "securityClearanceRequirement",
- "eligibilityToWorkRequirement" => "eligibilityToWorkRequirement",
- "educationRequirements" => "educationRequirements",
+ "jobBenefits" => "jobBenefits",
+ "specialCommitments" => "specialCommitments",
+ "experienceRequirements" => "experienceRequirements",
+ "occupationalCategory" => "occupationalCategory",
+ "qualifications" => "qualifications",
+ "employmentType" => "employmentType",
+ "employerOverview" => "employerOverview",
"benefits" => "benefits",
- "industry" => "industry",
- "baseSalary" => "baseSalary",
- "datePosted" => "datePosted",
"skills" => "skills",
- "hiringOrganization" => "hiringOrganization",
+ "physicalRequirement" => "physicalRequirement",
"jobImmediateStart" => "jobImmediateStart",
- "validThrough" => "validThrough",
+ "educationRequirements" => "educationRequirements",
+ "responsibilities" => "responsibilities",
+ "jobStartDate" => "jobStartDate",
+ "applicationContact" => "applicationContact",
"employmentUnit" => "employmentUnit",
- "qualifications" => "qualifications",
- "occupationalCategory" => "occupationalCategory",
+ "relevantOccupation" => "relevantOccupation",
];
return array_merge(parent::fieldList(), $fields);
@@ -68,124 +68,132 @@ public static function fieldList() {
protected $title;
/**
- * A description of the employer, career opportunities and work environment for this position.
+ * A (typically single) geographic location associated with the job position.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $employerOverview;
+ protected $jobLocation;
/**
- * An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value.
+ * The location(s) applicants can apply from. This is usually used for telecommuting jobs where the applicant does not need to be in a physical office. Note: This should not be used for citizenship or work visa requirements.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $estimatedSalary;
+ protected $applicantLocationRequirements;
/**
- * A description of the job location (e.g TELECOMMUTE for telecommute jobs).
+ * The legal requirements such as citizenship, visa and other documentation required for an applicant to this job.
*
*
* @var string
*/
- protected $jobLocationType;
+ protected $eligibilityToWorkRequirement;
/**
- * Responsibilities associated with this role or Occupation.
+ * The number of positions open for this job posting. Use a positive integer. Do not use if the number of positions is unclear or not known.
*
*
- * @var string
+ * @var int|null
*/
- protected $responsibilities;
+ protected $totalJobOpenings;
/**
- * A (typically single) geographic location associated with the job position.
+ * Publication date of an online listing.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var Date|DateTime|null
*/
- protected $jobLocation;
+ protected $datePosted;
/**
- * A description of the types of physical activity associated with the job. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term.
+ * The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var string
*/
- protected $physicalRequirement;
+ protected $workHours;
/**
- * Description of bonus and commission compensation aspects of the job.
+ * The base salary of the job or of an employee in an EmployeeRole.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null
*/
- protected $incentives;
+ protected $baseSalary;
/**
- * Indicates whether an [[url]] that is associated with a [[JobPosting]] enables direct application for the job, via the posting website. A job posting is considered to have directApply of [[True]] if an application process for the specified job can be directly initiated via the url(s) given (noting that e.g. multiple internet domains might nevertheless be involved at an implementation level). A value of [[False]] is appropriate if there is no clear path to applying directly online for the specified job, navigating directly from the JobPosting url(s) supplied.
+ * An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null
+ */
+ protected $estimatedSalary;
+
+ /**
+ * Indicates whether a [[JobPosting]] will accept experience (as indicated by [[OccupationalExperienceRequirements]]) in place of its formal educational qualifications (as indicated by [[educationRequirements]]). If true, indicates that satisfying one of these requirements is sufficient.
*
*
* @var bool|null
*/
- protected $directApply;
+ protected $experienceInPlaceOfEducation;
/**
- * A description of any sensory requirements and levels necessary to function on the job, including hearing and vision. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term.
+ * A description of the job location (e.g. TELECOMMUTE for telecommute jobs).
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $sensoryRequirement;
+ protected $jobLocationType;
/**
- * The location(s) applicants can apply from. This is usually used for telecommuting jobs where the applicant does not need to be in a physical office. Note: This should not be used for citizenship or work visa requirements.
+ * The industry associated with the job position.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $applicantLocationRequirements;
+ protected $industry;
/**
- * The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm).
+ * Indicates whether an [[url]] that is associated with a [[JobPosting]] enables direct application for the job, via the posting website. A job posting is considered to have directApply of [[True]] if an application process for the specified job can be directly initiated via the url(s) given (noting that e.g. multiple internet domains might nevertheless be involved at an implementation level). A value of [[False]] is appropriate if there is no clear path to applying directly online for the specified job, navigating directly from the JobPosting url(s) supplied.
*
*
- * @var string
+ * @var bool|null
*/
- protected $workHours;
+ protected $directApply;
/**
- * The date on which a successful applicant for this job would be expected to start work. Choose a specific date in the future or use the jobImmediateStart property to indicate the position is to be filled as soon as possible.
+ * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
*
*
- * @var Date|string|null
+ * @var Date|DateTime|null
*/
- protected $jobStartDate;
+ protected $validThrough;
/**
- * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship).
+ * Organization or Person offering the job position.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $employmentType;
+ protected $hiringOrganization;
/**
- * Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc.
+ * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)) used for the main salary information in this job posting or for this employee.
*
*
* @var string
*/
- protected $specialCommitments;
+ protected $salaryCurrency;
/**
- * Contact details for further information relevant to this job posting.
+ * A description of any sensory requirements and levels necessary to function on the job, including hearing and vision. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $applicationContact;
+ protected $sensoryRequirement;
/**
* Description of bonus and commission compensation aspects of the job.
@@ -196,76 +204,77 @@ public static function fieldList() {
protected $incentiveCompensation;
/**
- * The Occupation for the JobPosting.
+ * Description of bonus and commission compensation aspects of the job.
*
*
- * @var \OpenActive\Models\SchemaOrg\Occupation|string
+ * @var string
*/
- protected $relevantOccupation;
+ protected $incentives;
/**
- * The number of positions open for this job posting. Use a positive integer. Do not use if the number of positions is unclear or not known.
+ * A description of any security clearance requirements of the job.
*
*
- * @var int|null
+ * @var string
*/
- protected $totalJobOpenings;
+ protected $securityClearanceRequirement;
/**
- * Description of skills and experience needed for the position or Occupation.
+ * Description of benefits associated with the job.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @var string
*/
- protected $experienceRequirements;
+ protected $jobBenefits;
/**
- * Description of benefits associated with the job.
+ * Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc.
*
*
* @var string
*/
- protected $jobBenefits;
+ protected $specialCommitments;
/**
- * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) ) used for the main salary information in this job posting or for this employee.
+ * Description of skills and experience needed for the position or Occupation.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
*/
- protected $salaryCurrency;
+ protected $experienceRequirements;
/**
- * Indicates whether a [[JobPosting]] will accept experience (as indicated by [[OccupationalExperienceRequirements]]) in place of its formal educational qualifications (as indicated by [[educationRequirements]]). If true, indicates that satisfying one of these requirements is sufficient.
+ * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
+ * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
*
*
- * @var bool|null
+ * @var string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- protected $experienceInPlaceOfEducation;
+ protected $occupationalCategory;
/**
- * A description of any security clearance requirements of the job.
+ * Specific qualifications required for this role or Occupation.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- protected $securityClearanceRequirement;
+ protected $qualifications;
/**
- * The legal requirements such as citizenship, visa and other documentation required for an applicant to this job.
+ * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship).
*
*
* @var string
*/
- protected $eligibilityToWorkRequirement;
+ protected $employmentType;
/**
- * Educational background needed for the position or Occupation.
+ * A description of the employer, career opportunities and work environment for this position.
*
*
- * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var string
*/
- protected $educationRequirements;
+ protected $employerOverview;
/**
* Description of benefits associated with the job.
@@ -276,60 +285,60 @@ public static function fieldList() {
protected $benefits;
/**
- * The industry associated with the job position.
+ * A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $industry;
+ protected $skills;
/**
- * The base salary of the job or of an employee in an EmployeeRole.
+ * A description of the types of physical activity associated with the job. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $baseSalary;
+ protected $physicalRequirement;
/**
- * Publication date of an online listing.
+ * An indicator as to whether a position is available for an immediate start.
*
*
- * @var Date|DateTime|null
+ * @var bool|null
*/
- protected $datePosted;
+ protected $jobImmediateStart;
/**
- * A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation.
+ * Educational background needed for the position or Occupation.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $skills;
+ protected $educationRequirements;
/**
- * Organization offering the job position.
+ * Responsibilities associated with this role or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $hiringOrganization;
+ protected $responsibilities;
/**
- * An indicator as to whether a position is available for an immediate start.
+ * The date on which a successful applicant for this job would be expected to start work. Choose a specific date in the future or use the jobImmediateStart property to indicate the position is to be filled as soon as possible.
*
*
- * @var bool|null
+ * @var Date|string|null
*/
- protected $jobImmediateStart;
+ protected $jobStartDate;
/**
- * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
+ * Contact details for further information relevant to this job posting.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $validThrough;
+ protected $applicationContact;
/**
* Indicates the department, unit and/or facility where the employee reports and/or in which the job is to be performed.
@@ -340,21 +349,12 @@ public static function fieldList() {
protected $employmentUnit;
/**
- * Specific qualifications required for this role or Occupation.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
- */
- protected $qualifications;
-
- /**
- * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
- * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
+ * The Occupation for the JobPosting.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var \OpenActive\Models\SchemaOrg\Occupation|string
*/
- protected $occupationalCategory;
+ protected $relevantOccupation;
/**
* @return string
@@ -381,375 +381,408 @@ public function setTitle($title)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getEmployerOverview()
+ public function getJobLocation()
{
- return $this->employerOverview;
+ return $this->jobLocation;
}
/**
- * @param string $employerOverview
+ * @param \OpenActive\Models\SchemaOrg\Place|string $jobLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmployerOverview($employerOverview)
+ public function setJobLocation($jobLocation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $employerOverview = self::checkTypes($employerOverview, $types);
+ $jobLocation = self::checkTypes($jobLocation, $types);
- $this->employerOverview = $employerOverview;
+ $this->jobLocation = $jobLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getEstimatedSalary()
+ public function getApplicantLocationRequirements()
+ {
+ return $this->applicantLocationRequirements;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicantLocationRequirements
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setApplicantLocationRequirements($applicantLocationRequirements)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "string",
+ ];
+
+ $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types);
+
+ $this->applicantLocationRequirements = $applicantLocationRequirements;
+ }
+
+ /**
+ * @return string
+ */
+ public function getEligibilityToWorkRequirement()
{
- return $this->estimatedSalary;
+ return $this->eligibilityToWorkRequirement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary
+ * @param string $eligibilityToWorkRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEstimatedSalary($estimatedSalary)
+ public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "Number",
- "null",
];
- $estimatedSalary = self::checkTypes($estimatedSalary, $types);
+ $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types);
- $this->estimatedSalary = $estimatedSalary;
+ $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement;
}
/**
- * @return string
+ * @return int|null
*/
- public function getJobLocationType()
+ public function getTotalJobOpenings()
{
- return $this->jobLocationType;
+ return $this->totalJobOpenings;
}
/**
- * @param string $jobLocationType
+ * @param int|null $totalJobOpenings
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobLocationType($jobLocationType)
+ public function setTotalJobOpenings($totalJobOpenings)
{
$types = [
- "string",
+ "int",
+ "null",
];
- $jobLocationType = self::checkTypes($jobLocationType, $types);
+ $totalJobOpenings = self::checkTypes($totalJobOpenings, $types);
- $this->jobLocationType = $jobLocationType;
+ $this->totalJobOpenings = $totalJobOpenings;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getResponsibilities()
+ public function getDatePosted()
{
- return $this->responsibilities;
+ return $this->datePosted;
}
/**
- * @param string $responsibilities
+ * @param Date|DateTime|null $datePosted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setResponsibilities($responsibilities)
+ public function setDatePosted($datePosted)
{
$types = [
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $responsibilities = self::checkTypes($responsibilities, $types);
+ $datePosted = self::checkTypes($datePosted, $types);
- $this->responsibilities = $responsibilities;
+ $this->datePosted = $datePosted;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string
*/
- public function getJobLocation()
+ public function getWorkHours()
{
- return $this->jobLocation;
+ return $this->workHours;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $jobLocation
+ * @param string $workHours
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobLocation($jobLocation)
+ public function setWorkHours($workHours)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $jobLocation = self::checkTypes($jobLocation, $types);
+ $workHours = self::checkTypes($workHours, $types);
- $this->jobLocation = $jobLocation;
+ $this->workHours = $workHours;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null
*/
- public function getPhysicalRequirement()
+ public function getBaseSalary()
{
- return $this->physicalRequirement;
+ return $this->baseSalary;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $physicalRequirement
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null $baseSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPhysicalRequirement($physicalRequirement)
+ public function setBaseSalary($baseSalary)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "null",
];
- $physicalRequirement = self::checkTypes($physicalRequirement, $types);
+ $baseSalary = self::checkTypes($baseSalary, $types);
- $this->physicalRequirement = $physicalRequirement;
+ $this->baseSalary = $baseSalary;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null
*/
- public function getIncentives()
+ public function getEstimatedSalary()
{
- return $this->incentives;
+ return $this->estimatedSalary;
}
/**
- * @param string $incentives
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null $estimatedSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncentives($incentives)
+ public function setEstimatedSalary($estimatedSalary)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
+ "Number",
+ "null",
];
- $incentives = self::checkTypes($incentives, $types);
+ $estimatedSalary = self::checkTypes($estimatedSalary, $types);
- $this->incentives = $incentives;
+ $this->estimatedSalary = $estimatedSalary;
}
/**
* @return bool|null
*/
- public function getDirectApply()
+ public function getExperienceInPlaceOfEducation()
{
- return $this->directApply;
+ return $this->experienceInPlaceOfEducation;
}
/**
- * @param bool|null $directApply
+ * @param bool|null $experienceInPlaceOfEducation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirectApply($directApply)
+ public function setExperienceInPlaceOfEducation($experienceInPlaceOfEducation)
{
$types = [
"bool",
"null",
];
- $directApply = self::checkTypes($directApply, $types);
+ $experienceInPlaceOfEducation = self::checkTypes($experienceInPlaceOfEducation, $types);
- $this->directApply = $directApply;
+ $this->experienceInPlaceOfEducation = $experienceInPlaceOfEducation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getSensoryRequirement()
+ public function getJobLocationType()
{
- return $this->sensoryRequirement;
+ return $this->jobLocationType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $sensoryRequirement
+ * @param string $jobLocationType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSensoryRequirement($sensoryRequirement)
+ public function setJobLocationType($jobLocationType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $sensoryRequirement = self::checkTypes($sensoryRequirement, $types);
+ $jobLocationType = self::checkTypes($jobLocationType, $types);
- $this->sensoryRequirement = $sensoryRequirement;
+ $this->jobLocationType = $jobLocationType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getApplicantLocationRequirements()
+ public function getIndustry()
{
- return $this->applicantLocationRequirements;
+ return $this->industry;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicantLocationRequirements
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $industry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicantLocationRequirements($applicantLocationRequirements)
+ public function setIndustry($industry)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types);
+ $industry = self::checkTypes($industry, $types);
- $this->applicantLocationRequirements = $applicantLocationRequirements;
+ $this->industry = $industry;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getWorkHours()
+ public function getDirectApply()
{
- return $this->workHours;
+ return $this->directApply;
}
/**
- * @param string $workHours
+ * @param bool|null $directApply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkHours($workHours)
+ public function setDirectApply($directApply)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $workHours = self::checkTypes($workHours, $types);
+ $directApply = self::checkTypes($directApply, $types);
- $this->workHours = $workHours;
+ $this->directApply = $directApply;
}
/**
- * @return Date|string|null
+ * @return Date|DateTime|null
*/
- public function getJobStartDate()
+ public function getValidThrough()
{
- return $this->jobStartDate;
+ return $this->validThrough;
}
/**
- * @param Date|string|null $jobStartDate
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobStartDate($jobStartDate)
+ public function setValidThrough($validThrough)
{
$types = [
"Date",
- "string",
+ "DateTime",
"null",
];
- $jobStartDate = self::checkTypes($jobStartDate, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->jobStartDate = $jobStartDate;
+ $this->validThrough = $validThrough;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEmploymentType()
+ public function getHiringOrganization()
{
- return $this->employmentType;
+ return $this->hiringOrganization;
}
/**
- * @param string $employmentType
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $hiringOrganization
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmploymentType($employmentType)
+ public function setHiringOrganization($hiringOrganization)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $employmentType = self::checkTypes($employmentType, $types);
+ $hiringOrganization = self::checkTypes($hiringOrganization, $types);
- $this->employmentType = $employmentType;
+ $this->hiringOrganization = $hiringOrganization;
}
/**
* @return string
*/
- public function getSpecialCommitments()
+ public function getSalaryCurrency()
{
- return $this->specialCommitments;
+ return $this->salaryCurrency;
}
/**
- * @param string $specialCommitments
+ * @param string $salaryCurrency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSpecialCommitments($specialCommitments)
+ public function setSalaryCurrency($salaryCurrency)
{
$types = [
"string",
];
- $specialCommitments = self::checkTypes($specialCommitments, $types);
+ $salaryCurrency = self::checkTypes($salaryCurrency, $types);
- $this->specialCommitments = $specialCommitments;
+ $this->salaryCurrency = $salaryCurrency;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getApplicationContact()
+ public function getSensoryRequirement()
{
- return $this->applicationContact;
+ return $this->sensoryRequirement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $applicationContact
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $sensoryRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationContact($applicationContact)
+ public function setSensoryRequirement($sensoryRequirement)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $applicationContact = self::checkTypes($applicationContact, $types);
+ $sensoryRequirement = self::checkTypes($sensoryRequirement, $types);
- $this->applicationContact = $applicationContact;
+ $this->sensoryRequirement = $sensoryRequirement;
}
/**
@@ -777,78 +810,51 @@ public function setIncentiveCompensation($incentiveCompensation)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Occupation|string
+ * @return string
*/
- public function getRelevantOccupation()
+ public function getIncentives()
{
- return $this->relevantOccupation;
+ return $this->incentives;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Occupation|string $relevantOccupation
+ * @param string $incentives
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRelevantOccupation($relevantOccupation)
+ public function setIncentives($incentives)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Occupation",
"string",
];
- $relevantOccupation = self::checkTypes($relevantOccupation, $types);
-
- $this->relevantOccupation = $relevantOccupation;
- }
-
- /**
- * @return int|null
- */
- public function getTotalJobOpenings()
- {
- return $this->totalJobOpenings;
- }
-
- /**
- * @param int|null $totalJobOpenings
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setTotalJobOpenings($totalJobOpenings)
- {
- $types = [
- "int",
- "null",
- ];
-
- $totalJobOpenings = self::checkTypes($totalJobOpenings, $types);
+ $incentives = self::checkTypes($incentives, $types);
- $this->totalJobOpenings = $totalJobOpenings;
+ $this->incentives = $incentives;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @return string
*/
- public function getExperienceRequirements()
+ public function getSecurityClearanceRequirement()
{
- return $this->experienceRequirements;
+ return $this->securityClearanceRequirement;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements
+ * @param string $securityClearanceRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExperienceRequirements($experienceRequirements)
+ public function setSecurityClearanceRequirement($securityClearanceRequirement)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
];
- $experienceRequirements = self::checkTypes($experienceRequirements, $types);
+ $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types);
- $this->experienceRequirements = $experienceRequirements;
+ $this->securityClearanceRequirement = $securityClearanceRequirement;
}
/**
@@ -878,402 +884,397 @@ public function setJobBenefits($jobBenefits)
/**
* @return string
*/
- public function getSalaryCurrency()
+ public function getSpecialCommitments()
{
- return $this->salaryCurrency;
+ return $this->specialCommitments;
}
/**
- * @param string $salaryCurrency
+ * @param string $specialCommitments
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSalaryCurrency($salaryCurrency)
+ public function setSpecialCommitments($specialCommitments)
{
$types = [
"string",
];
- $salaryCurrency = self::checkTypes($salaryCurrency, $types);
+ $specialCommitments = self::checkTypes($specialCommitments, $types);
- $this->salaryCurrency = $salaryCurrency;
+ $this->specialCommitments = $specialCommitments;
}
/**
- * @return bool|null
+ * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
*/
- public function getExperienceInPlaceOfEducation()
+ public function getExperienceRequirements()
{
- return $this->experienceInPlaceOfEducation;
+ return $this->experienceRequirements;
}
/**
- * @param bool|null $experienceInPlaceOfEducation
+ * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExperienceInPlaceOfEducation($experienceInPlaceOfEducation)
+ public function setExperienceRequirements($experienceRequirements)
{
$types = [
- "bool",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
];
- $experienceInPlaceOfEducation = self::checkTypes($experienceInPlaceOfEducation, $types);
+ $experienceRequirements = self::checkTypes($experienceRequirements, $types);
- $this->experienceInPlaceOfEducation = $experienceInPlaceOfEducation;
+ $this->experienceRequirements = $experienceRequirements;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- public function getSecurityClearanceRequirement()
+ public function getOccupationalCategory()
{
- return $this->securityClearanceRequirement;
+ return $this->occupationalCategory;
}
/**
- * @param string $securityClearanceRequirement
+ * @param string|\OpenActive\Models\SchemaOrg\CategoryCode $occupationalCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSecurityClearanceRequirement($securityClearanceRequirement)
+ public function setOccupationalCategory($occupationalCategory)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
];
- $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types);
+ $occupationalCategory = self::checkTypes($occupationalCategory, $types);
- $this->securityClearanceRequirement = $securityClearanceRequirement;
+ $this->occupationalCategory = $occupationalCategory;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- public function getEligibilityToWorkRequirement()
+ public function getQualifications()
{
- return $this->eligibilityToWorkRequirement;
+ return $this->qualifications;
}
/**
- * @param string $eligibilityToWorkRequirement
+ * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $qualifications
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement)
+ public function setQualifications($qualifications)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
];
- $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types);
+ $qualifications = self::checkTypes($qualifications, $types);
- $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement;
+ $this->qualifications = $qualifications;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return string
*/
- public function getEducationRequirements()
+ public function getEmploymentType()
{
- return $this->educationRequirements;
+ return $this->employmentType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements
+ * @param string $employmentType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationRequirements($educationRequirements)
+ public function setEmploymentType($employmentType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
];
- $educationRequirements = self::checkTypes($educationRequirements, $types);
+ $employmentType = self::checkTypes($employmentType, $types);
- $this->educationRequirements = $educationRequirements;
+ $this->employmentType = $employmentType;
}
/**
* @return string
*/
- public function getBenefits()
+ public function getEmployerOverview()
{
- return $this->benefits;
+ return $this->employerOverview;
}
/**
- * @param string $benefits
+ * @param string $employerOverview
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBenefits($benefits)
+ public function setEmployerOverview($employerOverview)
{
$types = [
"string",
];
- $benefits = self::checkTypes($benefits, $types);
+ $employerOverview = self::checkTypes($employerOverview, $types);
- $this->benefits = $benefits;
+ $this->employerOverview = $employerOverview;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getIndustry()
+ public function getBenefits()
{
- return $this->industry;
+ return $this->benefits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $industry
+ * @param string $benefits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIndustry($industry)
+ public function setBenefits($benefits)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $industry = self::checkTypes($industry, $types);
+ $benefits = self::checkTypes($benefits, $types);
- $this->industry = $industry;
+ $this->benefits = $benefits;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getBaseSalary()
+ public function getSkills()
{
- return $this->baseSalary;
+ return $this->skills;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBaseSalary($baseSalary)
+ public function setSkills($skills)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $baseSalary = self::checkTypes($baseSalary, $types);
+ $skills = self::checkTypes($skills, $types);
- $this->baseSalary = $baseSalary;
+ $this->skills = $skills;
}
/**
- * @return Date|DateTime|null
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getDatePosted()
+ public function getPhysicalRequirement()
{
- return $this->datePosted;
+ return $this->physicalRequirement;
}
/**
- * @param Date|DateTime|null $datePosted
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $physicalRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDatePosted($datePosted)
+ public function setPhysicalRequirement($physicalRequirement)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $datePosted = self::checkTypes($datePosted, $types);
+ $physicalRequirement = self::checkTypes($physicalRequirement, $types);
- $this->datePosted = $datePosted;
+ $this->physicalRequirement = $physicalRequirement;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return bool|null
*/
- public function getSkills()
+ public function getJobImmediateStart()
{
- return $this->skills;
+ return $this->jobImmediateStart;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills
+ * @param bool|null $jobImmediateStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSkills($skills)
+ public function setJobImmediateStart($jobImmediateStart)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "bool",
+ "null",
];
- $skills = self::checkTypes($skills, $types);
+ $jobImmediateStart = self::checkTypes($jobImmediateStart, $types);
- $this->skills = $skills;
+ $this->jobImmediateStart = $jobImmediateStart;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getHiringOrganization()
+ public function getEducationRequirements()
{
- return $this->hiringOrganization;
+ return $this->educationRequirements;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $hiringOrganization
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHiringOrganization($hiringOrganization)
+ public function setEducationRequirements($educationRequirements)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $hiringOrganization = self::checkTypes($hiringOrganization, $types);
+ $educationRequirements = self::checkTypes($educationRequirements, $types);
- $this->hiringOrganization = $hiringOrganization;
+ $this->educationRequirements = $educationRequirements;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getJobImmediateStart()
+ public function getResponsibilities()
{
- return $this->jobImmediateStart;
+ return $this->responsibilities;
}
/**
- * @param bool|null $jobImmediateStart
+ * @param string $responsibilities
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobImmediateStart($jobImmediateStart)
+ public function setResponsibilities($responsibilities)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $jobImmediateStart = self::checkTypes($jobImmediateStart, $types);
+ $responsibilities = self::checkTypes($responsibilities, $types);
- $this->jobImmediateStart = $jobImmediateStart;
+ $this->responsibilities = $responsibilities;
}
/**
- * @return Date|DateTime|null
+ * @return Date|string|null
*/
- public function getValidThrough()
+ public function getJobStartDate()
{
- return $this->validThrough;
+ return $this->jobStartDate;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @param Date|string|null $jobStartDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidThrough($validThrough)
+ public function setJobStartDate($jobStartDate)
{
$types = [
"Date",
- "DateTime",
+ "string",
"null",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $jobStartDate = self::checkTypes($jobStartDate, $types);
- $this->validThrough = $validThrough;
+ $this->jobStartDate = $jobStartDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getEmploymentUnit()
+ public function getApplicationContact()
{
- return $this->employmentUnit;
+ return $this->applicationContact;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $employmentUnit
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $applicationContact
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmploymentUnit($employmentUnit)
+ public function setApplicationContact($applicationContact)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $employmentUnit = self::checkTypes($employmentUnit, $types);
+ $applicationContact = self::checkTypes($applicationContact, $types);
- $this->employmentUnit = $employmentUnit;
+ $this->applicationContact = $applicationContact;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getQualifications()
+ public function getEmploymentUnit()
{
- return $this->qualifications;
+ return $this->employmentUnit;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $employmentUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setQualifications($qualifications)
+ public function setEmploymentUnit($employmentUnit)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $qualifications = self::checkTypes($qualifications, $types);
+ $employmentUnit = self::checkTypes($employmentUnit, $types);
- $this->qualifications = $qualifications;
+ $this->employmentUnit = $employmentUnit;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return \OpenActive\Models\SchemaOrg\Occupation|string
*/
- public function getOccupationalCategory()
+ public function getRelevantOccupation()
{
- return $this->occupationalCategory;
+ return $this->relevantOccupation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param \OpenActive\Models\SchemaOrg\Occupation|string $relevantOccupation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setRelevantOccupation($relevantOccupation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "\OpenActive\Models\SchemaOrg\Occupation",
"string",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $relevantOccupation = self::checkTypes($relevantOccupation, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->relevantOccupation = $relevantOccupation;
}
}
diff --git a/src/Models/SchemaOrg/Joint.php b/src/Models/SchemaOrg/Joint.php
index c7958355..a028c3dc 100644
--- a/src/Models/SchemaOrg/Joint.php
+++ b/src/Models/SchemaOrg/Joint.php
@@ -17,109 +17,109 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "functionalClass" => "functionalClass",
"structuralClass" => "structuralClass",
"biomechnicalClass" => "biomechnicalClass",
- "functionalClass" => "functionalClass",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The name given to how bone physically connects to each other.
+ * The degree of mobility the joint allows.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $structuralClass;
+ protected $functionalClass;
/**
- * The biomechanical properties of the bone.
+ * The name given to how bone physically connects to each other.
*
*
* @var string
*/
- protected $biomechnicalClass;
+ protected $structuralClass;
/**
- * The degree of mobility the joint allows.
+ * The biomechanical properties of the bone.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MedicalEntity
+ * @var string
*/
- protected $functionalClass;
+ protected $biomechnicalClass;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getStructuralClass()
+ public function getFunctionalClass()
{
- return $this->structuralClass;
+ return $this->functionalClass;
}
/**
- * @param string $structuralClass
+ * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $functionalClass
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStructuralClass($structuralClass)
+ public function setFunctionalClass($functionalClass)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $structuralClass = self::checkTypes($structuralClass, $types);
+ $functionalClass = self::checkTypes($functionalClass, $types);
- $this->structuralClass = $structuralClass;
+ $this->functionalClass = $functionalClass;
}
/**
* @return string
*/
- public function getBiomechnicalClass()
+ public function getStructuralClass()
{
- return $this->biomechnicalClass;
+ return $this->structuralClass;
}
/**
- * @param string $biomechnicalClass
+ * @param string $structuralClass
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBiomechnicalClass($biomechnicalClass)
+ public function setStructuralClass($structuralClass)
{
$types = [
"string",
];
- $biomechnicalClass = self::checkTypes($biomechnicalClass, $types);
+ $structuralClass = self::checkTypes($structuralClass, $types);
- $this->biomechnicalClass = $biomechnicalClass;
+ $this->structuralClass = $structuralClass;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MedicalEntity
+ * @return string
*/
- public function getFunctionalClass()
+ public function getBiomechnicalClass()
{
- return $this->functionalClass;
+ return $this->biomechnicalClass;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MedicalEntity $functionalClass
+ * @param string $biomechnicalClass
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunctionalClass($functionalClass)
+ public function setBiomechnicalClass($biomechnicalClass)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
];
- $functionalClass = self::checkTypes($functionalClass, $types);
+ $biomechnicalClass = self::checkTypes($biomechnicalClass, $types);
- $this->functionalClass = $functionalClass;
+ $this->biomechnicalClass = $biomechnicalClass;
}
}
diff --git a/src/Models/SchemaOrg/LearningResource.php b/src/Models/SchemaOrg/LearningResource.php
index c9f5b932..20ea8deb 100644
--- a/src/Models/SchemaOrg/LearningResource.php
+++ b/src/Models/SchemaOrg/LearningResource.php
@@ -17,33 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
- "teaches" => "teaches",
- "educationalLevel" => "educationalLevel",
+ "learningResourceType" => "learningResourceType",
"assesses" => "assesses",
"educationalUse" => "educationalUse",
"educationalAlignment" => "educationalAlignment",
"competencyRequired" => "competencyRequired",
- "learningResourceType" => "learningResourceType",
+ "educationalLevel" => "educationalLevel",
+ "teaches" => "teaches",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.
+ * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
*
*
* @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $teaches;
-
- /**
- * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
- */
- protected $educationalLevel;
+ protected $learningResourceType;
/**
* The item being described is intended to assess the competency or learning outcome defined by the referenced term.
@@ -80,61 +72,44 @@ public static function fieldList() {
protected $competencyRequired;
/**
- * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
+ * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
- */
- protected $learningResourceType;
-
- /**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getTeaches()
- {
- return $this->teaches;
- }
+ protected $educationalLevel;
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function setTeaches($teaches)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
- "string",
- ];
-
- $teaches = self::checkTypes($teaches, $types);
-
- $this->teaches = $teaches;
- }
+ protected $teaches;
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getEducationalLevel()
+ public function getLearningResourceType()
{
- return $this->educationalLevel;
+ return $this->learningResourceType;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalLevel($educationalLevel)
+ public function setLearningResourceType($learningResourceType)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
];
- $educationalLevel = self::checkTypes($educationalLevel, $types);
+ $learningResourceType = self::checkTypes($learningResourceType, $types);
- $this->educationalLevel = $educationalLevel;
+ $this->learningResourceType = $learningResourceType;
}
/**
@@ -237,29 +212,54 @@ public function setCompetencyRequired($competencyRequired)
$this->competencyRequired = $competencyRequired;
}
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ */
+ public function getEducationalLevel()
+ {
+ return $this->educationalLevel;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEducationalLevel($educationalLevel)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ ];
+
+ $educationalLevel = self::checkTypes($educationalLevel, $types);
+
+ $this->educationalLevel = $educationalLevel;
+ }
+
/**
* @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getLearningResourceType()
+ public function getTeaches()
{
- return $this->learningResourceType;
+ return $this->teaches;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLearningResourceType($learningResourceType)
+ public function setTeaches($teaches)
{
$types = [
"\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $learningResourceType = self::checkTypes($learningResourceType, $types);
+ $teaches = self::checkTypes($teaches, $types);
- $this->learningResourceType = $learningResourceType;
+ $this->teaches = $teaches;
}
}
diff --git a/src/Models/SchemaOrg/Legislation.php b/src/Models/SchemaOrg/Legislation.php
index 8567e99e..3a814fee 100644
--- a/src/Models/SchemaOrg/Legislation.php
+++ b/src/Models/SchemaOrg/Legislation.php
@@ -17,31 +17,31 @@ public static function getType()
public static function fieldList() {
$fields = [
- "legislationTransposes" => "legislationTransposes",
+ "legislationPassedBy" => "legislationPassedBy",
"legislationLegalForce" => "legislationLegalForce",
+ "legislationChanges" => "legislationChanges",
+ "legislationJurisdiction" => "legislationJurisdiction",
"legislationType" => "legislationType",
"jurisdiction" => "jurisdiction",
+ "legislationDateVersion" => "legislationDateVersion",
+ "legislationTransposes" => "legislationTransposes",
+ "legislationApplies" => "legislationApplies",
"legislationIdentifier" => "legislationIdentifier",
- "legislationChanges" => "legislationChanges",
"legislationResponsible" => "legislationResponsible",
- "legislationJurisdiction" => "legislationJurisdiction",
- "legislationDate" => "legislationDate",
- "legislationPassedBy" => "legislationPassedBy",
"legislationConsolidates" => "legislationConsolidates",
- "legislationApplies" => "legislationApplies",
- "legislationDateVersion" => "legislationDateVersion",
+ "legislationDate" => "legislationDate",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates that this legislation (or part of legislation) fulfills the objectives set by another legislation, by passing appropriate implementation measures. Typically, some legislations of European Union's member states or regions transpose European Directives. This indicates a legally binding link between the 2 legislations.
+ * The person or organization that originally passed or made the law: typically parliament (for primary legislation) or government (for secondary legislation). This indicates the "legal author" of the law, as opposed to its physical author.
*
*
- * @var \OpenActive\Models\SchemaOrg\Legislation|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $legislationTransposes;
+ protected $legislationPassedBy;
/**
* Whether the legislation is currently in force, not in force, or partially in force.
@@ -52,116 +52,117 @@ public static function fieldList() {
protected $legislationLegalForce;
/**
- * The type of the legislation. Examples of values are "law", "act", "directive", "decree", "regulation", "statutory instrument", "loi organique", "règlement grand-ducal", etc., depending on the country.
+ * Another legislation that this legislation changes. This encompasses the notions of amendment, replacement, correction, repeal, or other types of change. This may be a direct change (textual or non-textual amendment) or a consequential or indirect change. The property is to be used to express the existence of a change relationship between two acts rather than the existence of a consolidated version of the text that shows the result of the change. For consolidation relationships, use the legislationConsolidates property.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $legislationType;
+ protected $legislationChanges;
/**
- * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.
+ * The jurisdiction from which the legislation originates.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $jurisdiction;
+ protected $legislationJurisdiction;
/**
- * An identifier for the legislation. This can be either a string-based identifier, like the CELEX at EU level or the NOR in France, or a web-based, URL/URI identifier, like an ELI (European Legislation Identifier) or an URN-Lex.
+ * The type of the legislation. Examples of values are "law", "act", "directive", "decree", "regulation", "statutory instrument", "loi organique", "règlement grand-ducal", etc., depending on the country.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- protected $legislationIdentifier;
+ protected $legislationType;
/**
- * Another legislation that this legislation changes. This encompasses the notions of amendment, replacement, correction, repeal, or other types of change. This may be a direct change (textual or non-textual amendment) or a consequential or indirect change. The property is to be used to express the existence of a change relationship between two acts rather than the existence of a consolidated version of the text that shows the result of the change. For consolidation relationships, use the legislationConsolidates property.
+ * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.
*
*
- * @var \OpenActive\Models\SchemaOrg\Legislation|string
+ * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $legislationChanges;
+ protected $jurisdiction;
/**
- * An individual or organization that has some kind of responsibility for the legislation. Typically the ministry who is/was in charge of elaborating the legislation, or the adressee for potential questions about the legislation once it is published.
+ * The point-in-time at which the provided description of the legislation is valid (e.g.: when looking at the law on the 2016-04-07 (= dateVersion), I get the consolidation of 2015-04-12 of the "National Insurance Contributions Act 2015")
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|null
*/
- protected $legislationResponsible;
+ protected $legislationDateVersion;
/**
- * The jurisdiction from which the legislation originates.
+ * Indicates that this legislation (or part of legislation) fulfills the objectives set by another legislation, by passing appropriate implementation measures. Typically, some legislations of European Union's member states or regions transpose European Directives. This indicates a legally binding link between the 2 legislations.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $legislationJurisdiction;
+ protected $legislationTransposes;
/**
- * The date of adoption or signature of the legislation. This is the date at which the text is officially aknowledged to be a legislation, even though it might not even be published or in force.
+ * Indicates that this legislation (or part of a legislation) somehow transfers another legislation in a different legislative context. This is an informative link, and it has no legal value. For legally-binding links of transposition, use the legislationTransposes property. For example an informative consolidated law of a European Union's member state "applies" the consolidated version of the European Directive implemented in it.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $legislationDate;
+ protected $legislationApplies;
/**
- * The person or organization that originally passed or made the law : typically parliament (for primary legislation) or government (for secondary legislation). This indicates the "legal author" of the law, as opposed to its physical author.
+ * An identifier for the legislation. This can be either a string-based identifier, like the CELEX at EU level or the NOR in France, or a web-based, URL/URI identifier, like an ELI (European Legislation Identifier) or an URN-Lex.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $legislationPassedBy;
+ protected $legislationIdentifier;
/**
- * Indicates another legislation taken into account in this consolidated legislation (which is usually the product of an editorial process that revises the legislation). This property should be used multiple times to refer to both the original version or the previous consolidated version, and to the legislations making the change.
+ * An individual or organization that has some kind of responsibility for the legislation. Typically the ministry who is/was in charge of elaborating the legislation, or the adressee for potential questions about the legislation once it is published.
*
*
- * @var \OpenActive\Models\SchemaOrg\Legislation|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $legislationConsolidates;
+ protected $legislationResponsible;
/**
- * Indicates that this legislation (or part of a legislation) somehow transfers another legislation in a different legislative context. This is an informative link, and it has no legal value. For legally-binding links of transposition, use the legislationTransposes property. For example an informative consolidated law of a European Union's member state "applies" the consolidated version of the European Directive implemented in it.
+ * Indicates another legislation taken into account in this consolidated legislation (which is usually the product of an editorial process that revises the legislation). This property should be used multiple times to refer to both the original version or the previous consolidated version, and to the legislations making the change.
*
*
* @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $legislationApplies;
+ protected $legislationConsolidates;
/**
- * The point-in-time at which the provided description of the legislation is valid (e.g. : when looking at the law on the 2016-04-07 (= dateVersion), I get the consolidation of 2015-04-12 of the "National Insurance Contributions Act 2015")
+ * The date of adoption or signature of the legislation. This is the date at which the text is officially aknowledged to be a legislation, even though it might not even be published or in force.
*
*
* @var Date|null
*/
- protected $legislationDateVersion;
+ protected $legislationDate;
/**
- * @return \OpenActive\Models\SchemaOrg\Legislation|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getLegislationTransposes()
+ public function getLegislationPassedBy()
{
- return $this->legislationTransposes;
+ return $this->legislationPassedBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationTransposes
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationPassedBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationTransposes($legislationTransposes)
+ public function setLegislationPassedBy($legislationPassedBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Legislation",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $legislationTransposes = self::checkTypes($legislationTransposes, $types);
+ $legislationPassedBy = self::checkTypes($legislationPassedBy, $types);
- $this->legislationTransposes = $legislationTransposes;
+ $this->legislationPassedBy = $legislationPassedBy;
}
/**
@@ -190,279 +191,278 @@ public function setLegislationLegalForce($legislationLegalForce)
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationType()
+ public function getLegislationChanges()
{
- return $this->legislationType;
+ return $this->legislationChanges;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $legislationType
+ * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationChanges
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationType($legislationType)
+ public function setLegislationChanges($legislationChanges)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "\OpenActive\Models\SchemaOrg\Legislation",
"string",
];
- $legislationType = self::checkTypes($legislationType, $types);
+ $legislationChanges = self::checkTypes($legislationChanges, $types);
- $this->legislationType = $legislationType;
+ $this->legislationChanges = $legislationChanges;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getJurisdiction()
+ public function getLegislationJurisdiction()
{
- return $this->jurisdiction;
+ return $this->legislationJurisdiction;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $legislationJurisdiction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJurisdiction($jurisdiction)
+ public function setLegislationJurisdiction($legislationJurisdiction)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "string",
];
- $jurisdiction = self::checkTypes($jurisdiction, $types);
+ $legislationJurisdiction = self::checkTypes($legislationJurisdiction, $types);
- $this->jurisdiction = $jurisdiction;
+ $this->legislationJurisdiction = $legislationJurisdiction;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- public function getLegislationIdentifier()
+ public function getLegislationType()
{
- return $this->legislationIdentifier;
+ return $this->legislationType;
}
/**
- * @param string $legislationIdentifier
+ * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $legislationType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationIdentifier($legislationIdentifier)
+ public function setLegislationType($legislationType)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
];
- $legislationIdentifier = self::checkTypes($legislationIdentifier, $types);
+ $legislationType = self::checkTypes($legislationType, $types);
- $this->legislationIdentifier = $legislationIdentifier;
+ $this->legislationType = $legislationType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Legislation|string
+ * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getLegislationChanges()
+ public function getJurisdiction()
{
- return $this->legislationChanges;
+ return $this->jurisdiction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationChanges
+ * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationChanges($legislationChanges)
+ public function setJurisdiction($jurisdiction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Legislation",
"string",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $legislationChanges = self::checkTypes($legislationChanges, $types);
+ $jurisdiction = self::checkTypes($jurisdiction, $types);
- $this->legislationChanges = $legislationChanges;
+ $this->jurisdiction = $jurisdiction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return Date|null
*/
- public function getLegislationResponsible()
+ public function getLegislationDateVersion()
{
- return $this->legislationResponsible;
+ return $this->legislationDateVersion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationResponsible
+ * @param Date|null $legislationDateVersion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationResponsible($legislationResponsible)
+ public function setLegislationDateVersion($legislationDateVersion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "Date",
+ "null",
];
- $legislationResponsible = self::checkTypes($legislationResponsible, $types);
+ $legislationDateVersion = self::checkTypes($legislationDateVersion, $types);
- $this->legislationResponsible = $legislationResponsible;
+ $this->legislationDateVersion = $legislationDateVersion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationJurisdiction()
+ public function getLegislationTransposes()
{
- return $this->legislationJurisdiction;
+ return $this->legislationTransposes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $legislationJurisdiction
+ * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationTransposes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationJurisdiction($legislationJurisdiction)
+ public function setLegislationTransposes($legislationTransposes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\Legislation",
"string",
];
- $legislationJurisdiction = self::checkTypes($legislationJurisdiction, $types);
+ $legislationTransposes = self::checkTypes($legislationTransposes, $types);
- $this->legislationJurisdiction = $legislationJurisdiction;
+ $this->legislationTransposes = $legislationTransposes;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationDate()
+ public function getLegislationApplies()
{
- return $this->legislationDate;
+ return $this->legislationApplies;
}
/**
- * @param Date|null $legislationDate
+ * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationApplies
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationDate($legislationDate)
+ public function setLegislationApplies($legislationApplies)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\Legislation",
+ "string",
];
- $legislationDate = self::checkTypes($legislationDate, $types);
+ $legislationApplies = self::checkTypes($legislationApplies, $types);
- $this->legislationDate = $legislationDate;
+ $this->legislationApplies = $legislationApplies;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getLegislationPassedBy()
+ public function getLegislationIdentifier()
{
- return $this->legislationPassedBy;
+ return $this->legislationIdentifier;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $legislationPassedBy
+ * @param string $legislationIdentifier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationPassedBy($legislationPassedBy)
+ public function setLegislationIdentifier($legislationIdentifier)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $legislationPassedBy = self::checkTypes($legislationPassedBy, $types);
+ $legislationIdentifier = self::checkTypes($legislationIdentifier, $types);
- $this->legislationPassedBy = $legislationPassedBy;
+ $this->legislationIdentifier = $legislationIdentifier;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Legislation|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getLegislationConsolidates()
+ public function getLegislationResponsible()
{
- return $this->legislationConsolidates;
+ return $this->legislationResponsible;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationConsolidates
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $legislationResponsible
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationConsolidates($legislationConsolidates)
+ public function setLegislationResponsible($legislationResponsible)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Legislation",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $legislationConsolidates = self::checkTypes($legislationConsolidates, $types);
+ $legislationResponsible = self::checkTypes($legislationResponsible, $types);
- $this->legislationConsolidates = $legislationConsolidates;
+ $this->legislationResponsible = $legislationResponsible;
}
/**
* @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationApplies()
+ public function getLegislationConsolidates()
{
- return $this->legislationApplies;
+ return $this->legislationConsolidates;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationApplies
+ * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationConsolidates
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationApplies($legislationApplies)
+ public function setLegislationConsolidates($legislationConsolidates)
{
$types = [
"\OpenActive\Models\SchemaOrg\Legislation",
"string",
];
- $legislationApplies = self::checkTypes($legislationApplies, $types);
+ $legislationConsolidates = self::checkTypes($legislationConsolidates, $types);
- $this->legislationApplies = $legislationApplies;
+ $this->legislationConsolidates = $legislationConsolidates;
}
/**
* @return Date|null
*/
- public function getLegislationDateVersion()
+ public function getLegislationDate()
{
- return $this->legislationDateVersion;
+ return $this->legislationDate;
}
/**
- * @param Date|null $legislationDateVersion
+ * @param Date|null $legislationDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationDateVersion($legislationDateVersion)
+ public function setLegislationDate($legislationDate)
{
$types = [
"Date",
"null",
];
- $legislationDateVersion = self::checkTypes($legislationDateVersion, $types);
+ $legislationDate = self::checkTypes($legislationDate, $types);
- $this->legislationDateVersion = $legislationDateVersion;
+ $this->legislationDate = $legislationDate;
}
}
diff --git a/src/Models/SchemaOrg/ListItem.php b/src/Models/SchemaOrg/ListItem.php
index ac5d7ffd..34514940 100644
--- a/src/Models/SchemaOrg/ListItem.php
+++ b/src/Models/SchemaOrg/ListItem.php
@@ -17,146 +17,146 @@ public static function getType()
public static function fieldList() {
$fields = [
- "position" => "position",
- "nextItem" => "nextItem",
"item" => "item",
+ "position" => "position",
"previousItem" => "previousItem",
+ "nextItem" => "nextItem",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The position of an item in a series or sequence of items.
+ * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists').
*
*
- * @var string|int|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $position;
+ protected $item;
/**
- * A link to the ListItem that follows the current one.
+ * The position of an item in a series or sequence of items.
*
*
- * @var \OpenActive\Models\SchemaOrg\ListItem|string
+ * @var string|int|null
*/
- protected $nextItem;
+ protected $position;
/**
- * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists')’.
+ * A link to the ListItem that precedes the current one.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\ListItem|string
*/
- protected $item;
+ protected $previousItem;
/**
- * A link to the ListItem that preceeds the current one.
+ * A link to the ListItem that follows the current one.
*
*
* @var \OpenActive\Models\SchemaOrg\ListItem|string
*/
- protected $previousItem;
+ protected $nextItem;
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getPosition()
+ public function getItem()
{
- return $this->position;
+ return $this->item;
}
/**
- * @param string|int|null $position
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $item
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPosition($position)
+ public function setItem($item)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
- "int",
- "null",
];
- $position = self::checkTypes($position, $types);
+ $item = self::checkTypes($item, $types);
- $this->position = $position;
+ $this->item = $item;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ListItem|string
+ * @return string|int|null
*/
- public function getNextItem()
+ public function getPosition()
{
- return $this->nextItem;
+ return $this->position;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ListItem|string $nextItem
+ * @param string|int|null $position
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNextItem($nextItem)
+ public function setPosition($position)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ListItem",
"string",
+ "int",
+ "null",
];
- $nextItem = self::checkTypes($nextItem, $types);
+ $position = self::checkTypes($position, $types);
- $this->nextItem = $nextItem;
+ $this->position = $position;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\ListItem|string
*/
- public function getItem()
+ public function getPreviousItem()
{
- return $this->item;
+ return $this->previousItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $item
+ * @param \OpenActive\Models\SchemaOrg\ListItem|string $previousItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItem($item)
+ public function setPreviousItem($previousItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\ListItem",
"string",
];
- $item = self::checkTypes($item, $types);
+ $previousItem = self::checkTypes($previousItem, $types);
- $this->item = $item;
+ $this->previousItem = $previousItem;
}
/**
* @return \OpenActive\Models\SchemaOrg\ListItem|string
*/
- public function getPreviousItem()
+ public function getNextItem()
{
- return $this->previousItem;
+ return $this->nextItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ListItem|string $previousItem
+ * @param \OpenActive\Models\SchemaOrg\ListItem|string $nextItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPreviousItem($previousItem)
+ public function setNextItem($nextItem)
{
$types = [
"\OpenActive\Models\SchemaOrg\ListItem",
"string",
];
- $previousItem = self::checkTypes($previousItem, $types);
+ $nextItem = self::checkTypes($nextItem, $types);
- $this->previousItem = $previousItem;
+ $this->nextItem = $nextItem;
}
}
diff --git a/src/Models/SchemaOrg/LiveBlogPosting.php b/src/Models/SchemaOrg/LiveBlogPosting.php
index 2c6d2ebf..80c5f7e3 100644
--- a/src/Models/SchemaOrg/LiveBlogPosting.php
+++ b/src/Models/SchemaOrg/LiveBlogPosting.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"coverageEndTime" => "coverageEndTime",
- "coverageStartTime" => "coverageStartTime",
"liveBlogUpdate" => "liveBlogUpdate",
+ "coverageStartTime" => "coverageStartTime",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $coverageEndTime;
/**
- * The time when the live blog will begin covering the Event. Note that coverage may begin before the Event's start time. The LiveBlogPosting may also be created before coverage begins.
+ * An update to the LiveBlog.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- protected $coverageStartTime;
+ protected $liveBlogUpdate;
/**
- * An update to the LiveBlog.
+ * The time when the live blog will begin covering the Event. Note that coverage may begin before the Event's start time. The LiveBlogPosting may also be created before coverage begins.
*
*
- * @var \OpenActive\Models\SchemaOrg\BlogPosting|string
+ * @var DateTime|null
*/
- protected $liveBlogUpdate;
+ protected $coverageStartTime;
/**
* @return DateTime|null
@@ -75,53 +75,53 @@ public function setCoverageEndTime($coverageEndTime)
}
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- public function getCoverageStartTime()
+ public function getLiveBlogUpdate()
{
- return $this->coverageStartTime;
+ return $this->liveBlogUpdate;
}
/**
- * @param DateTime|null $coverageStartTime
+ * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $liveBlogUpdate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCoverageStartTime($coverageStartTime)
+ public function setLiveBlogUpdate($liveBlogUpdate)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\BlogPosting",
+ "string",
];
- $coverageStartTime = self::checkTypes($coverageStartTime, $types);
+ $liveBlogUpdate = self::checkTypes($liveBlogUpdate, $types);
- $this->coverageStartTime = $coverageStartTime;
+ $this->liveBlogUpdate = $liveBlogUpdate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BlogPosting|string
+ * @return DateTime|null
*/
- public function getLiveBlogUpdate()
+ public function getCoverageStartTime()
{
- return $this->liveBlogUpdate;
+ return $this->coverageStartTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $liveBlogUpdate
+ * @param DateTime|null $coverageStartTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLiveBlogUpdate($liveBlogUpdate)
+ public function setCoverageStartTime($coverageStartTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BlogPosting",
- "string",
+ "DateTime",
+ "null",
];
- $liveBlogUpdate = self::checkTypes($liveBlogUpdate, $types);
+ $coverageStartTime = self::checkTypes($coverageStartTime, $types);
- $this->liveBlogUpdate = $liveBlogUpdate;
+ $this->coverageStartTime = $coverageStartTime;
}
}
diff --git a/src/Models/SchemaOrg/LoanOrCredit.php b/src/Models/SchemaOrg/LoanOrCredit.php
index 2d6710bb..df981902 100644
--- a/src/Models/SchemaOrg/LoanOrCredit.php
+++ b/src/Models/SchemaOrg/LoanOrCredit.php
@@ -17,13 +17,13 @@ public static function getType()
public static function fieldList() {
$fields = [
- "renegotiableLoan" => "renegotiableLoan",
- "loanType" => "loanType",
- "recourseLoan" => "recourseLoan",
+ "currency" => "currency",
"loanTerm" => "loanTerm",
- "gracePeriod" => "gracePeriod",
+ "loanType" => "loanType",
"requiredCollateral" => "requiredCollateral",
- "currency" => "currency",
+ "renegotiableLoan" => "renegotiableLoan",
+ "gracePeriod" => "gracePeriod",
+ "recourseLoan" => "recourseLoan",
"amount" => "amount",
"loanRepaymentForm" => "loanRepaymentForm",
];
@@ -32,12 +32,20 @@ public static function fieldList() {
}
/**
- * Whether the terms for payment of interest can be renegotiated during the life of the loan.
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
- * @var bool|null
+ * @var string
*/
- protected $renegotiableLoan;
+ protected $currency;
+
+ /**
+ * The duration of the loan or credit agreement.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $loanTerm;
/**
* The type of a loan or credit.
@@ -48,20 +56,20 @@ public static function fieldList() {
protected $loanType;
/**
- * The only way you get the money back in the event of default is the security. Recourse is where you still have the opportunity to go back to the borrower for the rest of the money.
+ * Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.)
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $recourseLoan;
+ protected $requiredCollateral;
/**
- * The duration of the loan or credit agreement.
+ * Whether the terms for payment of interest can be renegotiated during the life of the loan.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var bool|null
*/
- protected $loanTerm;
+ protected $renegotiableLoan;
/**
* The period of time after any due date that the borrower has to fulfil its obligations before a default (failure to pay) is deemed to have occurred.
@@ -72,26 +80,18 @@ public static function fieldList() {
protected $gracePeriod;
/**
- * Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.)
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\Thing
- */
- protected $requiredCollateral;
-
- /**
- * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The only way you get the money back in the event of default is the security. Recourse is where you still have the opportunity to go back to the borrower for the rest of the money.
*
*
- * @var string
+ * @var bool|null
*/
- protected $currency;
+ protected $recourseLoan;
/**
* The amount of money.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
protected $amount;
@@ -104,181 +104,181 @@ public static function fieldList() {
protected $loanRepaymentForm;
/**
- * @return bool|null
+ * @return string
*/
- public function getRenegotiableLoan()
+ public function getCurrency()
{
- return $this->renegotiableLoan;
+ return $this->currency;
}
/**
- * @param bool|null $renegotiableLoan
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRenegotiableLoan($renegotiableLoan)
+ public function setCurrency($currency)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $renegotiableLoan = self::checkTypes($renegotiableLoan, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->renegotiableLoan = $renegotiableLoan;
+ $this->currency = $currency;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getLoanType()
+ public function getLoanTerm()
{
- return $this->loanType;
+ return $this->loanTerm;
}
/**
- * @param string $loanType
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $loanTerm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLoanType($loanType)
+ public function setLoanTerm($loanTerm)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $loanType = self::checkTypes($loanType, $types);
+ $loanTerm = self::checkTypes($loanTerm, $types);
- $this->loanType = $loanType;
+ $this->loanTerm = $loanTerm;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getRecourseLoan()
+ public function getLoanType()
{
- return $this->recourseLoan;
+ return $this->loanType;
}
/**
- * @param bool|null $recourseLoan
+ * @param string $loanType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecourseLoan($recourseLoan)
+ public function setLoanType($loanType)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $recourseLoan = self::checkTypes($recourseLoan, $types);
+ $loanType = self::checkTypes($loanType, $types);
- $this->recourseLoan = $recourseLoan;
+ $this->loanType = $loanType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getLoanTerm()
+ public function getRequiredCollateral()
{
- return $this->loanTerm;
+ return $this->requiredCollateral;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $loanTerm
+ * @param \OpenActive\Models\SchemaOrg\Thing|string $requiredCollateral
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLoanTerm($loanTerm)
+ public function setRequiredCollateral($requiredCollateral)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $loanTerm = self::checkTypes($loanTerm, $types);
+ $requiredCollateral = self::checkTypes($requiredCollateral, $types);
- $this->loanTerm = $loanTerm;
+ $this->requiredCollateral = $requiredCollateral;
}
/**
- * @return DateInterval|string|null
+ * @return bool|null
*/
- public function getGracePeriod()
+ public function getRenegotiableLoan()
{
- return $this->gracePeriod;
+ return $this->renegotiableLoan;
}
/**
- * @param DateInterval|string|null $gracePeriod
+ * @param bool|null $renegotiableLoan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGracePeriod($gracePeriod)
+ public function setRenegotiableLoan($renegotiableLoan)
{
$types = [
- "DateInterval",
- "string",
+ "bool",
"null",
];
- $gracePeriod = self::checkTypes($gracePeriod, $types);
+ $renegotiableLoan = self::checkTypes($renegotiableLoan, $types);
- $this->gracePeriod = $gracePeriod;
+ $this->renegotiableLoan = $renegotiableLoan;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Thing
+ * @return DateInterval|string|null
*/
- public function getRequiredCollateral()
+ public function getGracePeriod()
{
- return $this->requiredCollateral;
+ return $this->gracePeriod;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Thing $requiredCollateral
+ * @param DateInterval|string|null $gracePeriod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiredCollateral($requiredCollateral)
+ public function setGracePeriod($gracePeriod)
{
$types = [
+ "DateInterval",
"string",
- "\OpenActive\Models\SchemaOrg\Thing",
+ "null",
];
- $requiredCollateral = self::checkTypes($requiredCollateral, $types);
+ $gracePeriod = self::checkTypes($gracePeriod, $types);
- $this->requiredCollateral = $requiredCollateral;
+ $this->gracePeriod = $gracePeriod;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getCurrency()
+ public function getRecourseLoan()
{
- return $this->currency;
+ return $this->recourseLoan;
}
/**
- * @param string $currency
+ * @param bool|null $recourseLoan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrency($currency)
+ public function setRecourseLoan($recourseLoan)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $currency = self::checkTypes($currency, $types);
+ $recourseLoan = self::checkTypes($recourseLoan, $types);
- $this->currency = $currency;
+ $this->recourseLoan = $recourseLoan;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getAmount()
{
@@ -286,16 +286,16 @@ public function getAmount()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAmount($amount)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/LocalBusiness.php b/src/Models/SchemaOrg/LocalBusiness.php
index 5dc0f3df..a4282c36 100644
--- a/src/Models/SchemaOrg/LocalBusiness.php
+++ b/src/Models/SchemaOrg/LocalBusiness.php
@@ -5,7 +5,7 @@
/**
*
*/
-class LocalBusiness extends \OpenActive\Models\SchemaOrg\Organization
+class LocalBusiness extends \OpenActive\Models\SchemaOrg\Place
{
/**
* @return string[]|null
@@ -18,9 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"branchOf" => "branchOf",
+ "paymentAccepted" => "paymentAccepted",
"openingHours" => "openingHours",
"priceRange" => "priceRange",
- "paymentAccepted" => "paymentAccepted",
"currenciesAccepted" => "currenciesAccepted",
];
@@ -28,7 +28,7 @@ public static function fieldList() {
}
/**
- * The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical)[[branch]].
+ * The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|string
@@ -36,31 +36,31 @@ public static function fieldList() {
protected $branchOf;
/**
- * The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.\n\n* Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```.\n* Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. \n* Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>
.\n* If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>
.
+ * Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
*
*
* @var string
*/
- protected $openingHours;
+ protected $paymentAccepted;
/**
- * The price range of the business, for example ```$$$```.
+ * The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.\n\n* Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```.\n* Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. \n* Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>
.\n* If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>
.
*
*
* @var string
*/
- protected $priceRange;
+ protected $openingHours;
/**
- * Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
+ * The price range of the business, for example ```$$$```.
*
*
* @var string
*/
- protected $paymentAccepted;
+ protected $priceRange;
/**
- * The currency accepted.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The currency accepted.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
* @var string
@@ -95,73 +95,73 @@ public function setBranchOf($branchOf)
/**
* @return string
*/
- public function getOpeningHours()
+ public function getPaymentAccepted()
{
- return $this->openingHours;
+ return $this->paymentAccepted;
}
/**
- * @param string $openingHours
+ * @param string $paymentAccepted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOpeningHours($openingHours)
+ public function setPaymentAccepted($paymentAccepted)
{
$types = [
"string",
];
- $openingHours = self::checkTypes($openingHours, $types);
+ $paymentAccepted = self::checkTypes($paymentAccepted, $types);
- $this->openingHours = $openingHours;
+ $this->paymentAccepted = $paymentAccepted;
}
/**
* @return string
*/
- public function getPriceRange()
+ public function getOpeningHours()
{
- return $this->priceRange;
+ return $this->openingHours;
}
/**
- * @param string $priceRange
+ * @param string $openingHours
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceRange($priceRange)
+ public function setOpeningHours($openingHours)
{
$types = [
"string",
];
- $priceRange = self::checkTypes($priceRange, $types);
+ $openingHours = self::checkTypes($openingHours, $types);
- $this->priceRange = $priceRange;
+ $this->openingHours = $openingHours;
}
/**
* @return string
*/
- public function getPaymentAccepted()
+ public function getPriceRange()
{
- return $this->paymentAccepted;
+ return $this->priceRange;
}
/**
- * @param string $paymentAccepted
+ * @param string $priceRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentAccepted($paymentAccepted)
+ public function setPriceRange($priceRange)
{
$types = [
"string",
];
- $paymentAccepted = self::checkTypes($paymentAccepted, $types);
+ $priceRange = self::checkTypes($priceRange, $types);
- $this->paymentAccepted = $paymentAccepted;
+ $this->priceRange = $priceRange;
}
/**
diff --git a/src/Models/SchemaOrg/LocationFeatureSpecification.php b/src/Models/SchemaOrg/LocationFeatureSpecification.php
index 95978749..6f190875 100644
--- a/src/Models/SchemaOrg/LocationFeatureSpecification.php
+++ b/src/Models/SchemaOrg/LocationFeatureSpecification.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "validThrough" => "validThrough",
"hoursAvailable" => "hoursAvailable",
"validFrom" => "validFrom",
- "validThrough" => "validThrough",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $validThrough;
+
/**
* The hours during which this service or contact is available.
*
@@ -42,12 +50,30 @@ public static function fieldList() {
protected $validFrom;
/**
- * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
- *
- *
- * @var Date|DateTime|null
+ * @return Date|DateTime|null
*/
- protected $validThrough;
+ public function getValidThrough()
+ {
+ return $this->validThrough;
+ }
+
+ /**
+ * @param Date|DateTime|null $validThrough
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setValidThrough($validThrough)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $validThrough = self::checkTypes($validThrough, $types);
+
+ $this->validThrough = $validThrough;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
@@ -100,30 +126,4 @@ public function setValidFrom($validFrom)
$this->validFrom = $validFrom;
}
- /**
- * @return Date|DateTime|null
- */
- public function getValidThrough()
- {
- return $this->validThrough;
- }
-
- /**
- * @param Date|DateTime|null $validThrough
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setValidThrough($validThrough)
- {
- $types = [
- "Date",
- "DateTime",
- "null",
- ];
-
- $validThrough = self::checkTypes($validThrough, $types);
-
- $this->validThrough = $validThrough;
- }
-
}
diff --git a/src/Models/SchemaOrg/LodgingBusiness.php b/src/Models/SchemaOrg/LodgingBusiness.php
index af55db3b..b97886ef 100644
--- a/src/Models/SchemaOrg/LodgingBusiness.php
+++ b/src/Models/SchemaOrg/LodgingBusiness.php
@@ -18,13 +18,13 @@ public static function getType()
public static function fieldList() {
$fields = [
"numberOfRooms" => "numberOfRooms",
- "audience" => "audience",
- "starRating" => "starRating",
- "amenityFeature" => "amenityFeature",
- "availableLanguage" => "availableLanguage",
- "checkoutTime" => "checkoutTime",
"checkinTime" => "checkinTime",
+ "availableLanguage" => "availableLanguage",
+ "amenityFeature" => "amenityFeature",
"petsAllowed" => "petsAllowed",
+ "starRating" => "starRating",
+ "checkoutTime" => "checkoutTime",
+ "audience" => "audience",
];
return array_merge(parent::fieldList(), $fields);
@@ -40,20 +40,20 @@ public static function fieldList() {
protected $numberOfRooms;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * The earliest someone may check into a lodging establishment.
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var DateTime|string|null
*/
- protected $audience;
+ protected $checkinTime;
/**
- * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars).
+ * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Rating|string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $starRating;
+ protected $availableLanguage;
/**
* An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.
@@ -64,36 +64,36 @@ public static function fieldList() {
protected $amenityFeature;
/**
- * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]
+ * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var bool|string|null
*/
- protected $availableLanguage;
+ protected $petsAllowed;
/**
- * The latest someone may check out of a lodging establishment.
+ * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars).
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
*/
- protected $checkoutTime;
+ protected $starRating;
/**
- * The earliest someone may check into a lodging establishment.
+ * The latest someone may check out of a lodging establishment.
*
*
* @var DateTime|string|null
*/
- protected $checkinTime;
+ protected $checkoutTime;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $petsAllowed;
+ protected $audience;
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
@@ -123,53 +123,54 @@ public function setNumberOfRooms($numberOfRooms)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return DateTime|string|null
*/
- public function getAudience()
+ public function getCheckinTime()
{
- return $this->audience;
+ return $this->checkinTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @param DateTime|string|null $checkinTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudience($audience)
+ public function setCheckinTime($checkinTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $audience = self::checkTypes($audience, $types);
+ $checkinTime = self::checkTypes($checkinTime, $types);
- $this->audience = $audience;
+ $this->checkinTime = $checkinTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Rating|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getStarRating()
+ public function getAvailableLanguage()
{
- return $this->starRating;
+ return $this->availableLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating
+ * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStarRating($starRating)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Rating",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $starRating = self::checkTypes($starRating, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->starRating = $starRating;
+ $this->availableLanguage = $availableLanguage;
}
/**
@@ -198,70 +199,70 @@ public function setAmenityFeature($amenityFeature)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return bool|string|null
*/
- public function getAvailableLanguage()
+ public function getPetsAllowed()
{
- return $this->availableLanguage;
+ return $this->petsAllowed;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableLanguage($availableLanguage)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
+ "bool",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
+ "null",
];
- $availableLanguage = self::checkTypes($availableLanguage, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->availableLanguage = $availableLanguage;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
*/
- public function getCheckoutTime()
+ public function getStarRating()
{
- return $this->checkoutTime;
+ return $this->starRating;
}
/**
- * @param DateTime|string|null $checkoutTime
+ * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCheckoutTime($checkoutTime)
+ public function setStarRating($starRating)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Rating",
+ "string",
];
- $checkoutTime = self::checkTypes($checkoutTime, $types);
+ $starRating = self::checkTypes($starRating, $types);
- $this->checkoutTime = $checkoutTime;
+ $this->starRating = $starRating;
}
/**
* @return DateTime|string|null
*/
- public function getCheckinTime()
+ public function getCheckoutTime()
{
- return $this->checkinTime;
+ return $this->checkoutTime;
}
/**
- * @param DateTime|string|null $checkinTime
+ * @param DateTime|string|null $checkoutTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCheckinTime($checkinTime)
+ public function setCheckoutTime($checkoutTime)
{
$types = [
"DateTime",
@@ -269,35 +270,34 @@ public function setCheckinTime($checkinTime)
"null",
];
- $checkinTime = self::checkTypes($checkinTime, $types);
+ $checkoutTime = self::checkTypes($checkoutTime, $types);
- $this->checkinTime = $checkinTime;
+ $this->checkoutTime = $checkoutTime;
}
/**
- * @return bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getPetsAllowed()
+ public function getAudience()
{
- return $this->petsAllowed;
+ return $this->audience;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setAudience($audience)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
- "null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->audience = $audience;
}
}
diff --git a/src/Models/SchemaOrg/LodgingReservation.php b/src/Models/SchemaOrg/LodgingReservation.php
index bd520b20..ae49d516 100644
--- a/src/Models/SchemaOrg/LodgingReservation.php
+++ b/src/Models/SchemaOrg/LodgingReservation.php
@@ -17,182 +17,185 @@ public static function getType()
public static function fieldList() {
$fields = [
- "lodgingUnitType" => "lodgingUnitType",
- "lodgingUnitDescription" => "lodgingUnitDescription",
- "checkoutTime" => "checkoutTime",
- "numAdults" => "numAdults",
"checkinTime" => "checkinTime",
"numChildren" => "numChildren",
+ "numAdults" => "numAdults",
+ "lodgingUnitType" => "lodgingUnitType",
+ "checkoutTime" => "checkoutTime",
+ "lodgingUnitDescription" => "lodgingUnitDescription",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Textual description of the unit type (including suite vs. room, size of bed, etc.).
+ * The earliest someone may check into a lodging establishment.
*
*
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var DateTime|string|null
*/
- protected $lodgingUnitType;
+ protected $checkinTime;
/**
- * A full description of the lodging unit.
+ * The number of children staying in the unit.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
- protected $lodgingUnitDescription;
+ protected $numChildren;
/**
- * The latest someone may check out of a lodging establishment.
+ * The number of adults staying in the unit.
*
*
- * @var DateTime|string|null
+ * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $checkoutTime;
+ protected $numAdults;
/**
- * The number of adults staying in the unit.
+ * Textual description of the unit type (including suite vs. room, size of bed, etc.).
*
*
- * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- protected $numAdults;
+ protected $lodgingUnitType;
/**
- * The earliest someone may check into a lodging establishment.
+ * The latest someone may check out of a lodging establishment.
*
*
* @var DateTime|string|null
*/
- protected $checkinTime;
+ protected $checkoutTime;
/**
- * The number of children staying in the unit.
+ * A full description of the lodging unit.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var string
*/
- protected $numChildren;
+ protected $lodgingUnitDescription;
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return DateTime|string|null
*/
- public function getLodgingUnitType()
+ public function getCheckinTime()
{
- return $this->lodgingUnitType;
+ return $this->checkinTime;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $lodgingUnitType
+ * @param DateTime|string|null $checkinTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLodgingUnitType($lodgingUnitType)
+ public function setCheckinTime($checkinTime)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "string",
+ "DateTime",
+ "Time",
"null",
];
- $lodgingUnitType = self::checkTypes($lodgingUnitType, $types);
+ $checkinTime = self::checkTypes($checkinTime, $types);
- $this->lodgingUnitType = $lodgingUnitType;
+ $this->checkinTime = $checkinTime;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
- public function getLodgingUnitDescription()
+ public function getNumChildren()
{
- return $this->lodgingUnitDescription;
+ return $this->numChildren;
}
/**
- * @param string $lodgingUnitDescription
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null $numChildren
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLodgingUnitDescription($lodgingUnitDescription)
+ public function setNumChildren($numChildren)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "int",
+ "null",
];
- $lodgingUnitDescription = self::checkTypes($lodgingUnitDescription, $types);
+ $numChildren = self::checkTypes($numChildren, $types);
- $this->lodgingUnitDescription = $lodgingUnitDescription;
+ $this->numChildren = $numChildren;
}
/**
- * @return DateTime|string|null
+ * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getCheckoutTime()
+ public function getNumAdults()
{
- return $this->checkoutTime;
+ return $this->numAdults;
}
/**
- * @param DateTime|string|null $checkoutTime
+ * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numAdults
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCheckoutTime($checkoutTime)
+ public function setNumAdults($numAdults)
{
$types = [
- "DateTime",
- "Time",
+ "int",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
"null",
];
- $checkoutTime = self::checkTypes($checkoutTime, $types);
+ $numAdults = self::checkTypes($numAdults, $types);
- $this->checkoutTime = $checkoutTime;
+ $this->numAdults = $numAdults;
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getNumAdults()
+ public function getLodgingUnitType()
{
- return $this->numAdults;
+ return $this->lodgingUnitType;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numAdults
+ * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $lodgingUnitType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumAdults($numAdults)
+ public function setLodgingUnitType($lodgingUnitType)
{
$types = [
- "int",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"null",
];
- $numAdults = self::checkTypes($numAdults, $types);
+ $lodgingUnitType = self::checkTypes($lodgingUnitType, $types);
- $this->numAdults = $numAdults;
+ $this->lodgingUnitType = $lodgingUnitType;
}
/**
* @return DateTime|string|null
*/
- public function getCheckinTime()
+ public function getCheckoutTime()
{
- return $this->checkinTime;
+ return $this->checkoutTime;
}
/**
- * @param DateTime|string|null $checkinTime
+ * @param DateTime|string|null $checkoutTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCheckinTime($checkinTime)
+ public function setCheckoutTime($checkoutTime)
{
$types = [
"DateTime",
@@ -200,36 +203,33 @@ public function setCheckinTime($checkinTime)
"null",
];
- $checkinTime = self::checkTypes($checkinTime, $types);
+ $checkoutTime = self::checkTypes($checkoutTime, $types);
- $this->checkinTime = $checkinTime;
+ $this->checkoutTime = $checkoutTime;
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return string
*/
- public function getNumChildren()
+ public function getLodgingUnitDescription()
{
- return $this->numChildren;
+ return $this->lodgingUnitDescription;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numChildren
+ * @param string $lodgingUnitDescription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumChildren($numChildren)
+ public function setLodgingUnitDescription($lodgingUnitDescription)
{
$types = [
- "int",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $numChildren = self::checkTypes($numChildren, $types);
+ $lodgingUnitDescription = self::checkTypes($lodgingUnitDescription, $types);
- $this->numChildren = $numChildren;
+ $this->lodgingUnitDescription = $lodgingUnitDescription;
}
}
diff --git a/src/Models/SchemaOrg/LymphaticVessel.php b/src/Models/SchemaOrg/LymphaticVessel.php
index de4fecdf..f2bdde69 100644
--- a/src/Models/SchemaOrg/LymphaticVessel.php
+++ b/src/Models/SchemaOrg/LymphaticVessel.php
@@ -17,112 +17,112 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "originatesFrom" => "originatesFrom",
"runsTo" => "runsTo",
"regionDrained" => "regionDrained",
- "originatesFrom" => "originatesFrom",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The vasculature the lymphatic structure runs, or efferents, to.
+ * The vasculature the lymphatic structure originates, or afferents, from.
*
*
* @var \OpenActive\Models\SchemaOrg\Vessel|string
*/
- protected $runsTo;
+ protected $originatesFrom;
/**
- * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ.
+ * The vasculature the lymphatic structure runs, or efferents, to.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\Vessel|string
*/
- protected $regionDrained;
+ protected $runsTo;
/**
- * The vasculature the lymphatic structure originates, or afferents, from.
+ * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ.
*
*
- * @var \OpenActive\Models\SchemaOrg\Vessel|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- protected $originatesFrom;
+ protected $regionDrained;
/**
* @return \OpenActive\Models\SchemaOrg\Vessel|string
*/
- public function getRunsTo()
+ public function getOriginatesFrom()
{
- return $this->runsTo;
+ return $this->originatesFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $runsTo
+ * @param \OpenActive\Models\SchemaOrg\Vessel|string $originatesFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRunsTo($runsTo)
+ public function setOriginatesFrom($originatesFrom)
{
$types = [
"\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $runsTo = self::checkTypes($runsTo, $types);
+ $originatesFrom = self::checkTypes($originatesFrom, $types);
- $this->runsTo = $runsTo;
+ $this->originatesFrom = $originatesFrom;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\Vessel|string
*/
- public function getRegionDrained()
+ public function getRunsTo()
{
- return $this->regionDrained;
+ return $this->runsTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained
+ * @param \OpenActive\Models\SchemaOrg\Vessel|string $runsTo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRegionDrained($regionDrained)
+ public function setRunsTo($runsTo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $regionDrained = self::checkTypes($regionDrained, $types);
+ $runsTo = self::checkTypes($runsTo, $types);
- $this->regionDrained = $regionDrained;
+ $this->runsTo = $runsTo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Vessel|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- public function getOriginatesFrom()
+ public function getRegionDrained()
{
- return $this->originatesFrom;
+ return $this->regionDrained;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $originatesFrom
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $regionDrained
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOriginatesFrom($originatesFrom)
+ public function setRegionDrained($regionDrained)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vessel",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
- $originatesFrom = self::checkTypes($originatesFrom, $types);
+ $regionDrained = self::checkTypes($regionDrained, $types);
- $this->originatesFrom = $originatesFrom;
+ $this->regionDrained = $regionDrained;
}
}
diff --git a/src/Models/SchemaOrg/MediaObject.php b/src/Models/SchemaOrg/MediaObject.php
index 959cbe73..e1710e44 100644
--- a/src/Models/SchemaOrg/MediaObject.php
+++ b/src/Models/SchemaOrg/MediaObject.php
@@ -17,130 +17,130 @@ public static function getType()
public static function fieldList() {
$fields = [
- "contentSize" => "contentSize",
- "contentUrl" => "contentUrl",
- "width" => "width",
- "height" => "height",
- "regionsAllowed" => "regionsAllowed",
- "startTime" => "startTime",
- "associatedArticle" => "associatedArticle",
- "ineligibleRegion" => "ineligibleRegion",
- "requiresSubscription" => "requiresSubscription",
- "playerType" => "playerType",
- "encodesCreativeWork" => "encodesCreativeWork",
- "duration" => "duration",
- "encodingFormat" => "encodingFormat",
- "uploadDate" => "uploadDate",
- "embedUrl" => "embedUrl",
"bitrate" => "bitrate",
+ "encodesCreativeWork" => "encodesCreativeWork",
+ "ineligibleRegion" => "ineligibleRegion",
"endTime" => "endTime",
"productionCompany" => "productionCompany",
- "sha256" => "sha256",
"interpretedAsClaim" => "interpretedAsClaim",
+ "embedUrl" => "embedUrl",
+ "playerType" => "playerType",
+ "width" => "width",
+ "uploadDate" => "uploadDate",
+ "contentSize" => "contentSize",
+ "requiresSubscription" => "requiresSubscription",
+ "encodingFormat" => "encodingFormat",
+ "startTime" => "startTime",
+ "height" => "height",
+ "associatedArticle" => "associatedArticle",
+ "sha256" => "sha256",
+ "regionsAllowed" => "regionsAllowed",
+ "duration" => "duration",
+ "contentUrl" => "contentUrl",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * File size in (mega/kilo) bytes.
+ * The bitrate of the media object.
*
*
* @var string
*/
- protected $contentSize;
+ protected $bitrate;
/**
- * Actual bytes of the media object, for example the image file or video file.
+ * The CreativeWork encoded by this media object.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $contentUrl;
+ protected $encodesCreativeWork;
/**
- * The width of the item.
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $width;
+ protected $ineligibleRegion;
/**
- * The height of the item.
+ * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var DateTime|string|null
*/
- protected $height;
+ protected $endTime;
/**
- * The regions where the media is allowed. If not specified, then it's assumed to be allowed everywhere. Specify the countries in [ISO 3166 format](http://en.wikipedia.org/wiki/ISO_3166).
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $regionsAllowed;
+ protected $productionCompany;
/**
- * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Claim|string
*/
- protected $startTime;
+ protected $interpretedAsClaim;
/**
- * A NewsArticle associated with the Media Object.
+ * A URL pointing to a player for a specific video. In general, this is the information in the ```src``` element of an ```embed``` tag and should not be the same as the content of the ```loc``` tag.
*
*
- * @var \OpenActive\Models\SchemaOrg\NewsArticle|string
+ * @var string
*/
- protected $associatedArticle;
+ protected $embedUrl;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
- *
+ * Player type required—for example, Flash or Silverlight.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var string
*/
- protected $ineligibleRegion;
+ protected $playerType;
/**
- * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no').
+ * The width of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $requiresSubscription;
+ protected $width;
/**
- * Player type required—for example, Flash or Silverlight.
+ * Date (including time if available) when this media object was uploaded to this site.
*
*
- * @var string
+ * @var Date|DateTime|null
*/
- protected $playerType;
+ protected $uploadDate;
/**
- * The CreativeWork encoded by this media object.
+ * File size in (mega/kilo)bytes.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string
*/
- protected $encodesCreativeWork;
+ protected $contentSize;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no').
*
*
- * @var DateInterval|string|null
+ * @var bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- protected $duration;
+ protected $requiresSubscription;
/**
- * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)) e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.).
+ * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.
*
* In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information.
*
@@ -152,363 +152,361 @@ public static function fieldList() {
protected $encodingFormat;
/**
- * Date when this media object was uploaded to this site.
+ * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*
*
- * @var Date|null
+ * @var DateTime|string|null
*/
- protected $uploadDate;
+ protected $startTime;
/**
- * A URL pointing to a player for a specific video. In general, this is the information in the ```src``` element of an ```embed``` tag and should not be the same as the content of the ```loc``` tag.
+ * The height of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $embedUrl;
+ protected $height;
/**
- * The bitrate of the media object.
+ * A NewsArticle associated with the Media Object.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\NewsArticle|string
*/
- protected $bitrate;
+ protected $associatedArticle;
/**
- * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The [SHA-2](https://en.wikipedia.org/wiki/SHA-2) SHA256 hash of the content of the item. For example, a zero-length input has value 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'.
*
*
- * @var DateTime|string|null
+ * @var string
*/
- protected $endTime;
+ protected $sha256;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The regions where the media is allowed. If not specified, then it's assumed to be allowed everywhere. Specify the countries in [ISO 3166 format](http://en.wikipedia.org/wiki/ISO_3166).
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $productionCompany;
+ protected $regionsAllowed;
/**
- * The [SHA-2](https://en.wikipedia.org/wiki/SHA-2) SHA256 hash of the content of the item. For example, a zero-length input has value 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var string
+ * @var DateInterval|string|null
*/
- protected $sha256;
+ protected $duration;
/**
- * Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].
+ * Actual bytes of the media object, for example the image file or video file.
*
*
- * @var \OpenActive\Models\SchemaOrg\Claim|string
+ * @var string
*/
- protected $interpretedAsClaim;
+ protected $contentUrl;
/**
* @return string
*/
- public function getContentSize()
+ public function getBitrate()
{
- return $this->contentSize;
+ return $this->bitrate;
}
/**
- * @param string $contentSize
+ * @param string $bitrate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentSize($contentSize)
+ public function setBitrate($bitrate)
{
$types = [
"string",
];
- $contentSize = self::checkTypes($contentSize, $types);
+ $bitrate = self::checkTypes($bitrate, $types);
- $this->contentSize = $contentSize;
+ $this->bitrate = $bitrate;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getContentUrl()
+ public function getEncodesCreativeWork()
{
- return $this->contentUrl;
+ return $this->encodesCreativeWork;
}
/**
- * @param string $contentUrl
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $encodesCreativeWork
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentUrl($contentUrl)
+ public function setEncodesCreativeWork($encodesCreativeWork)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $contentUrl = self::checkTypes($contentUrl, $types);
+ $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types);
- $this->contentUrl = $contentUrl;
+ $this->encodesCreativeWork = $encodesCreativeWork;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- public function getWidth()
+ public function getIneligibleRegion()
{
- return $this->width;
+ return $this->ineligibleRegion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWidth($width)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\Distance",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $width = self::checkTypes($width, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->width = $width;
+ $this->ineligibleRegion = $ineligibleRegion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return DateTime|string|null
*/
- public function getHeight()
+ public function getEndTime()
{
- return $this->height;
+ return $this->endTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHeight($height)
+ public function setEndTime($endTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $height = self::checkTypes($height, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->height = $height;
+ $this->endTime = $endTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getRegionsAllowed()
+ public function getProductionCompany()
{
- return $this->regionsAllowed;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $regionsAllowed
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRegionsAllowed($regionsAllowed)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $regionsAllowed = self::checkTypes($regionsAllowed, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->regionsAllowed = $regionsAllowed;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Claim|string
*/
- public function getStartTime()
+ public function getInterpretedAsClaim()
{
- return $this->startTime;
+ return $this->interpretedAsClaim;
}
/**
- * @param DateTime|string|null $startTime
+ * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartTime($startTime)
+ public function setInterpretedAsClaim($interpretedAsClaim)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Claim",
+ "string",
];
- $startTime = self::checkTypes($startTime, $types);
+ $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
- $this->startTime = $startTime;
+ $this->interpretedAsClaim = $interpretedAsClaim;
}
/**
- * @return \OpenActive\Models\SchemaOrg\NewsArticle|string
+ * @return string
*/
- public function getAssociatedArticle()
+ public function getEmbedUrl()
{
- return $this->associatedArticle;
+ return $this->embedUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\NewsArticle|string $associatedArticle
+ * @param string $embedUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedArticle($associatedArticle)
+ public function setEmbedUrl($embedUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\NewsArticle",
"string",
];
- $associatedArticle = self::checkTypes($associatedArticle, $types);
+ $embedUrl = self::checkTypes($embedUrl, $types);
- $this->associatedArticle = $associatedArticle;
+ $this->embedUrl = $embedUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @return string
*/
- public function getIneligibleRegion()
+ public function getPlayerType()
{
- return $this->ineligibleRegion;
+ return $this->playerType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param string $playerType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setPlayerType($playerType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $playerType = self::checkTypes($playerType, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->playerType = $playerType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getRequiresSubscription()
+ public function getWidth()
{
- return $this->requiresSubscription;
+ return $this->width;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null $requiresSubscription
+ * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $width
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiresSubscription($requiresSubscription)
+ public function setWidth($width)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaSubscription",
- "bool",
+ "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $requiresSubscription = self::checkTypes($requiresSubscription, $types);
+ $width = self::checkTypes($width, $types);
- $this->requiresSubscription = $requiresSubscription;
+ $this->width = $width;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getPlayerType()
+ public function getUploadDate()
{
- return $this->playerType;
+ return $this->uploadDate;
}
/**
- * @param string $playerType
+ * @param Date|DateTime|null $uploadDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPlayerType($playerType)
+ public function setUploadDate($uploadDate)
{
$types = [
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $playerType = self::checkTypes($playerType, $types);
+ $uploadDate = self::checkTypes($uploadDate, $types);
- $this->playerType = $playerType;
+ $this->uploadDate = $uploadDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getEncodesCreativeWork()
+ public function getContentSize()
{
- return $this->encodesCreativeWork;
+ return $this->contentSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $encodesCreativeWork
+ * @param string $contentSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodesCreativeWork($encodesCreativeWork)
+ public function setContentSize($contentSize)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types);
+ $contentSize = self::checkTypes($contentSize, $types);
- $this->encodesCreativeWork = $encodesCreativeWork;
+ $this->contentSize = $contentSize;
}
/**
- * @return DateInterval|string|null
+ * @return bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- public function getDuration()
+ public function getRequiresSubscription()
{
- return $this->duration;
+ return $this->requiresSubscription;
}
/**
- * @param DateInterval|string|null $duration
+ * @param bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null $requiresSubscription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setRequiresSubscription($requiresSubscription)
{
$types = [
- "DateInterval",
+ "bool",
+ "\OpenActive\Models\SchemaOrg\MediaSubscription",
"string",
"null",
];
- $duration = self::checkTypes($duration, $types);
+ $requiresSubscription = self::checkTypes($requiresSubscription, $types);
- $this->duration = $duration;
+ $this->requiresSubscription = $requiresSubscription;
}
/**
@@ -536,176 +534,179 @@ public function setEncodingFormat($encodingFormat)
}
/**
- * @return Date|null
+ * @return DateTime|string|null
*/
- public function getUploadDate()
+ public function getStartTime()
{
- return $this->uploadDate;
+ return $this->startTime;
}
/**
- * @param Date|null $uploadDate
+ * @param DateTime|string|null $startTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUploadDate($uploadDate)
+ public function setStartTime($startTime)
{
$types = [
- "Date",
+ "DateTime",
+ "Time",
"null",
];
- $uploadDate = self::checkTypes($uploadDate, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->uploadDate = $uploadDate;
+ $this->startTime = $startTime;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEmbedUrl()
+ public function getHeight()
{
- return $this->embedUrl;
+ return $this->height;
}
/**
- * @param string $embedUrl
+ * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmbedUrl($embedUrl)
+ public function setHeight($height)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $embedUrl = self::checkTypes($embedUrl, $types);
+ $height = self::checkTypes($height, $types);
- $this->embedUrl = $embedUrl;
+ $this->height = $height;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\NewsArticle|string
*/
- public function getBitrate()
+ public function getAssociatedArticle()
{
- return $this->bitrate;
+ return $this->associatedArticle;
}
/**
- * @param string $bitrate
+ * @param \OpenActive\Models\SchemaOrg\NewsArticle|string $associatedArticle
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBitrate($bitrate)
+ public function setAssociatedArticle($associatedArticle)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\NewsArticle",
"string",
];
- $bitrate = self::checkTypes($bitrate, $types);
+ $associatedArticle = self::checkTypes($associatedArticle, $types);
- $this->bitrate = $bitrate;
+ $this->associatedArticle = $associatedArticle;
}
/**
- * @return DateTime|string|null
+ * @return string
*/
- public function getEndTime()
+ public function getSha256()
{
- return $this->endTime;
+ return $this->sha256;
}
/**
- * @param DateTime|string|null $endTime
+ * @param string $sha256
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndTime($endTime)
+ public function setSha256($sha256)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "string",
];
- $endTime = self::checkTypes($endTime, $types);
+ $sha256 = self::checkTypes($sha256, $types);
- $this->endTime = $endTime;
+ $this->sha256 = $sha256;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getProductionCompany()
+ public function getRegionsAllowed()
{
- return $this->productionCompany;
+ return $this->regionsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param \OpenActive\Models\SchemaOrg\Place|string $regionsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setRegionsAllowed($regionsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $regionsAllowed = self::checkTypes($regionsAllowed, $types);
- $this->productionCompany = $productionCompany;
+ $this->regionsAllowed = $regionsAllowed;
}
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getSha256()
+ public function getDuration()
{
- return $this->sha256;
+ return $this->duration;
}
/**
- * @param string $sha256
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSha256($sha256)
+ public function setDuration($duration)
{
$types = [
+ "DateInterval",
"string",
+ "null",
];
- $sha256 = self::checkTypes($sha256, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->sha256 = $sha256;
+ $this->duration = $duration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Claim|string
+ * @return string
*/
- public function getInterpretedAsClaim()
+ public function getContentUrl()
{
- return $this->interpretedAsClaim;
+ return $this->contentUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim
+ * @param string $contentUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInterpretedAsClaim($interpretedAsClaim)
+ public function setContentUrl($contentUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Claim",
"string",
];
- $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
+ $contentUrl = self::checkTypes($contentUrl, $types);
- $this->interpretedAsClaim = $interpretedAsClaim;
+ $this->contentUrl = $contentUrl;
}
}
diff --git a/src/Models/SchemaOrg/MediaReview.php b/src/Models/SchemaOrg/MediaReview.php
index f0f371ee..d7745f2d 100644
--- a/src/Models/SchemaOrg/MediaReview.php
+++ b/src/Models/SchemaOrg/MediaReview.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "originalMediaContextDescription" => "originalMediaContextDescription",
- "mediaAuthenticityCategory" => "mediaAuthenticityCategory",
"originalMediaLink" => "originalMediaLink",
+ "mediaAuthenticityCategory" => "mediaAuthenticityCategory",
+ "originalMediaContextDescription" => "originalMediaContextDescription",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Describes, in a [[MediaReview]] when dealing with [[DecontextualizedContent]], background information that can contribute to better interpretation of the [[MediaObject]].
+ * Link to the page containing an original version of the content, or directly to an online copy of the original [[MediaObject]] content, e.g. video file.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\WebPage|string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- protected $originalMediaContextDescription;
+ protected $originalMediaLink;
/**
* Indicates a MediaManipulationRatingEnumeration classification of a media object (in the context of how it was published or shared).
@@ -42,35 +42,37 @@ public static function fieldList() {
protected $mediaAuthenticityCategory;
/**
- * Link to the page containing an original version of the content, or directly to an online copy of the original [[MediaObject]] content, e.g. video file.
+ * Describes, in a [[MediaReview]] when dealing with [[DecontextualizedContent]], background information that can contribute to better interpretation of the [[MediaObject]].
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage
+ * @var string
*/
- protected $originalMediaLink;
+ protected $originalMediaContextDescription;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\WebPage|string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- public function getOriginalMediaContextDescription()
+ public function getOriginalMediaLink()
{
- return $this->originalMediaContextDescription;
+ return $this->originalMediaLink;
}
/**
- * @param string $originalMediaContextDescription
+ * @param \OpenActive\Models\SchemaOrg\WebPage|string|\OpenActive\Models\SchemaOrg\MediaObject $originalMediaLink
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOriginalMediaContextDescription($originalMediaContextDescription)
+ public function setOriginalMediaLink($originalMediaLink)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\WebPage",
"string",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
];
- $originalMediaContextDescription = self::checkTypes($originalMediaContextDescription, $types);
+ $originalMediaLink = self::checkTypes($originalMediaLink, $types);
- $this->originalMediaContextDescription = $originalMediaContextDescription;
+ $this->originalMediaLink = $originalMediaLink;
}
/**
@@ -99,29 +101,27 @@ public function setMediaAuthenticityCategory($mediaAuthenticityCategory)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage
+ * @return string
*/
- public function getOriginalMediaLink()
+ public function getOriginalMediaContextDescription()
{
- return $this->originalMediaLink;
+ return $this->originalMediaContextDescription;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage $originalMediaLink
+ * @param string $originalMediaContextDescription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOriginalMediaLink($originalMediaLink)
+ public function setOriginalMediaContextDescription($originalMediaContextDescription)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
- "\OpenActive\Models\SchemaOrg\WebPage",
];
- $originalMediaLink = self::checkTypes($originalMediaLink, $types);
+ $originalMediaContextDescription = self::checkTypes($originalMediaContextDescription, $types);
- $this->originalMediaLink = $originalMediaLink;
+ $this->originalMediaContextDescription = $originalMediaContextDescription;
}
}
diff --git a/src/Models/SchemaOrg/MediaSubscription.php b/src/Models/SchemaOrg/MediaSubscription.php
index d0219893..83527aab 100644
--- a/src/Models/SchemaOrg/MediaSubscription.php
+++ b/src/Models/SchemaOrg/MediaSubscription.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "expectsAcceptanceOf" => "expectsAcceptanceOf",
"authenticator" => "authenticator",
+ "expectsAcceptanceOf" => "expectsAcceptanceOf",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.
+ * The Organization responsible for authenticating the user's subscription. For example, many media apps require a cable/satellite provider to authenticate your subscription before playing media.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $expectsAcceptanceOf;
+ protected $authenticator;
/**
- * The Organization responsible for authenticating the user's subscription. For example, many media apps require a cable/satellite provider to authenticate your subscription before playing media.
+ * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $authenticator;
+ protected $expectsAcceptanceOf;
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getExpectsAcceptanceOf()
+ public function getAuthenticator()
{
- return $this->expectsAcceptanceOf;
+ return $this->authenticator;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $authenticator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpectsAcceptanceOf($expectsAcceptanceOf)
+ public function setAuthenticator($authenticator)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types);
+ $authenticator = self::checkTypes($authenticator, $types);
- $this->expectsAcceptanceOf = $expectsAcceptanceOf;
+ $this->authenticator = $authenticator;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getAuthenticator()
+ public function getExpectsAcceptanceOf()
{
- return $this->authenticator;
+ return $this->expectsAcceptanceOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $authenticator
+ * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAuthenticator($authenticator)
+ public function setExpectsAcceptanceOf($expectsAcceptanceOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
];
- $authenticator = self::checkTypes($authenticator, $types);
+ $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types);
- $this->authenticator = $authenticator;
+ $this->expectsAcceptanceOf = $expectsAcceptanceOf;
}
}
diff --git a/src/Models/SchemaOrg/MedicalAudience.php b/src/Models/SchemaOrg/MedicalAudience.php
index 7dcae546..9fb0434c 100644
--- a/src/Models/SchemaOrg/MedicalAudience.php
+++ b/src/Models/SchemaOrg/MedicalAudience.php
@@ -5,7 +5,7 @@
/**
*
*/
-class MedicalAudience extends \OpenActive\Models\SchemaOrg\Audience
+class MedicalAudience extends \OpenActive\Models\SchemaOrg\PeopleAudience
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/MedicalClinic.php b/src/Models/SchemaOrg/MedicalClinic.php
index 9a1a5e33..db4fe771 100644
--- a/src/Models/SchemaOrg/MedicalClinic.php
+++ b/src/Models/SchemaOrg/MedicalClinic.php
@@ -5,7 +5,7 @@
/**
*
*/
-class MedicalClinic extends \OpenActive\Models\SchemaOrg\MedicalOrganization
+class MedicalClinic extends \OpenActive\Models\SchemaOrg\MedicalBusiness
{
/**
* @return string[]|null
@@ -17,79 +17,79 @@ public static function getType()
public static function fieldList() {
$fields = [
- "availableService" => "availableService",
"medicalSpecialty" => "medicalSpecialty",
+ "availableService" => "availableService",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A medical service available from this provider.
+ * A medical specialty of the provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- protected $availableService;
+ protected $medicalSpecialty;
/**
- * A medical specialty of the provider.
+ * A medical service available from this provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string
*/
- protected $medicalSpecialty;
+ protected $availableService;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- public function getAvailableService()
+ public function getMedicalSpecialty()
{
- return $this->availableService;
+ return $this->medicalSpecialty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService
+ * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableService($availableService)
+ public function setMedicalSpecialty($medicalSpecialty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
- "\OpenActive\Models\SchemaOrg\MedicalProcedure",
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
"string",
];
- $availableService = self::checkTypes($availableService, $types);
+ $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
- $this->availableService = $availableService;
+ $this->medicalSpecialty = $medicalSpecialty;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string
*/
- public function getMedicalSpecialty()
+ public function getAvailableService()
{
- return $this->medicalSpecialty;
+ return $this->availableService;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string $availableService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMedicalSpecialty($medicalSpecialty)
+ public function setAvailableService($availableService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
+ "\OpenActive\Models\SchemaOrg\MedicalProcedure",
"string",
];
- $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
+ $availableService = self::checkTypes($availableService, $types);
- $this->medicalSpecialty = $medicalSpecialty;
+ $this->availableService = $availableService;
}
}
diff --git a/src/Models/SchemaOrg/MedicalCode.php b/src/Models/SchemaOrg/MedicalCode.php
index 6a82a1c9..441f98ff 100644
--- a/src/Models/SchemaOrg/MedicalCode.php
+++ b/src/Models/SchemaOrg/MedicalCode.php
@@ -17,75 +17,75 @@ public static function getType()
public static function fieldList() {
$fields = [
- "codeValue" => "codeValue",
"codingSystem" => "codingSystem",
+ "codeValue" => "codeValue",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A short textual code that uniquely identifies the value.
+ * The coding system, e.g. 'ICD-10'.
*
*
* @var string
*/
- protected $codeValue;
+ protected $codingSystem;
/**
- * The coding system, e.g. 'ICD-10'.
+ * A short textual code that uniquely identifies the value.
*
*
* @var string
*/
- protected $codingSystem;
+ protected $codeValue;
/**
* @return string
*/
- public function getCodeValue()
+ public function getCodingSystem()
{
- return $this->codeValue;
+ return $this->codingSystem;
}
/**
- * @param string $codeValue
+ * @param string $codingSystem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCodeValue($codeValue)
+ public function setCodingSystem($codingSystem)
{
$types = [
"string",
];
- $codeValue = self::checkTypes($codeValue, $types);
+ $codingSystem = self::checkTypes($codingSystem, $types);
- $this->codeValue = $codeValue;
+ $this->codingSystem = $codingSystem;
}
/**
* @return string
*/
- public function getCodingSystem()
+ public function getCodeValue()
{
- return $this->codingSystem;
+ return $this->codeValue;
}
/**
- * @param string $codingSystem
+ * @param string $codeValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCodingSystem($codingSystem)
+ public function setCodeValue($codeValue)
{
$types = [
"string",
];
- $codingSystem = self::checkTypes($codingSystem, $types);
+ $codeValue = self::checkTypes($codeValue, $types);
- $this->codingSystem = $codingSystem;
+ $this->codeValue = $codeValue;
}
}
diff --git a/src/Models/SchemaOrg/MedicalCondition.php b/src/Models/SchemaOrg/MedicalCondition.php
index 3c751533..da3f91b3 100644
--- a/src/Models/SchemaOrg/MedicalCondition.php
+++ b/src/Models/SchemaOrg/MedicalCondition.php
@@ -17,552 +17,552 @@ public static function getType()
public static function fieldList() {
$fields = [
- "possibleComplication" => "possibleComplication",
- "naturalProgression" => "naturalProgression",
- "primaryPrevention" => "primaryPrevention",
- "status" => "status",
- "differentialDiagnosis" => "differentialDiagnosis",
"stage" => "stage",
- "pathophysiology" => "pathophysiology",
+ "differentialDiagnosis" => "differentialDiagnosis",
+ "typicalTest" => "typicalTest",
"drug" => "drug",
"secondaryPrevention" => "secondaryPrevention",
- "associatedAnatomy" => "associatedAnatomy",
"signOrSymptom" => "signOrSymptom",
- "typicalTest" => "typicalTest",
- "epidemiology" => "epidemiology",
+ "naturalProgression" => "naturalProgression",
"riskFactor" => "riskFactor",
- "expectedPrognosis" => "expectedPrognosis",
+ "possibleComplication" => "possibleComplication",
+ "epidemiology" => "epidemiology",
+ "pathophysiology" => "pathophysiology",
"possibleTreatment" => "possibleTreatment",
+ "status" => "status",
+ "expectedPrognosis" => "expectedPrognosis",
+ "primaryPrevention" => "primaryPrevention",
+ "associatedAnatomy" => "associatedAnatomy",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A possible unexpected and unfavorable evolution of a medical condition. Complications may include worsening of the signs or symptoms of the disease, extension of the condition to other organ systems, etc.
+ * The stage of the condition, if applicable.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
*/
- protected $possibleComplication;
+ protected $stage;
/**
- * The expected progression of the condition if it is not treated and allowed to progress naturally.
+ * One of a set of differential diagnoses for the condition. Specifically, a closely-related or competing diagnosis typically considered later in the cognitive process whereby this medical condition is distinguished from others most likely responsible for a similar collection of signs and symptoms to reach the most parsimonious diagnosis or diagnoses in a patient.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DDxElement|string
*/
- protected $naturalProgression;
+ protected $differentialDiagnosis;
/**
- * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.
+ * A medical test typically performed given this condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- protected $primaryPrevention;
+ protected $typicalTest;
/**
- * The status of the study (enumerated).
+ * Specifying a drug or medicine used in a medication procedure.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var \OpenActive\Models\SchemaOrg\Drug|string
*/
- protected $status;
+ protected $drug;
/**
- * One of a set of differential diagnoses for the condition. Specifically, a closely-related or competing diagnosis typically considered later in the cognitive process whereby this medical condition is distinguished from others most likely responsible for a similar collection of signs and symptoms to reach the most parsimonious diagnosis or diagnoses in a patient.
+ * A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\DDxElement|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $differentialDiagnosis;
+ protected $secondaryPrevention;
/**
- * The stage of the condition, if applicable.
+ * A sign or symptom of this condition. Signs are objective or physically observable manifestations of the medical condition while symptoms are the subjective experience of the medical condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
*/
- protected $stage;
+ protected $signOrSymptom;
/**
- * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.
+ * The expected progression of the condition if it is not treated and allowed to progress naturally.
*
*
* @var string
*/
- protected $pathophysiology;
+ protected $naturalProgression;
/**
- * Specifying a drug or medicine used in a medication procedure.
+ * A modifiable or non-modifiable factor that increases the risk of a patient contracting this condition, e.g. age, coexisting condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
*/
- protected $drug;
+ protected $riskFactor;
/**
- * A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition.
+ * A possible unexpected and unfavorable evolution of a medical condition. Complications may include worsening of the signs or symptoms of the disease, extension of the condition to other organ systems, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var string
*/
- protected $secondaryPrevention;
+ protected $possibleComplication;
/**
- * The anatomy of the underlying organ system or structures associated with this entity.
+ * The characteristics of associated patients, such as age, gender, race etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
+ * @var string
*/
- protected $associatedAnatomy;
+ protected $epidemiology;
/**
- * A sign or symptom of this condition. Signs are objective or physically observable manifestations of the medical condition while symptoms are the subjective experience of the medical condition.
+ * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
+ * @var string
*/
- protected $signOrSymptom;
+ protected $pathophysiology;
/**
- * A medical test typically performed given this condition.
+ * A possible treatment to address this condition, sign or symptom.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $typicalTest;
+ protected $possibleTreatment;
/**
- * The characteristics of associated patients, such as age, gender, race etc.
+ * The status of the study (enumerated).
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
*/
- protected $epidemiology;
+ protected $status;
/**
- * A modifiable or non-modifiable factor that increases the risk of a patient contracting this condition, e.g. age, coexisting condition.
+ * The likely outcome in either the short term or long term of the medical condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
+ * @var string
*/
- protected $riskFactor;
+ protected $expectedPrognosis;
/**
- * The likely outcome in either the short term or long term of the medical condition.
+ * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $expectedPrognosis;
+ protected $primaryPrevention;
/**
- * A possible treatment to address this condition, sign or symptom.
+ * The anatomy of the underlying organ system or structures associated with this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- protected $possibleTreatment;
+ protected $associatedAnatomy;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
*/
- public function getPossibleComplication()
+ public function getStage()
{
- return $this->possibleComplication;
+ return $this->stage;
}
/**
- * @param string $possibleComplication
+ * @param \OpenActive\Models\SchemaOrg\MedicalConditionStage|string $stage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPossibleComplication($possibleComplication)
+ public function setStage($stage)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalConditionStage",
"string",
];
- $possibleComplication = self::checkTypes($possibleComplication, $types);
+ $stage = self::checkTypes($stage, $types);
- $this->possibleComplication = $possibleComplication;
+ $this->stage = $stage;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DDxElement|string
*/
- public function getNaturalProgression()
+ public function getDifferentialDiagnosis()
{
- return $this->naturalProgression;
+ return $this->differentialDiagnosis;
}
/**
- * @param string $naturalProgression
+ * @param \OpenActive\Models\SchemaOrg\DDxElement|string $differentialDiagnosis
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNaturalProgression($naturalProgression)
+ public function setDifferentialDiagnosis($differentialDiagnosis)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DDxElement",
"string",
];
- $naturalProgression = self::checkTypes($naturalProgression, $types);
+ $differentialDiagnosis = self::checkTypes($differentialDiagnosis, $types);
- $this->naturalProgression = $naturalProgression;
+ $this->differentialDiagnosis = $differentialDiagnosis;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- public function getPrimaryPrevention()
+ public function getTypicalTest()
{
- return $this->primaryPrevention;
+ return $this->typicalTest;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $primaryPrevention
+ * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $typicalTest
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrimaryPrevention($primaryPrevention)
+ public function setTypicalTest($typicalTest)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"string",
];
- $primaryPrevention = self::checkTypes($primaryPrevention, $types);
+ $typicalTest = self::checkTypes($typicalTest, $types);
- $this->primaryPrevention = $primaryPrevention;
+ $this->typicalTest = $typicalTest;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getStatus()
+ public function getDrug()
{
- return $this->status;
+ return $this->drug;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param \OpenActive\Models\SchemaOrg\Drug|string $drug
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStatus($status)
+ public function setDrug($drug)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
- "null",
];
- $status = self::checkTypes($status, $types);
+ $drug = self::checkTypes($drug, $types);
- $this->status = $status;
+ $this->drug = $drug;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DDxElement|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getDifferentialDiagnosis()
+ public function getSecondaryPrevention()
{
- return $this->differentialDiagnosis;
+ return $this->secondaryPrevention;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DDxElement|string $differentialDiagnosis
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $secondaryPrevention
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDifferentialDiagnosis($differentialDiagnosis)
+ public function setSecondaryPrevention($secondaryPrevention)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DDxElement",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $differentialDiagnosis = self::checkTypes($differentialDiagnosis, $types);
+ $secondaryPrevention = self::checkTypes($secondaryPrevention, $types);
- $this->differentialDiagnosis = $differentialDiagnosis;
+ $this->secondaryPrevention = $secondaryPrevention;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
*/
- public function getStage()
+ public function getSignOrSymptom()
{
- return $this->stage;
+ return $this->signOrSymptom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalConditionStage|string $stage
+ * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $signOrSymptom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStage($stage)
+ public function setSignOrSymptom($signOrSymptom)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalConditionStage",
+ "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom",
"string",
];
- $stage = self::checkTypes($stage, $types);
+ $signOrSymptom = self::checkTypes($signOrSymptom, $types);
- $this->stage = $stage;
+ $this->signOrSymptom = $signOrSymptom;
}
/**
* @return string
*/
- public function getPathophysiology()
+ public function getNaturalProgression()
{
- return $this->pathophysiology;
+ return $this->naturalProgression;
}
/**
- * @param string $pathophysiology
+ * @param string $naturalProgression
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPathophysiology($pathophysiology)
+ public function setNaturalProgression($naturalProgression)
{
$types = [
"string",
];
- $pathophysiology = self::checkTypes($pathophysiology, $types);
+ $naturalProgression = self::checkTypes($naturalProgression, $types);
- $this->pathophysiology = $pathophysiology;
+ $this->naturalProgression = $naturalProgression;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
*/
- public function getDrug()
+ public function getRiskFactor()
{
- return $this->drug;
+ return $this->riskFactor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $drug
+ * @param \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string $riskFactor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDrug($drug)
+ public function setRiskFactor($riskFactor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\MedicalRiskFactor",
"string",
];
- $drug = self::checkTypes($drug, $types);
+ $riskFactor = self::checkTypes($riskFactor, $types);
- $this->drug = $drug;
+ $this->riskFactor = $riskFactor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return string
*/
- public function getSecondaryPrevention()
+ public function getPossibleComplication()
{
- return $this->secondaryPrevention;
+ return $this->possibleComplication;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $secondaryPrevention
+ * @param string $possibleComplication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSecondaryPrevention($secondaryPrevention)
+ public function setPossibleComplication($possibleComplication)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $secondaryPrevention = self::checkTypes($secondaryPrevention, $types);
+ $possibleComplication = self::checkTypes($possibleComplication, $types);
- $this->secondaryPrevention = $secondaryPrevention;
+ $this->possibleComplication = $possibleComplication;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
+ * @return string
*/
- public function getAssociatedAnatomy()
+ public function getEpidemiology()
{
- return $this->associatedAnatomy;
+ return $this->epidemiology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $associatedAnatomy
+ * @param string $epidemiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedAnatomy($associatedAnatomy)
+ public function setEpidemiology($epidemiology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
- "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
"string",
];
- $associatedAnatomy = self::checkTypes($associatedAnatomy, $types);
+ $epidemiology = self::checkTypes($epidemiology, $types);
- $this->associatedAnatomy = $associatedAnatomy;
+ $this->epidemiology = $epidemiology;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
+ * @return string
*/
- public function getSignOrSymptom()
+ public function getPathophysiology()
{
- return $this->signOrSymptom;
+ return $this->pathophysiology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $signOrSymptom
+ * @param string $pathophysiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSignOrSymptom($signOrSymptom)
+ public function setPathophysiology($pathophysiology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom",
"string",
];
- $signOrSymptom = self::checkTypes($signOrSymptom, $types);
+ $pathophysiology = self::checkTypes($pathophysiology, $types);
- $this->signOrSymptom = $signOrSymptom;
+ $this->pathophysiology = $pathophysiology;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getTypicalTest()
+ public function getPossibleTreatment()
{
- return $this->typicalTest;
+ return $this->possibleTreatment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $typicalTest
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypicalTest($typicalTest)
+ public function setPossibleTreatment($possibleTreatment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $typicalTest = self::checkTypes($typicalTest, $types);
+ $possibleTreatment = self::checkTypes($possibleTreatment, $types);
- $this->typicalTest = $typicalTest;
+ $this->possibleTreatment = $possibleTreatment;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
*/
- public function getEpidemiology()
+ public function getStatus()
{
- return $this->epidemiology;
+ return $this->status;
}
/**
- * @param string $epidemiology
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpidemiology($epidemiology)
+ public function setStatus($status)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
"string",
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
+ "null",
];
- $epidemiology = self::checkTypes($epidemiology, $types);
+ $status = self::checkTypes($status, $types);
- $this->epidemiology = $epidemiology;
+ $this->status = $status;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
+ * @return string
*/
- public function getRiskFactor()
+ public function getExpectedPrognosis()
{
- return $this->riskFactor;
+ return $this->expectedPrognosis;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string $riskFactor
+ * @param string $expectedPrognosis
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRiskFactor($riskFactor)
+ public function setExpectedPrognosis($expectedPrognosis)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalRiskFactor",
"string",
];
- $riskFactor = self::checkTypes($riskFactor, $types);
+ $expectedPrognosis = self::checkTypes($expectedPrognosis, $types);
- $this->riskFactor = $riskFactor;
+ $this->expectedPrognosis = $expectedPrognosis;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getExpectedPrognosis()
+ public function getPrimaryPrevention()
{
- return $this->expectedPrognosis;
+ return $this->primaryPrevention;
}
/**
- * @param string $expectedPrognosis
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $primaryPrevention
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpectedPrognosis($expectedPrognosis)
+ public function setPrimaryPrevention($primaryPrevention)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $expectedPrognosis = self::checkTypes($expectedPrognosis, $types);
+ $primaryPrevention = self::checkTypes($primaryPrevention, $types);
- $this->expectedPrognosis = $expectedPrognosis;
+ $this->primaryPrevention = $primaryPrevention;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- public function getPossibleTreatment()
+ public function getAssociatedAnatomy()
{
- return $this->possibleTreatment;
+ return $this->associatedAnatomy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment
+ * @param \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $associatedAnatomy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPossibleTreatment($possibleTreatment)
+ public function setAssociatedAnatomy($associatedAnatomy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
- $possibleTreatment = self::checkTypes($possibleTreatment, $types);
+ $associatedAnatomy = self::checkTypes($associatedAnatomy, $types);
- $this->possibleTreatment = $possibleTreatment;
+ $this->associatedAnatomy = $associatedAnatomy;
}
}
diff --git a/src/Models/SchemaOrg/MedicalConditionStage.php b/src/Models/SchemaOrg/MedicalConditionStage.php
index e9661a42..6e94fd2b 100644
--- a/src/Models/SchemaOrg/MedicalConditionStage.php
+++ b/src/Models/SchemaOrg/MedicalConditionStage.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "subStageSuffix" => "subStageSuffix",
"stageAsNumber" => "stageAsNumber",
+ "subStageSuffix" => "subStageSuffix",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The substage, e.g. 'a' for Stage IIIa.
+ * The stage represented as a number, e.g. 3.
*
*
- * @var string
+ * @var Number|null
*/
- protected $subStageSuffix;
+ protected $stageAsNumber;
/**
- * The stage represented as a number, e.g. 3.
+ * The substage, e.g. 'a' for Stage IIIa.
*
*
- * @var Number|null
+ * @var string
*/
- protected $stageAsNumber;
+ protected $subStageSuffix;
/**
- * @return string
+ * @return Number|null
*/
- public function getSubStageSuffix()
+ public function getStageAsNumber()
{
- return $this->subStageSuffix;
+ return $this->stageAsNumber;
}
/**
- * @param string $subStageSuffix
+ * @param Number|null $stageAsNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSubStageSuffix($subStageSuffix)
+ public function setStageAsNumber($stageAsNumber)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $subStageSuffix = self::checkTypes($subStageSuffix, $types);
+ $stageAsNumber = self::checkTypes($stageAsNumber, $types);
- $this->subStageSuffix = $subStageSuffix;
+ $this->stageAsNumber = $stageAsNumber;
}
/**
- * @return Number|null
+ * @return string
*/
- public function getStageAsNumber()
+ public function getSubStageSuffix()
{
- return $this->stageAsNumber;
+ return $this->subStageSuffix;
}
/**
- * @param Number|null $stageAsNumber
+ * @param string $subStageSuffix
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStageAsNumber($stageAsNumber)
+ public function setSubStageSuffix($subStageSuffix)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $stageAsNumber = self::checkTypes($stageAsNumber, $types);
+ $subStageSuffix = self::checkTypes($subStageSuffix, $types);
- $this->stageAsNumber = $stageAsNumber;
+ $this->subStageSuffix = $subStageSuffix;
}
}
diff --git a/src/Models/SchemaOrg/MedicalDevice.php b/src/Models/SchemaOrg/MedicalDevice.php
index 31653148..253b2542 100644
--- a/src/Models/SchemaOrg/MedicalDevice.php
+++ b/src/Models/SchemaOrg/MedicalDevice.php
@@ -17,11 +17,11 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "postOp" => "postOp",
+ "procedure" => "procedure",
"adverseOutcome" => "adverseOutcome",
"preOp" => "preOp",
"seriousAdverseOutcome" => "seriousAdverseOutcome",
- "postOp" => "postOp",
- "procedure" => "procedure",
"contraindication" => "contraindication",
];
@@ -29,177 +29,177 @@ public static function fieldList() {
}
/**
- * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead.
+ * A description of the postoperative procedures, care, and/or followups for this device.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var string
*/
- protected $adverseOutcome;
+ protected $postOp;
/**
- * A description of the workup, testing, and other preparations required before implanting this device.
+ * A description of the procedure involved in setting up, using, and/or installing the device.
*
*
* @var string
*/
- protected $preOp;
+ protected $procedure;
/**
- * A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition.
+ * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or otherwise life-threatening or requiring immediate medical attention), tag it as a seriousAdverseOutcome instead.
*
*
* @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $seriousAdverseOutcome;
+ protected $adverseOutcome;
/**
- * A description of the postoperative procedures, care, and/or followups for this device.
+ * A description of the workup, testing, and other preparations required before implanting this device.
*
*
* @var string
*/
- protected $postOp;
+ protected $preOp;
/**
- * A description of the procedure involved in setting up, using, and/or installing the device.
+ * A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $procedure;
+ protected $seriousAdverseOutcome;
/**
* A contraindication for this therapy.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @var \OpenActive\Models\SchemaOrg\MedicalContraindication|string
*/
protected $contraindication;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return string
*/
- public function getAdverseOutcome()
+ public function getPostOp()
{
- return $this->adverseOutcome;
+ return $this->postOp;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome
+ * @param string $postOp
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdverseOutcome($adverseOutcome)
+ public function setPostOp($postOp)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $adverseOutcome = self::checkTypes($adverseOutcome, $types);
+ $postOp = self::checkTypes($postOp, $types);
- $this->adverseOutcome = $adverseOutcome;
+ $this->postOp = $postOp;
}
/**
* @return string
*/
- public function getPreOp()
+ public function getProcedure()
{
- return $this->preOp;
+ return $this->procedure;
}
/**
- * @param string $preOp
+ * @param string $procedure
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPreOp($preOp)
+ public function setProcedure($procedure)
{
$types = [
"string",
];
- $preOp = self::checkTypes($preOp, $types);
+ $procedure = self::checkTypes($procedure, $types);
- $this->preOp = $preOp;
+ $this->procedure = $procedure;
}
/**
* @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getSeriousAdverseOutcome()
+ public function getAdverseOutcome()
{
- return $this->seriousAdverseOutcome;
+ return $this->adverseOutcome;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $seriousAdverseOutcome
+ * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeriousAdverseOutcome($seriousAdverseOutcome)
+ public function setAdverseOutcome($adverseOutcome)
{
$types = [
"\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $seriousAdverseOutcome = self::checkTypes($seriousAdverseOutcome, $types);
+ $adverseOutcome = self::checkTypes($adverseOutcome, $types);
- $this->seriousAdverseOutcome = $seriousAdverseOutcome;
+ $this->adverseOutcome = $adverseOutcome;
}
/**
* @return string
*/
- public function getPostOp()
+ public function getPreOp()
{
- return $this->postOp;
+ return $this->preOp;
}
/**
- * @param string $postOp
+ * @param string $preOp
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostOp($postOp)
+ public function setPreOp($preOp)
{
$types = [
"string",
];
- $postOp = self::checkTypes($postOp, $types);
+ $preOp = self::checkTypes($preOp, $types);
- $this->postOp = $postOp;
+ $this->preOp = $preOp;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getProcedure()
+ public function getSeriousAdverseOutcome()
{
- return $this->procedure;
+ return $this->seriousAdverseOutcome;
}
/**
- * @param string $procedure
+ * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $seriousAdverseOutcome
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProcedure($procedure)
+ public function setSeriousAdverseOutcome($seriousAdverseOutcome)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $procedure = self::checkTypes($procedure, $types);
+ $seriousAdverseOutcome = self::checkTypes($seriousAdverseOutcome, $types);
- $this->procedure = $procedure;
+ $this->seriousAdverseOutcome = $seriousAdverseOutcome;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @return \OpenActive\Models\SchemaOrg\MedicalContraindication|string
*/
public function getContraindication()
{
@@ -207,15 +207,15 @@ public function getContraindication()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
+ * @param \OpenActive\Models\SchemaOrg\MedicalContraindication|string $contraindication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setContraindication($contraindication)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\MedicalContraindication",
+ "string",
];
$contraindication = self::checkTypes($contraindication, $types);
diff --git a/src/Models/SchemaOrg/MedicalEntity.php b/src/Models/SchemaOrg/MedicalEntity.php
index 3d730b94..0730e2e4 100644
--- a/src/Models/SchemaOrg/MedicalEntity.php
+++ b/src/Models/SchemaOrg/MedicalEntity.php
@@ -17,27 +17,19 @@ public static function getType()
public static function fieldList() {
$fields = [
- "legalStatus" => "legalStatus",
"funding" => "funding",
- "study" => "study",
- "code" => "code",
"guideline" => "guideline",
- "recognizingAuthority" => "recognizingAuthority",
+ "code" => "code",
+ "study" => "study",
"medicineSystem" => "medicineSystem",
+ "legalStatus" => "legalStatus",
+ "recognizingAuthority" => "recognizingAuthority",
"relevantSpecialty" => "relevantSpecialty",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The drug or supplement's legal status, including any controlled substance schedules that apply.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
- */
- protected $legalStatus;
-
/**
* A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
@@ -47,12 +39,12 @@ public static function fieldList() {
protected $funding;
/**
- * A medical study or trial related to this entity.
+ * A medical guideline related to this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalStudy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalGuideline|string
*/
- protected $study;
+ protected $guideline;
/**
* A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.
@@ -63,20 +55,12 @@ public static function fieldList() {
protected $code;
/**
- * A medical guideline related to this entity.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MedicalGuideline|string
- */
- protected $guideline;
-
- /**
- * If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.
+ * A medical study or trial related to this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalStudy|string
*/
- protected $recognizingAuthority;
+ protected $study;
/**
* The system of medicine that includes this MedicalEntity, for example 'evidence-based', 'homeopathic', 'chiropractic', etc.
@@ -87,39 +71,28 @@ public static function fieldList() {
protected $medicineSystem;
/**
- * If applicable, a medical specialty in which this entity is relevant.
+ * The drug or supplement's legal status, including any controlled substance schedules that apply.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @var \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null
*/
- protected $relevantSpecialty;
+ protected $legalStatus;
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getLegalStatus()
- {
- return $this->legalStatus;
- }
+ protected $recognizingAuthority;
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * If applicable, a medical specialty in which this entity is relevant.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- public function setLegalStatus($legalStatus)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
- "string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
- ];
-
- $legalStatus = self::checkTypes($legalStatus, $types);
-
- $this->legalStatus = $legalStatus;
- }
+ protected $relevantSpecialty;
/**
* @return \OpenActive\Models\SchemaOrg\Grant|string
@@ -147,28 +120,28 @@ public function setFunding($funding)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalGuideline|string
*/
- public function getStudy()
+ public function getGuideline()
{
- return $this->study;
+ return $this->guideline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalStudy|string $study
+ * @param \OpenActive\Models\SchemaOrg\MedicalGuideline|string $guideline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStudy($study)
+ public function setGuideline($guideline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalStudy",
+ "\OpenActive\Models\SchemaOrg\MedicalGuideline",
"string",
];
- $study = self::checkTypes($study, $types);
+ $guideline = self::checkTypes($guideline, $types);
- $this->study = $study;
+ $this->guideline = $guideline;
}
/**
@@ -197,78 +170,105 @@ public function setCode($code)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalGuideline|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string
*/
- public function getGuideline()
+ public function getStudy()
{
- return $this->guideline;
+ return $this->study;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalGuideline|string $guideline
+ * @param \OpenActive\Models\SchemaOrg\MedicalStudy|string $study
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGuideline($guideline)
+ public function setStudy($study)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalGuideline",
+ "\OpenActive\Models\SchemaOrg\MedicalStudy",
"string",
];
- $guideline = self::checkTypes($guideline, $types);
+ $study = self::checkTypes($study, $types);
- $this->guideline = $guideline;
+ $this->study = $study;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\MedicineSystem|string
*/
- public function getRecognizingAuthority()
+ public function getMedicineSystem()
{
- return $this->recognizingAuthority;
+ return $this->medicineSystem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizingAuthority
+ * @param \OpenActive\Models\SchemaOrg\MedicineSystem|string $medicineSystem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecognizingAuthority($recognizingAuthority)
+ public function setMedicineSystem($medicineSystem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\MedicineSystem",
"string",
];
- $recognizingAuthority = self::checkTypes($recognizingAuthority, $types);
+ $medicineSystem = self::checkTypes($medicineSystem, $types);
- $this->recognizingAuthority = $recognizingAuthority;
+ $this->medicineSystem = $medicineSystem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicineSystem|string
+ * @return \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null
*/
- public function getMedicineSystem()
+ public function getLegalStatus()
{
- return $this->medicineSystem;
+ return $this->legalStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicineSystem|string $medicineSystem
+ * @param \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null $legalStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMedicineSystem($medicineSystem)
+ public function setLegalStatus($legalStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicineSystem",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
+ "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
"string",
+ "null",
];
- $medicineSystem = self::checkTypes($medicineSystem, $types);
+ $legalStatus = self::checkTypes($legalStatus, $types);
- $this->medicineSystem = $medicineSystem;
+ $this->legalStatus = $legalStatus;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
+ */
+ public function getRecognizingAuthority()
+ {
+ return $this->recognizingAuthority;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizingAuthority
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setRecognizingAuthority($recognizingAuthority)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
+ ];
+
+ $recognizingAuthority = self::checkTypes($recognizingAuthority, $types);
+
+ $this->recognizingAuthority = $recognizingAuthority;
}
/**
diff --git a/src/Models/SchemaOrg/MedicalGuideline.php b/src/Models/SchemaOrg/MedicalGuideline.php
index 63d3aa89..c876f9d6 100644
--- a/src/Models/SchemaOrg/MedicalGuideline.php
+++ b/src/Models/SchemaOrg/MedicalGuideline.php
@@ -17,30 +17,30 @@ public static function getType()
public static function fieldList() {
$fields = [
- "evidenceLevel" => "evidenceLevel",
"evidenceOrigin" => "evidenceOrigin",
- "guidelineSubject" => "guidelineSubject",
"guidelineDate" => "guidelineDate",
+ "guidelineSubject" => "guidelineSubject",
+ "evidenceLevel" => "evidenceLevel",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Strength of evidence of the data used to formulate the guideline (enumerated).
+ * Source of the data used to formulate the guidance, e.g. RCT, consensus opinion, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string
+ * @var string
*/
- protected $evidenceLevel;
+ protected $evidenceOrigin;
/**
- * Source of the data used to formulate the guidance, e.g. RCT, consensus opinion, etc.
+ * Date on which this guideline's recommendation was made.
*
*
- * @var string
+ * @var Date|null
*/
- protected $evidenceOrigin;
+ protected $guidelineDate;
/**
* The medical conditions, treatments, etc. that are the subject of the guideline.
@@ -51,60 +51,60 @@ public static function fieldList() {
protected $guidelineSubject;
/**
- * Date on which this guideline's recommendation was made.
+ * Strength of evidence of the data used to formulate the guideline (enumerated).
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string
*/
- protected $guidelineDate;
+ protected $evidenceLevel;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string
+ * @return string
*/
- public function getEvidenceLevel()
+ public function getEvidenceOrigin()
{
- return $this->evidenceLevel;
+ return $this->evidenceOrigin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string $evidenceLevel
+ * @param string $evidenceOrigin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEvidenceLevel($evidenceLevel)
+ public function setEvidenceOrigin($evidenceOrigin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEvidenceLevel",
"string",
];
- $evidenceLevel = self::checkTypes($evidenceLevel, $types);
+ $evidenceOrigin = self::checkTypes($evidenceOrigin, $types);
- $this->evidenceLevel = $evidenceLevel;
+ $this->evidenceOrigin = $evidenceOrigin;
}
/**
- * @return string
+ * @return Date|null
*/
- public function getEvidenceOrigin()
+ public function getGuidelineDate()
{
- return $this->evidenceOrigin;
+ return $this->guidelineDate;
}
/**
- * @param string $evidenceOrigin
+ * @param Date|null $guidelineDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEvidenceOrigin($evidenceOrigin)
+ public function setGuidelineDate($guidelineDate)
{
$types = [
- "string",
+ "Date",
+ "null",
];
- $evidenceOrigin = self::checkTypes($evidenceOrigin, $types);
+ $guidelineDate = self::checkTypes($guidelineDate, $types);
- $this->evidenceOrigin = $evidenceOrigin;
+ $this->guidelineDate = $guidelineDate;
}
/**
@@ -133,28 +133,28 @@ public function setGuidelineSubject($guidelineSubject)
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string
*/
- public function getGuidelineDate()
+ public function getEvidenceLevel()
{
- return $this->guidelineDate;
+ return $this->evidenceLevel;
}
/**
- * @param Date|null $guidelineDate
+ * @param \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string $evidenceLevel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGuidelineDate($guidelineDate)
+ public function setEvidenceLevel($evidenceLevel)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\MedicalEvidenceLevel",
+ "string",
];
- $guidelineDate = self::checkTypes($guidelineDate, $types);
+ $evidenceLevel = self::checkTypes($evidenceLevel, $types);
- $this->guidelineDate = $guidelineDate;
+ $this->evidenceLevel = $evidenceLevel;
}
}
diff --git a/src/Models/SchemaOrg/MedicalOrganization.php b/src/Models/SchemaOrg/MedicalOrganization.php
index f726aab1..779b6956 100644
--- a/src/Models/SchemaOrg/MedicalOrganization.php
+++ b/src/Models/SchemaOrg/MedicalOrganization.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "medicalSpecialty" => "medicalSpecialty",
"isAcceptingNewPatients" => "isAcceptingNewPatients",
"healthPlanNetworkId" => "healthPlanNetworkId",
- "medicalSpecialty" => "medicalSpecialty",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * A medical specialty of the provider.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ */
+ protected $medicalSpecialty;
+
/**
* Whether the provider is accepting new patients.
*
@@ -34,7 +42,7 @@ public static function fieldList() {
protected $isAcceptingNewPatients;
/**
- * Name or unique ID of network. (Networks are often reused across different insurance plans).
+ * Name or unique ID of network. (Networks are often reused across different insurance plans.)
*
*
* @var string
@@ -42,12 +50,29 @@ public static function fieldList() {
protected $healthPlanNetworkId;
/**
- * A medical specialty of the provider.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- protected $medicalSpecialty;
+ public function getMedicalSpecialty()
+ {
+ return $this->medicalSpecialty;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMedicalSpecialty($medicalSpecialty)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
+ "string",
+ ];
+
+ $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
+
+ $this->medicalSpecialty = $medicalSpecialty;
+ }
/**
* @return bool|null
@@ -98,29 +123,4 @@ public function setHealthPlanNetworkId($healthPlanNetworkId)
$this->healthPlanNetworkId = $healthPlanNetworkId;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
- */
- public function getMedicalSpecialty()
- {
- return $this->medicalSpecialty;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setMedicalSpecialty($medicalSpecialty)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
- "string",
- ];
-
- $medicalSpecialty = self::checkTypes($medicalSpecialty, $types);
-
- $this->medicalSpecialty = $medicalSpecialty;
- }
-
}
diff --git a/src/Models/SchemaOrg/MedicalProcedure.php b/src/Models/SchemaOrg/MedicalProcedure.php
index e92c5117..0032f8d1 100644
--- a/src/Models/SchemaOrg/MedicalProcedure.php
+++ b/src/Models/SchemaOrg/MedicalProcedure.php
@@ -17,212 +17,212 @@ public static function getType()
public static function fieldList() {
$fields = [
- "procedureType" => "procedureType",
- "preparation" => "preparation",
"bodyLocation" => "bodyLocation",
- "status" => "status",
- "howPerformed" => "howPerformed",
"followup" => "followup",
+ "howPerformed" => "howPerformed",
+ "preparation" => "preparation",
+ "status" => "status",
+ "procedureType" => "procedureType",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type of procedure, for example Surgical, Noninvasive, or Percutaneous.
+ * Location in the body of the anatomical structure.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
+ * @var string
*/
- protected $procedureType;
+ protected $bodyLocation;
/**
- * Typical preparation that a patient must undergo before having the procedure performed.
+ * Typical or recommended followup care after the procedure is performed.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var string
*/
- protected $preparation;
+ protected $followup;
/**
- * Location in the body of the anatomical structure.
+ * How the procedure is performed.
*
*
* @var string
*/
- protected $bodyLocation;
+ protected $howPerformed;
/**
- * The status of the study (enumerated).
+ * Typical preparation that a patient must undergo before having the procedure performed.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var string|\OpenActive\Models\SchemaOrg\MedicalEntity
*/
- protected $status;
+ protected $preparation;
/**
- * How the procedure is performed.
+ * The status of the study (enumerated).
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
*/
- protected $howPerformed;
+ protected $status;
/**
- * Typical or recommended followup care after the procedure is performed.
+ * The type of procedure, for example Surgical, Noninvasive, or Percutaneous.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
*/
- protected $followup;
+ protected $procedureType;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
+ * @return string
*/
- public function getProcedureType()
+ public function getBodyLocation()
{
- return $this->procedureType;
+ return $this->bodyLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalProcedureType|string $procedureType
+ * @param string $bodyLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProcedureType($procedureType)
+ public function setBodyLocation($bodyLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalProcedureType",
"string",
];
- $procedureType = self::checkTypes($procedureType, $types);
+ $bodyLocation = self::checkTypes($bodyLocation, $types);
- $this->procedureType = $procedureType;
+ $this->bodyLocation = $bodyLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return string
*/
- public function getPreparation()
+ public function getFollowup()
{
- return $this->preparation;
+ return $this->followup;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $preparation
+ * @param string $followup
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPreparation($preparation)
+ public function setFollowup($followup)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $preparation = self::checkTypes($preparation, $types);
+ $followup = self::checkTypes($followup, $types);
- $this->preparation = $preparation;
+ $this->followup = $followup;
}
/**
* @return string
*/
- public function getBodyLocation()
+ public function getHowPerformed()
{
- return $this->bodyLocation;
+ return $this->howPerformed;
}
/**
- * @param string $bodyLocation
+ * @param string $howPerformed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBodyLocation($bodyLocation)
+ public function setHowPerformed($howPerformed)
{
$types = [
"string",
];
- $bodyLocation = self::checkTypes($bodyLocation, $types);
+ $howPerformed = self::checkTypes($howPerformed, $types);
- $this->bodyLocation = $bodyLocation;
+ $this->howPerformed = $howPerformed;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return string|\OpenActive\Models\SchemaOrg\MedicalEntity
*/
- public function getStatus()
+ public function getPreparation()
{
- return $this->status;
+ return $this->preparation;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param string|\OpenActive\Models\SchemaOrg\MedicalEntity $preparation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStatus($status)
+ public function setPreparation($preparation)
{
$types = [
"string",
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
- "null",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
];
- $status = self::checkTypes($status, $types);
+ $preparation = self::checkTypes($preparation, $types);
- $this->status = $status;
+ $this->preparation = $preparation;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
*/
- public function getHowPerformed()
+ public function getStatus()
{
- return $this->howPerformed;
+ return $this->status;
}
/**
- * @param string $howPerformed
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHowPerformed($howPerformed)
+ public function setStatus($status)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
"string",
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
+ "null",
];
- $howPerformed = self::checkTypes($howPerformed, $types);
+ $status = self::checkTypes($status, $types);
- $this->howPerformed = $howPerformed;
+ $this->status = $status;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
*/
- public function getFollowup()
+ public function getProcedureType()
{
- return $this->followup;
+ return $this->procedureType;
}
/**
- * @param string $followup
+ * @param \OpenActive\Models\SchemaOrg\MedicalProcedureType|string $procedureType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFollowup($followup)
+ public function setProcedureType($procedureType)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalProcedureType",
"string",
];
- $followup = self::checkTypes($followup, $types);
+ $procedureType = self::checkTypes($procedureType, $types);
- $this->followup = $followup;
+ $this->procedureType = $procedureType;
}
}
diff --git a/src/Models/SchemaOrg/MedicalSign.php b/src/Models/SchemaOrg/MedicalSign.php
index cb6ceebf..3842b425 100644
--- a/src/Models/SchemaOrg/MedicalSign.php
+++ b/src/Models/SchemaOrg/MedicalSign.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "identifyingTest" => "identifyingTest",
"identifyingExam" => "identifyingExam",
+ "identifyingTest" => "identifyingTest",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A diagnostic test that can identify this sign.
+ * A physical examination that can identify this sign.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @var \OpenActive\Models\SchemaOrg\PhysicalExam|string
*/
- protected $identifyingTest;
+ protected $identifyingExam;
/**
- * A physical examination that can identify this sign.
+ * A diagnostic test that can identify this sign.
*
*
- * @var \OpenActive\Models\SchemaOrg\PhysicalExam|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- protected $identifyingExam;
+ protected $identifyingTest;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @return \OpenActive\Models\SchemaOrg\PhysicalExam|string
*/
- public function getIdentifyingTest()
+ public function getIdentifyingExam()
{
- return $this->identifyingTest;
+ return $this->identifyingExam;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $identifyingTest
+ * @param \OpenActive\Models\SchemaOrg\PhysicalExam|string $identifyingExam
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIdentifyingTest($identifyingTest)
+ public function setIdentifyingExam($identifyingExam)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
+ "\OpenActive\Models\SchemaOrg\PhysicalExam",
"string",
];
- $identifyingTest = self::checkTypes($identifyingTest, $types);
+ $identifyingExam = self::checkTypes($identifyingExam, $types);
- $this->identifyingTest = $identifyingTest;
+ $this->identifyingExam = $identifyingExam;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PhysicalExam|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- public function getIdentifyingExam()
+ public function getIdentifyingTest()
{
- return $this->identifyingExam;
+ return $this->identifyingTest;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PhysicalExam|string $identifyingExam
+ * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $identifyingTest
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIdentifyingExam($identifyingExam)
+ public function setIdentifyingTest($identifyingTest)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PhysicalExam",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"string",
];
- $identifyingExam = self::checkTypes($identifyingExam, $types);
+ $identifyingTest = self::checkTypes($identifyingTest, $types);
- $this->identifyingExam = $identifyingExam;
+ $this->identifyingTest = $identifyingTest;
}
}
diff --git a/src/Models/SchemaOrg/MedicalStudy.php b/src/Models/SchemaOrg/MedicalStudy.php
index 080b8780..dce17008 100644
--- a/src/Models/SchemaOrg/MedicalStudy.php
+++ b/src/Models/SchemaOrg/MedicalStudy.php
@@ -18,9 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"healthCondition" => "healthCondition",
- "status" => "status",
"studySubject" => "studySubject",
"studyLocation" => "studyLocation",
+ "status" => "status",
"sponsor" => "sponsor",
];
@@ -35,14 +35,6 @@ public static function fieldList() {
*/
protected $healthCondition;
- /**
- * The status of the study (enumerated).
- *
- *
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
- */
- protected $status;
-
/**
* A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.
*
@@ -60,7 +52,15 @@ public static function fieldList() {
protected $studyLocation;
/**
- * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
+ * The status of the study (enumerated).
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ */
+ protected $status;
+
+ /**
+ * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
@@ -93,80 +93,80 @@ public function setHealthCondition($healthCondition)
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getStatus()
+ public function getStudySubject()
{
- return $this->status;
+ return $this->studySubject;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $studySubject
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStatus($status)
+ public function setStudySubject($studySubject)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
- "null",
];
- $status = self::checkTypes($status, $types);
+ $studySubject = self::checkTypes($studySubject, $types);
- $this->status = $status;
+ $this->studySubject = $studySubject;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getStudySubject()
+ public function getStudyLocation()
{
- return $this->studySubject;
+ return $this->studyLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $studySubject
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $studyLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStudySubject($studySubject)
+ public function setStudyLocation($studyLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $studySubject = self::checkTypes($studySubject, $types);
+ $studyLocation = self::checkTypes($studyLocation, $types);
- $this->studySubject = $studySubject;
+ $this->studyLocation = $studyLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
*/
- public function getStudyLocation()
+ public function getStatus()
{
- return $this->studyLocation;
+ return $this->status;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $studyLocation
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStudyLocation($studyLocation)
+ public function setStatus($status)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
"string",
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
+ "null",
];
- $studyLocation = self::checkTypes($studyLocation, $types);
+ $status = self::checkTypes($status, $types);
- $this->studyLocation = $studyLocation;
+ $this->status = $status;
}
/**
diff --git a/src/Models/SchemaOrg/MedicalTest.php b/src/Models/SchemaOrg/MedicalTest.php
index 76a74b88..0e9a83f2 100644
--- a/src/Models/SchemaOrg/MedicalTest.php
+++ b/src/Models/SchemaOrg/MedicalTest.php
@@ -17,39 +17,39 @@ public static function getType()
public static function fieldList() {
$fields = [
- "usedToDiagnose" => "usedToDiagnose",
- "affectedBy" => "affectedBy",
"normalRange" => "normalRange",
- "signDetected" => "signDetected",
+ "usedToDiagnose" => "usedToDiagnose",
"usesDevice" => "usesDevice",
+ "signDetected" => "signDetected",
+ "affectedBy" => "affectedBy",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A condition the test is used to diagnose.
+ * Range of acceptable values for a typical patient, when applicable.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
*/
- protected $usedToDiagnose;
+ protected $normalRange;
/**
- * Drugs that affect the test's results.
+ * A condition the test is used to diagnose.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $affectedBy;
+ protected $usedToDiagnose;
/**
- * Range of acceptable values for a typical patient, when applicable.
+ * Device used to perform the test.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalDevice|string
*/
- protected $normalRange;
+ protected $usesDevice;
/**
* A sign detected by the test.
@@ -60,87 +60,87 @@ public static function fieldList() {
protected $signDetected;
/**
- * Device used to perform the test.
+ * Drugs that affect the test's results.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalDevice|string
+ * @var \OpenActive\Models\SchemaOrg\Drug|string
*/
- protected $usesDevice;
+ protected $affectedBy;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
*/
- public function getUsedToDiagnose()
+ public function getNormalRange()
{
- return $this->usedToDiagnose;
+ return $this->normalRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $usedToDiagnose
+ * @param string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $normalRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUsedToDiagnose($usedToDiagnose)
+ public function setNormalRange($normalRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
+ "null",
];
- $usedToDiagnose = self::checkTypes($usedToDiagnose, $types);
+ $normalRange = self::checkTypes($normalRange, $types);
- $this->usedToDiagnose = $usedToDiagnose;
+ $this->normalRange = $normalRange;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getAffectedBy()
+ public function getUsedToDiagnose()
{
- return $this->affectedBy;
+ return $this->usedToDiagnose;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $affectedBy
+ * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $usedToDiagnose
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAffectedBy($affectedBy)
+ public function setUsedToDiagnose($usedToDiagnose)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $affectedBy = self::checkTypes($affectedBy, $types);
+ $usedToDiagnose = self::checkTypes($usedToDiagnose, $types);
- $this->affectedBy = $affectedBy;
+ $this->usedToDiagnose = $usedToDiagnose;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalDevice|string
*/
- public function getNormalRange()
+ public function getUsesDevice()
{
- return $this->normalRange;
+ return $this->usesDevice;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $normalRange
+ * @param \OpenActive\Models\SchemaOrg\MedicalDevice|string $usesDevice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNormalRange($normalRange)
+ public function setUsesDevice($usesDevice)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalDevice",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $normalRange = self::checkTypes($normalRange, $types);
+ $usesDevice = self::checkTypes($usesDevice, $types);
- $this->normalRange = $normalRange;
+ $this->usesDevice = $usesDevice;
}
/**
@@ -169,28 +169,28 @@ public function setSignDetected($signDetected)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalDevice|string
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getUsesDevice()
+ public function getAffectedBy()
{
- return $this->usesDevice;
+ return $this->affectedBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalDevice|string $usesDevice
+ * @param \OpenActive\Models\SchemaOrg\Drug|string $affectedBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUsesDevice($usesDevice)
+ public function setAffectedBy($affectedBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalDevice",
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $usesDevice = self::checkTypes($usesDevice, $types);
+ $affectedBy = self::checkTypes($affectedBy, $types);
- $this->usesDevice = $usesDevice;
+ $this->affectedBy = $affectedBy;
}
}
diff --git a/src/Models/SchemaOrg/MedicalTherapy.php b/src/Models/SchemaOrg/MedicalTherapy.php
index 74a5c5cb..7ebaf3b0 100644
--- a/src/Models/SchemaOrg/MedicalTherapy.php
+++ b/src/Models/SchemaOrg/MedicalTherapy.php
@@ -45,7 +45,7 @@ public static function fieldList() {
* A contraindication for this therapy.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @var \OpenActive\Models\SchemaOrg\MedicalContraindication|string
*/
protected $contraindication;
@@ -100,7 +100,7 @@ public function setSeriousAdverseOutcome($seriousAdverseOutcome)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @return \OpenActive\Models\SchemaOrg\MedicalContraindication|string
*/
public function getContraindication()
{
@@ -108,15 +108,15 @@ public function getContraindication()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
+ * @param \OpenActive\Models\SchemaOrg\MedicalContraindication|string $contraindication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setContraindication($contraindication)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\MedicalContraindication",
+ "string",
];
$contraindication = self::checkTypes($contraindication, $types);
diff --git a/src/Models/SchemaOrg/MedicalWebPage.php b/src/Models/SchemaOrg/MedicalWebPage.php
index ae5b9502..b998f4b4 100644
--- a/src/Models/SchemaOrg/MedicalWebPage.php
+++ b/src/Models/SchemaOrg/MedicalWebPage.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "aspect" => "aspect",
"medicalAudience" => "medicalAudience",
+ "aspect" => "aspect",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An aspect of medical practice that is considered on the page, such as 'diagnosis', 'treatment', 'causes', 'prognosis', 'etiology', 'epidemiology', etc.
+ * Medical audience for page.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string
*/
- protected $aspect;
+ protected $medicalAudience;
/**
- * Medical audience for page.
+ * An aspect of medical practice that is considered on the page, such as 'diagnosis', 'treatment', 'causes', 'prognosis', 'etiology', 'epidemiology', etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string
+ * @var string
*/
- protected $medicalAudience;
+ protected $aspect;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string
*/
- public function getAspect()
+ public function getMedicalAudience()
{
- return $this->aspect;
+ return $this->medicalAudience;
}
/**
- * @param string $aspect
+ * @param \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string $medicalAudience
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAspect($aspect)
+ public function setMedicalAudience($medicalAudience)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalAudienceType",
+ "\OpenActive\Models\SchemaOrg\MedicalAudience",
"string",
];
- $aspect = self::checkTypes($aspect, $types);
+ $medicalAudience = self::checkTypes($medicalAudience, $types);
- $this->aspect = $aspect;
+ $this->medicalAudience = $medicalAudience;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string
+ * @return string
*/
- public function getMedicalAudience()
+ public function getAspect()
{
- return $this->medicalAudience;
+ return $this->aspect;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string $medicalAudience
+ * @param string $aspect
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMedicalAudience($medicalAudience)
+ public function setAspect($aspect)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalAudienceType",
- "\OpenActive\Models\SchemaOrg\MedicalAudience",
"string",
];
- $medicalAudience = self::checkTypes($medicalAudience, $types);
+ $aspect = self::checkTypes($aspect, $types);
- $this->medicalAudience = $medicalAudience;
+ $this->aspect = $aspect;
}
}
diff --git a/src/Models/SchemaOrg/MenuItem.php b/src/Models/SchemaOrg/MenuItem.php
index 1dc921ac..8ca78522 100644
--- a/src/Models/SchemaOrg/MenuItem.php
+++ b/src/Models/SchemaOrg/MenuItem.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "menuAddOn" => "menuAddOn",
- "offers" => "offers",
"suitableForDiet" => "suitableForDiet",
+ "offers" => "offers",
"nutrition" => "nutrition",
+ "menuAddOn" => "menuAddOn",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Additional menu item(s) such as a side dish of salad or side order of fries that can be added to this menu item. Additionally it can be a menu section containing allowed add-on menu items for this menu item.
+ * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string
+ * @var \OpenActive\Enums\SchemaOrg\RestrictedDiet|null
*/
- protected $menuAddOn;
+ protected $suitableForDiet;
/**
* An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
@@ -44,45 +44,44 @@ public static function fieldList() {
protected $offers;
/**
- * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc.
+ * Nutrition information about the recipe or menu item.
*
*
- * @var \OpenActive\Enums\SchemaOrg\RestrictedDiet|null
+ * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string
*/
- protected $suitableForDiet;
+ protected $nutrition;
/**
- * Nutrition information about the recipe or menu item.
+ * Additional menu item(s) such as a side dish of salad or side order of fries that can be added to this menu item. Additionally it can be a menu section containing allowed add-on menu items for this menu item.
*
*
- * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string
+ * @var \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string
*/
- protected $nutrition;
+ protected $menuAddOn;
/**
- * @return \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string
+ * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null
*/
- public function getMenuAddOn()
+ public function getSuitableForDiet()
{
- return $this->menuAddOn;
+ return $this->suitableForDiet;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string $menuAddOn
+ * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMenuAddOn($menuAddOn)
+ public function setSuitableForDiet($suitableForDiet)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MenuItem",
- "\OpenActive\Models\SchemaOrg\MenuSection",
- "string",
+ "\OpenActive\Enums\SchemaOrg\RestrictedDiet",
+ "null",
];
- $menuAddOn = self::checkTypes($menuAddOn, $types);
+ $suitableForDiet = self::checkTypes($suitableForDiet, $types);
- $this->menuAddOn = $menuAddOn;
+ $this->suitableForDiet = $suitableForDiet;
}
/**
@@ -112,53 +111,54 @@ public function setOffers($offers)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null
+ * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string
*/
- public function getSuitableForDiet()
+ public function getNutrition()
{
- return $this->suitableForDiet;
+ return $this->nutrition;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet
+ * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSuitableForDiet($suitableForDiet)
+ public function setNutrition($nutrition)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\RestrictedDiet",
- "null",
+ "\OpenActive\Models\SchemaOrg\NutritionInformation",
+ "string",
];
- $suitableForDiet = self::checkTypes($suitableForDiet, $types);
+ $nutrition = self::checkTypes($nutrition, $types);
- $this->suitableForDiet = $suitableForDiet;
+ $this->nutrition = $nutrition;
}
/**
- * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string
+ * @return \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string
*/
- public function getNutrition()
+ public function getMenuAddOn()
{
- return $this->nutrition;
+ return $this->menuAddOn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition
+ * @param \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string $menuAddOn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNutrition($nutrition)
+ public function setMenuAddOn($menuAddOn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\NutritionInformation",
+ "\OpenActive\Models\SchemaOrg\MenuSection",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
"string",
];
- $nutrition = self::checkTypes($nutrition, $types);
+ $menuAddOn = self::checkTypes($menuAddOn, $types);
- $this->nutrition = $nutrition;
+ $this->menuAddOn = $menuAddOn;
}
}
diff --git a/src/Models/SchemaOrg/MerchantReturnPolicy.php b/src/Models/SchemaOrg/MerchantReturnPolicy.php
index e57e8719..911b9358 100644
--- a/src/Models/SchemaOrg/MerchantReturnPolicy.php
+++ b/src/Models/SchemaOrg/MerchantReturnPolicy.php
@@ -17,135 +17,136 @@ public static function getType()
public static function fieldList() {
$fields = [
- "returnPolicyCategory" => "returnPolicyCategory",
- "returnPolicyCountry" => "returnPolicyCountry",
- "merchantReturnLink" => "merchantReturnLink",
- "restockingFee" => "restockingFee",
- "itemDefectReturnShippingFeesAmount" => "itemDefectReturnShippingFeesAmount",
"itemDefectReturnFees" => "itemDefectReturnFees",
- "inStoreReturnsOffered" => "inStoreReturnsOffered",
- "itemCondition" => "itemCondition",
- "itemDefectReturnLabelSource" => "itemDefectReturnLabelSource",
- "returnLabelSource" => "returnLabelSource",
"customerRemorseReturnShippingFeesAmount" => "customerRemorseReturnShippingFeesAmount",
- "refundType" => "refundType",
- "returnShippingFeesAmount" => "returnShippingFeesAmount",
- "merchantReturnDays" => "merchantReturnDays",
- "returnMethod" => "returnMethod",
+ "restockingFee" => "restockingFee",
+ "returnFees" => "returnFees",
+ "inStoreReturnsOffered" => "inStoreReturnsOffered",
+ "returnPolicySeasonalOverride" => "returnPolicySeasonalOverride",
"additionalProperty" => "additionalProperty",
- "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource",
"customerRemorseReturnFees" => "customerRemorseReturnFees",
- "returnPolicySeasonalOverride" => "returnPolicySeasonalOverride",
+ "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource",
+ "merchantReturnLink" => "merchantReturnLink",
+ "returnPolicyCategory" => "returnPolicyCategory",
+ "returnMethod" => "returnMethod",
+ "refundType" => "refundType",
+ "merchantReturnDays" => "merchantReturnDays",
+ "returnLabelSource" => "returnLabelSource",
+ "itemDefectReturnShippingFeesAmount" => "itemDefectReturnShippingFeesAmount",
"applicableCountry" => "applicableCountry",
- "returnFees" => "returnFees",
+ "returnPolicyCountry" => "returnPolicyCountry",
+ "returnShippingFeesAmount" => "returnShippingFeesAmount",
+ "itemDefectReturnLabelSource" => "itemDefectReturnLabelSource",
+ "itemCondition" => "itemCondition",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Specifies an applicable return policy (from an enumeration).
+ * The type of return fees for returns of defect products.
*
*
- * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $returnPolicyCategory;
+ protected $itemDefectReturnFees;
/**
- * The country where the product has to be sent to for returns, for example "Ireland" using the [[name]] property of [[Country]]. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). Note that this can be different from the country where the product was originally shipped from or sent too.
+ * The amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $returnPolicyCountry;
+ protected $customerRemorseReturnShippingFeesAmount;
/**
- * Specifies a Web page or service by URL, for product returns.
+ * Use [[MonetaryAmount]] to specify a fixed restocking fee for product returns, or use [[Number]] to specify a percentage of the product price paid by the customer.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $merchantReturnLink;
+ protected $restockingFee;
/**
- * Use [[MonetaryAmount]] to specify a fixed restocking fee for product returns, or use [[Number]] to specify a percentage of the product price paid by the customer.
+ * The type of return fees for purchased products (for any return reason).
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $restockingFee;
+ protected $returnFees;
/**
- * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]].
+ * Are in-store returns offered? (For more advanced return methods use the [[returnMethod]] property.)
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var bool|null
*/
- protected $itemDefectReturnShippingFeesAmount;
+ protected $inStoreReturnsOffered;
/**
- * The type of return fees for returns of defect products.
+ * Seasonal override of a return policy.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string
*/
- protected $itemDefectReturnFees;
+ protected $returnPolicySeasonalOverride;
/**
- * Are in-store returns offered? (for more advanced return methods use the [[returnMethod]] property)
+ * A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism.
+ *
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $inStoreReturnsOffered;
+ protected $additionalProperty;
/**
- * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
+ * The type of return fees if the product is returned due to customer remorse.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $itemCondition;
+ protected $customerRemorseReturnFees;
/**
- * The method (from an enumeration) by which the customer obtains a return shipping label for a defect product.
+ * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned due to customer remorse.
*
*
* @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- protected $itemDefectReturnLabelSource;
+ protected $customerRemorseReturnLabelSource;
/**
- * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned for any reason.
+ * Specifies a Web page or service by URL, for product returns.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @var string
*/
- protected $returnLabelSource;
+ protected $merchantReturnLink;
/**
- * The amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]].
+ * Specifies an applicable return policy (from an enumeration).
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
*/
- protected $customerRemorseReturnShippingFeesAmount;
+ protected $returnPolicyCategory;
/**
- * A refund type, from an enumerated list.
+ * The type of return method offered, specified from an enumeration.
*
*
- * @var \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
*/
- protected $refundType;
+ protected $returnMethod;
/**
- * Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]].
+ * A refund type, from an enumerated list.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
*/
- protected $returnShippingFeesAmount;
+ protected $refundType;
/**
* Specifies either a fixed return date or the number of days (from the delivery date) that a product can be returned. Used when the [[returnPolicyCategory]] property is specified as [[MerchantReturnFiniteReturnWindow]].
@@ -156,386 +157,385 @@ public static function fieldList() {
protected $merchantReturnDays;
/**
- * The type of return method offered, specified from an enumeration.
+ * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned for any reason.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- protected $returnMethod;
+ protected $returnLabelSource;
/**
- * A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism.
- *
+ * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]].
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $additionalProperty;
+ protected $itemDefectReturnShippingFeesAmount;
/**
- * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned due to customer remorse.
+ * A country where a particular merchant return policy applies to, for example the two-letter ISO 3166-1 alpha-2 country code.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $customerRemorseReturnLabelSource;
+ protected $applicableCountry;
/**
- * The type of return fees if the product is returned due to customer remorse.
+ * The country where the product has to be sent to for returns, for example "Ireland" using the [[name]] property of [[Country]]. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). Note that this can be different from the country where the product was originally shipped from or sent to.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @var string|\OpenActive\Models\SchemaOrg\Country
*/
- protected $customerRemorseReturnFees;
+ protected $returnPolicyCountry;
/**
- * Seasonal override of a return policy.
+ * Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]].
*
*
- * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $returnPolicySeasonalOverride;
+ protected $returnShippingFeesAmount;
/**
- * A country where a particular merchant return policy applies to, for example the two-letter ISO 3166-1 alpha-2 country code.
+ * The method (from an enumeration) by which the customer obtains a return shipping label for a defect product.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Country
+ * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- protected $applicableCountry;
+ protected $itemDefectReturnLabelSource;
/**
- * The type of return fees for purchased products (for any return reason)
+ * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- protected $returnFees;
+ protected $itemCondition;
/**
- * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getReturnPolicyCategory()
+ public function getItemDefectReturnFees()
{
- return $this->returnPolicyCategory;
+ return $this->itemDefectReturnFees;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory
+ * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $itemDefectReturnFees
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnPolicyCategory($returnPolicyCategory)
+ public function setItemDefectReturnFees($itemDefectReturnFees)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
"null",
];
- $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
+ $itemDefectReturnFees = self::checkTypes($itemDefectReturnFees, $types);
- $this->returnPolicyCategory = $returnPolicyCategory;
+ $this->itemDefectReturnFees = $itemDefectReturnFees;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getReturnPolicyCountry()
+ public function getCustomerRemorseReturnShippingFeesAmount()
{
- return $this->returnPolicyCountry;
+ return $this->customerRemorseReturnShippingFeesAmount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $returnPolicyCountry
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $customerRemorseReturnShippingFeesAmount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnPolicyCountry($returnPolicyCountry)
+ public function setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types);
+ $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types);
- $this->returnPolicyCountry = $returnPolicyCountry;
+ $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getMerchantReturnLink()
+ public function getRestockingFee()
{
- return $this->merchantReturnLink;
+ return $this->restockingFee;
}
/**
- * @param string $merchantReturnLink
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $restockingFee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMerchantReturnLink($merchantReturnLink)
+ public function setRestockingFee($restockingFee)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
+ "null",
];
- $merchantReturnLink = self::checkTypes($merchantReturnLink, $types);
+ $restockingFee = self::checkTypes($restockingFee, $types);
- $this->merchantReturnLink = $merchantReturnLink;
+ $this->restockingFee = $restockingFee;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getRestockingFee()
+ public function getReturnFees()
{
- return $this->restockingFee;
+ return $this->returnFees;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $restockingFee
+ * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $returnFees
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRestockingFee($restockingFee)
+ public function setReturnFees($returnFees)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
- "Number",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
"null",
];
- $restockingFee = self::checkTypes($restockingFee, $types);
+ $returnFees = self::checkTypes($returnFees, $types);
- $this->restockingFee = $restockingFee;
+ $this->returnFees = $returnFees;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return bool|null
*/
- public function getItemDefectReturnShippingFeesAmount()
+ public function getInStoreReturnsOffered()
{
- return $this->itemDefectReturnShippingFeesAmount;
+ return $this->inStoreReturnsOffered;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $itemDefectReturnShippingFeesAmount
+ * @param bool|null $inStoreReturnsOffered
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount)
+ public function setInStoreReturnsOffered($inStoreReturnsOffered)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "bool",
+ "null",
];
- $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types);
+ $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types);
- $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount;
+ $this->inStoreReturnsOffered = $inStoreReturnsOffered;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string
*/
- public function getItemDefectReturnFees()
+ public function getReturnPolicySeasonalOverride()
{
- return $this->itemDefectReturnFees;
+ return $this->returnPolicySeasonalOverride;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $itemDefectReturnFees
+ * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string $returnPolicySeasonalOverride
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemDefectReturnFees($itemDefectReturnFees)
+ public function setReturnPolicySeasonalOverride($returnPolicySeasonalOverride)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride",
+ "string",
];
- $itemDefectReturnFees = self::checkTypes($itemDefectReturnFees, $types);
+ $returnPolicySeasonalOverride = self::checkTypes($returnPolicySeasonalOverride, $types);
- $this->itemDefectReturnFees = $itemDefectReturnFees;
+ $this->returnPolicySeasonalOverride = $returnPolicySeasonalOverride;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getInStoreReturnsOffered()
+ public function getAdditionalProperty()
{
- return $this->inStoreReturnsOffered;
+ return $this->additionalProperty;
}
/**
- * @param bool|null $inStoreReturnsOffered
+ * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInStoreReturnsOffered($inStoreReturnsOffered)
+ public function setAdditionalProperty($additionalProperty)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "string",
];
- $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types);
+ $additionalProperty = self::checkTypes($additionalProperty, $types);
- $this->inStoreReturnsOffered = $inStoreReturnsOffered;
+ $this->additionalProperty = $additionalProperty;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getItemCondition()
+ public function getCustomerRemorseReturnFees()
{
- return $this->itemCondition;
+ return $this->customerRemorseReturnFees;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
+ * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $customerRemorseReturnFees
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemCondition($itemCondition)
+ public function setCustomerRemorseReturnFees($customerRemorseReturnFees)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
"null",
];
- $itemCondition = self::checkTypes($itemCondition, $types);
+ $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types);
- $this->itemCondition = $itemCondition;
+ $this->customerRemorseReturnFees = $customerRemorseReturnFees;
}
/**
* @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- public function getItemDefectReturnLabelSource()
+ public function getCustomerRemorseReturnLabelSource()
{
- return $this->itemDefectReturnLabelSource;
+ return $this->customerRemorseReturnLabelSource;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $itemDefectReturnLabelSource
+ * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $customerRemorseReturnLabelSource
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemDefectReturnLabelSource($itemDefectReturnLabelSource)
+ public function setCustomerRemorseReturnLabelSource($customerRemorseReturnLabelSource)
{
$types = [
"\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
"null",
];
- $itemDefectReturnLabelSource = self::checkTypes($itemDefectReturnLabelSource, $types);
+ $customerRemorseReturnLabelSource = self::checkTypes($customerRemorseReturnLabelSource, $types);
- $this->itemDefectReturnLabelSource = $itemDefectReturnLabelSource;
+ $this->customerRemorseReturnLabelSource = $customerRemorseReturnLabelSource;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @return string
*/
- public function getReturnLabelSource()
+ public function getMerchantReturnLink()
{
- return $this->returnLabelSource;
+ return $this->merchantReturnLink;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $returnLabelSource
+ * @param string $merchantReturnLink
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnLabelSource($returnLabelSource)
+ public function setMerchantReturnLink($merchantReturnLink)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
- "null",
+ "string",
];
- $returnLabelSource = self::checkTypes($returnLabelSource, $types);
+ $merchantReturnLink = self::checkTypes($merchantReturnLink, $types);
- $this->returnLabelSource = $returnLabelSource;
+ $this->merchantReturnLink = $merchantReturnLink;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
*/
- public function getCustomerRemorseReturnShippingFeesAmount()
+ public function getReturnPolicyCategory()
{
- return $this->customerRemorseReturnShippingFeesAmount;
+ return $this->returnPolicyCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $customerRemorseReturnShippingFeesAmount
+ * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount)
+ public function setReturnPolicyCategory($returnPolicyCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
+ "null",
];
- $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types);
+ $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
- $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount;
+ $this->returnPolicyCategory = $returnPolicyCategory;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
*/
- public function getRefundType()
+ public function getReturnMethod()
{
- return $this->refundType;
+ return $this->returnMethod;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null $refundType
+ * @param \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null $returnMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRefundType($refundType)
+ public function setReturnMethod($returnMethod)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration",
+ "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration",
"null",
];
- $refundType = self::checkTypes($refundType, $types);
+ $returnMethod = self::checkTypes($returnMethod, $types);
- $this->refundType = $refundType;
+ $this->returnMethod = $returnMethod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
*/
- public function getReturnShippingFeesAmount()
+ public function getRefundType()
{
- return $this->returnShippingFeesAmount;
+ return $this->refundType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $returnShippingFeesAmount
+ * @param \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null $refundType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnShippingFeesAmount($returnShippingFeesAmount)
+ public function setRefundType($refundType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration",
+ "null",
];
- $returnShippingFeesAmount = self::checkTypes($returnShippingFeesAmount, $types);
+ $refundType = self::checkTypes($refundType, $types);
- $this->returnShippingFeesAmount = $returnShippingFeesAmount;
+ $this->refundType = $refundType;
}
/**
@@ -566,178 +566,178 @@ public function setMerchantReturnDays($merchantReturnDays)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- public function getReturnMethod()
+ public function getReturnLabelSource()
{
- return $this->returnMethod;
+ return $this->returnLabelSource;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null $returnMethod
+ * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $returnLabelSource
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnMethod($returnMethod)
+ public function setReturnLabelSource($returnLabelSource)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration",
+ "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
"null",
];
- $returnMethod = self::checkTypes($returnMethod, $types);
+ $returnLabelSource = self::checkTypes($returnLabelSource, $types);
- $this->returnMethod = $returnMethod;
+ $this->returnLabelSource = $returnLabelSource;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getAdditionalProperty()
+ public function getItemDefectReturnShippingFeesAmount()
{
- return $this->additionalProperty;
+ return $this->itemDefectReturnShippingFeesAmount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $itemDefectReturnShippingFeesAmount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdditionalProperty($additionalProperty)
+ public function setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $additionalProperty = self::checkTypes($additionalProperty, $types);
+ $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types);
- $this->additionalProperty = $additionalProperty;
+ $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getCustomerRemorseReturnLabelSource()
+ public function getApplicableCountry()
{
- return $this->customerRemorseReturnLabelSource;
+ return $this->applicableCountry;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $customerRemorseReturnLabelSource
+ * @param \OpenActive\Models\SchemaOrg\Country|string $applicableCountry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCustomerRemorseReturnLabelSource($customerRemorseReturnLabelSource)
+ public function setApplicableCountry($applicableCountry)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\Country",
+ "string",
];
- $customerRemorseReturnLabelSource = self::checkTypes($customerRemorseReturnLabelSource, $types);
+ $applicableCountry = self::checkTypes($applicableCountry, $types);
- $this->customerRemorseReturnLabelSource = $customerRemorseReturnLabelSource;
+ $this->applicableCountry = $applicableCountry;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return string|\OpenActive\Models\SchemaOrg\Country
*/
- public function getCustomerRemorseReturnFees()
+ public function getReturnPolicyCountry()
{
- return $this->customerRemorseReturnFees;
+ return $this->returnPolicyCountry;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $customerRemorseReturnFees
+ * @param string|\OpenActive\Models\SchemaOrg\Country $returnPolicyCountry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCustomerRemorseReturnFees($customerRemorseReturnFees)
+ public function setReturnPolicyCountry($returnPolicyCountry)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\Country",
];
- $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types);
+ $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types);
- $this->customerRemorseReturnFees = $customerRemorseReturnFees;
+ $this->returnPolicyCountry = $returnPolicyCountry;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getReturnPolicySeasonalOverride()
+ public function getReturnShippingFeesAmount()
{
- return $this->returnPolicySeasonalOverride;
+ return $this->returnShippingFeesAmount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string $returnPolicySeasonalOverride
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $returnShippingFeesAmount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnPolicySeasonalOverride($returnPolicySeasonalOverride)
+ public function setReturnShippingFeesAmount($returnShippingFeesAmount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $returnPolicySeasonalOverride = self::checkTypes($returnPolicySeasonalOverride, $types);
+ $returnShippingFeesAmount = self::checkTypes($returnShippingFeesAmount, $types);
- $this->returnPolicySeasonalOverride = $returnPolicySeasonalOverride;
+ $this->returnShippingFeesAmount = $returnShippingFeesAmount;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Country
+ * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- public function getApplicableCountry()
+ public function getItemDefectReturnLabelSource()
{
- return $this->applicableCountry;
+ return $this->itemDefectReturnLabelSource;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Country $applicableCountry
+ * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $itemDefectReturnLabelSource
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicableCountry($applicableCountry)
+ public function setItemDefectReturnLabelSource($itemDefectReturnLabelSource)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\Country",
+ "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
+ "null",
];
- $applicableCountry = self::checkTypes($applicableCountry, $types);
+ $itemDefectReturnLabelSource = self::checkTypes($itemDefectReturnLabelSource, $types);
- $this->applicableCountry = $applicableCountry;
+ $this->itemDefectReturnLabelSource = $itemDefectReturnLabelSource;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- public function getReturnFees()
+ public function getItemCondition()
{
- return $this->returnFees;
+ return $this->itemCondition;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $returnFees
+ * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnFees($returnFees)
+ public function setItemCondition($itemCondition)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
"null",
];
- $returnFees = self::checkTypes($returnFees, $types);
+ $itemCondition = self::checkTypes($itemCondition, $types);
- $this->returnFees = $returnFees;
+ $this->itemCondition = $itemCondition;
}
}
diff --git a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
index 042d983d..ddd8b93f 100644
--- a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
+++ b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
@@ -17,23 +17,15 @@ public static function getType()
public static function fieldList() {
$fields = [
- "returnPolicyCategory" => "returnPolicyCategory",
"startDate" => "startDate",
"endDate" => "endDate",
+ "returnPolicyCategory" => "returnPolicyCategory",
"merchantReturnDays" => "merchantReturnDays",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * Specifies an applicable return policy (from an enumeration).
- *
- *
- * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
- */
- protected $returnPolicyCategory;
-
/**
* The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
@@ -50,6 +42,14 @@ public static function fieldList() {
*/
protected $endDate;
+ /**
+ * Specifies an applicable return policy (from an enumeration).
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ */
+ protected $returnPolicyCategory;
+
/**
* Specifies either a fixed return date or the number of days (from the delivery date) that a product can be returned. Used when the [[returnPolicyCategory]] property is specified as [[MerchantReturnFiniteReturnWindow]].
*
@@ -59,44 +59,45 @@ public static function fieldList() {
protected $merchantReturnDays;
/**
- * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @return Date|DateTime|null
*/
- public function getReturnPolicyCategory()
+ public function getStartDate()
{
- return $this->returnPolicyCategory;
+ return $this->startDate;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnPolicyCategory($returnPolicyCategory)
+ public function setStartDate($startDate)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
+ "Date",
+ "DateTime",
"null",
];
- $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->returnPolicyCategory = $returnPolicyCategory;
+ $this->startDate = $startDate;
}
/**
* @return Date|DateTime|null
*/
- public function getStartDate()
+ public function getEndDate()
{
- return $this->startDate;
+ return $this->endDate;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setEndDate($endDate)
{
$types = [
"Date",
@@ -104,35 +105,34 @@ public function setStartDate($startDate)
"null",
];
- $startDate = self::checkTypes($startDate, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->startDate = $startDate;
+ $this->endDate = $endDate;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
*/
- public function getEndDate()
+ public function getReturnPolicyCategory()
{
- return $this->endDate;
+ return $this->returnPolicyCategory;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setReturnPolicyCategory($returnPolicyCategory)
{
$types = [
- "Date",
- "DateTime",
+ "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
- $this->endDate = $endDate;
+ $this->returnPolicyCategory = $returnPolicyCategory;
}
/**
diff --git a/src/Models/SchemaOrg/Message.php b/src/Models/SchemaOrg/Message.php
index 6803a9a6..b8a107d7 100644
--- a/src/Models/SchemaOrg/Message.php
+++ b/src/Models/SchemaOrg/Message.php
@@ -17,121 +17,122 @@ public static function getType()
public static function fieldList() {
$fields = [
- "bccRecipient" => "bccRecipient",
+ "toRecipient" => "toRecipient",
"recipient" => "recipient",
- "dateReceived" => "dateReceived",
- "ccRecipient" => "ccRecipient",
"messageAttachment" => "messageAttachment",
- "toRecipient" => "toRecipient",
"dateSent" => "dateSent",
- "dateRead" => "dateRead",
+ "bccRecipient" => "bccRecipient",
+ "dateReceived" => "dateReceived",
+ "ccRecipient" => "ccRecipient",
"sender" => "sender",
+ "dateRead" => "dateRead",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A sub property of recipient. The recipient blind copied on a message.
+ * A sub property of recipient. The recipient who was directly sent the message.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $bccRecipient;
+ protected $toRecipient;
/**
* A sub property of participant. The participant who is at the receiving end of the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
protected $recipient;
/**
- * The date/time the message was received if a single recipient exists.
+ * A CreativeWork attached to the message.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $dateReceived;
+ protected $messageAttachment;
/**
- * A sub property of recipient. The recipient copied on a message.
+ * The date/time at which the message was sent.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var DateTime|null
*/
- protected $ccRecipient;
+ protected $dateSent;
/**
- * A CreativeWork attached to the message.
+ * A sub property of recipient. The recipient blind copied on a message.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $messageAttachment;
+ protected $bccRecipient;
/**
- * A sub property of recipient. The recipient who was directly sent the message.
+ * The date/time the message was received if a single recipient exists.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var DateTime|null
*/
- protected $toRecipient;
+ protected $dateReceived;
/**
- * The date/time at which the message was sent.
+ * A sub property of recipient. The recipient copied on a message.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $dateSent;
+ protected $ccRecipient;
/**
- * The date/time at which the message has been read by the recipient if a single recipient exists.
+ * A sub property of participant. The participant who is at the sending end of the action.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $dateRead;
+ protected $sender;
/**
- * A sub property of participant. The participant who is at the sending end of the action.
+ * The date/time at which the message has been read by the recipient if a single recipient exists.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var Date|DateTime|null
*/
- protected $sender;
+ protected $dateRead;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getBccRecipient()
+ public function getToRecipient()
{
- return $this->bccRecipient;
+ return $this->toRecipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $bccRecipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $toRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBccRecipient($bccRecipient)
+ public function setToRecipient($toRecipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $bccRecipient = self::checkTypes($bccRecipient, $types);
+ $toRecipient = self::checkTypes($toRecipient, $types);
- $this->bccRecipient = $bccRecipient;
+ $this->toRecipient = $toRecipient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string
*/
public function getRecipient()
{
@@ -139,17 +140,17 @@ public function getRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRecipient($recipient)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
@@ -159,159 +160,132 @@ public function setRecipient($recipient)
}
/**
- * @return DateTime|null
- */
- public function getDateReceived()
- {
- return $this->dateReceived;
- }
-
- /**
- * @param DateTime|null $dateReceived
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setDateReceived($dateReceived)
- {
- $types = [
- "DateTime",
- "null",
- ];
-
- $dateReceived = self::checkTypes($dateReceived, $types);
-
- $this->dateReceived = $dateReceived;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getCcRecipient()
+ public function getMessageAttachment()
{
- return $this->ccRecipient;
+ return $this->messageAttachment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string $ccRecipient
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $messageAttachment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCcRecipient($ccRecipient)
+ public function setMessageAttachment($messageAttachment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $ccRecipient = self::checkTypes($ccRecipient, $types);
+ $messageAttachment = self::checkTypes($messageAttachment, $types);
- $this->ccRecipient = $ccRecipient;
+ $this->messageAttachment = $messageAttachment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return DateTime|null
*/
- public function getMessageAttachment()
+ public function getDateSent()
{
- return $this->messageAttachment;
+ return $this->dateSent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $messageAttachment
+ * @param DateTime|null $dateSent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMessageAttachment($messageAttachment)
+ public function setDateSent($dateSent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "string",
+ "DateTime",
+ "null",
];
- $messageAttachment = self::checkTypes($messageAttachment, $types);
+ $dateSent = self::checkTypes($dateSent, $types);
- $this->messageAttachment = $messageAttachment;
+ $this->dateSent = $dateSent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getToRecipient()
+ public function getBccRecipient()
{
- return $this->toRecipient;
+ return $this->bccRecipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $toRecipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $bccRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setToRecipient($toRecipient)
+ public function setBccRecipient($bccRecipient)
{
$types = [
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $toRecipient = self::checkTypes($toRecipient, $types);
+ $bccRecipient = self::checkTypes($bccRecipient, $types);
- $this->toRecipient = $toRecipient;
+ $this->bccRecipient = $bccRecipient;
}
/**
* @return DateTime|null
*/
- public function getDateSent()
+ public function getDateReceived()
{
- return $this->dateSent;
+ return $this->dateReceived;
}
/**
- * @param DateTime|null $dateSent
+ * @param DateTime|null $dateReceived
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateSent($dateSent)
+ public function setDateReceived($dateReceived)
{
$types = [
"DateTime",
"null",
];
- $dateSent = self::checkTypes($dateSent, $types);
+ $dateReceived = self::checkTypes($dateReceived, $types);
- $this->dateSent = $dateSent;
+ $this->dateReceived = $dateReceived;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDateRead()
+ public function getCcRecipient()
{
- return $this->dateRead;
+ return $this->ccRecipient;
}
/**
- * @param Date|DateTime|null $dateRead
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|string $ccRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateRead($dateRead)
+ public function setCcRecipient($ccRecipient)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $dateRead = self::checkTypes($dateRead, $types);
+ $ccRecipient = self::checkTypes($ccRecipient, $types);
- $this->dateRead = $dateRead;
+ $this->ccRecipient = $ccRecipient;
}
/**
@@ -341,4 +315,30 @@ public function setSender($sender)
$this->sender = $sender;
}
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getDateRead()
+ {
+ return $this->dateRead;
+ }
+
+ /**
+ * @param Date|DateTime|null $dateRead
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDateRead($dateRead)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $dateRead = self::checkTypes($dateRead, $types);
+
+ $this->dateRead = $dateRead;
+ }
+
}
diff --git a/src/Models/SchemaOrg/MolecularEntity.php b/src/Models/SchemaOrg/MolecularEntity.php
index 4a7fb865..a44b6885 100644
--- a/src/Models/SchemaOrg/MolecularEntity.php
+++ b/src/Models/SchemaOrg/MolecularEntity.php
@@ -17,28 +17,20 @@ public static function getType()
public static function fieldList() {
$fields = [
- "inChIKey" => "inChIKey",
"iupacName" => "iupacName",
- "monoisotopicMolecularWeight" => "monoisotopicMolecularWeight",
- "molecularFormula" => "molecularFormula",
+ "molecularWeight" => "molecularWeight",
+ "smiles" => "smiles",
"potentialUse" => "potentialUse",
"chemicalRole" => "chemicalRole",
- "molecularWeight" => "molecularWeight",
+ "inChIKey" => "inChIKey",
"inChI" => "inChI",
- "smiles" => "smiles",
+ "monoisotopicMolecularWeight" => "monoisotopicMolecularWeight",
+ "molecularFormula" => "molecularFormula",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * InChIKey is a hashed version of the full InChI (using the SHA-256 algorithm).
- *
- *
- * @var string
- */
- protected $inChIKey;
-
/**
* Systematic method of naming chemical compounds as recommended by the International Union of Pure and Applied Chemistry (IUPAC).
*
@@ -48,20 +40,20 @@ public static function fieldList() {
protected $iupacName;
/**
- * The monoisotopic mass is the sum of the masses of the atoms in a molecule using the unbound, ground-state, rest mass of the principal (most abundant) isotope for each element instead of the isotopic average mass. Please include the units the form '<Number> <unit>', for example '770.230488 g/mol' or as '<QuantitativeValue>.
+ * This is the molecular weight of the entity being described, not of the parent. Units should be included in the form '<Number> <unit>', for example '12 amu' or as '<QuantitativeValue>.
*
*
* @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- protected $monoisotopicMolecularWeight;
+ protected $molecularWeight;
/**
- * The empirical formula is the simplest whole number ratio of all the atoms in a molecule.
+ * A specification in form of a line notation for describing the structure of chemical species using short ASCII strings. Double bond stereochemistry \ indicators may need to be escaped in the string in formats where the backslash is an escape character.
*
*
* @var string
*/
- protected $molecularFormula;
+ protected $smiles;
/**
* Intended use of the BioChemEntity by humans.
@@ -80,12 +72,12 @@ public static function fieldList() {
protected $chemicalRole;
/**
- * This is the molecular weight of the entity being described, not of the parent. Units should be included in the form '<Number> <unit>', for example '12 amu' or as '<QuantitativeValue>.
+ * InChIKey is a hashed version of the full InChI (using the SHA-256 algorithm).
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $molecularWeight;
+ protected $inChIKey;
/**
* Non-proprietary identifier for molecular entity that can be used in printed and electronic data sources thus enabling easier linking of diverse data compilations.
@@ -96,36 +88,20 @@ public static function fieldList() {
protected $inChI;
/**
- * A specification in form of a line notation for describing the structure of chemical species using short ASCII strings. Double bond stereochemistry \ indicators may need to be escaped in the string in formats where the backslash is an escape character.
+ * The monoisotopic mass is the sum of the masses of the atoms in a molecule using the unbound, ground-state, rest mass of the principal (most abundant) isotope for each element instead of the isotopic average mass. Please include the units in the form '<Number> <unit>', for example '770.230488 g/mol' or as '<QuantitativeValue>.
*
*
- * @var string
- */
- protected $smiles;
-
- /**
- * @return string
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getInChIKey()
- {
- return $this->inChIKey;
- }
+ protected $monoisotopicMolecularWeight;
/**
- * @param string $inChIKey
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The empirical formula is the simplest whole number ratio of all the atoms in a molecule.
+ *
+ *
+ * @var string
*/
- public function setInChIKey($inChIKey)
- {
- $types = [
- "string",
- ];
-
- $inChIKey = self::checkTypes($inChIKey, $types);
-
- $this->inChIKey = $inChIKey;
- }
+ protected $molecularFormula;
/**
* @return string
@@ -154,50 +130,50 @@ public function setIupacName($iupacName)
/**
* @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getMonoisotopicMolecularWeight()
+ public function getMolecularWeight()
{
- return $this->monoisotopicMolecularWeight;
+ return $this->molecularWeight;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $monoisotopicMolecularWeight
+ * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $molecularWeight
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight)
+ public function setMolecularWeight($molecularWeight)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types);
+ $molecularWeight = self::checkTypes($molecularWeight, $types);
- $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight;
+ $this->molecularWeight = $molecularWeight;
}
/**
* @return string
*/
- public function getMolecularFormula()
+ public function getSmiles()
{
- return $this->molecularFormula;
+ return $this->smiles;
}
/**
- * @param string $molecularFormula
+ * @param string $smiles
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMolecularFormula($molecularFormula)
+ public function setSmiles($smiles)
{
$types = [
"string",
];
- $molecularFormula = self::checkTypes($molecularFormula, $types);
+ $smiles = self::checkTypes($smiles, $types);
- $this->molecularFormula = $molecularFormula;
+ $this->smiles = $smiles;
}
/**
@@ -251,28 +227,27 @@ public function setChemicalRole($chemicalRole)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getMolecularWeight()
+ public function getInChIKey()
{
- return $this->molecularWeight;
+ return $this->inChIKey;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $molecularWeight
+ * @param string $inChIKey
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMolecularWeight($molecularWeight)
+ public function setInChIKey($inChIKey)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $molecularWeight = self::checkTypes($molecularWeight, $types);
+ $inChIKey = self::checkTypes($inChIKey, $types);
- $this->molecularWeight = $molecularWeight;
+ $this->inChIKey = $inChIKey;
}
/**
@@ -299,28 +274,53 @@ public function setInChI($inChI)
$this->inChI = $inChI;
}
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ */
+ public function getMonoisotopicMolecularWeight()
+ {
+ return $this->monoisotopicMolecularWeight;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $monoisotopicMolecularWeight
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ ];
+
+ $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types);
+
+ $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight;
+ }
+
/**
* @return string
*/
- public function getSmiles()
+ public function getMolecularFormula()
{
- return $this->smiles;
+ return $this->molecularFormula;
}
/**
- * @param string $smiles
+ * @param string $molecularFormula
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSmiles($smiles)
+ public function setMolecularFormula($molecularFormula)
{
$types = [
"string",
];
- $smiles = self::checkTypes($smiles, $types);
+ $molecularFormula = self::checkTypes($molecularFormula, $types);
- $this->smiles = $smiles;
+ $this->molecularFormula = $molecularFormula;
}
}
diff --git a/src/Models/SchemaOrg/MonetaryAmount.php b/src/Models/SchemaOrg/MonetaryAmount.php
index 016e1527..5f9d3c38 100644
--- a/src/Models/SchemaOrg/MonetaryAmount.php
+++ b/src/Models/SchemaOrg/MonetaryAmount.php
@@ -17,17 +17,33 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "currency" => "currency",
+ "validThrough" => "validThrough",
"maxValue" => "maxValue",
"minValue" => "minValue",
"validFrom" => "validFrom",
"value" => "value",
- "currency" => "currency",
- "validThrough" => "validThrough",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
+ *
+ *
+ * @var string
+ */
+ protected $currency;
+
+ /**
+ * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $validThrough;
+
/**
* The upper value of some characteristic or property.
*
@@ -53,28 +69,62 @@ public static function fieldList() {
protected $validFrom;
/**
- * The value of the quantitative value or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text;', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * The value of a [[QuantitativeValue]] (including [[Observation]]) or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
*
*
- * @var string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @var Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null
*/
protected $value;
/**
- * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
- *
- *
- * @var string
+ * @return string
*/
- protected $currency;
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
/**
- * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
- *
- *
- * @var Date|DateTime|null
+ * @param string $currency
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $validThrough;
+ public function setCurrency($currency)
+ {
+ $types = [
+ "string",
+ ];
+
+ $currency = self::checkTypes($currency, $types);
+
+ $this->currency = $currency;
+ }
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getValidThrough()
+ {
+ return $this->validThrough;
+ }
+
+ /**
+ * @param Date|DateTime|null $validThrough
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setValidThrough($validThrough)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $validThrough = self::checkTypes($validThrough, $types);
+
+ $this->validThrough = $validThrough;
+ }
/**
* @return Number|null
@@ -153,7 +203,7 @@ public function setValidFrom($validFrom)
}
/**
- * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @return Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null
*/
public function getValue()
{
@@ -161,17 +211,17 @@ public function getValue()
}
/**
- * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value
+ * @param Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null $value
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setValue($value)
{
$types = [
- "string",
"Number",
"\OpenActive\Models\SchemaOrg\StructuredValue",
"bool",
+ "string",
"null",
];
@@ -180,54 +230,4 @@ public function setValue($value)
$this->value = $value;
}
- /**
- * @return string
- */
- public function getCurrency()
- {
- return $this->currency;
- }
-
- /**
- * @param string $currency
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setCurrency($currency)
- {
- $types = [
- "string",
- ];
-
- $currency = self::checkTypes($currency, $types);
-
- $this->currency = $currency;
- }
-
- /**
- * @return Date|DateTime|null
- */
- public function getValidThrough()
- {
- return $this->validThrough;
- }
-
- /**
- * @param Date|DateTime|null $validThrough
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setValidThrough($validThrough)
- {
- $types = [
- "Date",
- "DateTime",
- "null",
- ];
-
- $validThrough = self::checkTypes($validThrough, $types);
-
- $this->validThrough = $validThrough;
- }
-
}
diff --git a/src/Models/SchemaOrg/MonetaryAmountDistribution.php b/src/Models/SchemaOrg/MonetaryAmountDistribution.php
index 1de2d02e..002b3783 100644
--- a/src/Models/SchemaOrg/MonetaryAmountDistribution.php
+++ b/src/Models/SchemaOrg/MonetaryAmountDistribution.php
@@ -24,7 +24,7 @@ public static function fieldList() {
}
/**
- * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR".
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
* @var string
diff --git a/src/Models/SchemaOrg/MonetaryGrant.php b/src/Models/SchemaOrg/MonetaryGrant.php
index fd9e0a14..85b9513b 100644
--- a/src/Models/SchemaOrg/MonetaryGrant.php
+++ b/src/Models/SchemaOrg/MonetaryGrant.php
@@ -28,7 +28,7 @@ public static function fieldList() {
* A person or organization that supports (sponsors) something through some kind of financial contribution.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $funder;
@@ -36,12 +36,12 @@ public static function fieldList() {
* The amount of money.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
protected $amount;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getFunder()
{
@@ -49,15 +49,15 @@ public function getFunder()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setFunder($funder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
@@ -67,7 +67,7 @@ public function setFunder($funder)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getAmount()
{
@@ -75,16 +75,16 @@ public function getAmount()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAmount($amount)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/MoneyTransfer.php b/src/Models/SchemaOrg/MoneyTransfer.php
index 840cab16..5db69c9d 100644
--- a/src/Models/SchemaOrg/MoneyTransfer.php
+++ b/src/Models/SchemaOrg/MoneyTransfer.php
@@ -36,7 +36,7 @@ public static function fieldList() {
* The amount of money.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
protected $amount;
@@ -66,7 +66,7 @@ public function setBeneficiaryBank($beneficiaryBank)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getAmount()
{
@@ -74,16 +74,16 @@ public function getAmount()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAmount($amount)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/MortgageLoan.php b/src/Models/SchemaOrg/MortgageLoan.php
index ced7eb4d..cd7c3768 100644
--- a/src/Models/SchemaOrg/MortgageLoan.php
+++ b/src/Models/SchemaOrg/MortgageLoan.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "loanMortgageMandateAmount" => "loanMortgageMandateAmount",
"domiciledMortgage" => "domiciledMortgage",
+ "loanMortgageMandateAmount" => "loanMortgageMandateAmount",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Amount of mortgage mandate that can be converted into a proper mortgage at a later stage.
+ * Whether borrower is a resident of the jurisdiction where the property is located.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var bool|null
*/
- protected $loanMortgageMandateAmount;
+ protected $domiciledMortgage;
/**
- * Whether borrower is a resident of the jurisdiction where the property is located.
+ * Amount of mortgage mandate that can be converted into a proper mortgage at a later stage.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $domiciledMortgage;
+ protected $loanMortgageMandateAmount;
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return bool|null
*/
- public function getLoanMortgageMandateAmount()
+ public function getDomiciledMortgage()
{
- return $this->loanMortgageMandateAmount;
+ return $this->domiciledMortgage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $loanMortgageMandateAmount
+ * @param bool|null $domiciledMortgage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLoanMortgageMandateAmount($loanMortgageMandateAmount)
+ public function setDomiciledMortgage($domiciledMortgage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "bool",
+ "null",
];
- $loanMortgageMandateAmount = self::checkTypes($loanMortgageMandateAmount, $types);
+ $domiciledMortgage = self::checkTypes($domiciledMortgage, $types);
- $this->loanMortgageMandateAmount = $loanMortgageMandateAmount;
+ $this->domiciledMortgage = $domiciledMortgage;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getDomiciledMortgage()
+ public function getLoanMortgageMandateAmount()
{
- return $this->domiciledMortgage;
+ return $this->loanMortgageMandateAmount;
}
/**
- * @param bool|null $domiciledMortgage
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $loanMortgageMandateAmount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDomiciledMortgage($domiciledMortgage)
+ public function setLoanMortgageMandateAmount($loanMortgageMandateAmount)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
];
- $domiciledMortgage = self::checkTypes($domiciledMortgage, $types);
+ $loanMortgageMandateAmount = self::checkTypes($loanMortgageMandateAmount, $types);
- $this->domiciledMortgage = $domiciledMortgage;
+ $this->loanMortgageMandateAmount = $loanMortgageMandateAmount;
}
}
diff --git a/src/Models/SchemaOrg/MoveAction.php b/src/Models/SchemaOrg/MoveAction.php
index 03efe8fd..ee53b750 100644
--- a/src/Models/SchemaOrg/MoveAction.php
+++ b/src/Models/SchemaOrg/MoveAction.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "fromLocation" => "fromLocation",
"toLocation" => "toLocation",
+ "fromLocation" => "fromLocation",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A sub property of location. The original location of the object or the agent before the action.
+ * A sub property of location. The final location of the object or the agent after the action.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $fromLocation;
+ protected $toLocation;
/**
- * A sub property of location. The final location of the object or the agent after the action.
+ * A sub property of location. The original location of the object or the agent before the action.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $toLocation;
+ protected $fromLocation;
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getFromLocation()
+ public function getToLocation()
{
- return $this->fromLocation;
+ return $this->toLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation
+ * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFromLocation($fromLocation)
+ public function setToLocation($toLocation)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $fromLocation = self::checkTypes($fromLocation, $types);
+ $toLocation = self::checkTypes($toLocation, $types);
- $this->fromLocation = $fromLocation;
+ $this->toLocation = $toLocation;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getToLocation()
+ public function getFromLocation()
{
- return $this->toLocation;
+ return $this->fromLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation
+ * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setToLocation($toLocation)
+ public function setFromLocation($fromLocation)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $toLocation = self::checkTypes($toLocation, $types);
+ $fromLocation = self::checkTypes($fromLocation, $types);
- $this->toLocation = $toLocation;
+ $this->fromLocation = $fromLocation;
}
}
diff --git a/src/Models/SchemaOrg/Movie.php b/src/Models/SchemaOrg/Movie.php
index c86efcb6..1aca978f 100644
--- a/src/Models/SchemaOrg/Movie.php
+++ b/src/Models/SchemaOrg/Movie.php
@@ -17,97 +17,92 @@ public static function getType()
public static function fieldList() {
$fields = [
- "countryOfOrigin" => "countryOfOrigin",
- "director" => "director",
- "titleEIDR" => "titleEIDR",
- "subtitleLanguage" => "subtitleLanguage",
- "actor" => "actor",
"trailer" => "trailer",
- "duration" => "duration",
+ "actor" => "actor",
+ "subtitleLanguage" => "subtitleLanguage",
"productionCompany" => "productionCompany",
- "actors" => "actors",
"musicBy" => "musicBy",
+ "countryOfOrigin" => "countryOfOrigin",
"directors" => "directors",
+ "director" => "director",
+ "actors" => "actors",
+ "duration" => "duration",
+ "titleEIDR" => "titleEIDR",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The country of origin of something, including products as well as creative works such as movie and TV content.
- *
- * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable.
- *
- * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $countryOfOrigin;
+ protected $trailer;
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $director;
+ protected $actor;
/**
- * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television.
- *
- * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]].
- *
- * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description.
- *
+ * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $titleEIDR;
+ protected $subtitleLanguage;
/**
- * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Language|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $subtitleLanguage;
+ protected $productionCompany;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * The composer of the soundtrack.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $actor;
+ protected $musicBy;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The country of origin of something, including products as well as creative works such as movie and TV content.
+ *
+ * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable.
+ *
+ * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $trailer;
+ protected $countryOfOrigin;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $duration;
+ protected $directors;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $productionCompany;
+ protected $director;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
@@ -115,219 +110,225 @@ public static function fieldList() {
protected $actors;
/**
- * The composer of the soundtrack.
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var DateInterval|string|null
*/
- protected $musicBy;
+ protected $duration;
/**
- * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
+ * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television.
+ *
+ * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]].
+ *
+ * Since schema.org types like [[Movie]], [[TVEpisode]], [[TVSeason]], and [[TVSeries]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description.
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $directors;
+ protected $titleEIDR;
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getCountryOfOrigin()
+ public function getTrailer()
{
- return $this->countryOfOrigin;
+ return $this->trailer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
+ * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCountryOfOrigin($countryOfOrigin)
+ public function setTrailer($trailer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->countryOfOrigin = $countryOfOrigin;
+ $this->trailer = $trailer;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirector()
+ public function getActor()
{
- return $this->director;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setActor($actor)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $director = self::checkTypes($director, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->director = $director;
+ $this->actor = $actor;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getTitleEIDR()
+ public function getSubtitleLanguage()
{
- return $this->titleEIDR;
+ return $this->subtitleLanguage;
}
/**
- * @param string $titleEIDR
+ * @param string|\OpenActive\Models\SchemaOrg\Language $subtitleLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTitleEIDR($titleEIDR)
+ public function setSubtitleLanguage($subtitleLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $titleEIDR = self::checkTypes($titleEIDR, $types);
+ $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
- $this->titleEIDR = $titleEIDR;
+ $this->subtitleLanguage = $subtitleLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getSubtitleLanguage()
+ public function getProductionCompany()
{
- return $this->subtitleLanguage;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSubtitleLanguage($subtitleLanguage)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->subtitleLanguage = $subtitleLanguage;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActor()
+ public function getMusicBy()
{
- return $this->actor;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setMusicBy($musicBy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->actor = $actor;
+ $this->musicBy = $musicBy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getTrailer()
+ public function getCountryOfOrigin()
{
- return $this->trailer;
+ return $this->countryOfOrigin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrailer($trailer)
+ public function setCountryOfOrigin($countryOfOrigin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $trailer = self::checkTypes($trailer, $types);
+ $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
- $this->trailer = $trailer;
+ $this->countryOfOrigin = $countryOfOrigin;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDuration()
+ public function getDirectors()
{
- return $this->duration;
+ return $this->directors;
}
/**
- * @param DateInterval|string|null $duration
+ * @param \OpenActive\Models\SchemaOrg\Person|string $directors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setDirectors($directors)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->duration = $duration;
+ $this->directors = $directors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getProductionCompany()
+ public function getDirector()
{
- return $this->productionCompany;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param \OpenActive\Models\SchemaOrg\Person|string $director
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setDirector($director)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $director = self::checkTypes($director, $types);
- $this->productionCompany = $productionCompany;
+ $this->director = $director;
}
/**
@@ -356,54 +357,53 @@ public function setActors($actors)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return DateInterval|string|null
*/
- public function getMusicBy()
+ public function getDuration()
{
- return $this->musicBy;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicBy($musicBy)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "DateInterval",
"string",
+ "null",
];
- $musicBy = self::checkTypes($musicBy, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->musicBy = $musicBy;
+ $this->duration = $duration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getDirectors()
+ public function getTitleEIDR()
{
- return $this->directors;
+ return $this->titleEIDR;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @param string $titleEIDR
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirectors($directors)
+ public function setTitleEIDR($titleEIDR)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $titleEIDR = self::checkTypes($titleEIDR, $types);
- $this->directors = $directors;
+ $this->titleEIDR = $titleEIDR;
}
}
diff --git a/src/Models/SchemaOrg/MovieSeries.php b/src/Models/SchemaOrg/MovieSeries.php
index e262dec2..00136798 100644
--- a/src/Models/SchemaOrg/MovieSeries.php
+++ b/src/Models/SchemaOrg/MovieSeries.php
@@ -17,28 +17,28 @@ public static function getType()
public static function fieldList() {
$fields = [
- "director" => "director",
- "actor" => "actor",
"trailer" => "trailer",
+ "actor" => "actor",
"productionCompany" => "productionCompany",
- "actors" => "actors",
"musicBy" => "musicBy",
"directors" => "directors",
+ "director" => "director",
+ "actors" => "actors",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
+ * The trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $director;
+ protected $trailer;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
@@ -46,68 +46,68 @@ public static function fieldList() {
protected $actor;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $trailer;
+ protected $productionCompany;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The composer of the soundtrack.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $productionCompany;
+ protected $musicBy;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $actors;
+ protected $directors;
/**
- * The composer of the soundtrack.
+ * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $musicBy;
+ protected $director;
/**
- * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
+ * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $directors;
+ protected $actors;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getDirector()
+ public function getTrailer()
{
- return $this->director;
+ return $this->trailer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setTrailer($trailer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $director = self::checkTypes($director, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->director = $director;
+ $this->trailer = $trailer;
}
/**
@@ -136,129 +136,129 @@ public function setActor($actor)
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTrailer()
+ public function getProductionCompany()
{
- return $this->trailer;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrailer($trailer)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $trailer = self::checkTypes($trailer, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->trailer = $trailer;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getProductionCompany()
+ public function getMusicBy()
{
- return $this->productionCompany;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setMusicBy($musicBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->productionCompany = $productionCompany;
+ $this->musicBy = $musicBy;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActors()
+ public function getDirectors()
{
- return $this->actors;
+ return $this->directors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @param \OpenActive\Models\SchemaOrg\Person|string $directors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActors($actors)
+ public function setDirectors($directors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actors = self::checkTypes($actors, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->actors = $actors;
+ $this->directors = $directors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getMusicBy()
+ public function getDirector()
{
- return $this->musicBy;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
+ * @param \OpenActive\Models\SchemaOrg\Person|string $director
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicBy($musicBy)
+ public function setDirector($director)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $musicBy = self::checkTypes($musicBy, $types);
+ $director = self::checkTypes($director, $types);
- $this->musicBy = $musicBy;
+ $this->director = $director;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirectors()
+ public function getActors()
{
- return $this->directors;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @param \OpenActive\Models\SchemaOrg\Person|string $actors
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirectors($directors)
+ public function setActors($actors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->directors = $directors;
+ $this->actors = $actors;
}
}
diff --git a/src/Models/SchemaOrg/MovieTheater.php b/src/Models/SchemaOrg/MovieTheater.php
index e895b704..00b8bf52 100644
--- a/src/Models/SchemaOrg/MovieTheater.php
+++ b/src/Models/SchemaOrg/MovieTheater.php
@@ -5,7 +5,7 @@
/**
*
*/
-class MovieTheater extends \OpenActive\Models\SchemaOrg\CivicStructure
+class MovieTheater extends \OpenActive\Models\SchemaOrg\EntertainmentBusiness
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/Muscle.php b/src/Models/SchemaOrg/Muscle.php
index c9754755..28020bd8 100644
--- a/src/Models/SchemaOrg/Muscle.php
+++ b/src/Models/SchemaOrg/Muscle.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"insertion" => "insertion",
- "antagonist" => "antagonist",
- "nerve" => "nerve",
"bloodSupply" => "bloodSupply",
"muscleAction" => "muscleAction",
+ "nerve" => "nerve",
+ "antagonist" => "antagonist",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,36 +36,36 @@ public static function fieldList() {
protected $insertion;
/**
- * The muscle whose action counteracts the specified muscle.
+ * The blood vessel that carries blood from the heart to the muscle.
*
*
- * @var \OpenActive\Models\SchemaOrg\Muscle|string
+ * @var \OpenActive\Models\SchemaOrg\Vessel|string
*/
- protected $antagonist;
+ protected $bloodSupply;
/**
- * The underlying innervation associated with the muscle.
+ * The movement the muscle generates.
*
*
- * @var \OpenActive\Models\SchemaOrg\Nerve|string
+ * @var string
*/
- protected $nerve;
+ protected $muscleAction;
/**
- * The blood vessel that carries blood from the heart to the muscle.
+ * The underlying innervation associated with the muscle.
*
*
- * @var \OpenActive\Models\SchemaOrg\Vessel|string
+ * @var \OpenActive\Models\SchemaOrg\Nerve|string
*/
- protected $bloodSupply;
+ protected $nerve;
/**
- * The movement the muscle generates.
+ * The muscle whose action counteracts the specified muscle.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Muscle|string
*/
- protected $muscleAction;
+ protected $antagonist;
/**
* @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
@@ -93,102 +93,102 @@ public function setInsertion($insertion)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Muscle|string
+ * @return \OpenActive\Models\SchemaOrg\Vessel|string
*/
- public function getAntagonist()
+ public function getBloodSupply()
{
- return $this->antagonist;
+ return $this->bloodSupply;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Muscle|string $antagonist
+ * @param \OpenActive\Models\SchemaOrg\Vessel|string $bloodSupply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAntagonist($antagonist)
+ public function setBloodSupply($bloodSupply)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Muscle",
+ "\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $antagonist = self::checkTypes($antagonist, $types);
+ $bloodSupply = self::checkTypes($bloodSupply, $types);
- $this->antagonist = $antagonist;
+ $this->bloodSupply = $bloodSupply;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Nerve|string
+ * @return string
*/
- public function getNerve()
+ public function getMuscleAction()
{
- return $this->nerve;
+ return $this->muscleAction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Nerve|string $nerve
+ * @param string $muscleAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNerve($nerve)
+ public function setMuscleAction($muscleAction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Nerve",
"string",
];
- $nerve = self::checkTypes($nerve, $types);
+ $muscleAction = self::checkTypes($muscleAction, $types);
- $this->nerve = $nerve;
+ $this->muscleAction = $muscleAction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Vessel|string
+ * @return \OpenActive\Models\SchemaOrg\Nerve|string
*/
- public function getBloodSupply()
+ public function getNerve()
{
- return $this->bloodSupply;
+ return $this->nerve;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $bloodSupply
+ * @param \OpenActive\Models\SchemaOrg\Nerve|string $nerve
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBloodSupply($bloodSupply)
+ public function setNerve($nerve)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vessel",
+ "\OpenActive\Models\SchemaOrg\Nerve",
"string",
];
- $bloodSupply = self::checkTypes($bloodSupply, $types);
+ $nerve = self::checkTypes($nerve, $types);
- $this->bloodSupply = $bloodSupply;
+ $this->nerve = $nerve;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Muscle|string
*/
- public function getMuscleAction()
+ public function getAntagonist()
{
- return $this->muscleAction;
+ return $this->antagonist;
}
/**
- * @param string $muscleAction
+ * @param \OpenActive\Models\SchemaOrg\Muscle|string $antagonist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMuscleAction($muscleAction)
+ public function setAntagonist($antagonist)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Muscle",
"string",
];
- $muscleAction = self::checkTypes($muscleAction, $types);
+ $antagonist = self::checkTypes($antagonist, $types);
- $this->muscleAction = $muscleAction;
+ $this->antagonist = $antagonist;
}
}
diff --git a/src/Models/SchemaOrg/MusicAlbum.php b/src/Models/SchemaOrg/MusicAlbum.php
index 004dcd17..6fdf7843 100644
--- a/src/Models/SchemaOrg/MusicAlbum.php
+++ b/src/Models/SchemaOrg/MusicAlbum.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "albumProductionType" => "albumProductionType",
+ "byArtist" => "byArtist",
"albumReleaseType" => "albumReleaseType",
+ "albumProductionType" => "albumProductionType",
"albumRelease" => "albumRelease",
- "byArtist" => "byArtist",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Classification of the album by it's type of content: soundtrack, live album, studio album, etc.
+ * The artist that performed this album or recording.
*
*
- * @var \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $albumProductionType;
+ protected $byArtist;
/**
* The kind of release which this album is: single, EP or album.
@@ -43,44 +43,45 @@ public static function fieldList() {
protected $albumReleaseType;
/**
- * A release of this album.
+ * Classification of the album by its type of content: soundtrack, live album, studio album, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRelease|string
+ * @var \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null
*/
- protected $albumRelease;
+ protected $albumProductionType;
/**
- * The artist that performed this album or recording.
+ * A release of this album.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var \OpenActive\Models\SchemaOrg\MusicRelease|string
*/
- protected $byArtist;
+ protected $albumRelease;
/**
- * @return \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAlbumProductionType()
+ public function getByArtist()
{
- return $this->albumProductionType;
+ return $this->byArtist;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null $albumProductionType
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $byArtist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlbumProductionType($albumProductionType)
+ public function setByArtist($byArtist)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MusicAlbumProductionType",
- "null",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $albumProductionType = self::checkTypes($albumProductionType, $types);
+ $byArtist = self::checkTypes($byArtist, $types);
- $this->albumProductionType = $albumProductionType;
+ $this->byArtist = $byArtist;
}
/**
@@ -109,54 +110,53 @@ public function setAlbumReleaseType($albumReleaseType)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRelease|string
+ * @return \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null
*/
- public function getAlbumRelease()
+ public function getAlbumProductionType()
{
- return $this->albumRelease;
+ return $this->albumProductionType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRelease|string $albumRelease
+ * @param \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null $albumProductionType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlbumRelease($albumRelease)
+ public function setAlbumProductionType($albumProductionType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicRelease",
- "string",
+ "\OpenActive\Enums\SchemaOrg\MusicAlbumProductionType",
+ "null",
];
- $albumRelease = self::checkTypes($albumRelease, $types);
+ $albumProductionType = self::checkTypes($albumProductionType, $types);
- $this->albumRelease = $albumRelease;
+ $this->albumProductionType = $albumProductionType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\MusicRelease|string
*/
- public function getByArtist()
+ public function getAlbumRelease()
{
- return $this->byArtist;
+ return $this->albumRelease;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $byArtist
+ * @param \OpenActive\Models\SchemaOrg\MusicRelease|string $albumRelease
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setByArtist($byArtist)
+ public function setAlbumRelease($albumRelease)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\MusicRelease",
"string",
];
- $byArtist = self::checkTypes($byArtist, $types);
+ $albumRelease = self::checkTypes($albumRelease, $types);
- $this->byArtist = $byArtist;
+ $this->albumRelease = $albumRelease;
}
}
diff --git a/src/Models/SchemaOrg/MusicComposition.php b/src/Models/SchemaOrg/MusicComposition.php
index c1427176..29a6b157 100644
--- a/src/Models/SchemaOrg/MusicComposition.php
+++ b/src/Models/SchemaOrg/MusicComposition.php
@@ -17,347 +17,347 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "lyrics" => "lyrics",
+ "musicArrangement" => "musicArrangement",
+ "firstPerformance" => "firstPerformance",
+ "lyricist" => "lyricist",
"iswcCode" => "iswcCode",
- "composer" => "composer",
"musicCompositionForm" => "musicCompositionForm",
- "includedComposition" => "includedComposition",
- "recordedAs" => "recordedAs",
- "firstPerformance" => "firstPerformance",
- "musicArrangement" => "musicArrangement",
- "lyrics" => "lyrics",
+ "composer" => "composer",
"musicalKey" => "musicalKey",
- "lyricist" => "lyricist",
+ "recordedAs" => "recordedAs",
+ "includedComposition" => "includedComposition",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The International Standard Musical Work Code for the composition.
+ * The words in the song.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $iswcCode;
+ protected $lyrics;
/**
- * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
+ * An arrangement derived from the composition.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- protected $composer;
+ protected $musicArrangement;
/**
- * The type of composition (e.g. overture, sonata, symphony, etc.).
+ * The date and place the work was first performed.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $musicCompositionForm;
+ protected $firstPerformance;
/**
- * Smaller compositions included in this work (e.g. a movement in a symphony).
+ * The person who wrote the words.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $includedComposition;
+ protected $lyricist;
/**
- * An audio recording of the work.
+ * The International Standard Musical Work Code for the composition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var string
*/
- protected $recordedAs;
+ protected $iswcCode;
/**
- * The date and place the work was first performed.
+ * The type of composition (e.g. overture, sonata, symphony, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var string
*/
- protected $firstPerformance;
+ protected $musicCompositionForm;
/**
- * An arrangement derived from the composition.
+ * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $musicArrangement;
+ protected $composer;
/**
- * The words in the song.
+ * The key, mode, or scale this composition uses.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string
*/
- protected $lyrics;
+ protected $musicalKey;
/**
- * The key, mode, or scale this composition uses.
+ * An audio recording of the work.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $musicalKey;
+ protected $recordedAs;
/**
- * The person who wrote the words.
+ * Smaller compositions included in this work (e.g. a movement in a symphony).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- protected $lyricist;
+ protected $includedComposition;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getIswcCode()
+ public function getLyrics()
{
- return $this->iswcCode;
+ return $this->lyrics;
}
/**
- * @param string $iswcCode
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $lyrics
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIswcCode($iswcCode)
+ public function setLyrics($lyrics)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $iswcCode = self::checkTypes($iswcCode, $types);
+ $lyrics = self::checkTypes($lyrics, $types);
- $this->iswcCode = $iswcCode;
+ $this->lyrics = $lyrics;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- public function getComposer()
+ public function getMusicArrangement()
{
- return $this->composer;
+ return $this->musicArrangement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer
+ * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $musicArrangement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setComposer($composer)
+ public function setMusicArrangement($musicArrangement)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicComposition",
"string",
];
- $composer = self::checkTypes($composer, $types);
+ $musicArrangement = self::checkTypes($musicArrangement, $types);
- $this->composer = $composer;
+ $this->musicArrangement = $musicArrangement;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getMusicCompositionForm()
+ public function getFirstPerformance()
{
- return $this->musicCompositionForm;
+ return $this->firstPerformance;
}
/**
- * @param string $musicCompositionForm
+ * @param \OpenActive\Models\SchemaOrg\Event|string $firstPerformance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicCompositionForm($musicCompositionForm)
+ public function setFirstPerformance($firstPerformance)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $musicCompositionForm = self::checkTypes($musicCompositionForm, $types);
+ $firstPerformance = self::checkTypes($firstPerformance, $types);
- $this->musicCompositionForm = $musicCompositionForm;
+ $this->firstPerformance = $firstPerformance;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getIncludedComposition()
+ public function getLyricist()
{
- return $this->includedComposition;
+ return $this->lyricist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $includedComposition
+ * @param \OpenActive\Models\SchemaOrg\Person|string $lyricist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludedComposition($includedComposition)
+ public function setLyricist($lyricist)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicComposition",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $includedComposition = self::checkTypes($includedComposition, $types);
+ $lyricist = self::checkTypes($lyricist, $types);
- $this->includedComposition = $includedComposition;
+ $this->lyricist = $lyricist;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return string
*/
- public function getRecordedAs()
+ public function getIswcCode()
{
- return $this->recordedAs;
+ return $this->iswcCode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $recordedAs
+ * @param string $iswcCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordedAs($recordedAs)
+ public function setIswcCode($iswcCode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $recordedAs = self::checkTypes($recordedAs, $types);
+ $iswcCode = self::checkTypes($iswcCode, $types);
- $this->recordedAs = $recordedAs;
+ $this->iswcCode = $iswcCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return string
*/
- public function getFirstPerformance()
+ public function getMusicCompositionForm()
{
- return $this->firstPerformance;
+ return $this->musicCompositionForm;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $firstPerformance
+ * @param string $musicCompositionForm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFirstPerformance($firstPerformance)
+ public function setMusicCompositionForm($musicCompositionForm)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $firstPerformance = self::checkTypes($firstPerformance, $types);
+ $musicCompositionForm = self::checkTypes($musicCompositionForm, $types);
- $this->firstPerformance = $firstPerformance;
+ $this->musicCompositionForm = $musicCompositionForm;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getMusicArrangement()
+ public function getComposer()
{
- return $this->musicArrangement;
+ return $this->composer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $musicArrangement
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicArrangement($musicArrangement)
+ public function setComposer($composer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicComposition",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $musicArrangement = self::checkTypes($musicArrangement, $types);
+ $composer = self::checkTypes($composer, $types);
- $this->musicArrangement = $musicArrangement;
+ $this->composer = $composer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getLyrics()
+ public function getMusicalKey()
{
- return $this->lyrics;
+ return $this->musicalKey;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $lyrics
+ * @param string $musicalKey
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLyrics($lyrics)
+ public function setMusicalKey($musicalKey)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $lyrics = self::checkTypes($lyrics, $types);
+ $musicalKey = self::checkTypes($musicalKey, $types);
- $this->lyrics = $lyrics;
+ $this->musicalKey = $musicalKey;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getMusicalKey()
+ public function getRecordedAs()
{
- return $this->musicalKey;
+ return $this->recordedAs;
}
/**
- * @param string $musicalKey
+ * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $recordedAs
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicalKey($musicalKey)
+ public function setRecordedAs($recordedAs)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $musicalKey = self::checkTypes($musicalKey, $types);
+ $recordedAs = self::checkTypes($recordedAs, $types);
- $this->musicalKey = $musicalKey;
+ $this->recordedAs = $recordedAs;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- public function getLyricist()
+ public function getIncludedComposition()
{
- return $this->lyricist;
+ return $this->includedComposition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $lyricist
+ * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $includedComposition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLyricist($lyricist)
+ public function setIncludedComposition($includedComposition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicComposition",
"string",
];
- $lyricist = self::checkTypes($lyricist, $types);
+ $includedComposition = self::checkTypes($includedComposition, $types);
- $this->lyricist = $lyricist;
+ $this->includedComposition = $includedComposition;
}
}
diff --git a/src/Models/SchemaOrg/MusicGroup.php b/src/Models/SchemaOrg/MusicGroup.php
index 6d520149..564c9c89 100644
--- a/src/Models/SchemaOrg/MusicGroup.php
+++ b/src/Models/SchemaOrg/MusicGroup.php
@@ -17,24 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "tracks" => "tracks",
+ "album" => "album",
"genre" => "genre",
- "musicGroupMember" => "musicGroupMember",
- "albums" => "albums",
"track" => "track",
- "album" => "album",
+ "albums" => "albums",
+ "musicGroupMember" => "musicGroupMember",
+ "tracks" => "tracks",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A music recording (track)—usually a single song.
+ * A music album.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $tracks;
+ protected $album;
/**
* Genre of the creative work, broadcast channel or group.
@@ -45,12 +45,12 @@ public static function fieldList() {
protected $genre;
/**
- * A member of a music group—for example, John, Paul, George, or Ringo.
+ * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $musicGroupMember;
+ protected $track;
/**
* A collection of music albums.
@@ -61,44 +61,44 @@ public static function fieldList() {
protected $albums;
/**
- * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
+ * A member of a music group—for example, John, Paul, George, or Ringo.
*
*
- * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $track;
+ protected $musicGroupMember;
/**
- * A music album.
+ * A music recording (track)—usually a single song.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $album;
+ protected $tracks;
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function getTracks()
+ public function getAlbum()
{
- return $this->tracks;
+ return $this->album;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks
+ * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $album
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTracks($tracks)
+ public function setAlbum($album)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $tracks = self::checkTypes($tracks, $types);
+ $album = self::checkTypes($album, $types);
- $this->tracks = $tracks;
+ $this->album = $album;
}
/**
@@ -126,28 +126,29 @@ public function setGenre($genre)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getMusicGroupMember()
+ public function getTrack()
{
- return $this->musicGroupMember;
+ return $this->track;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $musicGroupMember
+ * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string $track
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicGroupMember($musicGroupMember)
+ public function setTrack($track)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\ItemList",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $musicGroupMember = self::checkTypes($musicGroupMember, $types);
+ $track = self::checkTypes($track, $types);
- $this->musicGroupMember = $musicGroupMember;
+ $this->track = $track;
}
/**
@@ -176,54 +177,53 @@ public function setAlbums($albums)
}
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getTrack()
+ public function getMusicGroupMember()
{
- return $this->track;
+ return $this->musicGroupMember;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string $track
+ * @param \OpenActive\Models\SchemaOrg\Person|string $musicGroupMember
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrack($track)
+ public function setMusicGroupMember($musicGroupMember)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ItemList",
- "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $track = self::checkTypes($track, $types);
+ $musicGroupMember = self::checkTypes($musicGroupMember, $types);
- $this->track = $track;
+ $this->musicGroupMember = $musicGroupMember;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getAlbum()
+ public function getTracks()
{
- return $this->album;
+ return $this->tracks;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $album
+ * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlbum($album)
+ public function setTracks($tracks)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $album = self::checkTypes($album, $types);
+ $tracks = self::checkTypes($tracks, $types);
- $this->album = $album;
+ $this->tracks = $tracks;
}
}
diff --git a/src/Models/SchemaOrg/MusicPlaylist.php b/src/Models/SchemaOrg/MusicPlaylist.php
index b445413a..3a19e0aa 100644
--- a/src/Models/SchemaOrg/MusicPlaylist.php
+++ b/src/Models/SchemaOrg/MusicPlaylist.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "tracks" => "tracks",
- "numTracks" => "numTracks",
"track" => "track",
+ "numTracks" => "numTracks",
+ "tracks" => "tracks",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A music recording (track)—usually a single song.
+ * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $tracks;
+ protected $track;
/**
* The number of tracks in this album or playlist.
@@ -42,36 +42,37 @@ public static function fieldList() {
protected $numTracks;
/**
- * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
+ * A music recording (track)—usually a single song.
*
*
- * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $track;
+ protected $tracks;
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getTracks()
+ public function getTrack()
{
- return $this->tracks;
+ return $this->track;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks
+ * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string $track
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTracks($tracks)
+ public function setTrack($track)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ItemList",
"\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $tracks = self::checkTypes($tracks, $types);
+ $track = self::checkTypes($track, $types);
- $this->tracks = $tracks;
+ $this->track = $track;
}
/**
@@ -100,29 +101,28 @@ public function setNumTracks($numTracks)
}
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getTrack()
+ public function getTracks()
{
- return $this->track;
+ return $this->tracks;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string $track
+ * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrack($track)
+ public function setTracks($tracks)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ItemList",
"\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $track = self::checkTypes($track, $types);
+ $tracks = self::checkTypes($tracks, $types);
- $this->track = $track;
+ $this->tracks = $tracks;
}
}
diff --git a/src/Models/SchemaOrg/MusicRecording.php b/src/Models/SchemaOrg/MusicRecording.php
index 9784c961..c48cbac2 100644
--- a/src/Models/SchemaOrg/MusicRecording.php
+++ b/src/Models/SchemaOrg/MusicRecording.php
@@ -17,17 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "byArtist" => "byArtist",
"isrcCode" => "isrcCode",
"inPlaylist" => "inPlaylist",
- "inAlbum" => "inAlbum",
"recordingOf" => "recordingOf",
+ "inAlbum" => "inAlbum",
"duration" => "duration",
- "byArtist" => "byArtist",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The artist that performed this album or recording.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
+ */
+ protected $byArtist;
+
/**
* The International Standard Recording Code for the recording.
*
@@ -45,20 +53,20 @@ public static function fieldList() {
protected $inPlaylist;
/**
- * The album to which this recording belongs.
+ * The composition this track is a recording of.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- protected $inAlbum;
+ protected $recordingOf;
/**
- * The composition this track is a recording of.
+ * The album to which this recording belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $recordingOf;
+ protected $inAlbum;
/**
* The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
@@ -69,12 +77,30 @@ public static function fieldList() {
protected $duration;
/**
- * The artist that performed this album or recording.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $byArtist;
+ public function getByArtist()
+ {
+ return $this->byArtist;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $byArtist
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setByArtist($byArtist)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
+ ];
+
+ $byArtist = self::checkTypes($byArtist, $types);
+
+ $this->byArtist = $byArtist;
+ }
/**
* @return string
@@ -126,53 +152,53 @@ public function setInPlaylist($inPlaylist)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- public function getInAlbum()
+ public function getRecordingOf()
{
- return $this->inAlbum;
+ return $this->recordingOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $inAlbum
+ * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $recordingOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInAlbum($inAlbum)
+ public function setRecordingOf($recordingOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
+ "\OpenActive\Models\SchemaOrg\MusicComposition",
"string",
];
- $inAlbum = self::checkTypes($inAlbum, $types);
+ $recordingOf = self::checkTypes($recordingOf, $types);
- $this->inAlbum = $inAlbum;
+ $this->recordingOf = $recordingOf;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function getRecordingOf()
+ public function getInAlbum()
{
- return $this->recordingOf;
+ return $this->inAlbum;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $recordingOf
+ * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $inAlbum
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordingOf($recordingOf)
+ public function setInAlbum($inAlbum)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicComposition",
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $recordingOf = self::checkTypes($recordingOf, $types);
+ $inAlbum = self::checkTypes($inAlbum, $types);
- $this->recordingOf = $recordingOf;
+ $this->inAlbum = $inAlbum;
}
/**
@@ -201,30 +227,4 @@ public function setDuration($duration)
$this->duration = $duration;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
- */
- public function getByArtist()
- {
- return $this->byArtist;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $byArtist
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setByArtist($byArtist)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
- "string",
- ];
-
- $byArtist = self::checkTypes($byArtist, $types);
-
- $this->byArtist = $byArtist;
- }
-
}
diff --git a/src/Models/SchemaOrg/MusicRelease.php b/src/Models/SchemaOrg/MusicRelease.php
index 163cea5a..5e6a72c0 100644
--- a/src/Models/SchemaOrg/MusicRelease.php
+++ b/src/Models/SchemaOrg/MusicRelease.php
@@ -17,27 +17,27 @@ public static function getType()
public static function fieldList() {
$fields = [
- "releaseOf" => "releaseOf",
- "musicReleaseFormat" => "musicReleaseFormat",
- "duration" => "duration",
- "creditedTo" => "creditedTo",
"recordLabel" => "recordLabel",
+ "musicReleaseFormat" => "musicReleaseFormat",
+ "releaseOf" => "releaseOf",
"catalogNumber" => "catalogNumber",
+ "creditedTo" => "creditedTo",
+ "duration" => "duration",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The album this is a release of.
+ * The label that issued the release.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $releaseOf;
+ protected $recordLabel;
/**
- * Format of this release (the type of recording media used, ie. compact disc, digital media, LP, etc.).
+ * Format of this release (the type of recording media used, i.e. compact disc, digital media, LP, etc.).
*
*
* @var \OpenActive\Enums\SchemaOrg\MusicReleaseFormatType|null
@@ -45,60 +45,60 @@ public static function fieldList() {
protected $musicReleaseFormat;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The album this is a release of.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $duration;
+ protected $releaseOf;
/**
- * The group the release is credited to if different than the byArtist. For example, Red and Blue is credited to "Stefani Germanotta Band", but by Lady Gaga.
+ * The catalog number for the release.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $creditedTo;
+ protected $catalogNumber;
/**
- * The label that issued the release.
+ * The group the release is credited to if different than the byArtist. For example, Red and Blue is credited to "Stefani Germanotta Band", but by Lady Gaga.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $recordLabel;
+ protected $creditedTo;
/**
- * The catalog number for the release.
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var string
+ * @var DateInterval|string|null
*/
- protected $catalogNumber;
+ protected $duration;
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getReleaseOf()
+ public function getRecordLabel()
{
- return $this->releaseOf;
+ return $this->recordLabel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $releaseOf
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $recordLabel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReleaseOf($releaseOf)
+ public function setRecordLabel($recordLabel)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $releaseOf = self::checkTypes($releaseOf, $types);
+ $recordLabel = self::checkTypes($recordLabel, $types);
- $this->releaseOf = $releaseOf;
+ $this->recordLabel = $recordLabel;
}
/**
@@ -127,104 +127,104 @@ public function setMusicReleaseFormat($musicReleaseFormat)
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function getDuration()
+ public function getReleaseOf()
{
- return $this->duration;
+ return $this->releaseOf;
}
/**
- * @param DateInterval|string|null $duration
+ * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $releaseOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setReleaseOf($releaseOf)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $releaseOf = self::checkTypes($releaseOf, $types);
- $this->duration = $duration;
+ $this->releaseOf = $releaseOf;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getCreditedTo()
+ public function getCatalogNumber()
{
- return $this->creditedTo;
+ return $this->catalogNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $creditedTo
+ * @param string $catalogNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreditedTo($creditedTo)
+ public function setCatalogNumber($catalogNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $creditedTo = self::checkTypes($creditedTo, $types);
+ $catalogNumber = self::checkTypes($catalogNumber, $types);
- $this->creditedTo = $creditedTo;
+ $this->catalogNumber = $catalogNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getRecordLabel()
+ public function getCreditedTo()
{
- return $this->recordLabel;
+ return $this->creditedTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $recordLabel
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $creditedTo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordLabel($recordLabel)
+ public function setCreditedTo($creditedTo)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $recordLabel = self::checkTypes($recordLabel, $types);
+ $creditedTo = self::checkTypes($creditedTo, $types);
- $this->recordLabel = $recordLabel;
+ $this->creditedTo = $creditedTo;
}
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getCatalogNumber()
+ public function getDuration()
{
- return $this->catalogNumber;
+ return $this->duration;
}
/**
- * @param string $catalogNumber
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCatalogNumber($catalogNumber)
+ public function setDuration($duration)
{
$types = [
+ "DateInterval",
"string",
+ "null",
];
- $catalogNumber = self::checkTypes($catalogNumber, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->catalogNumber = $catalogNumber;
+ $this->duration = $duration;
}
}
diff --git a/src/Models/SchemaOrg/Nerve.php b/src/Models/SchemaOrg/Nerve.php
index 3063b8b5..3077d16d 100644
--- a/src/Models/SchemaOrg/Nerve.php
+++ b/src/Models/SchemaOrg/Nerve.php
@@ -18,9 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"sensoryUnit" => "sensoryUnit",
+ "nerveMotor" => "nerveMotor",
"branch" => "branch",
"sourcedFrom" => "sourcedFrom",
- "nerveMotor" => "nerveMotor",
];
return array_merge(parent::fieldList(), $fields);
@@ -30,10 +30,18 @@ public static function fieldList() {
* The neurological pathway extension that inputs and sends information to the brain or spinal cord.
*
*
- * @var \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
*/
protected $sensoryUnit;
+ /**
+ * The neurological pathway extension that involves muscle control.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Muscle|string
+ */
+ protected $nerveMotor;
+
/**
* The branches that delineate from the nerve bundle. Not to be confused with [[branchOf]].
*
@@ -51,15 +59,7 @@ public static function fieldList() {
protected $sourcedFrom;
/**
- * The neurological pathway extension that involves muscle control.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Muscle|string
- */
- protected $nerveMotor;
-
- /**
- * @return \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
*/
public function getSensoryUnit()
{
@@ -67,15 +67,15 @@ public function getSensoryUnit()
}
/**
- * @param \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $sensoryUnit
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $sensoryUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSensoryUnit($sensoryUnit)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
"string",
];
@@ -85,78 +85,78 @@ public function setSensoryUnit($sensoryUnit)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\Muscle|string
*/
- public function getBranch()
+ public function getNerveMotor()
{
- return $this->branch;
+ return $this->nerveMotor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $branch
+ * @param \OpenActive\Models\SchemaOrg\Muscle|string $nerveMotor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBranch($branch)
+ public function setNerveMotor($nerveMotor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\Muscle",
"string",
];
- $branch = self::checkTypes($branch, $types);
+ $nerveMotor = self::checkTypes($nerveMotor, $types);
- $this->branch = $branch;
+ $this->nerveMotor = $nerveMotor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BrainStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getSourcedFrom()
+ public function getBranch()
{
- return $this->sourcedFrom;
+ return $this->branch;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BrainStructure|string $sourcedFrom
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $branch
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSourcedFrom($sourcedFrom)
+ public function setBranch($branch)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BrainStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $sourcedFrom = self::checkTypes($sourcedFrom, $types);
+ $branch = self::checkTypes($branch, $types);
- $this->sourcedFrom = $sourcedFrom;
+ $this->branch = $branch;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Muscle|string
+ * @return \OpenActive\Models\SchemaOrg\BrainStructure|string
*/
- public function getNerveMotor()
+ public function getSourcedFrom()
{
- return $this->nerveMotor;
+ return $this->sourcedFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Muscle|string $nerveMotor
+ * @param \OpenActive\Models\SchemaOrg\BrainStructure|string $sourcedFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNerveMotor($nerveMotor)
+ public function setSourcedFrom($sourcedFrom)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Muscle",
+ "\OpenActive\Models\SchemaOrg\BrainStructure",
"string",
];
- $nerveMotor = self::checkTypes($nerveMotor, $types);
+ $sourcedFrom = self::checkTypes($sourcedFrom, $types);
- $this->nerveMotor = $nerveMotor;
+ $this->sourcedFrom = $sourcedFrom;
}
}
diff --git a/src/Models/SchemaOrg/NewsArticle.php b/src/Models/SchemaOrg/NewsArticle.php
index b020062d..c9c2a801 100644
--- a/src/Models/SchemaOrg/NewsArticle.php
+++ b/src/Models/SchemaOrg/NewsArticle.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"printEdition" => "printEdition",
+ "dateline" => "dateline",
"printColumn" => "printColumn",
- "printPage" => "printPage",
"printSection" => "printSection",
- "dateline" => "dateline",
+ "printPage" => "printPage",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,20 +36,25 @@ public static function fieldList() {
protected $printEdition;
/**
- * The number of the column in which the NewsArticle appears in the print edition.
+ * A [dateline](https://en.wikipedia.org/wiki/Dateline) is a brief piece of text included in news articles that describes where and when the story was written or filed though the date is often omitted. Sometimes only a placename is provided.
+ *
+ * Structured representations of dateline-related information can also be expressed more explicitly using [[locationCreated]] (which represents where a work was created, e.g. where a news report was written). For location depicted or described in the content, use [[contentLocation]].
+ *
+ * Dateline summaries are oriented more towards human readers than towards automated processing, and can vary substantially. Some examples: "BEIRUT, Lebanon, June 2.", "Paris, France", "December 19, 2017 11:43AM Reporting from Washington", "Beijing/Moscow", "QUEZON CITY, Philippines".
+ *
*
*
* @var string
*/
- protected $printColumn;
+ protected $dateline;
/**
- * If this NewsArticle appears in print, this field indicates the name of the page on which the article is found. Please note that this field is intended for the exact page name (e.g. A5, B18).
+ * The number of the column in which the NewsArticle appears in the print edition.
*
*
* @var string
*/
- protected $printPage;
+ protected $printColumn;
/**
* If this NewsArticle appears in print, this field indicates the print section in which the article appeared.
@@ -60,17 +65,12 @@ public static function fieldList() {
protected $printSection;
/**
- * A [dateline](https://en.wikipedia.org/wiki/Dateline) is a brief piece of text included in news articles that describes where and when the story was written or filed though the date is often omitted. Sometimes only a placename is provided.
- *
- * Structured representations of dateline-related information can also be expressed more explicitly using [[locationCreated]] (which represents where a work was created e.g. where a news report was written). For location depicted or described in the content, use [[contentLocation]].
- *
- * Dateline summaries are oriented more towards human readers than towards automated processing, and can vary substantially. Some examples: "BEIRUT, Lebanon, June 2.", "Paris, France", "December 19, 2017 11:43AM Reporting from Washington", "Beijing/Moscow", "QUEZON CITY, Philippines".
- *
+ * If this NewsArticle appears in print, this field indicates the name of the page on which the article is found. Please note that this field is intended for the exact page name (e.g. A5, B18).
*
*
* @var string
*/
- protected $dateline;
+ protected $printPage;
/**
* @return string
@@ -99,49 +99,49 @@ public function setPrintEdition($printEdition)
/**
* @return string
*/
- public function getPrintColumn()
+ public function getDateline()
{
- return $this->printColumn;
+ return $this->dateline;
}
/**
- * @param string $printColumn
+ * @param string $dateline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrintColumn($printColumn)
+ public function setDateline($dateline)
{
$types = [
"string",
];
- $printColumn = self::checkTypes($printColumn, $types);
+ $dateline = self::checkTypes($dateline, $types);
- $this->printColumn = $printColumn;
+ $this->dateline = $dateline;
}
/**
* @return string
*/
- public function getPrintPage()
+ public function getPrintColumn()
{
- return $this->printPage;
+ return $this->printColumn;
}
/**
- * @param string $printPage
+ * @param string $printColumn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrintPage($printPage)
+ public function setPrintColumn($printColumn)
{
$types = [
"string",
];
- $printPage = self::checkTypes($printPage, $types);
+ $printColumn = self::checkTypes($printColumn, $types);
- $this->printPage = $printPage;
+ $this->printColumn = $printColumn;
}
/**
@@ -171,25 +171,25 @@ public function setPrintSection($printSection)
/**
* @return string
*/
- public function getDateline()
+ public function getPrintPage()
{
- return $this->dateline;
+ return $this->printPage;
}
/**
- * @param string $dateline
+ * @param string $printPage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateline($dateline)
+ public function setPrintPage($printPage)
{
$types = [
"string",
];
- $dateline = self::checkTypes($dateline, $types);
+ $printPage = self::checkTypes($printPage, $types);
- $this->dateline = $dateline;
+ $this->printPage = $printPage;
}
}
diff --git a/src/Models/SchemaOrg/NewsMediaOrganization.php b/src/Models/SchemaOrg/NewsMediaOrganization.php
index fc8abd3d..23ff7598 100644
--- a/src/Models/SchemaOrg/NewsMediaOrganization.php
+++ b/src/Models/SchemaOrg/NewsMediaOrganization.php
@@ -17,61 +17,69 @@ public static function getType()
public static function fieldList() {
$fields = [
- "ownershipFundingInfo" => "ownershipFundingInfo",
+ "noBylinesPolicy" => "noBylinesPolicy",
+ "diversityPolicy" => "diversityPolicy",
+ "masthead" => "masthead",
"correctionsPolicy" => "correctionsPolicy",
+ "verificationFactCheckingPolicy" => "verificationFactCheckingPolicy",
"diversityStaffingReport" => "diversityStaffingReport",
- "diversityPolicy" => "diversityPolicy",
- "ethicsPolicy" => "ethicsPolicy",
"missionCoveragePrioritiesPolicy" => "missionCoveragePrioritiesPolicy",
"actionableFeedbackPolicy" => "actionableFeedbackPolicy",
- "masthead" => "masthead",
+ "ethicsPolicy" => "ethicsPolicy",
+ "ownershipFundingInfo" => "ownershipFundingInfo",
"unnamedSourcesPolicy" => "unnamedSourcesPolicy",
- "verificationFactCheckingPolicy" => "verificationFactCheckingPolicy",
- "noBylinesPolicy" => "noBylinesPolicy",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.
+ * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement explaining when authors of articles are not named in bylines.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $ownershipFundingInfo;
+ protected $noBylinesPolicy;
/**
- * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.
+ * Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.
*
*
* @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $correctionsPolicy;
+ protected $diversityPolicy;
/**
- * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.
+ * For a [[NewsMediaOrganization]], a link to the masthead page or a page listing top editorial management.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Article
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $diversityStaffingReport;
+ protected $masthead;
/**
- * Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.
+ * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ */
+ protected $correctionsPolicy;
+
+ /**
+ * Disclosure about verification and fact-checking processes for a [[NewsMediaOrganization]] or other fact-checking [[Organization]].
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $diversityPolicy;
+ protected $verificationFactCheckingPolicy;
/**
- * Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.
+ * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\Article|string
*/
- protected $ethicsPolicy;
+ protected $diversityStaffingReport;
/**
* For a [[NewsMediaOrganization]], a statement on coverage priorities, including any public agenda or stance on issues.
@@ -90,12 +98,20 @@ public static function fieldList() {
protected $actionableFeedbackPolicy;
/**
- * For a [[NewsMediaOrganization]], a link to the masthead page or a page listing top editorial management.
+ * Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.
*
*
* @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $masthead;
+ protected $ethicsPolicy;
+
+ /**
+ * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ protected $ownershipFundingInfo;
/**
* For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.
@@ -106,145 +122,153 @@ public static function fieldList() {
protected $unnamedSourcesPolicy;
/**
- * Disclosure about verification and fact-checking processes for a [[NewsMediaOrganization]] or other fact-checking [[Organization]].
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $verificationFactCheckingPolicy;
+ public function getNoBylinesPolicy()
+ {
+ return $this->noBylinesPolicy;
+ }
/**
- * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement explaining when authors of articles are not named in bylines.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $noBylinesPolicy
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $noBylinesPolicy;
+ public function setNoBylinesPolicy($noBylinesPolicy)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
+ ];
+
+ $noBylinesPolicy = self::checkTypes($noBylinesPolicy, $types);
+
+ $this->noBylinesPolicy = $noBylinesPolicy;
+ }
/**
- * @return string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getOwnershipFundingInfo()
+ public function getDiversityPolicy()
{
- return $this->ownershipFundingInfo;
+ return $this->diversityPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork $ownershipFundingInfo
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $diversityPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOwnershipFundingInfo($ownershipFundingInfo)
+ public function setDiversityPolicy($diversityPolicy)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\AboutPage",
"\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
+ $diversityPolicy = self::checkTypes($diversityPolicy, $types);
- $this->ownershipFundingInfo = $ownershipFundingInfo;
+ $this->diversityPolicy = $diversityPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getCorrectionsPolicy()
+ public function getMasthead()
{
- return $this->correctionsPolicy;
+ return $this->masthead;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $masthead
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCorrectionsPolicy($correctionsPolicy)
+ public function setMasthead($masthead)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $correctionsPolicy = self::checkTypes($correctionsPolicy, $types);
+ $masthead = self::checkTypes($masthead, $types);
- $this->correctionsPolicy = $correctionsPolicy;
+ $this->masthead = $masthead;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Article
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getDiversityStaffingReport()
+ public function getCorrectionsPolicy()
{
- return $this->diversityStaffingReport;
+ return $this->correctionsPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiversityStaffingReport($diversityStaffingReport)
+ public function setCorrectionsPolicy($correctionsPolicy)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Article",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types);
+ $correctionsPolicy = self::checkTypes($correctionsPolicy, $types);
- $this->diversityStaffingReport = $diversityStaffingReport;
+ $this->correctionsPolicy = $correctionsPolicy;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDiversityPolicy()
+ public function getVerificationFactCheckingPolicy()
{
- return $this->diversityPolicy;
+ return $this->verificationFactCheckingPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $verificationFactCheckingPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiversityPolicy($diversityPolicy)
+ public function setVerificationFactCheckingPolicy($verificationFactCheckingPolicy)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $diversityPolicy = self::checkTypes($diversityPolicy, $types);
+ $verificationFactCheckingPolicy = self::checkTypes($verificationFactCheckingPolicy, $types);
- $this->diversityPolicy = $diversityPolicy;
+ $this->verificationFactCheckingPolicy = $verificationFactCheckingPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\Article|string
*/
- public function getEthicsPolicy()
+ public function getDiversityStaffingReport()
{
- return $this->ethicsPolicy;
+ return $this->diversityStaffingReport;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy
+ * @param \OpenActive\Models\SchemaOrg\Article|string $diversityStaffingReport
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEthicsPolicy($ethicsPolicy)
+ public function setDiversityStaffingReport($diversityStaffingReport)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Article",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $ethicsPolicy = self::checkTypes($ethicsPolicy, $types);
+ $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types);
- $this->ethicsPolicy = $ethicsPolicy;
+ $this->diversityStaffingReport = $diversityStaffingReport;
}
/**
@@ -300,101 +324,77 @@ public function setActionableFeedbackPolicy($actionableFeedbackPolicy)
/**
* @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getMasthead()
+ public function getEthicsPolicy()
{
- return $this->masthead;
+ return $this->ethicsPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $masthead
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMasthead($masthead)
+ public function setEthicsPolicy($ethicsPolicy)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $masthead = self::checkTypes($masthead, $types);
+ $ethicsPolicy = self::checkTypes($ethicsPolicy, $types);
- $this->masthead = $masthead;
+ $this->ethicsPolicy = $ethicsPolicy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getUnnamedSourcesPolicy()
+ public function getOwnershipFundingInfo()
{
- return $this->unnamedSourcesPolicy;
+ return $this->ownershipFundingInfo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy
+ * @param \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string $ownershipFundingInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUnnamedSourcesPolicy($unnamedSourcesPolicy)
+ public function setOwnershipFundingInfo($ownershipFundingInfo)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AboutPage",
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types);
-
- $this->unnamedSourcesPolicy = $unnamedSourcesPolicy;
- }
-
- /**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
- */
- public function getVerificationFactCheckingPolicy()
- {
- return $this->verificationFactCheckingPolicy;
- }
-
- /**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $verificationFactCheckingPolicy
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setVerificationFactCheckingPolicy($verificationFactCheckingPolicy)
- {
- $types = [
- "string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- ];
-
- $verificationFactCheckingPolicy = self::checkTypes($verificationFactCheckingPolicy, $types);
+ $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
- $this->verificationFactCheckingPolicy = $verificationFactCheckingPolicy;
+ $this->ownershipFundingInfo = $ownershipFundingInfo;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getNoBylinesPolicy()
+ public function getUnnamedSourcesPolicy()
{
- return $this->noBylinesPolicy;
+ return $this->unnamedSourcesPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $noBylinesPolicy
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNoBylinesPolicy($noBylinesPolicy)
+ public function setUnnamedSourcesPolicy($unnamedSourcesPolicy)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $noBylinesPolicy = self::checkTypes($noBylinesPolicy, $types);
+ $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types);
- $this->noBylinesPolicy = $noBylinesPolicy;
+ $this->unnamedSourcesPolicy = $unnamedSourcesPolicy;
}
}
diff --git a/src/Models/SchemaOrg/NutritionInformation.php b/src/Models/SchemaOrg/NutritionInformation.php
index ec66b0a4..4c077731 100644
--- a/src/Models/SchemaOrg/NutritionInformation.php
+++ b/src/Models/SchemaOrg/NutritionInformation.php
@@ -17,416 +17,416 @@ public static function getType()
public static function fieldList() {
$fields = [
- "fatContent" => "fatContent",
- "servingSize" => "servingSize",
- "proteinContent" => "proteinContent",
- "calories" => "calories",
- "sodiumContent" => "sodiumContent",
- "cholesterolContent" => "cholesterolContent",
"sugarContent" => "sugarContent",
- "carbohydrateContent" => "carbohydrateContent",
"transFatContent" => "transFatContent",
+ "servingSize" => "servingSize",
"fiberContent" => "fiberContent",
+ "cholesterolContent" => "cholesterolContent",
+ "carbohydrateContent" => "carbohydrateContent",
"unsaturatedFatContent" => "unsaturatedFatContent",
"saturatedFatContent" => "saturatedFatContent",
+ "sodiumContent" => "sodiumContent",
+ "calories" => "calories",
+ "proteinContent" => "proteinContent",
+ "fatContent" => "fatContent",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The number of grams of fat.
+ * The number of grams of sugar.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $fatContent;
+ protected $sugarContent;
/**
- * The serving size, in terms of the number of volume or mass.
+ * The number of grams of trans fat.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $servingSize;
+ protected $transFatContent;
/**
- * The number of grams of protein.
+ * The serving size, in terms of the number of volume or mass.
*
*
- * @var \OpenActive\Models\SchemaOrg\Mass|string
+ * @var string
*/
- protected $proteinContent;
+ protected $servingSize;
/**
- * The number of calories.
+ * The number of grams of fiber.
*
*
- * @var \OpenActive\Models\SchemaOrg\Energy|string
+ * @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $calories;
+ protected $fiberContent;
/**
- * The number of milligrams of sodium.
+ * The number of milligrams of cholesterol.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $sodiumContent;
+ protected $cholesterolContent;
/**
- * The number of milligrams of cholesterol.
+ * The number of grams of carbohydrates.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $cholesterolContent;
+ protected $carbohydrateContent;
/**
- * The number of grams of sugar.
+ * The number of grams of unsaturated fat.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $sugarContent;
+ protected $unsaturatedFatContent;
/**
- * The number of grams of carbohydrates.
+ * The number of grams of saturated fat.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $carbohydrateContent;
+ protected $saturatedFatContent;
/**
- * The number of grams of trans fat.
+ * The number of milligrams of sodium.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $transFatContent;
+ protected $sodiumContent;
/**
- * The number of grams of fiber.
+ * The number of calories.
*
*
- * @var \OpenActive\Models\SchemaOrg\Mass|string
+ * @var \OpenActive\Models\SchemaOrg\Energy|string
*/
- protected $fiberContent;
+ protected $calories;
/**
- * The number of grams of unsaturated fat.
+ * The number of grams of protein.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $unsaturatedFatContent;
+ protected $proteinContent;
/**
- * The number of grams of saturated fat.
+ * The number of grams of fat.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $saturatedFatContent;
+ protected $fatContent;
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getFatContent()
+ public function getSugarContent()
{
- return $this->fatContent;
+ return $this->sugarContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $fatContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $sugarContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFatContent($fatContent)
+ public function setSugarContent($sugarContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $fatContent = self::checkTypes($fatContent, $types);
+ $sugarContent = self::checkTypes($sugarContent, $types);
- $this->fatContent = $fatContent;
+ $this->sugarContent = $sugarContent;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getServingSize()
+ public function getTransFatContent()
{
- return $this->servingSize;
+ return $this->transFatContent;
}
/**
- * @param string $servingSize
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $transFatContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServingSize($servingSize)
+ public function setTransFatContent($transFatContent)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $servingSize = self::checkTypes($servingSize, $types);
+ $transFatContent = self::checkTypes($transFatContent, $types);
- $this->servingSize = $servingSize;
+ $this->transFatContent = $transFatContent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Mass|string
+ * @return string
*/
- public function getProteinContent()
+ public function getServingSize()
{
- return $this->proteinContent;
+ return $this->servingSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $proteinContent
+ * @param string $servingSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProteinContent($proteinContent)
+ public function setServingSize($servingSize)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $proteinContent = self::checkTypes($proteinContent, $types);
+ $servingSize = self::checkTypes($servingSize, $types);
- $this->proteinContent = $proteinContent;
+ $this->servingSize = $servingSize;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Energy|string
+ * @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getCalories()
+ public function getFiberContent()
{
- return $this->calories;
+ return $this->fiberContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Energy|string $calories
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $fiberContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCalories($calories)
+ public function setFiberContent($fiberContent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Energy",
+ "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $calories = self::checkTypes($calories, $types);
+ $fiberContent = self::checkTypes($fiberContent, $types);
- $this->calories = $calories;
+ $this->fiberContent = $fiberContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getSodiumContent()
+ public function getCholesterolContent()
{
- return $this->sodiumContent;
+ return $this->cholesterolContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $sodiumContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $cholesterolContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSodiumContent($sodiumContent)
+ public function setCholesterolContent($cholesterolContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $sodiumContent = self::checkTypes($sodiumContent, $types);
+ $cholesterolContent = self::checkTypes($cholesterolContent, $types);
- $this->sodiumContent = $sodiumContent;
+ $this->cholesterolContent = $cholesterolContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getCholesterolContent()
+ public function getCarbohydrateContent()
{
- return $this->cholesterolContent;
+ return $this->carbohydrateContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $cholesterolContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $carbohydrateContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCholesterolContent($cholesterolContent)
+ public function setCarbohydrateContent($carbohydrateContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $cholesterolContent = self::checkTypes($cholesterolContent, $types);
+ $carbohydrateContent = self::checkTypes($carbohydrateContent, $types);
- $this->cholesterolContent = $cholesterolContent;
+ $this->carbohydrateContent = $carbohydrateContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getSugarContent()
+ public function getUnsaturatedFatContent()
{
- return $this->sugarContent;
+ return $this->unsaturatedFatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $sugarContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $unsaturatedFatContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSugarContent($sugarContent)
+ public function setUnsaturatedFatContent($unsaturatedFatContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $sugarContent = self::checkTypes($sugarContent, $types);
+ $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types);
- $this->sugarContent = $sugarContent;
+ $this->unsaturatedFatContent = $unsaturatedFatContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getCarbohydrateContent()
+ public function getSaturatedFatContent()
{
- return $this->carbohydrateContent;
+ return $this->saturatedFatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $carbohydrateContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $saturatedFatContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCarbohydrateContent($carbohydrateContent)
+ public function setSaturatedFatContent($saturatedFatContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $carbohydrateContent = self::checkTypes($carbohydrateContent, $types);
+ $saturatedFatContent = self::checkTypes($saturatedFatContent, $types);
- $this->carbohydrateContent = $carbohydrateContent;
+ $this->saturatedFatContent = $saturatedFatContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getTransFatContent()
+ public function getSodiumContent()
{
- return $this->transFatContent;
+ return $this->sodiumContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $transFatContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $sodiumContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTransFatContent($transFatContent)
+ public function setSodiumContent($sodiumContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $transFatContent = self::checkTypes($transFatContent, $types);
+ $sodiumContent = self::checkTypes($sodiumContent, $types);
- $this->transFatContent = $transFatContent;
+ $this->sodiumContent = $sodiumContent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Mass|string
+ * @return \OpenActive\Models\SchemaOrg\Energy|string
*/
- public function getFiberContent()
+ public function getCalories()
{
- return $this->fiberContent;
+ return $this->calories;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $fiberContent
+ * @param \OpenActive\Models\SchemaOrg\Energy|string $calories
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFiberContent($fiberContent)
+ public function setCalories($calories)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Mass",
+ "\OpenActive\Models\SchemaOrg\Energy",
"string",
];
- $fiberContent = self::checkTypes($fiberContent, $types);
+ $calories = self::checkTypes($calories, $types);
- $this->fiberContent = $fiberContent;
+ $this->calories = $calories;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getUnsaturatedFatContent()
+ public function getProteinContent()
{
- return $this->unsaturatedFatContent;
+ return $this->proteinContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $unsaturatedFatContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $proteinContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUnsaturatedFatContent($unsaturatedFatContent)
+ public function setProteinContent($proteinContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types);
+ $proteinContent = self::checkTypes($proteinContent, $types);
- $this->unsaturatedFatContent = $unsaturatedFatContent;
+ $this->proteinContent = $proteinContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getSaturatedFatContent()
+ public function getFatContent()
{
- return $this->saturatedFatContent;
+ return $this->fatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $saturatedFatContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $fatContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSaturatedFatContent($saturatedFatContent)
+ public function setFatContent($fatContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $saturatedFatContent = self::checkTypes($saturatedFatContent, $types);
+ $fatContent = self::checkTypes($fatContent, $types);
- $this->saturatedFatContent = $saturatedFatContent;
+ $this->fatContent = $fatContent;
}
}
diff --git a/src/Models/SchemaOrg/Observation.php b/src/Models/SchemaOrg/Observation.php
index 95b9a4a5..2d33eab6 100644
--- a/src/Models/SchemaOrg/Observation.php
+++ b/src/Models/SchemaOrg/Observation.php
@@ -17,50 +17,93 @@ public static function getType()
public static function fieldList() {
$fields = [
- "measuredValue" => "measuredValue",
- "observedNode" => "observedNode",
- "measuredProperty" => "measuredProperty",
+ "measurementTechnique" => "measurementTechnique",
"observationDate" => "observationDate",
+ "observationPeriod" => "observationPeriod",
+ "measurementDenominator" => "measurementDenominator",
+ "variableMeasured" => "variableMeasured",
+ "measurementMethod" => "measurementMethod",
+ "measurementQualifier" => "measurementQualifier",
+ "measuredProperty" => "measuredProperty",
"marginOfError" => "marginOfError",
+ "observationAbout" => "observationAbout",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The measuredValue of an [[Observation]].
+ * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable.
+ *
+ * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery.
+ *
+ * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
+ *
+ * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]].
*
*
- * @var \OpenActive\Models\SchemaOrg\DataType
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- protected $measuredValue;
+ protected $measurementTechnique;
/**
- * The observedNode of an [[Observation]], often a [[StatisticalPopulation]].
+ * The observationDate of an [[Observation]].
*
*
- * @var \OpenActive\Models\SchemaOrg\StatisticalPopulation|string
+ * @var DateTime|null
*/
- protected $observedNode;
+ protected $observationDate;
/**
- * The measuredProperty of an [[Observation]], either a schema.org property, a property from other RDF-compatible systems e.g. W3C RDF Data Cube, or schema.org extensions such as [GS1's](https://www.gs1.org/voc/?show=properties).
+ * The length of time an Observation took place over. The format follows `P[0-9]*[Y|M|D|h|m|s]`. For example, P1Y is Period 1 Year, P3M is Period 3 Months, P3h is Period 3 hours.
*
*
- * @var string|\OpenActive\Enums\PropertyEnumeration|null
+ * @var string
*/
- protected $measuredProperty;
+ protected $observationPeriod;
/**
- * The observationDate of an [[Observation]].
+ * Identifies the denominator variable when an observation represents a ratio or percentage.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\StatisticalVariable|string
*/
- protected $observationDate;
+ protected $measurementDenominator;
+
+ /**
+ * The variableMeasured property can indicate (repeated as necessary) the variables that are measured in some dataset, either described as text or as pairs of identifier and description using PropertyValue, or more explicitly as a [[StatisticalVariable]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null
+ */
+ protected $variableMeasured;
+
+ /**
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
+ *
+ *
+ * @var string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null
+ */
+ protected $measurementMethod;
/**
- * A marginOfError for an [[Observation]].
+ * Provides additional qualification to an observation. For example, a GDP observation measures the Nominal value.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Enumeration|string
+ */
+ protected $measurementQualifier;
+
+ /**
+ * The measuredProperty of an [[Observation]], typically via its [[StatisticalVariable]]. There are various kinds of applicable [[Property]]: a schema.org property, a property from other RDF-compatible systems, e.g. W3C RDF Data Cube, Data Commons, Wikidata, or schema.org extensions such as [GS1's](https://www.gs1.org/voc/?show=properties).
+ *
+ *
+ * @var string|\OpenActive\Enums\PropertyEnumeration|null
+ */
+ protected $measuredProperty;
+
+ /**
+ * A [[marginOfError]] for an [[Observation]].
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
@@ -68,103 +111,218 @@ public static function fieldList() {
protected $marginOfError;
/**
- * @return \OpenActive\Models\SchemaOrg\DataType
+ * The [[observationAbout]] property identifies an entity, often a [[Place]], associated with an [[Observation]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\Place|string
+ */
+ protected $observationAbout;
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- public function getMeasuredValue()
+ public function getMeasurementTechnique()
{
- return $this->measuredValue;
+ return $this->measurementTechnique;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataType $measuredValue
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMeasuredValue($measuredValue)
+ public function setMeasurementTechnique($measurementTechnique)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataType",
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
- $measuredValue = self::checkTypes($measuredValue, $types);
+ $measurementTechnique = self::checkTypes($measurementTechnique, $types);
- $this->measuredValue = $measuredValue;
+ $this->measurementTechnique = $measurementTechnique;
}
/**
- * @return \OpenActive\Models\SchemaOrg\StatisticalPopulation|string
+ * @return DateTime|null
*/
- public function getObservedNode()
+ public function getObservationDate()
{
- return $this->observedNode;
+ return $this->observationDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\StatisticalPopulation|string $observedNode
+ * @param DateTime|null $observationDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setObservedNode($observedNode)
+ public function setObservationDate($observationDate)
+ {
+ $types = [
+ "DateTime",
+ "null",
+ ];
+
+ $observationDate = self::checkTypes($observationDate, $types);
+
+ $this->observationDate = $observationDate;
+ }
+
+ /**
+ * @return string
+ */
+ public function getObservationPeriod()
+ {
+ return $this->observationPeriod;
+ }
+
+ /**
+ * @param string $observationPeriod
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setObservationPeriod($observationPeriod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\StatisticalPopulation",
"string",
];
- $observedNode = self::checkTypes($observedNode, $types);
+ $observationPeriod = self::checkTypes($observationPeriod, $types);
- $this->observedNode = $observedNode;
+ $this->observationPeriod = $observationPeriod;
}
/**
- * @return string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\StatisticalVariable|string
*/
- public function getMeasuredProperty()
+ public function getMeasurementDenominator()
{
- return $this->measuredProperty;
+ return $this->measurementDenominator;
}
/**
- * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty
+ * @param \OpenActive\Models\SchemaOrg\StatisticalVariable|string $measurementDenominator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMeasuredProperty($measuredProperty)
+ public function setMeasurementDenominator($measurementDenominator)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
+ "string",
+ ];
+
+ $measurementDenominator = self::checkTypes($measurementDenominator, $types);
+
+ $this->measurementDenominator = $measurementDenominator;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null
+ */
+ public function getVariableMeasured()
+ {
+ return $this->variableMeasured;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null $variableMeasured
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setVariableMeasured($variableMeasured)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
"string",
"\OpenActive\Enums\PropertyEnumeration",
"null",
];
- $measuredProperty = self::checkTypes($measuredProperty, $types);
+ $variableMeasured = self::checkTypes($variableMeasured, $types);
- $this->measuredProperty = $measuredProperty;
+ $this->variableMeasured = $variableMeasured;
}
/**
- * @return DateTime|null
+ * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null
*/
- public function getObservationDate()
+ public function getMeasurementMethod()
{
- return $this->observationDate;
+ return $this->measurementMethod;
}
/**
- * @param DateTime|null $observationDate
+ * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setObservationDate($observationDate)
+ public function setMeasurementMethod($measurementMethod)
{
$types = [
- "DateTime",
+ "string",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"null",
];
- $observationDate = self::checkTypes($observationDate, $types);
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
- $this->observationDate = $observationDate;
+ $this->measurementMethod = $measurementMethod;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Enumeration|string
+ */
+ public function getMeasurementQualifier()
+ {
+ return $this->measurementQualifier;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Enumeration|string $measurementQualifier
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementQualifier($measurementQualifier)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Enumeration",
+ "string",
+ ];
+
+ $measurementQualifier = self::checkTypes($measurementQualifier, $types);
+
+ $this->measurementQualifier = $measurementQualifier;
+ }
+
+ /**
+ * @return string|\OpenActive\Enums\PropertyEnumeration|null
+ */
+ public function getMeasuredProperty()
+ {
+ return $this->measuredProperty;
+ }
+
+ /**
+ * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasuredProperty($measuredProperty)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Enums\PropertyEnumeration",
+ "null",
+ ];
+
+ $measuredProperty = self::checkTypes($measuredProperty, $types);
+
+ $this->measuredProperty = $measuredProperty;
}
/**
@@ -192,4 +350,30 @@ public function setMarginOfError($marginOfError)
$this->marginOfError = $marginOfError;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\Place|string
+ */
+ public function getObservationAbout()
+ {
+ return $this->observationAbout;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\Place|string $observationAbout
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setObservationAbout($observationAbout)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "string",
+ ];
+
+ $observationAbout = self::checkTypes($observationAbout, $types);
+
+ $this->observationAbout = $observationAbout;
+ }
+
}
diff --git a/src/Models/SchemaOrg/Occupation.php b/src/Models/SchemaOrg/Occupation.php
index ea516342..f2fddac5 100644
--- a/src/Models/SchemaOrg/Occupation.php
+++ b/src/Models/SchemaOrg/Occupation.php
@@ -18,13 +18,13 @@ public static function getType()
public static function fieldList() {
$fields = [
"estimatedSalary" => "estimatedSalary",
- "responsibilities" => "responsibilities",
"occupationLocation" => "occupationLocation",
"experienceRequirements" => "experienceRequirements",
- "educationRequirements" => "educationRequirements",
- "skills" => "skills",
- "qualifications" => "qualifications",
"occupationalCategory" => "occupationalCategory",
+ "qualifications" => "qualifications",
+ "skills" => "skills",
+ "educationRequirements" => "educationRequirements",
+ "responsibilities" => "responsibilities",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,18 +34,10 @@ public static function fieldList() {
* An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null
*/
protected $estimatedSalary;
- /**
- * Responsibilities associated with this role or Occupation.
- *
- *
- * @var string
- */
- protected $responsibilities;
-
/**
* The region/country for which this occupational description is appropriate. Note that educational requirements and qualifications can vary between jurisdictions.
*
@@ -63,12 +55,21 @@ public static function fieldList() {
protected $experienceRequirements;
/**
- * Educational background needed for the position or Occupation.
+ * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
+ * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\CategoryCode
+ */
+ protected $occupationalCategory;
+
+ /**
+ * Specific qualifications required for this role or Occupation.
*
*
* @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- protected $educationRequirements;
+ protected $qualifications;
/**
* A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation.
@@ -79,24 +80,23 @@ public static function fieldList() {
protected $skills;
/**
- * Specific qualifications required for this role or Occupation.
+ * Educational background needed for the position or Occupation.
*
*
* @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $qualifications;
+ protected $educationRequirements;
/**
- * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
- * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
+ * Responsibilities associated with this role or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var string
*/
- protected $occupationalCategory;
+ protected $responsibilities;
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null
*/
public function getEstimatedSalary()
{
@@ -104,15 +104,15 @@ public function getEstimatedSalary()
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null $estimatedSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setEstimatedSalary($estimatedSalary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
"Number",
"null",
@@ -124,102 +124,103 @@ public function setEstimatedSalary($estimatedSalary)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getResponsibilities()
+ public function getOccupationLocation()
{
- return $this->responsibilities;
+ return $this->occupationLocation;
}
/**
- * @param string $responsibilities
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $occupationLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setResponsibilities($responsibilities)
+ public function setOccupationLocation($occupationLocation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $responsibilities = self::checkTypes($responsibilities, $types);
+ $occupationLocation = self::checkTypes($occupationLocation, $types);
- $this->responsibilities = $responsibilities;
+ $this->occupationLocation = $occupationLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
*/
- public function getOccupationLocation()
+ public function getExperienceRequirements()
{
- return $this->occupationLocation;
+ return $this->experienceRequirements;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $occupationLocation
+ * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationLocation($occupationLocation)
+ public function setExperienceRequirements($experienceRequirements)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
+ "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
];
- $occupationLocation = self::checkTypes($occupationLocation, $types);
+ $experienceRequirements = self::checkTypes($experienceRequirements, $types);
- $this->occupationLocation = $occupationLocation;
+ $this->experienceRequirements = $experienceRequirements;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @return string|\OpenActive\Models\SchemaOrg\CategoryCode
*/
- public function getExperienceRequirements()
+ public function getOccupationalCategory()
{
- return $this->experienceRequirements;
+ return $this->occupationalCategory;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements
+ * @param string|\OpenActive\Models\SchemaOrg\CategoryCode $occupationalCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExperienceRequirements($experienceRequirements)
+ public function setOccupationalCategory($occupationalCategory)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
];
- $experienceRequirements = self::checkTypes($experienceRequirements, $types);
+ $occupationalCategory = self::checkTypes($occupationalCategory, $types);
- $this->experienceRequirements = $experienceRequirements;
+ $this->occupationalCategory = $occupationalCategory;
}
/**
* @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- public function getEducationRequirements()
+ public function getQualifications()
{
- return $this->educationRequirements;
+ return $this->qualifications;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements
+ * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $qualifications
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationRequirements($educationRequirements)
+ public function setQualifications($qualifications)
{
$types = [
"\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
];
- $educationRequirements = self::checkTypes($educationRequirements, $types);
+ $qualifications = self::checkTypes($qualifications, $types);
- $this->educationRequirements = $educationRequirements;
+ $this->qualifications = $qualifications;
}
/**
@@ -250,51 +251,50 @@ public function setSkills($skills)
/**
* @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getQualifications()
+ public function getEducationRequirements()
{
- return $this->qualifications;
+ return $this->educationRequirements;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setQualifications($qualifications)
+ public function setEducationRequirements($educationRequirements)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $qualifications = self::checkTypes($qualifications, $types);
+ $educationRequirements = self::checkTypes($educationRequirements, $types);
- $this->qualifications = $qualifications;
+ $this->educationRequirements = $educationRequirements;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return string
*/
- public function getOccupationalCategory()
+ public function getResponsibilities()
{
- return $this->occupationalCategory;
+ return $this->responsibilities;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param string $responsibilities
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setResponsibilities($responsibilities)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $responsibilities = self::checkTypes($responsibilities, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->responsibilities = $responsibilities;
}
}
diff --git a/src/Models/SchemaOrg/Offer.php b/src/Models/SchemaOrg/Offer.php
index 34933e9b..a0d5f7b6 100644
--- a/src/Models/SchemaOrg/Offer.php
+++ b/src/Models/SchemaOrg/Offer.php
@@ -17,285 +17,324 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "eligibleRegion" => "eligibleRegion",
+ "deliveryLeadTime" => "deliveryLeadTime",
+ "gtin8" => "gtin8",
+ "priceSpecification" => "priceSpecification",
+ "availableDeliveryMethod" => "availableDeliveryMethod",
+ "leaseLength" => "leaseLength",
+ "validThrough" => "validThrough",
+ "ineligibleRegion" => "ineligibleRegion",
+ "additionalProperty" => "additionalProperty",
+ "isFamilyFriendly" => "isFamilyFriendly",
+ "eligibleCustomerType" => "eligibleCustomerType",
"hasAdultConsideration" => "hasAdultConsideration",
- "gtin12" => "gtin12",
- "review" => "review",
- "itemOffered" => "itemOffered",
- "category" => "category",
+ "inventoryLevel" => "inventoryLevel",
+ "gtin13" => "gtin13",
+ "priceCurrency" => "priceCurrency",
+ "serialNumber" => "serialNumber",
+ "addOn" => "addOn",
+ "asin" => "asin",
+ "gtin" => "gtin",
+ "availabilityStarts" => "availabilityStarts",
+ "businessFunction" => "businessFunction",
"priceValidUntil" => "priceValidUntil",
"shippingDetails" => "shippingDetails",
"mpn" => "mpn",
- "includesObject" => "includesObject",
- "businessFunction" => "businessFunction",
- "itemCondition" => "itemCondition",
- "gtin" => "gtin",
- "eligibleQuantity" => "eligibleQuantity",
- "acceptedPaymentMethod" => "acceptedPaymentMethod",
- "warranty" => "warranty",
- "seller" => "seller",
- "ineligibleRegion" => "ineligibleRegion",
- "leaseLength" => "leaseLength",
+ "reviews" => "reviews",
+ "eligibleTransactionVolume" => "eligibleTransactionVolume",
+ "availableAtOrFrom" => "availableAtOrFrom",
+ "itemOffered" => "itemOffered",
+ "category" => "category",
"aggregateRating" => "aggregateRating",
- "offeredBy" => "offeredBy",
- "deliveryLeadTime" => "deliveryLeadTime",
- "availableDeliveryMethod" => "availableDeliveryMethod",
- "validFrom" => "validFrom",
- "availabilityEnds" => "availabilityEnds",
- "eligibleRegion" => "eligibleRegion",
- "hasMeasurement" => "hasMeasurement",
- "gtin8" => "gtin8",
- "inventoryLevel" => "inventoryLevel",
+ "acceptedPaymentMethod" => "acceptedPaymentMethod",
"sku" => "sku",
- "addOn" => "addOn",
+ "validFrom" => "validFrom",
+ "mobileUrl" => "mobileUrl",
+ "hasGS1DigitalLink" => "hasGS1DigitalLink",
+ "eligibleDuration" => "eligibleDuration",
+ "eligibleQuantity" => "eligibleQuantity",
"hasMerchantReturnPolicy" => "hasMerchantReturnPolicy",
- "advanceBookingRequirement" => "advanceBookingRequirement",
+ "includesObject" => "includesObject",
+ "hasMeasurement" => "hasMeasurement",
"gtin14" => "gtin14",
- "priceCurrency" => "priceCurrency",
- "eligibleTransactionVolume" => "eligibleTransactionVolume",
- "areaServed" => "areaServed",
- "eligibleCustomerType" => "eligibleCustomerType",
- "availability" => "availability",
- "gtin13" => "gtin13",
- "reviews" => "reviews",
- "isFamilyFriendly" => "isFamilyFriendly",
- "validThrough" => "validThrough",
- "priceSpecification" => "priceSpecification",
+ "checkoutPageURLTemplate" => "checkoutPageURLTemplate",
+ "offeredBy" => "offeredBy",
"price" => "price",
- "availabilityStarts" => "availabilityStarts",
- "eligibleDuration" => "eligibleDuration",
- "availableAtOrFrom" => "availableAtOrFrom",
- "serialNumber" => "serialNumber",
+ "seller" => "seller",
+ "availability" => "availability",
+ "gtin12" => "gtin12",
+ "areaServed" => "areaServed",
+ "availabilityEnds" => "availabilityEnds",
+ "review" => "review",
+ "advanceBookingRequirement" => "advanceBookingRequirement",
+ "warranty" => "warranty",
+ "itemCondition" => "itemCondition",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Used to tag an item to be intended or suitable for consumption or use by adults only.
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]].
+ *
*
*
- * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string
*/
- protected $hasAdultConsideration;
+ protected $eligibleRegion;
/**
- * The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $deliveryLeadTime;
+
+ /**
+ * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
* @var string
*/
- protected $gtin12;
+ protected $gtin8;
/**
- * A review of the item.
+ * One or more detailed price specifications, indicating the unit price and delivery or payment charges.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $review;
+ protected $priceSpecification;
/**
- * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ * The delivery method(s) available for this offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- protected $itemOffered;
+ protected $availableDeliveryMethod;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $category;
+ protected $leaseLength;
/**
- * The date after which the price is no longer available.
+ * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
*
*
- * @var Date|null
+ * @var Date|DateTime|null
*/
- protected $priceValidUntil;
+ protected $validThrough;
/**
- * Indicates information about the shipping policies and options associated with an [[Offer]].
+ * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\OfferShippingDetails|string
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $shippingDetails;
+ protected $ineligibleRegion;
/**
- * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
+ * A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism.
+ *
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $mpn;
+ protected $additionalProperty;
/**
- * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
+ * Indicates whether this content is family friendly.
*
*
- * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
+ * @var bool|null
*/
- protected $includesObject;
+ protected $isFamilyFriendly;
/**
- * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell.
+ * The type(s) of customers for which the given offer is valid.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null
+ * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
*/
- protected $businessFunction;
+ protected $eligibleCustomerType;
/**
- * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.
+ * Used to tag an item to be intended or suitable for consumption or use by adults only.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null
*/
- protected $itemCondition;
+ protected $hasAdultConsideration;
/**
- * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties. The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs. A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged.
- *
+ * The current approximate inventory level for the item or items.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $inventoryLevel;
+
+ /**
+ * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
* @var string
*/
- protected $gtin;
+ protected $gtin13;
/**
- * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity.
+ * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $eligibleQuantity;
+ protected $priceCurrency;
/**
- * The payment method(s) accepted by seller for this offer.
+ * The serial number or any alphanumeric identifier of a particular product. When attached to an offer, it is a shortcut for the serial number of the product included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @var string
*/
- protected $acceptedPaymentMethod;
+ protected $serialNumber;
/**
- * The warranty promise(s) included in the offer.
+ * An additional offer that can only be obtained in combination with the first base offer (e.g. supplements and extensions that are available for a surcharge).
*
*
- * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $warranty;
+ protected $addOn;
/**
- * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
+ * An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization (summary from [Wikipedia](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)'s article).
+ *
+ * Note also that this is a definition for how to include ASINs in Schema.org data, and not a definition of ASINs in general - see documentation from Amazon for authoritative details.
+ * ASINs are most commonly encoded as text strings, but the [asin] property supports URL/URI as potential values too.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $seller;
+ protected $asin;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]].
- *
+ * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes.
+ *
+ * A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties.
+ *
+ * The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) expresses GTINs as URLs (URIs, IRIs, etc.).
+ * Digital Links should be populated into the [[hasGS1DigitalLink]] attribute.
+ *
+ * Note also that this is a definition for how to include GTINs in Schema.org data, and not a definition of GTINs in general - see the GS1 documentation for authoritative details.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var string
*/
- protected $ineligibleRegion;
+ protected $gtin;
/**
- * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
+ * The beginning of the availability of the product or service included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
+ * @var Date|DateTime|string|null
*/
- protected $leaseLength;
+ protected $availabilityStarts;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null
*/
- protected $aggregateRating;
+ protected $businessFunction;
/**
- * A pointer to the organization or person making the offer.
+ * The date after which the price is no longer available.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var Date|null
*/
- protected $offeredBy;
+ protected $priceValidUntil;
/**
- * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup.
+ * Indicates information about the shipping policies and options associated with an [[Offer]].
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\OfferShippingDetails|string
*/
- protected $deliveryLeadTime;
+ protected $shippingDetails;
/**
- * The delivery method(s) available for this offer.
+ * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @var string
*/
- protected $availableDeliveryMethod;
+ protected $mpn;
/**
- * The date when the item becomes valid.
+ * Review of the item.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $validFrom;
+ protected $reviews;
/**
- * The end of the availability of the product or service included in the offer.
+ * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount.
*
*
- * @var Date|DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $availabilityEnds;
+ protected $eligibleTransactionVolume;
/**
- * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]].
- *
+ * The place(s) from which the offer can be obtained (e.g. store locations).
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $eligibleRegion;
+ protected $availableAtOrFrom;
/**
- * A product measurement, for example the inseam of pants, the wheel size of a bicycle, or the gauge of a screw. Usually an exact measurement, but can also be a range of measurements for adjustable products, for example belts and ski bindings.
+ * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $hasMeasurement;
+ protected $itemOffered;
/**
- * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
+ * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null
*/
- protected $gtin8;
+ protected $category;
/**
- * The current approximate inventory level for the item or items.
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $inventoryLevel;
+ protected $aggregateRating;
+
+ /**
+ * The payment method(s) that are accepted in general by an organization, or for some specific demand or offer.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ */
+ protected $acceptedPaymentMethod;
/**
* The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.
@@ -306,12 +345,47 @@ public static function fieldList() {
protected $sku;
/**
- * An additional offer that can only be obtained in combination with the first base offer (e.g. supplements and extensions that are available for a surcharge).
+ * The date when the item becomes valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|string
+ * @var Date|DateTime|null
*/
- protected $addOn;
+ protected $validFrom;
+
+ /**
+ * The [[mobileUrl]] property is provided for specific situations in which data consumers need to determine whether one of several provided URLs is a dedicated 'mobile site'.
+ *
+ * To discourage over-use, and reflecting intial usecases, the property is expected only on [[Product]] and [[Offer]], rather than [[Thing]]. The general trend in web technology is towards [responsive design](https://en.wikipedia.org/wiki/Responsive_web_design) in which content can be flexibly adapted to a wide range of browsing environments. Pages and sites referenced with the long-established [[url]] property should ideally also be usable on a wide variety of devices, including mobile phones. In most cases, it would be pointless and counter productive to attempt to update all [[url]] markup to use [[mobileUrl]] for more mobile-oriented pages. The property is intended for the case when items (primarily [[Product]] and [[Offer]]) have extra URLs hosted on an additional "mobile site" alongside the main one. It should not be taken as an endorsement of this publication style.
+ *
+ *
+ *
+ * @var string
+ */
+ protected $mobileUrl;
+
+ /**
+ * The GS1 digital link associated with the object. This URL should conform to the particular requirements of digital links. The link should only contain the Application Identifiers (AIs) that are relevant for the entity being annotated, for instance a [[Product]] or an [[Organization]], and for the correct granularity. In particular, for products:
21
) should only be present on instances of [[IndividualProduct]]10
) should be annotated as [[SomeProduct]] if only products from that lot are sold, or [[IndividualProduct]] if there is only a specific product.8013
) should be attached to a [[Product]] or a [[ProductModel]].21
) should only be present on instances of [[IndividualProduct]]10
) should be annotated as [[SomeProduct]] if only products from that lot are sold, or [[IndividualProduct]] if there is only a specific product.8013
) should be attached to a [[Product]] or a [[ProductModel]].21
) should only be present on instances of [[IndividualProduct]]10
) should be annotated as [[SomeProduct]] if only products from that lot are sold, or [[IndividualProduct]] if there is only a specific product.8013
) should be attached to a [[Product]] or a [[ProductModel]].21
) should only be present on instances of [[IndividualProduct]]10
) should be annotated as [[SomeProduct]] if only products from that lot are sold, or [[IndividualProduct]] if there is only a specific product.8013
) should be attached to a [[Product]] or a [[ProductModel]].