diff --git a/src/Enums/PropertyEnumeration.php b/src/Enums/PropertyEnumeration.php
index 5c24a90a..d90d7de4 100644
--- a/src/Enums/PropertyEnumeration.php
+++ b/src/Enums/PropertyEnumeration.php
@@ -113,6 +113,7 @@ class PropertyEnumeration
const ActionApplication = \OpenActive\Enums\PropertyEnumeration\ActionApplication::class;
const ActionOption = \OpenActive\Enums\PropertyEnumeration\ActionOption::class;
const ActionPlatform = \OpenActive\Enums\PropertyEnumeration\ActionPlatform::class;
+ const ActionProcess = \OpenActive\Enums\PropertyEnumeration\ActionProcess::class;
const ActionStatus = \OpenActive\Enums\PropertyEnumeration\ActionStatus::class;
const ActionableFeedbackPolicy = \OpenActive\Enums\PropertyEnumeration\ActionableFeedbackPolicy::class;
const ActiveIngredient = \OpenActive\Enums\PropertyEnumeration\ActiveIngredient::class;
@@ -137,6 +138,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 +195,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 +214,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 +312,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 +348,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 +361,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 +399,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 +474,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 +681,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,9 +691,11 @@ 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;
+ const HasMemberProgram = \OpenActive\Enums\PropertyEnumeration\HasMemberProgram::class;
const HasMenu = \OpenActive\Enums\PropertyEnumeration\HasMenu::class;
const HasMenuItem = \OpenActive\Enums\PropertyEnumeration\HasMenuItem::class;
const HasMenuSection = \OpenActive\Enums\PropertyEnumeration\HasMenuSection::class;
@@ -692,6 +706,9 @@ class PropertyEnumeration
const HasPOS = \OpenActive\Enums\PropertyEnumeration\HasPOS::class;
const HasPart = \OpenActive\Enums\PropertyEnumeration\HasPart::class;
const HasRepresentation = \OpenActive\Enums\PropertyEnumeration\HasRepresentation::class;
+ const HasTierBenefit = \OpenActive\Enums\PropertyEnumeration\HasTierBenefit::class;
+ const HasTierRequirement = \OpenActive\Enums\PropertyEnumeration\HasTierRequirement::class;
+ const HasTiers = \OpenActive\Enums\PropertyEnumeration\HasTiers::class;
const HasVariant = \OpenActive\Enums\PropertyEnumeration\HasVariant::class;
const Headline = \OpenActive\Enums\PropertyEnumeration\Headline::class;
const HealthCondition = \OpenActive\Enums\PropertyEnumeration\HealthCondition::class;
@@ -793,6 +810,7 @@ class PropertyEnumeration
const IsRelatedTo = \OpenActive\Enums\PropertyEnumeration\IsRelatedTo::class;
const IsResizable = \OpenActive\Enums\PropertyEnumeration\IsResizable::class;
const IsSimilarTo = \OpenActive\Enums\PropertyEnumeration\IsSimilarTo::class;
+ const IsTierOf = \OpenActive\Enums\PropertyEnumeration\IsTierOf::class;
const IsUnlabelledFallback = \OpenActive\Enums\PropertyEnumeration\IsUnlabelledFallback::class;
const IsVariantOf = \OpenActive\Enums\PropertyEnumeration\IsVariantOf::class;
const Isbn = \OpenActive\Enums\PropertyEnumeration\Isbn::class;
@@ -900,7 +918,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 +948,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 +1011,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;
@@ -1053,6 +1075,7 @@ class PropertyEnumeration
const PaymentDueDate = \OpenActive\Enums\PropertyEnumeration\PaymentDueDate::class;
const PaymentMethod = \OpenActive\Enums\PropertyEnumeration\PaymentMethod::class;
const PaymentMethodId = \OpenActive\Enums\PropertyEnumeration\PaymentMethodId::class;
+ const PaymentMethodType = \OpenActive\Enums\PropertyEnumeration\PaymentMethodType::class;
const PaymentStatus = \OpenActive\Enums\PropertyEnumeration\PaymentStatus::class;
const PaymentUrl = \OpenActive\Enums\PropertyEnumeration\PaymentUrl::class;
const Penciler = \OpenActive\Enums\PropertyEnumeration\Penciler::class;
@@ -1094,6 +1117,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;
@@ -1130,6 +1154,7 @@ class PropertyEnumeration
const ProductionCompany = \OpenActive\Enums\PropertyEnumeration\ProductionCompany::class;
const ProductionDate = \OpenActive\Enums\PropertyEnumeration\ProductionDate::class;
const ProficiencyLevel = \OpenActive\Enums\PropertyEnumeration\ProficiencyLevel::class;
+ const Program = \OpenActive\Enums\PropertyEnumeration\Program::class;
const ProgramMembershipUsed = \OpenActive\Enums\PropertyEnumeration\ProgramMembershipUsed::class;
const ProgramName = \OpenActive\Enums\PropertyEnumeration\ProgramName::class;
const ProgramPrerequisites = \OpenActive\Enums\PropertyEnumeration\ProgramPrerequisites::class;
@@ -1302,6 +1327,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 +1373,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 +1413,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 +1454,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 +1480,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 +1495,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;
@@ -1472,6 +1503,7 @@ class PropertyEnumeration
const UsesHealthPlanIdStandard = \OpenActive\Enums\PropertyEnumeration\UsesHealthPlanIdStandard::class;
const Utterances = \OpenActive\Enums\PropertyEnumeration\Utterances::class;
const ValidFor = \OpenActive\Enums\PropertyEnumeration\ValidFor::class;
+ const ValidForMemberTier = \OpenActive\Enums\PropertyEnumeration\ValidForMemberTier::class;
const ValidFrom = \OpenActive\Enums\PropertyEnumeration\ValidFrom::class;
const ValidIn = \OpenActive\Enums\PropertyEnumeration\ValidIn::class;
const ValidThrough = \OpenActive\Enums\PropertyEnumeration\ValidThrough::class;
diff --git a/src/Enums/PropertyEnumeration/MeasuredValue.php b/src/Enums/PropertyEnumeration/ActionProcess.php
similarity index 55%
rename from src/Enums/PropertyEnumeration/MeasuredValue.php
rename to src/Enums/PropertyEnumeration/ActionProcess.php
index 7e7f9a95..c3c1ea0d 100644
--- a/src/Enums/PropertyEnumeration/MeasuredValue.php
+++ b/src/Enums/PropertyEnumeration/ActionProcess.php
@@ -6,8 +6,8 @@
* This enumeration contains a value for all properties in the https://schema.org/ and https://openactive.io/ vocabularies.
*
*/
-class MeasuredValue extends \OpenActive\Enums\PropertyEnumeration
+class ActionProcess extends \OpenActive\Enums\PropertyEnumeration
{
- const value = "MeasuredValue";
- const memberVal = "https://schema.org/measuredValue";
+ const value = "ActionProcess";
+ const memberVal = "https://schema.org/actionProcess";
}
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..89d75fd7 100644
--- a/src/Models/SchemaOrg/APIReference.php
+++ b/src/Models/SchemaOrg/APIReference.php
@@ -17,39 +17,39 @@ public static function getType()
public static function fieldList() {
$fields = [
- "assembly" => "assembly",
"targetPlatform" => "targetPlatform",
"executableLibraryName" => "executableLibraryName",
- "programmingModel" => "programmingModel",
"assemblyVersion" => "assemblyVersion",
+ "programmingModel" => "programmingModel",
+ "assembly" => "assembly",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Library file name e.g., mscorlib.dll, system.web.dll.
+ * Type of app development: phone, Metro style, desktop, XBox, etc.
*
*
* @var string
*/
- protected $assembly;
+ protected $targetPlatform;
/**
- * Type of app development: phone, Metro style, desktop, XBox, etc.
+ * Library file name, e.g., mscorlib.dll, system.web.dll.
*
*
* @var string
*/
- protected $targetPlatform;
+ protected $executableLibraryName;
/**
- * Library file name e.g., mscorlib.dll, system.web.dll.
+ * Associated product/technology version. E.g., .NET Framework 4.5.
*
*
* @var string
*/
- protected $executableLibraryName;
+ protected $assemblyVersion;
/**
* Indicates whether API is managed or unmanaged.
@@ -60,83 +60,83 @@ public static function fieldList() {
protected $programmingModel;
/**
- * Associated product/technology version. e.g., .NET Framework 4.5.
+ * Library file name, e.g., mscorlib.dll, system.web.dll.
*
*
* @var string
*/
- protected $assemblyVersion;
+ protected $assembly;
/**
* @return string
*/
- public function getAssembly()
+ public function getTargetPlatform()
{
- return $this->assembly;
+ return $this->targetPlatform;
}
/**
- * @param string $assembly
+ * @param string $targetPlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssembly($assembly)
+ public function setTargetPlatform($targetPlatform)
{
$types = [
"string",
];
- $assembly = self::checkTypes($assembly, $types);
+ $targetPlatform = self::checkTypes($targetPlatform, $types);
- $this->assembly = $assembly;
+ $this->targetPlatform = $targetPlatform;
}
/**
* @return string
*/
- public function getTargetPlatform()
+ public function getExecutableLibraryName()
{
- return $this->targetPlatform;
+ return $this->executableLibraryName;
}
/**
- * @param string $targetPlatform
+ * @param string $executableLibraryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetPlatform($targetPlatform)
+ public function setExecutableLibraryName($executableLibraryName)
{
$types = [
"string",
];
- $targetPlatform = self::checkTypes($targetPlatform, $types);
+ $executableLibraryName = self::checkTypes($executableLibraryName, $types);
- $this->targetPlatform = $targetPlatform;
+ $this->executableLibraryName = $executableLibraryName;
}
/**
* @return string
*/
- public function getExecutableLibraryName()
+ public function getAssemblyVersion()
{
- return $this->executableLibraryName;
+ return $this->assemblyVersion;
}
/**
- * @param string $executableLibraryName
+ * @param string $assemblyVersion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExecutableLibraryName($executableLibraryName)
+ public function setAssemblyVersion($assemblyVersion)
{
$types = [
"string",
];
- $executableLibraryName = self::checkTypes($executableLibraryName, $types);
+ $assemblyVersion = self::checkTypes($assemblyVersion, $types);
- $this->executableLibraryName = $executableLibraryName;
+ $this->assemblyVersion = $assemblyVersion;
}
/**
@@ -166,25 +166,25 @@ public function setProgrammingModel($programmingModel)
/**
* @return string
*/
- public function getAssemblyVersion()
+ public function getAssembly()
{
- return $this->assemblyVersion;
+ return $this->assembly;
}
/**
- * @param string $assemblyVersion
+ * @param string $assembly
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssemblyVersion($assemblyVersion)
+ public function setAssembly($assembly)
{
$types = [
"string",
];
- $assemblyVersion = self::checkTypes($assemblyVersion, $types);
+ $assembly = self::checkTypes($assembly, $types);
- $this->assemblyVersion = $assemblyVersion;
+ $this->assembly = $assembly;
}
}
diff --git a/src/Models/SchemaOrg/Accommodation.php b/src/Models/SchemaOrg/Accommodation.php
index f94a1485..adaeecdd 100644
--- a/src/Models/SchemaOrg/Accommodation.php
+++ b/src/Models/SchemaOrg/Accommodation.php
@@ -17,51 +17,69 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "floorSize" => "floorSize",
+ "accommodationCategory" => "accommodationCategory",
+ "petsAllowed" => "petsAllowed",
+ "occupancy" => "occupancy",
+ "numberOfBedrooms" => "numberOfBedrooms",
+ "leaseLength" => "leaseLength",
+ "bed" => "bed",
+ "permittedUsage" => "permittedUsage",
"floorLevel" => "floorLevel",
"numberOfBathroomsTotal" => "numberOfBathroomsTotal",
+ "accommodationFloorPlan" => "accommodationFloorPlan",
+ "numberOfFullBathrooms" => "numberOfFullBathrooms",
"numberOfRooms" => "numberOfRooms",
- "leaseLength" => "leaseLength",
- "yearBuilt" => "yearBuilt",
- "accommodationCategory" => "accommodationCategory",
"amenityFeature" => "amenityFeature",
"tourBookingPage" => "tourBookingPage",
- "numberOfBedrooms" => "numberOfBedrooms",
"numberOfPartialBathrooms" => "numberOfPartialBathrooms",
- "floorSize" => "floorSize",
- "accommodationFloorPlan" => "accommodationFloorPlan",
- "numberOfFullBathrooms" => "numberOfFullBathrooms",
- "permittedUsage" => "permittedUsage",
- "petsAllowed" => "petsAllowed",
+ "yearBuilt" => "yearBuilt",
];
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 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 $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).
*
*
* @var string
*/
- protected $floorLevel;
+ protected $accommodationCategory;
/**
- * 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]].
+ * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
*
*
- * @var int|null
+ * @var bool|string|null
*/
- protected $numberOfBathroomsTotal;
+ protected $petsAllowed;
/**
- * 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.
+ * 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\QuantitativeValue|string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfRooms;
+ protected $occupancy;
+
+ /**
+ * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ *
+ *
+ * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ */
+ protected $numberOfBedrooms;
/**
* Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
@@ -72,168 +90,221 @@ public static function fieldList() {
protected $leaseLength;
/**
- * The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+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\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- protected $yearBuilt;
+ protected $bed;
/**
- * 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).
+ * Indications regarding the permitted usage of the accommodation.
*
*
* @var string
*/
- protected $accommodationCategory;
+ protected $permittedUsage;
/**
- * 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.
+ * 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 \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @var string
*/
- protected $amenityFeature;
+ protected $floorLevel;
/**
- * A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.
+ * 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 string
+ * @var int|null
*/
- protected $tourBookingPage;
+ protected $numberOfBathroomsTotal;
/**
- * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ * A floorplan of some [[Accommodation]].
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\FloorPlan|string
*/
- protected $numberOfBedrooms;
+ protected $accommodationFloorPlan;
/**
- * 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).
+ * 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 $numberOfPartialBathrooms;
+ protected $numberOfFullBathrooms;
/**
- * 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 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $floorSize;
+ protected $numberOfRooms;
/**
- * A floorplan of some [[Accommodation]].
+ * 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.
*
*
- * @var \OpenActive\Models\SchemaOrg\FloorPlan|string
+ * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- protected $accommodationFloorPlan;
+ protected $amenityFeature;
/**
- * 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).
+ * A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.
*
*
- * @var Number|null
+ * @var string
*/
- protected $numberOfFullBathrooms;
+ protected $tourBookingPage;
/**
- * Indications regarding the permitted usage of the accommodation.
+ * 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 string
+ * @var Number|null
*/
- protected $permittedUsage;
+ protected $numberOfPartialBathrooms;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field).
*
*
- * @var bool|string|null
+ * @var Number|null
*/
- protected $petsAllowed;
+ protected $yearBuilt;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getFloorSize()
+ {
+ return $this->floorSize;
+ }
+
+ /**
+ * @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 setFloorSize($floorSize)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ ];
+
+ $floorSize = self::checkTypes($floorSize, $types);
+
+ $this->floorSize = $floorSize;
+ }
/**
* @return string
*/
- public function getFloorLevel()
+ public function getAccommodationCategory()
{
- return $this->floorLevel;
+ return $this->accommodationCategory;
}
/**
- * @param string $floorLevel
+ * @param string $accommodationCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFloorLevel($floorLevel)
+ public function setAccommodationCategory($accommodationCategory)
{
$types = [
"string",
];
- $floorLevel = self::checkTypes($floorLevel, $types);
+ $accommodationCategory = self::checkTypes($accommodationCategory, $types);
- $this->floorLevel = $floorLevel;
+ $this->accommodationCategory = $accommodationCategory;
}
/**
- * @return int|null
+ * @return bool|string|null
*/
- public function getNumberOfBathroomsTotal()
+ public function getPetsAllowed()
{
- return $this->numberOfBathroomsTotal;
+ return $this->petsAllowed;
}
/**
- * @param int|null $numberOfBathroomsTotal
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfBathroomsTotal($numberOfBathroomsTotal)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "int",
+ "bool",
+ "string",
"null",
];
- $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->numberOfBathroomsTotal = $numberOfBathroomsTotal;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfRooms()
+ public function getOccupancy()
{
- return $this->numberOfRooms;
+ return $this->occupancy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms
+ * @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 setNumberOfRooms($numberOfRooms)
+ public function setOccupancy($occupancy)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ ];
+
+ $occupancy = self::checkTypes($occupancy, $types);
+
+ $this->occupancy = $occupancy;
+ }
+
+ /**
+ * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ */
+ public function getNumberOfBedrooms()
+ {
+ return $this->numberOfBedrooms;
+ }
+
+ /**
+ * @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 setNumberOfBedrooms($numberOfBedrooms)
+ {
+ $types = [
"Number",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
"null",
];
- $numberOfRooms = self::checkTypes($numberOfRooms, $types);
+ $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
- $this->numberOfRooms = $numberOfRooms;
+ $this->numberOfBedrooms = $numberOfBedrooms;
}
/**
@@ -264,278 +335,278 @@ public function setLeaseLength($leaseLength)
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- public function getYearBuilt()
+ public function getBed()
{
- return $this->yearBuilt;
+ return $this->bed;
}
/**
- * @param Number|null $yearBuilt
+ * @param \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string $bed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setYearBuilt($yearBuilt)
+ public function setBed($bed)
{
$types = [
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\BedType",
+ "\OpenActive\Models\SchemaOrg\BedDetails",
+ "string",
];
- $yearBuilt = self::checkTypes($yearBuilt, $types);
+ $bed = self::checkTypes($bed, $types);
- $this->yearBuilt = $yearBuilt;
+ $this->bed = $bed;
}
/**
* @return string
*/
- public function getAccommodationCategory()
+ public function getPermittedUsage()
{
- return $this->accommodationCategory;
+ return $this->permittedUsage;
}
/**
- * @param string $accommodationCategory
+ * @param string $permittedUsage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccommodationCategory($accommodationCategory)
+ public function setPermittedUsage($permittedUsage)
{
$types = [
"string",
];
- $accommodationCategory = self::checkTypes($accommodationCategory, $types);
+ $permittedUsage = self::checkTypes($permittedUsage, $types);
- $this->accommodationCategory = $accommodationCategory;
+ $this->permittedUsage = $permittedUsage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @return string
*/
- public function getAmenityFeature()
+ public function getFloorLevel()
{
- return $this->amenityFeature;
+ return $this->floorLevel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
+ * @param string $floorLevel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmenityFeature($amenityFeature)
+ public function setFloorLevel($floorLevel)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
"string",
];
- $amenityFeature = self::checkTypes($amenityFeature, $types);
+ $floorLevel = self::checkTypes($floorLevel, $types);
- $this->amenityFeature = $amenityFeature;
+ $this->floorLevel = $floorLevel;
}
/**
- * @return string
+ * @return int|null
*/
- public function getTourBookingPage()
+ public function getNumberOfBathroomsTotal()
{
- return $this->tourBookingPage;
+ return $this->numberOfBathroomsTotal;
}
/**
- * @param string $tourBookingPage
+ * @param int|null $numberOfBathroomsTotal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTourBookingPage($tourBookingPage)
+ public function setNumberOfBathroomsTotal($numberOfBathroomsTotal)
{
$types = [
- "string",
+ "int",
+ "null",
];
- $tourBookingPage = self::checkTypes($tourBookingPage, $types);
+ $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types);
- $this->tourBookingPage = $tourBookingPage;
+ $this->numberOfBathroomsTotal = $numberOfBathroomsTotal;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\FloorPlan|string
*/
- public function getNumberOfBedrooms()
+ public function getAccommodationFloorPlan()
{
- return $this->numberOfBedrooms;
+ return $this->accommodationFloorPlan;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms
+ * @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 setNumberOfBedrooms($numberOfBedrooms)
+ public function setAccommodationFloorPlan($accommodationFloorPlan)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\FloorPlan",
"string",
- "null",
];
- $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
+ $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types);
- $this->numberOfBedrooms = $numberOfBedrooms;
+ $this->accommodationFloorPlan = $accommodationFloorPlan;
}
/**
* @return Number|null
*/
- public function getNumberOfPartialBathrooms()
+ public function getNumberOfFullBathrooms()
{
- return $this->numberOfPartialBathrooms;
+ return $this->numberOfFullBathrooms;
}
/**
- * @param Number|null $numberOfPartialBathrooms
+ * @param Number|null $numberOfFullBathrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
+ public function setNumberOfFullBathrooms($numberOfFullBathrooms)
{
$types = [
"Number",
"null",
];
- $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
+ $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
- $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
+ $this->numberOfFullBathrooms = $numberOfFullBathrooms;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getFloorSize()
+ public function getNumberOfRooms()
{
- return $this->floorSize;
+ return $this->numberOfRooms;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize
+ * @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 setFloorSize($floorSize)
+ public function setNumberOfRooms($numberOfRooms)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
+ "null",
];
- $floorSize = self::checkTypes($floorSize, $types);
+ $numberOfRooms = self::checkTypes($numberOfRooms, $types);
- $this->floorSize = $floorSize;
+ $this->numberOfRooms = $numberOfRooms;
}
/**
- * @return \OpenActive\Models\SchemaOrg\FloorPlan|string
+ * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- public function getAccommodationFloorPlan()
+ public function getAmenityFeature()
{
- return $this->accommodationFloorPlan;
+ return $this->amenityFeature;
}
/**
- * @param \OpenActive\Models\SchemaOrg\FloorPlan|string $accommodationFloorPlan
+ * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccommodationFloorPlan($accommodationFloorPlan)
+ public function setAmenityFeature($amenityFeature)
{
$types = [
- "\OpenActive\Models\SchemaOrg\FloorPlan",
+ "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
"string",
];
- $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types);
+ $amenityFeature = self::checkTypes($amenityFeature, $types);
- $this->accommodationFloorPlan = $accommodationFloorPlan;
+ $this->amenityFeature = $amenityFeature;
}
/**
- * @return Number|null
+ * @return string
*/
- public function getNumberOfFullBathrooms()
+ public function getTourBookingPage()
{
- return $this->numberOfFullBathrooms;
+ return $this->tourBookingPage;
}
/**
- * @param Number|null $numberOfFullBathrooms
+ * @param string $tourBookingPage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfFullBathrooms($numberOfFullBathrooms)
+ public function setTourBookingPage($tourBookingPage)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
+ $tourBookingPage = self::checkTypes($tourBookingPage, $types);
- $this->numberOfFullBathrooms = $numberOfFullBathrooms;
+ $this->tourBookingPage = $tourBookingPage;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getPermittedUsage()
+ public function getNumberOfPartialBathrooms()
{
- return $this->permittedUsage;
+ return $this->numberOfPartialBathrooms;
}
/**
- * @param string $permittedUsage
+ * @param Number|null $numberOfPartialBathrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPermittedUsage($permittedUsage)
+ public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $permittedUsage = self::checkTypes($permittedUsage, $types);
+ $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
- $this->permittedUsage = $permittedUsage;
+ $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
}
/**
- * @return bool|string|null
+ * @return Number|null
*/
- public function getPetsAllowed()
+ public function getYearBuilt()
{
- return $this->petsAllowed;
+ return $this->yearBuilt;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param Number|null $yearBuilt
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setYearBuilt($yearBuilt)
{
$types = [
- "bool",
- "string",
+ "Number",
"null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $yearBuilt = self::checkTypes($yearBuilt, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->yearBuilt = $yearBuilt;
}
}
diff --git a/src/Models/SchemaOrg/Action.php b/src/Models/SchemaOrg/Action.php
index 88a8db68..45b66b0b 100644
--- a/src/Models/SchemaOrg/Action.php
+++ b/src/Models/SchemaOrg/Action.php
@@ -17,105 +17,106 @@ public static function getType()
public static function fieldList() {
$fields = [
- "agent" => "agent",
- "startTime" => "startTime",
- "actionStatus" => "actionStatus",
- "provider" => "provider",
+ "actionProcess" => "actionProcess",
"result" => "result",
+ "endTime" => "endTime",
+ "agent" => "agent",
+ "error" => "error",
"location" => "location",
- "object" => "object",
+ "actionStatus" => "actionStatus",
+ "startTime" => "startTime",
"target" => "target",
- "endTime" => "endTime",
"participant" => "participant",
"instrument" => "instrument",
- "error" => "error",
+ "provider" => "provider",
+ "object" => "object",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book.
+ * Description of the process by which the action was performed.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\HowTo|string
*/
- protected $agent;
+ protected $actionProcess;
/**
- * 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 result produced in the action. E.g. John wrote *a book*.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $startTime;
+ protected $result;
/**
- * 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 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 $provider;
+ protected $agent;
/**
- * The result produced in the action. e.g. John wrote *a book*.
+ * For failed actions, more information on the cause of the failure.
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $result;
+ protected $error;
/**
* 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\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress
*/
protected $location;
/**
- * 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*.
+ * Indicates the current disposition of the Action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\ActionStatusType|string
*/
- protected $object;
+ protected $actionStatus;
/**
- * 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.
+ * Indicates a target EntryPoint, or url, for an Action.
*
*
- * @var DateTime|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\EntryPoint
*/
- protected $endTime;
+ protected $target;
/**
- * Other co-agents that participated in the action indirectly. e.g. John wrote a book with *Steve*.
+ * Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $participant;
/**
- * The object that helped the agent perform the action. e.g. John wrote a book with *a pen*.
+ * The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
@@ -123,143 +124,150 @@ public static function fieldList() {
protected $instrument;
/**
- * For failed actions, more information on the cause of the failure.
+ * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $provider;
+
+ /**
+ * 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\Thing|string
*/
- protected $error;
+ protected $object;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\HowTo|string
*/
- public function getAgent()
+ public function getActionProcess()
{
- return $this->agent;
+ return $this->actionProcess;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $agent
+ * @param \OpenActive\Models\SchemaOrg\HowTo|string $actionProcess
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAgent($agent)
+ public function setActionProcess($actionProcess)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\HowTo",
"string",
];
- $agent = self::checkTypes($agent, $types);
+ $actionProcess = self::checkTypes($actionProcess, $types);
- $this->agent = $agent;
+ $this->actionProcess = $actionProcess;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getStartTime()
+ public function getResult()
{
- return $this->startTime;
+ return $this->result;
}
/**
- * @param DateTime|string|null $startTime
+ * @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 setStartTime($startTime)
+ public function setResult($result)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
- $startTime = self::checkTypes($startTime, $types);
+ $result = self::checkTypes($result, $types);
- $this->startTime = $startTime;
+ $this->result = $result;
}
/**
- * @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\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getProvider()
+ public function getAgent()
{
- return $this->provider;
+ return $this->agent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @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 setProvider($provider)
+ public function setAgent($agent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $agent = self::checkTypes($agent, $types);
- $this->provider = $provider;
+ $this->agent = $agent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getResult()
+ public function getError()
{
- return $this->result;
+ return $this->error;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $result
+ * @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 setResult($result)
+ public function setError($error)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $result = self::checkTypes($result, $types);
+ $error = self::checkTypes($error, $types);
- $this->result = $result;
+ $this->error = $error;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress
*/
public function getLocation()
{
@@ -267,17 +275,17 @@ public function getLocation()
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress $location
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setLocation($location)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
"\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\VirtualLocation",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
];
$location = self::checkTypes($location, $types);
@@ -286,83 +294,83 @@ public function setLocation($location)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\ActionStatusType|string
*/
- public function getObject()
+ public function getActionStatus()
{
- return $this->object;
+ return $this->actionStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $object
+ * @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 setObject($object)
+ public function setActionStatus($actionStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\ActionStatusType",
"string",
];
- $object = self::checkTypes($object, $types);
+ $actionStatus = self::checkTypes($actionStatus, $types);
- $this->object = $object;
+ $this->actionStatus = $actionStatus;
}
/**
- * @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\EntryPoint
*/
- public function getEndTime()
+ public function getTarget()
{
- return $this->endTime;
+ return $this->target;
}
/**
- * @param DateTime|string|null $endTime
+ * @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 setEndTime($endTime)
+ public function setTarget($target)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\EntryPoint",
];
- $endTime = self::checkTypes($endTime, $types);
+ $target = self::checkTypes($target, $types);
- $this->endTime = $endTime;
+ $this->target = $target;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getParticipant()
{
@@ -370,15 +378,15 @@ public function getParticipant()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $participant
+ * @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 setParticipant($participant)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
@@ -412,29 +420,55 @@ public function setInstrument($instrument)
$this->instrument = $instrument;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ */
+ public function getProvider()
+ {
+ return $this->provider;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setProvider($provider)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
+ ];
+
+ $provider = self::checkTypes($provider, $types);
+
+ $this->provider = $provider;
+ }
+
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getError()
+ public function getObject()
{
- return $this->error;
+ return $this->object;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $error
+ * @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 setError($error)
+ public function setObject($object)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $error = self::checkTypes($error, $types);
+ $object = self::checkTypes($object, $types);
- $this->error = $error;
+ $this->object = $object;
}
}
diff --git a/src/Models/SchemaOrg/ActionAccessSpecification.php b/src/Models/SchemaOrg/ActionAccessSpecification.php
index 168e3daf..dc357f03 100644
--- a/src/Models/SchemaOrg/ActionAccessSpecification.php
+++ b/src/Models/SchemaOrg/ActionAccessSpecification.php
@@ -17,58 +17,58 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "availabilityStarts" => "availabilityStarts",
+ "ineligibleRegion" => "ineligibleRegion",
"expectsAcceptanceOf" => "expectsAcceptanceOf",
"category" => "category",
- "ineligibleRegion" => "ineligibleRegion",
"requiresSubscription" => "requiresSubscription",
- "availabilityEnds" => "availabilityEnds",
"eligibleRegion" => "eligibleRegion",
- "availabilityStarts" => "availabilityStarts",
+ "availabilityEnds" => "availabilityEnds",
];
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 beginning of the availability of the product or service included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|string
+ * @var Date|DateTime|string|null
*/
- protected $expectsAcceptanceOf;
+ protected $availabilityStarts;
/**
- * 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 \OpenActive\Models\SchemaOrg\Place|string|\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]].
- *
+ * 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\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $ineligibleRegion;
+ protected $expectsAcceptanceOf;
/**
- * 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\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|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]].
@@ -80,144 +80,144 @@ public static function fieldList() {
protected $eligibleRegion;
/**
- * 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 Date|DateTime|string|null
*/
- public function getExpectsAcceptanceOf()
+ public function getAvailabilityStarts()
{
- return $this->expectsAcceptanceOf;
+ return $this->availabilityStarts;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf
+ * @param Date|DateTime|string|null $availabilityStarts
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpectsAcceptanceOf($expectsAcceptanceOf)
+ public function setAvailabilityStarts($availabilityStarts)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "string",
+ "Date",
+ "DateTime",
+ "Time",
+ "null",
];
- $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types);
+ $availabilityStarts = self::checkTypes($availabilityStarts, $types);
- $this->expectsAcceptanceOf = $expectsAcceptanceOf;
+ $this->availabilityStarts = $availabilityStarts;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return \OpenActive\Models\SchemaOrg\Place|string|\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 \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.
*/
- public function setCategory($category)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
- "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
- "\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\CategoryCode",
- "null",
+ "\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 \OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getIneligibleRegion()
+ public function getExpectsAcceptanceOf()
{
- return $this->ineligibleRegion;
+ return $this->expectsAcceptanceOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @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 setIneligibleRegion($ineligibleRegion)
+ public function setExpectsAcceptanceOf($expectsAcceptanceOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->expectsAcceptanceOf = $expectsAcceptanceOf;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|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\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|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\Models\SchemaOrg\Thing",
+ "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
"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;
}
/**
@@ -249,17 +249,17 @@ public function setEligibleRegion($eligibleRegion)
/**
* @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..d3d33fc8 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 = [
+ "lowPrice" => "lowPrice",
"highPrice" => "highPrice",
"offers" => "offers",
- "lowPrice" => "lowPrice",
"offerCount" => "offerCount",
];
@@ -27,29 +27,29 @@ 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.
- *
+ * 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 \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var string|Number|null
*/
- protected $offers;
+ protected $highPrice;
/**
- * 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.
+ * 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 string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- protected $lowPrice;
+ protected $offers;
/**
* 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,61 +80,61 @@ public function setHighPrice($highPrice)
"null",
];
- $highPrice = self::checkTypes($highPrice, $types);
+ $lowPrice = self::checkTypes($lowPrice, $types);
- $this->highPrice = $highPrice;
+ $this->lowPrice = $lowPrice;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return string|Number|null
*/
- public function getOffers()
+ public function getHighPrice()
{
- return $this->offers;
+ return $this->highPrice;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param string|Number|null $highPrice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setHighPrice($highPrice)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
"string",
+ "Number",
+ "null",
];
- $offers = self::checkTypes($offers, $types);
+ $highPrice = self::checkTypes($highPrice, $types);
- $this->offers = $offers;
+ $this->highPrice = $highPrice;
}
/**
- * @return string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getLowPrice()
+ public function getOffers()
{
- return $this->lowPrice;
+ return $this->offers;
}
/**
- * @param string|Number|null $lowPrice
+ * @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 setLowPrice($lowPrice)
+ public function setOffers($offers)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Demand",
"string",
- "Number",
- "null",
];
- $lowPrice = self::checkTypes($lowPrice, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->lowPrice = $lowPrice;
+ $this->offers = $offers;
}
/**
diff --git a/src/Models/SchemaOrg/AggregateRating.php b/src/Models/SchemaOrg/AggregateRating.php
index 67100854..19ee4cc8 100644
--- a/src/Models/SchemaOrg/AggregateRating.php
+++ b/src/Models/SchemaOrg/AggregateRating.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "itemReviewed" => "itemReviewed",
- "reviewCount" => "reviewCount",
"ratingCount" => "ratingCount",
+ "reviewCount" => "reviewCount",
+ "itemReviewed" => "itemReviewed",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The item that is being reviewed/rated.
+ * The count of total number of ratings.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var int|null
*/
- protected $itemReviewed;
+ protected $ratingCount;
/**
* The count of total number of reviews.
@@ -42,36 +42,36 @@ public static function fieldList() {
protected $reviewCount;
/**
- * The count of total number of ratings.
+ * The item that is being reviewed/rated.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $ratingCount;
+ protected $itemReviewed;
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return int|null
*/
- public function getItemReviewed()
+ public function getRatingCount()
{
- return $this->itemReviewed;
+ return $this->ratingCount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed
+ * @param int|null $ratingCount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemReviewed($itemReviewed)
+ public function setRatingCount($ratingCount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
- "string",
+ "int",
+ "null",
];
- $itemReviewed = self::checkTypes($itemReviewed, $types);
+ $ratingCount = self::checkTypes($ratingCount, $types);
- $this->itemReviewed = $itemReviewed;
+ $this->ratingCount = $ratingCount;
}
/**
@@ -100,28 +100,28 @@ public function setReviewCount($reviewCount)
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getRatingCount()
+ public function getItemReviewed()
{
- return $this->ratingCount;
+ return $this->itemReviewed;
}
/**
- * @param int|null $ratingCount
+ * @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 setRatingCount($ratingCount)
+ public function setItemReviewed($itemReviewed)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
];
- $ratingCount = self::checkTypes($ratingCount, $types);
+ $itemReviewed = self::checkTypes($itemReviewed, $types);
- $this->ratingCount = $ratingCount;
+ $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..fb66a1fe 100644
--- a/src/Models/SchemaOrg/AlignmentObject.php
+++ b/src/Models/SchemaOrg/AlignmentObject.php
@@ -17,174 +17,174 @@ public static function getType()
public static function fieldList() {
$fields = [
- "alignmentType" => "alignmentType",
"educationalFramework" => "educationalFramework",
+ "targetUrl" => "targetUrl",
+ "alignmentType" => "alignmentType",
"targetDescription" => "targetDescription",
"targetName" => "targetName",
- "targetUrl" => "targetUrl",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A category of alignment between the learning resource and the framework node. Recommended values include: 'requires', 'textComplexity', 'readingLevel', and 'educationalSubject'.
+ * The framework to which the resource being described is aligned.
*
*
* @var string
*/
- protected $alignmentType;
+ protected $educationalFramework;
/**
- * The framework to which the resource being described is aligned.
+ * The URL of a node in an established educational framework.
*
*
* @var string
*/
- protected $educationalFramework;
+ protected $targetUrl;
/**
- * The description of a node in an established educational framework.
+ * A category of alignment between the learning resource and the framework node. Recommended values include: 'requires', 'textComplexity', 'readingLevel', and 'educationalSubject'.
*
*
* @var string
*/
- protected $targetDescription;
+ protected $alignmentType;
/**
- * The name of a node in an established educational framework.
+ * The description of a node in an established educational framework.
*
*
* @var string
*/
- protected $targetName;
+ protected $targetDescription;
/**
- * The URL of a node in an established educational framework.
+ * The name of a node in an established educational framework.
*
*
* @var string
*/
- protected $targetUrl;
+ protected $targetName;
/**
* @return string
*/
- public function getAlignmentType()
+ public function getEducationalFramework()
{
- return $this->alignmentType;
+ return $this->educationalFramework;
}
/**
- * @param string $alignmentType
+ * @param string $educationalFramework
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlignmentType($alignmentType)
+ public function setEducationalFramework($educationalFramework)
{
$types = [
"string",
];
- $alignmentType = self::checkTypes($alignmentType, $types);
+ $educationalFramework = self::checkTypes($educationalFramework, $types);
- $this->alignmentType = $alignmentType;
+ $this->educationalFramework = $educationalFramework;
}
/**
* @return string
*/
- public function getEducationalFramework()
+ public function getTargetUrl()
{
- return $this->educationalFramework;
+ return $this->targetUrl;
}
/**
- * @param string $educationalFramework
+ * @param string $targetUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalFramework($educationalFramework)
+ public function setTargetUrl($targetUrl)
{
$types = [
"string",
];
- $educationalFramework = self::checkTypes($educationalFramework, $types);
+ $targetUrl = self::checkTypes($targetUrl, $types);
- $this->educationalFramework = $educationalFramework;
+ $this->targetUrl = $targetUrl;
}
/**
* @return string
*/
- public function getTargetDescription()
+ public function getAlignmentType()
{
- return $this->targetDescription;
+ return $this->alignmentType;
}
/**
- * @param string $targetDescription
+ * @param string $alignmentType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetDescription($targetDescription)
+ public function setAlignmentType($alignmentType)
{
$types = [
"string",
];
- $targetDescription = self::checkTypes($targetDescription, $types);
+ $alignmentType = self::checkTypes($alignmentType, $types);
- $this->targetDescription = $targetDescription;
+ $this->alignmentType = $alignmentType;
}
/**
* @return string
*/
- public function getTargetName()
+ public function getTargetDescription()
{
- return $this->targetName;
+ return $this->targetDescription;
}
/**
- * @param string $targetName
+ * @param string $targetDescription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetName($targetName)
+ public function setTargetDescription($targetDescription)
{
$types = [
"string",
];
- $targetName = self::checkTypes($targetName, $types);
+ $targetDescription = self::checkTypes($targetDescription, $types);
- $this->targetName = $targetName;
+ $this->targetDescription = $targetDescription;
}
/**
* @return string
*/
- public function getTargetUrl()
+ public function getTargetName()
{
- return $this->targetUrl;
+ return $this->targetName;
}
/**
- * @param string $targetUrl
+ * @param string $targetName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetUrl($targetUrl)
+ public function setTargetName($targetName)
{
$types = [
"string",
];
- $targetUrl = self::checkTypes($targetUrl, $types);
+ $targetName = self::checkTypes($targetName, $types);
- $this->targetUrl = $targetUrl;
+ $this->targetName = $targetName;
}
}
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..15fd131f 100644
--- a/src/Models/SchemaOrg/AnatomicalStructure.php
+++ b/src/Models/SchemaOrg/AnatomicalStructure.php
@@ -17,13 +17,13 @@ public static function getType()
public static function fieldList() {
$fields = [
- "bodyLocation" => "bodyLocation",
- "connectedTo" => "connectedTo",
- "partOfSystem" => "partOfSystem",
"relatedTherapy" => "relatedTherapy",
+ "partOfSystem" => "partOfSystem",
"diagram" => "diagram",
"relatedCondition" => "relatedCondition",
"subStructure" => "subStructure",
+ "connectedTo" => "connectedTo",
+ "bodyLocation" => "bodyLocation",
"associatedPathophysiology" => "associatedPathophysiology",
];
@@ -31,20 +31,12 @@ public static function fieldList() {
}
/**
- * Location in the body of the anatomical structure.
- *
- *
- * @var string
- */
- protected $bodyLocation;
-
- /**
- * Other anatomical structures to which this structure is connected.
+ * A medical therapy related to this anatomy.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $connectedTo;
+ protected $relatedTherapy;
/**
* The anatomical or organ system that this structure is part of.
@@ -54,14 +46,6 @@ public static function fieldList() {
*/
protected $partOfSystem;
- /**
- * A medical therapy related to this anatomy.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
- */
- protected $relatedTherapy;
-
/**
* An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures.
*
@@ -87,60 +71,52 @@ public static function fieldList() {
protected $subStructure;
/**
- * 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.
+ * Other anatomical structures to which this structure is connected.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $associatedPathophysiology;
+ protected $connectedTo;
/**
- * @return string
+ * Location in the body of the anatomical structure.
+ *
+ *
+ * @var string
*/
- public function getBodyLocation()
- {
- return $this->bodyLocation;
- }
+ protected $bodyLocation;
/**
- * @param string $bodyLocation
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * 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 string
*/
- public function setBodyLocation($bodyLocation)
- {
- $types = [
- "string",
- ];
-
- $bodyLocation = self::checkTypes($bodyLocation, $types);
-
- $this->bodyLocation = $bodyLocation;
- }
+ protected $associatedPathophysiology;
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getConnectedTo()
+ public function getRelatedTherapy()
{
- return $this->connectedTo;
+ return $this->relatedTherapy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $connectedTo
+ * @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 setConnectedTo($connectedTo)
+ public function setRelatedTherapy($relatedTherapy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $connectedTo = self::checkTypes($connectedTo, $types);
+ $relatedTherapy = self::checkTypes($relatedTherapy, $types);
- $this->connectedTo = $connectedTo;
+ $this->relatedTherapy = $relatedTherapy;
}
/**
@@ -168,31 +144,6 @@ public function setPartOfSystem($partOfSystem)
$this->partOfSystem = $partOfSystem;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
- */
- public function getRelatedTherapy()
- {
- return $this->relatedTherapy;
- }
-
- /**
- * @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 setRelatedTherapy($relatedTherapy)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
- "string",
- ];
-
- $relatedTherapy = self::checkTypes($relatedTherapy, $types);
-
- $this->relatedTherapy = $relatedTherapy;
- }
-
/**
* @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
@@ -268,6 +219,55 @@ public function setSubStructure($subStructure)
$this->subStructure = $subStructure;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ */
+ public function getConnectedTo()
+ {
+ return $this->connectedTo;
+ }
+
+ /**
+ * @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 setConnectedTo($connectedTo)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "string",
+ ];
+
+ $connectedTo = self::checkTypes($connectedTo, $types);
+
+ $this->connectedTo = $connectedTo;
+ }
+
+ /**
+ * @return string
+ */
+ public function getBodyLocation()
+ {
+ return $this->bodyLocation;
+ }
+
+ /**
+ * @param string $bodyLocation
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setBodyLocation($bodyLocation)
+ {
+ $types = [
+ "string",
+ ];
+
+ $bodyLocation = self::checkTypes($bodyLocation, $types);
+
+ $this->bodyLocation = $bodyLocation;
+ }
+
/**
* @return string
*/
diff --git a/src/Models/SchemaOrg/AnatomicalSystem.php b/src/Models/SchemaOrg/AnatomicalSystem.php
index 3c5f3391..2305847f 100644
--- a/src/Models/SchemaOrg/AnatomicalSystem.php
+++ b/src/Models/SchemaOrg/AnatomicalSystem.php
@@ -17,16 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "relatedStructure" => "relatedStructure",
"relatedTherapy" => "relatedTherapy",
+ "comprisedOf" => "comprisedOf",
"relatedCondition" => "relatedCondition",
- "relatedStructure" => "relatedStructure",
"associatedPathophysiology" => "associatedPathophysiology",
- "comprisedOf" => "comprisedOf",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * 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 \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ */
+ protected $relatedStructure;
+
/**
* A medical therapy related to this anatomy.
*
@@ -36,20 +44,20 @@ public static function fieldList() {
protected $relatedTherapy;
/**
- * A medical condition associated with 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\MedicalCondition|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- protected $relatedCondition;
+ protected $comprisedOf;
/**
- * 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 condition associated with this anatomy.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $relatedStructure;
+ protected $relatedCondition;
/**
* 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.
@@ -60,136 +68,128 @@ public static function fieldList() {
protected $associatedPathophysiology;
/**
- * 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\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
- */
- protected $comprisedOf;
-
- /**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getRelatedTherapy()
+ public function getRelatedStructure()
{
- return $this->relatedTherapy;
+ return $this->relatedStructure;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy
+ * @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 setRelatedTherapy($relatedTherapy)
+ public function setRelatedStructure($relatedStructure)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $relatedTherapy = self::checkTypes($relatedTherapy, $types);
+ $relatedStructure = self::checkTypes($relatedStructure, $types);
- $this->relatedTherapy = $relatedTherapy;
+ $this->relatedStructure = $relatedStructure;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getRelatedCondition()
+ public function getRelatedTherapy()
{
- return $this->relatedCondition;
+ return $this->relatedTherapy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition
+ * @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 setRelatedCondition($relatedCondition)
+ public function setRelatedTherapy($relatedTherapy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $relatedCondition = self::checkTypes($relatedCondition, $types);
+ $relatedTherapy = self::checkTypes($relatedTherapy, $types);
- $this->relatedCondition = $relatedCondition;
+ $this->relatedTherapy = $relatedTherapy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
- public function getRelatedStructure()
+ public function getComprisedOf()
{
- return $this->relatedStructure;
+ return $this->comprisedOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $relatedStructure
+ * @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 setRelatedStructure($relatedStructure)
+ public function setComprisedOf($comprisedOf)
{
$types = [
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
- $relatedStructure = self::checkTypes($relatedStructure, $types);
+ $comprisedOf = self::checkTypes($comprisedOf, $types);
- $this->relatedStructure = $relatedStructure;
+ $this->comprisedOf = $comprisedOf;
}
/**
- * @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;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @return string
*/
- public function getComprisedOf()
+ public function getAssociatedPathophysiology()
{
- return $this->comprisedOf;
+ return $this->associatedPathophysiology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $comprisedOf
+ * @param string $associatedPathophysiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setComprisedOf($comprisedOf)
+ public function setAssociatedPathophysiology($associatedPathophysiology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
- $comprisedOf = self::checkTypes($comprisedOf, $types);
+ $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types);
- $this->comprisedOf = $comprisedOf;
+ $this->associatedPathophysiology = $associatedPathophysiology;
}
}
diff --git a/src/Models/SchemaOrg/Answer.php b/src/Models/SchemaOrg/Answer.php
index a188ef02..fa6b0a63 100644
--- a/src/Models/SchemaOrg/Answer.php
+++ b/src/Models/SchemaOrg/Answer.php
@@ -17,22 +17,57 @@ 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.
*
*
- * @var \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Comment|string
+ * @var \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\WebContent|string
*/
protected $answerExplanation;
/**
- * @return \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Comment|string
+ * @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\Comment|\OpenActive\Models\SchemaOrg\WebContent|string
*/
public function getAnswerExplanation()
{
@@ -40,15 +75,15 @@ public function getAnswerExplanation()
}
/**
- * @param \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Comment|string $answerExplanation
+ * @param \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\WebContent|string $answerExplanation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setAnswerExplanation($answerExplanation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WebContent",
"\OpenActive\Models\SchemaOrg\Comment",
+ "\OpenActive\Models\SchemaOrg\WebContent",
"string",
];
diff --git a/src/Models/SchemaOrg/Apartment.php b/src/Models/SchemaOrg/Apartment.php
index 89cfe3f1..26432e9e 100644
--- a/src/Models/SchemaOrg/Apartment.php
+++ b/src/Models/SchemaOrg/Apartment.php
@@ -17,81 +17,81 @@ public static function getType()
public static function fieldList() {
$fields = [
- "numberOfRooms" => "numberOfRooms",
"occupancy" => "occupancy",
+ "numberOfRooms" => "numberOfRooms",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * 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.
+ * 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\QuantitativeValue|string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfRooms;
+ 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 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $occupancy;
+ protected $numberOfRooms;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfRooms()
+ public function getOccupancy()
{
- return $this->numberOfRooms;
+ return $this->occupancy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms
+ * @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 setNumberOfRooms($numberOfRooms)
+ public function setOccupancy($occupancy)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "Number",
- "null",
];
- $numberOfRooms = self::checkTypes($numberOfRooms, $types);
+ $occupancy = self::checkTypes($occupancy, $types);
- $this->numberOfRooms = $numberOfRooms;
+ $this->occupancy = $occupancy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getOccupancy()
+ public function getNumberOfRooms()
{
- return $this->occupancy;
+ return $this->numberOfRooms;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy
+ * @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 setOccupancy($occupancy)
+ public function setNumberOfRooms($numberOfRooms)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
+ "null",
];
- $occupancy = self::checkTypes($occupancy, $types);
+ $numberOfRooms = self::checkTypes($numberOfRooms, $types);
- $this->occupancy = $occupancy;
+ $this->numberOfRooms = $numberOfRooms;
}
}
diff --git a/src/Models/SchemaOrg/ApartmentComplex.php b/src/Models/SchemaOrg/ApartmentComplex.php
index 840b9180..faf7d582 100644
--- a/src/Models/SchemaOrg/ApartmentComplex.php
+++ b/src/Models/SchemaOrg/ApartmentComplex.php
@@ -17,181 +17,181 @@ public static function getType()
public static function fieldList() {
$fields = [
- "numberOfAccommodationUnits" => "numberOfAccommodationUnits",
+ "petsAllowed" => "petsAllowed",
+ "numberOfBedrooms" => "numberOfBedrooms",
"numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits",
+ "numberOfAccommodationUnits" => "numberOfAccommodationUnits",
"tourBookingPage" => "tourBookingPage",
- "numberOfBedrooms" => "numberOfBedrooms",
- "petsAllowed" => "petsAllowed",
];
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]].
+ * 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 $numberOfAccommodationUnits;
+ protected $petsAllowed;
/**
- * 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 total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $numberOfAvailableAccommodationUnits;
+ protected $numberOfBedrooms;
/**
- * A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.
+ * 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 string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $tourBookingPage;
+ protected $numberOfAvailableAccommodationUnits;
/**
- * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ * 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 Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfBedrooms;
+ protected $numberOfAccommodationUnits;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.
*
*
- * @var bool|string|null
+ * @var string
*/
- protected $petsAllowed;
+ protected $tourBookingPage;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return bool|string|null
*/
- public function getNumberOfAccommodationUnits()
+ public function getPetsAllowed()
{
- return $this->numberOfAccommodationUnits;
+ return $this->petsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "bool",
"string",
+ "null",
];
- $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getNumberOfAvailableAccommodationUnits()
+ public function getNumberOfBedrooms()
{
- return $this->numberOfAvailableAccommodationUnits;
+ return $this->numberOfBedrooms;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits
+ * @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 setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
+ public function setNumberOfBedrooms($numberOfBedrooms)
{
$types = [
+ "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "null",
];
- $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
+ $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
- $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
+ $this->numberOfBedrooms = $numberOfBedrooms;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getTourBookingPage()
+ public function getNumberOfAvailableAccommodationUnits()
{
- return $this->tourBookingPage;
+ return $this->numberOfAvailableAccommodationUnits;
}
/**
- * @param string $tourBookingPage
+ * @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 setTourBookingPage($tourBookingPage)
+ public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $tourBookingPage = self::checkTypes($tourBookingPage, $types);
+ $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
- $this->tourBookingPage = $tourBookingPage;
+ $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfBedrooms()
+ public function getNumberOfAccommodationUnits()
{
- return $this->numberOfBedrooms;
+ return $this->numberOfAccommodationUnits;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms
+ * @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 setNumberOfBedrooms($numberOfBedrooms)
+ public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
+ $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
- $this->numberOfBedrooms = $numberOfBedrooms;
+ $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
}
/**
- * @return bool|string|null
+ * @return string
*/
- public function getPetsAllowed()
+ public function getTourBookingPage()
{
- return $this->petsAllowed;
+ return $this->tourBookingPage;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param string $tourBookingPage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setTourBookingPage($tourBookingPage)
{
$types = [
- "bool",
"string",
- "null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $tourBookingPage = self::checkTypes($tourBookingPage, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->tourBookingPage = $tourBookingPage;
}
}
diff --git a/src/Models/SchemaOrg/ArchiveComponent.php b/src/Models/SchemaOrg/ArchiveComponent.php
index 3aa0360c..8588ef27 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\Place|\OpenActive\Models\SchemaOrg\PostalAddress
*/
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\Place|\OpenActive\Models\SchemaOrg\PostalAddress
*/
public function getItemLocation()
{
@@ -74,15 +74,15 @@ public function getItemLocation()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $itemLocation
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress $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\Place",
"\OpenActive\Models\SchemaOrg\PostalAddress",
];
diff --git a/src/Models/SchemaOrg/Article.php b/src/Models/SchemaOrg/Article.php
index 7191721f..9d913d54 100644
--- a/src/Models/SchemaOrg/Article.php
+++ b/src/Models/SchemaOrg/Article.php
@@ -17,50 +17,50 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "pagination" => "pagination",
"pageStart" => "pageStart",
- "articleSection" => "articleSection",
- "pageEnd" => "pageEnd",
"backstory" => "backstory",
- "wordCount" => "wordCount",
"articleBody" => "articleBody",
+ "wordCount" => "wordCount",
+ "pageEnd" => "pageEnd",
"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.
+ * The page on which the work starts; for example "135" or "xiii".
*
*
- * @var string
+ * @var string|int|null
*/
- protected $articleSection;
+ protected $pageStart;
/**
- * The page on which the work ends; for example "138" or "xvi".
+ * 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|int|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $pageEnd;
+ protected $backstory;
/**
- * 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 actual body of the article.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var string
*/
- protected $backstory;
+ protected $articleBody;
/**
* The number of words in the text of the Article.
@@ -71,12 +71,12 @@ public static function fieldList() {
protected $wordCount;
/**
- * The actual body of the article.
+ * The page on which the work ends; for example "138" or "xvi".
*
*
- * @var string
+ * @var string|int|null
*/
- protected $articleBody;
+ protected $pageEnd;
/**
* 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.
@@ -85,7 +85,7 @@ public static function fieldList() {
*
* 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.
+ * 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.
*
@@ -100,112 +100,110 @@ public static function fieldList() {
protected $speakable;
/**
- * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".
+ * Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc.
*
*
* @var string
*/
- protected $pagination;
+ protected $articleSection;
/**
- * @return string|int|null
+ * @return string
*/
- public function getPageStart()
+ public function getPagination()
{
- return $this->pageStart;
+ return $this->pagination;
}
/**
- * @param string|int|null $pageStart
+ * @param string $pagination
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPageStart($pageStart)
+ public function setPagination($pagination)
{
$types = [
"string",
- "int",
- "null",
];
- $pageStart = self::checkTypes($pageStart, $types);
+ $pagination = self::checkTypes($pagination, $types);
- $this->pageStart = $pageStart;
+ $this->pagination = $pagination;
}
/**
- * @return string
+ * @return string|int|null
*/
- public function getArticleSection()
+ public function getPageStart()
{
- return $this->articleSection;
+ return $this->pageStart;
}
/**
- * @param string $articleSection
+ * @param string|int|null $pageStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArticleSection($articleSection)
+ public function setPageStart($pageStart)
{
$types = [
"string",
+ "int",
+ "null",
];
- $articleSection = self::checkTypes($articleSection, $types);
+ $pageStart = self::checkTypes($pageStart, $types);
- $this->articleSection = $articleSection;
+ $this->pageStart = $pageStart;
}
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getPageEnd()
+ public function getBackstory()
{
- return $this->pageEnd;
+ return $this->backstory;
}
/**
- * @param string|int|null $pageEnd
+ * @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 setPageEnd($pageEnd)
+ public function setBackstory($backstory)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "int",
- "null",
];
- $pageEnd = self::checkTypes($pageEnd, $types);
+ $backstory = self::checkTypes($backstory, $types);
- $this->pageEnd = $pageEnd;
+ $this->backstory = $backstory;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return string
*/
- public function getBackstory()
+ public function getArticleBody()
{
- return $this->backstory;
+ return $this->articleBody;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $backstory
+ * @param string $articleBody
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBackstory($backstory)
+ public function setArticleBody($articleBody)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $backstory = self::checkTypes($backstory, $types);
+ $articleBody = self::checkTypes($articleBody, $types);
- $this->backstory = $backstory;
+ $this->articleBody = $articleBody;
}
/**
@@ -234,27 +232,29 @@ public function setWordCount($wordCount)
}
/**
- * @return string
+ * @return string|int|null
*/
- public function getArticleBody()
+ public function getPageEnd()
{
- return $this->articleBody;
+ return $this->pageEnd;
}
/**
- * @param string $articleBody
+ * @param string|int|null $pageEnd
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArticleBody($articleBody)
+ public function setPageEnd($pageEnd)
{
$types = [
"string",
+ "int",
+ "null",
];
- $articleBody = self::checkTypes($articleBody, $types);
+ $pageEnd = self::checkTypes($pageEnd, $types);
- $this->articleBody = $articleBody;
+ $this->pageEnd = $pageEnd;
}
/**
@@ -285,25 +285,25 @@ public function setSpeakable($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/Audience.php b/src/Models/SchemaOrg/Audience.php
index ccb9ff52..61280d36 100644
--- a/src/Models/SchemaOrg/Audience.php
+++ b/src/Models/SchemaOrg/Audience.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "audienceType" => "audienceType",
"geographicArea" => "geographicArea",
+ "audienceType" => "audienceType",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The target group associated with a given audience (e.g. veterans, car owners, musicians, etc.).
+ * The geographic area associated with the audience.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $audienceType;
+ protected $geographicArea;
/**
- * The geographic area associated with the audience.
+ * The target group associated with a given audience (e.g. veterans, car owners, musicians, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var string
*/
- protected $geographicArea;
+ protected $audienceType;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getAudienceType()
+ public function getGeographicArea()
{
- return $this->audienceType;
+ return $this->geographicArea;
}
/**
- * @param string $audienceType
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $geographicArea
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudienceType($audienceType)
+ public function setGeographicArea($geographicArea)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $audienceType = self::checkTypes($audienceType, $types);
+ $geographicArea = self::checkTypes($geographicArea, $types);
- $this->audienceType = $audienceType;
+ $this->geographicArea = $geographicArea;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string
*/
- public function getGeographicArea()
+ public function getAudienceType()
{
- return $this->geographicArea;
+ return $this->audienceType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $geographicArea
+ * @param string $audienceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeographicArea($geographicArea)
+ public function setAudienceType($audienceType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $geographicArea = self::checkTypes($geographicArea, $types);
+ $audienceType = self::checkTypes($audienceType, $types);
- $this->geographicArea = $geographicArea;
+ $this->audienceType = $audienceType;
}
}
diff --git a/src/Models/SchemaOrg/AudioObject.php b/src/Models/SchemaOrg/AudioObject.php
index 6c0af6a0..632b25f8 100644
--- a/src/Models/SchemaOrg/AudioObject.php
+++ b/src/Models/SchemaOrg/AudioObject.php
@@ -17,64 +17,64 @@ public static function getType()
public static function fieldList() {
$fields = [
- "embeddedTextCaption" => "embeddedTextCaption",
- "caption" => "caption",
"transcript" => "transcript",
+ "caption" => "caption",
+ "embeddedTextCaption" => "embeddedTextCaption",
];
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]].
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
protected $caption;
/**
- * If this MediaObject is an AudioObject or VideoObject, the transcript of that object.
+ * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.
*
*
* @var string
*/
- protected $transcript;
+ protected $embeddedTextCaption;
/**
* @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 \OpenActive\Models\SchemaOrg\MediaObject|string
*/
public function getCaption()
{
@@ -82,15 +82,15 @@ public function getCaption()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption
+ * @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 setCaption($caption)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\MediaObject",
+ "string",
];
$caption = self::checkTypes($caption, $types);
@@ -101,25 +101,25 @@ public function setCaption($caption)
/**
* @return string
*/
- public function getTranscript()
+ public function getEmbeddedTextCaption()
{
- return $this->transcript;
+ return $this->embeddedTextCaption;
}
/**
- * @param string $transcript
+ * @param string $embeddedTextCaption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranscript($transcript)
+ public function setEmbeddedTextCaption($embeddedTextCaption)
{
$types = [
"string",
];
- $transcript = self::checkTypes($transcript, $types);
+ $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
- $this->transcript = $transcript;
+ $this->embeddedTextCaption = $embeddedTextCaption;
}
}
diff --git a/src/Models/SchemaOrg/Audiobook.php b/src/Models/SchemaOrg/Audiobook.php
index 86bdf5c8..420f91bf 100644
--- a/src/Models/SchemaOrg/Audiobook.php
+++ b/src/Models/SchemaOrg/Audiobook.php
@@ -33,7 +33,7 @@ public static function fieldList() {
protected $readBy;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
* @var DateInterval|string|null
diff --git a/src/Models/SchemaOrg/AuthorizeAction.php b/src/Models/SchemaOrg/AuthorizeAction.php
index 8f33b194..e760f2e5 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\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getRecipient()
{
@@ -40,16 +40,16 @@ 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\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Person",
"\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
"string",
];
diff --git a/src/Models/SchemaOrg/BioChemEntity.php b/src/Models/SchemaOrg/BioChemEntity.php
index c73b1a54..35eeba1b 100644
--- a/src/Models/SchemaOrg/BioChemEntity.php
+++ b/src/Models/SchemaOrg/BioChemEntity.php
@@ -17,39 +17,39 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "isLocatedInSubcellularLocation" => "isLocatedInSubcellularLocation",
"funding" => "funding",
- "isEncodedByBioChemEntity" => "isEncodedByBioChemEntity",
"isPartOfBioChemEntity" => "isPartOfBioChemEntity",
- "taxonomicRange" => "taxonomicRange",
"isInvolvedInBiologicalProcess" => "isInvolvedInBiologicalProcess",
- "isLocatedInSubcellularLocation" => "isLocatedInSubcellularLocation",
- "associatedDisease" => "associatedDisease",
- "hasMolecularFunction" => "hasMolecularFunction",
"hasBioChemEntityPart" => "hasBioChemEntityPart",
"bioChemInteraction" => "bioChemInteraction",
- "hasRepresentation" => "hasRepresentation",
"bioChemSimilarity" => "bioChemSimilarity",
+ "hasRepresentation" => "hasRepresentation",
+ "isEncodedByBioChemEntity" => "isEncodedByBioChemEntity",
+ "hasMolecularFunction" => "hasMolecularFunction",
"biologicalRole" => "biologicalRole",
+ "taxonomicRange" => "taxonomicRange",
+ "associatedDisease" => "associatedDisease",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * Subcellular location where this BioChemEntity is located; please use PropertyValue if you want to include any evidence.
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- protected $funding;
+ protected $isLocatedInSubcellularLocation;
/**
- * Another BioChemEntity encoding by this one.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Gene|string
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $isEncodedByBioChemEntity;
+ protected $funding;
/**
* Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity.
@@ -60,133 +60,134 @@ public static function fieldList() {
protected $isPartOfBioChemEntity;
/**
- * 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\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- 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 (in some sense) has this BioChemEntity as a part.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $isInvolvedInBiologicalProcess;
+ protected $hasBioChemEntityPart;
/**
- * Subcellular location where this BioChemEntity is located; please use PropertyValue if you want to include any evidence.
+ * A BioChemEntity that is known to interact with this item.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $isLocatedInSubcellularLocation;
+ protected $bioChemInteraction;
/**
- * 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 similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition
+ * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $associatedDisease;
+ protected $bioChemSimilarity;
/**
- * Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence.
+ * A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- protected $hasMolecularFunction;
+ protected $hasRepresentation;
/**
- * Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part.
+ * Another BioChemEntity encoding by this one.
*
*
- * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @var \OpenActive\Models\SchemaOrg\Gene|string
*/
- protected $hasBioChemEntityPart;
+ protected $isEncodedByBioChemEntity;
/**
- * A BioChemEntity that is known to interact with this item.
+ * Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence.
*
*
- * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- protected $bioChemInteraction;
+ protected $hasMolecularFunction;
/**
- * A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image.
+ * A role played by the BioChemEntity within a biological context.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\PropertyValue
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $hasRepresentation;
+ protected $biologicalRole;
/**
- * 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.
+ * 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\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition
*/
- protected $biologicalRole;
+ protected $associatedDisease;
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- public function getFunding()
+ public function getIsLocatedInSubcellularLocation()
{
- return $this->funding;
+ return $this->isLocatedInSubcellularLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue $isLocatedInSubcellularLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunding($funding)
+ public function setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
];
- $funding = self::checkTypes($funding, $types);
+ $isLocatedInSubcellularLocation = self::checkTypes($isLocatedInSubcellularLocation, $types);
- $this->funding = $funding;
+ $this->isLocatedInSubcellularLocation = $isLocatedInSubcellularLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Gene|string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getIsEncodedByBioChemEntity()
+ public function getFunding()
{
- return $this->isEncodedByBioChemEntity;
+ return $this->funding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Gene|string $isEncodedByBioChemEntity
+ * @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 setIsEncodedByBioChemEntity($isEncodedByBioChemEntity)
+ public function setFunding($funding)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Gene",
+ "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $isEncodedByBioChemEntity = self::checkTypes($isEncodedByBioChemEntity, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->isEncodedByBioChemEntity = $isEncodedByBioChemEntity;
+ $this->funding = $funding;
}
/**
@@ -215,258 +216,257 @@ public function setIsPartOfBioChemEntity($isPartOfBioChemEntity)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- 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\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm $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 = [
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
- "\OpenActive\Models\SchemaOrg\Taxon",
];
- $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 getHasBioChemEntityPart()
{
- return $this->isInvolvedInBiologicalProcess;
+ return $this->hasBioChemEntityPart;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm $isInvolvedInBiologicalProcess
+ * @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 setIsInvolvedInBiologicalProcess($isInvolvedInBiologicalProcess)
+ public function setHasBioChemEntityPart($hasBioChemEntityPart)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $isInvolvedInBiologicalProcess = self::checkTypes($isInvolvedInBiologicalProcess, $types);
+ $hasBioChemEntityPart = self::checkTypes($hasBioChemEntityPart, $types);
- $this->isInvolvedInBiologicalProcess = $isInvolvedInBiologicalProcess;
+ $this->hasBioChemEntityPart = $hasBioChemEntityPart;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- public function getIsLocatedInSubcellularLocation()
+ public function getBioChemInteraction()
{
- return $this->isLocatedInSubcellularLocation;
+ return $this->bioChemInteraction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $isLocatedInSubcellularLocation
+ * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemInteraction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocation)
+ public function setBioChemInteraction($bioChemInteraction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
];
- $isLocatedInSubcellularLocation = self::checkTypes($isLocatedInSubcellularLocation, $types);
+ $bioChemInteraction = self::checkTypes($bioChemInteraction, $types);
- $this->isLocatedInSubcellularLocation = $isLocatedInSubcellularLocation;
+ $this->bioChemInteraction = $bioChemInteraction;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition
+ * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- public function getAssociatedDisease()
+ public function getBioChemSimilarity()
{
- return $this->associatedDisease;
+ return $this->bioChemSimilarity;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition $associatedDisease
+ * @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 setAssociatedDisease($associatedDisease)
+ public function setBioChemSimilarity($bioChemSimilarity)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
- "\OpenActive\Models\SchemaOrg\PropertyValue",
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
];
- $associatedDisease = self::checkTypes($associatedDisease, $types);
+ $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types);
- $this->associatedDisease = $associatedDisease;
+ $this->bioChemSimilarity = $bioChemSimilarity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- public function getHasMolecularFunction()
+ public function getHasRepresentation()
{
- return $this->hasMolecularFunction;
+ return $this->hasRepresentation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $hasMolecularFunction
+ * @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 setHasMolecularFunction($hasMolecularFunction)
+ public function setHasRepresentation($hasRepresentation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
];
- $hasMolecularFunction = self::checkTypes($hasMolecularFunction, $types);
+ $hasRepresentation = self::checkTypes($hasRepresentation, $types);
- $this->hasMolecularFunction = $hasMolecularFunction;
+ $this->hasRepresentation = $hasRepresentation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @return \OpenActive\Models\SchemaOrg\Gene|string
*/
- public function getHasBioChemEntityPart()
+ public function getIsEncodedByBioChemEntity()
{
- return $this->hasBioChemEntityPart;
+ return $this->isEncodedByBioChemEntity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $hasBioChemEntityPart
+ * @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 setHasBioChemEntityPart($hasBioChemEntityPart)
+ public function setIsEncodedByBioChemEntity($isEncodedByBioChemEntity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
+ "\OpenActive\Models\SchemaOrg\Gene",
"string",
];
- $hasBioChemEntityPart = self::checkTypes($hasBioChemEntityPart, $types);
+ $isEncodedByBioChemEntity = self::checkTypes($isEncodedByBioChemEntity, $types);
- $this->hasBioChemEntityPart = $hasBioChemEntityPart;
+ $this->isEncodedByBioChemEntity = $isEncodedByBioChemEntity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- public function getBioChemInteraction()
+ public function getHasMolecularFunction()
{
- return $this->bioChemInteraction;
+ return $this->hasMolecularFunction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemInteraction
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue $hasMolecularFunction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBioChemInteraction($bioChemInteraction)
+ public function setHasMolecularFunction($hasMolecularFunction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
];
- $bioChemInteraction = self::checkTypes($bioChemInteraction, $types);
+ $hasMolecularFunction = self::checkTypes($hasMolecularFunction, $types);
- $this->bioChemInteraction = $bioChemInteraction;
+ $this->hasMolecularFunction = $hasMolecularFunction;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PropertyValue
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getHasRepresentation()
+ public function getBiologicalRole()
{
- return $this->hasRepresentation;
+ return $this->biologicalRole;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $hasRepresentation
+ * @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 setHasRepresentation($hasRepresentation)
+ public function setBiologicalRole($biologicalRole)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "\OpenActive\Models\SchemaOrg\PropertyValue",
];
- $hasRepresentation = self::checkTypes($hasRepresentation, $types);
+ $biologicalRole = self::checkTypes($biologicalRole, $types);
- $this->hasRepresentation = $hasRepresentation;
+ $this->biologicalRole = $biologicalRole;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon
*/
- public function getBioChemSimilarity()
+ public function getTaxonomicRange()
{
- return $this->bioChemSimilarity;
+ return $this->taxonomicRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemSimilarity
+ * @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 setBioChemSimilarity($bioChemSimilarity)
+ public function setTaxonomicRange($taxonomicRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Taxon",
];
- $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types);
+ $taxonomicRange = self::checkTypes($taxonomicRange, $types);
- $this->bioChemSimilarity = $bioChemSimilarity;
+ $this->taxonomicRange = $taxonomicRange;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition
*/
- public function getBiologicalRole()
+ public function getAssociatedDisease()
{
- return $this->biologicalRole;
+ return $this->associatedDisease;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $biologicalRole
+ * @param string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition $associatedDisease
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBiologicalRole($biologicalRole)
+ public function setAssociatedDisease($associatedDisease)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
];
- $biologicalRole = self::checkTypes($biologicalRole, $types);
+ $associatedDisease = self::checkTypes($associatedDisease, $types);
- $this->biologicalRole = $biologicalRole;
+ $this->associatedDisease = $associatedDisease;
}
}
diff --git a/src/Models/SchemaOrg/Blog.php b/src/Models/SchemaOrg/Blog.php
index 723f2dad..e44975fa 100644
--- a/src/Models/SchemaOrg/Blog.php
+++ b/src/Models/SchemaOrg/Blog.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "blogPosts" => "blogPosts",
- "issn" => "issn",
"blogPost" => "blogPost",
+ "issn" => "issn",
+ "blogPosts" => "blogPosts",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates a post that is part of a [[Blog]]. Note that historically, what we term a "Blog" was once known as a "weblog", and that what we term a "BlogPosting" is now often colloquially referred to as a "blog".
+ * A posting that is part of this blog.
*
*
* @var \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- protected $blogPosts;
+ protected $blogPost;
/**
* 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.
@@ -42,36 +42,36 @@ public static function fieldList() {
protected $issn;
/**
- * A posting that is part of this blog.
+ * Indicates a post that is part of a [[Blog]]. Note that historically, what we term a "Blog" was once known as a "weblog", and that what we term a "BlogPosting" is now often colloquially referred to as a "blog".
*
*
* @var \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- protected $blogPost;
+ protected $blogPosts;
/**
* @return \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- public function getBlogPosts()
+ public function getBlogPost()
{
- return $this->blogPosts;
+ return $this->blogPost;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPosts
+ * @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 setBlogPosts($blogPosts)
+ public function setBlogPost($blogPost)
{
$types = [
"\OpenActive\Models\SchemaOrg\BlogPosting",
"string",
];
- $blogPosts = self::checkTypes($blogPosts, $types);
+ $blogPost = self::checkTypes($blogPost, $types);
- $this->blogPosts = $blogPosts;
+ $this->blogPost = $blogPost;
}
/**
@@ -101,26 +101,26 @@ public function setIssn($issn)
/**
* @return \OpenActive\Models\SchemaOrg\BlogPosting|string
*/
- public function getBlogPost()
+ public function getBlogPosts()
{
- return $this->blogPost;
+ return $this->blogPosts;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPost
+ * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPosts
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBlogPost($blogPost)
+ public function setBlogPosts($blogPosts)
{
$types = [
"\OpenActive\Models\SchemaOrg\BlogPosting",
"string",
];
- $blogPost = self::checkTypes($blogPost, $types);
+ $blogPosts = self::checkTypes($blogPosts, $types);
- $this->blogPost = $blogPost;
+ $this->blogPosts = $blogPosts;
}
}
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..9f72f42e 100644
--- a/src/Models/SchemaOrg/Book.php
+++ b/src/Models/SchemaOrg/Book.php
@@ -17,211 +17,211 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isbn" => "isbn",
- "illustrator" => "illustrator",
"numberOfPages" => "numberOfPages",
- "abridged" => "abridged",
"bookFormat" => "bookFormat",
+ "illustrator" => "illustrator",
+ "isbn" => "isbn",
"bookEdition" => "bookEdition",
+ "abridged" => "abridged",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The ISBN of the book.
+ * The number of pages in the book.
*
*
- * @var string
+ * @var int|null
*/
- protected $isbn;
+ protected $numberOfPages;
/**
- * The illustrator of the book.
+ * The format of the book.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null
*/
- protected $illustrator;
+ protected $bookFormat;
/**
- * The number of pages in the book.
+ * The illustrator of the book.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $numberOfPages;
+ protected $illustrator;
/**
- * Indicates whether the book is an abridged edition.
+ * The ISBN of the book.
*
*
- * @var bool|null
+ * @var string
*/
- protected $abridged;
+ protected $isbn;
/**
- * The format of the book.
+ * The edition of the book.
*
*
- * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null
+ * @var string
*/
- protected $bookFormat;
+ protected $bookEdition;
/**
- * The edition of the book.
+ * Indicates whether the book is an abridged edition.
*
*
- * @var string
+ * @var bool|null
*/
- protected $bookEdition;
+ protected $abridged;
/**
- * @return string
+ * @return int|null
*/
- public function getIsbn()
+ public function getNumberOfPages()
{
- return $this->isbn;
+ return $this->numberOfPages;
}
/**
- * @param string $isbn
+ * @param int|null $numberOfPages
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsbn($isbn)
+ public function setNumberOfPages($numberOfPages)
{
$types = [
- "string",
+ "int",
+ "null",
];
- $isbn = self::checkTypes($isbn, $types);
+ $numberOfPages = self::checkTypes($numberOfPages, $types);
- $this->isbn = $isbn;
+ $this->numberOfPages = $numberOfPages;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null
*/
- public function getIllustrator()
+ public function getBookFormat()
{
- return $this->illustrator;
+ return $this->bookFormat;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $illustrator
+ * @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 setIllustrator($illustrator)
+ public function setBookFormat($bookFormat)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "\OpenActive\Enums\SchemaOrg\BookFormatType",
+ "null",
];
- $illustrator = self::checkTypes($illustrator, $types);
+ $bookFormat = self::checkTypes($bookFormat, $types);
- $this->illustrator = $illustrator;
+ $this->bookFormat = $bookFormat;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getNumberOfPages()
+ public function getIllustrator()
{
- return $this->numberOfPages;
+ return $this->illustrator;
}
/**
- * @param int|null $numberOfPages
+ * @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 setNumberOfPages($numberOfPages)
+ public function setIllustrator($illustrator)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $numberOfPages = self::checkTypes($numberOfPages, $types);
+ $illustrator = self::checkTypes($illustrator, $types);
- $this->numberOfPages = $numberOfPages;
+ $this->illustrator = $illustrator;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getAbridged()
+ public function getIsbn()
{
- return $this->abridged;
+ return $this->isbn;
}
/**
- * @param bool|null $abridged
+ * @param string $isbn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAbridged($abridged)
+ public function setIsbn($isbn)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $abridged = self::checkTypes($abridged, $types);
+ $isbn = self::checkTypes($isbn, $types);
- $this->abridged = $abridged;
+ $this->isbn = $isbn;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null
+ * @return string
*/
- public function getBookFormat()
+ public function getBookEdition()
{
- return $this->bookFormat;
+ return $this->bookEdition;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BookFormatType|null $bookFormat
+ * @param string $bookEdition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBookFormat($bookFormat)
+ public function setBookEdition($bookEdition)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BookFormatType",
- "null",
+ "string",
];
- $bookFormat = self::checkTypes($bookFormat, $types);
+ $bookEdition = self::checkTypes($bookEdition, $types);
- $this->bookFormat = $bookFormat;
+ $this->bookEdition = $bookEdition;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getBookEdition()
+ public function getAbridged()
{
- return $this->bookEdition;
+ return $this->abridged;
}
/**
- * @param string $bookEdition
+ * @param bool|null $abridged
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBookEdition($bookEdition)
+ public function setAbridged($abridged)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $bookEdition = self::checkTypes($bookEdition, $types);
+ $abridged = self::checkTypes($abridged, $types);
- $this->bookEdition = $bookEdition;
+ $this->abridged = $abridged;
}
}
diff --git a/src/Models/SchemaOrg/Brand.php b/src/Models/SchemaOrg/Brand.php
index ccca908c..e0f71157 100644
--- a/src/Models/SchemaOrg/Brand.php
+++ b/src/Models/SchemaOrg/Brand.php
@@ -17,30 +17,30 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "logo" => "logo",
"review" => "review",
- "aggregateRating" => "aggregateRating",
"slogan" => "slogan",
- "logo" => "logo",
+ "aggregateRating" => "aggregateRating",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A review of the item.
+ * An associated logo.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var string|\OpenActive\Models\SchemaOrg\ImageObject
*/
- protected $review;
+ protected $logo;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * A review of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $aggregateRating;
+ protected $review;
/**
* A slogan or motto associated with the item.
@@ -51,61 +51,61 @@ public static function fieldList() {
protected $slogan;
/**
- * An associated logo.
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $logo;
+ protected $aggregateRating;
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return string|\OpenActive\Models\SchemaOrg\ImageObject
*/
- public function getReview()
+ public function getLogo()
{
- return $this->review;
+ return $this->logo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setLogo($logo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
];
- $review = self::checkTypes($review, $types);
+ $logo = self::checkTypes($logo, $types);
- $this->review = $review;
+ $this->logo = $logo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getAggregateRating()
+ public function getReview()
{
- return $this->aggregateRating;
+ return $this->review;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @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 setAggregateRating($aggregateRating)
+ public function setReview($review)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $review = self::checkTypes($review, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->review = $review;
}
/**
@@ -133,28 +133,28 @@ public function setSlogan($slogan)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\ImageObject
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getLogo()
+ public function getAggregateRating()
{
- return $this->logo;
+ return $this->aggregateRating;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo
+ * @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 setLogo($logo)
+ public function setAggregateRating($aggregateRating)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
- "\OpenActive\Models\SchemaOrg\ImageObject",
];
- $logo = self::checkTypes($logo, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->logo = $logo;
+ $this->aggregateRating = $aggregateRating;
}
}
diff --git a/src/Models/SchemaOrg/BroadcastChannel.php b/src/Models/SchemaOrg/BroadcastChannel.php
index 54888ffb..8d9e4be1 100644
--- a/src/Models/SchemaOrg/BroadcastChannel.php
+++ b/src/Models/SchemaOrg/BroadcastChannel.php
@@ -17,210 +17,210 @@ public static function getType()
public static function fieldList() {
$fields = [
- "genre" => "genre",
"broadcastFrequency" => "broadcastFrequency",
- "providesBroadcastService" => "providesBroadcastService",
- "broadcastChannelId" => "broadcastChannelId",
"inBroadcastLineup" => "inBroadcastLineup",
+ "broadcastChannelId" => "broadcastChannelId",
"broadcastServiceTier" => "broadcastServiceTier",
+ "providesBroadcastService" => "providesBroadcastService",
+ "genre" => "genre",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Genre of the creative work, broadcast channel or group.
+ * 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 string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification
*/
- protected $genre;
+ protected $broadcastFrequency;
/**
- * 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 CableOrSatelliteService offering the channel.
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @var \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string
*/
- protected $broadcastFrequency;
+ protected $inBroadcastLineup;
/**
- * The BroadcastService offered on this channel.
+ * The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number.
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastService|string
+ * @var string
*/
- protected $providesBroadcastService;
+ protected $broadcastChannelId;
/**
- * The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number.
+ * The type of service required to have access to the channel (e.g. Standard or Premium).
*
*
* @var string
*/
- protected $broadcastChannelId;
+ protected $broadcastServiceTier;
/**
- * The CableOrSatelliteService offering the channel.
+ * The BroadcastService offered on this channel.
*
*
- * @var \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string
+ * @var \OpenActive\Models\SchemaOrg\BroadcastService|string
*/
- protected $inBroadcastLineup;
+ protected $providesBroadcastService;
/**
- * The type of service required to have access to the channel (e.g. Standard or Premium).
+ * Genre of the creative work, broadcast channel or group.
*
*
* @var string
*/
- protected $broadcastServiceTier;
+ protected $genre;
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification
*/
- public function getGenre()
+ public function getBroadcastFrequency()
{
- return $this->genre;
+ return $this->broadcastFrequency;
}
/**
- * @param string $genre
+ * @param string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification $broadcastFrequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGenre($genre)
+ public function setBroadcastFrequency($broadcastFrequency)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
];
- $genre = self::checkTypes($genre, $types);
+ $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
- $this->genre = $genre;
+ $this->broadcastFrequency = $broadcastFrequency;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @return \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string
*/
- public function getBroadcastFrequency()
+ public function getInBroadcastLineup()
{
- return $this->broadcastFrequency;
+ return $this->inBroadcastLineup;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency
+ * @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 setBroadcastFrequency($broadcastFrequency)
+ public function setInBroadcastLineup($inBroadcastLineup)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
+ "\OpenActive\Models\SchemaOrg\CableOrSatelliteService",
"string",
];
- $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
+ $inBroadcastLineup = self::checkTypes($inBroadcastLineup, $types);
- $this->broadcastFrequency = $broadcastFrequency;
+ $this->inBroadcastLineup = $inBroadcastLineup;
}
/**
- * @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 getBroadcastServiceTier()
{
- return $this->broadcastChannelId;
+ return $this->broadcastServiceTier;
}
/**
- * @param string $broadcastChannelId
+ * @param string $broadcastServiceTier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastChannelId($broadcastChannelId)
+ public function setBroadcastServiceTier($broadcastServiceTier)
{
$types = [
"string",
];
- $broadcastChannelId = self::checkTypes($broadcastChannelId, $types);
+ $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types);
- $this->broadcastChannelId = $broadcastChannelId;
+ $this->broadcastServiceTier = $broadcastServiceTier;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastService|string
*/
- public function getInBroadcastLineup()
+ public function getProvidesBroadcastService()
{
- return $this->inBroadcastLineup;
+ return $this->providesBroadcastService;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string $inBroadcastLineup
+ * @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 setInBroadcastLineup($inBroadcastLineup)
+ public function setProvidesBroadcastService($providesBroadcastService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CableOrSatelliteService",
+ "\OpenActive\Models\SchemaOrg\BroadcastService",
"string",
];
- $inBroadcastLineup = self::checkTypes($inBroadcastLineup, $types);
+ $providesBroadcastService = self::checkTypes($providesBroadcastService, $types);
- $this->inBroadcastLineup = $inBroadcastLineup;
+ $this->providesBroadcastService = $providesBroadcastService;
}
/**
* @return string
*/
- public function getBroadcastServiceTier()
+ public function getGenre()
{
- return $this->broadcastServiceTier;
+ return $this->genre;
}
/**
- * @param string $broadcastServiceTier
+ * @param string $genre
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastServiceTier($broadcastServiceTier)
+ public function setGenre($genre)
{
$types = [
"string",
];
- $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types);
+ $genre = self::checkTypes($genre, $types);
- $this->broadcastServiceTier = $broadcastServiceTier;
+ $this->genre = $genre;
}
}
diff --git a/src/Models/SchemaOrg/BroadcastEvent.php b/src/Models/SchemaOrg/BroadcastEvent.php
index 43106fc0..741f3e55 100644
--- a/src/Models/SchemaOrg/BroadcastEvent.php
+++ b/src/Models/SchemaOrg/BroadcastEvent.php
@@ -17,144 +17,144 @@ public static function getType()
public static function fieldList() {
$fields = [
- "subtitleLanguage" => "subtitleLanguage",
- "videoFormat" => "videoFormat",
- "broadcastOfEvent" => "broadcastOfEvent",
"isLiveBroadcast" => "isLiveBroadcast",
+ "broadcastOfEvent" => "broadcastOfEvent",
+ "videoFormat" => "videoFormat",
+ "subtitleLanguage" => "subtitleLanguage",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
+ * True if the broadcast is of a live event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Language|string
+ * @var bool|null
*/
- protected $subtitleLanguage;
+ protected $isLiveBroadcast;
/**
- * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
+ * The event being broadcast such as a sporting event or awards ceremony.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $videoFormat;
+ protected $broadcastOfEvent;
/**
- * The event being broadcast such as a sporting event or awards ceremony.
+ * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var string
*/
- protected $broadcastOfEvent;
+ protected $videoFormat;
/**
- * True if the broadcast is of a live event.
+ * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
*
*
- * @var bool|null
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $isLiveBroadcast;
+ protected $subtitleLanguage;
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return bool|null
*/
- public function getSubtitleLanguage()
+ public function getIsLiveBroadcast()
{
- return $this->subtitleLanguage;
+ return $this->isLiveBroadcast;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage
+ * @param bool|null $isLiveBroadcast
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSubtitleLanguage($subtitleLanguage)
+ public function setIsLiveBroadcast($isLiveBroadcast)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
- "string",
+ "bool",
+ "null",
];
- $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
+ $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types);
- $this->subtitleLanguage = $subtitleLanguage;
+ $this->isLiveBroadcast = $isLiveBroadcast;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getVideoFormat()
+ public function getBroadcastOfEvent()
{
- return $this->videoFormat;
+ return $this->broadcastOfEvent;
}
/**
- * @param string $videoFormat
+ * @param \OpenActive\Models\SchemaOrg\Event|string $broadcastOfEvent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVideoFormat($videoFormat)
+ public function setBroadcastOfEvent($broadcastOfEvent)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $videoFormat = self::checkTypes($videoFormat, $types);
+ $broadcastOfEvent = self::checkTypes($broadcastOfEvent, $types);
- $this->videoFormat = $videoFormat;
+ $this->broadcastOfEvent = $broadcastOfEvent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return string
*/
- public function getBroadcastOfEvent()
+ public function getVideoFormat()
{
- return $this->broadcastOfEvent;
+ return $this->videoFormat;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $broadcastOfEvent
+ * @param string $videoFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastOfEvent($broadcastOfEvent)
+ public function setVideoFormat($videoFormat)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $broadcastOfEvent = self::checkTypes($broadcastOfEvent, $types);
+ $videoFormat = self::checkTypes($videoFormat, $types);
- $this->broadcastOfEvent = $broadcastOfEvent;
+ $this->videoFormat = $videoFormat;
}
/**
- * @return bool|null
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getIsLiveBroadcast()
+ public function getSubtitleLanguage()
{
- return $this->isLiveBroadcast;
+ return $this->subtitleLanguage;
}
/**
- * @param bool|null $isLiveBroadcast
+ * @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 setIsLiveBroadcast($isLiveBroadcast)
+ public function setSubtitleLanguage($subtitleLanguage)
{
$types = [
- "bool",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types);
+ $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
- $this->isLiveBroadcast = $isLiveBroadcast;
+ $this->subtitleLanguage = $subtitleLanguage;
}
}
diff --git a/src/Models/SchemaOrg/BroadcastService.php b/src/Models/SchemaOrg/BroadcastService.php
index df992ffd..c33fbc47 100644
--- a/src/Models/SchemaOrg/BroadcastService.php
+++ b/src/Models/SchemaOrg/BroadcastService.php
@@ -17,379 +17,379 @@ public static function getType()
public static function fieldList() {
$fields = [
- "parentService" => "parentService",
- "broadcastDisplayName" => "broadcastDisplayName",
- "videoFormat" => "videoFormat",
- "broadcastTimezone" => "broadcastTimezone",
"broadcastFrequency" => "broadcastFrequency",
- "callSign" => "callSign",
- "inLanguage" => "inLanguage",
- "hasBroadcastChannel" => "hasBroadcastChannel",
+ "broadcastTimezone" => "broadcastTimezone",
"broadcaster" => "broadcaster",
+ "callSign" => "callSign",
+ "parentService" => "parentService",
"broadcastAffiliateOf" => "broadcastAffiliateOf",
+ "videoFormat" => "videoFormat",
+ "broadcastDisplayName" => "broadcastDisplayName",
+ "hasBroadcastChannel" => "hasBroadcastChannel",
"area" => "area",
+ "inLanguage" => "inLanguage",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A broadcast service to which the broadcast service may belong to such as regional variations of a national channel.
+ * 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 \OpenActive\Models\SchemaOrg\BroadcastService|string
+ * @var string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification
*/
- protected $parentService;
+ protected $broadcastFrequency;
/**
- * The name displayed in the channel guide. For many US affiliates, it is the network name.
+ * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts.
*
*
* @var string
*/
- protected $broadcastDisplayName;
+ protected $broadcastTimezone;
/**
- * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
+ * The organization owning or operating the broadcast service.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $videoFormat;
+ protected $broadcaster;
/**
- * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts
+ * 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 string
*/
- protected $broadcastTimezone;
+ protected $callSign;
/**
- * 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".
+ * A broadcast service to which the broadcast service may belong to such as regional variations of a national channel.
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @var \OpenActive\Models\SchemaOrg\BroadcastService|string
*/
- protected $broadcastFrequency;
+ protected $parentService;
/**
- * 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 media network(s) whose content is broadcast on this station.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $callSign;
+ protected $broadcastAffiliateOf;
/**
- * 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 type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var string
*/
- protected $inLanguage;
+ protected $videoFormat;
/**
- * A broadcast channel of a broadcast service.
+ * The name displayed in the channel guide. For many US affiliates, it is the network name.
*
*
- * @var \OpenActive\Models\SchemaOrg\BroadcastChannel|string
+ * @var string
*/
- protected $hasBroadcastChannel;
+ protected $broadcastDisplayName;
/**
- * The organization owning or operating the broadcast service.
+ * A broadcast channel of a broadcast service.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\BroadcastChannel|string
*/
- protected $broadcaster;
+ protected $hasBroadcastChannel;
/**
- * The media network(s) whose content is broadcast on this station.
+ * The area within which users can expect to reach the broadcast service.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $broadcastAffiliateOf;
+ protected $area;
/**
- * The area within which users can expect to reach the broadcast service.
+ * 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\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- protected $area;
+ protected $inLanguage;
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastService|string
+ * @return string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification
*/
- public function getParentService()
+ public function getBroadcastFrequency()
{
- return $this->parentService;
+ return $this->broadcastFrequency;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $parentService
+ * @param string|\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification $broadcastFrequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setParentService($parentService)
+ public function setBroadcastFrequency($broadcastFrequency)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastService",
"string",
+ "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
];
- $parentService = self::checkTypes($parentService, $types);
+ $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
- $this->parentService = $parentService;
+ $this->broadcastFrequency = $broadcastFrequency;
}
/**
* @return string
*/
- public function getBroadcastDisplayName()
+ public function getBroadcastTimezone()
{
- return $this->broadcastDisplayName;
+ return $this->broadcastTimezone;
}
/**
- * @param string $broadcastDisplayName
+ * @param string $broadcastTimezone
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastDisplayName($broadcastDisplayName)
+ public function setBroadcastTimezone($broadcastTimezone)
{
$types = [
"string",
];
- $broadcastDisplayName = self::checkTypes($broadcastDisplayName, $types);
+ $broadcastTimezone = self::checkTypes($broadcastTimezone, $types);
- $this->broadcastDisplayName = $broadcastDisplayName;
+ $this->broadcastTimezone = $broadcastTimezone;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getVideoFormat()
+ public function getBroadcaster()
{
- return $this->videoFormat;
+ return $this->broadcaster;
}
/**
- * @param string $videoFormat
+ * @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 setVideoFormat($videoFormat)
+ public function setBroadcaster($broadcaster)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $videoFormat = self::checkTypes($videoFormat, $types);
+ $broadcaster = self::checkTypes($broadcaster, $types);
- $this->videoFormat = $videoFormat;
+ $this->broadcaster = $broadcaster;
}
/**
* @return string
*/
- public function getBroadcastTimezone()
+ public function getCallSign()
{
- return $this->broadcastTimezone;
+ return $this->callSign;
}
/**
- * @param string $broadcastTimezone
+ * @param string $callSign
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastTimezone($broadcastTimezone)
+ public function setCallSign($callSign)
{
$types = [
"string",
];
- $broadcastTimezone = self::checkTypes($broadcastTimezone, $types);
+ $callSign = self::checkTypes($callSign, $types);
- $this->broadcastTimezone = $broadcastTimezone;
+ $this->callSign = $callSign;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastService|string
*/
- public function getBroadcastFrequency()
+ public function getParentService()
{
- return $this->broadcastFrequency;
+ return $this->parentService;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency
+ * @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 setBroadcastFrequency($broadcastFrequency)
+ public function setParentService($parentService)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification",
+ "\OpenActive\Models\SchemaOrg\BroadcastService",
"string",
];
- $broadcastFrequency = self::checkTypes($broadcastFrequency, $types);
+ $parentService = self::checkTypes($parentService, $types);
- $this->broadcastFrequency = $broadcastFrequency;
+ $this->parentService = $parentService;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getCallSign()
+ public function getBroadcastAffiliateOf()
{
- return $this->callSign;
+ return $this->broadcastAffiliateOf;
}
/**
- * @param string $callSign
+ * @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 setCallSign($callSign)
+ public function setBroadcastAffiliateOf($broadcastAffiliateOf)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $callSign = self::checkTypes($callSign, $types);
+ $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types);
- $this->callSign = $callSign;
+ $this->broadcastAffiliateOf = $broadcastAffiliateOf;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return string
*/
- public function getInLanguage()
+ public function getVideoFormat()
{
- return $this->inLanguage;
+ return $this->videoFormat;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param string $videoFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInLanguage($inLanguage)
+ public function setVideoFormat($videoFormat)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $videoFormat = self::checkTypes($videoFormat, $types);
- $this->inLanguage = $inLanguage;
+ $this->videoFormat = $videoFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\BroadcastChannel|string
+ * @return string
*/
- public function getHasBroadcastChannel()
+ public function getBroadcastDisplayName()
{
- return $this->hasBroadcastChannel;
+ return $this->broadcastDisplayName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BroadcastChannel|string $hasBroadcastChannel
+ * @param string $broadcastDisplayName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasBroadcastChannel($hasBroadcastChannel)
+ public function setBroadcastDisplayName($broadcastDisplayName)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BroadcastChannel",
"string",
];
- $hasBroadcastChannel = self::checkTypes($hasBroadcastChannel, $types);
+ $broadcastDisplayName = self::checkTypes($broadcastDisplayName, $types);
- $this->hasBroadcastChannel = $hasBroadcastChannel;
+ $this->broadcastDisplayName = $broadcastDisplayName;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\BroadcastChannel|string
*/
- public function getBroadcaster()
+ public function getHasBroadcastChannel()
{
- return $this->broadcaster;
+ return $this->hasBroadcastChannel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcaster
+ * @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 setBroadcaster($broadcaster)
+ public function setHasBroadcastChannel($hasBroadcastChannel)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\BroadcastChannel",
"string",
];
- $broadcaster = self::checkTypes($broadcaster, $types);
+ $hasBroadcastChannel = self::checkTypes($hasBroadcastChannel, $types);
- $this->broadcaster = $broadcaster;
+ $this->hasBroadcastChannel = $hasBroadcastChannel;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getBroadcastAffiliateOf()
+ public function getArea()
{
- return $this->broadcastAffiliateOf;
+ return $this->area;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcastAffiliateOf
+ * @param \OpenActive\Models\SchemaOrg\Place|string $area
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroadcastAffiliateOf($broadcastAffiliateOf)
+ public function setArea($area)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types);
+ $area = self::checkTypes($area, $types);
- $this->broadcastAffiliateOf = $broadcastAffiliateOf;
+ $this->area = $area;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getArea()
+ public function getInLanguage()
{
- return $this->area;
+ return $this->inLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $area
+ * @param \OpenActive\Models\SchemaOrg\Language|string $inLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArea($area)
+ public function setInLanguage($inLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $area = self::checkTypes($area, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->area = $area;
+ $this->inLanguage = $inLanguage;
}
}
diff --git a/src/Models/SchemaOrg/BusTrip.php b/src/Models/SchemaOrg/BusTrip.php
index ff0e89cc..9b359e78 100644
--- a/src/Models/SchemaOrg/BusTrip.php
+++ b/src/Models/SchemaOrg/BusTrip.php
@@ -17,22 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
- "departureBusStop" => "departureBusStop",
+ "busNumber" => "busNumber",
"busName" => "busName",
"arrivalBusStop" => "arrivalBusStop",
- "busNumber" => "busNumber",
+ "departureBusStop" => "departureBusStop",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The stop or station from which the bus departs.
+ * The unique identifier for the bus.
*
*
- * @var \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string
+ * @var string
*/
- protected $departureBusStop;
+ protected $busNumber;
/**
* The name of the bus (e.g. Bolt Express).
@@ -46,42 +46,40 @@ public static function fieldList() {
* The stop or station from which the bus arrives.
*
*
- * @var \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string
+ * @var \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string
*/
protected $arrivalBusStop;
/**
- * The unique identifier for the bus.
+ * The stop or station from which the bus departs.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string
*/
- protected $busNumber;
+ protected $departureBusStop;
/**
- * @return \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string
+ * @return string
*/
- public function getDepartureBusStop()
+ public function getBusNumber()
{
- return $this->departureBusStop;
+ return $this->busNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string $departureBusStop
+ * @param string $busNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureBusStop($departureBusStop)
+ public function setBusNumber($busNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BusStop",
- "\OpenActive\Models\SchemaOrg\BusStation",
"string",
];
- $departureBusStop = self::checkTypes($departureBusStop, $types);
+ $busNumber = self::checkTypes($busNumber, $types);
- $this->departureBusStop = $departureBusStop;
+ $this->busNumber = $busNumber;
}
/**
@@ -109,7 +107,7 @@ public function setBusName($busName)
}
/**
- * @return \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string
+ * @return \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string
*/
public function getArrivalBusStop()
{
@@ -117,15 +115,15 @@ public function getArrivalBusStop()
}
/**
- * @param \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string $arrivalBusStop
+ * @param \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string $arrivalBusStop
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setArrivalBusStop($arrivalBusStop)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BusStation",
"\OpenActive\Models\SchemaOrg\BusStop",
+ "\OpenActive\Models\SchemaOrg\BusStation",
"string",
];
@@ -135,27 +133,29 @@ public function setArrivalBusStop($arrivalBusStop)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string
*/
- public function getBusNumber()
+ public function getDepartureBusStop()
{
- return $this->busNumber;
+ return $this->departureBusStop;
}
/**
- * @param string $busNumber
+ * @param \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string $departureBusStop
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBusNumber($busNumber)
+ public function setDepartureBusStop($departureBusStop)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\BusStation",
+ "\OpenActive\Models\SchemaOrg\BusStop",
"string",
];
- $busNumber = self::checkTypes($busNumber, $types);
+ $departureBusStop = self::checkTypes($departureBusStop, $types);
- $this->busNumber = $busNumber;
+ $this->departureBusStop = $departureBusStop;
}
}
diff --git a/src/Models/SchemaOrg/BusinessAudience.php b/src/Models/SchemaOrg/BusinessAudience.php
index ddce1e28..259b728f 100644
--- a/src/Models/SchemaOrg/BusinessAudience.php
+++ b/src/Models/SchemaOrg/BusinessAudience.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"yearlyRevenue" => "yearlyRevenue",
- "numberOfEmployees" => "numberOfEmployees",
"yearsInOperation" => "yearsInOperation",
+ "numberOfEmployees" => "numberOfEmployees",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $yearlyRevenue;
/**
- * The number of employees in an organization e.g. business.
+ * The age of the business.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfEmployees;
+ protected $yearsInOperation;
/**
- * The age of the business.
+ * The number of employees in an organization, e.g. business.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $yearsInOperation;
+ protected $numberOfEmployees;
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
@@ -77,51 +77,51 @@ public function setYearlyRevenue($yearlyRevenue)
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfEmployees()
+ public function getYearsInOperation()
{
- return $this->numberOfEmployees;
+ return $this->yearsInOperation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $yearsInOperation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfEmployees($numberOfEmployees)
+ public function setYearsInOperation($yearsInOperation)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $numberOfEmployees = self::checkTypes($numberOfEmployees, $types);
+ $yearsInOperation = self::checkTypes($yearsInOperation, $types);
- $this->numberOfEmployees = $numberOfEmployees;
+ $this->yearsInOperation = $yearsInOperation;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getYearsInOperation()
+ public function getNumberOfEmployees()
{
- return $this->yearsInOperation;
+ return $this->numberOfEmployees;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $yearsInOperation
+ * @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 setYearsInOperation($yearsInOperation)
+ public function setNumberOfEmployees($numberOfEmployees)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $yearsInOperation = self::checkTypes($yearsInOperation, $types);
+ $numberOfEmployees = self::checkTypes($numberOfEmployees, $types);
- $this->yearsInOperation = $yearsInOperation;
+ $this->numberOfEmployees = $numberOfEmployees;
}
}
diff --git a/src/Models/SchemaOrg/BuyAction.php b/src/Models/SchemaOrg/BuyAction.php
index 35beaa40..4f22fa51 100644
--- a/src/Models/SchemaOrg/BuyAction.php
+++ b/src/Models/SchemaOrg/BuyAction.php
@@ -17,27 +17,19 @@ public static function getType()
public static function fieldList() {
$fields = [
- "warrantyPromise" => "warrantyPromise",
"seller" => "seller",
"vendor" => "vendor",
+ "warrantyPromise" => "warrantyPromise",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The warranty promise(s) included in the offer.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
- */
- protected $warrantyPromise;
-
/**
* An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $seller;
@@ -50,32 +42,15 @@ public static function fieldList() {
protected $vendor;
/**
- * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
- */
- public function getWarrantyPromise()
- {
- return $this->warrantyPromise;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The warranty promise(s) included in the offer.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
*/
- public function setWarrantyPromise($warrantyPromise)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\WarrantyPromise",
- "string",
- ];
-
- $warrantyPromise = self::checkTypes($warrantyPromise, $types);
-
- $this->warrantyPromise = $warrantyPromise;
- }
+ protected $warrantyPromise;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getSeller()
{
@@ -83,15 +58,15 @@ public function getSeller()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
+ * @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 setSeller($seller)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
@@ -126,4 +101,29 @@ public function setVendor($vendor)
$this->vendor = $vendor;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ */
+ public function getWarrantyPromise()
+ {
+ return $this->warrantyPromise;
+ }
+
+ /**
+ * @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 setWarrantyPromise($warrantyPromise)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\WarrantyPromise",
+ "string",
+ ];
+
+ $warrantyPromise = self::checkTypes($warrantyPromise, $types);
+
+ $this->warrantyPromise = $warrantyPromise;
+ }
+
}
diff --git a/src/Models/SchemaOrg/CDCPMDRecord.php b/src/Models/SchemaOrg/CDCPMDRecord.php
index 824f6aca..40fad8c6 100644
--- a/src/Models/SchemaOrg/CDCPMDRecord.php
+++ b/src/Models/SchemaOrg/CDCPMDRecord.php
@@ -17,43 +17,51 @@ public static function getType()
public static function fieldList() {
$fields = [
- "cvdNumBedsOcc" => "cvdNumBedsOcc",
- "cvdNumICUBedsOcc" => "cvdNumICUBedsOcc",
- "cvdNumVent" => "cvdNumVent",
- "cvdNumC19Died" => "cvdNumC19Died",
- "cvdNumTotBeds" => "cvdNumTotBeds",
- "cvdFacilityCounty" => "cvdFacilityCounty",
"cvdNumICUBeds" => "cvdNumICUBeds",
+ "datePosted" => "datePosted",
+ "cvdNumC19OverflowPats" => "cvdNumC19OverflowPats",
+ "cvdNumVent" => "cvdNumVent",
"cvdCollectionDate" => "cvdCollectionDate",
+ "cvdNumICUBedsOcc" => "cvdNumICUBedsOcc",
+ "cvdNumBedsOcc" => "cvdNumBedsOcc",
+ "cvdNumTotBeds" => "cvdNumTotBeds",
+ "cvdNumC19HospPats" => "cvdNumC19HospPats",
+ "cvdNumBeds" => "cvdNumBeds",
"cvdNumC19HOPats" => "cvdNumC19HOPats",
- "cvdNumC19OFMechVentPats" => "cvdNumC19OFMechVentPats",
"cvdFacilityId" => "cvdFacilityId",
"cvdNumVentUse" => "cvdNumVentUse",
- "cvdNumBeds" => "cvdNumBeds",
+ "cvdFacilityCounty" => "cvdFacilityCounty",
+ "cvdNumC19Died" => "cvdNumC19Died",
+ "cvdNumC19OFMechVentPats" => "cvdNumC19OFMechVentPats",
"cvdNumC19MechVentPats" => "cvdNumC19MechVentPats",
- "datePosted" => "datePosted",
- "cvdNumC19OverflowPats" => "cvdNumC19OverflowPats",
- "cvdNumC19HospPats" => "cvdNumC19HospPats",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds that are occupied.
+ * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds.
*
*
* @var Number|null
*/
- protected $cvdNumBedsOcc;
+ protected $cvdNumICUBeds;
/**
- * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied.
+ * Publication date of an online listing.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $datePosted;
+
+ /**
+ * numc19overflowpats - ED/OVERFLOW: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed.
*
*
* @var Number|null
*/
- protected $cvdNumICUBedsOcc;
+ protected $cvdNumC19OverflowPats;
/**
* numvent - MECHANICAL VENTILATORS: Total number of ventilators available.
@@ -64,60 +72,60 @@ public static function fieldList() {
protected $cvdNumVent;
/**
- * numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital, ED, or any overflow location.
+ * collectiondate - Date for which patient counts are reported.
*
*
- * @var Number|null
+ * @var DateTime|string|null
*/
- protected $cvdNumC19Died;
+ protected $cvdCollectionDate;
/**
- * 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.
+ * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied.
*
*
* @var Number|null
*/
- protected $cvdNumTotBeds;
+ protected $cvdNumICUBedsOcc;
/**
- * 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.
+ * numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds that are occupied.
*
*
- * @var string
+ * @var Number|null
*/
- protected $cvdFacilityCounty;
+ protected $cvdNumBedsOcc;
/**
- * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds.
+ * 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 $cvdNumICUBeds;
+ protected $cvdNumTotBeds;
/**
- * collectiondate - Date for which patient counts are reported.
+ * numc19hosppats - HOSPITALIZED: Patients currently hospitalized in an inpatient care location who have suspected or confirmed COVID-19.
*
*
- * @var DateTime|string|null
+ * @var Number|null
*/
- protected $cvdCollectionDate;
+ protected $cvdNumC19HospPats;
/**
- * 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.
+ * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients.
*
*
* @var Number|null
*/
- protected $cvdNumC19HOPats;
+ protected $cvdNumBeds;
/**
- * 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.
+ * 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 $cvdNumC19OFMechVentPats;
+ protected $cvdNumC19HOPats;
/**
* 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.
@@ -136,93 +144,111 @@ public static function fieldList() {
protected $cvdNumVentUse;
/**
- * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients.
+ * 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 $cvdNumBeds;
+ protected $cvdFacilityCounty;
/**
- * 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.
+ * numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital, ED, or any overflow location.
*
*
* @var Number|null
*/
- protected $cvdNumC19MechVentPats;
-
- /**
- * Publication date of an online listing.
- *
- *
- * @var Date|DateTime|null
- */
- protected $datePosted;
+ protected $cvdNumC19Died;
/**
- * numc19overflowpats - ED/OVERFLOW: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed.
+ * 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 Number|null
*/
- protected $cvdNumC19OverflowPats;
+ protected $cvdNumC19OFMechVentPats;
/**
- * numc19hosppats - HOSPITALIZED: Patients currently hospitalized in an inpatient care location who have suspected or confirmed COVID-19.
+ * 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 $cvdNumC19HospPats;
+ protected $cvdNumC19MechVentPats;
/**
* @return Number|null
*/
- public function getCvdNumBedsOcc()
+ public function getCvdNumICUBeds()
{
- return $this->cvdNumBedsOcc;
+ return $this->cvdNumICUBeds;
}
/**
- * @param Number|null $cvdNumBedsOcc
+ * @param Number|null $cvdNumICUBeds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumBedsOcc($cvdNumBedsOcc)
+ public function setCvdNumICUBeds($cvdNumICUBeds)
{
$types = [
"Number",
"null",
];
- $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types);
+ $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types);
- $this->cvdNumBedsOcc = $cvdNumBedsOcc;
+ $this->cvdNumICUBeds = $cvdNumICUBeds;
+ }
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getDatePosted()
+ {
+ return $this->datePosted;
+ }
+
+ /**
+ * @param Date|DateTime|null $datePosted
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDatePosted($datePosted)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $datePosted = self::checkTypes($datePosted, $types);
+
+ $this->datePosted = $datePosted;
}
/**
* @return Number|null
*/
- public function getCvdNumICUBedsOcc()
+ public function getCvdNumC19OverflowPats()
{
- return $this->cvdNumICUBedsOcc;
+ return $this->cvdNumC19OverflowPats;
}
/**
- * @param Number|null $cvdNumICUBedsOcc
+ * @param Number|null $cvdNumC19OverflowPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc)
+ public function setCvdNumC19OverflowPats($cvdNumC19OverflowPats)
{
$types = [
"Number",
"null",
];
- $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types);
+ $cvdNumC19OverflowPats = self::checkTypes($cvdNumC19OverflowPats, $types);
- $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc;
+ $this->cvdNumC19OverflowPats = $cvdNumC19OverflowPats;
}
/**
@@ -251,178 +277,179 @@ public function setCvdNumVent($cvdNumVent)
}
/**
- * @return Number|null
+ * @return DateTime|string|null
*/
- public function getCvdNumC19Died()
+ public function getCvdCollectionDate()
{
- return $this->cvdNumC19Died;
+ return $this->cvdCollectionDate;
}
/**
- * @param Number|null $cvdNumC19Died
+ * @param DateTime|string|null $cvdCollectionDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19Died($cvdNumC19Died)
+ public function setCvdCollectionDate($cvdCollectionDate)
{
$types = [
- "Number",
+ "DateTime",
+ "string",
"null",
];
- $cvdNumC19Died = self::checkTypes($cvdNumC19Died, $types);
+ $cvdCollectionDate = self::checkTypes($cvdCollectionDate, $types);
- $this->cvdNumC19Died = $cvdNumC19Died;
+ $this->cvdCollectionDate = $cvdCollectionDate;
}
/**
* @return Number|null
*/
- public function getCvdNumTotBeds()
+ public function getCvdNumICUBedsOcc()
{
- return $this->cvdNumTotBeds;
+ return $this->cvdNumICUBedsOcc;
}
/**
- * @param Number|null $cvdNumTotBeds
+ * @param Number|null $cvdNumICUBedsOcc
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumTotBeds($cvdNumTotBeds)
+ public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc)
{
$types = [
"Number",
"null",
];
- $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types);
+ $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types);
- $this->cvdNumTotBeds = $cvdNumTotBeds;
+ $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getCvdFacilityCounty()
+ public function getCvdNumBedsOcc()
{
- return $this->cvdFacilityCounty;
+ return $this->cvdNumBedsOcc;
}
/**
- * @param string $cvdFacilityCounty
+ * @param Number|null $cvdNumBedsOcc
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdFacilityCounty($cvdFacilityCounty)
+ public function setCvdNumBedsOcc($cvdNumBedsOcc)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types);
+ $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types);
- $this->cvdFacilityCounty = $cvdFacilityCounty;
+ $this->cvdNumBedsOcc = $cvdNumBedsOcc;
}
/**
* @return Number|null
*/
- public function getCvdNumICUBeds()
+ public function getCvdNumTotBeds()
{
- return $this->cvdNumICUBeds;
+ return $this->cvdNumTotBeds;
}
/**
- * @param Number|null $cvdNumICUBeds
+ * @param Number|null $cvdNumTotBeds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumICUBeds($cvdNumICUBeds)
+ public function setCvdNumTotBeds($cvdNumTotBeds)
{
$types = [
"Number",
"null",
];
- $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types);
+ $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types);
- $this->cvdNumICUBeds = $cvdNumICUBeds;
+ $this->cvdNumTotBeds = $cvdNumTotBeds;
}
/**
- * @return DateTime|string|null
+ * @return Number|null
*/
- public function getCvdCollectionDate()
+ public function getCvdNumC19HospPats()
{
- return $this->cvdCollectionDate;
+ return $this->cvdNumC19HospPats;
}
/**
- * @param DateTime|string|null $cvdCollectionDate
+ * @param Number|null $cvdNumC19HospPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdCollectionDate($cvdCollectionDate)
+ public function setCvdNumC19HospPats($cvdNumC19HospPats)
{
$types = [
- "DateTime",
- "string",
+ "Number",
"null",
];
- $cvdCollectionDate = self::checkTypes($cvdCollectionDate, $types);
+ $cvdNumC19HospPats = self::checkTypes($cvdNumC19HospPats, $types);
- $this->cvdCollectionDate = $cvdCollectionDate;
+ $this->cvdNumC19HospPats = $cvdNumC19HospPats;
}
/**
* @return Number|null
*/
- public function getCvdNumC19HOPats()
+ public function getCvdNumBeds()
{
- return $this->cvdNumC19HOPats;
+ return $this->cvdNumBeds;
}
/**
- * @param Number|null $cvdNumC19HOPats
+ * @param Number|null $cvdNumBeds
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19HOPats($cvdNumC19HOPats)
+ public function setCvdNumBeds($cvdNumBeds)
{
$types = [
"Number",
"null",
];
- $cvdNumC19HOPats = self::checkTypes($cvdNumC19HOPats, $types);
+ $cvdNumBeds = self::checkTypes($cvdNumBeds, $types);
- $this->cvdNumC19HOPats = $cvdNumC19HOPats;
+ $this->cvdNumBeds = $cvdNumBeds;
}
/**
* @return Number|null
*/
- public function getCvdNumC19OFMechVentPats()
+ public function getCvdNumC19HOPats()
{
- return $this->cvdNumC19OFMechVentPats;
+ return $this->cvdNumC19HOPats;
}
/**
- * @param Number|null $cvdNumC19OFMechVentPats
+ * @param Number|null $cvdNumC19HOPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19OFMechVentPats($cvdNumC19OFMechVentPats)
+ public function setCvdNumC19HOPats($cvdNumC19HOPats)
{
$types = [
"Number",
"null",
];
- $cvdNumC19OFMechVentPats = self::checkTypes($cvdNumC19OFMechVentPats, $types);
+ $cvdNumC19HOPats = self::checkTypes($cvdNumC19HOPats, $types);
- $this->cvdNumC19OFMechVentPats = $cvdNumC19OFMechVentPats;
+ $this->cvdNumC19HOPats = $cvdNumC19HOPats;
}
/**
@@ -475,129 +502,102 @@ public function setCvdNumVentUse($cvdNumVentUse)
}
/**
- * @return Number|null
+ * @return string
*/
- public function getCvdNumBeds()
+ public function getCvdFacilityCounty()
{
- return $this->cvdNumBeds;
+ return $this->cvdFacilityCounty;
}
/**
- * @param Number|null $cvdNumBeds
+ * @param string $cvdFacilityCounty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumBeds($cvdNumBeds)
+ public function setCvdFacilityCounty($cvdFacilityCounty)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $cvdNumBeds = self::checkTypes($cvdNumBeds, $types);
+ $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types);
- $this->cvdNumBeds = $cvdNumBeds;
+ $this->cvdFacilityCounty = $cvdFacilityCounty;
}
/**
* @return Number|null
*/
- public function getCvdNumC19MechVentPats()
+ public function getCvdNumC19Died()
{
- return $this->cvdNumC19MechVentPats;
+ return $this->cvdNumC19Died;
}
/**
- * @param Number|null $cvdNumC19MechVentPats
+ * @param Number|null $cvdNumC19Died
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats)
+ public function setCvdNumC19Died($cvdNumC19Died)
{
$types = [
"Number",
"null",
];
- $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types);
-
- $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats;
- }
-
- /**
- * @return Date|DateTime|null
- */
- public function getDatePosted()
- {
- return $this->datePosted;
- }
-
- /**
- * @param Date|DateTime|null $datePosted
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setDatePosted($datePosted)
- {
- $types = [
- "Date",
- "DateTime",
- "null",
- ];
-
- $datePosted = self::checkTypes($datePosted, $types);
+ $cvdNumC19Died = self::checkTypes($cvdNumC19Died, $types);
- $this->datePosted = $datePosted;
+ $this->cvdNumC19Died = $cvdNumC19Died;
}
/**
* @return Number|null
*/
- public function getCvdNumC19OverflowPats()
+ public function getCvdNumC19OFMechVentPats()
{
- return $this->cvdNumC19OverflowPats;
+ return $this->cvdNumC19OFMechVentPats;
}
/**
- * @param Number|null $cvdNumC19OverflowPats
+ * @param Number|null $cvdNumC19OFMechVentPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19OverflowPats($cvdNumC19OverflowPats)
+ public function setCvdNumC19OFMechVentPats($cvdNumC19OFMechVentPats)
{
$types = [
"Number",
"null",
];
- $cvdNumC19OverflowPats = self::checkTypes($cvdNumC19OverflowPats, $types);
+ $cvdNumC19OFMechVentPats = self::checkTypes($cvdNumC19OFMechVentPats, $types);
- $this->cvdNumC19OverflowPats = $cvdNumC19OverflowPats;
+ $this->cvdNumC19OFMechVentPats = $cvdNumC19OFMechVentPats;
}
/**
* @return Number|null
*/
- public function getCvdNumC19HospPats()
+ public function getCvdNumC19MechVentPats()
{
- return $this->cvdNumC19HospPats;
+ return $this->cvdNumC19MechVentPats;
}
/**
- * @param Number|null $cvdNumC19HospPats
+ * @param Number|null $cvdNumC19MechVentPats
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCvdNumC19HospPats($cvdNumC19HospPats)
+ public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats)
{
$types = [
"Number",
"null",
];
- $cvdNumC19HospPats = self::checkTypes($cvdNumC19HospPats, $types);
+ $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types);
- $this->cvdNumC19HospPats = $cvdNumC19HospPats;
+ $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats;
}
}
diff --git a/src/Models/SchemaOrg/CategoryCode.php b/src/Models/SchemaOrg/CategoryCode.php
index 3b1522b0..9867b73b 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 string|\OpenActive\Models\SchemaOrg\CategoryCodeSet
*/
- 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 string|\OpenActive\Models\SchemaOrg\CategoryCodeSet
*/
- public function getCodeValue()
+ public function getInCodeSet()
{
- return $this->codeValue;
+ return $this->inCodeSet;
}
/**
- * @param string $codeValue
+ * @param string|\OpenActive\Models\SchemaOrg\CategoryCodeSet $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 = [
"string",
+ "\OpenActive\Models\SchemaOrg\CategoryCodeSet",
];
- $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..b03cbee6
--- /dev/null
+++ b/src/Models/SchemaOrg/Certification.php
@@ -0,0 +1,437 @@
+ "certificationStatus",
+ "issuedBy" => "issuedBy",
+ "auditDate" => "auditDate",
+ "hasMeasurement" => "hasMeasurement",
+ "validIn" => "validIn",
+ "about" => "about",
+ "certificationIdentification" => "certificationIdentification",
+ "certificationRating" => "certificationRating",
+ "datePublished" => "datePublished",
+ "logo" => "logo",
+ "validFrom" => "validFrom",
+ "expires" => "expires",
+ ];
+
+ return array_merge(parent::fieldList(), $fields);
+ }
+
+ /**
+ * 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 organization issuing the item, for example a [[Permit]], [[Ticket]], or [[Certification]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $issuedBy;
+
+ /**
+ * Date when a certification was last audited. See also [gs1:certificationAuditDate](https://www.gs1.org/voc/certificationAuditDate).
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $auditDate;
+
+ /**
+ * 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;
+
+ /**
+ * 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;
+
+ /**
+ * The subject matter of the content.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ protected $about;
+
+ /**
+ * 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;
+
+ /**
+ * 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;
+
+ /**
+ * An associated logo.
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\ImageObject
+ */
+ protected $logo;
+
+ /**
+ * The date when the item becomes valid.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $validFrom;
+
+ /**
+ * 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;
+
+ /**
+ * @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\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 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;
+ }
+
+ /**
+ * @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\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\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 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 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 string|\OpenActive\Models\SchemaOrg\ImageObject
+ */
+ public function getLogo()
+ {
+ return $this->logo;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setLogo($logo)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
+ ];
+
+ $logo = self::checkTypes($logo, $types);
+
+ $this->logo = $logo;
+ }
+
+ /**
+ * @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 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;
+ }
+
+}
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..8b3e6c1a 100644
--- a/src/Models/SchemaOrg/Claim.php
+++ b/src/Models/SchemaOrg/Claim.php
@@ -17,113 +17,112 @@ public static function getType()
public static function fieldList() {
$fields = [
- "claimInterpreter" => "claimInterpreter",
"firstAppearance" => "firstAppearance",
"appearance" => "appearance",
+ "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 the first known 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 $firstAppearance;
/**
- * Indicates the first known occurence of a [[Claim]] in some [[CreativeWork]].
+ * Indicates an occurrence of a [[Claim]] in some [[CreativeWork]].
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $firstAppearance;
+ protected $appearance;
/**
- * 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\Person|\OpenActive\Models\SchemaOrg\Organization|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 getFirstAppearance()
{
- return $this->claimInterpreter;
+ return $this->firstAppearance;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $claimInterpreter
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $firstAppearance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setClaimInterpreter($claimInterpreter)
+ public function setFirstAppearance($firstAppearance)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $claimInterpreter = self::checkTypes($claimInterpreter, $types);
+ $firstAppearance = self::checkTypes($firstAppearance, $types);
- $this->claimInterpreter = $claimInterpreter;
+ $this->firstAppearance = $firstAppearance;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getFirstAppearance()
+ public function getAppearance()
{
- return $this->firstAppearance;
+ return $this->appearance;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $firstAppearance
+ * @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 setFirstAppearance($firstAppearance)
+ public function setAppearance($appearance)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $firstAppearance = self::checkTypes($firstAppearance, $types);
+ $appearance = self::checkTypes($appearance, $types);
- $this->firstAppearance = $firstAppearance;
+ $this->appearance = $appearance;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAppearance()
+ public function getClaimInterpreter()
{
- return $this->appearance;
+ return $this->claimInterpreter;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $appearance
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"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..43cfdf12 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\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|null
*/
protected $supersededBy;
/**
- * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Class|\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\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Class|\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\Enums\PropertyEnumeration",
"\OpenActive\Models\SchemaOrg\Class",
+ "\OpenActive\Models\SchemaOrg\Enumeration",
"string",
- "\OpenActive\Enums\PropertyEnumeration",
"null",
];
diff --git a/src/Models/SchemaOrg/Clip.php b/src/Models/SchemaOrg/Clip.php
index 152585a2..a5c245ea 100644
--- a/src/Models/SchemaOrg/Clip.php
+++ b/src/Models/SchemaOrg/Clip.php
@@ -17,61 +17,61 @@ public static function getType()
public static function fieldList() {
$fields = [
- "startOffset" => "startOffset",
- "endOffset" => "endOffset",
- "director" => "director",
"actor" => "actor",
"partOfEpisode" => "partOfEpisode",
- "clipNumber" => "clipNumber",
- "partOfSeries" => "partOfSeries",
"partOfSeason" => "partOfSeason",
"actors" => "actors",
- "musicBy" => "musicBy",
"directors" => "directors",
+ "clipNumber" => "clipNumber",
+ "endOffset" => "endOffset",
+ "partOfSeries" => "partOfSeries",
+ "startOffset" => "startOffset",
+ "director" => "director",
+ "musicBy" => "musicBy",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The start time of the clip expressed as the number of seconds from the beginning of the work.
+ * An actor (individual or a group), 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 Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- protected $startOffset;
+ protected $actor;
/**
- * The end time of the clip expressed as the number of seconds from the beginning of the work.
+ * The episode to which this clip belongs.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $endOffset;
+ protected $partOfEpisode;
/**
- * 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 season to which this episode belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $director;
+ protected $partOfSeason;
/**
- * 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. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $actor;
+ protected $actors;
/**
- * The episode to which this clip 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\Episode|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $partOfEpisode;
+ protected $directors;
/**
* Position of the clip within an ordered group of clips.
@@ -81,6 +81,14 @@ public static function fieldList() {
*/
protected $clipNumber;
+ /**
+ * The end time of the clip expressed as the number of seconds from the beginning of the work.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null
+ */
+ protected $endOffset;
+
/**
* The series to which this episode or season belongs.
*
@@ -90,20 +98,20 @@ public static function fieldList() {
protected $partOfSeries;
/**
- * 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 \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|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.
@@ -114,140 +122,129 @@ public static function fieldList() {
protected $musicBy;
/**
- * 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 $directors;
-
- /**
- * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- public function getStartOffset()
+ public function getActor()
{
- return $this->startOffset;
+ return $this->actor;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string $actor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartOffset($startOffset)
+ public function setActor($actor)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\HyperTocEntry",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PerformingGroup",
"string",
- "null",
];
- $startOffset = self::checkTypes($startOffset, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->startOffset = $startOffset;
+ $this->actor = $actor;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getEndOffset()
+ public function getPartOfEpisode()
{
- return $this->endOffset;
+ return $this->partOfEpisode;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $endOffset
+ * @param \OpenActive\Models\SchemaOrg\Episode|string $partOfEpisode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndOffset($endOffset)
+ public function setPartOfEpisode($partOfEpisode)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\HyperTocEntry",
+ "\OpenActive\Models\SchemaOrg\Episode",
"string",
- "null",
];
- $endOffset = self::checkTypes($endOffset, $types);
+ $partOfEpisode = self::checkTypes($partOfEpisode, $types);
- $this->endOffset = $endOffset;
+ $this->partOfEpisode = $partOfEpisode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getDirector()
+ public function getPartOfSeason()
{
- return $this->director;
+ return $this->partOfSeason;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @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 setDirector($director)
+ public function setPartOfSeason($partOfSeason)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
];
- $director = self::checkTypes($director, $types);
+ $partOfSeason = self::checkTypes($partOfSeason, $types);
- $this->director = $director;
+ $this->partOfSeason = $partOfSeason;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActor()
+ public function getActors()
{
- return $this->actor;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @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 setActor($actor)
+ public function setActors($actors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->actor = $actor;
+ $this->actors = $actors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Episode|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPartOfEpisode()
+ public function getDirectors()
{
- return $this->partOfEpisode;
+ return $this->directors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $partOfEpisode
+ * @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 setPartOfEpisode($partOfEpisode)
+ public function setDirectors($directors)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Episode",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $partOfEpisode = self::checkTypes($partOfEpisode, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->partOfEpisode = $partOfEpisode;
+ $this->directors = $directors;
}
/**
@@ -277,129 +274,133 @@ public function setClipNumber($clipNumber)
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
+ * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null
*/
- public function getPartOfSeries()
+ public function getEndOffset()
{
- return $this->partOfSeries;
+ return $this->endOffset;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries
+ * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null $endOffset
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfSeries($partOfSeries)
+ public function setEndOffset($endOffset)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
+ "\OpenActive\Models\SchemaOrg\HyperTocEntry",
"string",
+ "Number",
+ "null",
];
- $partOfSeries = self::checkTypes($partOfSeries, $types);
+ $endOffset = self::checkTypes($endOffset, $types);
- $this->partOfSeries = $partOfSeries;
+ $this->endOffset = $endOffset;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- public function getPartOfSeason()
+ public function getPartOfSeries()
{
- return $this->partOfSeason;
+ return $this->partOfSeries;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason
+ * @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 setPartOfSeason($partOfSeason)
+ public function setPartOfSeries($partOfSeries)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
"string",
];
- $partOfSeason = self::checkTypes($partOfSeason, $types);
+ $partOfSeries = self::checkTypes($partOfSeries, $types);
- $this->partOfSeason = $partOfSeason;
+ $this->partOfSeries = $partOfSeries;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null
*/
- public function getActors()
+ public function getStartOffset()
{
- return $this->actors;
+ return $this->startOffset;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null $startOffset
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActors($actors)
+ public function setStartOffset($startOffset)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\HyperTocEntry",
"string",
+ "Number",
+ "null",
];
- $actors = self::checkTypes($actors, $types);
+ $startOffset = self::checkTypes($startOffset, $types);
- $this->actors = $actors;
+ $this->startOffset = $startOffset;
}
/**
- * @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
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getDirectors()
+ public function getMusicBy()
{
- return $this->directors;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirectors($directors)
+ public function setMusicBy($musicBy)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->directors = $directors;
+ $this->musicBy = $musicBy;
}
}
diff --git a/src/Models/SchemaOrg/ComicIssue.php b/src/Models/SchemaOrg/ComicIssue.php
index ffd3a40f..f66b7ea7 100644
--- a/src/Models/SchemaOrg/ComicIssue.php
+++ b/src/Models/SchemaOrg/ComicIssue.php
@@ -18,11 +18,11 @@ public static function getType()
public static function fieldList() {
$fields = [
"letterer" => "letterer",
- "colorist" => "colorist",
- "variantCover" => "variantCover",
"inker" => "inker",
- "penciler" => "penciler",
+ "colorist" => "colorist",
"artist" => "artist",
+ "penciler" => "penciler",
+ "variantCover" => "variantCover",
];
return array_merge(parent::fieldList(), $fields);
@@ -37,30 +37,30 @@ public static function fieldList() {
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
- * for the issue, if the issue is a variant printing. For example, "Bryan Hitch
- * Variant Cover" or "2nd Printing Variant".
+ * The individual who adds color to inked drawings.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $variantCover;
+ protected $colorist;
/**
- * 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.
@@ -71,14 +71,14 @@ 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.
+ * A description of the variant cover
+ * for the issue, if the issue is a variant printing. For example, "Bryan Hitch
+ * Variant Cover" or "2nd Printing Variant".
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $artist;
+ protected $variantCover;
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
@@ -108,75 +108,76 @@ public function setLetterer($letterer)
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getColorist()
+ public function getInker()
{
- return $this->colorist;
+ return $this->inker;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $colorist
+ * @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 setColorist($colorist)
+ public function setInker($inker)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $colorist = self::checkTypes($colorist, $types);
+ $inker = self::checkTypes($inker, $types);
- $this->colorist = $colorist;
+ $this->inker = $inker;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getVariantCover()
+ public function getColorist()
{
- return $this->variantCover;
+ return $this->colorist;
}
/**
- * @param string $variantCover
+ * @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 setVariantCover($variantCover)
+ public function setColorist($colorist)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $variantCover = self::checkTypes($variantCover, $types);
+ $colorist = self::checkTypes($colorist, $types);
- $this->variantCover = $variantCover;
+ $this->colorist = $colorist;
}
/**
* @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;
}
/**
@@ -205,28 +206,27 @@ public function setPenciler($penciler)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getArtist()
+ public function getVariantCover()
{
- return $this->artist;
+ return $this->variantCover;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $artist
+ * @param string $variantCover
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArtist($artist)
+ public function setVariantCover($variantCover)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $artist = self::checkTypes($artist, $types);
+ $variantCover = self::checkTypes($variantCover, $types);
- $this->artist = $artist;
+ $this->variantCover = $variantCover;
}
}
diff --git a/src/Models/SchemaOrg/ComicStory.php b/src/Models/SchemaOrg/ComicStory.php
index 8ec03973..2a015a86 100644
--- a/src/Models/SchemaOrg/ComicStory.php
+++ b/src/Models/SchemaOrg/ComicStory.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"letterer" => "letterer",
- "colorist" => "colorist",
"inker" => "inker",
- "penciler" => "penciler",
+ "colorist" => "colorist",
"artist" => "artist",
+ "penciler" => "penciler",
];
return array_merge(parent::fieldList(), $fields);
@@ -35,14 +35,6 @@ public static function fieldList() {
*/
protected $letterer;
- /**
- * The individual who adds color to inked drawings.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Person|string
- */
- protected $colorist;
-
/**
* The individual who traces over the pencil drawings in ink after pencils are complete.
*
@@ -52,12 +44,12 @@ public static function fieldList() {
protected $inker;
/**
- * The individual who draws the primary narrative artwork.
+ * The individual who adds color to inked drawings.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $penciler;
+ protected $colorist;
/**
* The primary artist for a work
@@ -69,6 +61,14 @@ public static function fieldList() {
*/
protected $artist;
+ /**
+ * The individual who draws the primary narrative artwork.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Person|string
+ */
+ protected $penciler;
+
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
@@ -97,101 +97,101 @@ public function setLetterer($letterer)
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getColorist()
+ public function getInker()
{
- return $this->colorist;
+ return $this->inker;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $colorist
+ * @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 setColorist($colorist)
+ public function setInker($inker)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $colorist = self::checkTypes($colorist, $types);
+ $inker = self::checkTypes($inker, $types);
- $this->colorist = $colorist;
+ $this->inker = $inker;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getInker()
+ public function getColorist()
{
- return $this->inker;
+ return $this->colorist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $inker
+ * @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 setInker($inker)
+ public function setColorist($colorist)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $inker = self::checkTypes($inker, $types);
+ $colorist = self::checkTypes($colorist, $types);
- $this->inker = $inker;
+ $this->colorist = $colorist;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPenciler()
+ public function getArtist()
{
- return $this->penciler;
+ return $this->artist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $penciler
+ * @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 setPenciler($penciler)
+ public function setArtist($artist)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $penciler = self::checkTypes($penciler, $types);
+ $artist = self::checkTypes($artist, $types);
- $this->penciler = $penciler;
+ $this->artist = $artist;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getArtist()
+ public function getPenciler()
{
- return $this->artist;
+ return $this->penciler;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $artist
+ * @param \OpenActive\Models\SchemaOrg\Person|string $penciler
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setArtist($artist)
+ public function setPenciler($penciler)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $artist = self::checkTypes($artist, $types);
+ $penciler = self::checkTypes($penciler, $types);
- $this->artist = $artist;
+ $this->penciler = $penciler;
}
}
diff --git a/src/Models/SchemaOrg/Comment.php b/src/Models/SchemaOrg/Comment.php
index e45f4dde..ba74f1da 100644
--- a/src/Models/SchemaOrg/Comment.php
+++ b/src/Models/SchemaOrg/Comment.php
@@ -19,6 +19,7 @@ public static function fieldList() {
$fields = [
"parentItem" => "parentItem",
"downvoteCount" => "downvoteCount",
+ "sharedContent" => "sharedContent",
"upvoteCount" => "upvoteCount",
];
@@ -26,10 +27,10 @@ public static function fieldList() {
}
/**
- * The parent of a question, answer or item in general.
+ * 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;
@@ -41,6 +42,14 @@ public static function fieldList() {
*/
protected $downvoteCount;
+ /**
+ * A CreativeWork such as an image, video, or audio clip shared as part of this posting.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ protected $sharedContent;
+
/**
* The number of upvotes this question, answer or comment has received from the community.
*
@@ -50,7 +59,7 @@ public static function fieldList() {
protected $upvoteCount;
/**
- * @return \OpenActive\Models\SchemaOrg\Comment|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string
*/
public function getParentItem()
{
@@ -58,13 +67,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",
];
@@ -99,6 +109,31 @@ public function setDownvoteCount($downvoteCount)
$this->downvoteCount = $downvoteCount;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ public function getSharedContent()
+ {
+ return $this->sharedContent;
+ }
+
+ /**
+ * @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 setSharedContent($sharedContent)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
+ ];
+
+ $sharedContent = self::checkTypes($sharedContent, $types);
+
+ $this->sharedContent = $sharedContent;
+ }
+
/**
* @return int|null
*/
diff --git a/src/Models/SchemaOrg/CommunicateAction.php b/src/Models/SchemaOrg/CommunicateAction.php
index 91f19d19..d6d25165 100644
--- a/src/Models/SchemaOrg/CommunicateAction.php
+++ b/src/Models/SchemaOrg/CommunicateAction.php
@@ -17,148 +17,148 @@ public static function getType()
public static function fieldList() {
$fields = [
- "recipient" => "recipient",
- "inLanguage" => "inLanguage",
"language" => "language",
+ "recipient" => "recipient",
"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.
+ * A sub property of instrument. The language used on this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- protected $recipient;
+ protected $language;
/**
- * 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\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $inLanguage;
+ protected $recipient;
/**
- * A sub property of instrument. The language used on this action.
+ * The subject matter of the content.
*
*
- * @var \OpenActive\Models\SchemaOrg\Language|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $language;
+ protected $about;
/**
- * 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 \OpenActive\Models\SchemaOrg\Language|string
*/
- 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\Language|string
*/
- public function getRecipient()
+ public function getLanguage()
{
- return $this->recipient;
+ return $this->language;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\Language|string $language
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecipient($recipient)
+ public function setLanguage($language)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $recipient = self::checkTypes($recipient, $types);
+ $language = self::checkTypes($language, $types);
- $this->recipient = $recipient;
+ $this->language = $language;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getInLanguage()
+ public function getRecipient()
{
- return $this->inLanguage;
+ return $this->recipient;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Audience",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $recipient = self::checkTypes($recipient, $types);
- $this->inLanguage = $inLanguage;
+ $this->recipient = $recipient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getLanguage()
+ public function getAbout()
{
- return $this->language;
+ return $this->about;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $language
+ * @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 setLanguage($language)
+ public function setAbout($about)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $language = self::checkTypes($language, $types);
+ $about = self::checkTypes($about, $types);
- $this->language = $language;
+ $this->about = $about;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getAbout()
+ public function getInLanguage()
{
- return $this->about;
+ return $this->inLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $about
+ * @param \OpenActive\Models\SchemaOrg\Language|string $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",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $about = self::checkTypes($about, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->about = $about;
+ $this->inLanguage = $inLanguage;
}
}
diff --git a/src/Models/SchemaOrg/CompoundPriceSpecification.php b/src/Models/SchemaOrg/CompoundPriceSpecification.php
index a2905419..8ba29b1f 100644
--- a/src/Models/SchemaOrg/CompoundPriceSpecification.php
+++ b/src/Models/SchemaOrg/CompoundPriceSpecification.php
@@ -17,78 +17,78 @@ public static function getType()
public static function fieldList() {
$fields = [
- "priceComponent" => "priceComponent",
"priceType" => "priceType",
+ "priceComponent" => "priceComponent",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * This property links to all [[UnitPriceSpecification]] nodes that apply in parallel for the [[CompoundPriceSpecification]] node.
+ * Defines the type of a price specified for an offered product, for example a list price, a (temporary) sale price or a manufacturer suggested retail price. If multiple prices are specified for an offer the [[priceType]] property can be used to identify the type of each such specified price. The value of priceType can be specified as a value from enumeration PriceTypeEnumeration or as a free form text string for price types that are not already predefined in PriceTypeEnumeration.
*
*
- * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
+ * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null
*/
- protected $priceComponent;
+ protected $priceType;
/**
- * Defines the type of a price specified for an offered product, for example a list price, a (temporary) sale price or a manufacturer suggested retail price. If multiple prices are specified for an offer the [[priceType]] property can be used to identify the type of each such specified price. The value of priceType can be specified as a value from enumeration PriceTypeEnumeration or as a free form text string for price types that are not already predefined in PriceTypeEnumeration.
+ * This property links to all [[UnitPriceSpecification]] nodes that apply in parallel for the [[CompoundPriceSpecification]] node.
*
*
- * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null
+ * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
*/
- protected $priceType;
+ protected $priceComponent;
/**
- * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
+ * @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null
*/
- public function getPriceComponent()
+ public function getPriceType()
{
- return $this->priceComponent;
+ return $this->priceType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $priceComponent
+ * @param \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null $priceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceComponent($priceComponent)
+ public function setPriceType($priceType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\UnitPriceSpecification",
+ "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration",
"string",
+ "null",
];
- $priceComponent = self::checkTypes($priceComponent, $types);
+ $priceType = self::checkTypes($priceType, $types);
- $this->priceComponent = $priceComponent;
+ $this->priceType = $priceType;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null
+ * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
*/
- public function getPriceType()
+ public function getPriceComponent()
{
- return $this->priceType;
+ return $this->priceComponent;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null $priceType
+ * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $priceComponent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceType($priceType)
+ public function setPriceComponent($priceComponent)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration",
+ "\OpenActive\Models\SchemaOrg\UnitPriceSpecification",
"string",
- "null",
];
- $priceType = self::checkTypes($priceType, $types);
+ $priceComponent = self::checkTypes($priceComponent, $types);
- $this->priceType = $priceType;
+ $this->priceComponent = $priceComponent;
}
}
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..976cffeb 100644
--- a/src/Models/SchemaOrg/ContactPoint.php
+++ b/src/Models/SchemaOrg/ContactPoint.php
@@ -17,349 +17,349 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "contactType" => "contactType",
"telephone" => "telephone",
- "hoursAvailable" => "hoursAvailable",
+ "productSupported" => "productSupported",
+ "faxNumber" => "faxNumber",
"email" => "email",
+ "areaServed" => "areaServed",
"contactOption" => "contactOption",
- "availableLanguage" => "availableLanguage",
"serviceArea" => "serviceArea",
- "areaServed" => "areaServed",
- "contactType" => "contactType",
- "productSupported" => "productSupported",
- "faxNumber" => "faxNumber",
+ "hoursAvailable" => "hoursAvailable",
+ "availableLanguage" => "availableLanguage",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The telephone 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 $telephone;
+ protected $contactType;
/**
- * The hours during which this service or contact is available.
+ * The telephone number.
*
*
- * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ * @var string
*/
- protected $hoursAvailable;
+ protected $telephone;
/**
- * Email address.
+ * 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").
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Product|string
*/
- protected $email;
+ protected $productSupported;
/**
- * An option available on this contact point (e.g. a toll-free number or support for hearing-impaired callers).
+ * The fax number.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ContactPointOption|null
+ * @var string
*/
- protected $contactOption;
+ protected $faxNumber;
/**
- * 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]]
+ * Email address.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var string
*/
- protected $availableLanguage;
+ protected $email;
/**
- * The geographic area where the service is provided.
+ * The geographic area where a service or offered item is provided.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $serviceArea;
+ protected $areaServed;
/**
- * 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\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|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").
+ * The hours during which this service or contact is available.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Product
+ * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- protected $productSupported;
+ protected $hoursAvailable;
/**
- * The fax number.
+ * 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
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $faxNumber;
+ protected $availableLanguage;
/**
* @return string
*/
- public function getTelephone()
+ public function getContactType()
{
- return $this->telephone;
+ return $this->contactType;
}
/**
- * @param string $telephone
+ * @param string $contactType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTelephone($telephone)
+ public function setContactType($contactType)
{
$types = [
"string",
];
- $telephone = self::checkTypes($telephone, $types);
+ $contactType = self::checkTypes($contactType, $types);
- $this->telephone = $telephone;
+ $this->contactType = $contactType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
+ * @return string
*/
- public function getHoursAvailable()
+ public function getTelephone()
{
- return $this->hoursAvailable;
+ return $this->telephone;
}
/**
- * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable
+ * @param string $telephone
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHoursAvailable($hoursAvailable)
+ public function setTelephone($telephone)
{
$types = [
- "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
"string",
];
- $hoursAvailable = self::checkTypes($hoursAvailable, $types);
+ $telephone = self::checkTypes($telephone, $types);
- $this->hoursAvailable = $hoursAvailable;
+ $this->telephone = $telephone;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Product|string
*/
- public function getEmail()
+ public function getProductSupported()
{
- return $this->email;
+ return $this->productSupported;
}
/**
- * @param string $email
+ * @param \OpenActive\Models\SchemaOrg\Product|string $productSupported
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmail($email)
+ public function setProductSupported($productSupported)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $email = self::checkTypes($email, $types);
+ $productSupported = self::checkTypes($productSupported, $types);
- $this->email = $email;
+ $this->productSupported = $productSupported;
}
/**
- * @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 string
*/
- public function getAvailableLanguage()
+ public function getEmail()
{
- return $this->availableLanguage;
+ return $this->email;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
+ * @param string $email
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableLanguage($availableLanguage)
+ public function setEmail($email)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $availableLanguage = self::checkTypes($availableLanguage, $types);
+ $email = self::checkTypes($email, $types);
- $this->availableLanguage = $availableLanguage;
+ $this->email = $email;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getServiceArea()
+ public function getAreaServed()
{
- return $this->serviceArea;
+ return $this->areaServed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setServiceArea($serviceArea)
+ public function setAreaServed($areaServed)
{
$types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\GeoShape",
"\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
];
- $serviceArea = self::checkTypes($serviceArea, $types);
+ $areaServed = self::checkTypes($areaServed, $types);
- $this->serviceArea = $serviceArea;
+ $this->areaServed = $areaServed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Enums\SchemaOrg\ContactPointOption|null
*/
- public function getAreaServed()
+ public function getContactOption()
{
- return $this->areaServed;
+ return $this->contactOption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @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 setAreaServed($areaServed)
+ public function setContactOption($contactOption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\GeoShape",
- "string",
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Enums\SchemaOrg\ContactPointOption",
+ "null",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $contactOption = self::checkTypes($contactOption, $types);
- $this->areaServed = $areaServed;
+ $this->contactOption = $contactOption;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getContactType()
+ public function getServiceArea()
{
- return $this->contactType;
+ return $this->serviceArea;
}
/**
- * @param string $contactType
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContactType($contactType)
+ public function setServiceArea($serviceArea)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $contactType = self::checkTypes($contactType, $types);
+ $serviceArea = self::checkTypes($serviceArea, $types);
- $this->contactType = $contactType;
+ $this->serviceArea = $serviceArea;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Product
+ * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string
*/
- public function getProductSupported()
+ public function getHoursAvailable()
{
- return $this->productSupported;
+ return $this->hoursAvailable;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Product $productSupported
+ * @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 setProductSupported($productSupported)
+ public function setHoursAvailable($hoursAvailable)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification",
"string",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $productSupported = self::checkTypes($productSupported, $types);
+ $hoursAvailable = self::checkTypes($hoursAvailable, $types);
- $this->productSupported = $productSupported;
+ $this->hoursAvailable = $hoursAvailable;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getFaxNumber()
+ public function getAvailableLanguage()
{
- return $this->faxNumber;
+ return $this->availableLanguage;
}
/**
- * @param string $faxNumber
+ * @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 setFaxNumber($faxNumber)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $faxNumber = self::checkTypes($faxNumber, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->faxNumber = $faxNumber;
+ $this->availableLanguage = $availableLanguage;
}
}
diff --git a/src/Models/SchemaOrg/CookAction.php b/src/Models/SchemaOrg/CookAction.php
index 0c80482f..e865c03d 100644
--- a/src/Models/SchemaOrg/CookAction.php
+++ b/src/Models/SchemaOrg/CookAction.php
@@ -17,22 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
- "recipe" => "recipe",
"foodEstablishment" => "foodEstablishment",
"foodEvent" => "foodEvent",
+ "recipe" => "recipe",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * A sub property of instrument. The recipe/instructions used to perform the action.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Recipe|string
- */
- protected $recipe;
-
/**
* A sub property of location. The specific food establishment where the action occurred.
*
@@ -50,29 +42,12 @@ public static function fieldList() {
protected $foodEvent;
/**
- * @return \OpenActive\Models\SchemaOrg\Recipe|string
- */
- public function getRecipe()
- {
- return $this->recipe;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\Recipe|string $recipe
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * A sub property of instrument. The recipe/instructions used to perform the action.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Recipe|string
*/
- public function setRecipe($recipe)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Recipe",
- "string",
- ];
-
- $recipe = self::checkTypes($recipe, $types);
-
- $this->recipe = $recipe;
- }
+ protected $recipe;
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string
@@ -125,4 +100,29 @@ public function setFoodEvent($foodEvent)
$this->foodEvent = $foodEvent;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Recipe|string
+ */
+ public function getRecipe()
+ {
+ return $this->recipe;
+ }
+
+ /**
+ * @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 setRecipe($recipe)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Recipe",
+ "string",
+ ];
+
+ $recipe = self::checkTypes($recipe, $types);
+
+ $this->recipe = $recipe;
+ }
+
}
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..33599069 100644
--- a/src/Models/SchemaOrg/Course.php
+++ b/src/Models/SchemaOrg/Course.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Course extends \OpenActive\Models\SchemaOrg\LearningResource
+class Course extends \OpenActive\Models\SchemaOrg\CreativeWork
{
/**
* @return string[]|null
@@ -17,32 +17,68 @@ public static function getType()
public static function fieldList() {
$fields = [
- "coursePrerequisites" => "coursePrerequisites",
- "educationalCredentialAwarded" => "educationalCredentialAwarded",
- "numberOfCredits" => "numberOfCredits",
- "occupationalCredentialAwarded" => "occupationalCredentialAwarded",
+ "syllabusSections" => "syllabusSections",
"courseCode" => "courseCode",
+ "occupationalCredentialAwarded" => "occupationalCredentialAwarded",
+ "coursePrerequisites" => "coursePrerequisites",
"hasCourseInstance" => "hasCourseInstance",
+ "totalHistoricalEnrollment" => "totalHistoricalEnrollment",
+ "numberOfCredits" => "numberOfCredits",
+ "educationalCredentialAwarded" => "educationalCredentialAwarded",
+ "availableLanguage" => "availableLanguage",
+ "financialAidEligible" => "financialAidEligible",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * Indicates (typically several) Syllabus entities that lay out what each section of the overall course will cover.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Syllabus|string
+ */
+ protected $syllabusSections;
+
+ /**
+ * The identifier for the [[Course]] used by the course [[provider]] (e.g. CS101 or 6.001).
+ *
+ *
+ * @var string
+ */
+ protected $courseCode;
+
+ /**
+ * 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;
+
/**
* 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 string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
+ * @var \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|string
*/
protected $coursePrerequisites;
/**
- * A description of the qualification, award, certificate, diploma or other educational 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 string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var \OpenActive\Models\SchemaOrg\CourseInstance|string
*/
- protected $educationalCredentialAwarded;
+ protected $hasCourseInstance;
+
+ /**
+ * The total number of students that have enrolled in the history of the course.
+ *
+ *
+ * @var int|null
+ */
+ protected $totalHistoricalEnrollment;
/**
* The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.
@@ -53,31 +89,105 @@ public static function fieldList() {
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.
+ * 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\EducationalOccupationalCredential|string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $occupationalCredentialAwarded;
+ protected $educationalCredentialAwarded;
/**
- * The identifier for the [[Course]] used by the course [[provider]] (e.g. CS101 or 6.001).
+ * 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
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $courseCode;
+ protected $availableLanguage;
/**
- * 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 financial aid type or program which students may use to pay for tuition or fees associated with the program.
*
*
- * @var \OpenActive\Models\SchemaOrg\CourseInstance|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $hasCourseInstance;
+ protected $financialAidEligible;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Syllabus|string
+ */
+ public function getSyllabusSections()
+ {
+ return $this->syllabusSections;
+ }
/**
- * @return string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
+ * @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 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;
+ }
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ */
+ public function getOccupationalCredentialAwarded()
+ {
+ return $this->occupationalCredentialAwarded;
+ }
+
+ /**
+ * @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 setOccupationalCredentialAwarded($occupationalCredentialAwarded)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ ];
+
+ $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
+
+ $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|string
*/
public function getCoursePrerequisites()
{
@@ -85,16 +195,16 @@ public function getCoursePrerequisites()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course $coursePrerequisites
+ * @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 setCoursePrerequisites($coursePrerequisites)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\AlignmentObject",
"\OpenActive\Models\SchemaOrg\Course",
+ "string",
];
$coursePrerequisites = self::checkTypes($coursePrerequisites, $types);
@@ -103,28 +213,53 @@ public function setCoursePrerequisites($coursePrerequisites)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return \OpenActive\Models\SchemaOrg\CourseInstance|string
*/
- public function getEducationalCredentialAwarded()
+ public function getHasCourseInstance()
{
- return $this->educationalCredentialAwarded;
+ return $this->hasCourseInstance;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded
+ * @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 setEducationalCredentialAwarded($educationalCredentialAwarded)
+ public function setHasCourseInstance($hasCourseInstance)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CourseInstance",
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
+ $hasCourseInstance = self::checkTypes($hasCourseInstance, $types);
- $this->educationalCredentialAwarded = $educationalCredentialAwarded;
+ $this->hasCourseInstance = $hasCourseInstance;
+ }
+
+ /**
+ * @return int|null
+ */
+ public function getTotalHistoricalEnrollment()
+ {
+ return $this->totalHistoricalEnrollment;
+ }
+
+ /**
+ * @param int|null $totalHistoricalEnrollment
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setTotalHistoricalEnrollment($totalHistoricalEnrollment)
+ {
+ $types = [
+ "int",
+ "null",
+ ];
+
+ $totalHistoricalEnrollment = self::checkTypes($totalHistoricalEnrollment, $types);
+
+ $this->totalHistoricalEnrollment = $totalHistoricalEnrollment;
}
/**
@@ -155,77 +290,78 @@ public function setNumberOfCredits($numberOfCredits)
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getOccupationalCredentialAwarded()
+ public function getEducationalCredentialAwarded()
{
- return $this->occupationalCredentialAwarded;
+ return $this->educationalCredentialAwarded;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded
+ * @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 setOccupationalCredentialAwarded($occupationalCredentialAwarded)
+ public function setEducationalCredentialAwarded($educationalCredentialAwarded)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
+ $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
- $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
+ $this->educationalCredentialAwarded = $educationalCredentialAwarded;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getCourseCode()
+ public function getAvailableLanguage()
{
- return $this->courseCode;
+ return $this->availableLanguage;
}
/**
- * @param string $courseCode
+ * @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 setCourseCode($courseCode)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $courseCode = self::checkTypes($courseCode, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->courseCode = $courseCode;
+ $this->availableLanguage = $availableLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CourseInstance|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getHasCourseInstance()
+ public function getFinancialAidEligible()
{
- return $this->hasCourseInstance;
+ return $this->financialAidEligible;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CourseInstance|string $hasCourseInstance
+ * @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 setHasCourseInstance($hasCourseInstance)
+ public function setFinancialAidEligible($financialAidEligible)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CourseInstance",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $hasCourseInstance = self::checkTypes($hasCourseInstance, $types);
+ $financialAidEligible = self::checkTypes($financialAidEligible, $types);
- $this->hasCourseInstance = $hasCourseInstance;
+ $this->financialAidEligible = $financialAidEligible;
}
}
diff --git a/src/Models/SchemaOrg/CourseInstance.php b/src/Models/SchemaOrg/CourseInstance.php
index 5f6f9db7..3829a7e0 100644
--- a/src/Models/SchemaOrg/CourseInstance.php
+++ b/src/Models/SchemaOrg/CourseInstance.php
@@ -18,8 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"instructor" => "instructor",
- "courseWorkload" => "courseWorkload",
"courseMode" => "courseMode",
+ "courseSchedule" => "courseSchedule",
+ "courseWorkload" => "courseWorkload",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +35,28 @@ public static function fieldList() {
protected $instructor;
/**
- * The amount of work expected of students taking the course, often provided as a figure per week or per month, and may be broken down by type. For example, "2 hours of lectures, 1 hour of lab work and 3 hours of independent study per week".
+ * 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 $courseWorkload;
+ protected $courseMode;
+
+ /**
+ * Represents the length and pace of a course, expressed as a [[Schedule]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Schedule|string
+ */
+ protected $courseSchedule;
/**
- * 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 ).
+ * The amount of work expected of students taking the course, often provided as a figure per week or per month, and may be broken down by type. For example, "2 hours of lectures, 1 hour of lab work and 3 hours of independent study per week".
*
*
* @var string
*/
- protected $courseMode;
+ protected $courseWorkload;
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
@@ -77,49 +86,74 @@ public function setInstructor($instructor)
/**
* @return string
*/
- public function getCourseWorkload()
+ public function getCourseMode()
{
- return $this->courseWorkload;
+ return $this->courseMode;
}
/**
- * @param string $courseWorkload
+ * @param string $courseMode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCourseWorkload($courseWorkload)
+ public function setCourseMode($courseMode)
{
$types = [
"string",
];
- $courseWorkload = self::checkTypes($courseWorkload, $types);
+ $courseMode = self::checkTypes($courseMode, $types);
- $this->courseWorkload = $courseWorkload;
+ $this->courseMode = $courseMode;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Schedule|string
+ */
+ public function getCourseSchedule()
+ {
+ return $this->courseSchedule;
+ }
+
+ /**
+ * @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 setCourseSchedule($courseSchedule)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Schedule",
+ "string",
+ ];
+
+ $courseSchedule = self::checkTypes($courseSchedule, $types);
+
+ $this->courseSchedule = $courseSchedule;
}
/**
* @return string
*/
- public function getCourseMode()
+ public function getCourseWorkload()
{
- return $this->courseMode;
+ return $this->courseWorkload;
}
/**
- * @param string $courseMode
+ * @param string $courseWorkload
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCourseMode($courseMode)
+ public function setCourseWorkload($courseWorkload)
{
$types = [
"string",
];
- $courseMode = self::checkTypes($courseMode, $types);
+ $courseWorkload = self::checkTypes($courseWorkload, $types);
- $this->courseMode = $courseMode;
+ $this->courseWorkload = $courseWorkload;
}
}
diff --git a/src/Models/SchemaOrg/CreativeWork.php b/src/Models/SchemaOrg/CreativeWork.php
index bf378797..b6bd6897 100644
--- a/src/Models/SchemaOrg/CreativeWork.php
+++ b/src/Models/SchemaOrg/CreativeWork.php
@@ -17,210 +17,234 @@ public static function getType()
public static function fieldList() {
$fields = [
- "teaches" => "teaches",
- "educationalLevel" => "educationalLevel",
- "abstract" => "abstract",
- "creativeWorkStatus" => "creativeWorkStatus",
- "expires" => "expires",
+ "interactionStatistic" => "interactionStatistic",
+ "contributor" => "contributor",
+ "publishingPrinciples" => "publishingPrinciples",
+ "exampleOfWork" => "exampleOfWork",
"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",
+ "educationalAlignment" => "educationalAlignment",
+ "mentions" => "mentions",
+ "temporal" => "temporal",
+ "material" => "material",
+ "associatedMedia" => "associatedMedia",
+ "version" => "version",
+ "award" => "award",
+ "learningResourceType" => "learningResourceType",
+ "encoding" => "encoding",
+ "recordedAt" => "recordedAt",
+ "encodingFormat" => "encodingFormat",
+ "accessibilitySummary" => "accessibilitySummary",
+ "editor" => "editor",
+ "copyrightHolder" => "copyrightHolder",
"funding" => "funding",
- "educationalUse" => "educationalUse",
- "genre" => "genre",
- "keywords" => "keywords",
"position" => "position",
- "accessibilityHazard" => "accessibilityHazard",
+ "about" => "about",
"alternativeHeadline" => "alternativeHeadline",
- "audience" => "audience",
- "offers" => "offers",
- "locationCreated" => "locationCreated",
- "associatedMedia" => "associatedMedia",
- "materialExtent" => "materialExtent",
- "mainEntity" => "mainEntity",
- "copyrightHolder" => "copyrightHolder",
- "awards" => "awards",
- "contentLocation" => "contentLocation",
- "sdDatePublished" => "sdDatePublished",
- "producer" => "producer",
- "spatial" => "spatial",
- "publisher" => "publisher",
- "sourceOrganization" => "sourceOrganization",
- "character" => "character",
+ "commentCount" => "commentCount",
"funder" => "funder",
- "exampleOfWork" => "exampleOfWork",
- "usageInfo" => "usageInfo",
- "provider" => "provider",
- "sdPublisher" => "sdPublisher",
+ "datePublished" => "datePublished",
+ "isFamilyFriendly" => "isFamilyFriendly",
"comment" => "comment",
- "accessibilityFeature" => "accessibilityFeature",
- "publication" => "publication",
- "translationOfWork" => "translationOfWork",
- "interactivityType" => "interactivityType",
- "commentCount" => "commentCount",
- "accessMode" => "accessMode",
- "aggregateRating" => "aggregateRating",
- "timeRequired" => "timeRequired",
- "typicalAgeRange" => "typicalAgeRange",
- "interactionStatistic" => "interactionStatistic",
- "copyrightYear" => "copyrightYear",
"isBasedOn" => "isBasedOn",
- "workExample" => "workExample",
- "publishingPrinciples" => "publishingPrinciples",
- "discussionUrl" => "discussionUrl",
- "releasedEvent" => "releasedEvent",
- "dateCreated" => "dateCreated",
- "workTranslation" => "workTranslation",
- "editor" => "editor",
+ "sourceOrganization" => "sourceOrganization",
+ "isBasedOnUrl" => "isBasedOnUrl",
+ "thumbnail" => "thumbnail",
+ "video" => "video",
+ "keywords" => "keywords",
"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",
+ "isAccessibleForFree" => "isAccessibleForFree",
+ "acquireLicensePage" => "acquireLicensePage",
+ "discussionUrl" => "discussionUrl",
+ "editEIDR" => "editEIDR",
+ "spatialCoverage" => "spatialCoverage",
+ "sdPublisher" => "sdPublisher",
+ "dateCreated" => "dateCreated",
"encodings" => "encodings",
- "interpretedAsClaim" => "interpretedAsClaim",
- "accessibilityControl" => "accessibilityControl",
"citation" => "citation",
- "version" => "version",
+ "timeRequired" => "timeRequired",
+ "character" => "character",
+ "pattern" => "pattern",
+ "typicalAgeRange" => "typicalAgeRange",
+ "translator" => "translator",
+ "thumbnailUrl" => "thumbnailUrl",
+ "digitalSourceType" => "digitalSourceType",
+ "producer" => "producer",
+ "accessibilityControl" => "accessibilityControl",
+ "author" => "author",
+ "educationalLevel" => "educationalLevel",
+ "genre" => "genre",
+ "isPartOf" => "isPartOf",
"archivedAt" => "archivedAt",
- "learningResourceType" => "learningResourceType",
- "encoding" => "encoding",
+ "copyrightYear" => "copyrightYear",
+ "headline" => "headline",
+ "reviews" => "reviews",
+ "interpretedAsClaim" => "interpretedAsClaim",
+ "publisher" => "publisher",
+ "review" => "review",
+ "creativeWorkStatus" => "creativeWorkStatus",
"audio" => "audio",
- "mentions" => "mentions",
+ "educationalUse" => "educationalUse",
+ "countryOfOrigin" => "countryOfOrigin",
+ "interactivityType" => "interactivityType",
+ "offers" => "offers",
+ "temporalCoverage" => "temporalCoverage",
+ "sdLicense" => "sdLicense",
+ "publisherImprint" => "publisherImprint",
+ "provider" => "provider",
+ "accountablePerson" => "accountablePerson",
+ "workTranslation" => "workTranslation",
+ "contentRating" => "contentRating",
+ "awards" => "awards",
+ "spatial" => "spatial",
+ "assesses" => "assesses",
+ "translationOfWork" => "translationOfWork",
+ "schemaVersion" => "schemaVersion",
+ "locationCreated" => "locationCreated",
+ "teaches" => "teaches",
+ "mainEntity" => "mainEntity",
+ "conditionsOfAccess" => "conditionsOfAccess",
+ "publication" => "publication",
+ "materialExtent" => "materialExtent",
+ "usageInfo" => "usageInfo",
"accessModeSufficient" => "accessModeSufficient",
+ "maintainer" => "maintainer",
+ "accessibilityAPI" => "accessibilityAPI",
"hasPart" => "hasPart",
- "temporalCoverage" => "temporalCoverage",
- "contributor" => "contributor",
- "video" => "video",
+ "accessibilityFeature" => "accessibilityFeature",
+ "text" => "text",
+ "correction" => "correction",
+ "sponsor" => "sponsor",
+ "workExample" => "workExample",
+ "abstract" => "abstract",
+ "aggregateRating" => "aggregateRating",
+ "contentLocation" => "contentLocation",
+ "creator" => "creator",
+ "expires" => "expires",
+ "sdDatePublished" => "sdDatePublished",
+ "inLanguage" => "inLanguage",
+ "releasedEvent" => "releasedEvent",
+ "dateModified" => "dateModified",
+ "accessibilityHazard" => "accessibilityHazard",
+ "accessMode" => "accessMode",
+ "audience" => "audience",
];
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 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\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string
*/
- protected $teaches;
+ protected $interactionStatistic;
/**
- * 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.
+ * A secondary contributor to the CreativeWork or Event.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $educationalLevel;
+ protected $contributor;
/**
- * An abstract is a short description that summarizes a [[CreativeWork]].
+ * 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 string
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $abstract;
+ protected $publishingPrinciples;
/**
- * 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.
+ * A creative work that this work is an example/instance/realization/derivation of.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $creativeWorkStatus;
+ protected $exampleOfWork;
/**
- * 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.
+ * 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 Date|null
+ * @var DateTime|null
*/
- protected $expires;
+ protected $contentReferenceTime;
/**
- * The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.
+ * 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 DateTime|null
+ * @var string
*/
- protected $contentReferenceTime;
+ protected $fileFormat;
/**
- * A material that something is made from, e.g. leather, wool, cotton, paper.
+ * 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|\OpenActive\Models\SchemaOrg\Product
+ * @var string
*/
- protected $material;
+ protected $copyrightNotice;
/**
- * A review of the item.
+ * 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\Review|string
+ * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string
*/
- protected $review;
+ protected $educationalAlignment;
/**
- * 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 that the CreativeWork contains a reference to, but is not necessarily about a concept.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $fileFormat;
+ protected $mentions;
/**
- * The textual content of this CreativeWork.
+ * 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 $text;
+ protected $temporal;
/**
- * 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.
+ * 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 $translator;
+ protected $material;
+
+ /**
+ * A media object that encodes this CreativeWork. This property is a synonym for encoding.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
+ */
+ protected $associatedMedia;
+
+ /**
+ * The version of the CreativeWork embodied by a specified resource.
+ *
+ *
+ * @var string|Number|null
+ */
+ protected $version;
/**
* An award won by or for this item.
@@ -231,57 +255,64 @@ public static function fieldList() {
protected $award;
/**
- * The item being described is intended to assess the competency or learning outcome defined by the referenced term.
+ * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
*
*
* @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $assesses;
+ protected $learningResourceType;
/**
- * Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.
+ * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- protected $copyrightNotice;
+ protected $encoding;
/**
- * 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 Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $schemaVersion;
+ protected $recordedAt;
/**
- * The country of origin of something, including products as well as creative works such as movie and TV content.
+ * 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 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 cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information.
*
- * 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.
+ * Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var string
*/
- protected $countryOfOrigin;
+ protected $encodingFormat;
/**
- * 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.
+ * 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\DefinedTerm|string
+ * @var string
*/
- protected $pattern;
+ protected $accessibilitySummary;
/**
- * Specifies the Person that is legally accountable for the CreativeWork.
+ * Specifies the Person who edited the CreativeWork.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $accountablePerson;
+ protected $editor;
+
+ /**
+ * The party holding the legal copyright to the CreativeWork.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $copyrightHolder;
/**
* A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
@@ -292,166 +323,228 @@ public static function fieldList() {
protected $funding;
/**
- * The purpose of a work in the context of education; for example, 'assignment', 'group work'.
+ * The position of an item in a series or sequence of items.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|int|null
*/
- protected $educationalUse;
+ protected $position;
+
+ /**
+ * The subject matter of the content.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ protected $about;
+
+ /**
+ * A secondary title of the CreativeWork.
+ *
+ *
+ * @var string
+ */
+ protected $alternativeHeadline;
+
+ /**
+ * 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 int|null
+ */
+ protected $commentCount;
+
+ /**
+ * 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;
+
+ /**
+ * 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;
+
+ /**
+ * Indicates whether this content is family friendly.
+ *
+ *
+ * @var bool|null
+ */
+ protected $isFamilyFriendly;
+
+ /**
+ * Comments, typically from users.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Comment|string
+ */
+ protected $comment;
/**
- * Genre of the creative work, broadcast channel or group.
+ * A resource from which this work is derived or from which it is a modification or adaptation.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $genre;
+ protected $isBasedOn;
/**
- * 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.
+ * The Organization on whose behalf the creator was working.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $keywords;
+ protected $sourceOrganization;
/**
- * The position of an item in a series or sequence of items.
+ * 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 string|int|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string
*/
- protected $position;
+ protected $isBasedOnUrl;
/**
- * 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).
+ * Thumbnail image for an image or video.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $accessibilityHazard;
+ protected $thumbnail;
/**
- * A secondary title of the CreativeWork.
+ * An embedded video object.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $alternativeHeadline;
+ protected $video;
/**
- * 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 string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- 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.
- *
+ * Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var string
*/
- protected $offers;
+ protected $creditText;
/**
- * The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.
+ * 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\Place|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $locationCreated;
+ protected $size;
/**
- * A media object that encodes this CreativeWork. This property is a synonym for encoding.
+ * A license document that applies to this content, typically indicated by URL.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $associatedMedia;
+ protected $license;
/**
- * [object Object]
+ * A flag to signal that the item, event, or place is accessible for free.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var bool|null
*/
- protected $materialExtent;
+ protected $isAccessibleForFree;
/**
- * Indicates the primary entity described in some page or other CreativeWork.
+ * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $mainEntity;
+ protected $acquireLicensePage;
/**
- * The party holding the legal copyright to the CreativeWork.
+ * A link to the page containing the comments of the CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $copyrightHolder;
+ protected $discussionUrl;
/**
- * Awards won by or for this 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 string
*/
- protected $awards;
+ protected $editEIDR;
/**
- * The location depicted or described in the content. For example, the location in a photograph or painting.
+ * 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\Place|string
*/
- protected $contentLocation;
+ protected $spatialCoverage;
/**
- * Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]
+ * 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 Date|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $sdDatePublished;
+ protected $sdPublisher;
/**
- * The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.).
+ * The date on which the CreativeWork was created or the item was added to a DataFeed.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|DateTime|null
*/
- protected $producer;
+ protected $dateCreated;
/**
- * The "spatial" property can be used in cases when more specific properties
- * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.
+ * A media object that encodes this CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- protected $spatial;
+ protected $encodings;
/**
- * The publisher of the creative work.
+ * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $publisher;
+ protected $citation;
/**
- * The Organization on whose behalf the creator was working.
+ * Approximate or typical time it usually takes to work with or through the content of this work for the typical or target audience.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var DateInterval|string|null
*/
- protected $sourceOrganization;
+ protected $timeRequired;
/**
* Fictional person connected with a creative work.
@@ -462,344 +555,327 @@ public static function fieldList() {
protected $character;
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ * 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 string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $funder;
+ protected $pattern;
/**
- * A creative work that this work is an example/instance/realization/derivation of.
+ * The typical expected age range, e.g. '7-9', '11-'.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string
*/
- protected $exampleOfWork;
+ protected $typicalAgeRange;
/**
- * 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.
+ * 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\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $usageInfo;
+ protected $translator;
/**
- * 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 thumbnail image relevant to the Thing.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $provider;
+ protected $thumbnailUrl;
/**
- * 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.
+ * Indicates an IPTCDigitalSourceEnumeration code indicating the nature of the digital source(s) for some [[CreativeWork]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string
*/
- protected $sdPublisher;
+ protected $digitalSourceType;
/**
- * Comments, typically from users.
+ * The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\Comment|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $comment;
+ protected $producer;
/**
- * 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).
+ * 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 string
*/
- protected $accessibilityFeature;
+ protected $accessibilityControl;
/**
- * A publication event associated with the item.
+ * 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\PublicationEvent|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $publication;
+ protected $author;
/**
- * The work that this work has been translated from. e.g. 物种起源 is a translationOf “On the Origin of Species”
+ * 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\CreativeWork|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $translationOfWork;
+ protected $educationalLevel;
/**
- * The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'.
+ * Genre of the creative work, broadcast channel or group.
*
*
* @var string
*/
- protected $interactivityType;
-
- /**
- * 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 int|null
- */
- protected $commentCount;
+ protected $genre;
/**
- * 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).
+ * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $accessMode;
+ protected $isPartOf;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * 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.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Models\SchemaOrg\WebPage|string
*/
- protected $aggregateRating;
+ protected $archivedAt;
/**
- * Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. 'PT30M', 'PT1H25M'.
+ * The year during which the claimed copyright for the CreativeWork was first asserted.
*
*
- * @var DateInterval|string|null
+ * @var Number|null
*/
- protected $timeRequired;
+ protected $copyrightYear;
/**
- * 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.
+ * Review of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $interactionStatistic;
+ protected $reviews;
/**
- * The year during which the claimed copyright for the CreativeWork was first asserted.
+ * 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 Number|null
+ * @var \OpenActive\Models\SchemaOrg\Claim|string
*/
- protected $copyrightYear;
+ protected $interpretedAsClaim;
/**
- * A resource from which this work is derived or from which it is a modification or adaption.
+ * The publisher of the creative work.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $isBasedOn;
+ protected $publisher;
/**
- * Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook.
+ * A review of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $workExample;
+ protected $review;
/**
- * 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 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 string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $publishingPrinciples;
+ protected $creativeWorkStatus;
/**
- * A link to the page containing the comments of the CreativeWork.
+ * An embedded audio object.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\Clip|string
*/
- protected $discussionUrl;
+ protected $audio;
/**
- * The place and time the release was issued, expressed as a PublicationEvent.
+ * The purpose of a work in the context of education; for example, 'assignment', 'group work'.
*
*
- * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $releasedEvent;
+ protected $educationalUse;
/**
- * The date on which the CreativeWork was created or the item was added to a DataFeed.
+ * 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 Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $dateCreated;
+ protected $countryOfOrigin;
/**
- * 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 predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string
*/
- protected $workTranslation;
+ protected $interactivityType;
/**
- * Specifies the Person who edited the CreativeWork.
+ * 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 $editor;
+ protected $offers;
/**
- * Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.
+ * 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 $creditText;
+ protected $temporalCoverage;
/**
- * The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.
+ * A license document that applies to this structured data, typically indicated by URL.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $recordedAt;
+ protected $sdLicense;
/**
- * 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 publishing division which published the comic.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $editEIDR;
+ protected $publisherImprint;
/**
- * 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 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\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $author;
+ protected $provider;
/**
- * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
+ * Specifies the Person that is legally accountable for the CreativeWork.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $dateModified;
+ protected $accountablePerson;
/**
- * 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 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\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $sponsor;
+ protected $workTranslation;
/**
- * 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."
+ * Official rating of a piece of content—for example, 'MPAA PG-13'.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
*/
- protected $accessibilitySummary;
+ protected $contentRating;
/**
- * 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.
- *
- * Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.
+ * Awards won by or for this item.
*
*
* @var string
*/
- protected $encodingFormat;
+ protected $awards;
/**
- * 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.
- *
+ * The "spatial" property can be used in cases when more specific properties
+ * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $maintainer;
+ protected $spatial;
/**
- * 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.
+ * The item being described is intended to assess the competency or learning outcome defined by the referenced term.
*
*
- * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $educationalAlignment;
+ protected $assesses;
/**
- * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.
+ * The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $acquireLicensePage;
+ protected $translationOfWork;
/**
- * A flag to signal that the item, event, or place is accessible for free.
+ * 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 bool|null
+ * @var string
*/
- protected $isAccessibleForFree;
+ protected $schemaVersion;
/**
- * Date of first broadcast/publication.
+ * The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $datePublished;
+ protected $locationCreated;
/**
- * 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.
+ * 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\Place|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $spatialCoverage;
+ protected $teaches;
/**
- * A license document that applies to this structured data, typically indicated by URL.
+ * Indicates the primary entity described in some page or other CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $sdLicense;
+ protected $mainEntity;
/**
* 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 ".
@@ -810,529 +886,524 @@ public static function fieldList() {
protected $conditionsOfAccess;
/**
- * Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.
+ * A publication event associated with the item.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CorrectionComment
+ * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- protected $correction;
+ protected $publication;
/**
- * Official rating of a piece of content—for example,'MPAA PG-13'.
+ * [object Object]
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Rating
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $contentRating;
+ protected $materialExtent;
/**
- * 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 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $size;
+ protected $usageInfo;
/**
- * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.
+ * 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 string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\ItemList|string
*/
- protected $isPartOf;
+ protected $accessModeSufficient;
/**
- * The "temporal" property can be used in cases where more specific properties
- * (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.
+ * 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 DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $temporal;
+ protected $maintainer;
/**
- * A thumbnail image relevant to the Thing.
+ * 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 string
*/
- protected $thumbnailUrl;
+ protected $accessibilityAPI;
/**
- * 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]].
+ * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $inLanguage;
+ protected $hasPart;
/**
- * A license document that applies to this content, typically indicated by URL.
+ * 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 string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var string
*/
- protected $license;
+ protected $accessibilityFeature;
/**
- * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.
+ * The textual content of this CreativeWork.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $creator;
+ protected $text;
/**
- * Review of the item.
+ * Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var string|\OpenActive\Models\SchemaOrg\CorrectionComment
*/
- protected $reviews;
+ protected $correction;
/**
- * The subject matter of the content.
+ * 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\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $about;
+ protected $sponsor;
/**
- * Indicates whether this content is family friendly.
+ * Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $isFamilyFriendly;
+ protected $workExample;
/**
- * Headline of the article.
+ * An abstract is a short description that summarizes a [[CreativeWork]].
*
*
* @var string
*/
- protected $headline;
+ protected $abstract;
/**
- * 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 overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $accessibilityAPI;
+ protected $aggregateRating;
/**
- * The publishing division which published the comic.
+ * The location depicted or described in the content. For example, the location in a photograph or painting.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $publisherImprint;
+ protected $contentLocation;
/**
- * 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 creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $isBasedOnUrl;
+ protected $creator;
/**
- * A media object that encodes this CreativeWork.
+ * 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\MediaObject|string
+ * @var Date|DateTime|null
*/
- protected $encodings;
+ protected $expires;
/**
- * 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]].
+ * Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]].
*
*
- * @var \OpenActive\Models\SchemaOrg\Claim|string
+ * @var Date|null
*/
- protected $interpretedAsClaim;
+ protected $sdDatePublished;
/**
- * 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).
+ * 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
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- protected $accessibilityControl;
+ protected $inLanguage;
/**
- * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
+ * The place and time the release was issued, expressed as a PublicationEvent.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- protected $citation;
+ protected $releasedEvent;
/**
- * The version of the CreativeWork embodied by a specified resource.
+ * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
*
*
- * @var string|Number|null
+ * @var Date|DateTime|null
*/
- protected $version;
+ protected $dateModified;
/**
- * 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.
+ * 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 \OpenActive\Models\SchemaOrg\WebPage|string
+ * @var string
*/
- protected $archivedAt;
+ protected $accessibilityHazard;
/**
- * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
+ * 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 \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $learningResourceType;
+ protected $accessMode;
/**
- * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $encoding;
+ protected $audience;
/**
- * An embedded audio object.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string
+ * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
*/
- protected $audio;
+ public function getInteractionStatistic()
+ {
+ return $this->interactionStatistic;
+ }
/**
- * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $mentions;
+ public function setInteractionStatistic($interactionStatistic)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\InteractionCounter",
+ "string",
+ ];
- /**
- * 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
- */
- protected $accessModeSufficient;
+ $interactionStatistic = self::checkTypes($interactionStatistic, $types);
- /**
- * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).
- *
- *
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
- */
- protected $hasPart;
+ $this->interactionStatistic = $interactionStatistic;
+ }
/**
- * 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
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $temporalCoverage;
+ public function getContributor()
+ {
+ return $this->contributor;
+ }
/**
- * A secondary contributor to the CreativeWork or Event.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- protected $contributor;
+ public function setContributor($contributor)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
+ ];
- /**
- * An embedded video object.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
- */
- protected $video;
+ $contributor = self::checkTypes($contributor, $types);
+
+ $this->contributor = $contributor;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getTeaches()
+ public function getPublishingPrinciples()
{
- return $this->teaches;
+ return $this->publishingPrinciples;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTeaches($teaches)
+ public function setPublishingPrinciples($publishingPrinciples)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $teaches = self::checkTypes($teaches, $types);
+ $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
- $this->teaches = $teaches;
+ $this->publishingPrinciples = $publishingPrinciples;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getEducationalLevel()
+ public function getExampleOfWork()
{
- return $this->educationalLevel;
+ return $this->exampleOfWork;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @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 setEducationalLevel($educationalLevel)
+ public function setExampleOfWork($exampleOfWork)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $educationalLevel = self::checkTypes($educationalLevel, $types);
+ $exampleOfWork = self::checkTypes($exampleOfWork, $types);
- $this->educationalLevel = $educationalLevel;
+ $this->exampleOfWork = $exampleOfWork;
}
/**
- * @return string
+ * @return DateTime|null
*/
- public function getAbstract()
+ public function getContentReferenceTime()
{
- return $this->abstract;
+ return $this->contentReferenceTime;
}
/**
- * @param string $abstract
+ * @param DateTime|null $contentReferenceTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAbstract($abstract)
+ public function setContentReferenceTime($contentReferenceTime)
{
$types = [
- "string",
+ "DateTime",
+ "null",
];
- $abstract = self::checkTypes($abstract, $types);
+ $contentReferenceTime = self::checkTypes($contentReferenceTime, $types);
- $this->abstract = $abstract;
+ $this->contentReferenceTime = $contentReferenceTime;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return string
*/
- public function getCreativeWorkStatus()
+ public function getFileFormat()
{
- return $this->creativeWorkStatus;
+ return $this->fileFormat;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $creativeWorkStatus
+ * @param string $fileFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreativeWorkStatus($creativeWorkStatus)
+ public function setFileFormat($fileFormat)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types);
+ $fileFormat = self::checkTypes($fileFormat, $types);
- $this->creativeWorkStatus = $creativeWorkStatus;
+ $this->fileFormat = $fileFormat;
}
/**
- * @return Date|null
+ * @return string
*/
- public function getExpires()
+ public function getCopyrightNotice()
{
- return $this->expires;
+ return $this->copyrightNotice;
}
/**
- * @param Date|null $expires
+ * @param string $copyrightNotice
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpires($expires)
+ public function setCopyrightNotice($copyrightNotice)
{
$types = [
- "Date",
- "null",
+ "string",
];
- $expires = self::checkTypes($expires, $types);
+ $copyrightNotice = self::checkTypes($copyrightNotice, $types);
- $this->expires = $expires;
+ $this->copyrightNotice = $copyrightNotice;
}
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
*/
- public function getContentReferenceTime()
+ public function getEducationalAlignment()
{
- return $this->contentReferenceTime;
+ return $this->educationalAlignment;
}
/**
- * @param DateTime|null $contentReferenceTime
+ * @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 setContentReferenceTime($contentReferenceTime)
+ public function setEducationalAlignment($educationalAlignment)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
+ "string",
];
- $contentReferenceTime = self::checkTypes($contentReferenceTime, $types);
+ $educationalAlignment = self::checkTypes($educationalAlignment, $types);
- $this->contentReferenceTime = $contentReferenceTime;
+ $this->educationalAlignment = $educationalAlignment;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Product
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getMaterial()
+ public function getMentions()
{
- return $this->material;
+ return $this->mentions;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Product $material
+ * @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 setMaterial($material)
+ public function setMentions($mentions)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $material = self::checkTypes($material, $types);
+ $mentions = self::checkTypes($mentions, $types);
- $this->material = $material;
+ $this->mentions = $mentions;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return DateTime|string|null
*/
- public function getReview()
+ public function getTemporal()
{
- return $this->review;
+ return $this->temporal;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param DateTime|string|null $temporal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setTemporal($temporal)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "DateTime",
"string",
+ "null",
];
- $review = self::checkTypes($review, $types);
+ $temporal = self::checkTypes($temporal, $types);
- $this->review = $review;
+ $this->temporal = $temporal;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\Product
*/
- public function getFileFormat()
+ public function getMaterial()
{
- return $this->fileFormat;
+ return $this->material;
}
/**
- * @param string $fileFormat
+ * @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 setFileFormat($fileFormat)
+ public function setMaterial($material)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\Product",
];
- $fileFormat = self::checkTypes($fileFormat, $types);
+ $material = self::checkTypes($material, $types);
- $this->fileFormat = $fileFormat;
+ $this->material = $material;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getText()
+ public function getAssociatedMedia()
{
- return $this->text;
+ return $this->associatedMedia;
}
/**
- * @param string $text
+ * @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 setText($text)
+ public function setAssociatedMedia($associatedMedia)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $text = self::checkTypes($text, $types);
+ $associatedMedia = self::checkTypes($associatedMedia, $types);
- $this->text = $text;
+ $this->associatedMedia = $associatedMedia;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string|Number|null
*/
- public function getTranslator()
+ public function getVersion()
{
- return $this->translator;
+ return $this->version;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator
+ * @param string|Number|null $version
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranslator($translator)
+ public function setVersion($version)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
+ "Number",
+ "null",
];
- $translator = self::checkTypes($translator, $types);
+ $version = self::checkTypes($version, $types);
- $this->translator = $translator;
+ $this->version = $version;
}
/**
@@ -1362,149 +1433,175 @@ public function setAward($award)
/**
* @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getAssesses()
+ public function getLearningResourceType()
{
- return $this->assesses;
+ return $this->learningResourceType;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $learningResourceType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssesses($assesses)
+ public function setLearningResourceType($learningResourceType)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ ];
+
+ $learningResourceType = self::checkTypes($learningResourceType, $types);
+
+ $this->learningResourceType = $learningResourceType;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ */
+ public function getEncoding()
+ {
+ return $this->encoding;
+ }
+
+ /**
+ * @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 setEncoding($encoding)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $assesses = self::checkTypes($assesses, $types);
+ $encoding = self::checkTypes($encoding, $types);
- $this->assesses = $assesses;
+ $this->encoding = $encoding;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getCopyrightNotice()
+ public function getRecordedAt()
{
- return $this->copyrightNotice;
+ return $this->recordedAt;
}
/**
- * @param string $copyrightNotice
+ * @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 setCopyrightNotice($copyrightNotice)
+ public function setRecordedAt($recordedAt)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $copyrightNotice = self::checkTypes($copyrightNotice, $types);
+ $recordedAt = self::checkTypes($recordedAt, $types);
- $this->copyrightNotice = $copyrightNotice;
+ $this->recordedAt = $recordedAt;
}
/**
* @return string
*/
- public function getSchemaVersion()
+ public function getEncodingFormat()
{
- return $this->schemaVersion;
+ return $this->encodingFormat;
}
/**
- * @param string $schemaVersion
+ * @param string $encodingFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSchemaVersion($schemaVersion)
+ public function setEncodingFormat($encodingFormat)
{
$types = [
"string",
];
- $schemaVersion = self::checkTypes($schemaVersion, $types);
+ $encodingFormat = self::checkTypes($encodingFormat, $types);
- $this->schemaVersion = $schemaVersion;
+ $this->encodingFormat = $encodingFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return string
*/
- public function getCountryOfOrigin()
+ public function getAccessibilitySummary()
{
- return $this->countryOfOrigin;
+ return $this->accessibilitySummary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
+ * @param string $accessibilitySummary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCountryOfOrigin($countryOfOrigin)
+ public function setAccessibilitySummary($accessibilitySummary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
+ $accessibilitySummary = self::checkTypes($accessibilitySummary, $types);
- $this->countryOfOrigin = $countryOfOrigin;
+ $this->accessibilitySummary = $accessibilitySummary;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPattern()
+ public function getEditor()
{
- return $this->pattern;
+ return $this->editor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern
+ * @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 setPattern($pattern)
+ public function setEditor($editor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $pattern = self::checkTypes($pattern, $types);
+ $editor = self::checkTypes($editor, $types);
- $this->pattern = $pattern;
+ $this->editor = $editor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAccountablePerson()
+ public function getCopyrightHolder()
{
- return $this->accountablePerson;
+ return $this->copyrightHolder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $accountablePerson
+ * @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 setAccountablePerson($accountablePerson)
+ public function setCopyrightHolder($copyrightHolder)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $accountablePerson = self::checkTypes($accountablePerson, $types);
+ $copyrightHolder = self::checkTypes($copyrightHolder, $types);
- $this->accountablePerson = $accountablePerson;
+ $this->copyrightHolder = $copyrightHolder;
}
/**
@@ -1533,2337 +1630,2309 @@ public function setFunding($funding)
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|int|null
*/
- public function getEducationalUse()
+ public function getPosition()
{
- return $this->educationalUse;
+ return $this->position;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse
+ * @param string|int|null $position
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalUse($educationalUse)
+ public function setPosition($position)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "int",
+ "null",
];
- $educationalUse = self::checkTypes($educationalUse, $types);
+ $position = self::checkTypes($position, $types);
- $this->educationalUse = $educationalUse;
+ $this->position = $position;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getGenre()
+ public function getAbout()
{
- return $this->genre;
+ return $this->about;
}
/**
- * @param string $genre
+ * @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 setGenre($genre)
+ public function setAbout($about)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $genre = self::checkTypes($genre, $types);
+ $about = self::checkTypes($about, $types);
- $this->genre = $genre;
+ $this->about = $about;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getKeywords()
+ public function getAlternativeHeadline()
{
- return $this->keywords;
+ return $this->alternativeHeadline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords
+ * @param string $alternativeHeadline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setKeywords($keywords)
+ public function setAlternativeHeadline($alternativeHeadline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $keywords = self::checkTypes($keywords, $types);
+ $alternativeHeadline = self::checkTypes($alternativeHeadline, $types);
- $this->keywords = $keywords;
+ $this->alternativeHeadline = $alternativeHeadline;
}
/**
- * @return string|int|null
+ * @return int|null
*/
- public function getPosition()
+ public function getCommentCount()
{
- return $this->position;
+ return $this->commentCount;
}
/**
- * @param string|int|null $position
+ * @param int|null $commentCount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPosition($position)
+ public function setCommentCount($commentCount)
{
$types = [
- "string",
"int",
"null",
];
- $position = self::checkTypes($position, $types);
-
- $this->position = $position;
- }
-
- /**
- * @return string
- */
- public function getAccessibilityHazard()
- {
- return $this->accessibilityHazard;
- }
-
- /**
- * @param string $accessibilityHazard
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setAccessibilityHazard($accessibilityHazard)
- {
- $types = [
- "string",
- ];
-
- $accessibilityHazard = self::checkTypes($accessibilityHazard, $types);
+ $commentCount = self::checkTypes($commentCount, $types);
- $this->accessibilityHazard = $accessibilityHazard;
+ $this->commentCount = $commentCount;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAlternativeHeadline()
+ public function getFunder()
{
- return $this->alternativeHeadline;
+ return $this->funder;
}
/**
- * @param string $alternativeHeadline
+ * @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 setAlternativeHeadline($alternativeHeadline)
+ public function setFunder($funder)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $alternativeHeadline = self::checkTypes($alternativeHeadline, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->alternativeHeadline = $alternativeHeadline;
+ $this->funder = $funder;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return Date|DateTime|null
*/
- public function getAudience()
+ public function getDatePublished()
{
- return $this->audience;
+ return $this->datePublished;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @param Date|DateTime|null $datePublished
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudience($audience)
+ public function setDatePublished($datePublished)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $audience = self::checkTypes($audience, $types);
+ $datePublished = self::checkTypes($datePublished, $types);
- $this->audience = $audience;
+ $this->datePublished = $datePublished;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return bool|null
*/
- public function getOffers()
+ public function getIsFamilyFriendly()
{
- return $this->offers;
+ return $this->isFamilyFriendly;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param bool|null $isFamilyFriendly
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setIsFamilyFriendly($isFamilyFriendly)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
- "string",
+ "bool",
+ "null",
];
- $offers = self::checkTypes($offers, $types);
+ $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
- $this->offers = $offers;
+ $this->isFamilyFriendly = $isFamilyFriendly;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Comment|string
*/
- public function getLocationCreated()
+ public function getComment()
{
- return $this->locationCreated;
+ return $this->comment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $locationCreated
+ * @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 setLocationCreated($locationCreated)
+ public function setComment($comment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Comment",
"string",
];
- $locationCreated = self::checkTypes($locationCreated, $types);
+ $comment = self::checkTypes($comment, $types);
- $this->locationCreated = $locationCreated;
+ $this->comment = $comment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getAssociatedMedia()
+ public function getIsBasedOn()
{
- return $this->associatedMedia;
+ return $this->isBasedOn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia
+ * @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 setAssociatedMedia($associatedMedia)
+ public function setIsBasedOn($isBasedOn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $associatedMedia = self::checkTypes($associatedMedia, $types);
+ $isBasedOn = self::checkTypes($isBasedOn, $types);
- $this->associatedMedia = $associatedMedia;
+ $this->isBasedOn = $isBasedOn;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getMaterialExtent()
+ public function getSourceOrganization()
{
- return $this->materialExtent;
+ return $this->sourceOrganization;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $materialExtent
+ * @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 setMaterialExtent($materialExtent)
+ public function setSourceOrganization($sourceOrganization)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $materialExtent = self::checkTypes($materialExtent, $types);
+ $sourceOrganization = self::checkTypes($sourceOrganization, $types);
- $this->materialExtent = $materialExtent;
+ $this->sourceOrganization = $sourceOrganization;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string
*/
- public function getMainEntity()
+ public function getIsBasedOnUrl()
{
- return $this->mainEntity;
+ return $this->isBasedOnUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $mainEntity
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string $isBasedOnUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMainEntity($mainEntity)
+ public function setIsBasedOnUrl($isBasedOnUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
- $mainEntity = self::checkTypes($mainEntity, $types);
+ $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types);
- $this->mainEntity = $mainEntity;
+ $this->isBasedOnUrl = $isBasedOnUrl;
}
/**
- * @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
+ * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getAwards()
+ public function getVideo()
{
- return $this->awards;
+ return $this->video;
}
/**
- * @param string $awards
+ * @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 setAwards($awards)
+ public function setVideo($video)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Clip",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $awards = self::checkTypes($awards, $types);
+ $video = self::checkTypes($video, $types);
- $this->awards = $awards;
+ $this->video = $video;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getContentLocation()
+ public function getKeywords()
{
- return $this->contentLocation;
+ return $this->keywords;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $contentLocation
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $keywords
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentLocation($contentLocation)
+ public function setKeywords($keywords)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $contentLocation = self::checkTypes($contentLocation, $types);
+ $keywords = self::checkTypes($keywords, $types);
- $this->contentLocation = $contentLocation;
+ $this->keywords = $keywords;
}
/**
- * @return Date|null
+ * @return string
*/
- public function getSdDatePublished()
+ public function getCreditText()
{
- return $this->sdDatePublished;
+ return $this->creditText;
}
/**
- * @param Date|null $sdDatePublished
+ * @param string $creditText
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSdDatePublished($sdDatePublished)
+ public function setCreditText($creditText)
{
$types = [
- "Date",
- "null",
+ "string",
];
- $sdDatePublished = self::checkTypes($sdDatePublished, $types);
+ $creditText = self::checkTypes($creditText, $types);
- $this->sdDatePublished = $sdDatePublished;
+ $this->creditText = $creditText;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getProducer()
+ public function getSize()
{
- return $this->producer;
+ return $this->size;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $producer
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\DefinedTerm $size
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProducer($producer)
+ public function setSize($size)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\SizeSpecification",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $producer = self::checkTypes($producer, $types);
+ $size = self::checkTypes($size, $types);
- $this->producer = $producer;
+ $this->size = $size;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getSpatial()
+ public function getLicense()
{
- return $this->spatial;
+ return $this->license;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $spatial
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $license
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSpatial($spatial)
+ public function setLicense($license)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $spatial = self::checkTypes($spatial, $types);
+ $license = self::checkTypes($license, $types);
- $this->spatial = $spatial;
+ $this->license = $license;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return bool|null
*/
- public function getPublisher()
+ public function getIsAccessibleForFree()
{
- return $this->publisher;
+ return $this->isAccessibleForFree;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $publisher
+ * @param bool|null $isAccessibleForFree
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublisher($publisher)
+ public function setIsAccessibleForFree($isAccessibleForFree)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "bool",
+ "null",
];
- $publisher = self::checkTypes($publisher, $types);
+ $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
- $this->publisher = $publisher;
+ $this->isAccessibleForFree = $isAccessibleForFree;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getSourceOrganization()
+ public function getAcquireLicensePage()
{
- return $this->sourceOrganization;
+ return $this->acquireLicensePage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $sourceOrganization
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $acquireLicensePage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSourceOrganization($sourceOrganization)
+ public function setAcquireLicensePage($acquireLicensePage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $sourceOrganization = self::checkTypes($sourceOrganization, $types);
+ $acquireLicensePage = self::checkTypes($acquireLicensePage, $types);
- $this->sourceOrganization = $sourceOrganization;
+ $this->acquireLicensePage = $acquireLicensePage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getCharacter()
+ public function getDiscussionUrl()
{
- return $this->character;
+ return $this->discussionUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $character
+ * @param string $discussionUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCharacter($character)
+ public function setDiscussionUrl($discussionUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $character = self::checkTypes($character, $types);
+ $discussionUrl = self::checkTypes($discussionUrl, $types);
- $this->character = $character;
+ $this->discussionUrl = $discussionUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getFunder()
+ public function getEditEIDR()
{
- return $this->funder;
+ return $this->editEIDR;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @param string $editEIDR
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFunder($funder)
+ public function setEditEIDR($editEIDR)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $funder = self::checkTypes($funder, $types);
+ $editEIDR = self::checkTypes($editEIDR, $types);
- $this->funder = $funder;
+ $this->editEIDR = $editEIDR;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getExampleOfWork()
+ public function getSpatialCoverage()
{
- return $this->exampleOfWork;
+ return $this->spatialCoverage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $exampleOfWork
+ * @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 setExampleOfWork($exampleOfWork)
+ public function setSpatialCoverage($spatialCoverage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $exampleOfWork = self::checkTypes($exampleOfWork, $types);
+ $spatialCoverage = self::checkTypes($spatialCoverage, $types);
- $this->exampleOfWork = $exampleOfWork;
+ $this->spatialCoverage = $spatialCoverage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getUsageInfo()
+ public function getSdPublisher()
{
- return $this->usageInfo;
+ return $this->sdPublisher;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $usageInfo
+ * @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.
*/
- public function setUsageInfo($usageInfo)
+ public function setSdPublisher($sdPublisher)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $usageInfo = self::checkTypes($usageInfo, $types);
+ $sdPublisher = self::checkTypes($sdPublisher, $types);
- $this->usageInfo = $usageInfo;
+ $this->sdPublisher = $sdPublisher;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return Date|DateTime|null
*/
- public function getProvider()
+ public function getDateCreated()
{
- return $this->provider;
+ return $this->dateCreated;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param Date|DateTime|null $dateCreated
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setDateCreated($dateCreated)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $provider = self::checkTypes($provider, $types);
+ $dateCreated = self::checkTypes($dateCreated, $types);
- $this->provider = $provider;
+ $this->dateCreated = $dateCreated;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getSdPublisher()
+ public function getEncodings()
{
- return $this->sdPublisher;
+ return $this->encodings;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sdPublisher
+ * @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 setSdPublisher($sdPublisher)
+ public function setEncodings($encodings)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $sdPublisher = self::checkTypes($sdPublisher, $types);
+ $encodings = self::checkTypes($encodings, $types);
- $this->sdPublisher = $sdPublisher;
+ $this->encodings = $encodings;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Comment|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getComment()
+ public function getCitation()
{
- return $this->comment;
+ return $this->citation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Comment|string $comment
+ * @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 setComment($comment)
+ public function setCitation($citation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Comment",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $comment = self::checkTypes($comment, $types);
+ $citation = self::checkTypes($citation, $types);
- $this->comment = $comment;
+ $this->citation = $citation;
}
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getAccessibilityFeature()
+ public function getTimeRequired()
{
- return $this->accessibilityFeature;
+ return $this->timeRequired;
}
/**
- * @param string $accessibilityFeature
+ * @param DateInterval|string|null $timeRequired
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessibilityFeature($accessibilityFeature)
+ public function setTimeRequired($timeRequired)
{
$types = [
+ "DateInterval",
"string",
+ "null",
];
- $accessibilityFeature = self::checkTypes($accessibilityFeature, $types);
+ $timeRequired = self::checkTypes($timeRequired, $types);
- $this->accessibilityFeature = $accessibilityFeature;
+ $this->timeRequired = $timeRequired;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getPublication()
+ public function getCharacter()
{
- return $this->publication;
+ return $this->character;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $publication
+ * @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 setPublication($publication)
+ public function setCharacter($character)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PublicationEvent",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $publication = self::checkTypes($publication, $types);
+ $character = self::checkTypes($character, $types);
- $this->publication = $publication;
+ $this->character = $character;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getTranslationOfWork()
+ public function getPattern()
{
- return $this->translationOfWork;
+ return $this->pattern;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $translationOfWork
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $pattern
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranslationOfWork($translationOfWork)
+ public function setPattern($pattern)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $translationOfWork = self::checkTypes($translationOfWork, $types);
+ $pattern = self::checkTypes($pattern, $types);
- $this->translationOfWork = $translationOfWork;
+ $this->pattern = $pattern;
}
/**
* @return string
*/
- public function getInteractivityType()
+ public function getTypicalAgeRange()
{
- return $this->interactivityType;
+ return $this->typicalAgeRange;
}
/**
- * @param string $interactivityType
+ * @param string $typicalAgeRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractivityType($interactivityType)
+ public function setTypicalAgeRange($typicalAgeRange)
{
$types = [
"string",
];
- $interactivityType = self::checkTypes($interactivityType, $types);
+ $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
- $this->interactivityType = $interactivityType;
+ $this->typicalAgeRange = $typicalAgeRange;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getCommentCount()
+ public function getTranslator()
{
- return $this->commentCount;
+ return $this->translator;
}
/**
- * @param int|null $commentCount
+ * @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 setCommentCount($commentCount)
+ public function setTranslator($translator)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $commentCount = self::checkTypes($commentCount, $types);
+ $translator = self::checkTypes($translator, $types);
- $this->commentCount = $commentCount;
+ $this->translator = $translator;
}
/**
* @return string
*/
- public function getAccessMode()
+ public function getThumbnailUrl()
{
- return $this->accessMode;
+ return $this->thumbnailUrl;
}
/**
- * @param string $accessMode
+ * @param string $thumbnailUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessMode($accessMode)
+ public function setThumbnailUrl($thumbnailUrl)
{
$types = [
"string",
];
- $accessMode = self::checkTypes($accessMode, $types);
+ $thumbnailUrl = self::checkTypes($thumbnailUrl, $types);
- $this->accessMode = $accessMode;
+ $this->thumbnailUrl = $thumbnailUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string
*/
- public function getAggregateRating()
+ public function getDigitalSourceType()
{
- return $this->aggregateRating;
+ return $this->digitalSourceType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @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 setAggregateRating($aggregateRating)
+ public function setDigitalSourceType($digitalSourceType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
+ "\OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration",
"string",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $digitalSourceType = self::checkTypes($digitalSourceType, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->digitalSourceType = $digitalSourceType;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTimeRequired()
+ public function getProducer()
{
- return $this->timeRequired;
+ return $this->producer;
}
/**
- * @param DateInterval|string|null $timeRequired
+ * @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 setTimeRequired($timeRequired)
+ public function setProducer($producer)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "null",
];
- $timeRequired = self::checkTypes($timeRequired, $types);
+ $producer = self::checkTypes($producer, $types);
- $this->timeRequired = $timeRequired;
+ $this->producer = $producer;
}
/**
* @return string
*/
- public function getTypicalAgeRange()
+ public function getAccessibilityControl()
{
- return $this->typicalAgeRange;
+ return $this->accessibilityControl;
}
/**
- * @param string $typicalAgeRange
+ * @param string $accessibilityControl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypicalAgeRange($typicalAgeRange)
+ public function setAccessibilityControl($accessibilityControl)
{
$types = [
"string",
];
- $typicalAgeRange = self::checkTypes($typicalAgeRange, $types);
+ $accessibilityControl = self::checkTypes($accessibilityControl, $types);
- $this->typicalAgeRange = $typicalAgeRange;
+ $this->accessibilityControl = $accessibilityControl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getInteractionStatistic()
+ public function getAuthor()
{
- return $this->interactionStatistic;
+ return $this->author;
}
/**
- * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic
+ * @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 setInteractionStatistic($interactionStatistic)
+ public function setAuthor($author)
{
$types = [
- "\OpenActive\Models\SchemaOrg\InteractionCounter",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $interactionStatistic = self::checkTypes($interactionStatistic, $types);
+ $author = self::checkTypes($author, $types);
- $this->interactionStatistic = $interactionStatistic;
+ $this->author = $author;
}
/**
- * @return Number|null
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getCopyrightYear()
+ public function getEducationalLevel()
{
- return $this->copyrightYear;
+ return $this->educationalLevel;
}
/**
- * @param Number|null $copyrightYear
+ * @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 setCopyrightYear($copyrightYear)
+ public function setEducationalLevel($educationalLevel)
{
$types = [
- "Number",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $copyrightYear = self::checkTypes($copyrightYear, $types);
+ $educationalLevel = self::checkTypes($educationalLevel, $types);
- $this->copyrightYear = $copyrightYear;
+ $this->educationalLevel = $educationalLevel;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product
+ * @return string
*/
- public function getIsBasedOn()
+ public function getGenre()
{
- return $this->isBasedOn;
+ return $this->genre;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product $isBasedOn
+ * @param string $genre
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsBasedOn($isBasedOn)
+ public function setGenre($genre)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $isBasedOn = self::checkTypes($isBasedOn, $types);
+ $genre = self::checkTypes($genre, $types);
- $this->isBasedOn = $isBasedOn;
+ $this->genre = $genre;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getWorkExample()
+ public function getIsPartOf()
{
- return $this->workExample;
+ return $this->isPartOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workExample
+ * @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 setWorkExample($workExample)
+ public function setIsPartOf($isPartOf)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $workExample = self::checkTypes($workExample, $types);
+ $isPartOf = self::checkTypes($isPartOf, $types);
- $this->workExample = $workExample;
+ $this->isPartOf = $isPartOf;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\WebPage|string
*/
- public function getPublishingPrinciples()
+ public function getArchivedAt()
{
- return $this->publishingPrinciples;
+ return $this->archivedAt;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples
+ * @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 setPublishingPrinciples($publishingPrinciples)
+ public function setArchivedAt($archivedAt)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\WebPage",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $publishingPrinciples = self::checkTypes($publishingPrinciples, $types);
+ $archivedAt = self::checkTypes($archivedAt, $types);
- $this->publishingPrinciples = $publishingPrinciples;
+ $this->archivedAt = $archivedAt;
}
/**
- * @return string
+ * @return Number|null
*/
- public function getDiscussionUrl()
+ public function getCopyrightYear()
{
- return $this->discussionUrl;
+ return $this->copyrightYear;
}
/**
- * @param string $discussionUrl
+ * @param Number|null $copyrightYear
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiscussionUrl($discussionUrl)
+ public function setCopyrightYear($copyrightYear)
{
$types = [
- "string",
+ "Number",
+ "null",
];
- $discussionUrl = self::checkTypes($discussionUrl, $types);
+ $copyrightYear = self::checkTypes($copyrightYear, $types);
- $this->discussionUrl = $discussionUrl;
+ $this->copyrightYear = $copyrightYear;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
+ * @return string
*/
- public function getReleasedEvent()
+ public function getHeadline()
{
- return $this->releasedEvent;
+ return $this->headline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $releasedEvent
+ * @param string $headline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReleasedEvent($releasedEvent)
+ public function setHeadline($headline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PublicationEvent",
"string",
];
- $releasedEvent = self::checkTypes($releasedEvent, $types);
+ $headline = self::checkTypes($headline, $types);
- $this->releasedEvent = $releasedEvent;
+ $this->headline = $headline;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getDateCreated()
+ public function getReviews()
{
- return $this->dateCreated;
+ return $this->reviews;
}
/**
- * @param Date|DateTime|null $dateCreated
+ * @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 setDateCreated($dateCreated)
+ public function setReviews($reviews)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Review",
+ "string",
];
- $dateCreated = self::checkTypes($dateCreated, $types);
+ $reviews = self::checkTypes($reviews, $types);
- $this->dateCreated = $dateCreated;
+ $this->reviews = $reviews;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Claim|string
*/
- public function getWorkTranslation()
+ public function getInterpretedAsClaim()
{
- return $this->workTranslation;
+ return $this->interpretedAsClaim;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workTranslation
+ * @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 setWorkTranslation($workTranslation)
+ public function setInterpretedAsClaim($interpretedAsClaim)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Claim",
"string",
];
- $workTranslation = self::checkTypes($workTranslation, $types);
+ $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
- $this->workTranslation = $workTranslation;
+ $this->interpretedAsClaim = $interpretedAsClaim;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEditor()
+ public function getPublisher()
{
- return $this->editor;
+ return $this->publisher;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $editor
+ * @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 setEditor($editor)
+ public function setPublisher($publisher)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $editor = self::checkTypes($editor, $types);
+ $publisher = self::checkTypes($publisher, $types);
- $this->editor = $editor;
+ $this->publisher = $publisher;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getCreditText()
+ public function getReview()
{
- return $this->creditText;
+ return $this->review;
}
/**
- * @param string $creditText
+ * @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 setCreditText($creditText)
+ public function setReview($review)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $creditText = self::checkTypes($creditText, $types);
+ $review = self::checkTypes($review, $types);
- $this->creditText = $creditText;
+ $this->review = $review;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getRecordedAt()
+ public function getCreativeWorkStatus()
{
- return $this->recordedAt;
+ return $this->creativeWorkStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $recordedAt
+ * @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 setRecordedAt($recordedAt)
+ public function setCreativeWorkStatus($creativeWorkStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $recordedAt = self::checkTypes($recordedAt, $types);
+ $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types);
- $this->recordedAt = $recordedAt;
+ $this->creativeWorkStatus = $creativeWorkStatus;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\Clip|string
*/
- public function getEditEIDR()
+ public function getAudio()
{
- return $this->editEIDR;
+ return $this->audio;
}
/**
- * @param string $editEIDR
+ * @param \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\Clip|string $audio
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEditEIDR($editEIDR)
+ public function setAudio($audio)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "\OpenActive\Models\SchemaOrg\AudioObject",
+ "\OpenActive\Models\SchemaOrg\Clip",
"string",
];
- $editEIDR = self::checkTypes($editEIDR, $types);
+ $audio = self::checkTypes($audio, $types);
- $this->editEIDR = $editEIDR;
+ $this->audio = $audio;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getAuthor()
+ public function getEducationalUse()
{
- return $this->author;
+ return $this->educationalUse;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $author
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalUse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAuthor($author)
+ public function setEducationalUse($educationalUse)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $author = self::checkTypes($author, $types);
+ $educationalUse = self::checkTypes($educationalUse, $types);
- $this->author = $author;
+ $this->educationalUse = $educationalUse;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getDateModified()
+ public function getCountryOfOrigin()
{
- return $this->dateModified;
+ return $this->countryOfOrigin;
}
/**
- * @param Date|DateTime|null $dateModified
+ * @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 setDateModified($dateModified)
+ public function setCountryOfOrigin($countryOfOrigin)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Country",
+ "string",
];
- $dateModified = self::checkTypes($dateModified, $types);
+ $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
- $this->dateModified = $dateModified;
+ $this->countryOfOrigin = $countryOfOrigin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getSponsor()
+ public function getInteractivityType()
{
- return $this->sponsor;
+ return $this->interactivityType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @param string $interactivityType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSponsor($sponsor)
+ public function setInteractivityType($interactivityType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $interactivityType = self::checkTypes($interactivityType, $types);
- $this->sponsor = $sponsor;
+ $this->interactivityType = $interactivityType;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getAccessibilitySummary()
+ public function getOffers()
{
- return $this->accessibilitySummary;
+ return $this->offers;
}
/**
- * @param string $accessibilitySummary
+ * @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 setAccessibilitySummary($accessibilitySummary)
+ public function setOffers($offers)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Demand",
"string",
];
- $accessibilitySummary = self::checkTypes($accessibilitySummary, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->accessibilitySummary = $accessibilitySummary;
+ $this->offers = $offers;
}
/**
- * @return string
+ * @return DateTime|string|null
*/
- public function getEncodingFormat()
+ public function getTemporalCoverage()
{
- return $this->encodingFormat;
+ return $this->temporalCoverage;
}
/**
- * @param string $encodingFormat
+ * @param DateTime|string|null $temporalCoverage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodingFormat($encodingFormat)
+ public function setTemporalCoverage($temporalCoverage)
{
$types = [
+ "DateTime",
"string",
+ "null",
];
- $encodingFormat = self::checkTypes($encodingFormat, $types);
+ $temporalCoverage = self::checkTypes($temporalCoverage, $types);
- $this->encodingFormat = $encodingFormat;
+ $this->temporalCoverage = $temporalCoverage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getMaintainer()
+ public function getSdLicense()
{
- return $this->maintainer;
+ return $this->sdLicense;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $maintainer
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $sdLicense
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaintainer($maintainer)
+ public function setSdLicense($sdLicense)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $maintainer = self::checkTypes($maintainer, $types);
+ $sdLicense = self::checkTypes($sdLicense, $types);
- $this->maintainer = $maintainer;
+ $this->sdLicense = $sdLicense;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEducationalAlignment()
+ public function getPublisherImprint()
{
- return $this->educationalAlignment;
+ return $this->publisherImprint;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment
+ * @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 setEducationalAlignment($educationalAlignment)
+ public function setPublisherImprint($publisherImprint)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AlignmentObject",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $educationalAlignment = self::checkTypes($educationalAlignment, $types);
+ $publisherImprint = self::checkTypes($publisherImprint, $types);
- $this->educationalAlignment = $educationalAlignment;
+ $this->publisherImprint = $publisherImprint;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getAcquireLicensePage()
+ public function getProvider()
{
- return $this->acquireLicensePage;
+ return $this->provider;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $acquireLicensePage
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAcquireLicensePage($acquireLicensePage)
+ public function setProvider($provider)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $acquireLicensePage = self::checkTypes($acquireLicensePage, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->acquireLicensePage = $acquireLicensePage;
+ $this->provider = $provider;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getIsAccessibleForFree()
+ public function getAccountablePerson()
{
- return $this->isAccessibleForFree;
+ return $this->accountablePerson;
}
/**
- * @param bool|null $isAccessibleForFree
+ * @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 setIsAccessibleForFree($isAccessibleForFree)
+ public function setAccountablePerson($accountablePerson)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
+ $accountablePerson = self::checkTypes($accountablePerson, $types);
- $this->isAccessibleForFree = $isAccessibleForFree;
+ $this->accountablePerson = $accountablePerson;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDatePublished()
+ public function getWorkTranslation()
{
- return $this->datePublished;
+ return $this->workTranslation;
}
/**
- * @param Date|DateTime|null $datePublished
+ * @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 setDatePublished($datePublished)
+ public function setWorkTranslation($workTranslation)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $datePublished = self::checkTypes($datePublished, $types);
+ $workTranslation = self::checkTypes($workTranslation, $types);
- $this->datePublished = $datePublished;
+ $this->workTranslation = $workTranslation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
*/
- public function getSpatialCoverage()
+ public function getContentRating()
{
- return $this->spatialCoverage;
+ return $this->contentRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $spatialCoverage
+ * @param \OpenActive\Models\SchemaOrg\Rating|string $contentRating
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSpatialCoverage($spatialCoverage)
+ public function setContentRating($contentRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Rating",
"string",
];
- $spatialCoverage = self::checkTypes($spatialCoverage, $types);
+ $contentRating = self::checkTypes($contentRating, $types);
- $this->spatialCoverage = $spatialCoverage;
+ $this->contentRating = $contentRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getSdLicense()
+ public function getAwards()
{
- return $this->sdLicense;
+ return $this->awards;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $sdLicense
+ * @param string $awards
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSdLicense($sdLicense)
+ public function setAwards($awards)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $sdLicense = self::checkTypes($sdLicense, $types);
+ $awards = self::checkTypes($awards, $types);
- $this->sdLicense = $sdLicense;
+ $this->awards = $awards;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getConditionsOfAccess()
+ public function getSpatial()
{
- return $this->conditionsOfAccess;
+ return $this->spatial;
}
/**
- * @param string $conditionsOfAccess
+ * @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 setConditionsOfAccess($conditionsOfAccess)
+ public function setSpatial($spatial)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types);
+ $spatial = self::checkTypes($spatial, $types);
- $this->conditionsOfAccess = $conditionsOfAccess;
+ $this->spatial = $spatial;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CorrectionComment
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getCorrection()
+ public function getAssesses()
{
- return $this->correction;
+ return $this->assesses;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CorrectionComment $correction
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $assesses
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCorrection($correction)
+ public function setAssesses($assesses)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "\OpenActive\Models\SchemaOrg\CorrectionComment",
];
- $correction = self::checkTypes($correction, $types);
+ $assesses = self::checkTypes($assesses, $types);
- $this->correction = $correction;
+ $this->assesses = $assesses;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Rating
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getContentRating()
+ public function getTranslationOfWork()
{
- return $this->contentRating;
+ return $this->translationOfWork;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Rating $contentRating
+ * @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 setContentRating($contentRating)
+ public function setTranslationOfWork($translationOfWork)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\Rating",
];
- $contentRating = self::checkTypes($contentRating, $types);
+ $translationOfWork = self::checkTypes($translationOfWork, $types);
- $this->contentRating = $contentRating;
+ $this->translationOfWork = $translationOfWork;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification
+ * @return string
*/
- public function getSize()
+ public function getSchemaVersion()
{
- return $this->size;
+ return $this->schemaVersion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification $size
+ * @param string $schemaVersion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSize($size)
+ public function setSchemaVersion($schemaVersion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "\OpenActive\Models\SchemaOrg\SizeSpecification",
];
- $size = self::checkTypes($size, $types);
+ $schemaVersion = self::checkTypes($schemaVersion, $types);
- $this->size = $size;
+ $this->schemaVersion = $schemaVersion;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getIsPartOf()
+ public function getLocationCreated()
{
- return $this->isPartOf;
+ return $this->locationCreated;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $isPartOf
+ * @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 setIsPartOf($isPartOf)
+ public function setLocationCreated($locationCreated)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $isPartOf = self::checkTypes($isPartOf, $types);
+ $locationCreated = self::checkTypes($locationCreated, $types);
- $this->isPartOf = $isPartOf;
+ $this->locationCreated = $locationCreated;
}
/**
- * @return DateTime|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getTemporal()
+ public function getTeaches()
{
- return $this->temporal;
+ return $this->teaches;
}
/**
- * @param DateTime|string|null $temporal
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $teaches
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTemporal($temporal)
+ public function setTeaches($teaches)
{
$types = [
- "DateTime",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $temporal = self::checkTypes($temporal, $types);
+ $teaches = self::checkTypes($teaches, $types);
- $this->temporal = $temporal;
+ $this->teaches = $teaches;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getThumbnailUrl()
+ public function getMainEntity()
{
- return $this->thumbnailUrl;
+ return $this->mainEntity;
}
/**
- * @param string $thumbnailUrl
+ * @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 setThumbnailUrl($thumbnailUrl)
+ public function setMainEntity($mainEntity)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $thumbnailUrl = self::checkTypes($thumbnailUrl, $types);
+ $mainEntity = self::checkTypes($mainEntity, $types);
- $this->thumbnailUrl = $thumbnailUrl;
+ $this->mainEntity = $mainEntity;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return string
*/
- public function getInLanguage()
+ public function getConditionsOfAccess()
{
- return $this->inLanguage;
+ return $this->conditionsOfAccess;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param string $conditionsOfAccess
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInLanguage($inLanguage)
+ public function setConditionsOfAccess($conditionsOfAccess)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Language",
];
- $inLanguage = self::checkTypes($inLanguage, $types);
+ $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types);
- $this->inLanguage = $inLanguage;
+ $this->conditionsOfAccess = $conditionsOfAccess;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string
*/
- public function getLicense()
+ public function getPublication()
{
- return $this->license;
+ return $this->publication;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $license
+ * @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 setLicense($license)
+ public function setPublication($publication)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PublicationEvent",
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $license = self::checkTypes($license, $types);
+ $publication = self::checkTypes($publication, $types);
- $this->license = $license;
+ $this->publication = $publication;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getCreator()
+ public function getMaterialExtent()
{
- return $this->creator;
+ return $this->materialExtent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creator
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $materialExtent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreator($creator)
+ public function setMaterialExtent($materialExtent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $creator = self::checkTypes($creator, $types);
+ $materialExtent = self::checkTypes($materialExtent, $types);
- $this->creator = $creator;
+ $this->materialExtent = $materialExtent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getReviews()
+ public function getUsageInfo()
{
- return $this->reviews;
+ return $this->usageInfo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $reviews
+ * @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 setReviews($reviews)
+ public function setUsageInfo($usageInfo)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $reviews = self::checkTypes($reviews, $types);
+ $usageInfo = self::checkTypes($usageInfo, $types);
- $this->reviews = $reviews;
+ $this->usageInfo = $usageInfo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\ItemList|string
*/
- public function getAbout()
+ public function getAccessModeSufficient()
{
- return $this->about;
+ return $this->accessModeSufficient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $about
+ * @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 setAbout($about)
+ public function setAccessModeSufficient($accessModeSufficient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\ItemList",
"string",
];
- $about = self::checkTypes($about, $types);
+ $accessModeSufficient = self::checkTypes($accessModeSufficient, $types);
- $this->about = $about;
+ $this->accessModeSufficient = $accessModeSufficient;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getIsFamilyFriendly()
+ public function getMaintainer()
{
- return $this->isFamilyFriendly;
+ return $this->maintainer;
}
/**
- * @param bool|null $isFamilyFriendly
+ * @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 setIsFamilyFriendly($isFamilyFriendly)
+ public function setMaintainer($maintainer)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types);
+ $maintainer = self::checkTypes($maintainer, $types);
- $this->isFamilyFriendly = $isFamilyFriendly;
+ $this->maintainer = $maintainer;
}
/**
* @return string
*/
- public function getHeadline()
+ public function getAccessibilityAPI()
{
- return $this->headline;
+ return $this->accessibilityAPI;
}
/**
- * @param string $headline
+ * @param string $accessibilityAPI
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHeadline($headline)
+ public function setAccessibilityAPI($accessibilityAPI)
{
$types = [
"string",
];
- $headline = self::checkTypes($headline, $types);
+ $accessibilityAPI = self::checkTypes($accessibilityAPI, $types);
- $this->headline = $headline;
+ $this->accessibilityAPI = $accessibilityAPI;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getAccessibilityAPI()
+ public function getHasPart()
{
- return $this->accessibilityAPI;
+ return $this->hasPart;
}
/**
- * @param string $accessibilityAPI
+ * @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 setAccessibilityAPI($accessibilityAPI)
+ public function setHasPart($hasPart)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $accessibilityAPI = self::checkTypes($accessibilityAPI, $types);
+ $hasPart = self::checkTypes($hasPart, $types);
- $this->accessibilityAPI = $accessibilityAPI;
+ $this->hasPart = $hasPart;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getPublisherImprint()
+ public function getAccessibilityFeature()
{
- return $this->publisherImprint;
+ return $this->accessibilityFeature;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $publisherImprint
+ * @param string $accessibilityFeature
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPublisherImprint($publisherImprint)
+ public function setAccessibilityFeature($accessibilityFeature)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $publisherImprint = self::checkTypes($publisherImprint, $types);
+ $accessibilityFeature = self::checkTypes($accessibilityFeature, $types);
- $this->publisherImprint = $publisherImprint;
+ $this->accessibilityFeature = $accessibilityFeature;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product
+ * @return string
*/
- public function getIsBasedOnUrl()
+ public function getText()
{
- return $this->isBasedOnUrl;
+ return $this->text;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product $isBasedOnUrl
+ * @param string $text
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsBasedOnUrl($isBasedOnUrl)
+ public function setText($text)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "\OpenActive\Models\SchemaOrg\Product",
];
- $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types);
+ $text = self::checkTypes($text, $types);
- $this->isBasedOnUrl = $isBasedOnUrl;
+ $this->text = $text;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return string|\OpenActive\Models\SchemaOrg\CorrectionComment
*/
- public function getEncodings()
+ public function getCorrection()
{
- return $this->encodings;
+ return $this->correction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encodings
+ * @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 setEncodings($encodings)
+ public function setCorrection($correction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
+ "\OpenActive\Models\SchemaOrg\CorrectionComment",
];
- $encodings = self::checkTypes($encodings, $types);
+ $correction = self::checkTypes($correction, $types);
- $this->encodings = $encodings;
+ $this->correction = $correction;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Claim|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getInterpretedAsClaim()
+ public function getSponsor()
{
- return $this->interpretedAsClaim;
+ return $this->sponsor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $sponsor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInterpretedAsClaim($interpretedAsClaim)
+ public function setSponsor($sponsor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Claim",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->interpretedAsClaim = $interpretedAsClaim;
+ $this->sponsor = $sponsor;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getAccessibilityControl()
+ public function getWorkExample()
{
- return $this->accessibilityControl;
+ return $this->workExample;
}
/**
- * @param string $accessibilityControl
+ * @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 setAccessibilityControl($accessibilityControl)
+ public function setWorkExample($workExample)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $accessibilityControl = self::checkTypes($accessibilityControl, $types);
+ $workExample = self::checkTypes($workExample, $types);
- $this->accessibilityControl = $accessibilityControl;
+ $this->workExample = $workExample;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getCitation()
+ public function getAbstract()
{
- return $this->citation;
+ return $this->abstract;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $citation
+ * @param string $abstract
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCitation($citation)
+ public function setAbstract($abstract)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $citation = self::checkTypes($citation, $types);
+ $abstract = self::checkTypes($abstract, $types);
- $this->citation = $citation;
+ $this->abstract = $abstract;
}
/**
- * @return string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- public function getVersion()
+ public function getAggregateRating()
{
- return $this->version;
+ return $this->aggregateRating;
}
/**
- * @param string|Number|null $version
+ * @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 setVersion($version)
+ public function setAggregateRating($aggregateRating)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
- "Number",
- "null",
];
- $version = self::checkTypes($version, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->version = $version;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\WebPage|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getArchivedAt()
+ public function getContentLocation()
{
- return $this->archivedAt;
+ return $this->contentLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\WebPage|string $archivedAt
+ * @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 setArchivedAt($archivedAt)
+ public function setContentLocation($contentLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\WebPage",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $archivedAt = self::checkTypes($archivedAt, $types);
+ $contentLocation = self::checkTypes($contentLocation, $types);
- $this->archivedAt = $archivedAt;
+ $this->contentLocation = $contentLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getLearningResourceType()
+ public function getCreator()
{
- return $this->learningResourceType;
+ return $this->creator;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType
+ * @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 setLearningResourceType($learningResourceType)
+ public function setCreator($creator)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $learningResourceType = self::checkTypes($learningResourceType, $types);
+ $creator = self::checkTypes($creator, $types);
- $this->learningResourceType = $learningResourceType;
+ $this->creator = $creator;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return Date|DateTime|null
*/
- public function getEncoding()
+ public function getExpires()
{
- return $this->encoding;
+ return $this->expires;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encoding
+ * @param Date|DateTime|null $expires
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncoding($encoding)
+ public function setExpires($expires)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $encoding = self::checkTypes($encoding, $types);
+ $expires = self::checkTypes($expires, $types);
- $this->encoding = $encoding;
+ $this->expires = $expires;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string
+ * @return Date|null
*/
- public function getAudio()
+ public function getSdDatePublished()
{
- return $this->audio;
+ return $this->sdDatePublished;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string $audio
+ * @param Date|null $sdDatePublished
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAudio($audio)
+ public function setSdDatePublished($sdDatePublished)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AudioObject",
- "\OpenActive\Models\SchemaOrg\MusicRecording",
- "\OpenActive\Models\SchemaOrg\Clip",
- "string",
+ "Date",
+ "null",
];
- $audio = self::checkTypes($audio, $types);
+ $sdDatePublished = self::checkTypes($sdDatePublished, $types);
- $this->audio = $audio;
+ $this->sdDatePublished = $sdDatePublished;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getMentions()
+ public function getInLanguage()
{
- return $this->mentions;
+ return $this->inLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $mentions
+ * @param \OpenActive\Models\SchemaOrg\Language|string $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",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $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\PublicationEvent|string
*/
- public function getAccessModeSufficient()
+ public function getReleasedEvent()
{
- return $this->accessModeSufficient;
+ return $this->releasedEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|string $accessModeSufficient
+ * @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 setAccessModeSufficient($accessModeSufficient)
+ public function setReleasedEvent($releasedEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ItemList",
+ "\OpenActive\Models\SchemaOrg\PublicationEvent",
"string",
];
- $accessModeSufficient = self::checkTypes($accessModeSufficient, $types);
+ $releasedEvent = self::checkTypes($releasedEvent, $types);
- $this->accessModeSufficient = $accessModeSufficient;
+ $this->releasedEvent = $releasedEvent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return Date|DateTime|null
*/
- public function getHasPart()
+ public function getDateModified()
{
- return $this->hasPart;
+ return $this->dateModified;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $hasPart
+ * @param Date|DateTime|null $dateModified
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasPart($hasPart)
+ public function setDateModified($dateModified)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $hasPart = self::checkTypes($hasPart, $types);
+ $dateModified = self::checkTypes($dateModified, $types);
- $this->hasPart = $hasPart;
+ $this->dateModified = $dateModified;
}
/**
- * @return DateTime|string|null
+ * @return string
*/
- public function getTemporalCoverage()
+ public function getAccessibilityHazard()
{
- return $this->temporalCoverage;
+ return $this->accessibilityHazard;
}
/**
- * @param DateTime|string|null $temporalCoverage
+ * @param string $accessibilityHazard
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTemporalCoverage($temporalCoverage)
+ public function setAccessibilityHazard($accessibilityHazard)
{
$types = [
- "DateTime",
"string",
- "null",
];
- $temporalCoverage = self::checkTypes($temporalCoverage, $types);
+ $accessibilityHazard = self::checkTypes($accessibilityHazard, $types);
- $this->temporalCoverage = $temporalCoverage;
+ $this->accessibilityHazard = $accessibilityHazard;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getContributor()
+ public function getAccessMode()
{
- return $this->contributor;
+ return $this->accessMode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
+ * @param string $accessMode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContributor($contributor)
+ public function setAccessMode($accessMode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $contributor = self::checkTypes($contributor, $types);
+ $accessMode = self::checkTypes($accessMode, $types);
- $this->contributor = $contributor;
+ $this->accessMode = $accessMode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getVideo()
+ public function getAudience()
{
- return $this->video;
+ return $this->audience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string $video
+ * @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 setVideo($video)
+ public function setAudience($audience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Clip",
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $video = self::checkTypes($video, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->video = $video;
+ $this->audience = $audience;
}
}
diff --git a/src/Models/SchemaOrg/CreativeWorkSeason.php b/src/Models/SchemaOrg/CreativeWorkSeason.php
index e094eb1e..430269aa 100644
--- a/src/Models/SchemaOrg/CreativeWorkSeason.php
+++ b/src/Models/SchemaOrg/CreativeWorkSeason.php
@@ -17,225 +17,226 @@ public static function getType()
public static function fieldList() {
$fields = [
- "startDate" => "startDate",
- "director" => "director",
"actor" => "actor",
"trailer" => "trailer",
- "endDate" => "endDate",
- "episodes" => "episodes",
- "numberOfEpisodes" => "numberOfEpisodes",
- "partOfSeries" => "partOfSeries",
- "productionCompany" => "productionCompany",
"seasonNumber" => "seasonNumber",
"episode" => "episode",
+ "startDate" => "startDate",
+ "productionCompany" => "productionCompany",
+ "partOfSeries" => "partOfSeries",
+ "director" => "director",
+ "numberOfEpisodes" => "numberOfEpisodes",
+ "endDate" => "endDate",
+ "episodes" => "episodes",
];
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)).
+ * An actor (individual or a group), 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 Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- protected $startDate;
+ protected $actor;
/**
- * 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.
+ * Position of the season within an ordered group of seasons.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string|int|null
*/
- protected $actor;
+ protected $seasonNumber;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * An episode of a TV, radio or game media within a series or season.
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $trailer;
+ protected $episode;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
* @var Date|DateTime|null
*/
- protected $endDate;
+ protected $startDate;
/**
- * 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.
+ * The series to which this episode or season belongs.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- protected $numberOfEpisodes;
+ protected $partOfSeries;
/**
- * 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.
+ * The number of episodes in this season or series.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var int|null
*/
- protected $productionCompany;
+ protected $numberOfEpisodes;
/**
- * Position of the season within an ordered group of seasons.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var string|int|null
+ * @var Date|DateTime|null
*/
- protected $seasonNumber;
+ protected $endDate;
/**
- * An episode of a tv, radio or game media within a series or season.
+ * An episode of a TV/radio series or season.
*
*
* @var \OpenActive\Models\SchemaOrg\Episode|string
*/
- protected $episode;
+ protected $episodes;
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- public function getStartDate()
+ public function getActor()
{
- return $this->startDate;
+ return $this->actor;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string $actor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setActor($actor)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PerformingGroup",
+ "string",
];
- $startDate = self::checkTypes($startDate, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->startDate = $startDate;
+ $this->actor = $actor;
}
/**
- * @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;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string|int|null
*/
- public function getActor()
+ public function getSeasonNumber()
{
- return $this->actor;
+ return $this->seasonNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param string|int|null $seasonNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setSeasonNumber($seasonNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "int",
+ "null",
];
- $actor = self::checkTypes($actor, $types);
+ $seasonNumber = self::checkTypes($seasonNumber, $types);
- $this->actor = $actor;
+ $this->seasonNumber = $seasonNumber;
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getTrailer()
+ public function getEpisode()
{
- return $this->trailer;
+ return $this->episode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @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 setTrailer($trailer)
+ public function setEpisode($episode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Episode",
"string",
];
- $trailer = self::checkTypes($trailer, $types);
+ $episode = self::checkTypes($episode, $types);
- $this->trailer = $trailer;
+ $this->episode = $episode;
}
/**
* @return Date|DateTime|null
*/
- public function getEndDate()
+ public function getStartDate()
{
- return $this->endDate;
+ return $this->startDate;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setStartDate($startDate)
{
$types = [
"Date",
@@ -243,160 +244,160 @@ public function setEndDate($endDate)
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->endDate = $endDate;
+ $this->startDate = $startDate;
}
/**
- * @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 \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- public function getNumberOfEpisodes()
+ public function getPartOfSeries()
{
- return $this->numberOfEpisodes;
+ return $this->partOfSeries;
}
/**
- * @param int|null $numberOfEpisodes
+ * @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 setNumberOfEpisodes($numberOfEpisodes)
+ public function setPartOfSeries($partOfSeries)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
+ "string",
];
- $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
+ $partOfSeries = self::checkTypes($partOfSeries, $types);
- $this->numberOfEpisodes = $numberOfEpisodes;
+ $this->partOfSeries = $partOfSeries;
}
/**
- * @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 int|null
*/
- public function getProductionCompany()
+ public function getNumberOfEpisodes()
{
- return $this->productionCompany;
+ return $this->numberOfEpisodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param int|null $numberOfEpisodes
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setNumberOfEpisodes($numberOfEpisodes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "int",
+ "null",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types);
- $this->productionCompany = $productionCompany;
+ $this->numberOfEpisodes = $numberOfEpisodes;
}
/**
- * @return string|int|null
+ * @return Date|DateTime|null
*/
- public function getSeasonNumber()
+ public function getEndDate()
{
- return $this->seasonNumber;
+ return $this->endDate;
}
/**
- * @param string|int|null $seasonNumber
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeasonNumber($seasonNumber)
+ public function setEndDate($endDate)
{
$types = [
- "string",
- "int",
+ "Date",
+ "DateTime",
"null",
];
- $seasonNumber = self::checkTypes($seasonNumber, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->seasonNumber = $seasonNumber;
+ $this->endDate = $endDate;
}
/**
* @return \OpenActive\Models\SchemaOrg\Episode|string
*/
- public function getEpisode()
+ public function getEpisodes()
{
- return $this->episode;
+ return $this->episodes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Episode|string $episode
+ * @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 setEpisode($episode)
+ public function setEpisodes($episodes)
{
$types = [
"\OpenActive\Models\SchemaOrg\Episode",
"string",
];
- $episode = self::checkTypes($episode, $types);
+ $episodes = self::checkTypes($episodes, $types);
- $this->episode = $episode;
+ $this->episodes = $episodes;
}
}
diff --git a/src/Models/SchemaOrg/CreativeWorkSeries.php b/src/Models/SchemaOrg/CreativeWorkSeries.php
index 42570c15..5b9ac3c4 100644
--- a/src/Models/SchemaOrg/CreativeWorkSeries.php
+++ b/src/Models/SchemaOrg/CreativeWorkSeries.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "issn" => "issn",
"startDate" => "startDate",
"endDate" => "endDate",
- "issn" => "issn",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * 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 string
+ */
+ protected $issn;
+
/**
* The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
@@ -42,12 +50,28 @@ public static function fieldList() {
protected $endDate;
/**
- * 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 string
+ * @return string
*/
- protected $issn;
+ public function getIssn()
+ {
+ return $this->issn;
+ }
+
+ /**
+ * @param string $issn
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setIssn($issn)
+ {
+ $types = [
+ "string",
+ ];
+
+ $issn = self::checkTypes($issn, $types);
+
+ $this->issn = $issn;
+ }
/**
* @return Date|DateTime|null
@@ -101,28 +125,4 @@ public function setEndDate($endDate)
$this->endDate = $endDate;
}
- /**
- * @return string
- */
- public function getIssn()
- {
- return $this->issn;
- }
-
- /**
- * @param string $issn
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setIssn($issn)
- {
- $types = [
- "string",
- ];
-
- $issn = self::checkTypes($issn, $types);
-
- $this->issn = $issn;
- }
-
}
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..1504a6a6 100644
--- a/src/Models/SchemaOrg/DataCatalog.php
+++ b/src/Models/SchemaOrg/DataCatalog.php
@@ -17,84 +17,121 @@ public static function getType()
public static function fieldList() {
$fields = [
- "measurementTechnique" => "measurementTechnique",
"dataset" => "dataset",
+ "measurementMethod" => "measurementMethod",
+ "measurementTechnique" => "measurementTechnique",
];
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.
- *
- * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence".
+ * A dataset contained in this catalog.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Dataset|string
+ */
+ protected $dataset;
+
+ /**
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementMethod;
+
+ /**
+ * 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.
*
- * If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
+ * 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]].
- *
+ * 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;
/**
- * A dataset contained in this catalog.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Dataset|string
+ * @return \OpenActive\Models\SchemaOrg\Dataset|string
*/
- protected $dataset;
+ public function getDataset()
+ {
+ return $this->dataset;
+ }
/**
- * @return string
+ * @param \OpenActive\Models\SchemaOrg\Dataset|string $dataset
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function getMeasurementTechnique()
+ public function setDataset($dataset)
{
- return $this->measurementTechnique;
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Dataset",
+ "string",
+ ];
+
+ $dataset = self::checkTypes($dataset, $types);
+
+ $this->dataset = $dataset;
}
/**
- * @param string $measurementTechnique
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMeasurementTechnique($measurementTechnique)
+ public function setMeasurementMethod($measurementMethod)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
- $measurementTechnique = self::checkTypes($measurementTechnique, $types);
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
- $this->measurementTechnique = $measurementTechnique;
+ $this->measurementMethod = $measurementMethod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Dataset|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- public function getDataset()
+ public function getMeasurementTechnique()
{
- return $this->dataset;
+ return $this->measurementTechnique;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Dataset|string $dataset
+ * @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 setDataset($dataset)
+ public function setMeasurementTechnique($measurementTechnique)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Dataset",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
- $dataset = self::checkTypes($dataset, $types);
+ $measurementTechnique = self::checkTypes($measurementTechnique, $types);
- $this->dataset = $dataset;
+ $this->measurementTechnique = $measurementTechnique;
}
}
diff --git a/src/Models/SchemaOrg/DataDownload.php b/src/Models/SchemaOrg/DataDownload.php
index 17725eeb..c55fa26d 100644
--- a/src/Models/SchemaOrg/DataDownload.php
+++ b/src/Models/SchemaOrg/DataDownload.php
@@ -17,6 +17,7 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "measurementMethod" => "measurementMethod",
"measurementTechnique" => "measurementTechnique",
];
@@ -24,23 +25,56 @@ public static function fieldList() {
}
/**
- * 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".
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
+ *
+ *
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementMethod;
+
+ /**
+ * 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.
*
- * If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory".
+ * 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]].
- *
+ * 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
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|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\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
+ ];
+
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
+
+ $this->measurementMethod = $measurementMethod;
+ }
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
public function getMeasurementTechnique()
{
@@ -48,7 +82,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 +90,9 @@ public function setMeasurementTechnique($measurementTechnique)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
$measurementTechnique = self::checkTypes($measurementTechnique, $types);
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..68cf10b5 100644
--- a/src/Models/SchemaOrg/DataFeedItem.php
+++ b/src/Models/SchemaOrg/DataFeedItem.php
@@ -17,23 +17,15 @@ public static function getType()
public static function fieldList() {
$fields = [
- "dateDeleted" => "dateDeleted",
"dateCreated" => "dateCreated",
- "dateModified" => "dateModified",
+ "dateDeleted" => "dateDeleted",
"item" => "item",
+ "dateModified" => "dateModified",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The datetime the item was removed from the DataFeed.
- *
- *
- * @var Date|DateTime|null
- */
- protected $dateDeleted;
-
/**
* The date on which the CreativeWork was created or the item was added to a DataFeed.
*
@@ -43,15 +35,15 @@ public static function fieldList() {
protected $dateCreated;
/**
- * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
+ * The datetime the item was removed from the DataFeed.
*
*
* @var Date|DateTime|null
*/
- protected $dateModified;
+ protected $dateDeleted;
/**
- * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists')’.
+ * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists').
*
*
* @var \OpenActive\Models\SchemaOrg\Thing|string
@@ -59,30 +51,12 @@ public static function fieldList() {
protected $item;
/**
- * @return Date|DateTime|null
- */
- public function getDateDeleted()
- {
- return $this->dateDeleted;
- }
-
- /**
- * @param Date|DateTime|null $dateDeleted
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * 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
*/
- public function setDateDeleted($dateDeleted)
- {
- $types = [
- "Date",
- "DateTime",
- "null",
- ];
-
- $dateDeleted = self::checkTypes($dateDeleted, $types);
-
- $this->dateDeleted = $dateDeleted;
- }
+ protected $dateModified;
/**
* @return Date|DateTime|null
@@ -113,17 +87,17 @@ public function setDateCreated($dateCreated)
/**
* @return Date|DateTime|null
*/
- public function getDateModified()
+ public function getDateDeleted()
{
- return $this->dateModified;
+ return $this->dateDeleted;
}
/**
- * @param Date|DateTime|null $dateModified
+ * @param Date|DateTime|null $dateDeleted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateModified($dateModified)
+ public function setDateDeleted($dateDeleted)
{
$types = [
"Date",
@@ -131,9 +105,9 @@ public function setDateModified($dateModified)
"null",
];
- $dateModified = self::checkTypes($dateModified, $types);
+ $dateDeleted = self::checkTypes($dateDeleted, $types);
- $this->dateModified = $dateModified;
+ $this->dateDeleted = $dateDeleted;
}
/**
@@ -161,4 +135,30 @@ public function setItem($item)
$this->item = $item;
}
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getDateModified()
+ {
+ return $this->dateModified;
+ }
+
+ /**
+ * @param Date|DateTime|null $dateModified
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDateModified($dateModified)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $dateModified = self::checkTypes($dateModified, $types);
+
+ $this->dateModified = $dateModified;
+ }
+
}
diff --git a/src/Models/SchemaOrg/Dataset.php b/src/Models/SchemaOrg/Dataset.php
index 0419a3de..ddefb6fd 100644
--- a/src/Models/SchemaOrg/Dataset.php
+++ b/src/Models/SchemaOrg/Dataset.php
@@ -17,58 +17,67 @@ public static function getType()
public static function fieldList() {
$fields = [
- "catalog" => "catalog",
"includedDataCatalog" => "includedDataCatalog",
+ "issn" => "issn",
+ "includedInDataCatalog" => "includedInDataCatalog",
+ "measurementMethod" => "measurementMethod",
"variableMeasured" => "variableMeasured",
- "measurementTechnique" => "measurementTechnique",
+ "catalog" => "catalog",
"datasetTimeInterval" => "datasetTimeInterval",
"distribution" => "distribution",
- "issn" => "issn",
- "includedInDataCatalog" => "includedInDataCatalog",
+ "measurementTechnique" => "measurementTechnique",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A data catalog which contains this dataset.
+ * A data catalog which contains this dataset (this property was previously 'catalog', preferred name is now 'includedInDataCatalog').
*
*
* @var \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- protected $catalog;
+ protected $includedDataCatalog;
/**
- * A data catalog which contains this dataset (this property was previously 'catalog', preferred name is now 'includedInDataCatalog').
+ * 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 string
+ */
+ protected $issn;
+
+ /**
+ * A data catalog which contains this dataset.
*
*
* @var \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- protected $includedDataCatalog;
+ protected $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.
+ * 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\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementMethod;
+
+ /**
+ * 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\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|null
*/
protected $variableMeasured;
/**
- * 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 data catalog which contains this dataset.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- protected $measurementTechnique;
+ protected $catalog;
/**
* 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,7 +88,7 @@ public static function fieldList() {
protected $datasetTimeInterval;
/**
- * A downloadable form of this dataset, at a specific location, in a specific format.
+ * 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 \OpenActive\Models\SchemaOrg\DataDownload|string
@@ -87,73 +96,122 @@ public static function fieldList() {
protected $distribution;
/**
- * 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 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 string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- protected $issn;
+ protected $measurementTechnique;
/**
- * A data catalog which contains this dataset.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\DataCatalog|string
+ * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- protected $includedInDataCatalog;
+ public function getIncludedDataCatalog()
+ {
+ return $this->includedDataCatalog;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
+ * @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 getCatalog()
+ public function setIncludedDataCatalog($includedDataCatalog)
{
- return $this->catalog;
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DataCatalog",
+ "string",
+ ];
+
+ $includedDataCatalog = self::checkTypes($includedDataCatalog, $types);
+
+ $this->includedDataCatalog = $includedDataCatalog;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $catalog
+ * @return string
+ */
+ public function getIssn()
+ {
+ return $this->issn;
+ }
+
+ /**
+ * @param string $issn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCatalog($catalog)
+ public function setIssn($issn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataCatalog",
"string",
];
- $catalog = self::checkTypes($catalog, $types);
+ $issn = self::checkTypes($issn, $types);
- $this->catalog = $catalog;
+ $this->issn = $issn;
}
/**
* @return \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- public function getIncludedDataCatalog()
+ public function getIncludedInDataCatalog()
{
- return $this->includedDataCatalog;
+ return $this->includedInDataCatalog;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $includedDataCatalog
+ * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $includedInDataCatalog
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludedDataCatalog($includedDataCatalog)
+ public function setIncludedInDataCatalog($includedInDataCatalog)
{
$types = [
"\OpenActive\Models\SchemaOrg\DataCatalog",
"string",
];
- $includedDataCatalog = self::checkTypes($includedDataCatalog, $types);
+ $includedInDataCatalog = self::checkTypes($includedInDataCatalog, $types);
- $this->includedDataCatalog = $includedDataCatalog;
+ $this->includedInDataCatalog = $includedInDataCatalog;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|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\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
+ ];
+
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
+
+ $this->measurementMethod = $measurementMethod;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|null
*/
public function getVariableMeasured()
{
@@ -161,15 +219,18 @@ public function getVariableMeasured()
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $variableMeasured
+ * @param \OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|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",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "null",
];
$variableMeasured = self::checkTypes($variableMeasured, $types);
@@ -178,27 +239,28 @@ public function setVariableMeasured($variableMeasured)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
*/
- public function getMeasurementTechnique()
+ public function getCatalog()
{
- return $this->measurementTechnique;
+ return $this->catalog;
}
/**
- * @param string $measurementTechnique
+ * @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 setMeasurementTechnique($measurementTechnique)
+ public function setCatalog($catalog)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DataCatalog",
"string",
];
- $measurementTechnique = self::checkTypes($measurementTechnique, $types);
+ $catalog = self::checkTypes($catalog, $types);
- $this->measurementTechnique = $measurementTechnique;
+ $this->catalog = $catalog;
}
/**
@@ -252,52 +314,30 @@ public function setDistribution($distribution)
}
/**
- * @return string
- */
- public function getIssn()
- {
- return $this->issn;
- }
-
- /**
- * @param string $issn
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setIssn($issn)
- {
- $types = [
- "string",
- ];
-
- $issn = self::checkTypes($issn, $types);
-
- $this->issn = $issn;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\DataCatalog|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- public function getIncludedInDataCatalog()
+ public function getMeasurementTechnique()
{
- return $this->includedInDataCatalog;
+ return $this->measurementTechnique;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $includedInDataCatalog
+ * @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 setIncludedInDataCatalog($includedInDataCatalog)
+ public function setMeasurementTechnique($measurementTechnique)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataCatalog",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
- $includedInDataCatalog = self::checkTypes($includedInDataCatalog, $types);
+ $measurementTechnique = self::checkTypes($measurementTechnique, $types);
- $this->includedInDataCatalog = $includedInDataCatalog;
+ $this->measurementTechnique = $measurementTechnique;
}
}
diff --git a/src/Models/SchemaOrg/DatedMoneySpecification.php b/src/Models/SchemaOrg/DatedMoneySpecification.php
index 4c29ff17..dd8bb56a 100644
--- a/src/Models/SchemaOrg/DatedMoneySpecification.php
+++ b/src/Models/SchemaOrg/DatedMoneySpecification.php
@@ -17,148 +17,148 @@ public static function getType()
public static function fieldList() {
$fields = [
- "startDate" => "startDate",
- "endDate" => "endDate",
"currency" => "currency",
"amount" => "amount",
+ "startDate" => "startDate",
+ "endDate" => "endDate",
];
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 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 Date|DateTime|null
+ * @var string
*/
- protected $startDate;
+ protected $currency;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The amount of money.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $endDate;
+ protected $amount;
/**
- * 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 start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var string
+ * @var Date|DateTime|null
*/
- protected $currency;
+ protected $startDate;
/**
- * The amount of money.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var Date|DateTime|null
*/
- protected $amount;
+ protected $endDate;
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getStartDate()
+ public function getCurrency()
{
- return $this->startDate;
+ return $this->currency;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setCurrency($currency)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $startDate = self::checkTypes($startDate, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->startDate = $startDate;
+ $this->currency = $currency;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getEndDate()
+ public function getAmount()
{
- return $this->endDate;
+ return $this->amount;
}
/**
- * @param Date|DateTime|null $endDate
+ * @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 setEndDate($endDate)
+ public function setAmount($amount)
{
$types = [
- "Date",
- "DateTime",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
+ "Number",
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $amount = self::checkTypes($amount, $types);
- $this->endDate = $endDate;
+ $this->amount = $amount;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getCurrency()
+ public function getStartDate()
{
- return $this->currency;
+ return $this->startDate;
}
/**
- * @param string $currency
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrency($currency)
+ public function setStartDate($startDate)
{
$types = [
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $currency = self::checkTypes($currency, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->currency = $currency;
+ $this->startDate = $startDate;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return Date|DateTime|null
*/
- public function getAmount()
+ public function getEndDate()
{
- return $this->amount;
+ return $this->endDate;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmount($amount)
+ public function setEndDate($endDate)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "Date",
+ "DateTime",
"null",
];
- $amount = self::checkTypes($amount, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->amount = $amount;
+ $this->endDate = $endDate;
}
}
diff --git a/src/Models/SchemaOrg/DefinedRegion.php b/src/Models/SchemaOrg/DefinedRegion.php
index ffbf2a32..4b799cf6 100644
--- a/src/Models/SchemaOrg/DefinedRegion.php
+++ b/src/Models/SchemaOrg/DefinedRegion.php
@@ -18,38 +18,38 @@ public static function getType()
public static function fieldList() {
$fields = [
"addressCountry" => "addressCountry",
+ "postalCode" => "postalCode",
"addressRegion" => "addressRegion",
- "postalCodeRange" => "postalCodeRange",
"postalCodePrefix" => "postalCodePrefix",
- "postalCode" => "postalCode",
+ "postalCodeRange" => "postalCodeRange",
];
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).
+ * The country. Recommended to be in 2-letter [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1) format, for example "US". For backward compatibility, a 3-letter [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) country code such as "SGP" or a full country name such as "Singapore" can also be used.
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var string|\OpenActive\Models\SchemaOrg\Country
*/
protected $addressCountry;
/**
- * 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 postal code. For example, 94043.
*
*
* @var string
*/
- protected $addressRegion;
+ protected $postalCode;
/**
- * A defined range of postal codes.
+ * 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 \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string
+ * @var string
*/
- protected $postalCodeRange;
+ protected $addressRegion;
/**
* A defined range of postal codes indicated by a common textual prefix. Used for non-numeric systems such as UK.
@@ -60,15 +60,15 @@ public static function fieldList() {
protected $postalCodePrefix;
/**
- * The postal code. For example, 94043.
+ * A defined range of postal codes.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string
*/
- protected $postalCode;
+ protected $postalCodeRange;
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return string|\OpenActive\Models\SchemaOrg\Country
*/
public function getAddressCountry()
{
@@ -76,15 +76,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);
@@ -95,50 +95,49 @@ public function setAddressCountry($addressCountry)
/**
* @return string
*/
- public function getAddressRegion()
+ public function getPostalCode()
{
- return $this->addressRegion;
+ return $this->postalCode;
}
/**
- * @param string $addressRegion
+ * @param string $postalCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAddressRegion($addressRegion)
+ public function setPostalCode($postalCode)
{
$types = [
"string",
];
- $addressRegion = self::checkTypes($addressRegion, $types);
+ $postalCode = self::checkTypes($postalCode, $types);
- $this->addressRegion = $addressRegion;
+ $this->postalCode = $postalCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string
+ * @return string
*/
- public function getPostalCodeRange()
+ public function getAddressRegion()
{
- return $this->postalCodeRange;
+ return $this->addressRegion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string $postalCodeRange
+ * @param string $addressRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCodeRange($postalCodeRange)
+ public function setAddressRegion($addressRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification",
"string",
];
- $postalCodeRange = self::checkTypes($postalCodeRange, $types);
+ $addressRegion = self::checkTypes($addressRegion, $types);
- $this->postalCodeRange = $postalCodeRange;
+ $this->addressRegion = $addressRegion;
}
/**
@@ -166,27 +165,28 @@ public function setPostalCodePrefix($postalCodePrefix)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string
*/
- public function getPostalCode()
+ public function getPostalCodeRange()
{
- return $this->postalCode;
+ return $this->postalCodeRange;
}
/**
- * @param string $postalCode
+ * @param \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string $postalCodeRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCode($postalCode)
+ public function setPostalCodeRange($postalCodeRange)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification",
"string",
];
- $postalCode = self::checkTypes($postalCode, $types);
+ $postalCodeRange = self::checkTypes($postalCodeRange, $types);
- $this->postalCode = $postalCode;
+ $this->postalCodeRange = $postalCodeRange;
}
}
diff --git a/src/Models/SchemaOrg/DefinedTerm.php b/src/Models/SchemaOrg/DefinedTerm.php
index b6285c55..09f5bb02 100644
--- a/src/Models/SchemaOrg/DefinedTerm.php
+++ b/src/Models/SchemaOrg/DefinedTerm.php
@@ -17,76 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "termCode" => "termCode",
"inDefinedTermSet" => "inDefinedTermSet",
+ "termCode" => "termCode",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]]
+ * A [[DefinedTermSet]] that contains this term.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTermSet
*/
- protected $termCode;
+ protected $inDefinedTermSet;
/**
- * A [[DefinedTermSet]] that contains this term.
+ * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]].
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTermSet
+ * @var string
*/
- protected $inDefinedTermSet;
+ protected $termCode;
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTermSet
*/
- public function getTermCode()
+ public function getInDefinedTermSet()
{
- return $this->termCode;
+ return $this->inDefinedTermSet;
}
/**
- * @param string $termCode
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTermSet $inDefinedTermSet
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTermCode($termCode)
+ public function setInDefinedTermSet($inDefinedTermSet)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTermSet",
];
- $termCode = self::checkTypes($termCode, $types);
+ $inDefinedTermSet = self::checkTypes($inDefinedTermSet, $types);
- $this->termCode = $termCode;
+ $this->inDefinedTermSet = $inDefinedTermSet;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTermSet
+ * @return string
*/
- public function getInDefinedTermSet()
+ public function getTermCode()
{
- return $this->inDefinedTermSet;
+ return $this->termCode;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTermSet $inDefinedTermSet
+ * @param string $termCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInDefinedTermSet($inDefinedTermSet)
+ public function setTermCode($termCode)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTermSet",
];
- $inDefinedTermSet = self::checkTypes($inDefinedTermSet, $types);
+ $termCode = self::checkTypes($termCode, $types);
- $this->inDefinedTermSet = $inDefinedTermSet;
+ $this->termCode = $termCode;
}
}
diff --git a/src/Models/SchemaOrg/DeliveryChargeSpecification.php b/src/Models/SchemaOrg/DeliveryChargeSpecification.php
index fa5ca7f7..01a0bae4 100644
--- a/src/Models/SchemaOrg/DeliveryChargeSpecification.php
+++ b/src/Models/SchemaOrg/DeliveryChargeSpecification.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"ineligibleRegion" => "ineligibleRegion",
- "eligibleRegion" => "eligibleRegion",
"areaServed" => "areaServed",
+ "eligibleRegion" => "eligibleRegion",
"appliesToDeliveryMethod" => "appliesToDeliveryMethod",
];
@@ -36,21 +36,21 @@ public static function fieldList() {
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]].
- *
+ * The geographic area where a service or offered item is provided.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $eligibleRegion;
+ protected $areaServed;
/**
- * 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 valid.\n\nSee also [[ineligibleRegion]].
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
*/
- protected $areaServed;
+ protected $eligibleRegion;
/**
* The delivery method(s) to which the delivery charge or payment charge specification applies.
@@ -87,56 +87,56 @@ public function setIneligibleRegion($ineligibleRegion)
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getEligibleRegion()
+ public function getAreaServed()
{
- return $this->eligibleRegion;
+ return $this->areaServed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibleRegion($eligibleRegion)
+ public function setAreaServed($areaServed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $eligibleRegion = self::checkTypes($eligibleRegion, $types);
+ $areaServed = self::checkTypes($areaServed, $types);
- $this->eligibleRegion = $eligibleRegion;
+ $this->areaServed = $areaServed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
*/
- public function getAreaServed()
+ public function getEligibleRegion()
{
- return $this->areaServed;
+ return $this->eligibleRegion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAreaServed($areaServed)
+ public function setEligibleRegion($eligibleRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"\OpenActive\Models\SchemaOrg\GeoShape",
"string",
"\OpenActive\Models\SchemaOrg\Place",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $eligibleRegion = self::checkTypes($eligibleRegion, $types);
- $this->areaServed = $areaServed;
+ $this->eligibleRegion = $eligibleRegion;
}
/**
diff --git a/src/Models/SchemaOrg/DeliveryEvent.php b/src/Models/SchemaOrg/DeliveryEvent.php
index 2bb6ddc0..9e80ee81 100644
--- a/src/Models/SchemaOrg/DeliveryEvent.php
+++ b/src/Models/SchemaOrg/DeliveryEvent.php
@@ -17,30 +17,30 @@ public static function getType()
public static function fieldList() {
$fields = [
- "accessCode" => "accessCode",
"availableThrough" => "availableThrough",
- "hasDeliveryMethod" => "hasDeliveryMethod",
"availableFrom" => "availableFrom",
+ "hasDeliveryMethod" => "hasDeliveryMethod",
+ "accessCode" => "accessCode",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Password, PIN, or access code needed for delivery (e.g. from a locker).
+ * After this date, the item will no longer be available for pickup.
*
*
- * @var string
+ * @var DateTime|null
*/
- protected $accessCode;
+ protected $availableThrough;
/**
- * After this date, the item will no longer be available for pickup.
+ * When the item is available for pickup from the store, locker, etc.
*
*
* @var DateTime|null
*/
- protected $availableThrough;
+ protected $availableFrom;
/**
* Method used for delivery or shipping.
@@ -51,60 +51,61 @@ 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 getAvailableThrough()
{
- return $this->accessCode;
+ return $this->availableThrough;
}
/**
- * @param string $accessCode
+ * @param DateTime|null $availableThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAccessCode($accessCode)
+ public function setAvailableThrough($availableThrough)
{
$types = [
- "string",
+ "DateTime",
+ "null",
];
- $accessCode = self::checkTypes($accessCode, $types);
+ $availableThrough = self::checkTypes($availableThrough, $types);
- $this->accessCode = $accessCode;
+ $this->availableThrough = $availableThrough;
}
/**
* @return DateTime|null
*/
- public function getAvailableThrough()
+ public function getAvailableFrom()
{
- return $this->availableThrough;
+ return $this->availableFrom;
}
/**
- * @param DateTime|null $availableThrough
+ * @param DateTime|null $availableFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableThrough($availableThrough)
+ public function setAvailableFrom($availableFrom)
{
$types = [
"DateTime",
"null",
];
- $availableThrough = self::checkTypes($availableThrough, $types);
+ $availableFrom = self::checkTypes($availableFrom, $types);
- $this->availableThrough = $availableThrough;
+ $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..4f213911 100644
--- a/src/Models/SchemaOrg/DeliveryTimeSettings.php
+++ b/src/Models/SchemaOrg/DeliveryTimeSettings.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"shippingDestination" => "shippingDestination",
- "transitTimeLabel" => "transitTimeLabel",
"isUnlabelledFallback" => "isUnlabelledFallback",
+ "transitTimeLabel" => "transitTimeLabel",
"deliveryTime" => "deliveryTime",
];
@@ -27,7 +27,7 @@ public static function fieldList() {
}
/**
- * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges.
+ * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges.
*
*
* @var \OpenActive\Models\SchemaOrg\DefinedRegion|string
@@ -35,20 +35,20 @@ public static function fieldList() {
protected $shippingDestination;
/**
- * Label to match an [[OfferShippingDetails]] with a [[DeliveryTimeSettings]] (within the context of a [[shippingSettingsLink]] cross-reference).
+ * This can be marked 'true' to indicate that some published [[DeliveryTimeSettings]] or [[ShippingRateSettings]] are intended to apply to all [[OfferShippingDetails]] published by the same merchant, when referenced by a [[shippingSettingsLink]] in those settings. It is not meaningful to use a 'true' value for this property alongside a transitTimeLabel (for [[DeliveryTimeSettings]]) or shippingLabel (for [[ShippingRateSettings]]), since this property is for use with unlabelled settings.
*
*
- * @var string
+ * @var bool|null
*/
- protected $transitTimeLabel;
+ protected $isUnlabelledFallback;
/**
- * This can be marked 'true' to indicate that some published [[DeliveryTimeSettings]] or [[ShippingRateSettings]] are intended to apply to all [[OfferShippingDetails]] published by the same merchant, when referenced by a [[shippingSettingsLink]] in those settings. It is not meaningful to use a 'true' value for this property alongside a transitTimeLabel (for [[DeliveryTimeSettings]]) or shippingLabel (for [[ShippingRateSettings]]), since this property is for use with unlabelled settings.
+ * Label to match an [[OfferShippingDetails]] with a [[DeliveryTimeSettings]] (within the context of a [[shippingSettingsLink]] cross-reference).
*
*
- * @var bool|null
+ * @var string
*/
- protected $isUnlabelledFallback;
+ protected $transitTimeLabel;
/**
* The total delay between the receipt of the order and the goods reaching the final customer.
@@ -84,52 +84,52 @@ public function setShippingDestination($shippingDestination)
}
/**
- * @return string
+ * @return bool|null
*/
- public function getTransitTimeLabel()
+ public function getIsUnlabelledFallback()
{
- return $this->transitTimeLabel;
+ return $this->isUnlabelledFallback;
}
/**
- * @param string $transitTimeLabel
+ * @param bool|null $isUnlabelledFallback
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTransitTimeLabel($transitTimeLabel)
+ public function setIsUnlabelledFallback($isUnlabelledFallback)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $transitTimeLabel = self::checkTypes($transitTimeLabel, $types);
+ $isUnlabelledFallback = self::checkTypes($isUnlabelledFallback, $types);
- $this->transitTimeLabel = $transitTimeLabel;
+ $this->isUnlabelledFallback = $isUnlabelledFallback;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getIsUnlabelledFallback()
+ public function getTransitTimeLabel()
{
- return $this->isUnlabelledFallback;
+ return $this->transitTimeLabel;
}
/**
- * @param bool|null $isUnlabelledFallback
+ * @param string $transitTimeLabel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsUnlabelledFallback($isUnlabelledFallback)
+ public function setTransitTimeLabel($transitTimeLabel)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isUnlabelledFallback = self::checkTypes($isUnlabelledFallback, $types);
+ $transitTimeLabel = self::checkTypes($transitTimeLabel, $types);
- $this->isUnlabelledFallback = $isUnlabelledFallback;
+ $this->transitTimeLabel = $transitTimeLabel;
}
/**
diff --git a/src/Models/SchemaOrg/Demand.php b/src/Models/SchemaOrg/Demand.php
index 81f794fd..b7bfd8e8 100644
--- a/src/Models/SchemaOrg/Demand.php
+++ b/src/Models/SchemaOrg/Demand.php
@@ -17,100 +17,101 @@ public static function getType()
public static function fieldList() {
$fields = [
- "gtin12" => "gtin12",
"itemOffered" => "itemOffered",
+ "availabilityStarts" => "availabilityStarts",
+ "eligibleDuration" => "eligibleDuration",
+ "availability" => "availability",
+ "serialNumber" => "serialNumber",
+ "availableDeliveryMethod" => "availableDeliveryMethod",
+ "ineligibleRegion" => "ineligibleRegion",
+ "eligibleQuantity" => "eligibleQuantity",
+ "eligibleCustomerType" => "eligibleCustomerType",
+ "warranty" => "warranty",
+ "asin" => "asin",
+ "gtin13" => "gtin13",
+ "seller" => "seller",
+ "areaServed" => "areaServed",
+ "validThrough" => "validThrough",
"mpn" => "mpn",
+ "priceSpecification" => "priceSpecification",
"includesObject" => "includesObject",
+ "acceptedPaymentMethod" => "acceptedPaymentMethod",
+ "gtin8" => "gtin8",
+ "gtin" => "gtin",
+ "gtin14" => "gtin14",
+ "inventoryLevel" => "inventoryLevel",
"businessFunction" => "businessFunction",
"itemCondition" => "itemCondition",
- "gtin" => "gtin",
- "eligibleQuantity" => "eligibleQuantity",
- "acceptedPaymentMethod" => "acceptedPaymentMethod",
- "warranty" => "warranty",
- "seller" => "seller",
- "ineligibleRegion" => "ineligibleRegion",
"deliveryLeadTime" => "deliveryLeadTime",
- "availableDeliveryMethod" => "availableDeliveryMethod",
+ "eligibleRegion" => "eligibleRegion",
+ "gtin12" => "gtin12",
"validFrom" => "validFrom",
"availabilityEnds" => "availabilityEnds",
- "eligibleRegion" => "eligibleRegion",
- "gtin8" => "gtin8",
- "inventoryLevel" => "inventoryLevel",
- "sku" => "sku",
"advanceBookingRequirement" => "advanceBookingRequirement",
- "gtin14" => "gtin14",
- "eligibleTransactionVolume" => "eligibleTransactionVolume",
- "areaServed" => "areaServed",
- "eligibleCustomerType" => "eligibleCustomerType",
- "availability" => "availability",
- "gtin13" => "gtin13",
- "validThrough" => "validThrough",
- "priceSpecification" => "priceSpecification",
- "availabilityStarts" => "availabilityStarts",
- "eligibleDuration" => "eligibleDuration",
"availableAtOrFrom" => "availableAtOrFrom",
- "serialNumber" => "serialNumber",
+ "sku" => "sku",
+ "eligibleTransactionVolume" => "eligibleTransactionVolume",
];
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.
+ * 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\MenuItem|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\AggregateOffer|string
*/
- protected $gtin12;
+ protected $itemOffered;
/**
- * 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 beginning of the availability of the product or service included in the 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 Date|DateTime|string|null
*/
- protected $itemOffered;
+ protected $availabilityStarts;
/**
- * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
+ * The duration for which the given offer is valid.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $mpn;
+ protected $eligibleDuration;
/**
- * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
+ * The availability of this item—for example In stock, Out of stock, Pre-order, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
+ * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- protected $includesObject;
+ protected $availability;
/**
- * 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 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\Enums\SchemaOrg\BusinessFunction|null
+ * @var string
*/
- protected $businessFunction;
+ protected $serialNumber;
/**
- * 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 delivery method(s) available for this offer.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- protected $itemCondition;
+ protected $availableDeliveryMethod;
/**
- * 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 \OpenActive\Models\SchemaOrg\Place|string|\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.
@@ -121,12 +122,12 @@ public static function fieldList() {
protected $eligibleQuantity;
/**
- * The payment method(s) accepted by seller for this offer.
+ * The type(s) of customers for which the given offer is valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
*/
- protected $acceptedPaymentMethod;
+ protected $eligibleCustomerType;
/**
* The warranty promise(s) included in the offer.
@@ -137,94 +138,102 @@ public static function fieldList() {
protected $warranty;
/**
- * 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]].
- *
+ * 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\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var string
*/
- protected $ineligibleRegion;
+ protected $gtin13;
/**
- * 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.
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $deliveryLeadTime;
+ protected $seller;
/**
- * The delivery method(s) available for this offer.
+ * The geographic area where a service or offered item is provided.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $availableDeliveryMethod;
+ protected $areaServed;
/**
- * The date when the item becomes valid.
+ * 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 $validFrom;
+ protected $validThrough;
/**
- * The end of the availability of the product or service included in the offer.
+ * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
*
*
- * @var Date|DateTime|string|null
+ * @var string
*/
- protected $availabilityEnds;
+ protected $mpn;
/**
- * 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]].
- *
+ * One or more detailed price specifications, indicating the unit price and delivery or payment charges.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $eligibleRegion;
+ protected $priceSpecification;
/**
- * 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.
+ * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
*/
- protected $gtin8;
+ protected $includesObject;
/**
- * 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 string|\OpenActive\Models\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit
*/
- 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.
+ * 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 $sku;
+ protected $gtin8;
/**
- * The amount of time that is required between accepting the offer and the actual usage of the resource or service.
+ * 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\QuantitativeValue|string
+ * @var string
*/
- protected $advanceBookingRequirement;
+ protected $gtin;
/**
* 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.
@@ -235,76 +244,77 @@ public static function fieldList() {
protected $gtin14;
/**
- * 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 current approximate inventory level for the item or items.
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $eligibleTransactionVolume;
+ protected $inventoryLevel;
/**
- * The geographic area where a service or offered item is provided.
+ * 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\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null
*/
- protected $areaServed;
+ protected $businessFunction;
/**
- * The type(s) of customers for which the given offer is valid.
+ * 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\BusinessEntityType|null
+ * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- protected $eligibleCustomerType;
+ protected $itemCondition;
/**
- * The availability of this item—for example In stock, Out of stock, Pre-order, etc.
+ * 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\Enums\SchemaOrg\ItemAvailability|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $availability;
+ protected $deliveryLeadTime;
/**
- * 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 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\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
*/
- protected $gtin13;
+ protected $eligibleRegion;
/**
- * 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 date when the item becomes valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var Date|DateTime|null
*/
- protected $priceSpecification;
+ protected $validFrom;
/**
- * 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).
@@ -315,189 +325,202 @@ public static function fieldList() {
protected $availableAtOrFrom;
/**
- * 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.
+ * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.
*
*
* @var string
*/
- protected $serialNumber;
+ protected $sku;
/**
- * @return string
+ * 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 \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getGtin12()
+ protected $eligibleTransactionVolume;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\AggregateOffer|string
+ */
+ public function getItemOffered()
{
- return $this->gtin12;
+ return $this->itemOffered;
}
/**
- * @param string $gtin12
+ * @param \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\AggregateOffer|string $itemOffered
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin12($gtin12)
+ public function setItemOffered($itemOffered)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MenuItem",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Service",
+ "\OpenActive\Models\SchemaOrg\Product",
+ "\OpenActive\Models\SchemaOrg\Trip",
+ "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\AggregateOffer",
"string",
];
- $gtin12 = self::checkTypes($gtin12, $types);
+ $itemOffered = self::checkTypes($itemOffered, $types);
- $this->gtin12 = $gtin12;
+ $this->itemOffered = $itemOffered;
}
/**
- * @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 Date|DateTime|string|null
*/
- public function getItemOffered()
+ public function getAvailabilityStarts()
{
- return $this->itemOffered;
+ return $this->availabilityStarts;
}
/**
- * @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 Date|DateTime|string|null $availabilityStarts
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemOffered($itemOffered)
+ public function setAvailabilityStarts($availabilityStarts)
{
$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",
- "string",
+ "Date",
+ "DateTime",
+ "Time",
+ "null",
];
- $itemOffered = self::checkTypes($itemOffered, $types);
+ $availabilityStarts = self::checkTypes($availabilityStarts, $types);
- $this->itemOffered = $itemOffered;
+ $this->availabilityStarts = $availabilityStarts;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getMpn()
+ public function getEligibleDuration()
{
- return $this->mpn;
+ return $this->eligibleDuration;
}
/**
- * @param string $mpn
+ * @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 setMpn($mpn)
+ public function setEligibleDuration($eligibleDuration)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $mpn = self::checkTypes($mpn, $types);
+ $eligibleDuration = self::checkTypes($eligibleDuration, $types);
- $this->mpn = $mpn;
+ $this->eligibleDuration = $eligibleDuration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
+ * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- public function getIncludesObject()
+ public function getAvailability()
{
- return $this->includesObject;
+ return $this->availability;
}
/**
- * @param \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string $includesObject
+ * @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 setIncludesObject($includesObject)
+ public function setAvailability($availability)
{
$types = [
- "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ItemAvailability",
+ "null",
];
- $includesObject = self::checkTypes($includesObject, $types);
+ $availability = self::checkTypes($availability, $types);
- $this->includesObject = $includesObject;
+ $this->availability = $availability;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null
+ * @return string
*/
- public function getBusinessFunction()
+ public function getSerialNumber()
{
- return $this->businessFunction;
+ return $this->serialNumber;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction
+ * @param string $serialNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBusinessFunction($businessFunction)
+ public function setSerialNumber($serialNumber)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BusinessFunction",
- "null",
+ "string",
];
- $businessFunction = self::checkTypes($businessFunction, $types);
+ $serialNumber = self::checkTypes($serialNumber, $types);
- $this->businessFunction = $businessFunction;
+ $this->serialNumber = $serialNumber;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- public function getItemCondition()
+ public function getAvailableDeliveryMethod()
{
- return $this->itemCondition;
+ return $this->availableDeliveryMethod;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
+ * @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 setItemCondition($itemCondition)
+ public function setAvailableDeliveryMethod($availableDeliveryMethod)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
"null",
];
- $itemCondition = self::checkTypes($itemCondition, $types);
+ $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types);
- $this->itemCondition = $itemCondition;
+ $this->availableDeliveryMethod = $availableDeliveryMethod;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
*/
- public function getGtin()
+ public function getIneligibleRegion()
{
- return $this->gtin;
+ return $this->ineligibleRegion;
}
/**
- * @param string $gtin
+ * @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.
*/
- public function setGtin($gtin)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $gtin = self::checkTypes($gtin, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->gtin = $gtin;
+ $this->ineligibleRegion = $ineligibleRegion;
}
/**
@@ -526,30 +549,28 @@ public function setEligibleQuantity($eligibleQuantity)
}
/**
- * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
*/
- public function getAcceptedPaymentMethod()
+ public function getEligibleCustomerType()
{
- return $this->acceptedPaymentMethod;
+ return $this->eligibleCustomerType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod
+ * @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 setAcceptedPaymentMethod($acceptedPaymentMethod)
+ public function setEligibleCustomerType($eligibleCustomerType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LoanOrCredit",
- "\OpenActive\Enums\SchemaOrg\PaymentMethod",
- "string",
+ "\OpenActive\Enums\SchemaOrg\BusinessEntityType",
"null",
];
- $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types);
+ $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types);
- $this->acceptedPaymentMethod = $acceptedPaymentMethod;
+ $this->eligibleCustomerType = $eligibleCustomerType;
}
/**
@@ -578,121 +599,120 @@ public function setWarranty($warranty)
}
/**
- * @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 getGtin13()
{
- return $this->ineligibleRegion;
+ return $this->gtin13;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param string $gtin13
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setGtin13($gtin13)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $gtin13 = self::checkTypes($gtin13, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->gtin13 = $gtin13;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDeliveryLeadTime()
+ public function getSeller()
{
- return $this->deliveryLeadTime;
+ return $this->seller;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime
+ * @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 setDeliveryLeadTime($deliveryLeadTime)
+ public function setSeller($seller)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types);
+ $seller = self::checkTypes($seller, $types);
- $this->deliveryLeadTime = $deliveryLeadTime;
+ $this->seller = $seller;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getAvailableDeliveryMethod()
+ public function getAreaServed()
{
- return $this->availableDeliveryMethod;
+ return $this->areaServed;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea $areaServed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableDeliveryMethod($availableDeliveryMethod)
+ public function setAreaServed($areaServed)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DeliveryMethod",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types);
+ $areaServed = self::checkTypes($areaServed, $types);
- $this->availableDeliveryMethod = $availableDeliveryMethod;
+ $this->areaServed = $areaServed;
}
/**
* @return Date|DateTime|null
*/
- public function getValidFrom()
+ public function getValidThrough()
{
- return $this->validFrom;
+ return $this->validThrough;
}
/**
- * @param Date|DateTime|null $validFrom
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFrom($validFrom)
+ public function setValidThrough($validThrough)
{
$types = [
"Date",
@@ -700,160 +720,157 @@ public function setValidFrom($validFrom)
"null",
];
- $validFrom = self::checkTypes($validFrom, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->validFrom = $validFrom;
+ $this->validThrough = $validThrough;
}
/**
- * @return Date|DateTime|string|null
+ * @return string
*/
- public function getAvailabilityEnds()
+ public function getMpn()
{
- return $this->availabilityEnds;
+ return $this->mpn;
}
/**
- * @param Date|DateTime|string|null $availabilityEnds
+ * @param string $mpn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailabilityEnds($availabilityEnds)
+ public function setMpn($mpn)
{
$types = [
- "Date",
- "DateTime",
- "Time",
- "null",
+ "string",
];
- $availabilityEnds = self::checkTypes($availabilityEnds, $types);
+ $mpn = self::checkTypes($mpn, $types);
- $this->availabilityEnds = $availabilityEnds;
+ $this->mpn = $mpn;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getEligibleRegion()
+ public function getPriceSpecification()
{
- return $this->eligibleRegion;
+ return $this->priceSpecification;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
+ * @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 setEligibleRegion($eligibleRegion)
+ public function setPriceSpecification($priceSpecification)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
];
- $eligibleRegion = self::checkTypes($eligibleRegion, $types);
+ $priceSpecification = self::checkTypes($priceSpecification, $types);
- $this->eligibleRegion = $eligibleRegion;
+ $this->priceSpecification = $priceSpecification;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
*/
- public function getGtin8()
+ public function getIncludesObject()
{
- return $this->gtin8;
+ return $this->includesObject;
}
/**
- * @param string $gtin8
+ * @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 setGtin8($gtin8)
+ public function setIncludesObject($includesObject)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode",
"string",
];
- $gtin8 = self::checkTypes($gtin8, $types);
+ $includesObject = self::checkTypes($includesObject, $types);
- $this->gtin8 = $gtin8;
+ $this->includesObject = $includesObject;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|\OpenActive\Models\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit
*/
- public function getInventoryLevel()
+ public function getAcceptedPaymentMethod()
{
- return $this->inventoryLevel;
+ return $this->acceptedPaymentMethod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel
+ * @param string|\OpenActive\Models\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit $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",
"string",
+ "\OpenActive\Models\SchemaOrg\PaymentMethod",
+ "\OpenActive\Models\SchemaOrg\LoanOrCredit",
];
- $inventoryLevel = self::checkTypes($inventoryLevel, $types);
+ $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types);
- $this->inventoryLevel = $inventoryLevel;
+ $this->acceptedPaymentMethod = $acceptedPaymentMethod;
}
/**
* @return string
*/
- public function getSku()
+ public function getGtin8()
{
- return $this->sku;
+ return $this->gtin8;
}
/**
- * @param string $sku
+ * @param string $gtin8
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSku($sku)
+ public function setGtin8($gtin8)
{
$types = [
"string",
];
- $sku = self::checkTypes($sku, $types);
+ $gtin8 = self::checkTypes($gtin8, $types);
- $this->sku = $sku;
+ $this->gtin8 = $gtin8;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getAdvanceBookingRequirement()
+ public function getGtin()
{
- return $this->advanceBookingRequirement;
+ return $this->gtin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement
+ * @param string $gtin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdvanceBookingRequirement($advanceBookingRequirement)
+ public function setGtin($gtin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types);
+ $gtin = self::checkTypes($gtin, $types);
- $this->advanceBookingRequirement = $advanceBookingRequirement;
+ $this->gtin = $gtin;
}
/**
@@ -881,196 +898,195 @@ public function setGtin14($gtin14)
}
/**
- * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEligibleTransactionVolume()
+ public function getInventoryLevel()
{
- return $this->eligibleTransactionVolume;
+ return $this->inventoryLevel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume
+ * @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 setEligibleTransactionVolume($eligibleTransactionVolume)
+ public function setInventoryLevel($inventoryLevel)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types);
+ $inventoryLevel = self::checkTypes($inventoryLevel, $types);
- $this->eligibleTransactionVolume = $eligibleTransactionVolume;
+ $this->inventoryLevel = $inventoryLevel;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null
*/
- public function getAreaServed()
+ public function getBusinessFunction()
{
- return $this->areaServed;
+ return $this->businessFunction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed
+ * @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 setAreaServed($areaServed)
+ public function setBusinessFunction($businessFunction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "\OpenActive\Models\SchemaOrg\GeoShape",
- "string",
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Enums\SchemaOrg\BusinessFunction",
+ "null",
];
- $areaServed = self::checkTypes($areaServed, $types);
+ $businessFunction = self::checkTypes($businessFunction, $types);
- $this->areaServed = $areaServed;
+ $this->businessFunction = $businessFunction;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
+ * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- public function getEligibleCustomerType()
+ public function getItemCondition()
{
- return $this->eligibleCustomerType;
+ return $this->itemCondition;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType
+ * @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 setEligibleCustomerType($eligibleCustomerType)
+ public function setItemCondition($itemCondition)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BusinessEntityType",
+ "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
"null",
];
- $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types);
+ $itemCondition = self::checkTypes($itemCondition, $types);
- $this->eligibleCustomerType = $eligibleCustomerType;
+ $this->itemCondition = $itemCondition;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getAvailability()
+ public function getDeliveryLeadTime()
{
- return $this->availability;
+ return $this->deliveryLeadTime;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability
+ * @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 setAvailability($availability)
+ public function setDeliveryLeadTime($deliveryLeadTime)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ItemAvailability",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $availability = self::checkTypes($availability, $types);
+ $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types);
- $this->availability = $availability;
+ $this->deliveryLeadTime = $deliveryLeadTime;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
*/
- public function getGtin13()
+ public function getEligibleRegion()
{
- return $this->gtin13;
+ return $this->eligibleRegion;
}
/**
- * @param string $gtin13
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGtin13($gtin13)
+ public function setEligibleRegion($eligibleRegion)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\GeoShape",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
];
- $gtin13 = self::checkTypes($gtin13, $types);
+ $eligibleRegion = self::checkTypes($eligibleRegion, $types);
- $this->gtin13 = $gtin13;
+ $this->eligibleRegion = $eligibleRegion;
}
/**
- * @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 Date|DateTime|null
*/
- public function getPriceSpecification()
+ public function getValidFrom()
{
- return $this->priceSpecification;
+ return $this->validFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification
+ * @param Date|DateTime|null $validFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceSpecification($priceSpecification)
+ public function setValidFrom($validFrom)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $priceSpecification = self::checkTypes($priceSpecification, $types);
+ $validFrom = self::checkTypes($validFrom, $types);
- $this->priceSpecification = $priceSpecification;
+ $this->validFrom = $validFrom;
}
/**
* @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,34 +1095,34 @@ 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;
}
/**
@@ -1137,25 +1153,50 @@ public function setAvailableAtOrFrom($availableAtOrFrom)
/**
* @return string
*/
- public function getSerialNumber()
+ public function getSku()
{
- return $this->serialNumber;
+ return $this->sku;
}
/**
- * @param string $serialNumber
+ * @param string $sku
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSerialNumber($serialNumber)
+ public function setSku($sku)
{
$types = [
"string",
];
- $serialNumber = self::checkTypes($serialNumber, $types);
+ $sku = self::checkTypes($sku, $types);
- $this->serialNumber = $serialNumber;
+ $this->sku = $sku;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ */
+ public function getEligibleTransactionVolume()
+ {
+ return $this->eligibleTransactionVolume;
+ }
+
+ /**
+ * @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 setEligibleTransactionVolume($eligibleTransactionVolume)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "string",
+ ];
+
+ $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types);
+
+ $this->eligibleTransactionVolume = $eligibleTransactionVolume;
}
}
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..11530bf5 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
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"expertConsiderations" => "expertConsiderations",
- "risks" => "risks",
- "physiologicalBenefits" => "physiologicalBenefits",
"endorsers" => "endorsers",
"dietFeatures" => "dietFeatures",
+ "physiologicalBenefits" => "physiologicalBenefits",
+ "risks" => "risks",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,36 +36,36 @@ public static function fieldList() {
protected $expertConsiderations;
/**
- * Specific physiologic risks associated to the diet plan.
+ * People or organizations that endorse the plan.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $risks;
+ protected $endorsers;
/**
- * Specific physiologic benefits associated to the 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 $physiologicalBenefits;
+ protected $dietFeatures;
/**
- * People or organizations that endorse the plan.
+ * Specific physiologic benefits associated to the plan.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $endorsers;
+ protected $physiologicalBenefits;
/**
- * 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 risks associated to the diet plan.
*
*
* @var string
*/
- protected $dietFeatures;
+ protected $risks;
/**
* @return string
@@ -92,101 +92,101 @@ public function setExpertConsiderations($expertConsiderations)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getRisks()
+ public function getEndorsers()
{
- return $this->risks;
+ return $this->endorsers;
}
/**
- * @param string $risks
+ * @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 setRisks($risks)
+ public function setEndorsers($endorsers)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $risks = self::checkTypes($risks, $types);
+ $endorsers = self::checkTypes($endorsers, $types);
- $this->risks = $risks;
+ $this->endorsers = $endorsers;
}
/**
* @return string
*/
- public function getPhysiologicalBenefits()
+ public function getDietFeatures()
{
- return $this->physiologicalBenefits;
+ return $this->dietFeatures;
}
/**
- * @param string $physiologicalBenefits
+ * @param string $dietFeatures
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPhysiologicalBenefits($physiologicalBenefits)
+ public function setDietFeatures($dietFeatures)
{
$types = [
"string",
];
- $physiologicalBenefits = self::checkTypes($physiologicalBenefits, $types);
+ $dietFeatures = self::checkTypes($dietFeatures, $types);
- $this->physiologicalBenefits = $physiologicalBenefits;
+ $this->dietFeatures = $dietFeatures;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getEndorsers()
+ public function getPhysiologicalBenefits()
{
- return $this->endorsers;
+ return $this->physiologicalBenefits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $endorsers
+ * @param string $physiologicalBenefits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndorsers($endorsers)
+ public function setPhysiologicalBenefits($physiologicalBenefits)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $endorsers = self::checkTypes($endorsers, $types);
+ $physiologicalBenefits = self::checkTypes($physiologicalBenefits, $types);
- $this->endorsers = $endorsers;
+ $this->physiologicalBenefits = $physiologicalBenefits;
}
/**
* @return string
*/
- public function getDietFeatures()
+ public function getRisks()
{
- return $this->dietFeatures;
+ return $this->risks;
}
/**
- * @param string $dietFeatures
+ * @param string $risks
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDietFeatures($dietFeatures)
+ public function setRisks($risks)
{
$types = [
"string",
];
- $dietFeatures = self::checkTypes($dietFeatures, $types);
+ $risks = self::checkTypes($risks, $types);
- $this->dietFeatures = $dietFeatures;
+ $this->risks = $risks;
}
}
diff --git a/src/Models/SchemaOrg/DietarySupplement.php b/src/Models/SchemaOrg/DietarySupplement.php
index c611c6e1..75cd5a1a 100644
--- a/src/Models/SchemaOrg/DietarySupplement.php
+++ b/src/Models/SchemaOrg/DietarySupplement.php
@@ -17,29 +17,28 @@ public static function getType()
public static function fieldList() {
$fields = [
- "targetPopulation" => "targetPopulation",
- "recommendedIntake" => "recommendedIntake",
"legalStatus" => "legalStatus",
+ "recommendedIntake" => "recommendedIntake",
"mechanismOfAction" => "mechanismOfAction",
- "maximumIntake" => "maximumIntake",
- "activeIngredient" => "activeIngredient",
+ "safetyConsideration" => "safetyConsideration",
+ "isProprietary" => "isProprietary",
+ "targetPopulation" => "targetPopulation",
"proprietaryName" => "proprietaryName",
+ "maximumIntake" => "maximumIntake",
"nonProprietaryName" => "nonProprietaryName",
- "manufacturer" => "manufacturer",
- "isProprietary" => "isProprietary",
- "safetyConsideration" => "safetyConsideration",
+ "activeIngredient" => "activeIngredient",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'.
+ * The drug or supplement's legal status, including any controlled substance schedules that apply.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- protected $targetPopulation;
+ protected $legalStatus;
/**
* Recommended intake of this supplement for a given population as defined by a specific recommending authority.
@@ -49,14 +48,6 @@ public static function fieldList() {
*/
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.
*
@@ -66,83 +57,86 @@ public static function fieldList() {
protected $mechanismOfAction;
/**
- * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
+ * Any potential safety concern associated with the supplement. May include interactions with other drugs and foods, pregnancy, breastfeeding, known adverse reactions, and documented efficacy of the supplement.
*
*
- * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
+ * @var string
*/
- protected $maximumIntake;
+ protected $safetyConsideration;
/**
- * An active ingredient, typically chemical compounds and/or biologic substances.
+ * True if this item's name is a proprietary/brand name (vs. generic name).
*
*
- * @var string
+ * @var bool|null
*/
- protected $activeIngredient;
+ protected $isProprietary;
/**
- * Proprietary name given to the diet plan, typically by its originator or creator.
+ * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'.
*
*
* @var string
*/
- protected $proprietaryName;
+ protected $targetPopulation;
/**
- * The generic name of this drug or supplement.
+ * Proprietary name given to the diet plan, typically by its originator or creator.
*
*
* @var string
*/
- protected $nonProprietaryName;
+ protected $proprietaryName;
/**
- * The manufacturer of the product.
+ * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
*/
- protected $manufacturer;
+ protected $maximumIntake;
/**
- * True if this item's name is a proprietary/brand name (vs. generic name).
+ * The generic name of this drug or supplement.
*
*
- * @var bool|null
+ * @var string
*/
- protected $isProprietary;
+ protected $nonProprietaryName;
/**
- * Any potential safety concern associated with the supplement. May include interactions with other drugs and foods, pregnancy, breastfeeding, known adverse reactions, and documented efficacy of the supplement.
+ * An active ingredient, typically chemical compounds and/or biologic substances.
*
*
* @var string
*/
- protected $safetyConsideration;
+ protected $activeIngredient;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- public function getTargetPopulation()
+ public function getLegalStatus()
{
- return $this->targetPopulation;
+ return $this->legalStatus;
}
/**
- * @param string $targetPopulation
+ * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null $legalStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetPopulation($targetPopulation)
+ public function setLegalStatus($legalStatus)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
"string",
+ "null",
];
- $targetPopulation = self::checkTypes($targetPopulation, $types);
+ $legalStatus = self::checkTypes($legalStatus, $types);
- $this->targetPopulation = $targetPopulation;
+ $this->legalStatus = $legalStatus;
}
/**
@@ -171,103 +165,100 @@ public function setRecommendedIntake($recommendedIntake)
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return string
*/
- public function getLegalStatus()
+ public function getMechanismOfAction()
{
- return $this->legalStatus;
+ return $this->mechanismOfAction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
+ * @param string $mechanismOfAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegalStatus($legalStatus)
+ public function setMechanismOfAction($mechanismOfAction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $legalStatus = self::checkTypes($legalStatus, $types);
+ $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
- $this->legalStatus = $legalStatus;
+ $this->mechanismOfAction = $mechanismOfAction;
}
/**
* @return string
*/
- public function getMechanismOfAction()
+ public function getSafetyConsideration()
{
- return $this->mechanismOfAction;
+ return $this->safetyConsideration;
}
/**
- * @param string $mechanismOfAction
+ * @param string $safetyConsideration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMechanismOfAction($mechanismOfAction)
+ public function setSafetyConsideration($safetyConsideration)
{
$types = [
"string",
];
- $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
+ $safetyConsideration = self::checkTypes($safetyConsideration, $types);
- $this->mechanismOfAction = $mechanismOfAction;
+ $this->safetyConsideration = $safetyConsideration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
+ * @return bool|null
*/
- public function getMaximumIntake()
+ public function getIsProprietary()
{
- return $this->maximumIntake;
+ return $this->isProprietary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake
+ * @param bool|null $isProprietary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumIntake($maximumIntake)
+ public function setIsProprietary($isProprietary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
- "string",
+ "bool",
+ "null",
];
- $maximumIntake = self::checkTypes($maximumIntake, $types);
+ $isProprietary = self::checkTypes($isProprietary, $types);
- $this->maximumIntake = $maximumIntake;
+ $this->isProprietary = $isProprietary;
}
/**
* @return string
*/
- public function getActiveIngredient()
+ public function getTargetPopulation()
{
- return $this->activeIngredient;
+ return $this->targetPopulation;
}
/**
- * @param string $activeIngredient
+ * @param string $targetPopulation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActiveIngredient($activeIngredient)
+ public function setTargetPopulation($targetPopulation)
{
$types = [
"string",
];
- $activeIngredient = self::checkTypes($activeIngredient, $types);
+ $targetPopulation = self::checkTypes($targetPopulation, $types);
- $this->activeIngredient = $activeIngredient;
+ $this->targetPopulation = $targetPopulation;
}
/**
@@ -295,101 +286,76 @@ public function setProprietaryName($proprietaryName)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
*/
- public function getNonProprietaryName()
+ public function getMaximumIntake()
{
- return $this->nonProprietaryName;
+ return $this->maximumIntake;
}
/**
- * @param string $nonProprietaryName
+ * @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 setNonProprietaryName($nonProprietaryName)
+ public function setMaximumIntake($maximumIntake)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
"string",
];
- $nonProprietaryName = self::checkTypes($nonProprietaryName, $types);
+ $maximumIntake = self::checkTypes($maximumIntake, $types);
- $this->nonProprietaryName = $nonProprietaryName;
+ $this->maximumIntake = $maximumIntake;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getManufacturer()
+ public function getNonProprietaryName()
{
- return $this->manufacturer;
+ return $this->nonProprietaryName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer
+ * @param string $nonProprietaryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setManufacturer($manufacturer)
+ public function setNonProprietaryName($nonProprietaryName)
{
$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);
+ $nonProprietaryName = self::checkTypes($nonProprietaryName, $types);
- $this->isProprietary = $isProprietary;
+ $this->nonProprietaryName = $nonProprietaryName;
}
/**
* @return string
*/
- public function getSafetyConsideration()
+ public function getActiveIngredient()
{
- return $this->safetyConsideration;
+ return $this->activeIngredient;
}
/**
- * @param string $safetyConsideration
+ * @param string $activeIngredient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSafetyConsideration($safetyConsideration)
+ public function setActiveIngredient($activeIngredient)
{
$types = [
"string",
];
- $safetyConsideration = self::checkTypes($safetyConsideration, $types);
+ $activeIngredient = self::checkTypes($activeIngredient, $types);
- $this->safetyConsideration = $safetyConsideration;
+ $this->activeIngredient = $activeIngredient;
}
}
diff --git a/src/Models/SchemaOrg/DigitalDocumentPermission.php b/src/Models/SchemaOrg/DigitalDocumentPermission.php
index 894e5b04..93eabc84 100644
--- a/src/Models/SchemaOrg/DigitalDocumentPermission.php
+++ b/src/Models/SchemaOrg/DigitalDocumentPermission.php
@@ -17,80 +17,80 @@ public static function getType()
public static function fieldList() {
$fields = [
- "grantee" => "grantee",
"permissionType" => "permissionType",
+ "grantee" => "grantee",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The person, organization, contact point, or audience that has been granted this permission.
+ * The type of permission granted the person, organization, or audience.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null
*/
- protected $grantee;
+ protected $permissionType;
/**
- * The type of permission granted the person, organization, or audience.
+ * The person, organization, contact point, or audience that has been granted this permission.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $permissionType;
+ protected $grantee;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null
*/
- public function getGrantee()
+ public function getPermissionType()
{
- return $this->grantee;
+ return $this->permissionType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $grantee
+ * @param \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null $permissionType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGrantee($grantee)
+ public function setPermissionType($permissionType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "\OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType",
+ "null",
];
- $grantee = self::checkTypes($grantee, $types);
+ $permissionType = self::checkTypes($permissionType, $types);
- $this->grantee = $grantee;
+ $this->permissionType = $permissionType;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getPermissionType()
+ public function getGrantee()
{
- return $this->permissionType;
+ return $this->grantee;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType|null $permissionType
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|string $grantee
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPermissionType($permissionType)
+ public function setGrantee($grantee)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DigitalDocumentPermissionType",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "string",
];
- $permissionType = self::checkTypes($permissionType, $types);
+ $grantee = self::checkTypes($grantee, $types);
- $this->permissionType = $permissionType;
+ $this->grantee = $grantee;
}
}
diff --git a/src/Models/SchemaOrg/DonateAction.php b/src/Models/SchemaOrg/DonateAction.php
index b95e3cae..49dd2fb1 100644
--- a/src/Models/SchemaOrg/DonateAction.php
+++ b/src/Models/SchemaOrg/DonateAction.php
@@ -5,7 +5,7 @@
/**
*
*/
-class DonateAction extends \OpenActive\Models\SchemaOrg\TradeAction
+class DonateAction extends \OpenActive\Models\SchemaOrg\TransferAction
{
/**
* @return string[]|null
@@ -17,22 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "price" => "price",
"recipient" => "recipient",
+ "priceSpecification" => "priceSpecification",
+ "priceCurrency" => "priceCurrency",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.\n\nUsage guidelines:\n\n* Use the [[priceCurrency]] property (with 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") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as '$' in the value.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.\n* Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.
+ *
+ *
+ *
+ * @var string|Number|null
+ */
+ protected $price;
+
/**
* 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\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $recipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * One or more detailed price specifications, indicating the unit price and delivery or payment charges.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ */
+ protected $priceSpecification;
+
+ /**
+ * 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 string
+ */
+ protected $priceCurrency;
+
+ /**
+ * @return string|Number|null
+ */
+ public function getPrice()
+ {
+ return $this->price;
+ }
+
+ /**
+ * @param string|Number|null $price
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setPrice($price)
+ {
+ $types = [
+ "string",
+ "Number",
+ "null",
+ ];
+
+ $price = self::checkTypes($price, $types);
+
+ $this->price = $price;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getRecipient()
{
@@ -40,16 +94,16 @@ 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\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Person",
"\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
"string",
];
@@ -59,4 +113,53 @@ public function setRecipient($recipient)
$this->recipient = $recipient;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ */
+ public function getPriceSpecification()
+ {
+ return $this->priceSpecification;
+ }
+
+ /**
+ * @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 setPriceSpecification($priceSpecification)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "string",
+ ];
+
+ $priceSpecification = self::checkTypes($priceSpecification, $types);
+
+ $this->priceSpecification = $priceSpecification;
+ }
+
+ /**
+ * @return string
+ */
+ public function getPriceCurrency()
+ {
+ return $this->priceCurrency;
+ }
+
+ /**
+ * @param string $priceCurrency
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setPriceCurrency($priceCurrency)
+ {
+ $types = [
+ "string",
+ ];
+
+ $priceCurrency = self::checkTypes($priceCurrency, $types);
+
+ $this->priceCurrency = $priceCurrency;
+ }
+
}
diff --git a/src/Models/SchemaOrg/DoseSchedule.php b/src/Models/SchemaOrg/DoseSchedule.php
index cd5742d8..bcb99d2a 100644
--- a/src/Models/SchemaOrg/DoseSchedule.php
+++ b/src/Models/SchemaOrg/DoseSchedule.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "targetPopulation" => "targetPopulation",
"frequency" => "frequency",
+ "targetPopulation" => "targetPopulation",
"doseUnit" => "doseUnit",
"doseValue" => "doseValue",
];
@@ -27,20 +27,20 @@ public static function fieldList() {
}
/**
- * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'.
+ * How often the dose is taken, e.g. 'daily'.
*
*
* @var string
*/
- protected $targetPopulation;
+ protected $frequency;
/**
- * 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'.
@@ -61,49 +61,49 @@ public static function fieldList() {
/**
* @return string
*/
- public function getTargetPopulation()
+ public function getFrequency()
{
- return $this->targetPopulation;
+ return $this->frequency;
}
/**
- * @param string $targetPopulation
+ * @param string $frequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTargetPopulation($targetPopulation)
+ public function setFrequency($frequency)
{
$types = [
"string",
];
- $targetPopulation = self::checkTypes($targetPopulation, $types);
+ $frequency = self::checkTypes($frequency, $types);
- $this->targetPopulation = $targetPopulation;
+ $this->frequency = $frequency;
}
/**
* @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;
}
/**
diff --git a/src/Models/SchemaOrg/Drug.php b/src/Models/SchemaOrg/Drug.php
index b48cecd6..bdd0467c 100644
--- a/src/Models/SchemaOrg/Drug.php
+++ b/src/Models/SchemaOrg/Drug.php
@@ -17,73 +17,72 @@ public static function getType()
public static function fieldList() {
$fields = [
- "pregnancyCategory" => "pregnancyCategory",
- "overdosage" => "overdosage",
+ "doseSchedule" => "doseSchedule",
+ "pregnancyWarning" => "pregnancyWarning",
+ "drugClass" => "drugClass",
"legalStatus" => "legalStatus",
- "mechanismOfAction" => "mechanismOfAction",
"clinicalPharmacology" => "clinicalPharmacology",
- "rxcui" => "rxcui",
- "interactingDrug" => "interactingDrug",
"dosageForm" => "dosageForm",
- "labelDetails" => "labelDetails",
- "maximumIntake" => "maximumIntake",
- "activeIngredient" => "activeIngredient",
+ "isAvailableGenerically" => "isAvailableGenerically",
+ "prescriptionStatus" => "prescriptionStatus",
+ "breastfeedingWarning" => "breastfeedingWarning",
+ "alcoholWarning" => "alcoholWarning",
"relatedDrug" => "relatedDrug",
- "administrationRoute" => "administrationRoute",
- "drugUnit" => "drugUnit",
+ "mechanismOfAction" => "mechanismOfAction",
+ "isProprietary" => "isProprietary",
+ "interactingDrug" => "interactingDrug",
+ "clincalPharmacology" => "clincalPharmacology",
+ "overdosage" => "overdosage",
"foodWarning" => "foodWarning",
+ "pregnancyCategory" => "pregnancyCategory",
+ "availableStrength" => "availableStrength",
"warning" => "warning",
- "prescriptionStatus" => "prescriptionStatus",
+ "administrationRoute" => "administrationRoute",
"proprietaryName" => "proprietaryName",
- "drugClass" => "drugClass",
"prescribingInfo" => "prescribingInfo",
- "includedInHealthInsurancePlan" => "includedInHealthInsurancePlan",
+ "maximumIntake" => "maximumIntake",
"nonProprietaryName" => "nonProprietaryName",
- "manufacturer" => "manufacturer",
- "isProprietary" => "isProprietary",
- "clincalPharmacology" => "clincalPharmacology",
- "isAvailableGenerically" => "isAvailableGenerically",
- "breastfeedingWarning" => "breastfeedingWarning",
- "pregnancyWarning" => "pregnancyWarning",
- "alcoholWarning" => "alcoholWarning",
- "doseSchedule" => "doseSchedule",
- "availableStrength" => "availableStrength",
+ "drugUnit" => "drugUnit",
+ "activeIngredient" => "activeIngredient",
+ "labelDetails" => "labelDetails",
+ "rxcui" => "rxcui",
+ "includedInHealthInsurancePlan" => "includedInHealthInsurancePlan",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Pregnancy category of this drug.
+ * 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\DrugPregnancyCategory|string
+ * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string
*/
- protected $pregnancyCategory;
+ protected $doseSchedule;
/**
- * 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 during pregnancy.
*
*
* @var string
*/
- protected $overdosage;
+ protected $pregnancyWarning;
/**
- * The drug or supplement's legal status, including any controlled substance schedules that apply.
+ * The class of drug this belongs to (e.g., statins).
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\DrugClass|string
*/
- protected $legalStatus;
+ protected $drugClass;
/**
- * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
+ * The drug or supplement's legal status, including any controlled substance schedules that apply.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- protected $mechanismOfAction;
+ protected $legalStatus;
/**
* Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
@@ -94,52 +93,44 @@ public static function fieldList() {
protected $clinicalPharmacology;
/**
- * The RxCUI drug identifier from RXNORM.
+ * A dosage form in which this drug/supplement is available, e.g. 'tablet', 'suspension', 'injection'.
*
*
* @var string
*/
- protected $rxcui;
+ protected $dosageForm;
/**
- * 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.
+ * True if the drug is available in a generic form (regardless of name).
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var bool|null
*/
- protected $interactingDrug;
+ protected $isAvailableGenerically;
/**
- * A dosage form in which this drug/supplement is available, e.g. 'tablet', 'suspension', 'injection'.
+ * 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 \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
*/
- protected $dosageForm;
+ protected $prescriptionStatus;
/**
- * Link to the drug's label details.
+ * Any precaution, guidance, contraindication, etc. related to this drug's use by breastfeeding mothers.
*
*
* @var string
*/
- protected $labelDetails;
-
- /**
- * Recommended intake of this supplement for a given population as defined by a specific recommending authority.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
- */
- protected $maximumIntake;
+ protected $breastfeedingWarning;
/**
- * An active ingredient, typically chemical compounds and/or biologic substances.
+ * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug.
*
*
* @var string
*/
- protected $activeIngredient;
+ protected $alcoholWarning;
/**
* Any other drug related to this one, for example commonly-prescribed alternatives.
@@ -150,255 +141,256 @@ public static function fieldList() {
protected $relatedDrug;
/**
- * A route by which this drug may be administered, e.g. 'oral'.
+ * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.
*
*
* @var string
*/
- protected $administrationRoute;
+ protected $mechanismOfAction;
/**
- * The unit in which the drug is measured, e.g. '5 mg tablet'.
+ * True if this item's name is a proprietary/brand name (vs. generic name).
*
*
- * @var string
+ * @var bool|null
*/
- protected $drugUnit;
+ protected $isProprietary;
/**
- * Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug.
+ * 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 $foodWarning;
+ protected $interactingDrug;
/**
- * 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.
+ * Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
+ * @var string
*/
- protected $prescriptionStatus;
+ protected $overdosage;
/**
- * Proprietary name given to the diet plan, typically by its originator or creator.
+ * Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug.
*
*
* @var string
*/
- protected $proprietaryName;
+ protected $foodWarning;
/**
- * The class of drug this belongs to (e.g., statins).
+ * Pregnancy category of this drug.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugClass|string
+ * @var \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
*/
- protected $drugClass;
+ protected $pregnancyCategory;
/**
- * Link to prescribing information for the drug.
+ * An available dosage strength for the drug.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DrugStrength|string
*/
- protected $prescribingInfo;
+ protected $availableStrength;
/**
- * The insurance plans that cover this drug.
+ * Any FDA or other warnings about the drug (text or URL).
*
*
- * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
+ * @var string
*/
- protected $includedInHealthInsurancePlan;
+ protected $warning;
/**
- * The generic name of this drug or supplement.
+ * A route by which this drug may be administered, e.g. 'oral'.
*
*
* @var string
*/
- protected $nonProprietaryName;
+ protected $administrationRoute;
/**
- * The manufacturer of the product.
+ * Proprietary name given to the diet plan, typically by its originator or creator.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $manufacturer;
+ protected $proprietaryName;
/**
- * True if this item's name is a proprietary/brand name (vs. generic name).
+ * Link to prescribing information for the drug.
*
*
- * @var bool|null
+ * @var string
*/
- protected $isProprietary;
+ protected $prescribingInfo;
/**
- * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).
+ * 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 $clincalPharmacology;
+ protected $maximumIntake;
/**
- * True if the drug is available in a generic form (regardless of name).
+ * The generic name of this drug or supplement.
*
*
- * @var bool|null
+ * @var string
*/
- protected $isAvailableGenerically;
+ protected $nonProprietaryName;
/**
- * Any precaution, guidance, contraindication, etc. related to this drug's use by breastfeeding mothers.
+ * The unit in which the drug is measured, e.g. '5 mg tablet'.
*
*
* @var string
*/
- protected $breastfeedingWarning;
+ protected $drugUnit;
/**
- * Any precaution, guidance, contraindication, etc. related to this drug's use during pregnancy.
+ * An active ingredient, typically chemical compounds and/or biologic substances.
*
*
* @var string
*/
- protected $pregnancyWarning;
+ protected $activeIngredient;
/**
- * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug.
+ * Link to the drug's label details.
*
*
* @var string
*/
- protected $alcoholWarning;
+ protected $labelDetails;
/**
- * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.
+ * The RxCUI drug identifier from RXNORM.
*
*
- * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string
+ * @var string
*/
- protected $doseSchedule;
+ protected $rxcui;
/**
- * An available dosage strength for the drug.
+ * The insurance plans that cover this drug.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugStrength|string
+ * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
*/
- protected $availableStrength;
+ protected $includedInHealthInsurancePlan;
/**
- * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
+ * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string
*/
- public function getPregnancyCategory()
+ public function getDoseSchedule()
{
- return $this->pregnancyCategory;
+ return $this->doseSchedule;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string $pregnancyCategory
+ * @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 setPregnancyCategory($pregnancyCategory)
+ public function setDoseSchedule($doseSchedule)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory",
+ "\OpenActive\Models\SchemaOrg\DoseSchedule",
"string",
];
- $pregnancyCategory = self::checkTypes($pregnancyCategory, $types);
+ $doseSchedule = self::checkTypes($doseSchedule, $types);
- $this->pregnancyCategory = $pregnancyCategory;
+ $this->doseSchedule = $doseSchedule;
}
/**
* @return string
*/
- public function getOverdosage()
+ public function getPregnancyWarning()
{
- return $this->overdosage;
+ return $this->pregnancyWarning;
}
/**
- * @param string $overdosage
+ * @param string $pregnancyWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOverdosage($overdosage)
+ public function setPregnancyWarning($pregnancyWarning)
{
$types = [
"string",
];
- $overdosage = self::checkTypes($overdosage, $types);
+ $pregnancyWarning = self::checkTypes($pregnancyWarning, $types);
- $this->overdosage = $overdosage;
+ $this->pregnancyWarning = $pregnancyWarning;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\DrugClass|string
*/
- public function getLegalStatus()
+ public function getDrugClass()
{
- return $this->legalStatus;
+ return $this->drugClass;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
+ * @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 setLegalStatus($legalStatus)
+ public function setDrugClass($drugClass)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Models\SchemaOrg\DrugClass",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $legalStatus = self::checkTypes($legalStatus, $types);
+ $drugClass = self::checkTypes($drugClass, $types);
- $this->legalStatus = $legalStatus;
+ $this->drugClass = $drugClass;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- public function getMechanismOfAction()
+ public function getLegalStatus()
{
- return $this->mechanismOfAction;
+ return $this->legalStatus;
}
/**
- * @param string $mechanismOfAction
+ * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null $legalStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMechanismOfAction($mechanismOfAction)
+ public function setLegalStatus($legalStatus)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
"string",
+ "null",
];
- $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
+ $legalStatus = self::checkTypes($legalStatus, $types);
- $this->mechanismOfAction = $mechanismOfAction;
+ $this->legalStatus = $legalStatus;
}
/**
@@ -428,147 +420,123 @@ public function setClinicalPharmacology($clinicalPharmacology)
/**
* @return string
*/
- public function getRxcui()
+ public function getDosageForm()
{
- return $this->rxcui;
+ return $this->dosageForm;
}
/**
- * @param string $rxcui
+ * @param string $dosageForm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRxcui($rxcui)
+ public function setDosageForm($dosageForm)
{
$types = [
"string",
];
- $rxcui = self::checkTypes($rxcui, $types);
+ $dosageForm = self::checkTypes($dosageForm, $types);
- $this->rxcui = $rxcui;
+ $this->dosageForm = $dosageForm;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return bool|null
*/
- public function getInteractingDrug()
+ public function getIsAvailableGenerically()
{
- return $this->interactingDrug;
+ return $this->isAvailableGenerically;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $interactingDrug
+ * @param bool|null $isAvailableGenerically
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInteractingDrug($interactingDrug)
+ public function setIsAvailableGenerically($isAvailableGenerically)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
- "string",
+ "bool",
+ "null",
];
- $interactingDrug = self::checkTypes($interactingDrug, $types);
+ $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types);
- $this->interactingDrug = $interactingDrug;
+ $this->isAvailableGenerically = $isAvailableGenerically;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
*/
- public function getDosageForm()
+ public function getPrescriptionStatus()
{
- return $this->dosageForm;
+ return $this->prescriptionStatus;
}
/**
- * @param string $dosageForm
+ * @param \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string $prescriptionStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDosageForm($dosageForm)
+ public function setPrescriptionStatus($prescriptionStatus)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus",
"string",
];
- $dosageForm = self::checkTypes($dosageForm, $types);
+ $prescriptionStatus = self::checkTypes($prescriptionStatus, $types);
- $this->dosageForm = $dosageForm;
+ $this->prescriptionStatus = $prescriptionStatus;
}
/**
* @return string
*/
- public function getLabelDetails()
- {
- return $this->labelDetails;
- }
-
- /**
- * @param string $labelDetails
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setLabelDetails($labelDetails)
- {
- $types = [
- "string",
- ];
-
- $labelDetails = self::checkTypes($labelDetails, $types);
-
- $this->labelDetails = $labelDetails;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
- */
- public function getMaximumIntake()
+ public function getBreastfeedingWarning()
{
- return $this->maximumIntake;
+ return $this->breastfeedingWarning;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake
+ * @param string $breastfeedingWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumIntake($maximumIntake)
+ public function setBreastfeedingWarning($breastfeedingWarning)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
"string",
];
- $maximumIntake = self::checkTypes($maximumIntake, $types);
+ $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types);
- $this->maximumIntake = $maximumIntake;
+ $this->breastfeedingWarning = $breastfeedingWarning;
}
/**
* @return string
*/
- public function getActiveIngredient()
+ public function getAlcoholWarning()
{
- return $this->activeIngredient;
+ return $this->alcoholWarning;
}
/**
- * @param string $activeIngredient
+ * @param string $alcoholWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActiveIngredient($activeIngredient)
+ public function setAlcoholWarning($alcoholWarning)
{
$types = [
"string",
];
- $activeIngredient = self::checkTypes($activeIngredient, $types);
+ $alcoholWarning = self::checkTypes($alcoholWarning, $types);
- $this->activeIngredient = $activeIngredient;
+ $this->alcoholWarning = $alcoholWarning;
}
/**
@@ -599,465 +567,463 @@ public function setRelatedDrug($relatedDrug)
/**
* @return string
*/
- public function getAdministrationRoute()
+ public function getMechanismOfAction()
{
- return $this->administrationRoute;
+ return $this->mechanismOfAction;
}
/**
- * @param string $administrationRoute
+ * @param string $mechanismOfAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdministrationRoute($administrationRoute)
+ public function setMechanismOfAction($mechanismOfAction)
{
$types = [
"string",
];
- $administrationRoute = self::checkTypes($administrationRoute, $types);
+ $mechanismOfAction = self::checkTypes($mechanismOfAction, $types);
- $this->administrationRoute = $administrationRoute;
+ $this->mechanismOfAction = $mechanismOfAction;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getDrugUnit()
+ public function getIsProprietary()
{
- return $this->drugUnit;
+ return $this->isProprietary;
}
/**
- * @param string $drugUnit
+ * @param bool|null $isProprietary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDrugUnit($drugUnit)
+ public function setIsProprietary($isProprietary)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $drugUnit = self::checkTypes($drugUnit, $types);
+ $isProprietary = self::checkTypes($isProprietary, $types);
- $this->drugUnit = $drugUnit;
+ $this->isProprietary = $isProprietary;
}
/**
- * @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
*/
- public function getWarning()
+ public function getClincalPharmacology()
{
- return $this->warning;
+ return $this->clincalPharmacology;
}
/**
- * @param string $warning
+ * @param string $clincalPharmacology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWarning($warning)
+ public function setClincalPharmacology($clincalPharmacology)
{
$types = [
"string",
];
- $warning = self::checkTypes($warning, $types);
+ $clincalPharmacology = self::checkTypes($clincalPharmacology, $types);
- $this->warning = $warning;
+ $this->clincalPharmacology = $clincalPharmacology;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string
+ * @return string
*/
- public function getPrescriptionStatus()
+ public function getOverdosage()
{
- return $this->prescriptionStatus;
+ return $this->overdosage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string $prescriptionStatus
+ * @param string $overdosage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrescriptionStatus($prescriptionStatus)
+ public function setOverdosage($overdosage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus",
"string",
];
- $prescriptionStatus = self::checkTypes($prescriptionStatus, $types);
+ $overdosage = self::checkTypes($overdosage, $types);
- $this->prescriptionStatus = $prescriptionStatus;
+ $this->overdosage = $overdosage;
}
/**
* @return string
*/
- public function getProprietaryName()
+ public function getFoodWarning()
{
- return $this->proprietaryName;
+ return $this->foodWarning;
}
/**
- * @param string $proprietaryName
+ * @param string $foodWarning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProprietaryName($proprietaryName)
+ public function setFoodWarning($foodWarning)
{
$types = [
"string",
];
- $proprietaryName = self::checkTypes($proprietaryName, $types);
+ $foodWarning = self::checkTypes($foodWarning, $types);
- $this->proprietaryName = $proprietaryName;
+ $this->foodWarning = $foodWarning;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugClass|string
+ * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string
*/
- public function getDrugClass()
+ public function getPregnancyCategory()
{
- return $this->drugClass;
+ return $this->pregnancyCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugClass|string $drugClass
+ * @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 setDrugClass($drugClass)
+ public function setPregnancyCategory($pregnancyCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugClass",
+ "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory",
"string",
];
- $drugClass = self::checkTypes($drugClass, $types);
+ $pregnancyCategory = self::checkTypes($pregnancyCategory, $types);
- $this->drugClass = $drugClass;
+ $this->pregnancyCategory = $pregnancyCategory;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DrugStrength|string
*/
- public function getPrescribingInfo()
+ public function getAvailableStrength()
{
- return $this->prescribingInfo;
+ return $this->availableStrength;
}
/**
- * @param string $prescribingInfo
+ * @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 setPrescribingInfo($prescribingInfo)
+ public function setAvailableStrength($availableStrength)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DrugStrength",
"string",
];
- $prescribingInfo = self::checkTypes($prescribingInfo, $types);
+ $availableStrength = self::checkTypes($availableStrength, $types);
- $this->prescribingInfo = $prescribingInfo;
+ $this->availableStrength = $availableStrength;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
+ * @return string
*/
- public function getIncludedInHealthInsurancePlan()
+ public function getWarning()
{
- return $this->includedInHealthInsurancePlan;
+ return $this->warning;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string $includedInHealthInsurancePlan
+ * @param string $warning
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan)
+ public function setWarning($warning)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HealthInsurancePlan",
"string",
];
- $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types);
+ $warning = self::checkTypes($warning, $types);
- $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan;
+ $this->warning = $warning;
}
/**
* @return string
*/
- public function getNonProprietaryName()
+ public function getAdministrationRoute()
{
- return $this->nonProprietaryName;
+ return $this->administrationRoute;
}
/**
- * @param string $nonProprietaryName
+ * @param string $administrationRoute
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNonProprietaryName($nonProprietaryName)
+ public function setAdministrationRoute($administrationRoute)
{
$types = [
"string",
];
- $nonProprietaryName = self::checkTypes($nonProprietaryName, $types);
+ $administrationRoute = self::checkTypes($administrationRoute, $types);
- $this->nonProprietaryName = $nonProprietaryName;
+ $this->administrationRoute = $administrationRoute;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getManufacturer()
+ public function getProprietaryName()
{
- return $this->manufacturer;
+ return $this->proprietaryName;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer
+ * @param string $proprietaryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setManufacturer($manufacturer)
+ public function setProprietaryName($proprietaryName)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $manufacturer = self::checkTypes($manufacturer, $types);
+ $proprietaryName = self::checkTypes($proprietaryName, $types);
- $this->manufacturer = $manufacturer;
+ $this->proprietaryName = $proprietaryName;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getIsProprietary()
+ public function getPrescribingInfo()
{
- return $this->isProprietary;
+ return $this->prescribingInfo;
}
/**
- * @param bool|null $isProprietary
+ * @param string $prescribingInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsProprietary($isProprietary)
+ public function setPrescribingInfo($prescribingInfo)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isProprietary = self::checkTypes($isProprietary, $types);
+ $prescribingInfo = self::checkTypes($prescribingInfo, $types);
- $this->isProprietary = $isProprietary;
+ $this->prescribingInfo = $prescribingInfo;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string
*/
- public function getClincalPharmacology()
+ public function getMaximumIntake()
{
- return $this->clincalPharmacology;
+ return $this->maximumIntake;
}
/**
- * @param string $clincalPharmacology
+ * @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 setClincalPharmacology($clincalPharmacology)
+ public function setMaximumIntake($maximumIntake)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule",
"string",
];
- $clincalPharmacology = self::checkTypes($clincalPharmacology, $types);
+ $maximumIntake = self::checkTypes($maximumIntake, $types);
- $this->clincalPharmacology = $clincalPharmacology;
+ $this->maximumIntake = $maximumIntake;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getIsAvailableGenerically()
+ public function getNonProprietaryName()
{
- return $this->isAvailableGenerically;
+ return $this->nonProprietaryName;
}
/**
- * @param bool|null $isAvailableGenerically
+ * @param string $nonProprietaryName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsAvailableGenerically($isAvailableGenerically)
+ public function setNonProprietaryName($nonProprietaryName)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types);
+ $nonProprietaryName = self::checkTypes($nonProprietaryName, $types);
- $this->isAvailableGenerically = $isAvailableGenerically;
+ $this->nonProprietaryName = $nonProprietaryName;
}
/**
* @return string
*/
- public function getBreastfeedingWarning()
+ public function getDrugUnit()
{
- return $this->breastfeedingWarning;
+ return $this->drugUnit;
}
/**
- * @param string $breastfeedingWarning
+ * @param string $drugUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBreastfeedingWarning($breastfeedingWarning)
+ public function setDrugUnit($drugUnit)
{
$types = [
"string",
];
- $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types);
+ $drugUnit = self::checkTypes($drugUnit, $types);
- $this->breastfeedingWarning = $breastfeedingWarning;
+ $this->drugUnit = $drugUnit;
}
/**
* @return string
*/
- public function getPregnancyWarning()
+ public function getActiveIngredient()
{
- return $this->pregnancyWarning;
+ return $this->activeIngredient;
}
/**
- * @param string $pregnancyWarning
+ * @param string $activeIngredient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPregnancyWarning($pregnancyWarning)
+ public function setActiveIngredient($activeIngredient)
{
$types = [
"string",
];
- $pregnancyWarning = self::checkTypes($pregnancyWarning, $types);
+ $activeIngredient = self::checkTypes($activeIngredient, $types);
- $this->pregnancyWarning = $pregnancyWarning;
+ $this->activeIngredient = $activeIngredient;
}
/**
* @return string
*/
- public function getAlcoholWarning()
+ public function getLabelDetails()
{
- return $this->alcoholWarning;
+ return $this->labelDetails;
}
/**
- * @param string $alcoholWarning
+ * @param string $labelDetails
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlcoholWarning($alcoholWarning)
+ public function setLabelDetails($labelDetails)
{
$types = [
"string",
];
- $alcoholWarning = self::checkTypes($alcoholWarning, $types);
+ $labelDetails = self::checkTypes($labelDetails, $types);
- $this->alcoholWarning = $alcoholWarning;
+ $this->labelDetails = $labelDetails;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string
+ * @return string
*/
- public function getDoseSchedule()
+ public function getRxcui()
{
- return $this->doseSchedule;
+ return $this->rxcui;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule
+ * @param string $rxcui
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDoseSchedule($doseSchedule)
+ public function setRxcui($rxcui)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DoseSchedule",
"string",
];
- $doseSchedule = self::checkTypes($doseSchedule, $types);
+ $rxcui = self::checkTypes($rxcui, $types);
- $this->doseSchedule = $doseSchedule;
+ $this->rxcui = $rxcui;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DrugStrength|string
+ * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string
*/
- public function getAvailableStrength()
+ public function getIncludedInHealthInsurancePlan()
{
- return $this->availableStrength;
+ return $this->includedInHealthInsurancePlan;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugStrength|string $availableStrength
+ * @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 setAvailableStrength($availableStrength)
+ public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugStrength",
+ "\OpenActive\Models\SchemaOrg\HealthInsurancePlan",
"string",
];
- $availableStrength = self::checkTypes($availableStrength, $types);
+ $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types);
- $this->availableStrength = $availableStrength;
+ $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan;
}
}
diff --git a/src/Models/SchemaOrg/DrugCost.php b/src/Models/SchemaOrg/DrugCost.php
index 2db962a3..7086c569 100644
--- a/src/Models/SchemaOrg/DrugCost.php
+++ b/src/Models/SchemaOrg/DrugCost.php
@@ -17,32 +17,32 @@ public static function getType()
public static function fieldList() {
$fields = [
- "applicableLocation" => "applicableLocation",
"costPerUnit" => "costPerUnit",
+ "costOrigin" => "costOrigin",
"costCategory" => "costCategory",
"drugUnit" => "drugUnit",
"costCurrency" => "costCurrency",
- "costOrigin" => "costOrigin",
+ "applicableLocation" => "applicableLocation",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The location in which the status applies.
+ * The cost per unit of the drug.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- protected $applicableLocation;
+ protected $costPerUnit;
/**
- * The cost per unit of the drug.
+ * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'.
*
*
- * @var string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @var string
*/
- protected $costPerUnit;
+ protected $costOrigin;
/**
* The category of cost, such as wholesale, retail, reimbursement cap, etc.
@@ -61,7 +61,7 @@ public static function fieldList() {
protected $drugUnit;
/**
- * 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,63 +69,62 @@ public static function fieldList() {
protected $costCurrency;
/**
- * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'.
+ * The location in which the status applies.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $costOrigin;
+ protected $applicableLocation;
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getApplicableLocation()
+ public function getCostPerUnit()
{
- return $this->applicableLocation;
+ return $this->costPerUnit;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicableLocation
+ * @param string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $costPerUnit
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicableLocation($applicableLocation)
+ public function setCostPerUnit($costPerUnit)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
+ "Number",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "null",
];
- $applicableLocation = self::checkTypes($applicableLocation, $types);
+ $costPerUnit = self::checkTypes($costPerUnit, $types);
- $this->applicableLocation = $applicableLocation;
+ $this->costPerUnit = $costPerUnit;
}
/**
- * @return string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @return string
*/
- public function getCostPerUnit()
+ public function getCostOrigin()
{
- return $this->costPerUnit;
+ return $this->costOrigin;
}
/**
- * @param string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $costPerUnit
+ * @param string $costOrigin
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCostPerUnit($costPerUnit)
+ public function setCostOrigin($costOrigin)
{
$types = [
"string",
- "Number",
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "null",
];
- $costPerUnit = self::checkTypes($costPerUnit, $types);
+ $costOrigin = self::checkTypes($costOrigin, $types);
- $this->costPerUnit = $costPerUnit;
+ $this->costOrigin = $costOrigin;
}
/**
@@ -202,27 +201,28 @@ public function setCostCurrency($costCurrency)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getCostOrigin()
+ public function getApplicableLocation()
{
- return $this->costOrigin;
+ return $this->applicableLocation;
}
/**
- * @param string $costOrigin
+ * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicableLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCostOrigin($costOrigin)
+ public function setApplicableLocation($applicableLocation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $costOrigin = self::checkTypes($costOrigin, $types);
+ $applicableLocation = self::checkTypes($applicableLocation, $types);
- $this->costOrigin = $costOrigin;
+ $this->applicableLocation = $applicableLocation;
}
}
diff --git a/src/Models/SchemaOrg/DrugStrength.php b/src/Models/SchemaOrg/DrugStrength.php
index a5eaf983..66a4580f 100644
--- a/src/Models/SchemaOrg/DrugStrength.php
+++ b/src/Models/SchemaOrg/DrugStrength.php
@@ -17,31 +17,39 @@ public static function getType()
public static function fieldList() {
$fields = [
- "availableIn" => "availableIn",
"strengthUnit" => "strengthUnit",
+ "strengthValue" => "strengthValue",
+ "availableIn" => "availableIn",
"maximumIntake" => "maximumIntake",
"activeIngredient" => "activeIngredient",
- "strengthValue" => "strengthValue",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The location in which the strength is available.
+ * The units of an active ingredient's strength, e.g. mg.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var string
*/
- protected $availableIn;
+ protected $strengthUnit;
/**
- * 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;
+
+ /**
+ * The location in which the strength is available.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ */
+ protected $availableIn;
/**
* Recommended intake of this supplement for a given population as defined by a specific recommending authority.
@@ -60,60 +68,77 @@ public static function fieldList() {
protected $activeIngredient;
/**
- * The value of an active ingredient's strength, e.g. 325.
- *
- *
- * @var Number|null
+ * @return string
*/
- protected $strengthValue;
+ public function getStrengthUnit()
+ {
+ return $this->strengthUnit;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @param string $strengthUnit
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function getAvailableIn()
+ public function setStrengthUnit($strengthUnit)
{
- return $this->availableIn;
+ $types = [
+ "string",
+ ];
+
+ $strengthUnit = self::checkTypes($strengthUnit, $types);
+
+ $this->strengthUnit = $strengthUnit;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $availableIn
+ * @return Number|null
+ */
+ public function getStrengthValue()
+ {
+ return $this->strengthValue;
+ }
+
+ /**
+ * @param Number|null $strengthValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableIn($availableIn)
+ public function setStrengthValue($strengthValue)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
- "string",
+ "Number",
+ "null",
];
- $availableIn = self::checkTypes($availableIn, $types);
+ $strengthValue = self::checkTypes($strengthValue, $types);
- $this->availableIn = $availableIn;
+ $this->strengthValue = $strengthValue;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getStrengthUnit()
+ public function getAvailableIn()
{
- return $this->strengthUnit;
+ return $this->availableIn;
}
/**
- * @param string $strengthUnit
+ * @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 setStrengthUnit($strengthUnit)
+ public function setAvailableIn($availableIn)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
];
- $strengthUnit = self::checkTypes($strengthUnit, $types);
+ $availableIn = self::checkTypes($availableIn, $types);
- $this->strengthUnit = $strengthUnit;
+ $this->availableIn = $availableIn;
}
/**
@@ -165,29 +190,4 @@ public function setActiveIngredient($activeIngredient)
$this->activeIngredient = $activeIngredient;
}
- /**
- * @return Number|null
- */
- public function getStrengthValue()
- {
- return $this->strengthValue;
- }
-
- /**
- * @param Number|null $strengthValue
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setStrengthValue($strengthValue)
- {
- $types = [
- "Number",
- "null",
- ];
-
- $strengthValue = self::checkTypes($strengthValue, $types);
-
- $this->strengthValue = $strengthValue;
- }
-
}
diff --git a/src/Models/SchemaOrg/EducationEvent.php b/src/Models/SchemaOrg/EducationEvent.php
index 5c799d1e..6c381c93 100644
--- a/src/Models/SchemaOrg/EducationEvent.php
+++ b/src/Models/SchemaOrg/EducationEvent.php
@@ -17,111 +17,111 @@ public static function getType()
public static function fieldList() {
$fields = [
- "teaches" => "teaches",
"educationalLevel" => "educationalLevel",
"assesses" => "assesses",
+ "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 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
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $teaches;
+ protected $educationalLevel;
/**
- * 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 item being described is intended to assess the competency or learning outcome defined by the referenced term.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $educationalLevel;
+ protected $assesses;
/**
- * 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
*/
- protected $assesses;
+ protected $teaches;
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getTeaches()
+ public function getEducationalLevel()
{
- return $this->teaches;
+ return $this->educationalLevel;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
+ * @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 setTeaches($teaches)
+ public function setEducationalLevel($educationalLevel)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $teaches = self::checkTypes($teaches, $types);
+ $educationalLevel = self::checkTypes($educationalLevel, $types);
- $this->teaches = $teaches;
+ $this->educationalLevel = $educationalLevel;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getEducationalLevel()
+ public function getAssesses()
{
- return $this->educationalLevel;
+ return $this->assesses;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $assesses
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalLevel($educationalLevel)
+ public function setAssesses($assesses)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "string",
];
- $educationalLevel = self::checkTypes($educationalLevel, $types);
+ $assesses = self::checkTypes($assesses, $types);
- $this->educationalLevel = $educationalLevel;
+ $this->assesses = $assesses;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getAssesses()
+ public function getTeaches()
{
- return $this->assesses;
+ return $this->teaches;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $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",
];
- $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..58c60ed3 100644
--- a/src/Models/SchemaOrg/EducationalOccupationalCredential.php
+++ b/src/Models/SchemaOrg/EducationalOccupationalCredential.php
@@ -17,17 +17,33 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "recognizedBy" => "recognizedBy",
+ "validIn" => "validIn",
"validFor" => "validFor",
"educationalLevel" => "educationalLevel",
"credentialCategory" => "credentialCategory",
- "recognizedBy" => "recognizedBy",
"competencyRequired" => "competencyRequired",
- "validIn" => "validIn",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * An organization that acknowledges the validity, value or utility of a credential. Note: recognition may include a process of quality assurance or accreditation.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $recognizedBy;
+
+ /**
+ * 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;
+
/**
* The duration of validity of a permit or similar thing.
*
@@ -52,14 +68,6 @@ public static function fieldList() {
*/
protected $credentialCategory;
- /**
- * An organization that acknowledges the validity, value or utility of a credential. Note: recognition may include a process of quality assurance or accreditation.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Organization|string
- */
- protected $recognizedBy;
-
/**
* 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.
*
@@ -69,162 +77,154 @@ public static function fieldList() {
protected $competencyRequired;
/**
- * The geographic area where a permit or similar thing is valid.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
- */
- protected $validIn;
-
- /**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getValidFor()
+ public function getRecognizedBy()
{
- return $this->validFor;
+ return $this->recognizedBy;
}
/**
- * @param DateInterval|string|null $validFor
+ * @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 setValidFor($validFor)
+ public function setRecognizedBy($recognizedBy)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "null",
];
- $validFor = self::checkTypes($validFor, $types);
+ $recognizedBy = self::checkTypes($recognizedBy, $types);
- $this->validFor = $validFor;
+ $this->recognizedBy = $recognizedBy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getEducationalLevel()
+ public function getValidIn()
{
- return $this->educationalLevel;
+ return $this->validIn;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @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 setEducationalLevel($educationalLevel)
+ public function setValidIn($validIn)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $educationalLevel = self::checkTypes($educationalLevel, $types);
+ $validIn = self::checkTypes($validIn, $types);
- $this->educationalLevel = $educationalLevel;
+ $this->validIn = $validIn;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return DateInterval|string|null
*/
- public function getCredentialCategory()
+ public function getValidFor()
{
- return $this->credentialCategory;
+ return $this->validFor;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $credentialCategory
+ * @param DateInterval|string|null $validFor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCredentialCategory($credentialCategory)
+ public function setValidFor($validFor)
{
$types = [
+ "DateInterval",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "null",
];
- $credentialCategory = self::checkTypes($credentialCategory, $types);
+ $validFor = self::checkTypes($validFor, $types);
- $this->credentialCategory = $credentialCategory;
+ $this->validFor = $validFor;
}
/**
- * @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
*/
- public function getCompetencyRequired()
+ public function getCredentialCategory()
{
- return $this->competencyRequired;
+ return $this->credentialCategory;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $competencyRequired
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $credentialCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCompetencyRequired($competencyRequired)
+ public function setCredentialCategory($credentialCategory)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $competencyRequired = self::checkTypes($competencyRequired, $types);
+ $credentialCategory = self::checkTypes($credentialCategory, $types);
- $this->competencyRequired = $competencyRequired;
+ $this->credentialCategory = $credentialCategory;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getValidIn()
+ public function getCompetencyRequired()
{
- return $this->validIn;
+ return $this->competencyRequired;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $validIn
+ * @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 setValidIn($validIn)
+ public function setCompetencyRequired($competencyRequired)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $validIn = self::checkTypes($validIn, $types);
+ $competencyRequired = self::checkTypes($competencyRequired, $types);
- $this->validIn = $validIn;
+ $this->competencyRequired = $competencyRequired;
}
}
diff --git a/src/Models/SchemaOrg/EducationalOccupationalProgram.php b/src/Models/SchemaOrg/EducationalOccupationalProgram.php
index 56cf7a09..c0dabb5b 100644
--- a/src/Models/SchemaOrg/EducationalOccupationalProgram.php
+++ b/src/Models/SchemaOrg/EducationalOccupationalProgram.php
@@ -17,42 +17,42 @@ public static function getType()
public static function fieldList() {
$fields = [
- "programPrerequisites" => "programPrerequisites",
+ "dayOfWeek" => "dayOfWeek",
"hasCourse" => "hasCourse",
- "startDate" => "startDate",
- "salaryUponCompletion" => "salaryUponCompletion",
+ "applicationDeadline" => "applicationDeadline",
+ "trainingSalary" => "trainingSalary",
+ "programType" => "programType",
+ "occupationalCredentialAwarded" => "occupationalCredentialAwarded",
"termsPerYear" => "termsPerYear",
- "dayOfWeek" => "dayOfWeek",
- "offers" => "offers",
+ "salaryUponCompletion" => "salaryUponCompletion",
+ "timeToComplete" => "timeToComplete",
+ "occupationalCategory" => "occupationalCategory",
+ "maximumEnrollment" => "maximumEnrollment",
+ "educationalProgramMode" => "educationalProgramMode",
+ "startDate" => "startDate",
"typicalCreditsPerTerm" => "typicalCreditsPerTerm",
"applicationStartDate" => "applicationStartDate",
- "timeOfDay" => "timeOfDay",
- "endDate" => "endDate",
+ "numberOfCredits" => "numberOfCredits",
+ "offers" => "offers",
"provider" => "provider",
- "trainingSalary" => "trainingSalary",
+ "programPrerequisites" => "programPrerequisites",
"educationalCredentialAwarded" => "educationalCredentialAwarded",
- "numberOfCredits" => "numberOfCredits",
- "timeToComplete" => "timeToComplete",
- "occupationalCredentialAwarded" => "occupationalCredentialAwarded",
"termDuration" => "termDuration",
- "educationalProgramMode" => "educationalProgramMode",
- "programType" => "programType",
- "maximumEnrollment" => "maximumEnrollment",
"financialAidEligible" => "financialAidEligible",
- "applicationDeadline" => "applicationDeadline",
- "occupationalCategory" => "occupationalCategory",
+ "endDate" => "endDate",
+ "timeOfDay" => "timeOfDay",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Prerequisites for enrolling in the program.
+ * The day of the week for which these opening hours are valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null
*/
- protected $programPrerequisites;
+ protected $dayOfWeek;
/**
* 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.
@@ -63,157 +63,158 @@ public static function fieldList() {
protected $hasCourse;
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The date on which the program stops collecting applications for the next enrollment cycle. Flexible application deadlines (for example, a program with rolling admissions) can be described in a textual string, rather than as a DateTime.
*
*
- * @var Date|DateTime|null
+ * @var Date|string|null
*/
- protected $startDate;
+ protected $applicationDeadline;
/**
- * The expected salary upon completing the training.
+ * The estimated salary earned while in the program.
*
*
* @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- protected $salaryUponCompletion;
+ protected $trainingSalary;
/**
- * 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 type of educational or occupational program. For example, classroom, internship, alternance, etc.
*
*
- * @var Number|null
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $termsPerYear;
+ protected $programType;
/**
- * The day of the week for which these opening hours are valid.
+ * 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 \OpenActive\Enums\SchemaOrg\DayOfWeek|null
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $dayOfWeek;
+ protected $occupationalCredentialAwarded;
/**
- * 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 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 \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var Number|null
*/
- protected $offers;
+ protected $termsPerYear;
/**
- * 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 expected salary upon completing the training.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- protected $typicalCreditsPerTerm;
+ protected $salaryUponCompletion;
/**
- * 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".
+ * 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
+ * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- protected $timeOfDay;
+ protected $occupationalCategory;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * The maximum number of students who may be enrolled in the program.
*
*
- * @var Date|DateTime|null
+ * @var int|null
*/
- protected $endDate;
+ protected $maximumEnrollment;
/**
- * 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.
+ * 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 \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $provider;
+ protected $educationalProgramMode;
/**
- * The estimated salary earned while in the program.
+ * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @var Date|DateTime|null
*/
- protected $trainingSalary;
+ protected $startDate;
/**
- * 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 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 string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null
*/
- protected $educationalCredentialAwarded;
+ protected $typicalCreditsPerTerm;
/**
- * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.
+ * The date at which the program begins collecting applications for the next enrollment cycle.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @var Date|null
*/
- protected $numberOfCredits;
+ protected $applicationStartDate;
/**
- * 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 int|\OpenActive\Models\SchemaOrg\StructuredValue|string|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.
+ * 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\EducationalOccupationalCredential|string
+ * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- protected $occupationalCredentialAwarded;
+ protected $offers;
/**
- * 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\Person|\OpenActive\Models\SchemaOrg\Organization|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 ).
+ * Prerequisites for enrolling in the program.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
*/
- protected $educationalProgramMode;
+ protected $programPrerequisites;
/**
- * The type of educational or occupational program. For example, classroom, internship, alternance, etc..
+ * 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 string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $programType;
+ protected $educationalCredentialAwarded;
/**
- * The maximum number of students who may be enrolled in the 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 int|null
+ * @var DateInterval|string|null
*/
- protected $maximumEnrollment;
+ protected $termDuration;
/**
* A financial aid type or program which students may use to pay for tuition or fees associated with the program.
@@ -224,47 +225,44 @@ public static function fieldList() {
protected $financialAidEligible;
/**
- * The date at which the program stops collecting applications for the next enrollment cycle.
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var Date|null
+ * @var Date|DateTime|null
*/
- protected $applicationDeadline;
+ protected $endDate;
/**
- * 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 time of day the program normally runs. For example, "evenings".
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var string
*/
- protected $occupationalCategory;
+ protected $timeOfDay;
/**
- * @return \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null
*/
- public function getProgramPrerequisites()
+ public function getDayOfWeek()
{
- return $this->programPrerequisites;
+ return $this->dayOfWeek;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $programPrerequisites
+ * @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 setProgramPrerequisites($programPrerequisites)
+ public function setDayOfWeek($dayOfWeek)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AlignmentObject",
- "\OpenActive\Models\SchemaOrg\Course",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
- "string",
+ "\OpenActive\Enums\SchemaOrg\DayOfWeek",
+ "null",
];
- $programPrerequisites = self::checkTypes($programPrerequisites, $types);
+ $dayOfWeek = self::checkTypes($dayOfWeek, $types);
- $this->programPrerequisites = $programPrerequisites;
+ $this->dayOfWeek = $dayOfWeek;
}
/**
@@ -293,486 +291,489 @@ public function setHasCourse($hasCourse)
}
/**
- * @return Date|DateTime|null
+ * @return Date|string|null
*/
- public function getStartDate()
+ public function getApplicationDeadline()
{
- return $this->startDate;
+ return $this->applicationDeadline;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param Date|string|null $applicationDeadline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setApplicationDeadline($applicationDeadline)
{
$types = [
"Date",
- "DateTime",
+ "string",
"null",
];
- $startDate = self::checkTypes($startDate, $types);
+ $applicationDeadline = self::checkTypes($applicationDeadline, $types);
- $this->startDate = $startDate;
+ $this->applicationDeadline = $applicationDeadline;
}
/**
* @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- public function getSalaryUponCompletion()
+ public function getTrainingSalary()
{
- return $this->salaryUponCompletion;
+ return $this->trainingSalary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $salaryUponCompletion
+ * @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 setSalaryUponCompletion($salaryUponCompletion)
+ public function setTrainingSalary($trainingSalary)
{
$types = [
"\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
];
- $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types);
+ $trainingSalary = self::checkTypes($trainingSalary, $types);
- $this->salaryUponCompletion = $salaryUponCompletion;
+ $this->trainingSalary = $trainingSalary;
}
/**
- * @return Number|null
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getTermsPerYear()
+ public function getProgramType()
{
- return $this->termsPerYear;
+ return $this->programType;
}
/**
- * @param Number|null $termsPerYear
+ * @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 setTermsPerYear($termsPerYear)
+ public function setProgramType($programType)
{
$types = [
- "Number",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $termsPerYear = self::checkTypes($termsPerYear, $types);
+ $programType = self::checkTypes($programType, $types);
- $this->termsPerYear = $termsPerYear;
+ $this->programType = $programType;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getDayOfWeek()
+ public function getOccupationalCredentialAwarded()
{
- return $this->dayOfWeek;
+ return $this->occupationalCredentialAwarded;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|null $dayOfWeek
+ * @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 setDayOfWeek($dayOfWeek)
+ public function setOccupationalCredentialAwarded($occupationalCredentialAwarded)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\DayOfWeek",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $dayOfWeek = self::checkTypes($dayOfWeek, $types);
+ $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
- $this->dayOfWeek = $dayOfWeek;
+ $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return Number|null
*/
- public function getOffers()
+ public function getTermsPerYear()
{
- return $this->offers;
+ return $this->termsPerYear;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @param Number|null $termsPerYear
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOffers($offers)
+ public function setTermsPerYear($termsPerYear)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
- "string",
+ "Number",
+ "null",
];
- $offers = self::checkTypes($offers, $types);
+ $termsPerYear = self::checkTypes($termsPerYear, $types);
- $this->offers = $offers;
+ $this->termsPerYear = $termsPerYear;
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
*/
- public function getTypicalCreditsPerTerm()
+ public function getSalaryUponCompletion()
{
- return $this->typicalCreditsPerTerm;
+ return $this->salaryUponCompletion;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $typicalCreditsPerTerm
+ * @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 setTypicalCreditsPerTerm($typicalCreditsPerTerm)
+ public function setSalaryUponCompletion($salaryUponCompletion)
{
$types = [
- "int",
- "\OpenActive\Models\SchemaOrg\StructuredValue",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
- "null",
];
- $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types);
+ $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types);
- $this->typicalCreditsPerTerm = $typicalCreditsPerTerm;
+ $this->salaryUponCompletion = $salaryUponCompletion;
}
/**
- * @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\Models\SchemaOrg\CategoryCode|string
*/
- public function getTimeOfDay()
+ public function getOccupationalCategory()
{
- return $this->timeOfDay;
+ return $this->occupationalCategory;
}
/**
- * @param string $timeOfDay
+ * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTimeOfDay($timeOfDay)
+ public function setOccupationalCategory($occupationalCategory)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
];
- $timeOfDay = self::checkTypes($timeOfDay, $types);
+ $occupationalCategory = self::checkTypes($occupationalCategory, $types);
- $this->timeOfDay = $timeOfDay;
+ $this->occupationalCategory = $occupationalCategory;
}
/**
- * @return Date|DateTime|null
+ * @return int|null
*/
- public function getEndDate()
+ public function getMaximumEnrollment()
{
- return $this->endDate;
+ return $this->maximumEnrollment;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param int|null $maximumEnrollment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setMaximumEnrollment($maximumEnrollment)
{
$types = [
- "Date",
- "DateTime",
+ "int",
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $maximumEnrollment = self::checkTypes($maximumEnrollment, $types);
- $this->endDate = $endDate;
+ $this->maximumEnrollment = $maximumEnrollment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getProvider()
+ public function getEducationalProgramMode()
{
- return $this->provider;
+ return $this->educationalProgramMode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param string $educationalProgramMode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setEducationalProgramMode($educationalProgramMode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $provider = self::checkTypes($provider, $types);
+ $educationalProgramMode = self::checkTypes($educationalProgramMode, $types);
- $this->provider = $provider;
+ $this->educationalProgramMode = $educationalProgramMode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string
+ * @return Date|DateTime|null
*/
- public function getTrainingSalary()
+ public function getStartDate()
{
- return $this->trainingSalary;
+ return $this->startDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $trainingSalary
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrainingSalary($trainingSalary)
+ public function setStartDate($startDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $trainingSalary = self::checkTypes($trainingSalary, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->trainingSalary = $trainingSalary;
+ $this->startDate = $startDate;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null
*/
- public function getEducationalCredentialAwarded()
+ public function getTypicalCreditsPerTerm()
{
- return $this->educationalCredentialAwarded;
+ return $this->typicalCreditsPerTerm;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded
+ * @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 setEducationalCredentialAwarded($educationalCredentialAwarded)
+ public function setTypicalCreditsPerTerm($typicalCreditsPerTerm)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "int",
+ "null",
];
- $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
+ $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types);
- $this->educationalCredentialAwarded = $educationalCredentialAwarded;
+ $this->typicalCreditsPerTerm = $typicalCreditsPerTerm;
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
+ * @return Date|null
*/
- public function getNumberOfCredits()
+ public function getApplicationStartDate()
{
- return $this->numberOfCredits;
+ return $this->applicationStartDate;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $numberOfCredits
+ * @param Date|null $applicationStartDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfCredits($numberOfCredits)
+ public function setApplicationStartDate($applicationStartDate)
{
$types = [
- "int",
- "\OpenActive\Models\SchemaOrg\StructuredValue",
- "string",
+ "Date",
"null",
];
- $numberOfCredits = self::checkTypes($numberOfCredits, $types);
+ $applicationStartDate = self::checkTypes($applicationStartDate, $types);
- $this->numberOfCredits = $numberOfCredits;
+ $this->applicationStartDate = $applicationStartDate;
}
/**
- * @return DateInterval|string|null
+ * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
*/
- public function getTimeToComplete()
+ public function getNumberOfCredits()
{
- return $this->timeToComplete;
+ return $this->numberOfCredits;
}
/**
- * @param DateInterval|string|null $timeToComplete
+ * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|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",
+ "int",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
"string",
"null",
];
- $timeToComplete = self::checkTypes($timeToComplete, $types);
+ $numberOfCredits = self::checkTypes($numberOfCredits, $types);
- $this->timeToComplete = $timeToComplete;
+ $this->numberOfCredits = $numberOfCredits;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getOccupationalCredentialAwarded()
+ public function getOffers()
{
- return $this->occupationalCredentialAwarded;
+ return $this->offers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded
+ * @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 setOccupationalCredentialAwarded($occupationalCredentialAwarded)
+ public function setOffers($offers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Demand",
"string",
];
- $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->occupationalCredentialAwarded = $occupationalCredentialAwarded;
+ $this->offers = $offers;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTermDuration()
+ public function getProvider()
{
- return $this->termDuration;
+ return $this->provider;
}
/**
- * @param DateInterval|string|null $termDuration
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "null",
];
- $termDuration = self::checkTypes($termDuration, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->termDuration = $termDuration;
+ $this->provider = $provider;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course
*/
- public function getEducationalProgramMode()
+ public function getProgramPrerequisites()
{
- return $this->educationalProgramMode;
+ return $this->programPrerequisites;
}
/**
- * @param string $educationalProgramMode
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course $programPrerequisites
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalProgramMode($educationalProgramMode)
+ public function setProgramPrerequisites($programPrerequisites)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
+ "\OpenActive\Models\SchemaOrg\Course",
];
- $educationalProgramMode = self::checkTypes($educationalProgramMode, $types);
+ $programPrerequisites = self::checkTypes($programPrerequisites, $types);
- $this->educationalProgramMode = $educationalProgramMode;
+ $this->programPrerequisites = $programPrerequisites;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getProgramType()
+ public function getEducationalCredentialAwarded()
{
- return $this->programType;
+ return $this->educationalCredentialAwarded;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $programType
+ * @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 setProgramType($programType)
+ public function setEducationalCredentialAwarded($educationalCredentialAwarded)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $programType = self::checkTypes($programType, $types);
+ $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types);
- $this->programType = $programType;
+ $this->educationalCredentialAwarded = $educationalCredentialAwarded;
}
/**
- * @return int|null
+ * @return DateInterval|string|null
*/
- public function getMaximumEnrollment()
+ public function getTermDuration()
{
- return $this->maximumEnrollment;
+ return $this->termDuration;
}
/**
- * @param int|null $maximumEnrollment
+ * @param DateInterval|string|null $termDuration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumEnrollment($maximumEnrollment)
+ public function setTermDuration($termDuration)
{
$types = [
- "int",
+ "DateInterval",
+ "string",
"null",
];
- $maximumEnrollment = self::checkTypes($maximumEnrollment, $types);
+ $termDuration = self::checkTypes($termDuration, $types);
- $this->maximumEnrollment = $maximumEnrollment;
+ $this->termDuration = $termDuration;
}
/**
@@ -801,53 +802,53 @@ public function setFinancialAidEligible($financialAidEligible)
}
/**
- * @return Date|null
+ * @return Date|DateTime|null
*/
- public function getApplicationDeadline()
+ public function getEndDate()
{
- return $this->applicationDeadline;
+ return $this->endDate;
}
/**
- * @param Date|null $applicationDeadline
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationDeadline($applicationDeadline)
+ public function setEndDate($endDate)
{
$types = [
"Date",
+ "DateTime",
"null",
];
- $applicationDeadline = self::checkTypes($applicationDeadline, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->applicationDeadline = $applicationDeadline;
+ $this->endDate = $endDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return string
*/
- public function getOccupationalCategory()
+ public function getTimeOfDay()
{
- return $this->occupationalCategory;
+ return $this->timeOfDay;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param string $timeOfDay
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setTimeOfDay($timeOfDay)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $timeOfDay = self::checkTypes($timeOfDay, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->timeOfDay = $timeOfDay;
}
}
diff --git a/src/Models/SchemaOrg/EmployeeRole.php b/src/Models/SchemaOrg/EmployeeRole.php
index 6740e91d..220c4e7b 100644
--- a/src/Models/SchemaOrg/EmployeeRole.php
+++ b/src/Models/SchemaOrg/EmployeeRole.php
@@ -25,7 +25,7 @@ public static function fieldList() {
}
/**
- * 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 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
@@ -36,7 +36,7 @@ public static function fieldList() {
* The base salary of the job or of an employee in an EmployeeRole.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
protected $baseSalary;
@@ -65,7 +65,7 @@ public function setSalaryCurrency($salaryCurrency)
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
public function getBaseSalary()
{
@@ -73,17 +73,17 @@ public function getBaseSalary()
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary
+ * @param \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $baseSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setBaseSalary($baseSalary)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\PriceSpecification",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
"null",
];
diff --git a/src/Models/SchemaOrg/EngineSpecification.php b/src/Models/SchemaOrg/EngineSpecification.php
index e534fd48..b366ba97 100644
--- a/src/Models/SchemaOrg/EngineSpecification.php
+++ b/src/Models/SchemaOrg/EngineSpecification.php
@@ -17,182 +17,182 @@ public static function getType()
public static function fieldList() {
$fields = [
- "fuelType" => "fuelType",
- "torque" => "torque",
- "engineDisplacement" => "engineDisplacement",
"enginePower" => "enginePower",
+ "engineDisplacement" => "engineDisplacement",
"engineType" => "engineType",
+ "torque" => "torque",
+ "fuelType" => "fuelType",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type of fuel suitable for the engine or engines of the vehicle. If the vehicle has only one engine, this property can be attached directly to the vehicle.
+ * 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 string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $fuelType;
+ protected $enginePower;
/**
- * 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 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 $torque;
+ protected $engineDisplacement;
/**
- * 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 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\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $enginePower;
+ protected $torque;
/**
- * The type of engine or engines powering the vehicle.
+ * The type of fuel suitable for the engine or engines of the vehicle. If the vehicle has only one engine, this property can be attached directly to the vehicle.
*
*
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- protected $engineType;
+ protected $fuelType;
/**
- * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getFuelType()
+ public function getEnginePower()
{
- return $this->fuelType;
+ return $this->enginePower;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $fuelType
+ * @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 setFuelType($fuelType)
+ public function setEnginePower($enginePower)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "null",
];
- $fuelType = self::checkTypes($fuelType, $types);
+ $enginePower = self::checkTypes($enginePower, $types);
- $this->fuelType = $fuelType;
+ $this->enginePower = $enginePower;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getTorque()
+ public function getEngineDisplacement()
{
- return $this->torque;
+ return $this->engineDisplacement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $torque
+ * @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 setTorque($torque)
+ public function setEngineDisplacement($engineDisplacement)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $torque = self::checkTypes($torque, $types);
+ $engineDisplacement = self::checkTypes($engineDisplacement, $types);
- $this->torque = $torque;
+ $this->engineDisplacement = $engineDisplacement;
}
/**
- * @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 getTorque()
{
- return $this->enginePower;
+ return $this->torque;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $enginePower
+ * @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 setEnginePower($enginePower)
+ public function setTorque($torque)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $enginePower = self::checkTypes($enginePower, $types);
+ $torque = self::checkTypes($torque, $types);
- $this->enginePower = $enginePower;
+ $this->torque = $torque;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null
*/
- public function getEngineType()
+ public function getFuelType()
{
- return $this->engineType;
+ return $this->fuelType;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $engineType
+ * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $fuelType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEngineType($engineType)
+ public function setFuelType($fuelType)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"null",
];
- $engineType = self::checkTypes($engineType, $types);
+ $fuelType = self::checkTypes($fuelType, $types);
- $this->engineType = $engineType;
+ $this->fuelType = $fuelType;
}
}
diff --git a/src/Models/SchemaOrg/EntryPoint.php b/src/Models/SchemaOrg/EntryPoint.php
index 90f87fbb..5c6edb8c 100644
--- a/src/Models/SchemaOrg/EntryPoint.php
+++ b/src/Models/SchemaOrg/EntryPoint.php
@@ -17,49 +17,49 @@ public static function getType()
public static function fieldList() {
$fields = [
- "actionApplication" => "actionApplication",
- "application" => "application",
"actionPlatform" => "actionPlatform",
- "httpMethod" => "httpMethod",
- "urlTemplate" => "urlTemplate",
- "encodingType" => "encodingType",
"contentType" => "contentType",
+ "actionApplication" => "actionApplication",
+ "encodingType" => "encodingType",
+ "urlTemplate" => "urlTemplate",
+ "httpMethod" => "httpMethod",
+ "application" => "application",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An application that can complete the request.
+ * 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 \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @var \OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|string|null
*/
- protected $actionApplication;
+ protected $actionPlatform;
/**
- * 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 application that can complete the request.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- protected $actionPlatform;
+ protected $actionApplication;
/**
- * An HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint. Values are capitalized strings as used in HTTP.
+ * The supported encoding type(s) for an EntryPoint request.
*
*
* @var string
*/
- protected $httpMethod;
+ protected $encodingType;
/**
* An url template (RFC6570) that will be used to construct the target of the execution of the action.
@@ -70,119 +70,118 @@ public static function fieldList() {
protected $urlTemplate;
/**
- * The supported encoding type(s) for an EntryPoint 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 string
*/
- protected $encodingType;
+ protected $httpMethod;
/**
- * The supported content type(s) for an EntryPoint response.
+ * An application that can complete the request.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- protected $contentType;
+ protected $application;
/**
- * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
+ * @return \OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|string|null
*/
- public function getActionApplication()
+ public function getActionPlatform()
{
- return $this->actionApplication;
+ return $this->actionPlatform;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $actionApplication
+ * @param \OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|string|null $actionPlatform
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActionApplication($actionApplication)
+ public function setActionPlatform($actionPlatform)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SoftwareApplication",
+ "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration",
"string",
+ "null",
];
- $actionApplication = self::checkTypes($actionApplication, $types);
+ $actionPlatform = self::checkTypes($actionPlatform, $types);
- $this->actionApplication = $actionApplication;
+ $this->actionPlatform = $actionPlatform;
}
/**
- * @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 \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- public function getActionPlatform()
+ public function getActionApplication()
{
- return $this->actionPlatform;
+ return $this->actionApplication;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null $actionPlatform
+ * @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 setActionPlatform($actionPlatform)
+ public function setActionApplication($actionApplication)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
- "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration",
- "null",
];
- $actionPlatform = self::checkTypes($actionPlatform, $types);
+ $actionApplication = self::checkTypes($actionApplication, $types);
- $this->actionPlatform = $actionPlatform;
+ $this->actionApplication = $actionApplication;
}
/**
* @return string
*/
- public function getHttpMethod()
+ public function getEncodingType()
{
- return $this->httpMethod;
+ return $this->encodingType;
}
/**
- * @param string $httpMethod
+ * @param string $encodingType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHttpMethod($httpMethod)
+ public function setEncodingType($encodingType)
{
$types = [
"string",
];
- $httpMethod = self::checkTypes($httpMethod, $types);
+ $encodingType = self::checkTypes($encodingType, $types);
- $this->httpMethod = $httpMethod;
+ $this->encodingType = $encodingType;
}
/**
@@ -212,49 +211,50 @@ public function setUrlTemplate($urlTemplate)
/**
* @return string
*/
- public function getEncodingType()
+ public function getHttpMethod()
{
- return $this->encodingType;
+ return $this->httpMethod;
}
/**
- * @param string $encodingType
+ * @param string $httpMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodingType($encodingType)
+ public function setHttpMethod($httpMethod)
{
$types = [
"string",
];
- $encodingType = self::checkTypes($encodingType, $types);
+ $httpMethod = self::checkTypes($httpMethod, $types);
- $this->encodingType = $encodingType;
+ $this->httpMethod = $httpMethod;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string
*/
- public function getContentType()
+ public function getApplication()
{
- return $this->contentType;
+ return $this->application;
}
/**
- * @param string $contentType
+ * @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 setContentType($contentType)
+ public function setApplication($application)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\SoftwareApplication",
"string",
];
- $contentType = self::checkTypes($contentType, $types);
+ $application = self::checkTypes($application, $types);
- $this->contentType = $contentType;
+ $this->application = $application;
}
}
diff --git a/src/Models/SchemaOrg/Enumeration.php b/src/Models/SchemaOrg/Enumeration.php
index 62d87fa6..912d4d1c 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\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|null
*/
protected $supersededBy;
/**
- * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Class|\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\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Class|\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\Enums\PropertyEnumeration",
"\OpenActive\Models\SchemaOrg\Class",
+ "\OpenActive\Models\SchemaOrg\Enumeration",
"string",
- "\OpenActive\Enums\PropertyEnumeration",
"null",
];
diff --git a/src/Models/SchemaOrg/Episode.php b/src/Models/SchemaOrg/Episode.php
index faf85562..558fc3e4 100644
--- a/src/Models/SchemaOrg/Episode.php
+++ b/src/Models/SchemaOrg/Episode.php
@@ -17,93 +17,93 @@ public static function getType()
public static function fieldList() {
$fields = [
- "episodeNumber" => "episodeNumber",
- "director" => "director",
"actor" => "actor",
"trailer" => "trailer",
- "partOfSeries" => "partOfSeries",
- "duration" => "duration",
"partOfSeason" => "partOfSeason",
- "productionCompany" => "productionCompany",
"actors" => "actors",
- "musicBy" => "musicBy",
"directors" => "directors",
+ "productionCompany" => "productionCompany",
+ "duration" => "duration",
+ "partOfSeries" => "partOfSeries",
+ "director" => "director",
+ "musicBy" => "musicBy",
+ "episodeNumber" => "episodeNumber",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Position of the episode within an ordered group of episodes.
+ * An actor (individual or a group), 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 string|int|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- protected $episodeNumber;
+ protected $actor;
/**
- * 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.
+ * The season to which this episode belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- protected $actor;
+ protected $partOfSeason;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * 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\VideoObject|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $trailer;
+ protected $actors;
/**
- * 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 duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $duration;
+ protected $productionCompany;
/**
- * The season to which this episode belongs.
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @var DateInterval|string|null
*/
- protected $partOfSeason;
+ protected $duration;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The series to which this episode or season belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- protected $productionCompany;
+ protected $partOfSeries;
/**
- * 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.
@@ -114,238 +114,238 @@ public static function fieldList() {
protected $musicBy;
/**
- * 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.
+ * Position of the episode within an ordered group of episodes.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string|int|null
*/
- protected $directors;
+ protected $episodeNumber;
/**
- * @return string|int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- public function getEpisodeNumber()
+ public function getActor()
{
- return $this->episodeNumber;
+ return $this->actor;
}
/**
- * @param string|int|null $episodeNumber
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string $actor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpisodeNumber($episodeNumber)
+ public function setActor($actor)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PerformingGroup",
"string",
- "int",
- "null",
];
- $episodeNumber = self::checkTypes($episodeNumber, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->episodeNumber = $episodeNumber;
+ $this->actor = $actor;
}
/**
- * @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;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
*/
- public function getActor()
+ public function getPartOfSeason()
{
- return $this->actor;
+ return $this->partOfSeason;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @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 setActor($actor)
+ public function setPartOfSeason($partOfSeason)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $partOfSeason = self::checkTypes($partOfSeason, $types);
- $this->actor = $actor;
+ $this->partOfSeason = $partOfSeason;
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getTrailer()
+ public function getActors()
{
- return $this->trailer;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @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 setTrailer($trailer)
+ public function setActors($actors)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $trailer = self::checkTypes($trailer, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->trailer = $trailer;
+ $this->actors = $actors;
}
/**
- * @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 DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDuration()
+ public function getProductionCompany()
{
- return $this->duration;
+ return $this->productionCompany;
}
/**
- * @param DateInterval|string|null $duration
+ * @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 setDuration($duration)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->duration = $duration;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string
+ * @return DateInterval|string|null
*/
- public function getPartOfSeason()
+ public function getDuration()
{
- return $this->partOfSeason;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPartOfSeason($partOfSeason)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWorkSeason",
+ "DateInterval",
"string",
+ "null",
];
- $partOfSeason = self::checkTypes($partOfSeason, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->partOfSeason = $partOfSeason;
+ $this->duration = $duration;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string
*/
- public function getProductionCompany()
+ public function getPartOfSeries()
{
- return $this->productionCompany;
+ return $this->partOfSeries;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @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 setProductionCompany($productionCompany)
+ public function setPartOfSeries($partOfSeries)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\CreativeWorkSeries",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $partOfSeries = self::checkTypes($partOfSeries, $types);
- $this->productionCompany = $productionCompany;
+ $this->partOfSeries = $partOfSeries;
}
/**
* @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;
}
/**
@@ -375,28 +375,29 @@ public function setMusicBy($musicBy)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string|int|null
*/
- public function getDirectors()
+ public function getEpisodeNumber()
{
- return $this->directors;
+ return $this->episodeNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @param string|int|null $episodeNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirectors($directors)
+ public function setEpisodeNumber($episodeNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "int",
+ "null",
];
- $directors = self::checkTypes($directors, $types);
+ $episodeNumber = self::checkTypes($episodeNumber, $types);
- $this->directors = $directors;
+ $this->episodeNumber = $episodeNumber;
}
}
diff --git a/src/Models/SchemaOrg/Event.php b/src/Models/SchemaOrg/Event.php
index ece71294..a9c60e02 100644
--- a/src/Models/SchemaOrg/Event.php
+++ b/src/Models/SchemaOrg/Event.php
@@ -17,212 +17,212 @@ public static function getType()
public static function fieldList() {
$fields = [
- "superEvent" => "superEvent",
+ "performers" => "performers",
+ "organizer" => "organizer",
+ "contributor" => "contributor",
+ "workPerformed" => "workPerformed",
+ "actor" => "actor",
"eventAttendanceMode" => "eventAttendanceMode",
- "review" => "review",
- "translator" => "translator",
- "startDate" => "startDate",
- "composer" => "composer",
- "maximumAttendeeCapacity" => "maximumAttendeeCapacity",
- "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity",
- "director" => "director",
"funding" => "funding",
- "keywords" => "keywords",
- "audience" => "audience",
- "offers" => "offers",
+ "workFeatured" => "workFeatured",
+ "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity",
"subEvent" => "subEvent",
- "actor" => "actor",
- "eventStatus" => "eventStatus",
- "endDate" => "endDate",
+ "about" => "about",
+ "recordedIn" => "recordedIn",
"funder" => "funder",
+ "subEvents" => "subEvents",
+ "keywords" => "keywords",
+ "isAccessibleForFree" => "isAccessibleForFree",
+ "previousStartDate" => "previousStartDate",
"performer" => "performer",
- "aggregateRating" => "aggregateRating",
- "typicalAgeRange" => "typicalAgeRange",
"location" => "location",
- "performers" => "performers",
- "duration" => "duration",
- "organizer" => "organizer",
- "sponsor" => "sponsor",
- "previousStartDate" => "previousStartDate",
- "isAccessibleForFree" => "isAccessibleForFree",
+ "startDate" => "startDate",
+ "typicalAgeRange" => "typicalAgeRange",
+ "translator" => "translator",
+ "review" => "review",
"remainingAttendeeCapacity" => "remainingAttendeeCapacity",
- "subEvents" => "subEvents",
- "workPerformed" => "workPerformed",
+ "eventSchedule" => "eventSchedule",
+ "offers" => "offers",
+ "duration" => "duration",
+ "superEvent" => "superEvent",
+ "director" => "director",
"doorTime" => "doorTime",
- "inLanguage" => "inLanguage",
- "about" => "about",
- "recordedIn" => "recordedIn",
"maximumPhysicalAttendeeCapacity" => "maximumPhysicalAttendeeCapacity",
"attendee" => "attendee",
- "workFeatured" => "workFeatured",
- "eventSchedule" => "eventSchedule",
- "contributor" => "contributor",
+ "sponsor" => "sponsor",
+ "aggregateRating" => "aggregateRating",
+ "inLanguage" => "inLanguage",
+ "endDate" => "endDate",
"attendees" => "attendees",
+ "eventStatus" => "eventStatus",
+ "maximumAttendeeCapacity" => "maximumAttendeeCapacity",
+ "composer" => "composer",
+ "audience" => "audience",
];
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.
+ * The main performer or performers of the event—for example, a presenter, musician, or actor.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $superEvent;
+ protected $performers;
/**
- * The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.
+ * An organizer of an Event.
*
*
- * @var \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $eventAttendanceMode;
+ protected $organizer;
/**
- * A review of the item.
+ * A secondary contributor to the CreativeWork or Event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $review;
+ protected $contributor;
/**
- * 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.
+ * A work performed in some event, for example a play performed in a TheaterEvent.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $translator;
+ protected $workPerformed;
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * An actor (individual or a group), 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 Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- protected $startDate;
+ protected $actor;
/**
- * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
+ * 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 $composer;
+ protected $eventAttendanceMode;
/**
- * The total number of individuals that may attend an event or venue.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $maximumAttendeeCapacity;
+ protected $funding;
/**
- * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]).
+ * 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 int|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $maximumVirtualAttendeeCapacity;
+ protected $workFeatured;
/**
- * 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 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\Person|string
+ * @var int|null
*/
- protected $director;
+ protected $maximumVirtualAttendeeCapacity;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * 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\Grant|string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $funding;
+ protected $subEvent;
/**
- * 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.
+ * The subject matter of the content.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $keywords;
+ protected $about;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * The CreativeWork that captured all or part of this Event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Audience|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $audience;
+ protected $recordedIn;
/**
- * 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 or organization that supports (sponsors) something through some kind of financial contribution.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $offers;
+ protected $funder;
/**
- * 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.
+ * Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.
*
*
* @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $subEvent;
+ protected $subEvents;
/**
- * 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.
+ * 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\Person|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $actor;
+ protected $keywords;
/**
- * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.
+ * A flag to signal that the item, event, or place is accessible for free.
*
*
- * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null
+ * @var bool|null
*/
- protected $eventStatus;
+ protected $isAccessibleForFree;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * 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 Date|DateTime|null
+ * @var Date|null
*/
- protected $endDate;
+ protected $previousStartDate;
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ * A performer at the event—for example, a presenter, musician, musical group or actor.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $funder;
+ protected $performer;
/**
- * A performer at the event—for example, a presenter, musician, musical group or actor.
+ * 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\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- protected $performer;
+ protected $location;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var Date|DateTime|null
*/
- protected $aggregateRating;
+ protected $startDate;
/**
* The typical expected age range, e.g. '7-9', '11-'.
@@ -233,676 +233,678 @@ public static function fieldList() {
protected $typicalAgeRange;
/**
- * The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
+ * 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\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $location;
+ protected $translator;
/**
- * The main performer or performers of the event—for example, a presenter, musician, or actor.
+ * A review of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Review|string
*/
- protected $performers;
+ protected $review;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The number of attendee places for an event that remain unallocated.
*
*
- * @var DateInterval|string|null
+ * @var int|null
*/
- protected $duration;
+ protected $remainingAttendeeCapacity;
/**
- * 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.
+ * 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\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- protected $sponsor;
+ protected $offers;
/**
- * 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.
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var Date|null
+ * @var DateInterval|string|null
*/
- protected $previousStartDate;
+ protected $duration;
/**
- * A flag to signal that the item, event, or place is accessible for free.
+ * 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 bool|null
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $isAccessibleForFree;
+ protected $superEvent;
/**
- * 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.
+ * The time admission will commence.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var DateTime|string|null
*/
- protected $subEvents;
+ protected $doorTime;
/**
- * A work performed in some event, for example a play performed in a TheaterEvent.
+ * 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\CreativeWork|string
+ * @var int|null
*/
- protected $workPerformed;
+ protected $maximumPhysicalAttendeeCapacity;
/**
- * The time admission will commence.
+ * A person or organization attending the event.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $doorTime;
+ protected $attendee;
/**
- * 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 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\Language
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $inLanguage;
+ protected $sponsor;
/**
- * The subject matter of the content.
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Thing|string
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $about;
+ protected $aggregateRating;
/**
- * The CreativeWork that captured all or part of this 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\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- protected $recordedIn;
+ protected $inLanguage;
/**
- * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]).
+ * The end 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 $maximumPhysicalAttendeeCapacity;
+ protected $endDate;
/**
- * A person or organization attending the event.
+ * A person attending the event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $attendee;
+ protected $attendees;
/**
- * 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 eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
- protected $workFeatured;
+ protected $eventStatus;
/**
- * 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 total number of individuals that may attend an event or venue.
*
*
- * @var \OpenActive\Models\SchemaOrg\Schedule|string
+ * @var int|null
*/
- protected $eventSchedule;
+ protected $maximumAttendeeCapacity;
/**
- * A secondary contributor to the CreativeWork or Event.
+ * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $contributor;
+ protected $composer;
/**
- * A person attending the event.
+ * An intended audience, i.e. a group for whom something was created.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|string
*/
- protected $attendees;
+ protected $audience;
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getSuperEvent()
+ public function getPerformers()
{
- return $this->superEvent;
+ return $this->performers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $superEvent
+ * @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 setSuperEvent($superEvent)
+ public function setPerformers($performers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $superEvent = self::checkTypes($superEvent, $types);
+ $performers = self::checkTypes($performers, $types);
- $this->superEvent = $superEvent;
+ $this->performers = $performers;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getEventAttendanceMode()
+ public function getOrganizer()
{
- return $this->eventAttendanceMode;
+ return $this->organizer;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null $eventAttendanceMode
+ * @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 setEventAttendanceMode($eventAttendanceMode)
+ public function setOrganizer($organizer)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types);
+ $organizer = self::checkTypes($organizer, $types);
- $this->eventAttendanceMode = $eventAttendanceMode;
+ $this->organizer = $organizer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Review|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getReview()
+ public function getContributor()
{
- return $this->review;
+ return $this->contributor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Review|string $review
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReview($review)
+ public function setContributor($contributor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Review",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $review = self::checkTypes($review, $types);
+ $contributor = self::checkTypes($contributor, $types);
- $this->review = $review;
+ $this->contributor = $contributor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getTranslator()
+ public function getWorkPerformed()
{
- return $this->translator;
+ return $this->workPerformed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workPerformed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTranslator($translator)
+ public function setWorkPerformed($workPerformed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $translator = self::checkTypes($translator, $types);
+ $workPerformed = self::checkTypes($workPerformed, $types);
- $this->translator = $translator;
+ $this->workPerformed = $workPerformed;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- public function getStartDate()
+ public function getActor()
{
- return $this->startDate;
+ return $this->actor;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string $actor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setActor($actor)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PerformingGroup",
+ "string",
];
- $startDate = self::checkTypes($startDate, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->startDate = $startDate;
+ $this->actor = $actor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null
*/
- public function getComposer()
+ public function getEventAttendanceMode()
{
- return $this->composer;
+ return $this->eventAttendanceMode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer
+ * @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 setComposer($composer)
+ public function setEventAttendanceMode($eventAttendanceMode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration",
+ "null",
];
- $composer = self::checkTypes($composer, $types);
+ $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types);
- $this->composer = $composer;
+ $this->eventAttendanceMode = $eventAttendanceMode;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getMaximumAttendeeCapacity()
+ public function getFunding()
{
- return $this->maximumAttendeeCapacity;
+ return $this->funding;
}
/**
- * @param int|null $maximumAttendeeCapacity
+ * @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 setMaximumAttendeeCapacity($maximumAttendeeCapacity)
+ public function setFunding($funding)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Grant",
+ "string",
];
- $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->maximumAttendeeCapacity = $maximumAttendeeCapacity;
+ $this->funding = $funding;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getMaximumVirtualAttendeeCapacity()
+ public function getWorkFeatured()
{
- return $this->maximumVirtualAttendeeCapacity;
+ return $this->workFeatured;
}
/**
- * @param int|null $maximumVirtualAttendeeCapacity
+ * @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 setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity)
+ public function setWorkFeatured($workFeatured)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types);
+ $workFeatured = self::checkTypes($workFeatured, $types);
- $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity;
+ $this->workFeatured = $workFeatured;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return int|null
*/
- public function getDirector()
+ public function getMaximumVirtualAttendeeCapacity()
{
- return $this->director;
+ return $this->maximumVirtualAttendeeCapacity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param int|null $maximumVirtualAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "int",
+ "null",
];
- $director = self::checkTypes($director, $types);
+ $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types);
- $this->director = $director;
+ $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getFunding()
+ public function getSubEvent()
{
- return $this->funding;
+ return $this->subEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @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 setFunding($funding)
+ public function setSubEvent($subEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $subEvent = self::checkTypes($subEvent, $types);
- $this->funding = $funding;
+ $this->subEvent = $subEvent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getKeywords()
+ public function getAbout()
{
- return $this->keywords;
+ return $this->about;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords
+ * @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 setKeywords($keywords)
+ public function setAbout($about)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $keywords = self::checkTypes($keywords, $types);
+ $about = self::checkTypes($about, $types);
- $this->keywords = $keywords;
+ $this->about = $about;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getAudience()
+ public function getRecordedIn()
{
- return $this->audience;
+ return $this->recordedIn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @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 setAudience($audience)
+ public function setRecordedIn($recordedIn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $audience = self::checkTypes($audience, $types);
+ $recordedIn = self::checkTypes($recordedIn, $types);
- $this->audience = $audience;
+ $this->recordedIn = $recordedIn;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getOffers()
+ public function getFunder()
{
- return $this->offers;
+ return $this->funder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @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 setOffers($offers)
+ public function setFunder($funder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $offers = self::checkTypes($offers, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->offers = $offers;
+ $this->funder = $funder;
}
/**
* @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getSubEvent()
+ public function getSubEvents()
{
- return $this->subEvent;
+ return $this->subEvents;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $subEvent
+ * @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 setSubEvent($subEvent)
+ public function setSubEvents($subEvents)
{
$types = [
"\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $subEvent = self::checkTypes($subEvent, $types);
+ $subEvents = self::checkTypes($subEvents, $types);
- $this->subEvent = $subEvent;
+ $this->subEvents = $subEvents;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getActor()
+ public function getKeywords()
{
- return $this->actor;
+ return $this->keywords;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $keywords
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActor($actor)
+ public function setKeywords($keywords)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $actor = self::checkTypes($actor, $types);
+ $keywords = self::checkTypes($keywords, $types);
- $this->actor = $actor;
+ $this->keywords = $keywords;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\EventStatusType|null
+ * @return bool|null
*/
- public function getEventStatus()
+ public function getIsAccessibleForFree()
{
- return $this->eventStatus;
+ return $this->isAccessibleForFree;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\EventStatusType|null $eventStatus
+ * @param bool|null $isAccessibleForFree
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEventStatus($eventStatus)
+ public function setIsAccessibleForFree($isAccessibleForFree)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "bool",
"null",
];
- $eventStatus = self::checkTypes($eventStatus, $types);
+ $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
- $this->eventStatus = $eventStatus;
+ $this->isAccessibleForFree = $isAccessibleForFree;
}
/**
- * @return Date|DateTime|null
+ * @return Date|null
*/
- public function getEndDate()
+ public function getPreviousStartDate()
{
- return $this->endDate;
+ return $this->previousStartDate;
}
/**
- * @param Date|DateTime|null $endDate
+ * @param Date|null $previousStartDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndDate($endDate)
+ public function setPreviousStartDate($previousStartDate)
{
$types = [
"Date",
- "DateTime",
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $previousStartDate = self::checkTypes($previousStartDate, $types);
- $this->endDate = $endDate;
+ $this->previousStartDate = $previousStartDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getFunder()
+ public function getPerformer()
{
- return $this->funder;
+ return $this->performer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @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 setFunder($funder)
+ public function setPerformer($performer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $funder = self::checkTypes($funder, $types);
+ $performer = self::checkTypes($performer, $types);
- $this->funder = $funder;
+ $this->performer = $performer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- public function getPerformer()
+ public function getLocation()
{
- return $this->performer;
+ return $this->location;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $performer
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress $location
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPerformer($performer)
+ public function setLocation($location)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
"string",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\VirtualLocation",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $performer = self::checkTypes($performer, $types);
+ $location = self::checkTypes($location, $types);
- $this->performer = $performer;
+ $this->location = $location;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @return Date|DateTime|null
*/
- public function getAggregateRating()
+ public function getStartDate()
{
- return $this->aggregateRating;
+ return $this->startDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating
+ * @param Date|DateTime|null $startDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAggregateRating($aggregateRating)
+ public function setStartDate($startDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AggregateRating",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $aggregateRating = self::checkTypes($aggregateRating, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->aggregateRating = $aggregateRating;
+ $this->startDate = $startDate;
}
/**
@@ -930,513 +932,512 @@ public function setTypicalAgeRange($typicalAgeRange)
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getLocation()
+ public function getTranslator()
{
- return $this->location;
+ return $this->translator;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @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 setLocation($location)
+ public function setTranslator($translator)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "\OpenActive\Models\SchemaOrg\Place",
- "\OpenActive\Models\SchemaOrg\VirtualLocation",
];
- $location = self::checkTypes($location, $types);
+ $translator = self::checkTypes($translator, $types);
- $this->location = $location;
+ $this->translator = $translator;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Review|string
*/
- public function getPerformers()
+ public function getReview()
{
- return $this->performers;
+ return $this->review;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $performers
+ * @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 setPerformers($performers)
+ public function setReview($review)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Review",
"string",
];
- $performers = self::checkTypes($performers, $types);
+ $review = self::checkTypes($review, $types);
- $this->performers = $performers;
+ $this->review = $review;
}
/**
- * @return DateInterval|string|null
+ * @return int|null
*/
- public function getDuration()
+ public function getRemainingAttendeeCapacity()
{
- return $this->duration;
+ return $this->remainingAttendeeCapacity;
}
/**
- * @param DateInterval|string|null $duration
+ * @param int|null $remainingAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setRemainingAttendeeCapacity($remainingAttendeeCapacity)
{
$types = [
- "DateInterval",
- "string",
+ "int",
"null",
];
- $duration = self::checkTypes($duration, $types);
+ $remainingAttendeeCapacity = self::checkTypes($remainingAttendeeCapacity, $types);
- $this->duration = $duration;
+ $this->remainingAttendeeCapacity = $remainingAttendeeCapacity;
}
/**
- * @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 \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getSponsor()
+ public function getOffers()
{
- return $this->sponsor;
+ return $this->offers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @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 setSponsor($sponsor)
+ public function setOffers($offers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Demand",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->sponsor = $sponsor;
+ $this->offers = $offers;
}
/**
- * @return Date|null
+ * @return DateInterval|string|null
*/
- public function getPreviousStartDate()
+ public function getDuration()
{
- return $this->previousStartDate;
+ return $this->duration;
}
/**
- * @param Date|null $previousStartDate
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPreviousStartDate($previousStartDate)
+ public function setDuration($duration)
{
$types = [
- "Date",
+ "DateInterval",
+ "string",
"null",
];
- $previousStartDate = self::checkTypes($previousStartDate, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->previousStartDate = $previousStartDate;
+ $this->duration = $duration;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getIsAccessibleForFree()
+ public function getSuperEvent()
{
- return $this->isAccessibleForFree;
+ return $this->superEvent;
}
/**
- * @param bool|null $isAccessibleForFree
+ * @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 setIsAccessibleForFree($isAccessibleForFree)
+ public function setSuperEvent($superEvent)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\Event",
+ "string",
];
- $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types);
+ $superEvent = self::checkTypes($superEvent, $types);
- $this->isAccessibleForFree = $isAccessibleForFree;
+ $this->superEvent = $superEvent;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getRemainingAttendeeCapacity()
+ public function getDirector()
{
- return $this->remainingAttendeeCapacity;
+ return $this->director;
}
/**
- * @param int|null $remainingAttendeeCapacity
+ * @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 setRemainingAttendeeCapacity($remainingAttendeeCapacity)
+ public function setDirector($director)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $remainingAttendeeCapacity = self::checkTypes($remainingAttendeeCapacity, $types);
+ $director = self::checkTypes($director, $types);
- $this->remainingAttendeeCapacity = $remainingAttendeeCapacity;
+ $this->director = $director;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return DateTime|string|null
*/
- public function getSubEvents()
+ public function getDoorTime()
{
- return $this->subEvents;
+ return $this->doorTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $subEvents
+ * @param DateTime|string|null $doorTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSubEvents($subEvents)
+ public function setDoorTime($doorTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $subEvents = self::checkTypes($subEvents, $types);
+ $doorTime = self::checkTypes($doorTime, $types);
- $this->subEvents = $subEvents;
+ $this->doorTime = $doorTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return int|null
*/
- public function getWorkPerformed()
+ public function getMaximumPhysicalAttendeeCapacity()
{
- return $this->workPerformed;
+ return $this->maximumPhysicalAttendeeCapacity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workPerformed
+ * @param int|null $maximumPhysicalAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkPerformed($workPerformed)
+ public function setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "string",
+ "int",
+ "null",
];
- $workPerformed = self::checkTypes($workPerformed, $types);
+ $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types);
- $this->workPerformed = $workPerformed;
+ $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDoorTime()
+ public function getAttendee()
{
- return $this->doorTime;
+ return $this->attendee;
}
/**
- * @param DateTime|string|null $doorTime
+ * @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 setDoorTime($doorTime)
+ public function setAttendee($attendee)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $doorTime = self::checkTypes($doorTime, $types);
+ $attendee = self::checkTypes($attendee, $types);
- $this->doorTime = $doorTime;
+ $this->attendee = $attendee;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getInLanguage()
+ public function getSponsor()
{
- return $this->inLanguage;
+ return $this->sponsor;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"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\AggregateRating|string
*/
- public function getAbout()
+ public function getAggregateRating()
{
- return $this->about;
+ return $this->aggregateRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $about
+ * @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 setAbout($about)
+ public function setAggregateRating($aggregateRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Models\SchemaOrg\AggregateRating",
"string",
];
- $about = self::checkTypes($about, $types);
+ $aggregateRating = self::checkTypes($aggregateRating, $types);
- $this->about = $about;
+ $this->aggregateRating = $aggregateRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getRecordedIn()
+ public function getInLanguage()
{
- return $this->recordedIn;
+ return $this->inLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $recordedIn
+ * @param \OpenActive\Models\SchemaOrg\Language|string $inLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordedIn($recordedIn)
+ public function setInLanguage($inLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $recordedIn = self::checkTypes($recordedIn, $types);
+ $inLanguage = self::checkTypes($inLanguage, $types);
- $this->recordedIn = $recordedIn;
+ $this->inLanguage = $inLanguage;
}
/**
- * @return int|null
+ * @return Date|DateTime|null
*/
- public function getMaximumPhysicalAttendeeCapacity()
+ public function getEndDate()
{
- return $this->maximumPhysicalAttendeeCapacity;
+ return $this->endDate;
}
/**
- * @param int|null $maximumPhysicalAttendeeCapacity
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity)
+ public function setEndDate($endDate)
{
$types = [
- "int",
+ "Date",
+ "DateTime",
"null",
];
- $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity;
+ $this->endDate = $endDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAttendee()
+ public function getAttendees()
{
- return $this->attendee;
+ return $this->attendees;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendee
+ * @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 setAttendee($attendee)
+ public function setAttendees($attendees)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $attendee = self::checkTypes($attendee, $types);
+ $attendees = self::checkTypes($attendees, $types);
- $this->attendee = $attendee;
+ $this->attendees = $attendees;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
- public function getWorkFeatured()
+ public function getEventStatus()
{
- return $this->workFeatured;
+ return $this->eventStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workFeatured
+ * @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 setWorkFeatured($workFeatured)
+ public function setEventStatus($eventStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "string",
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "null",
];
- $workFeatured = self::checkTypes($workFeatured, $types);
+ $eventStatus = self::checkTypes($eventStatus, $types);
- $this->workFeatured = $workFeatured;
+ $this->eventStatus = $eventStatus;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Schedule|string
+ * @return int|null
*/
- public function getEventSchedule()
+ public function getMaximumAttendeeCapacity()
{
- return $this->eventSchedule;
+ return $this->maximumAttendeeCapacity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Schedule|string $eventSchedule
+ * @param int|null $maximumAttendeeCapacity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEventSchedule($eventSchedule)
+ public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Schedule",
- "string",
+ "int",
+ "null",
];
- $eventSchedule = self::checkTypes($eventSchedule, $types);
+ $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types);
- $this->eventSchedule = $eventSchedule;
+ $this->maximumAttendeeCapacity = $maximumAttendeeCapacity;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getContributor()
+ public function getComposer()
{
- return $this->contributor;
+ return $this->composer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $composer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContributor($contributor)
+ public function setComposer($composer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $contributor = self::checkTypes($contributor, $types);
+ $composer = self::checkTypes($composer, $types);
- $this->contributor = $contributor;
+ $this->composer = $composer;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|string
*/
- public function getAttendees()
+ public function getAudience()
{
- return $this->attendees;
+ return $this->audience;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendees
+ * @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 setAttendees($attendees)
+ public function setAudience($audience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
"string",
];
- $attendees = self::checkTypes($attendees, $types);
+ $audience = self::checkTypes($audience, $types);
- $this->attendees = $attendees;
+ $this->audience = $audience;
}
}
diff --git a/src/Models/SchemaOrg/EventSeries.php b/src/Models/SchemaOrg/EventSeries.php
index 3c265acc..eef9a161 100644
--- a/src/Models/SchemaOrg/EventSeries.php
+++ b/src/Models/SchemaOrg/EventSeries.php
@@ -5,7 +5,7 @@
/**
*
*/
-class EventSeries extends \OpenActive\Models\SchemaOrg\Series
+class EventSeries extends \OpenActive\Models\SchemaOrg\Event
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/ExchangeRateSpecification.php b/src/Models/SchemaOrg/ExchangeRateSpecification.php
index 46d61d52..87e94dd2 100644
--- a/src/Models/SchemaOrg/ExchangeRateSpecification.php
+++ b/src/Models/SchemaOrg/ExchangeRateSpecification.php
@@ -17,112 +17,112 @@ public static function getType()
public static function fieldList() {
$fields = [
- "currentExchangeRate" => "currentExchangeRate",
"exchangeRateSpread" => "exchangeRateSpread",
"currency" => "currency",
+ "currentExchangeRate" => "currentExchangeRate",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The current price of a currency.
+ * The difference between the price at which a broker or other intermediary buys and sells foreign currency.
*
*
- * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $currentExchangeRate;
+ protected $exchangeRateSpread;
/**
- * The difference between the price at which a broker or other intermediary buys and sells foreign 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 Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var string
*/
- protected $exchangeRateSpread;
+ protected $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 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 \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getCurrentExchangeRate()
+ public function getExchangeRateSpread()
{
- return $this->currentExchangeRate;
+ return $this->exchangeRateSpread;
}
/**
- * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $currentExchangeRate
+ * @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 setCurrentExchangeRate($currentExchangeRate)
+ public function setExchangeRateSpread($exchangeRateSpread)
{
$types = [
- "\OpenActive\Models\SchemaOrg\UnitPriceSpecification",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
+ "null",
];
- $currentExchangeRate = self::checkTypes($currentExchangeRate, $types);
+ $exchangeRateSpread = self::checkTypes($exchangeRateSpread, $types);
- $this->currentExchangeRate = $currentExchangeRate;
+ $this->exchangeRateSpread = $exchangeRateSpread;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return string
*/
- public function getExchangeRateSpread()
+ public function getCurrency()
{
- return $this->exchangeRateSpread;
+ return $this->currency;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $exchangeRateSpread
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExchangeRateSpread($exchangeRateSpread)
+ public function setCurrency($currency)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "null",
];
- $exchangeRateSpread = self::checkTypes($exchangeRateSpread, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->exchangeRateSpread = $exchangeRateSpread;
+ $this->currency = $currency;
}
/**
- * @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..e30d3972 100644
--- a/src/Models/SchemaOrg/ExerciseAction.php
+++ b/src/Models/SchemaOrg/ExerciseAction.php
@@ -17,18 +17,18 @@ public static function getType()
public static function fieldList() {
$fields = [
- "sportsTeam" => "sportsTeam",
- "course" => "course",
+ "exercisePlan" => "exercisePlan",
+ "toLocation" => "toLocation",
+ "exerciseCourse" => "exerciseCourse",
"fromLocation" => "fromLocation",
- "diet" => "diet",
"sportsActivityLocation" => "sportsActivityLocation",
"distance" => "distance",
- "exercisePlan" => "exercisePlan",
- "sportsEvent" => "sportsEvent",
+ "diet" => "diet",
"exerciseRelatedDiet" => "exerciseRelatedDiet",
+ "sportsTeam" => "sportsTeam",
+ "sportsEvent" => "sportsEvent",
"opponent" => "opponent",
- "exerciseCourse" => "exerciseCourse",
- "toLocation" => "toLocation",
+ "course" => "course",
"exerciseType" => "exerciseType",
];
@@ -36,36 +36,36 @@ public static function fieldList() {
}
/**
- * A sub property of participant. The sports team that participated on this action.
+ * A sub property of instrument. The exercise plan used on this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\SportsTeam|string
+ * @var \OpenActive\Models\SchemaOrg\ExercisePlan|string
*/
- protected $sportsTeam;
+ protected $exercisePlan;
/**
- * A sub property of location. The course where this action was taken.
+ * A sub property of location. The final location of the object or the agent after the action.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $course;
+ protected $toLocation;
/**
- * A sub property of location. The original location of the object or the agent before the action.
+ * A sub property of location. The course where this action was taken.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $fromLocation;
+ protected $exerciseCourse;
/**
- * A sub property of instrument. The diet used in this action.
+ * A sub property of location. The original location of the object or the agent before the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Diet|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $diet;
+ protected $fromLocation;
/**
* A sub property of location. The sports activity location where this action occurred.
@@ -84,52 +84,52 @@ public static function fieldList() {
protected $distance;
/**
- * A sub property of instrument. The exercise plan used on this action.
+ * A sub property of instrument. The diet used in this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\ExercisePlan|string
+ * @var \OpenActive\Models\SchemaOrg\Diet|string
*/
- protected $exercisePlan;
+ protected $diet;
/**
- * A sub property of location. The sports event where this action occurred.
+ * A sub property of instrument. The diet used in this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\SportsEvent|string
+ * @var \OpenActive\Models\SchemaOrg\Diet|string
*/
- protected $sportsEvent;
+ protected $exerciseRelatedDiet;
/**
- * A sub property of instrument. The diet used in this action.
+ * A sub property of participant. The sports team that participated on this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Diet|string
+ * @var \OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- protected $exerciseRelatedDiet;
+ protected $sportsTeam;
/**
- * A sub property of participant. The opponent on this action.
+ * A sub property of location. The sports event where this action occurred.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\SportsEvent|string
*/
- protected $opponent;
+ protected $sportsEvent;
/**
- * A sub property of location. The course where this action was taken.
+ * A sub property of participant. The opponent on this action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $exerciseCourse;
+ protected $opponent;
/**
- * A sub property of location. The final location of the object or the agent after the action.
+ * A sub property of location. The course where this action was taken.
*
*
* @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $toLocation;
+ protected $course;
/**
* Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
@@ -140,103 +140,103 @@ public static function fieldList() {
protected $exerciseType;
/**
- * @return \OpenActive\Models\SchemaOrg\SportsTeam|string
+ * @return \OpenActive\Models\SchemaOrg\ExercisePlan|string
*/
- public function getSportsTeam()
+ public function getExercisePlan()
{
- return $this->sportsTeam;
+ return $this->exercisePlan;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SportsTeam|string $sportsTeam
+ * @param \OpenActive\Models\SchemaOrg\ExercisePlan|string $exercisePlan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSportsTeam($sportsTeam)
+ public function setExercisePlan($exercisePlan)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SportsTeam",
+ "\OpenActive\Models\SchemaOrg\ExercisePlan",
"string",
];
- $sportsTeam = self::checkTypes($sportsTeam, $types);
+ $exercisePlan = self::checkTypes($exercisePlan, $types);
- $this->sportsTeam = $sportsTeam;
+ $this->exercisePlan = $exercisePlan;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getCourse()
+ public function getToLocation()
{
- return $this->course;
+ return $this->toLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $course
+ * @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 setCourse($course)
+ public function setToLocation($toLocation)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $course = self::checkTypes($course, $types);
+ $toLocation = self::checkTypes($toLocation, $types);
- $this->course = $course;
+ $this->toLocation = $toLocation;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getFromLocation()
+ public function getExerciseCourse()
{
- return $this->fromLocation;
+ return $this->exerciseCourse;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation
+ * @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 setFromLocation($fromLocation)
+ public function setExerciseCourse($exerciseCourse)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $fromLocation = self::checkTypes($fromLocation, $types);
+ $exerciseCourse = self::checkTypes($exerciseCourse, $types);
- $this->fromLocation = $fromLocation;
+ $this->exerciseCourse = $exerciseCourse;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Diet|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getDiet()
+ public function getFromLocation()
{
- return $this->diet;
+ return $this->fromLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Diet|string $diet
+ * @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 setDiet($diet)
+ public function setFromLocation($fromLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Diet",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $diet = self::checkTypes($diet, $types);
+ $fromLocation = self::checkTypes($fromLocation, $types);
- $this->diet = $diet;
+ $this->fromLocation = $fromLocation;
}
/**
@@ -290,153 +290,153 @@ public function setDistance($distance)
}
/**
- * @return \OpenActive\Models\SchemaOrg\ExercisePlan|string
+ * @return \OpenActive\Models\SchemaOrg\Diet|string
*/
- public function getExercisePlan()
+ public function getDiet()
{
- return $this->exercisePlan;
+ return $this->diet;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ExercisePlan|string $exercisePlan
+ * @param \OpenActive\Models\SchemaOrg\Diet|string $diet
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExercisePlan($exercisePlan)
+ public function setDiet($diet)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ExercisePlan",
+ "\OpenActive\Models\SchemaOrg\Diet",
"string",
];
- $exercisePlan = self::checkTypes($exercisePlan, $types);
+ $diet = self::checkTypes($diet, $types);
- $this->exercisePlan = $exercisePlan;
+ $this->diet = $diet;
}
/**
- * @return \OpenActive\Models\SchemaOrg\SportsEvent|string
+ * @return \OpenActive\Models\SchemaOrg\Diet|string
*/
- public function getSportsEvent()
+ public function getExerciseRelatedDiet()
{
- return $this->sportsEvent;
+ return $this->exerciseRelatedDiet;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SportsEvent|string $sportsEvent
+ * @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 setSportsEvent($sportsEvent)
+ public function setExerciseRelatedDiet($exerciseRelatedDiet)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SportsEvent",
+ "\OpenActive\Models\SchemaOrg\Diet",
"string",
];
- $sportsEvent = self::checkTypes($sportsEvent, $types);
+ $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types);
- $this->sportsEvent = $sportsEvent;
+ $this->exerciseRelatedDiet = $exerciseRelatedDiet;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Diet|string
+ * @return \OpenActive\Models\SchemaOrg\SportsTeam|string
*/
- public function getExerciseRelatedDiet()
+ public function getSportsTeam()
{
- return $this->exerciseRelatedDiet;
+ return $this->sportsTeam;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Diet|string $exerciseRelatedDiet
+ * @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 setExerciseRelatedDiet($exerciseRelatedDiet)
+ public function setSportsTeam($sportsTeam)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Diet",
+ "\OpenActive\Models\SchemaOrg\SportsTeam",
"string",
];
- $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types);
+ $sportsTeam = self::checkTypes($sportsTeam, $types);
- $this->exerciseRelatedDiet = $exerciseRelatedDiet;
+ $this->sportsTeam = $sportsTeam;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\SportsEvent|string
*/
- public function getOpponent()
+ public function getSportsEvent()
{
- return $this->opponent;
+ return $this->sportsEvent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $opponent
+ * @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 setOpponent($opponent)
+ public function setSportsEvent($sportsEvent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\SportsEvent",
"string",
];
- $opponent = self::checkTypes($opponent, $types);
+ $sportsEvent = self::checkTypes($sportsEvent, $types);
- $this->opponent = $opponent;
+ $this->sportsEvent = $sportsEvent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getExerciseCourse()
+ public function getOpponent()
{
- return $this->exerciseCourse;
+ return $this->opponent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $exerciseCourse
+ * @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 setExerciseCourse($exerciseCourse)
+ public function setOpponent($opponent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $exerciseCourse = self::checkTypes($exerciseCourse, $types);
+ $opponent = self::checkTypes($opponent, $types);
- $this->exerciseCourse = $exerciseCourse;
+ $this->opponent = $opponent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getToLocation()
+ public function getCourse()
{
- return $this->toLocation;
+ return $this->course;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation
+ * @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 setToLocation($toLocation)
+ public function setCourse($course)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $toLocation = self::checkTypes($toLocation, $types);
+ $course = self::checkTypes($course, $types);
- $this->toLocation = $toLocation;
+ $this->course = $course;
}
/**
diff --git a/src/Models/SchemaOrg/ExercisePlan.php b/src/Models/SchemaOrg/ExercisePlan.php
index df458ebc..88a2bdda 100644
--- a/src/Models/SchemaOrg/ExercisePlan.php
+++ b/src/Models/SchemaOrg/ExercisePlan.php
@@ -5,7 +5,7 @@
/**
*
*/
-class ExercisePlan extends \OpenActive\Models\SchemaOrg\CreativeWork
+class ExercisePlan extends \OpenActive\Models\SchemaOrg\PhysicalActivity
{
/**
* @return string[]|null
@@ -17,284 +17,284 @@ public static function getType()
public static function fieldList() {
$fields = [
- "repetitions" => "repetitions",
- "intensity" => "intensity",
- "workload" => "workload",
- "activityDuration" => "activityDuration",
"restPeriods" => "restPeriods",
- "activityFrequency" => "activityFrequency",
"additionalVariable" => "additionalVariable",
+ "intensity" => "intensity",
+ "repetitions" => "repetitions",
+ "activityDuration" => "activityDuration",
+ "workload" => "workload",
"exerciseType" => "exerciseType",
+ "activityFrequency" => "activityFrequency",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Number of times one should repeat the activity.
+ * How often one should break from the activity.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $repetitions;
+ protected $restPeriods;
/**
- * Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement.
+ * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $intensity;
+ protected $additionalVariable;
/**
- * Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure.
+ * Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $workload;
+ protected $intensity;
/**
- * Length of time to engage in the activity.
+ * Number of times one should repeat the activity.
*
*
- * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $activityDuration;
+ protected $repetitions;
/**
- * How often one should break from the activity.
+ * Length of time to engage in the activity.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- protected $restPeriods;
+ protected $activityDuration;
/**
- * How often one should engage in the activity.
+ * Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string
*/
- protected $activityFrequency;
+ protected $workload;
/**
- * 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.
+ * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
*
*
* @var string
*/
- protected $additionalVariable;
+ protected $exerciseType;
/**
- * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.
+ * How often one should engage in the activity.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- protected $exerciseType;
+ protected $activityFrequency;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getRepetitions()
+ public function getRestPeriods()
{
- return $this->repetitions;
+ return $this->restPeriods;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $repetitions
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $restPeriods
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRepetitions($repetitions)
+ public function setRestPeriods($restPeriods)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $repetitions = self::checkTypes($repetitions, $types);
+ $restPeriods = self::checkTypes($restPeriods, $types);
- $this->repetitions = $repetitions;
+ $this->restPeriods = $restPeriods;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getIntensity()
+ public function getAdditionalVariable()
{
- return $this->intensity;
+ return $this->additionalVariable;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $intensity
+ * @param string $additionalVariable
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIntensity($intensity)
+ public function setAdditionalVariable($additionalVariable)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $intensity = self::checkTypes($intensity, $types);
+ $additionalVariable = self::checkTypes($additionalVariable, $types);
- $this->intensity = $intensity;
+ $this->additionalVariable = $additionalVariable;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getWorkload()
+ public function getIntensity()
{
- return $this->workload;
+ return $this->intensity;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string $workload
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $intensity
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkload($workload)
+ public function setIntensity($intensity)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\Energy",
"string",
];
- $workload = self::checkTypes($workload, $types);
+ $intensity = self::checkTypes($intensity, $types);
- $this->workload = $workload;
+ $this->intensity = $intensity;
}
/**
- * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getActivityDuration()
+ public function getRepetitions()
{
- return $this->activityDuration;
+ return $this->repetitions;
}
/**
- * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $activityDuration
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $repetitions
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActivityDuration($activityDuration)
+ public function setRepetitions($repetitions)
{
$types = [
- "DateInterval",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
"null",
];
- $activityDuration = self::checkTypes($activityDuration, $types);
+ $repetitions = self::checkTypes($repetitions, $types);
- $this->activityDuration = $activityDuration;
+ $this->repetitions = $repetitions;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
*/
- public function getRestPeriods()
+ public function getActivityDuration()
{
- return $this->restPeriods;
+ return $this->activityDuration;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $restPeriods
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $activityDuration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRestPeriods($restPeriods)
+ public function setActivityDuration($activityDuration)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "DateInterval",
+ "string",
+ "null",
];
- $restPeriods = self::checkTypes($restPeriods, $types);
+ $activityDuration = self::checkTypes($activityDuration, $types);
- $this->restPeriods = $restPeriods;
+ $this->activityDuration = $activityDuration;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string
*/
- public function getActivityFrequency()
+ public function getWorkload()
{
- return $this->activityFrequency;
+ return $this->workload;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $activityFrequency
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string $workload
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActivityFrequency($activityFrequency)
+ public function setWorkload($workload)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Energy",
+ "string",
];
- $activityFrequency = self::checkTypes($activityFrequency, $types);
+ $workload = self::checkTypes($workload, $types);
- $this->activityFrequency = $activityFrequency;
+ $this->workload = $workload;
}
/**
* @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 string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
- public function getExerciseType()
+ public function getActivityFrequency()
{
- return $this->exerciseType;
+ return $this->activityFrequency;
}
/**
- * @param string $exerciseType
+ * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $activityFrequency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExerciseType($exerciseType)
+ public function setActivityFrequency($activityFrequency)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $exerciseType = self::checkTypes($exerciseType, $types);
+ $activityFrequency = self::checkTypes($activityFrequency, $types);
- $this->exerciseType = $exerciseType;
+ $this->activityFrequency = $activityFrequency;
}
}
diff --git a/src/Models/SchemaOrg/FinancialProduct.php b/src/Models/SchemaOrg/FinancialProduct.php
index b823898c..2dfaf6a3 100644
--- a/src/Models/SchemaOrg/FinancialProduct.php
+++ b/src/Models/SchemaOrg/FinancialProduct.php
@@ -17,22 +17,14 @@ 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.
- *
- *
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
- */
- protected $annualPercentageRate;
-
/**
* Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.
*
@@ -45,86 +37,94 @@ public static function fieldList() {
* The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
protected $interestRate;
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getAnnualPercentageRate()
+ protected $annualPercentageRate;
+
+ /**
+ * @return string
+ */
+ 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
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getInterestRate()
+ public function getAnnualPercentageRate()
{
- return $this->interestRate;
+ return $this->annualPercentageRate;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $interestRate
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|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",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "Number",
"null",
];
- $interestRate = self::checkTypes($interestRate, $types);
+ $annualPercentageRate = self::checkTypes($annualPercentageRate, $types);
- $this->interestRate = $interestRate;
+ $this->annualPercentageRate = $annualPercentageRate;
}
}
diff --git a/src/Models/SchemaOrg/Flight.php b/src/Models/SchemaOrg/Flight.php
index 884e8838..f9ab61d7 100644
--- a/src/Models/SchemaOrg/Flight.php
+++ b/src/Models/SchemaOrg/Flight.php
@@ -17,81 +17,81 @@ public static function getType()
public static function fieldList() {
$fields = [
- "flightDistance" => "flightDistance",
- "webCheckinTime" => "webCheckinTime",
- "aircraft" => "aircraft",
- "seller" => "seller",
- "arrivalAirport" => "arrivalAirport",
+ "boardingPolicy" => "boardingPolicy",
"arrivalTerminal" => "arrivalTerminal",
+ "departureGate" => "departureGate",
"departureAirport" => "departureAirport",
- "arrivalGate" => "arrivalGate",
- "departureTerminal" => "departureTerminal",
"carrier" => "carrier",
+ "aircraft" => "aircraft",
+ "seller" => "seller",
+ "arrivalGate" => "arrivalGate",
+ "webCheckinTime" => "webCheckinTime",
"estimatedFlightDuration" => "estimatedFlightDuration",
- "departureGate" => "departureGate",
- "flightNumber" => "flightNumber",
+ "flightDistance" => "flightDistance",
"mealService" => "mealService",
- "boardingPolicy" => "boardingPolicy",
+ "departureTerminal" => "departureTerminal",
+ "arrivalAirport" => "arrivalAirport",
+ "flightNumber" => "flightNumber",
];
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 arrival terminal.
*
*
- * @var DateTime|null
+ * @var string
*/
- protected $webCheckinTime;
+ protected $arrivalTerminal;
/**
- * The kind of aircraft (e.g., "Boeing 747").
+ * Identifier of the flight's departure gate.
*
*
- * @var \OpenActive\Models\SchemaOrg\Vehicle|string
+ * @var string
*/
- protected $aircraft;
+ protected $departureGate;
/**
- * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
+ * The airport where the flight originates.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Airport|string
*/
- protected $seller;
+ protected $departureAirport;
/**
- * The airport where the flight terminates.
+ * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights.
*
*
- * @var \OpenActive\Models\SchemaOrg\Airport|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $arrivalAirport;
+ protected $carrier;
/**
- * Identifier of the flight's arrival terminal.
+ * The kind of aircraft (e.g., "Boeing 747").
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Vehicle|string
*/
- protected $arrivalTerminal;
+ protected $aircraft;
/**
- * The airport where the flight originates.
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\Airport|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $departureAirport;
+ protected $seller;
/**
* Identifier of the flight's arrival gate.
@@ -102,234 +102,233 @@ public static function fieldList() {
protected $arrivalGate;
/**
- * 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.
+ * The estimated time the flight will take.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var DateInterval|string|null
*/
- protected $carrier;
+ protected $estimatedFlightDuration;
/**
- * The estimated time the flight will take.
+ * The distance of the flight.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\Distance
*/
- protected $estimatedFlightDuration;
+ protected $flightDistance;
/**
- * Identifier of the flight's departure gate.
+ * Description of the meals that will be provided or available for purchase.
*
*
* @var string
*/
- protected $departureGate;
+ protected $mealService;
/**
- * 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'.
+ * Identifier of the flight's departure terminal.
*
*
* @var string
*/
- protected $flightNumber;
+ protected $departureTerminal;
/**
- * Description of the meals that will be provided or available for purchase.
+ * The airport where the flight terminates.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Airport|string
*/
- protected $mealService;
+ protected $arrivalAirport;
/**
- * The type of boarding policy used by the airline (e.g. zone-based or group-based).
+ * 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\Enums\SchemaOrg\BoardingPolicyType|null
+ * @var string
*/
- protected $boardingPolicy;
+ protected $flightNumber;
/**
- * @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 getArrivalTerminal()
{
- return $this->webCheckinTime;
+ return $this->arrivalTerminal;
}
/**
- * @param DateTime|null $webCheckinTime
+ * @param string $arrivalTerminal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWebCheckinTime($webCheckinTime)
+ public function setArrivalTerminal($arrivalTerminal)
{
$types = [
- "DateTime",
- "null",
+ "string",
];
- $webCheckinTime = self::checkTypes($webCheckinTime, $types);
+ $arrivalTerminal = self::checkTypes($arrivalTerminal, $types);
- $this->webCheckinTime = $webCheckinTime;
+ $this->arrivalTerminal = $arrivalTerminal;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Vehicle|string
+ * @return string
*/
- public function getAircraft()
+ public function getDepartureGate()
{
- return $this->aircraft;
+ return $this->departureGate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vehicle|string $aircraft
+ * @param string $departureGate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAircraft($aircraft)
+ public function setDepartureGate($departureGate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vehicle",
"string",
];
- $aircraft = self::checkTypes($aircraft, $types);
+ $departureGate = self::checkTypes($departureGate, $types);
- $this->aircraft = $aircraft;
+ $this->departureGate = $departureGate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Airport|string
*/
- public function getSeller()
+ public function getDepartureAirport()
{
- return $this->seller;
+ return $this->departureAirport;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller
+ * @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 setSeller($seller)
+ public function setDepartureAirport($departureAirport)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Airport",
"string",
];
- $seller = self::checkTypes($seller, $types);
+ $departureAirport = self::checkTypes($departureAirport, $types);
- $this->seller = $seller;
+ $this->departureAirport = $departureAirport;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Airport|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getArrivalAirport()
+ public function getCarrier()
{
- return $this->arrivalAirport;
+ return $this->carrier;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Airport|string $arrivalAirport
+ * @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 setArrivalAirport($arrivalAirport)
+ public function setCarrier($carrier)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Airport",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $arrivalAirport = self::checkTypes($arrivalAirport, $types);
+ $carrier = self::checkTypes($carrier, $types);
- $this->arrivalAirport = $arrivalAirport;
+ $this->carrier = $carrier;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Vehicle|string
*/
- public function getArrivalTerminal()
+ public function getAircraft()
{
- return $this->arrivalTerminal;
+ return $this->aircraft;
}
/**
- * @param string $arrivalTerminal
+ * @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 setArrivalTerminal($arrivalTerminal)
+ public function setAircraft($aircraft)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Vehicle",
"string",
];
- $arrivalTerminal = self::checkTypes($arrivalTerminal, $types);
+ $aircraft = self::checkTypes($aircraft, $types);
- $this->arrivalTerminal = $arrivalTerminal;
+ $this->aircraft = $aircraft;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Airport|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDepartureAirport()
+ public function getSeller()
{
- return $this->departureAirport;
+ return $this->seller;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Airport|string $departureAirport
+ * @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 setDepartureAirport($departureAirport)
+ public function setSeller($seller)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Airport",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $departureAirport = self::checkTypes($departureAirport, $types);
+ $seller = self::checkTypes($seller, $types);
- $this->departureAirport = $departureAirport;
+ $this->seller = $seller;
}
/**
@@ -357,175 +356,176 @@ public function setArrivalGate($arrivalGate)
}
/**
- * @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 DateInterval|string|null
*/
- public function getCarrier()
+ public function getEstimatedFlightDuration()
{
- return $this->carrier;
+ return $this->estimatedFlightDuration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier
+ * @param DateInterval|string|null $estimatedFlightDuration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCarrier($carrier)
+ public function setEstimatedFlightDuration($estimatedFlightDuration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "DateInterval",
"string",
+ "null",
];
- $carrier = self::checkTypes($carrier, $types);
+ $estimatedFlightDuration = self::checkTypes($estimatedFlightDuration, $types);
- $this->carrier = $carrier;
+ $this->estimatedFlightDuration = $estimatedFlightDuration;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\Distance
*/
- public function getEstimatedFlightDuration()
+ public function getFlightDistance()
{
- return $this->estimatedFlightDuration;
+ return $this->flightDistance;
}
/**
- * @param DateInterval|string|null $estimatedFlightDuration
+ * @param string|\OpenActive\Models\SchemaOrg\Distance $flightDistance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEstimatedFlightDuration($estimatedFlightDuration)
+ public function setFlightDistance($flightDistance)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\Distance",
];
- $estimatedFlightDuration = self::checkTypes($estimatedFlightDuration, $types);
+ $flightDistance = self::checkTypes($flightDistance, $types);
- $this->estimatedFlightDuration = $estimatedFlightDuration;
+ $this->flightDistance = $flightDistance;
}
/**
* @return string
*/
- public function getDepartureGate()
+ public function getMealService()
{
- return $this->departureGate;
+ return $this->mealService;
}
/**
- * @param string $departureGate
+ * @param string $mealService
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDepartureGate($departureGate)
+ public function setMealService($mealService)
{
$types = [
"string",
];
- $departureGate = self::checkTypes($departureGate, $types);
+ $mealService = self::checkTypes($mealService, $types);
- $this->departureGate = $departureGate;
+ $this->mealService = $mealService;
}
/**
* @return string
*/
- public function getFlightNumber()
+ public function getDepartureTerminal()
{
- return $this->flightNumber;
+ return $this->departureTerminal;
}
/**
- * @param string $flightNumber
+ * @param string $departureTerminal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFlightNumber($flightNumber)
+ public function setDepartureTerminal($departureTerminal)
{
$types = [
"string",
];
- $flightNumber = self::checkTypes($flightNumber, $types);
+ $departureTerminal = self::checkTypes($departureTerminal, $types);
- $this->flightNumber = $flightNumber;
+ $this->departureTerminal = $departureTerminal;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Airport|string
*/
- public function getMealService()
+ public function getArrivalAirport()
{
- return $this->mealService;
+ return $this->arrivalAirport;
}
/**
- * @param string $mealService
+ * @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 setMealService($mealService)
+ public function setArrivalAirport($arrivalAirport)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Airport",
"string",
];
- $mealService = self::checkTypes($mealService, $types);
+ $arrivalAirport = self::checkTypes($arrivalAirport, $types);
- $this->mealService = $mealService;
+ $this->arrivalAirport = $arrivalAirport;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null
+ * @return string
*/
- public function getBoardingPolicy()
+ public function getFlightNumber()
{
- return $this->boardingPolicy;
+ return $this->flightNumber;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy
+ * @param string $flightNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBoardingPolicy($boardingPolicy)
+ public function setFlightNumber($flightNumber)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\BoardingPolicyType",
- "null",
+ "string",
];
- $boardingPolicy = self::checkTypes($boardingPolicy, $types);
+ $flightNumber = self::checkTypes($flightNumber, $types);
- $this->boardingPolicy = $boardingPolicy;
+ $this->flightNumber = $flightNumber;
}
}
diff --git a/src/Models/SchemaOrg/FlightReservation.php b/src/Models/SchemaOrg/FlightReservation.php
index 86c2d57b..c839bb82 100644
--- a/src/Models/SchemaOrg/FlightReservation.php
+++ b/src/Models/SchemaOrg/FlightReservation.php
@@ -18,9 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"passengerPriorityStatus" => "passengerPriorityStatus",
+ "passengerSequenceNumber" => "passengerSequenceNumber",
"boardingGroup" => "boardingGroup",
"securityScreening" => "securityScreening",
- "passengerSequenceNumber" => "passengerSequenceNumber",
];
return array_merge(parent::fieldList(), $fields);
@@ -35,28 +35,28 @@ public static function fieldList() {
protected $passengerPriorityStatus;
/**
- * The airline-specific indicator of boarding order / preference.
+ * The passenger's sequence number as assigned by the airline.
*
*
* @var string
*/
- protected $boardingGroup;
+ protected $passengerSequenceNumber;
/**
- * 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.
+ * The type of security screening the passenger is subject to.
*
*
* @var string
*/
- protected $passengerSequenceNumber;
+ protected $securityScreening;
/**
* @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
@@ -87,73 +87,73 @@ public function setPassengerPriorityStatus($passengerPriorityStatus)
/**
* @return string
*/
- public function getBoardingGroup()
+ public function getPassengerSequenceNumber()
{
- return $this->boardingGroup;
+ return $this->passengerSequenceNumber;
}
/**
- * @param string $boardingGroup
+ * @param string $passengerSequenceNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBoardingGroup($boardingGroup)
+ public function setPassengerSequenceNumber($passengerSequenceNumber)
{
$types = [
"string",
];
- $boardingGroup = self::checkTypes($boardingGroup, $types);
+ $passengerSequenceNumber = self::checkTypes($passengerSequenceNumber, $types);
- $this->boardingGroup = $boardingGroup;
+ $this->passengerSequenceNumber = $passengerSequenceNumber;
}
/**
* @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;
}
/**
* @return string
*/
- public function getPassengerSequenceNumber()
+ public function getSecurityScreening()
{
- return $this->passengerSequenceNumber;
+ return $this->securityScreening;
}
/**
- * @param string $passengerSequenceNumber
+ * @param string $securityScreening
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPassengerSequenceNumber($passengerSequenceNumber)
+ public function setSecurityScreening($securityScreening)
{
$types = [
"string",
];
- $passengerSequenceNumber = self::checkTypes($passengerSequenceNumber, $types);
+ $securityScreening = self::checkTypes($securityScreening, $types);
- $this->passengerSequenceNumber = $passengerSequenceNumber;
+ $this->securityScreening = $securityScreening;
}
}
diff --git a/src/Models/SchemaOrg/FloorPlan.php b/src/Models/SchemaOrg/FloorPlan.php
index 118aa873..ad498354 100644
--- a/src/Models/SchemaOrg/FloorPlan.php
+++ b/src/Models/SchemaOrg/FloorPlan.php
@@ -17,424 +17,424 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "floorSize" => "floorSize",
"isPlanForApartment" => "isPlanForApartment",
+ "petsAllowed" => "petsAllowed",
+ "numberOfBedrooms" => "numberOfBedrooms",
"numberOfBathroomsTotal" => "numberOfBathroomsTotal",
- "numberOfRooms" => "numberOfRooms",
- "numberOfAccommodationUnits" => "numberOfAccommodationUnits",
+ "layoutImage" => "layoutImage",
"numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits",
+ "numberOfFullBathrooms" => "numberOfFullBathrooms",
+ "numberOfAccommodationUnits" => "numberOfAccommodationUnits",
+ "numberOfRooms" => "numberOfRooms",
"amenityFeature" => "amenityFeature",
- "numberOfBedrooms" => "numberOfBedrooms",
"numberOfPartialBathrooms" => "numberOfPartialBathrooms",
- "floorSize" => "floorSize",
- "numberOfFullBathrooms" => "numberOfFullBathrooms",
- "petsAllowed" => "petsAllowed",
- "layoutImage" => "layoutImage",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Indicates some accommodation that this floor plan describes.
+ * 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\Accommodation|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $isPlanForApartment;
+ protected $floorSize;
/**
- * 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]].
+ * Indicates some accommodation that this floor plan describes.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\Accommodation|string
*/
- protected $numberOfBathroomsTotal;
+ protected $isPlanForApartment;
/**
- * 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.
+ * 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|Number|null
+ * @var bool|string|null
*/
- protected $numberOfRooms;
+ protected $petsAllowed;
/**
- * 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]].
+ * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $numberOfAccommodationUnits;
+ protected $numberOfBedrooms;
/**
- * 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 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 $numberOfAvailableAccommodationUnits;
+ protected $numberOfBathroomsTotal;
/**
- * 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.
+ * A schematic image showing the floorplan layout.
*
*
- * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- protected $amenityFeature;
+ protected $layoutImage;
/**
- * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].
+ * 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 Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $numberOfBedrooms;
+ protected $numberOfAvailableAccommodationUnits;
/**
- * 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).
+ * 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 $numberOfPartialBathrooms;
+ protected $numberOfFullBathrooms;
/**
- * 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 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 $floorSize;
+ protected $numberOfAccommodationUnits;
/**
- * 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 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 Number|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $numberOfFullBathrooms;
+ protected $numberOfRooms;
/**
- * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
+ * 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.
*
*
- * @var bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- protected $petsAllowed;
+ protected $amenityFeature;
/**
- * A schematic image showing the floorplan layout.
+ * 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 \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @var Number|null
*/
- protected $layoutImage;
+ protected $numberOfPartialBathrooms;
/**
- * @return \OpenActive\Models\SchemaOrg\Accommodation|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getIsPlanForApartment()
+ public function getFloorSize()
{
- return $this->isPlanForApartment;
+ return $this->floorSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Accommodation|string $isPlanForApartment
+ * @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 setIsPlanForApartment($isPlanForApartment)
+ public function setFloorSize($floorSize)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Accommodation",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $isPlanForApartment = self::checkTypes($isPlanForApartment, $types);
+ $floorSize = self::checkTypes($floorSize, $types);
- $this->isPlanForApartment = $isPlanForApartment;
+ $this->floorSize = $floorSize;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\Accommodation|string
*/
- public function getNumberOfBathroomsTotal()
+ public function getIsPlanForApartment()
{
- return $this->numberOfBathroomsTotal;
+ return $this->isPlanForApartment;
}
/**
- * @param int|null $numberOfBathroomsTotal
+ * @param \OpenActive\Models\SchemaOrg\Accommodation|string $isPlanForApartment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfBathroomsTotal($numberOfBathroomsTotal)
+ public function setIsPlanForApartment($isPlanForApartment)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\Accommodation",
+ "string",
];
- $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types);
+ $isPlanForApartment = self::checkTypes($isPlanForApartment, $types);
- $this->numberOfBathroomsTotal = $numberOfBathroomsTotal;
+ $this->isPlanForApartment = $isPlanForApartment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * @return bool|string|null
*/
- public function getNumberOfRooms()
+ public function getPetsAllowed()
{
- return $this->numberOfRooms;
+ return $this->petsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfRooms($numberOfRooms)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "bool",
"string",
- "Number",
"null",
];
- $numberOfRooms = self::checkTypes($numberOfRooms, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->numberOfRooms = $numberOfRooms;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getNumberOfAccommodationUnits()
+ public function getNumberOfBedrooms()
{
- return $this->numberOfAccommodationUnits;
+ return $this->numberOfBedrooms;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits
+ * @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 setNumberOfAccommodationUnits($numberOfAccommodationUnits)
+ public function setNumberOfBedrooms($numberOfBedrooms)
{
$types = [
+ "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "null",
];
- $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
+ $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
- $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
+ $this->numberOfBedrooms = $numberOfBedrooms;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return int|null
*/
- public function getNumberOfAvailableAccommodationUnits()
+ public function getNumberOfBathroomsTotal()
{
- return $this->numberOfAvailableAccommodationUnits;
+ return $this->numberOfBathroomsTotal;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits
+ * @param int|null $numberOfBathroomsTotal
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
+ public function setNumberOfBathroomsTotal($numberOfBathroomsTotal)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "int",
+ "null",
];
- $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
+ $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types);
- $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
+ $this->numberOfBathroomsTotal = $numberOfBathroomsTotal;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\ImageObject|string
*/
- public function getAmenityFeature()
+ public function getLayoutImage()
{
- return $this->amenityFeature;
+ return $this->layoutImage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
+ * @param \OpenActive\Models\SchemaOrg\ImageObject|string $layoutImage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmenityFeature($amenityFeature)
+ public function setLayoutImage($layoutImage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
+ "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
];
- $amenityFeature = self::checkTypes($amenityFeature, $types);
+ $layoutImage = self::checkTypes($layoutImage, $types);
- $this->amenityFeature = $amenityFeature;
+ $this->layoutImage = $layoutImage;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getNumberOfBedrooms()
+ public function getNumberOfAvailableAccommodationUnits()
{
- return $this->numberOfBedrooms;
+ return $this->numberOfAvailableAccommodationUnits;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms
+ * @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 setNumberOfBedrooms($numberOfBedrooms)
+ public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits)
{
$types = [
- "Number",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types);
+ $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types);
- $this->numberOfBedrooms = $numberOfBedrooms;
+ $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits;
}
/**
* @return Number|null
*/
- public function getNumberOfPartialBathrooms()
+ public function getNumberOfFullBathrooms()
{
- return $this->numberOfPartialBathrooms;
+ return $this->numberOfFullBathrooms;
}
/**
- * @param Number|null $numberOfPartialBathrooms
+ * @param Number|null $numberOfFullBathrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
+ public function setNumberOfFullBathrooms($numberOfFullBathrooms)
{
$types = [
"Number",
"null",
];
- $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
+ $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
- $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
+ $this->numberOfFullBathrooms = $numberOfFullBathrooms;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getFloorSize()
+ public function getNumberOfAccommodationUnits()
{
- return $this->floorSize;
+ return $this->numberOfAccommodationUnits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize
+ * @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 setFloorSize($floorSize)
+ public function setNumberOfAccommodationUnits($numberOfAccommodationUnits)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $floorSize = self::checkTypes($floorSize, $types);
+ $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types);
- $this->floorSize = $floorSize;
+ $this->numberOfAccommodationUnits = $numberOfAccommodationUnits;
}
/**
- * @return Number|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getNumberOfFullBathrooms()
+ public function getNumberOfRooms()
{
- return $this->numberOfFullBathrooms;
+ return $this->numberOfRooms;
}
/**
- * @param Number|null $numberOfFullBathrooms
+ * @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 setNumberOfFullBathrooms($numberOfFullBathrooms)
+ public function setNumberOfRooms($numberOfRooms)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
"Number",
"null",
];
- $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types);
+ $numberOfRooms = self::checkTypes($numberOfRooms, $types);
- $this->numberOfFullBathrooms = $numberOfFullBathrooms;
+ $this->numberOfRooms = $numberOfRooms;
}
/**
- * @return bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- public function getPetsAllowed()
+ public function getAmenityFeature()
{
- return $this->petsAllowed;
+ return $this->amenityFeature;
}
/**
- * @param bool|string|null $petsAllowed
+ * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPetsAllowed($petsAllowed)
+ public function setAmenityFeature($amenityFeature)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
"string",
- "null",
];
- $petsAllowed = self::checkTypes($petsAllowed, $types);
+ $amenityFeature = self::checkTypes($amenityFeature, $types);
- $this->petsAllowed = $petsAllowed;
+ $this->amenityFeature = $amenityFeature;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return Number|null
*/
- public function getLayoutImage()
+ public function getNumberOfPartialBathrooms()
{
- return $this->layoutImage;
+ return $this->numberOfPartialBathrooms;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|string $layoutImage
+ * @param Number|null $numberOfPartialBathrooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLayoutImage($layoutImage)
+ public function setNumberOfPartialBathrooms($numberOfPartialBathrooms)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
- "string",
+ "Number",
+ "null",
];
- $layoutImage = self::checkTypes($layoutImage, $types);
+ $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types);
- $this->layoutImage = $layoutImage;
+ $this->numberOfPartialBathrooms = $numberOfPartialBathrooms;
}
}
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..355e18f9 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 = [
+ "menu" => "menu",
+ "hasMenu" => "hasMenu",
"starRating" => "starRating",
"servesCuisine" => "servesCuisine",
"acceptsReservations" => "acceptsReservations",
- "hasMenu" => "hasMenu",
- "menu" => "menu",
];
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).
+ * Either the actual menu as a structured representation, as text, or a URL of the menu.
*
*
- * @var \OpenActive\Models\SchemaOrg\Rating|string
+ * @var \OpenActive\Models\SchemaOrg\Menu|string
*/
- protected $starRating;
+ protected $menu;
/**
- * The cuisine of the restaurant.
+ * Either the actual menu as a structured representation, as text, or a URL of the menu.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Menu|string
*/
- 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```.
+ * 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 bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
*/
- protected $acceptsReservations;
+ 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 $hasMenu;
+ protected $servesCuisine;
/**
- * Either the actual menu as a structured representation, as text, or a URL of the menu.
+ * 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 string|\OpenActive\Models\SchemaOrg\Menu
+ * @var bool|string|null
*/
- protected $menu;
+ protected $acceptsReservations;
/**
- * @return \OpenActive\Models\SchemaOrg\Rating|string
+ * @return \OpenActive\Models\SchemaOrg\Menu|string
*/
- public function getStarRating()
+ public function getMenu()
{
- return $this->starRating;
+ return $this->menu;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating
+ * @param \OpenActive\Models\SchemaOrg\Menu|string $menu
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStarRating($starRating)
+ public function setMenu($menu)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Rating",
+ "\OpenActive\Models\SchemaOrg\Menu",
"string",
];
- $starRating = self::checkTypes($starRating, $types);
+ $menu = self::checkTypes($menu, $types);
- $this->starRating = $starRating;
+ $this->menu = $menu;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Menu|string
*/
- public function getServesCuisine()
+ public function getHasMenu()
{
- return $this->servesCuisine;
+ return $this->hasMenu;
}
/**
- * @param string $servesCuisine
+ * @param \OpenActive\Models\SchemaOrg\Menu|string $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 = [
+ "\OpenActive\Models\SchemaOrg\Menu",
"string",
];
- $servesCuisine = self::checkTypes($servesCuisine, $types);
+ $hasMenu = self::checkTypes($hasMenu, $types);
- $this->servesCuisine = $servesCuisine;
+ $this->hasMenu = $hasMenu;
}
/**
- * @return bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
*/
- public function getAcceptsReservations()
+ public function getStarRating()
{
- return $this->acceptsReservations;
+ return $this->starRating;
}
/**
- * @param bool|string|null $acceptsReservations
+ * @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 setAcceptsReservations($acceptsReservations)
+ public function setStarRating($starRating)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\Rating",
"string",
- "null",
];
- $acceptsReservations = self::checkTypes($acceptsReservations, $types);
+ $starRating = self::checkTypes($starRating, $types);
- $this->acceptsReservations = $acceptsReservations;
+ $this->starRating = $starRating;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Menu
+ * @return string
*/
- public function getHasMenu()
+ public function getServesCuisine()
{
- return $this->hasMenu;
+ return $this->servesCuisine;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Menu $hasMenu
+ * @param string $servesCuisine
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenu($hasMenu)
+ public function setServesCuisine($servesCuisine)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\Menu",
];
- $hasMenu = self::checkTypes($hasMenu, $types);
+ $servesCuisine = self::checkTypes($servesCuisine, $types);
- $this->hasMenu = $hasMenu;
+ $this->servesCuisine = $servesCuisine;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Menu
+ * @return bool|string|null
*/
- public function getMenu()
+ public function getAcceptsReservations()
{
- return $this->menu;
+ return $this->acceptsReservations;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Menu $menu
+ * @param bool|string|null $acceptsReservations
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMenu($menu)
+ public function setAcceptsReservations($acceptsReservations)
{
$types = [
+ "bool",
"string",
- "\OpenActive\Models\SchemaOrg\Menu",
+ "null",
];
- $menu = self::checkTypes($menu, $types);
+ $acceptsReservations = self::checkTypes($acceptsReservations, $types);
- $this->menu = $menu;
+ $this->acceptsReservations = $acceptsReservations;
}
}
diff --git a/src/Models/SchemaOrg/FoodEstablishmentReservation.php b/src/Models/SchemaOrg/FoodEstablishmentReservation.php
index 15f0143c..88de4e05 100644
--- a/src/Models/SchemaOrg/FoodEstablishmentReservation.php
+++ b/src/Models/SchemaOrg/FoodEstablishmentReservation.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"partySize" => "partySize",
- "startTime" => "startTime",
"endTime" => "endTime",
+ "startTime" => "startTime",
];
return array_merge(parent::fieldList(), $fields);
@@ -29,28 +29,28 @@ public static function fieldList() {
* Number of people the reservation should accommodate.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
protected $partySize;
/**
- * 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 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 DateTime|string|null
*/
- protected $startTime;
+ protected $endTime;
/**
- * 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;
+ protected $startTime;
/**
- * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
public function getPartySize()
{
@@ -58,16 +58,16 @@ public function getPartySize()
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $partySize
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null $partySize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setPartySize($partySize)
{
$types = [
- "int",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "int",
"null",
];
@@ -79,17 +79,17 @@ public function setPartySize($partySize)
/**
* @return DateTime|string|null
*/
- public function getStartTime()
+ public function getEndTime()
{
- return $this->startTime;
+ return $this->endTime;
}
/**
- * @param DateTime|string|null $startTime
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartTime($startTime)
+ public function setEndTime($endTime)
{
$types = [
"DateTime",
@@ -97,25 +97,25 @@ public function setStartTime($startTime)
"null",
];
- $startTime = self::checkTypes($startTime, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->startTime = $startTime;
+ $this->endTime = $endTime;
}
/**
* @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",
@@ -123,9 +123,9 @@ public function setEndTime($endTime)
"null",
];
- $endTime = self::checkTypes($endTime, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->endTime = $endTime;
+ $this->startTime = $startTime;
}
}
diff --git a/src/Models/SchemaOrg/Game.php b/src/Models/SchemaOrg/Game.php
index c575597b..be8ea81a 100644
--- a/src/Models/SchemaOrg/Game.php
+++ b/src/Models/SchemaOrg/Game.php
@@ -17,31 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
- "characterAttribute" => "characterAttribute",
- "gameItem" => "gameItem",
- "numberOfPlayers" => "numberOfPlayers",
"quest" => "quest",
+ "numberOfPlayers" => "numberOfPlayers",
+ "gameItem" => "gameItem",
"gameLocation" => "gameLocation",
+ "characterAttribute" => "characterAttribute",
];
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).
- *
- *
- * @var \OpenActive\Models\SchemaOrg\Thing|string
- */
- protected $characterAttribute;
-
- /**
- * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character.
+ * 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 $gameItem;
+ protected $quest;
/**
* Indicate how many people can play this game (minimum, maximum, or range).
@@ -52,69 +44,52 @@ public static function fieldList() {
protected $numberOfPlayers;
/**
- * The task that a player-controlled character, or group of characters may complete in order to gain a reward.
+ * 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\Thing|string
*/
- protected $quest;
+ protected $gameItem;
/**
* Real or fictional location of the game (or part of game).
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place
*/
protected $gameLocation;
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|string
- */
- public function getCharacterAttribute()
- {
- return $this->characterAttribute;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $characterAttribute
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * 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
*/
- public function setCharacterAttribute($characterAttribute)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Thing",
- "string",
- ];
-
- $characterAttribute = self::checkTypes($characterAttribute, $types);
-
- $this->characterAttribute = $characterAttribute;
- }
+ protected $characterAttribute;
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getGameItem()
+ public function getQuest()
{
- return $this->gameItem;
+ return $this->quest;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem
+ * @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 setGameItem($gameItem)
+ public function setQuest($quest)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $gameItem = self::checkTypes($gameItem, $types);
+ $quest = self::checkTypes($quest, $types);
- $this->gameItem = $gameItem;
+ $this->quest = $quest;
}
/**
@@ -145,30 +120,30 @@ public function setNumberOfPlayers($numberOfPlayers)
/**
* @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getQuest()
+ public function getGameItem()
{
- return $this->quest;
+ return $this->gameItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|string $quest
+ * @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 setQuest($quest)
+ public function setGameItem($gameItem)
{
$types = [
"\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $quest = self::checkTypes($quest, $types);
+ $gameItem = self::checkTypes($gameItem, $types);
- $this->quest = $quest;
+ $this->gameItem = $gameItem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place
*/
public function getGameLocation()
{
@@ -176,16 +151,16 @@ public function getGameLocation()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation
+ * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place $gameLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setGameLocation($gameLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
"\OpenActive\Models\SchemaOrg\PostalAddress",
+ "\OpenActive\Models\SchemaOrg\Place",
];
$gameLocation = self::checkTypes($gameLocation, $types);
@@ -193,4 +168,29 @@ public function setGameLocation($gameLocation)
$this->gameLocation = $gameLocation;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
+ */
+ public function getCharacterAttribute()
+ {
+ return $this->characterAttribute;
+ }
+
+ /**
+ * @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 setCharacterAttribute($characterAttribute)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
+ ];
+
+ $characterAttribute = self::checkTypes($characterAttribute, $types);
+
+ $this->characterAttribute = $characterAttribute;
+ }
+
}
diff --git a/src/Models/SchemaOrg/Gene.php b/src/Models/SchemaOrg/Gene.php
index 7ecc5fa5..ad385454 100644
--- a/src/Models/SchemaOrg/Gene.php
+++ b/src/Models/SchemaOrg/Gene.php
@@ -17,25 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
- "alternativeOf" => "alternativeOf",
+ "expressedIn" => "expressedIn",
"hasBioPolymerSequence" => "hasBioPolymerSequence",
"encodesBioChemEntity" => "encodesBioChemEntity",
- "expressedIn" => "expressedIn",
+ "alternativeOf" => "alternativeOf",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Another gene which is a variation of this one.
+ * Tissue, organ, biological sample, etc in which activity of this gene has been observed experimentally. For example brain, digestive system.
*
*
- * @var \OpenActive\Models\SchemaOrg\Gene|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- protected $alternativeOf;
+ protected $expressedIn;
/**
- * A symbolic representation of a BioChemEnity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein.
+ * A symbolic representation of a BioChemEntity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein.
*
*
* @var string
@@ -51,36 +51,39 @@ public static function fieldList() {
protected $encodesBioChemEntity;
/**
- * Tissue, organ, biological sample, etc in which activity of this gene has been observed experimentally. For example brain, digestive system.
+ * Another gene which is a variation of this one.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
+ * @var \OpenActive\Models\SchemaOrg\Gene|string
*/
- protected $expressedIn;
+ protected $alternativeOf;
/**
- * @return \OpenActive\Models\SchemaOrg\Gene|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\BioChemEntity|string
*/
- public function getAlternativeOf()
+ public function getExpressedIn()
{
- return $this->alternativeOf;
+ return $this->expressedIn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Gene|string $alternativeOf
+ * @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.
*/
- public function setAlternativeOf($alternativeOf)
+ public function setExpressedIn($expressedIn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Gene",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\BioChemEntity",
"string",
];
- $alternativeOf = self::checkTypes($alternativeOf, $types);
+ $expressedIn = self::checkTypes($expressedIn, $types);
- $this->alternativeOf = $alternativeOf;
+ $this->expressedIn = $expressedIn;
}
/**
@@ -133,31 +136,28 @@ 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\Gene|string
*/
- public function getExpressedIn()
+ public function getAlternativeOf()
{
- return $this->expressedIn;
+ return $this->alternativeOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $expressedIn
+ * @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 setExpressedIn($expressedIn)
+ public function setAlternativeOf($alternativeOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\BioChemEntity",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\Gene",
"string",
];
- $expressedIn = self::checkTypes($expressedIn, $types);
+ $alternativeOf = self::checkTypes($alternativeOf, $types);
- $this->expressedIn = $expressedIn;
+ $this->alternativeOf = $alternativeOf;
}
}
diff --git a/src/Models/SchemaOrg/GeoCircle.php b/src/Models/SchemaOrg/GeoCircle.php
index 81008cf6..63394bf6 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 \OpenActive\Models\SchemaOrg\Distance|string|Number|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 \OpenActive\Models\SchemaOrg\Distance|string|Number|null
*/
- public function getGeoMidpoint()
+ public function getGeoRadius()
{
- return $this->geoMidpoint;
+ return $this->geoRadius;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|string $geoMidpoint
+ * @param \OpenActive\Models\SchemaOrg\Distance|string|Number|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",
+ "\OpenActive\Models\SchemaOrg\Distance",
"string",
+ "Number",
+ "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..0ed37f0f 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",
- "latitude" => "latitude",
"address" => "address",
"postalCode" => "postalCode",
+ "latitude" => "latitude",
"elevation" => "elevation",
"longitude" => "longitude",
];
@@ -29,21 +29,13 @@ 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).
+ * The country. Recommended to be in 2-letter [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1) format, for example "US". For backward compatibility, a 3-letter [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) country code such as "SGP" or a full country name such as "Singapore" can also be used.
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var string|\OpenActive\Models\SchemaOrg\Country
*/
protected $addressCountry;
- /**
- * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
- *
- *
- * @var string|Number|null
- */
- protected $latitude;
-
/**
* Physical address of the item.
*
@@ -61,7 +53,15 @@ public static function fieldList() {
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 latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).
+ *
+ *
+ * @var string|Number|null
+ */
+ protected $latitude;
+
+ /**
+ * 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|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- public function getLatitude()
+ public function getAddress()
{
- return $this->latitude;
+ return $this->address;
}
/**
- * @param string|Number|null $latitude
+ * @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 setLatitude($latitude)
+ public function setAddress($address)
{
$types = [
"string",
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $latitude = self::checkTypes($latitude, $types);
+ $address = self::checkTypes($address, $types);
- $this->latitude = $latitude;
+ $this->address = $address;
}
/**
- * @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|Number|null
*/
- public function getPostalCode()
+ public function getLatitude()
{
- return $this->postalCode;
+ return $this->latitude;
}
/**
- * @param string $postalCode
+ * @param string|Number|null $latitude
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCode($postalCode)
+ public function setLatitude($latitude)
{
$types = [
"string",
+ "Number",
+ "null",
];
- $postalCode = self::checkTypes($postalCode, $types);
+ $latitude = self::checkTypes($latitude, $types);
- $this->postalCode = $postalCode;
+ $this->latitude = $latitude;
}
/**
diff --git a/src/Models/SchemaOrg/GeoShape.php b/src/Models/SchemaOrg/GeoShape.php
index 3a4ebf30..ddc4f304 100644
--- a/src/Models/SchemaOrg/GeoShape.php
+++ b/src/Models/SchemaOrg/GeoShape.php
@@ -18,12 +18,12 @@ public static function getType()
public static function fieldList() {
$fields = [
"addressCountry" => "addressCountry",
- "circle" => "circle",
- "line" => "line",
- "polygon" => "polygon",
"address" => "address",
+ "polygon" => "polygon",
"postalCode" => "postalCode",
+ "circle" => "circle",
"elevation" => "elevation",
+ "line" => "line",
"box" => "box",
];
@@ -31,60 +31,60 @@ 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).
+ * The country. Recommended to be in 2-letter [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1) format, for example "US". For backward compatibility, a 3-letter [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) country code such as "SGP" or a full country name such as "Singapore" can also be used.
*
*
- * @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.
+ * Physical address of the item.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- protected $circle;
+ protected $address;
/**
- * 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 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.
*
*
* @var string
*/
- protected $line;
+ protected $polygon;
/**
- * 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.
+ * The postal code. For example, 94043.
*
*
* @var string
*/
- protected $polygon;
+ protected $postalCode;
/**
- * Physical address of the item.
+ * 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|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @var string
*/
- protected $address;
+ protected $circle;
/**
- * The postal code. For example, 94043.
+ * 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
+ * @var string|Number|null
*/
- protected $postalCode;
+ protected $elevation;
/**
- * 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.
+ * 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|Number|null
+ * @var string
*/
- protected $elevation;
+ protected $line;
/**
* 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.
@@ -95,7 +95,7 @@ public static function fieldList() {
protected $box;
/**
- * @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);
@@ -120,150 +120,150 @@ public function setAddressCountry($addressCountry)
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
*/
- public function getCircle()
+ public function getAddress()
{
- return $this->circle;
+ return $this->address;
}
/**
- * @param string $circle
+ * @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 setCircle($circle)
+ public function setAddress($address)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $circle = self::checkTypes($circle, $types);
+ $address = self::checkTypes($address, $types);
- $this->circle = $circle;
+ $this->address = $address;
}
/**
* @return string
*/
- public function getLine()
+ public function getPolygon()
{
- return $this->line;
+ return $this->polygon;
}
/**
- * @param string $line
+ * @param string $polygon
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLine($line)
+ public function setPolygon($polygon)
{
$types = [
"string",
];
- $line = self::checkTypes($line, $types);
+ $polygon = self::checkTypes($polygon, $types);
- $this->line = $line;
+ $this->polygon = $polygon;
}
/**
* @return string
*/
- public function getPolygon()
+ public function getPostalCode()
{
- return $this->polygon;
+ return $this->postalCode;
}
/**
- * @param string $polygon
+ * @param string $postalCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPolygon($polygon)
+ public function setPostalCode($postalCode)
{
$types = [
"string",
];
- $polygon = self::checkTypes($polygon, $types);
+ $postalCode = self::checkTypes($postalCode, $types);
- $this->polygon = $polygon;
+ $this->postalCode = $postalCode;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\PostalAddress
+ * @return string
*/
- public function getAddress()
+ public function getCircle()
{
- return $this->address;
+ return $this->circle;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address
+ * @param string $circle
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAddress($address)
+ public function setCircle($circle)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\PostalAddress",
];
- $address = self::checkTypes($address, $types);
+ $circle = self::checkTypes($circle, $types);
- $this->address = $address;
+ $this->circle = $circle;
}
/**
- * @return string
+ * @return string|Number|null
*/
- public function getPostalCode()
+ public function getElevation()
{
- return $this->postalCode;
+ return $this->elevation;
}
/**
- * @param string $postalCode
+ * @param string|Number|null $elevation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostalCode($postalCode)
+ public function setElevation($elevation)
{
$types = [
"string",
+ "Number",
+ "null",
];
- $postalCode = self::checkTypes($postalCode, $types);
+ $elevation = self::checkTypes($elevation, $types);
- $this->postalCode = $postalCode;
+ $this->elevation = $elevation;
}
/**
- * @return string|Number|null
+ * @return string
*/
- public function getElevation()
+ public function getLine()
{
- return $this->elevation;
+ return $this->line;
}
/**
- * @param string|Number|null $elevation
+ * @param string $line
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setElevation($elevation)
+ public function setLine($line)
{
$types = [
"string",
- "Number",
- "null",
];
- $elevation = self::checkTypes($elevation, $types);
+ $line = self::checkTypes($line, $types);
- $this->elevation = $elevation;
+ $this->line = $line;
}
/**
diff --git a/src/Models/SchemaOrg/GeospatialGeometry.php b/src/Models/SchemaOrg/GeospatialGeometry.php
index 41a3ac0f..b6e4e264 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",
- "geoIntersects" => "geoIntersects",
- "geoTouches" => "geoTouches",
- "geoCoveredBy" => "geoCoveredBy",
"geoEquals" => "geoEquals",
- "geoCrosses" => "geoCrosses",
- "geoCovers" => "geoCovers",
"geoWithin" => "geoWithin",
- "geoDisjoint" => "geoDisjoint",
+ "geoCovers" => "geoCovers",
+ "geoCrosses" => "geoCrosses",
"geoOverlaps" => "geoOverlaps",
+ "geoDisjoint" => "geoDisjoint",
+ "geoContains" => "geoContains",
+ "geoTouches" => "geoTouches",
+ "geoIntersects" => "geoIntersects",
+ "geoCoveredBy" => "geoCoveredBy",
];
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 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 $geoContains;
+ protected $geoEquals;
/**
- * 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 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\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoIntersects;
+ protected $geoWithin;
/**
- * 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 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\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoTouches;
+ protected $geoCovers;
/**
- * 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 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\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoCoveredBy;
+ protected $geoCrosses;
/**
- * 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 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\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoEquals;
+ protected $geoOverlaps;
/**
- * 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) 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 $geoCrosses;
+ protected $geoDisjoint;
/**
- * 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).
+ * 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\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoCovers;
+ protected $geoContains;
/**
- * 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) 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\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoWithin;
+ protected $geoTouches;
/**
- * 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 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\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- protected $geoDisjoint;
+ protected $geoIntersects;
/**
- * 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 covers it. 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 $geoCoveredBy;
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoContains()
+ public function getGeoEquals()
{
- return $this->geoContains;
+ return $this->geoEquals;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains
+ * @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 setGeoContains($geoContains)
+ public function setGeoEquals($geoEquals)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -133,51 +133,51 @@ public function setGeoContains($geoContains)
"string",
];
- $geoContains = self::checkTypes($geoContains, $types);
+ $geoEquals = self::checkTypes($geoEquals, $types);
- $this->geoContains = $geoContains;
+ $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 getGeoIntersects()
+ public function getGeoWithin()
{
- return $this->geoIntersects;
+ return $this->geoWithin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects
+ * @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 setGeoIntersects($geoIntersects)
+ public function setGeoWithin($geoWithin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoIntersects = self::checkTypes($geoIntersects, $types);
+ $geoWithin = self::checkTypes($geoWithin, $types);
- $this->geoIntersects = $geoIntersects;
+ $this->geoWithin = $geoWithin;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoTouches()
+ public function getGeoCovers()
{
- return $this->geoTouches;
+ return $this->geoCovers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches
+ * @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 setGeoTouches($geoTouches)
+ public function setGeoCovers($geoCovers)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -185,25 +185,25 @@ public function setGeoTouches($geoTouches)
"string",
];
- $geoTouches = self::checkTypes($geoTouches, $types);
+ $geoCovers = self::checkTypes($geoCovers, $types);
- $this->geoTouches = $geoTouches;
+ $this->geoCovers = $geoCovers;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoCoveredBy()
+ public function getGeoCrosses()
{
- return $this->geoCoveredBy;
+ return $this->geoCrosses;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCoveredBy
+ * @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 setGeoCoveredBy($geoCoveredBy)
+ public function setGeoCrosses($geoCrosses)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -211,25 +211,25 @@ public function setGeoCoveredBy($geoCoveredBy)
"string",
];
- $geoCoveredBy = self::checkTypes($geoCoveredBy, $types);
+ $geoCrosses = self::checkTypes($geoCrosses, $types);
- $this->geoCoveredBy = $geoCoveredBy;
+ $this->geoCrosses = $geoCrosses;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoEquals()
+ public function getGeoOverlaps()
{
- return $this->geoEquals;
+ return $this->geoOverlaps;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals
+ * @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 setGeoEquals($geoEquals)
+ public function setGeoOverlaps($geoOverlaps)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -237,77 +237,77 @@ public function setGeoEquals($geoEquals)
"string",
];
- $geoEquals = self::checkTypes($geoEquals, $types);
+ $geoOverlaps = self::checkTypes($geoOverlaps, $types);
- $this->geoEquals = $geoEquals;
+ $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 getGeoCrosses()
+ public function getGeoDisjoint()
{
- return $this->geoCrosses;
+ return $this->geoDisjoint;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCrosses
+ * @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 setGeoCrosses($geoCrosses)
+ public function setGeoDisjoint($geoDisjoint)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoCrosses = self::checkTypes($geoCrosses, $types);
+ $geoDisjoint = self::checkTypes($geoDisjoint, $types);
- $this->geoCrosses = $geoCrosses;
+ $this->geoDisjoint = $geoDisjoint;
}
/**
- * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoCovers()
+ public function getGeoContains()
{
- return $this->geoCovers;
+ return $this->geoContains;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGeoCovers($geoCovers)
+ public function setGeoContains($geoContains)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoCovers = self::checkTypes($geoCovers, $types);
+ $geoContains = self::checkTypes($geoContains, $types);
- $this->geoCovers = $geoCovers;
+ $this->geoContains = $geoContains;
}
/**
* @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string
*/
- public function getGeoWithin()
+ public function getGeoTouches()
{
- return $this->geoWithin;
+ return $this->geoTouches;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin
+ * @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 setGeoWithin($geoWithin)
+ public function setGeoTouches($geoTouches)
{
$types = [
"\OpenActive\Models\SchemaOrg\Place",
@@ -315,61 +315,61 @@ public function setGeoWithin($geoWithin)
"string",
];
- $geoWithin = self::checkTypes($geoWithin, $types);
+ $geoTouches = self::checkTypes($geoTouches, $types);
- $this->geoWithin = $geoWithin;
+ $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 getGeoDisjoint()
+ public function getGeoIntersects()
{
- return $this->geoDisjoint;
+ return $this->geoIntersects;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint
+ * @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 setGeoDisjoint($geoDisjoint)
+ public function setGeoIntersects($geoIntersects)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoDisjoint = self::checkTypes($geoDisjoint, $types);
+ $geoIntersects = self::checkTypes($geoIntersects, $types);
- $this->geoDisjoint = $geoDisjoint;
+ $this->geoIntersects = $geoIntersects;
}
/**
- * @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 getGeoCoveredBy()
{
- return $this->geoOverlaps;
+ return $this->geoCoveredBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps
+ * @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 setGeoOverlaps($geoOverlaps)
+ public function setGeoCoveredBy($geoCoveredBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\GeospatialGeometry",
"string",
];
- $geoOverlaps = self::checkTypes($geoOverlaps, $types);
+ $geoCoveredBy = self::checkTypes($geoCoveredBy, $types);
- $this->geoOverlaps = $geoOverlaps;
+ $this->geoCoveredBy = $geoCoveredBy;
}
}
diff --git a/src/Models/SchemaOrg/GiveAction.php b/src/Models/SchemaOrg/GiveAction.php
index c6617005..c1bd6682 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\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getRecipient()
{
@@ -40,16 +40,16 @@ 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\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|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\Person",
"\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
"\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..dd12ae96 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,20 +37,20 @@ 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\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|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
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
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\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|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\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|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\Organization",
"\OpenActive\Models\SchemaOrg\BioChemEntity",
"\OpenActive\Models\SchemaOrg\Event",
"\OpenActive\Models\SchemaOrg\MedicalEntity",
"\OpenActive\Models\SchemaOrg\CreativeWork",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Product",
"string",
];
@@ -107,7 +107,7 @@ public function setFundedItem($fundedItem)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getSponsor()
{
@@ -115,15 +115,15 @@ public function getSponsor()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $sponsor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSponsor($sponsor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
diff --git a/src/Models/SchemaOrg/HealthInsurancePlan.php b/src/Models/SchemaOrg/HealthInsurancePlan.php
index 80f8844e..7ee9bec4 100644
--- a/src/Models/SchemaOrg/HealthInsurancePlan.php
+++ b/src/Models/SchemaOrg/HealthInsurancePlan.php
@@ -17,27 +17,27 @@ public static function getType()
public static function fieldList() {
$fields = [
- "includesHealthPlanFormulary" => "includesHealthPlanFormulary",
+ "usesHealthPlanIdStandard" => "usesHealthPlanIdStandard",
"benefitsSummaryUrl" => "benefitsSummaryUrl",
- "healthPlanDrugOption" => "healthPlanDrugOption",
- "healthPlanDrugTier" => "healthPlanDrugTier",
- "healthPlanId" => "healthPlanId",
+ "healthPlanMarketingUrl" => "healthPlanMarketingUrl",
"contactPoint" => "contactPoint",
- "usesHealthPlanIdStandard" => "usesHealthPlanIdStandard",
+ "healthPlanDrugTier" => "healthPlanDrugTier",
+ "includesHealthPlanFormulary" => "includesHealthPlanFormulary",
"includesHealthPlanNetwork" => "includesHealthPlanNetwork",
- "healthPlanMarketingUrl" => "healthPlanMarketingUrl",
+ "healthPlanDrugOption" => "healthPlanDrugOption",
+ "healthPlanId" => "healthPlanId",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Formularies covered by this plan.
+ * The standard for interpreting the Plan ID. The preferred is "HIOS". See the Centers for Medicare & Medicaid Services for more details.
*
*
- * @var \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string
+ * @var string
*/
- protected $includesHealthPlanFormulary;
+ protected $usesHealthPlanIdStandard;
/**
* The URL that goes directly to the summary of benefits and coverage for the specific standard plan or plan variation.
@@ -48,84 +48,83 @@ public static function fieldList() {
protected $benefitsSummaryUrl;
/**
- * TODO.
+ * The URL that goes directly to the plan brochure for the specific standard plan or plan variation.
*
*
* @var string
*/
- protected $healthPlanDrugOption;
+ protected $healthPlanMarketingUrl;
/**
- * The tier(s) of drugs offered by this formulary or insurance plan.
+ * A contact point for a person or organization.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $healthPlanDrugTier;
+ protected $contactPoint;
/**
- * The 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)
+ * The tier(s) of drugs offered by this formulary or insurance plan.
*
*
* @var string
*/
- protected $healthPlanId;
+ protected $healthPlanDrugTier;
/**
- * A contact point for a person or organization.
+ * Formularies covered by this plan.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string
*/
- protected $contactPoint;
+ protected $includesHealthPlanFormulary;
/**
- * The standard for interpreting thePlan ID. The preferred is "HIOS". See the Centers for Medicare & Medicaid Services for more details.
+ * Networks covered by this plan.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string
*/
- protected $usesHealthPlanIdStandard;
+ protected $includesHealthPlanNetwork;
/**
- * Networks covered by this plan.
+ * TODO.
*
*
- * @var \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string
+ * @var string
*/
- protected $includesHealthPlanNetwork;
+ protected $healthPlanDrugOption;
/**
- * The URL that goes directly to the plan brochure for the specific standard plan or plan variation.
+ * The 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.)
*
*
* @var string
*/
- protected $healthPlanMarketingUrl;
+ protected $healthPlanId;
/**
- * @return \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string
+ * @return string
*/
- public function getIncludesHealthPlanFormulary()
+ public function getUsesHealthPlanIdStandard()
{
- return $this->includesHealthPlanFormulary;
+ return $this->usesHealthPlanIdStandard;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string $includesHealthPlanFormulary
+ * @param string $usesHealthPlanIdStandard
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludesHealthPlanFormulary($includesHealthPlanFormulary)
+ public function setUsesHealthPlanIdStandard($usesHealthPlanIdStandard)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HealthPlanFormulary",
"string",
];
- $includesHealthPlanFormulary = self::checkTypes($includesHealthPlanFormulary, $types);
+ $usesHealthPlanIdStandard = self::checkTypes($usesHealthPlanIdStandard, $types);
- $this->includesHealthPlanFormulary = $includesHealthPlanFormulary;
+ $this->usesHealthPlanIdStandard = $usesHealthPlanIdStandard;
}
/**
@@ -155,171 +154,172 @@ public function setBenefitsSummaryUrl($benefitsSummaryUrl)
/**
* @return string
*/
- public function getHealthPlanDrugOption()
+ public function getHealthPlanMarketingUrl()
{
- return $this->healthPlanDrugOption;
+ return $this->healthPlanMarketingUrl;
}
/**
- * @param string $healthPlanDrugOption
+ * @param string $healthPlanMarketingUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanDrugOption($healthPlanDrugOption)
+ public function setHealthPlanMarketingUrl($healthPlanMarketingUrl)
{
$types = [
"string",
];
- $healthPlanDrugOption = self::checkTypes($healthPlanDrugOption, $types);
+ $healthPlanMarketingUrl = self::checkTypes($healthPlanMarketingUrl, $types);
- $this->healthPlanDrugOption = $healthPlanDrugOption;
+ $this->healthPlanMarketingUrl = $healthPlanMarketingUrl;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getHealthPlanDrugTier()
+ public function getContactPoint()
{
- return $this->healthPlanDrugTier;
+ return $this->contactPoint;
}
/**
- * @param string $healthPlanDrugTier
+ * @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 setHealthPlanDrugTier($healthPlanDrugTier)
+ public function setContactPoint($contactPoint)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $healthPlanDrugTier = self::checkTypes($healthPlanDrugTier, $types);
+ $contactPoint = self::checkTypes($contactPoint, $types);
- $this->healthPlanDrugTier = $healthPlanDrugTier;
+ $this->contactPoint = $contactPoint;
}
/**
* @return string
*/
- public function getHealthPlanId()
+ public function getHealthPlanDrugTier()
{
- return $this->healthPlanId;
+ return $this->healthPlanDrugTier;
}
/**
- * @param string $healthPlanId
+ * @param string $healthPlanDrugTier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanId($healthPlanId)
+ public function setHealthPlanDrugTier($healthPlanDrugTier)
{
$types = [
"string",
];
- $healthPlanId = self::checkTypes($healthPlanId, $types);
+ $healthPlanDrugTier = self::checkTypes($healthPlanDrugTier, $types);
- $this->healthPlanId = $healthPlanId;
+ $this->healthPlanDrugTier = $healthPlanDrugTier;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string
*/
- public function getContactPoint()
+ public function getIncludesHealthPlanFormulary()
{
- return $this->contactPoint;
+ return $this->includesHealthPlanFormulary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint
+ * @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 setContactPoint($contactPoint)
+ public function setIncludesHealthPlanFormulary($includesHealthPlanFormulary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\HealthPlanFormulary",
"string",
];
- $contactPoint = self::checkTypes($contactPoint, $types);
+ $includesHealthPlanFormulary = self::checkTypes($includesHealthPlanFormulary, $types);
- $this->contactPoint = $contactPoint;
+ $this->includesHealthPlanFormulary = $includesHealthPlanFormulary;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string
*/
- public function getUsesHealthPlanIdStandard()
+ public function getIncludesHealthPlanNetwork()
{
- return $this->usesHealthPlanIdStandard;
+ return $this->includesHealthPlanNetwork;
}
/**
- * @param string $usesHealthPlanIdStandard
+ * @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 setUsesHealthPlanIdStandard($usesHealthPlanIdStandard)
+ public function setIncludesHealthPlanNetwork($includesHealthPlanNetwork)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\HealthPlanNetwork",
"string",
];
- $usesHealthPlanIdStandard = self::checkTypes($usesHealthPlanIdStandard, $types);
+ $includesHealthPlanNetwork = self::checkTypes($includesHealthPlanNetwork, $types);
- $this->usesHealthPlanIdStandard = $usesHealthPlanIdStandard;
+ $this->includesHealthPlanNetwork = $includesHealthPlanNetwork;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string
+ * @return string
*/
- public function getIncludesHealthPlanNetwork()
+ public function getHealthPlanDrugOption()
{
- return $this->includesHealthPlanNetwork;
+ return $this->healthPlanDrugOption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string $includesHealthPlanNetwork
+ * @param string $healthPlanDrugOption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludesHealthPlanNetwork($includesHealthPlanNetwork)
+ public function setHealthPlanDrugOption($healthPlanDrugOption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HealthPlanNetwork",
"string",
];
- $includesHealthPlanNetwork = self::checkTypes($includesHealthPlanNetwork, $types);
+ $healthPlanDrugOption = self::checkTypes($healthPlanDrugOption, $types);
- $this->includesHealthPlanNetwork = $includesHealthPlanNetwork;
+ $this->healthPlanDrugOption = $healthPlanDrugOption;
}
/**
* @return string
*/
- public function getHealthPlanMarketingUrl()
+ public function getHealthPlanId()
{
- return $this->healthPlanMarketingUrl;
+ return $this->healthPlanId;
}
/**
- * @param string $healthPlanMarketingUrl
+ * @param string $healthPlanId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanMarketingUrl($healthPlanMarketingUrl)
+ public function setHealthPlanId($healthPlanId)
{
$types = [
"string",
];
- $healthPlanMarketingUrl = self::checkTypes($healthPlanMarketingUrl, $types);
+ $healthPlanId = self::checkTypes($healthPlanId, $types);
- $this->healthPlanMarketingUrl = $healthPlanMarketingUrl;
+ $this->healthPlanId = $healthPlanId;
}
}
diff --git a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php
index f1110c97..2d59688a 100644
--- a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php
+++ b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php
@@ -17,10 +17,10 @@ public static function getType()
public static function fieldList() {
$fields = [
- "healthPlanCoinsuranceRate" => "healthPlanCoinsuranceRate",
- "healthPlanCoinsuranceOption" => "healthPlanCoinsuranceOption",
"healthPlanPharmacyCategory" => "healthPlanPharmacyCategory",
"healthPlanCopay" => "healthPlanCopay",
+ "healthPlanCoinsuranceRate" => "healthPlanCoinsuranceRate",
+ "healthPlanCoinsuranceOption" => "healthPlanCoinsuranceOption",
"healthPlanCopayOption" => "healthPlanCopayOption",
];
@@ -28,36 +28,36 @@ public static function fieldList() {
}
/**
- * Whether The rate of coinsurance expressed as a number between 0.0 and 1.0.
+ * The category or type of pharmacy associated with this cost sharing.
*
*
- * @var Number|null
+ * @var string
*/
- protected $healthPlanCoinsuranceRate;
+ protected $healthPlanPharmacyCategory;
/**
- * Whether the coinsurance applies before or after deductible, etc. TODO: Is this a closed set?
+ * The copay amount.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $healthPlanCoinsuranceOption;
+ protected $healthPlanCopay;
/**
- * 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 coinsurance applies before or after deductible, etc. TODO: Is this a closed set?
*
*
- * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var string
*/
- protected $healthPlanCopay;
+ protected $healthPlanCoinsuranceOption;
/**
* Whether the copay is before or after deductible, etc. TODO: Is this a closed set?
@@ -68,101 +68,101 @@ public static function fieldList() {
protected $healthPlanCopayOption;
/**
- * @return Number|null
+ * @return string
*/
- public function getHealthPlanCoinsuranceRate()
+ public function getHealthPlanPharmacyCategory()
{
- return $this->healthPlanCoinsuranceRate;
+ return $this->healthPlanPharmacyCategory;
}
/**
- * @param Number|null $healthPlanCoinsuranceRate
+ * @param string $healthPlanPharmacyCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanCoinsuranceRate($healthPlanCoinsuranceRate)
+ public function setHealthPlanPharmacyCategory($healthPlanPharmacyCategory)
{
$types = [
- "Number",
- "null",
+ "string",
];
- $healthPlanCoinsuranceRate = self::checkTypes($healthPlanCoinsuranceRate, $types);
+ $healthPlanPharmacyCategory = self::checkTypes($healthPlanPharmacyCategory, $types);
- $this->healthPlanCoinsuranceRate = $healthPlanCoinsuranceRate;
+ $this->healthPlanPharmacyCategory = $healthPlanPharmacyCategory;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getHealthPlanCoinsuranceOption()
+ public function getHealthPlanCopay()
{
- return $this->healthPlanCoinsuranceOption;
+ return $this->healthPlanCopay;
}
/**
- * @param string $healthPlanCoinsuranceOption
+ * @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 setHealthPlanCoinsuranceOption($healthPlanCoinsuranceOption)
+ public function setHealthPlanCopay($healthPlanCopay)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $healthPlanCoinsuranceOption = self::checkTypes($healthPlanCoinsuranceOption, $types);
+ $healthPlanCopay = self::checkTypes($healthPlanCopay, $types);
- $this->healthPlanCoinsuranceOption = $healthPlanCoinsuranceOption;
+ $this->healthPlanCopay = $healthPlanCopay;
}
/**
- * @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 getHealthPlanCoinsuranceOption()
{
- return $this->healthPlanCopay;
+ return $this->healthPlanCoinsuranceOption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $healthPlanCopay
+ * @param string $healthPlanCoinsuranceOption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanCopay($healthPlanCopay)
+ public function setHealthPlanCoinsuranceOption($healthPlanCoinsuranceOption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
"string",
];
- $healthPlanCopay = self::checkTypes($healthPlanCopay, $types);
+ $healthPlanCoinsuranceOption = self::checkTypes($healthPlanCoinsuranceOption, $types);
- $this->healthPlanCopay = $healthPlanCopay;
+ $this->healthPlanCoinsuranceOption = $healthPlanCoinsuranceOption;
}
/**
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..66919b56 100644
--- a/src/Models/SchemaOrg/HealthPlanNetwork.php
+++ b/src/Models/SchemaOrg/HealthPlanNetwork.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "healthPlanNetworkId" => "healthPlanNetworkId",
"healthPlanCostSharing" => "healthPlanCostSharing",
+ "healthPlanNetworkId" => "healthPlanNetworkId",
"healthPlanNetworkTier" => "healthPlanNetworkTier",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * Name or unique ID of network. (Networks are often reused across different insurance plans).
+ * The costs to the patient for services under this network or formulary.
*
*
- * @var string
+ * @var bool|null
*/
- protected $healthPlanNetworkId;
+ protected $healthPlanCostSharing;
/**
- * Whether The costs to the patient for services under this network or formulary.
+ * Name or unique ID of network. (Networks are often reused across different insurance plans.)
*
*
- * @var bool|null
+ * @var string
*/
- protected $healthPlanCostSharing;
+ protected $healthPlanNetworkId;
/**
* The tier(s) for this network.
@@ -50,52 +50,52 @@ public static function fieldList() {
protected $healthPlanNetworkTier;
/**
- * @return string
+ * @return bool|null
*/
- public function getHealthPlanNetworkId()
+ public function getHealthPlanCostSharing()
{
- return $this->healthPlanNetworkId;
+ return $this->healthPlanCostSharing;
}
/**
- * @param string $healthPlanNetworkId
+ * @param bool|null $healthPlanCostSharing
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanNetworkId($healthPlanNetworkId)
+ public function setHealthPlanCostSharing($healthPlanCostSharing)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types);
+ $healthPlanCostSharing = self::checkTypes($healthPlanCostSharing, $types);
- $this->healthPlanNetworkId = $healthPlanNetworkId;
+ $this->healthPlanCostSharing = $healthPlanCostSharing;
}
/**
- * @return bool|null
+ * @return string
*/
- public function getHealthPlanCostSharing()
+ public function getHealthPlanNetworkId()
{
- return $this->healthPlanCostSharing;
+ return $this->healthPlanNetworkId;
}
/**
- * @param bool|null $healthPlanCostSharing
+ * @param string $healthPlanNetworkId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanCostSharing($healthPlanCostSharing)
+ public function setHealthPlanNetworkId($healthPlanNetworkId)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $healthPlanCostSharing = self::checkTypes($healthPlanCostSharing, $types);
+ $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types);
- $this->healthPlanCostSharing = $healthPlanCostSharing;
+ $this->healthPlanNetworkId = $healthPlanNetworkId;
}
/**
diff --git a/src/Models/SchemaOrg/Hospital.php b/src/Models/SchemaOrg/Hospital.php
index 57b3d032..df645073 100644
--- a/src/Models/SchemaOrg/Hospital.php
+++ b/src/Models/SchemaOrg/Hospital.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Hospital extends \OpenActive\Models\SchemaOrg\MedicalOrganization
+class Hospital extends \OpenActive\Models\SchemaOrg\CivicStructure
{
/**
* @return string[]|null
@@ -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\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|\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\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|\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\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|\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\MedicalTest",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\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..1068955d 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\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- 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\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string
*/
- public function getOccupancy()
+ public function getBed()
{
- return $this->occupancy;
+ return $this->bed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy
+ * @param \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string $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\BedType",
+ "\OpenActive\Models\SchemaOrg\BedDetails",
"string",
];
- $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..7461dead 100644
--- a/src/Models/SchemaOrg/HowTo.php
+++ b/src/Models/SchemaOrg/HowTo.php
@@ -17,321 +17,321 @@ public static function getType()
public static function fieldList() {
$fields = [
- "yield" => "yield",
- "estimatedCost" => "estimatedCost",
- "supply" => "supply",
- "step" => "step",
- "totalTime" => "totalTime",
- "tool" => "tool",
"prepTime" => "prepTime",
+ "tool" => "tool",
+ "totalTime" => "totalTime",
"steps" => "steps",
+ "estimatedCost" => "estimatedCost",
"performTime" => "performTime",
+ "supply" => "supply",
+ "step" => "step",
+ "yield" => "yield",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The quantity that results by performing instructions. For example, a paper airplane, 10 personalized candles.
+ * 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 string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var DateInterval|string|null
*/
- protected $yield;
+ protected $prepTime;
/**
- * The estimated cost of the supply or supplies consumed when performing instructions.
+ * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MonetaryAmount
+ * @var \OpenActive\Models\SchemaOrg\HowToTool|string
*/
- protected $estimatedCost;
+ protected $tool;
/**
- * A sub-property of instrument. A supply consumed when performing instructions or a direction.
+ * 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).
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @var DateInterval|string|null
*/
- protected $supply;
+ protected $totalTime;
/**
- * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection.
+ * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred).
*
*
- * @var \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $step;
+ protected $steps;
/**
- * 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).
+ * The estimated cost of the supply or supplies consumed when performing instructions.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $totalTime;
+ protected $estimatedCost;
/**
- * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
+ * 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 \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @var DateInterval|string|null
*/
- protected $tool;
+ protected $performTime;
/**
- * 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).
+ * A sub-property of instrument. A supply consumed when performing instructions or a direction.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\HowToSupply
*/
- protected $prepTime;
+ protected $supply;
/**
- * 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 \OpenActive\Models\SchemaOrg\HowToSection|\OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- 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).
+ * The quantity that results by performing instructions. For example, a paper airplane, 10 personalized candles.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $performTime;
+ protected $yield;
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return DateInterval|string|null
*/
- public function getYield()
+ public function getPrepTime()
{
- return $this->yield;
+ return $this->prepTime;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $yield
+ * @param DateInterval|string|null $prepTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setYield($yield)
+ public function setPrepTime($prepTime)
{
$types = [
+ "DateInterval",
"string",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "null",
];
- $yield = self::checkTypes($yield, $types);
+ $prepTime = self::checkTypes($prepTime, $types);
- $this->yield = $yield;
+ $this->prepTime = $prepTime;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MonetaryAmount
+ * @return \OpenActive\Models\SchemaOrg\HowToTool|string
*/
- public function getEstimatedCost()
+ public function getTool()
{
- return $this->estimatedCost;
+ return $this->tool;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MonetaryAmount $estimatedCost
+ * @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 setEstimatedCost($estimatedCost)
+ public function setTool($tool)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\HowToTool",
"string",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
];
- $estimatedCost = self::checkTypes($estimatedCost, $types);
+ $tool = self::checkTypes($tool, $types);
- $this->estimatedCost = $estimatedCost;
+ $this->tool = $tool;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @return DateInterval|string|null
*/
- public function getSupply()
+ public function getTotalTime()
{
- return $this->supply;
+ return $this->totalTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply
+ * @param DateInterval|string|null $totalTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSupply($supply)
+ public function setTotalTime($totalTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToSupply",
+ "DateInterval",
"string",
+ "null",
];
- $supply = self::checkTypes($supply, $types);
+ $totalTime = self::checkTypes($totalTime, $types);
- $this->supply = $supply;
+ $this->totalTime = $totalTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getStep()
+ public function getSteps()
{
- return $this->step;
+ return $this->steps;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork $step
+ * @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 setStep($step)
+ public function setSteps($steps)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToStep",
- "\OpenActive\Models\SchemaOrg\HowToSection",
- "string",
+ "\OpenActive\Models\SchemaOrg\ItemList",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $step = self::checkTypes($step, $types);
+ $steps = self::checkTypes($steps, $types);
- $this->step = $step;
+ $this->steps = $steps;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getTotalTime()
+ public function getEstimatedCost()
{
- return $this->totalTime;
+ return $this->estimatedCost;
}
/**
- * @param DateInterval|string|null $totalTime
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $estimatedCost
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTotalTime($totalTime)
+ public function setEstimatedCost($estimatedCost)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "null",
];
- $totalTime = self::checkTypes($totalTime, $types);
+ $estimatedCost = self::checkTypes($estimatedCost, $types);
- $this->totalTime = $totalTime;
+ $this->estimatedCost = $estimatedCost;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @return DateInterval|string|null
*/
- public function getTool()
+ public function getPerformTime()
{
- return $this->tool;
+ return $this->performTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool
+ * @param DateInterval|string|null $performTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTool($tool)
+ public function setPerformTime($performTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToTool",
+ "DateInterval",
"string",
+ "null",
];
- $tool = self::checkTypes($tool, $types);
+ $performTime = self::checkTypes($performTime, $types);
- $this->tool = $tool;
+ $this->performTime = $performTime;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\HowToSupply
*/
- public function getPrepTime()
+ public function getSupply()
{
- return $this->prepTime;
+ return $this->supply;
}
/**
- * @param DateInterval|string|null $prepTime
+ * @param string|\OpenActive\Models\SchemaOrg\HowToSupply $supply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrepTime($prepTime)
+ public function setSupply($supply)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\HowToSupply",
];
- $prepTime = self::checkTypes($prepTime, $types);
+ $supply = self::checkTypes($supply, $types);
- $this->prepTime = $prepTime;
+ $this->supply = $supply;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\HowToSection|\OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getSteps()
+ public function getStep()
{
- return $this->steps;
+ return $this->step;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string $steps
+ * @param \OpenActive\Models\SchemaOrg\HowToSection|\OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\CreativeWork|string $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\HowToSection",
+ "\OpenActive\Models\SchemaOrg\HowToStep",
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $steps = self::checkTypes($steps, $types);
+ $step = self::checkTypes($step, $types);
- $this->steps = $steps;
+ $this->step = $step;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getPerformTime()
+ public function getYield()
{
- return $this->performTime;
+ return $this->yield;
}
/**
- * @param DateInterval|string|null $performTime
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $yield
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPerformTime($performTime)
+ public function setYield($yield)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "null",
];
- $performTime = self::checkTypes($performTime, $types);
+ $yield = self::checkTypes($yield, $types);
- $this->performTime = $performTime;
+ $this->yield = $yield;
}
}
diff --git a/src/Models/SchemaOrg/HowToDirection.php b/src/Models/SchemaOrg/HowToDirection.php
index c1650da5..c54a58a0 100644
--- a/src/Models/SchemaOrg/HowToDirection.php
+++ b/src/Models/SchemaOrg/HowToDirection.php
@@ -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",
"prepTime" => "prepTime",
+ "tool" => "tool",
+ "totalTime" => "totalTime",
+ "duringMedia" => "duringMedia",
"performTime" => "performTime",
+ "supply" => "supply",
+ "afterMedia" => "afterMedia",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A media object representing the circumstances after performing this direction.
+ * A media object representing the circumstances before performing this direction.
*
*
* @var string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- protected $afterMedia;
+ protected $beforeMedia;
/**
- * A sub-property of instrument. A supply 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\HowToSupply|string
+ * @var DateInterval|string|null
*/
- protected $supply;
+ protected $prepTime;
/**
- * 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,110 +63,111 @@ 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;
+ protected $duringMedia;
/**
- * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction.
+ * 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 \OpenActive\Models\SchemaOrg\HowToTool|string
+ * @var DateInterval|string|null
*/
- protected $tool;
+ protected $performTime;
/**
- * 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).
+ * A sub-property of instrument. A supply consumed when performing instructions or a direction.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\HowToSupply
*/
- protected $prepTime;
+ protected $supply;
/**
- * 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 media object representing the circumstances after performing this direction.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- protected $performTime;
+ protected $afterMedia;
/**
* @return string|\OpenActive\Models\SchemaOrg\MediaObject
*/
- public function getAfterMedia()
+ public function getBeforeMedia()
{
- return $this->afterMedia;
+ return $this->beforeMedia;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $afterMedia
+ * @param string|\OpenActive\Models\SchemaOrg\MediaObject $beforeMedia
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAfterMedia($afterMedia)
+ public function setBeforeMedia($beforeMedia)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\MediaObject",
];
- $afterMedia = self::checkTypes($afterMedia, $types);
+ $beforeMedia = self::checkTypes($beforeMedia, $types);
- $this->afterMedia = $afterMedia;
+ $this->beforeMedia = $beforeMedia;
}
/**
- * @return \OpenActive\Models\SchemaOrg\HowToSupply|string
+ * @return DateInterval|string|null
*/
- public function getSupply()
+ public function getPrepTime()
{
- return $this->supply;
+ return $this->prepTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply
+ * @param DateInterval|string|null $prepTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSupply($supply)
+ public function setPrepTime($prepTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToSupply",
+ "DateInterval",
"string",
+ "null",
];
- $supply = self::checkTypes($supply, $types);
+ $prepTime = self::checkTypes($prepTime, $types);
- $this->supply = $supply;
+ $this->prepTime = $prepTime;
}
/**
- * @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,103 +199,102 @@ 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 getPerformTime()
{
- return $this->tool;
+ return $this->performTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool
+ * @param DateInterval|string|null $performTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTool($tool)
+ public function setPerformTime($performTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HowToTool",
+ "DateInterval",
"string",
+ "null",
];
- $tool = self::checkTypes($tool, $types);
+ $performTime = self::checkTypes($performTime, $types);
- $this->tool = $tool;
+ $this->performTime = $performTime;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\HowToSupply
*/
- public function getPrepTime()
+ public function getSupply()
{
- return $this->prepTime;
+ return $this->supply;
}
/**
- * @param DateInterval|string|null $prepTime
+ * @param string|\OpenActive\Models\SchemaOrg\HowToSupply $supply
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrepTime($prepTime)
+ public function setSupply($supply)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\HowToSupply",
];
- $prepTime = self::checkTypes($prepTime, $types);
+ $supply = self::checkTypes($supply, $types);
- $this->prepTime = $prepTime;
+ $this->supply = $supply;
}
/**
- * @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/HowToSupply.php b/src/Models/SchemaOrg/HowToSupply.php
index 9545f1cb..15381f81 100644
--- a/src/Models/SchemaOrg/HowToSupply.php
+++ b/src/Models/SchemaOrg/HowToSupply.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* The estimated cost of the supply or supplies consumed when performing instructions.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MonetaryAmount
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
protected $estimatedCost;
/**
- * @return string|\OpenActive\Models\SchemaOrg\MonetaryAmount
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
public function getEstimatedCost()
{
@@ -40,15 +40,15 @@ public function getEstimatedCost()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MonetaryAmount $estimatedCost
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $estimatedCost
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setEstimatedCost($estimatedCost)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
];
$estimatedCost = self::checkTypes($estimatedCost, $types);
diff --git a/src/Models/SchemaOrg/HowToTip.php b/src/Models/SchemaOrg/HowToTip.php
index f4426ba0..98c42d37 100644
--- a/src/Models/SchemaOrg/HowToTip.php
+++ b/src/Models/SchemaOrg/HowToTip.php
@@ -5,7 +5,7 @@
/**
*
*/
-class HowToTip extends \OpenActive\Models\SchemaOrg\CreativeWork
+class HowToTip extends \OpenActive\Models\SchemaOrg\ListItem
{
/**
* @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..ec85acb6 100644
--- a/src/Models/SchemaOrg/HyperTocEntry.php
+++ b/src/Models/SchemaOrg/HyperTocEntry.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "tocContinuation" => "tocContinuation",
"associatedMedia" => "associatedMedia",
+ "tocContinuation" => "tocContinuation",
"utterances" => "utterances",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * A [[HyperTocEntry]] can have a [[tocContinuation]] indicated, which is another [[HyperTocEntry]] that would be the default next item to play or render.
+ * 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 $tocContinuation;
+ protected $associatedMedia;
/**
- * A media object that encodes this CreativeWork. This property is a synonym for encoding.
+ * A [[HyperTocEntry]] can have a [[tocContinuation]] indicated, which is another [[HyperTocEntry]] that would be the default next item to play or render.
*
*
- * @var \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string
*/
- protected $associatedMedia;
+ protected $tocContinuation;
/**
* Text of an utterances (spoken words, lyrics etc.) that occurs at a certain section of a media object, represented as a [[HyperTocEntry]].
@@ -50,53 +50,53 @@ public static function fieldList() {
protected $utterances;
/**
- * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
- public function getTocContinuation()
+ public function getAssociatedMedia()
{
- return $this->tocContinuation;
+ return $this->associatedMedia;
}
/**
- * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string $tocContinuation
+ * @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 setTocContinuation($tocContinuation)
+ public function setAssociatedMedia($associatedMedia)
{
$types = [
- "\OpenActive\Models\SchemaOrg\HyperTocEntry",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
"string",
];
- $tocContinuation = self::checkTypes($tocContinuation, $types);
+ $associatedMedia = self::checkTypes($associatedMedia, $types);
- $this->tocContinuation = $tocContinuation;
+ $this->associatedMedia = $associatedMedia;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaObject|string
+ * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string
*/
- public function getAssociatedMedia()
+ public function getTocContinuation()
{
- return $this->associatedMedia;
+ return $this->tocContinuation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia
+ * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string $tocContinuation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedMedia($associatedMedia)
+ public function setTocContinuation($tocContinuation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaObject",
+ "\OpenActive\Models\SchemaOrg\HyperTocEntry",
"string",
];
- $associatedMedia = self::checkTypes($associatedMedia, $types);
+ $tocContinuation = self::checkTypes($tocContinuation, $types);
- $this->associatedMedia = $associatedMedia;
+ $this->tocContinuation = $tocContinuation;
}
/**
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",
];
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.
*
@@ -47,49 +38,25 @@ public static function fieldList() {
* The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]].
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string
*/
protected $caption;
- /**
- * Thumbnail image for an image or video.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\ImageObject|string
- */
- protected $thumbnail;
-
/**
* exif data for this object.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var string|\OpenActive\Models\SchemaOrg\PropertyValue
*/
protected $exifData;
/**
- * @return 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.
+ * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.
+ *
+ *
+ * @var string
*/
- public function setEmbeddedTextCaption($embeddedTextCaption)
- {
- $types = [
- "string",
- ];
-
- $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
-
- $this->embeddedTextCaption = $embeddedTextCaption;
- }
+ protected $embeddedTextCaption;
/**
* @return bool|null
@@ -117,7 +84,7 @@ public function setRepresentativeOfPage($representativeOfPage)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string
*/
public function getCaption()
{
@@ -125,15 +92,15 @@ public function getCaption()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption
+ * @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 setCaption($caption)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\MediaObject",
+ "string",
];
$caption = self::checkTypes($caption, $types);
@@ -142,53 +109,52 @@ public function setCaption($caption)
}
/**
- * @return \OpenActive\Models\SchemaOrg\ImageObject|string
+ * @return string|\OpenActive\Models\SchemaOrg\PropertyValue
*/
- public function getThumbnail()
+ public function getExifData()
{
- return $this->thumbnail;
+ return $this->exifData;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail
+ * @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 setThumbnail($thumbnail)
+ public function setExifData($exifData)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ImageObject",
"string",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
];
- $thumbnail = self::checkTypes($thumbnail, $types);
+ $exifData = self::checkTypes($exifData, $types);
- $this->thumbnail = $thumbnail;
+ $this->exifData = $exifData;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return string
*/
- public function getExifData()
+ public function getEmbeddedTextCaption()
{
- return $this->exifData;
+ return $this->embeddedTextCaption;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $exifData
+ * @param string $embeddedTextCaption
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExifData($exifData)
+ public function setEmbeddedTextCaption($embeddedTextCaption)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
"string",
];
- $exifData = self::checkTypes($exifData, $types);
+ $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types);
- $this->exifData = $exifData;
+ $this->embeddedTextCaption = $embeddedTextCaption;
}
}
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/InfectiousDisease.php b/src/Models/SchemaOrg/InfectiousDisease.php
index 9e2eb8cf..728662e1 100644
--- a/src/Models/SchemaOrg/InfectiousDisease.php
+++ b/src/Models/SchemaOrg/InfectiousDisease.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"infectiousAgentClass" => "infectiousAgentClass",
- "infectiousAgent" => "infectiousAgent",
"transmissionMethod" => "transmissionMethod",
+ "infectiousAgent" => "infectiousAgent",
];
return array_merge(parent::fieldList(), $fields);
@@ -34,20 +34,20 @@ public static function fieldList() {
protected $infectiousAgentClass;
/**
- * The actual infectious agent, such as a specific bacterium.
+ * How the disease spreads, either as a route or vector, for example 'direct contact', 'Aedes aegypti', etc.
*
*
* @var string
*/
- protected $infectiousAgent;
+ protected $transmissionMethod;
/**
- * How the disease spreads, either as a route or vector, for example 'direct contact', 'Aedes aegypti', etc.
+ * The actual infectious agent, such as a specific bacterium.
*
*
* @var string
*/
- protected $transmissionMethod;
+ protected $infectiousAgent;
/**
* @return \OpenActive\Models\SchemaOrg\InfectiousAgentClass|string
@@ -77,49 +77,49 @@ public function setInfectiousAgentClass($infectiousAgentClass)
/**
* @return string
*/
- public function getInfectiousAgent()
+ public function getTransmissionMethod()
{
- return $this->infectiousAgent;
+ return $this->transmissionMethod;
}
/**
- * @param string $infectiousAgent
+ * @param string $transmissionMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInfectiousAgent($infectiousAgent)
+ public function setTransmissionMethod($transmissionMethod)
{
$types = [
"string",
];
- $infectiousAgent = self::checkTypes($infectiousAgent, $types);
+ $transmissionMethod = self::checkTypes($transmissionMethod, $types);
- $this->infectiousAgent = $infectiousAgent;
+ $this->transmissionMethod = $transmissionMethod;
}
/**
* @return string
*/
- public function getTransmissionMethod()
+ public function getInfectiousAgent()
{
- return $this->transmissionMethod;
+ return $this->infectiousAgent;
}
/**
- * @param string $transmissionMethod
+ * @param string $infectiousAgent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTransmissionMethod($transmissionMethod)
+ public function setInfectiousAgent($infectiousAgent)
{
$types = [
"string",
];
- $transmissionMethod = self::checkTypes($transmissionMethod, $types);
+ $infectiousAgent = self::checkTypes($infectiousAgent, $types);
- $this->transmissionMethod = $transmissionMethod;
+ $this->infectiousAgent = $infectiousAgent;
}
}
diff --git a/src/Models/SchemaOrg/InteractionCounter.php b/src/Models/SchemaOrg/InteractionCounter.php
index 09f2c22b..288a2997 100644
--- a/src/Models/SchemaOrg/InteractionCounter.php
+++ b/src/Models/SchemaOrg/InteractionCounter.php
@@ -17,24 +17,32 @@ public static function getType()
public static function fieldList() {
$fields = [
- "startTime" => "startTime",
+ "interactionType" => "interactionType",
+ "endTime" => "endTime",
"userInteractionCount" => "userInteractionCount",
"location" => "location",
- "interactionType" => "interactionType",
"interactionService" => "interactionService",
- "endTime" => "endTime",
+ "startTime" => "startTime",
];
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.
+ * 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\Action|string
+ */
+ protected $interactionType;
+
+ /**
+ * 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 DateTime|string|null
*/
- protected $startTime;
+ protected $endTime;
/**
* The number of interactions for the CreativeWork using the WebSite or SoftwareApplication.
@@ -48,48 +56,65 @@ public static function fieldList() {
* 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\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress
*/
protected $location;
- /**
- * 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\Action|string
- */
- protected $interactionType;
-
/**
* 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;
+ protected $startTime;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Action|string
+ */
+ public function getInteractionType()
+ {
+ return $this->interactionType;
+ }
+
+ /**
+ * @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 setInteractionType($interactionType)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Action",
+ "string",
+ ];
+
+ $interactionType = self::checkTypes($interactionType, $types);
+
+ $this->interactionType = $interactionType;
+ }
/**
* @return DateTime|string|null
*/
- public function getStartTime()
+ public function getEndTime()
{
- return $this->startTime;
+ return $this->endTime;
}
/**
- * @param DateTime|string|null $startTime
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartTime($startTime)
+ public function setEndTime($endTime)
{
$types = [
"DateTime",
@@ -97,9 +122,9 @@ public function setStartTime($startTime)
"null",
];
- $startTime = self::checkTypes($startTime, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->startTime = $startTime;
+ $this->endTime = $endTime;
}
/**
@@ -128,7 +153,7 @@ public function setUserInteractionCount($userInteractionCount)
}
/**
- * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation
+ * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress
*/
public function getLocation()
{
@@ -136,17 +161,17 @@ public function getLocation()
}
/**
- * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location
+ * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress $location
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setLocation($location)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PostalAddress",
"string",
"\OpenActive\Models\SchemaOrg\Place",
"\OpenActive\Models\SchemaOrg\VirtualLocation",
+ "\OpenActive\Models\SchemaOrg\PostalAddress",
];
$location = self::checkTypes($location, $types);
@@ -155,32 +180,7 @@ public function setLocation($location)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Action|string
- */
- public function getInteractionType()
- {
- return $this->interactionType;
- }
-
- /**
- * @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 setInteractionType($interactionType)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Action",
- "string",
- ];
-
- $interactionType = self::checkTypes($interactionType, $types);
-
- $this->interactionType = $interactionType;
- }
-
- /**
- * @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 +188,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 +208,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 +226,9 @@ public function setEndTime($endTime)
"null",
];
- $endTime = self::checkTypes($endTime, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->endTime = $endTime;
+ $this->startTime = $startTime;
}
}
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..6f1ebf93 100644
--- a/src/Models/SchemaOrg/Invoice.php
+++ b/src/Models/SchemaOrg/Invoice.php
@@ -17,66 +17,66 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "customer" => "customer",
+ "paymentMethod" => "paymentMethod",
+ "paymentDueDate" => "paymentDueDate",
+ "broker" => "broker",
"totalPaymentDue" => "totalPaymentDue",
+ "scheduledPaymentDate" => "scheduledPaymentDate",
+ "paymentMethodId" => "paymentMethodId",
+ "paymentDue" => "paymentDue",
"billingPeriod" => "billingPeriod",
+ "confirmationNumber" => "confirmationNumber",
+ "paymentStatus" => "paymentStatus",
+ "category" => "category",
"referencesOrder" => "referencesOrder",
"accountId" => "accountId",
- "category" => "category",
- "scheduledPaymentDate" => "scheduledPaymentDate",
- "confirmationNumber" => "confirmationNumber",
- "customer" => "customer",
"provider" => "provider",
"minimumPaymentDue" => "minimumPaymentDue",
- "paymentDueDate" => "paymentDueDate",
- "broker" => "broker",
- "paymentStatus" => "paymentStatus",
- "paymentMethodId" => "paymentMethodId",
- "paymentDue" => "paymentDue",
- "paymentMethod" => "paymentMethod",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The total amount due.
+ * Party placing the order or paying the invoice.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $totalPaymentDue;
+ protected $customer;
/**
- * The time interval used to compute the invoice.
+ * The name of the credit card or other method of payment for the order.
*
*
- * @var DateInterval|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\PaymentMethod
*/
- protected $billingPeriod;
+ protected $paymentMethod;
/**
- * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
+ * The date that payment is due.
*
*
- * @var \OpenActive\Models\SchemaOrg\Order|string
+ * @var Date|DateTime|null
*/
- protected $referencesOrder;
+ protected $paymentDueDate;
/**
- * The identifier for the account the payment will be applied to.
+ * 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 string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $accountId;
+ protected $broker;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * The total amount due.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $category;
+ protected $totalPaymentDue;
/**
* The date the invoice is scheduled to be paid.
@@ -87,212 +87,212 @@ public static function fieldList() {
protected $scheduledPaymentDate;
/**
- * A number that confirms the given order or payment has been received.
+ * An identifier for the method of payment used (e.g. the last 4 digits of the credit card).
*
*
* @var string
*/
- protected $confirmationNumber;
+ protected $paymentMethodId;
/**
- * Party placing the order or paying the invoice.
+ * The date that payment is due.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var DateTime|null
*/
- protected $customer;
+ protected $paymentDue;
/**
- * 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 time interval used to compute the invoice.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var DateInterval|string|null
*/
- protected $provider;
+ protected $billingPeriod;
/**
- * 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.
+ * The status of payment; whether the invoice has been paid or not.
*
*
- * @var Date|DateTime|null
+ * @var string|\OpenActive\Models\SchemaOrg\PaymentStatusType
*/
- protected $paymentDueDate;
+ protected $paymentStatus;
/**
- * 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.
+ * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null
*/
- protected $broker;
+ protected $category;
/**
- * The status of payment; whether the invoice has been paid or not.
+ * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
*
*
- * @var \OpenActive\Models\SchemaOrg\PaymentStatusType|string
+ * @var \OpenActive\Models\SchemaOrg\Order|string
*/
- protected $paymentStatus;
+ protected $referencesOrder;
/**
- * An identifier for the method of payment used (e.g. the last 4 digits of the credit card).
+ * The identifier for the account the payment will be applied to.
*
*
* @var string
*/
- protected $paymentMethodId;
+ protected $accountId;
/**
- * The date that payment is due.
+ * 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 DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $paymentDue;
+ protected $provider;
/**
- * The name of the credit card or other method of payment for the order.
+ * The minimum payment required at this time.
*
*
- * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $paymentMethod;
+ protected $minimumPaymentDue;
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getTotalPaymentDue()
+ public function getCustomer()
{
- return $this->totalPaymentDue;
+ return $this->customer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $totalPaymentDue
+ * @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 setTotalPaymentDue($totalPaymentDue)
+ public function setCustomer($customer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $totalPaymentDue = self::checkTypes($totalPaymentDue, $types);
+ $customer = self::checkTypes($customer, $types);
- $this->totalPaymentDue = $totalPaymentDue;
+ $this->customer = $customer;
}
/**
- * @return DateInterval|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\PaymentMethod
*/
- public function getBillingPeriod()
+ public function getPaymentMethod()
{
- return $this->billingPeriod;
+ return $this->paymentMethod;
}
/**
- * @param DateInterval|string|null $billingPeriod
+ * @param string|\OpenActive\Models\SchemaOrg\PaymentMethod $paymentMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBillingPeriod($billingPeriod)
+ public function setPaymentMethod($paymentMethod)
{
$types = [
- "DateInterval",
"string",
- "null",
+ "\OpenActive\Models\SchemaOrg\PaymentMethod",
];
- $billingPeriod = self::checkTypes($billingPeriod, $types);
+ $paymentMethod = self::checkTypes($paymentMethod, $types);
- $this->billingPeriod = $billingPeriod;
+ $this->paymentMethod = $paymentMethod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Order|string
+ * @return Date|DateTime|null
*/
- public function getReferencesOrder()
+ public function getPaymentDueDate()
{
- return $this->referencesOrder;
+ return $this->paymentDueDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Order|string $referencesOrder
+ * @param Date|DateTime|null $paymentDueDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReferencesOrder($referencesOrder)
+ public function setPaymentDueDate($paymentDueDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Order",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $referencesOrder = self::checkTypes($referencesOrder, $types);
+ $paymentDueDate = self::checkTypes($paymentDueDate, $types);
- $this->referencesOrder = $referencesOrder;
+ $this->paymentDueDate = $paymentDueDate;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAccountId()
+ public function getBroker()
{
- return $this->accountId;
+ return $this->broker;
}
/**
- * @param string $accountId
+ * @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 setAccountId($accountId)
+ public function setBroker($broker)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $accountId = self::checkTypes($accountId, $types);
+ $broker = self::checkTypes($broker, $types);
- $this->accountId = $accountId;
+ $this->broker = $broker;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getCategory()
+ public function getTotalPaymentDue()
{
- return $this->category;
+ return $this->totalPaymentDue;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category
+ * @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 setCategory($category)
+ public function setTotalPaymentDue($totalPaymentDue)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
- "\OpenActive\Models\SchemaOrg\Thing",
- "\OpenActive\Models\SchemaOrg\CategoryCode",
- "null",
];
- $category = self::checkTypes($category, $types);
+ $totalPaymentDue = self::checkTypes($totalPaymentDue, $types);
- $this->category = $category;
+ $this->totalPaymentDue = $totalPaymentDue;
}
/**
@@ -323,254 +323,254 @@ public function setScheduledPaymentDate($scheduledPaymentDate)
/**
* @return string
*/
- public function getConfirmationNumber()
+ public function getPaymentMethodId()
{
- return $this->confirmationNumber;
+ return $this->paymentMethodId;
}
/**
- * @param string $confirmationNumber
+ * @param string $paymentMethodId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setConfirmationNumber($confirmationNumber)
+ public function setPaymentMethodId($paymentMethodId)
{
$types = [
"string",
];
- $confirmationNumber = self::checkTypes($confirmationNumber, $types);
+ $paymentMethodId = self::checkTypes($paymentMethodId, $types);
- $this->confirmationNumber = $confirmationNumber;
+ $this->paymentMethodId = $paymentMethodId;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return DateTime|null
*/
- public function getCustomer()
+ public function getPaymentDue()
{
- return $this->customer;
+ return $this->paymentDue;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer
+ * @param DateTime|null $paymentDue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCustomer($customer)
+ public function setPaymentDue($paymentDue)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "DateTime",
+ "null",
];
- $customer = self::checkTypes($customer, $types);
+ $paymentDue = self::checkTypes($paymentDue, $types);
- $this->customer = $customer;
+ $this->paymentDue = $paymentDue;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return DateInterval|string|null
*/
- public function getProvider()
+ public function getBillingPeriod()
{
- return $this->provider;
+ return $this->billingPeriod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider
+ * @param DateInterval|string|null $billingPeriod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProvider($provider)
+ public function setBillingPeriod($billingPeriod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "DateInterval",
"string",
+ "null",
];
- $provider = self::checkTypes($provider, $types);
+ $billingPeriod = self::checkTypes($billingPeriod, $types);
- $this->provider = $provider;
+ $this->billingPeriod = $billingPeriod;
}
/**
- * @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 string|\OpenActive\Models\SchemaOrg\PaymentStatusType
*/
- public function getPaymentDueDate()
+ public function getPaymentStatus()
{
- return $this->paymentDueDate;
+ return $this->paymentStatus;
}
/**
- * @param Date|DateTime|null $paymentDueDate
+ * @param string|\OpenActive\Models\SchemaOrg\PaymentStatusType $paymentStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentDueDate($paymentDueDate)
+ public function setPaymentStatus($paymentStatus)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\PaymentStatusType",
];
- $paymentDueDate = self::checkTypes($paymentDueDate, $types);
+ $paymentStatus = self::checkTypes($paymentStatus, $types);
- $this->paymentDueDate = $paymentDueDate;
+ $this->paymentStatus = $paymentStatus;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null
*/
- public function getBroker()
+ public function getCategory()
{
- return $this->broker;
+ return $this->category;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker
+ * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null $category
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBroker($broker)
+ public function setCategory($category)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
+ "null",
];
- $broker = self::checkTypes($broker, $types);
+ $category = self::checkTypes($category, $types);
- $this->broker = $broker;
+ $this->category = $category;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PaymentStatusType|string
+ * @return \OpenActive\Models\SchemaOrg\Order|string
*/
- public function getPaymentStatus()
+ public function getReferencesOrder()
{
- return $this->paymentStatus;
+ return $this->referencesOrder;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PaymentStatusType|string $paymentStatus
+ * @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 setPaymentStatus($paymentStatus)
+ public function setReferencesOrder($referencesOrder)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PaymentStatusType",
+ "\OpenActive\Models\SchemaOrg\Order",
"string",
];
- $paymentStatus = self::checkTypes($paymentStatus, $types);
+ $referencesOrder = self::checkTypes($referencesOrder, $types);
- $this->paymentStatus = $paymentStatus;
+ $this->referencesOrder = $referencesOrder;
}
/**
* @return string
*/
- public function getPaymentMethodId()
+ public function getAccountId()
{
- return $this->paymentMethodId;
+ return $this->accountId;
}
/**
- * @param string $paymentMethodId
+ * @param string $accountId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentMethodId($paymentMethodId)
+ public function setAccountId($accountId)
{
$types = [
"string",
];
- $paymentMethodId = self::checkTypes($paymentMethodId, $types);
+ $accountId = self::checkTypes($accountId, $types);
- $this->paymentMethodId = $paymentMethodId;
+ $this->accountId = $accountId;
}
/**
- * @return DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPaymentDue()
+ public function getProvider()
{
- return $this->paymentDue;
+ return $this->provider;
}
/**
- * @param DateTime|null $paymentDue
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $provider
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentDue($paymentDue)
+ public function setProvider($provider)
{
$types = [
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $paymentDue = self::checkTypes($paymentDue, $types);
+ $provider = self::checkTypes($provider, $types);
- $this->paymentDue = $paymentDue;
+ $this->provider = $provider;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- public function getPaymentMethod()
+ public function getMinimumPaymentDue()
{
- return $this->paymentMethod;
+ return $this->minimumPaymentDue;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod
+ * @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 setPaymentMethod($paymentMethod)
+ public function setMinimumPaymentDue($minimumPaymentDue)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\PaymentMethod",
- "null",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "string",
];
- $paymentMethod = self::checkTypes($paymentMethod, $types);
+ $minimumPaymentDue = self::checkTypes($minimumPaymentDue, $types);
- $this->paymentMethod = $paymentMethod;
+ $this->minimumPaymentDue = $minimumPaymentDue;
}
}
diff --git a/src/Models/SchemaOrg/ItemList.php b/src/Models/SchemaOrg/ItemList.php
index 358f73ce..1e2c3658 100644
--- a/src/Models/SchemaOrg/ItemList.php
+++ b/src/Models/SchemaOrg/ItemList.php
@@ -37,7 +37,7 @@ 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\ListItem|\OpenActive\Models\SchemaOrg\Thing|string
*/
protected $itemListElement;
@@ -45,7 +45,7 @@ public static function fieldList() {
* Type of ordering (e.g. Ascending, Descending, Unordered).
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
+ * @var \OpenActive\Enums\SchemaOrg\ItemListOrderType|string|null
*/
protected $itemListOrder;
@@ -75,7 +75,7 @@ public function setNumberOfItems($numberOfItems)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string
+ * @return \OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\Thing|string
*/
public function getItemListElement()
{
@@ -83,15 +83,15 @@ public function getItemListElement()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string $itemListElement
+ * @param \OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\Thing|string $itemListElement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setItemListElement($itemListElement)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Thing",
"\OpenActive\Models\SchemaOrg\ListItem",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
@@ -101,7 +101,7 @@ public function setItemListElement($itemListElement)
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null
+ * @return \OpenActive\Enums\SchemaOrg\ItemListOrderType|string|null
*/
public function getItemListOrder()
{
@@ -109,15 +109,15 @@ public function getItemListOrder()
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null $itemListOrder
+ * @param \OpenActive\Enums\SchemaOrg\ItemListOrderType|string|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",
+ "string",
"null",
];
diff --git a/src/Models/SchemaOrg/JobPosting.php b/src/Models/SchemaOrg/JobPosting.php
index ae041535..39b07119 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",
+ "physicalRequirement" => "physicalRequirement",
+ "qualifications" => "qualifications",
+ "employmentType" => "employmentType",
+ "jobImmediateStart" => "jobImmediateStart",
+ "eligibilityToWorkRequirement" => "eligibilityToWorkRequirement",
+ "incentiveCompensation" => "incentiveCompensation",
+ "hiringOrganization" => "hiringOrganization",
+ "datePosted" => "datePosted",
+ "jobLocation" => "jobLocation",
+ "securityClearanceRequirement" => "securityClearanceRequirement",
+ "experienceRequirements" => "experienceRequirements",
"estimatedSalary" => "estimatedSalary",
+ "salaryCurrency" => "salaryCurrency",
+ "jobBenefits" => "jobBenefits",
"jobLocationType" => "jobLocationType",
- "responsibilities" => "responsibilities",
- "jobLocation" => "jobLocation",
- "physicalRequirement" => "physicalRequirement",
- "incentives" => "incentives",
+ "relevantOccupation" => "relevantOccupation",
+ "totalJobOpenings" => "totalJobOpenings",
+ "skills" => "skills",
+ "applicantLocationRequirements" => "applicantLocationRequirements",
"directApply" => "directApply",
+ "employerOverview" => "employerOverview",
+ "validThrough" => "validThrough",
+ "occupationalCategory" => "occupationalCategory",
"sensoryRequirement" => "sensoryRequirement",
- "applicantLocationRequirements" => "applicantLocationRequirements",
"workHours" => "workHours",
+ "employmentUnit" => "employmentUnit",
+ "experienceInPlaceOfEducation" => "experienceInPlaceOfEducation",
+ "responsibilities" => "responsibilities",
"jobStartDate" => "jobStartDate",
- "employmentType" => "employmentType",
- "specialCommitments" => "specialCommitments",
+ "baseSalary" => "baseSalary",
+ "incentives" => "incentives",
"applicationContact" => "applicationContact",
- "incentiveCompensation" => "incentiveCompensation",
- "relevantOccupation" => "relevantOccupation",
- "totalJobOpenings" => "totalJobOpenings",
- "experienceRequirements" => "experienceRequirements",
- "jobBenefits" => "jobBenefits",
- "salaryCurrency" => "salaryCurrency",
- "experienceInPlaceOfEducation" => "experienceInPlaceOfEducation",
- "securityClearanceRequirement" => "securityClearanceRequirement",
- "eligibilityToWorkRequirement" => "eligibilityToWorkRequirement",
"educationRequirements" => "educationRequirements",
- "benefits" => "benefits",
+ "specialCommitments" => "specialCommitments",
"industry" => "industry",
- "baseSalary" => "baseSalary",
- "datePosted" => "datePosted",
- "skills" => "skills",
- "hiringOrganization" => "hiringOrganization",
- "jobImmediateStart" => "jobImmediateStart",
- "validThrough" => "validThrough",
- "employmentUnit" => "employmentUnit",
- "qualifications" => "qualifications",
- "occupationalCategory" => "occupationalCategory",
+ "benefits" => "benefits",
];
return array_merge(parent::fieldList(), $fields);
@@ -68,52 +68,44 @@ public static function fieldList() {
protected $title;
/**
- * A description of the employer, career opportunities and work environment for this position.
- *
- *
- * @var string
- */
- protected $employerOverview;
-
- /**
- * 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.
+ * 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 \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $estimatedSalary;
+ protected $physicalRequirement;
/**
- * A description of the job location (e.g TELECOMMUTE for telecommute jobs).
+ * Specific qualifications required for this role or Occupation.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $jobLocationType;
+ protected $qualifications;
/**
- * Responsibilities associated with this role or Occupation.
+ * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship).
*
*
* @var string
*/
- protected $responsibilities;
+ protected $employmentType;
/**
- * A (typically single) geographic location associated with the job position.
+ * An indicator as to whether a position is available for an immediate start.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string
+ * @var bool|null
*/
- protected $jobLocation;
+ protected $jobImmediateStart;
/**
- * 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 legal requirements such as citizenship, visa and other documentation required for an applicant to this job.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var string
*/
- protected $physicalRequirement;
+ protected $eligibilityToWorkRequirement;
/**
* Description of bonus and commission compensation aspects of the job.
@@ -121,79 +113,79 @@ public static function fieldList() {
*
* @var string
*/
- protected $incentives;
+ protected $incentiveCompensation;
/**
- * 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.
+ * Organization or Person offering the job position.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $directApply;
+ protected $hiringOrganization;
/**
- * 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.
+ * Publication date of an online listing.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var Date|DateTime|null
*/
- protected $sensoryRequirement;
+ protected $datePosted;
/**
- * 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.
+ * A (typically single) geographic location associated with the job position.
*
*
- * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $applicantLocationRequirements;
+ protected $jobLocation;
/**
- * The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm).
+ * A description of any security clearance requirements of the job.
*
*
* @var string
*/
- protected $workHours;
+ protected $securityClearanceRequirement;
/**
- * 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.
+ * Description of skills and experience needed for the position or Occupation.
*
*
- * @var Date|string|null
+ * @var \OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements|string
*/
- protected $jobStartDate;
+ protected $experienceRequirements;
/**
- * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship).
+ * 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 string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|null
*/
- protected $employmentType;
+ protected $estimatedSalary;
/**
- * 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.
+ * Description of benefits associated with the job.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var string
*/
- protected $applicationContact;
+ protected $jobBenefits;
/**
- * Description of bonus and commission compensation aspects of the job.
+ * A description of the job location (e.g. TELECOMMUTE for telecommute jobs).
*
*
* @var string
*/
- protected $incentiveCompensation;
+ protected $jobLocationType;
/**
* The Occupation for the JobPosting.
@@ -212,149 +204,157 @@ public static function fieldList() {
protected $totalJobOpenings;
/**
- * Description of skills and experience needed for the position or Occupation.
+ * A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is either claimed by a person, an organization or desired or required to fulfill a role or to work in an occupation.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $experienceRequirements;
+ protected $skills;
/**
- * Description of benefits associated with the job.
+ * 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 string
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $jobBenefits;
+ protected $applicantLocationRequirements;
/**
- * 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.
+ * 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 $salaryCurrency;
+ protected $directApply;
/**
- * 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 description of the employer, career opportunities and work environment for this position.
*
*
- * @var bool|null
+ * @var string
*/
- protected $experienceInPlaceOfEducation;
+ protected $employerOverview;
/**
- * A description of any security clearance requirements of the job.
+ * 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 string
+ * @var Date|DateTime|null
*/
- protected $securityClearanceRequirement;
+ protected $validThrough;
/**
- * The legal requirements such as citizenship, visa and other documentation required for an applicant to this job.
+ * 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
+ * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- protected $eligibilityToWorkRequirement;
+ protected $occupationalCategory;
/**
- * Educational background needed for the position or Occupation.
+ * 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\EducationalOccupationalCredential|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $educationRequirements;
+ protected $sensoryRequirement;
/**
- * Description of benefits associated with the job.
+ * The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm).
*
*
* @var string
*/
- protected $benefits;
+ protected $workHours;
/**
- * The industry associated with the job position.
+ * Indicates the department, unit and/or facility where the employee reports and/or in which the job is to be performed.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $industry;
+ protected $employmentUnit;
/**
- * The base salary of the job or of an employee in an EmployeeRole.
+ * 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 Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var bool|null
*/
- protected $baseSalary;
+ protected $experienceInPlaceOfEducation;
/**
- * Publication date of an online listing.
+ * Responsibilities associated with this role or Occupation.
*
*
- * @var Date|DateTime|null
+ * @var string
*/
- protected $datePosted;
+ protected $responsibilities;
/**
- * 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.
+ * 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 string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var Date|string|null
*/
- protected $skills;
+ protected $jobStartDate;
/**
- * Organization offering the job position.
+ * The base salary of the job or of an employee in an EmployeeRole.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $hiringOrganization;
+ protected $baseSalary;
/**
- * An indicator as to whether a position is available for an immediate start.
+ * Description of bonus and commission compensation aspects of the job.
*
*
- * @var bool|null
+ * @var string
*/
- protected $jobImmediateStart;
+ protected $incentives;
/**
- * 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.
+ * Educational background needed for the position or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $employmentUnit;
+ protected $educationRequirements;
/**
- * Specific qualifications required for this role or Occupation.
+ * Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var string
*/
- protected $qualifications;
+ protected $specialCommitments;
/**
- * 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 industry associated with the job position.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $occupationalCategory;
+ protected $industry;
+
+ /**
+ * Description of benefits associated with the job.
+ *
+ *
+ * @var string
+ */
+ protected $benefits;
/**
* @return string
@@ -381,399 +381,376 @@ public function setTitle($title)
}
/**
- * @return string
- */
- public function getEmployerOverview()
- {
- return $this->employerOverview;
- }
-
- /**
- * @param string $employerOverview
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setEmployerOverview($employerOverview)
- {
- $types = [
- "string",
- ];
-
- $employerOverview = self::checkTypes($employerOverview, $types);
-
- $this->employerOverview = $employerOverview;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getEstimatedSalary()
+ public function getPhysicalRequirement()
{
- return $this->estimatedSalary;
+ return $this->physicalRequirement;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $physicalRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEstimatedSalary($estimatedSalary)
+ public function setPhysicalRequirement($physicalRequirement)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "Number",
- "null",
];
- $estimatedSalary = self::checkTypes($estimatedSalary, $types);
+ $physicalRequirement = self::checkTypes($physicalRequirement, $types);
- $this->estimatedSalary = $estimatedSalary;
+ $this->physicalRequirement = $physicalRequirement;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getJobLocationType()
+ public function getQualifications()
{
- return $this->jobLocationType;
+ return $this->qualifications;
}
/**
- * @param string $jobLocationType
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobLocationType($jobLocationType)
+ public function setQualifications($qualifications)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $jobLocationType = self::checkTypes($jobLocationType, $types);
+ $qualifications = self::checkTypes($qualifications, $types);
- $this->jobLocationType = $jobLocationType;
+ $this->qualifications = $qualifications;
}
/**
* @return string
*/
- public function getResponsibilities()
+ public function getEmploymentType()
{
- return $this->responsibilities;
+ return $this->employmentType;
}
/**
- * @param string $responsibilities
+ * @param string $employmentType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setResponsibilities($responsibilities)
+ public function setEmploymentType($employmentType)
{
$types = [
"string",
];
- $responsibilities = self::checkTypes($responsibilities, $types);
+ $employmentType = self::checkTypes($employmentType, $types);
- $this->responsibilities = $responsibilities;
+ $this->employmentType = $employmentType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return bool|null
*/
- public function getJobLocation()
+ public function getJobImmediateStart()
{
- return $this->jobLocation;
+ return $this->jobImmediateStart;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $jobLocation
+ * @param bool|null $jobImmediateStart
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobLocation($jobLocation)
+ public function setJobImmediateStart($jobImmediateStart)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
+ "bool",
+ "null",
];
- $jobLocation = self::checkTypes($jobLocation, $types);
+ $jobImmediateStart = self::checkTypes($jobImmediateStart, $types);
- $this->jobLocation = $jobLocation;
+ $this->jobImmediateStart = $jobImmediateStart;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return string
*/
- public function getPhysicalRequirement()
+ public function getEligibilityToWorkRequirement()
{
- return $this->physicalRequirement;
+ return $this->eligibilityToWorkRequirement;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $physicalRequirement
+ * @param string $eligibilityToWorkRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPhysicalRequirement($physicalRequirement)
+ public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $physicalRequirement = self::checkTypes($physicalRequirement, $types);
+ $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types);
- $this->physicalRequirement = $physicalRequirement;
+ $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement;
}
/**
* @return string
*/
- public function getIncentives()
+ public function getIncentiveCompensation()
{
- return $this->incentives;
+ return $this->incentiveCompensation;
}
/**
- * @param string $incentives
+ * @param string $incentiveCompensation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncentives($incentives)
+ public function setIncentiveCompensation($incentiveCompensation)
{
$types = [
"string",
];
- $incentives = self::checkTypes($incentives, $types);
+ $incentiveCompensation = self::checkTypes($incentiveCompensation, $types);
- $this->incentives = $incentives;
+ $this->incentiveCompensation = $incentiveCompensation;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDirectApply()
+ public function getHiringOrganization()
{
- return $this->directApply;
+ return $this->hiringOrganization;
}
/**
- * @param bool|null $directApply
+ * @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 setDirectApply($directApply)
+ public function setHiringOrganization($hiringOrganization)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $directApply = self::checkTypes($directApply, $types);
+ $hiringOrganization = self::checkTypes($hiringOrganization, $types);
- $this->directApply = $directApply;
+ $this->hiringOrganization = $hiringOrganization;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return Date|DateTime|null
*/
- public function getSensoryRequirement()
+ public function getDatePosted()
{
- return $this->sensoryRequirement;
+ return $this->datePosted;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $sensoryRequirement
+ * @param Date|DateTime|null $datePosted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSensoryRequirement($sensoryRequirement)
+ public function setDatePosted($datePosted)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $sensoryRequirement = self::checkTypes($sensoryRequirement, $types);
+ $datePosted = self::checkTypes($datePosted, $types);
- $this->sensoryRequirement = $sensoryRequirement;
+ $this->datePosted = $datePosted;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getApplicantLocationRequirements()
+ public function getJobLocation()
{
- return $this->applicantLocationRequirements;
+ return $this->jobLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicantLocationRequirements
+ * @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 setApplicantLocationRequirements($applicantLocationRequirements)
+ public function setJobLocation($jobLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types);
+ $jobLocation = self::checkTypes($jobLocation, $types);
- $this->applicantLocationRequirements = $applicantLocationRequirements;
+ $this->jobLocation = $jobLocation;
}
/**
* @return string
*/
- public function getWorkHours()
+ public function getSecurityClearanceRequirement()
{
- return $this->workHours;
+ return $this->securityClearanceRequirement;
}
/**
- * @param string $workHours
+ * @param string $securityClearanceRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWorkHours($workHours)
+ public function setSecurityClearanceRequirement($securityClearanceRequirement)
{
$types = [
"string",
];
- $workHours = self::checkTypes($workHours, $types);
+ $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types);
- $this->workHours = $workHours;
+ $this->securityClearanceRequirement = $securityClearanceRequirement;
}
/**
- * @return Date|string|null
+ * @return \OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements|string
*/
- public function getJobStartDate()
+ public function getExperienceRequirements()
{
- return $this->jobStartDate;
+ return $this->experienceRequirements;
}
/**
- * @param Date|string|null $jobStartDate
+ * @param \OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements|string $experienceRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setJobStartDate($jobStartDate)
+ public function setExperienceRequirements($experienceRequirements)
{
$types = [
- "Date",
+ "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
"string",
- "null",
];
- $jobStartDate = self::checkTypes($jobStartDate, $types);
+ $experienceRequirements = self::checkTypes($experienceRequirements, $types);
- $this->jobStartDate = $jobStartDate;
+ $this->experienceRequirements = $experienceRequirements;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|null
*/
- public function getEmploymentType()
+ public function getEstimatedSalary()
{
- return $this->employmentType;
+ return $this->estimatedSalary;
}
/**
- * @param string $employmentType
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|null $estimatedSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmploymentType($employmentType)
+ public function setEstimatedSalary($estimatedSalary)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
+ "null",
];
- $employmentType = self::checkTypes($employmentType, $types);
+ $estimatedSalary = self::checkTypes($estimatedSalary, $types);
- $this->employmentType = $employmentType;
+ $this->estimatedSalary = $estimatedSalary;
}
/**
* @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 string
*/
- public function getApplicationContact()
+ public function getJobBenefits()
{
- return $this->applicationContact;
+ return $this->jobBenefits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $applicationContact
+ * @param string $jobBenefits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setApplicationContact($applicationContact)
+ public function setJobBenefits($jobBenefits)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $applicationContact = self::checkTypes($applicationContact, $types);
+ $jobBenefits = self::checkTypes($jobBenefits, $types);
- $this->applicationContact = $applicationContact;
+ $this->jobBenefits = $jobBenefits;
}
/**
* @return string
*/
- public function getIncentiveCompensation()
+ public function getJobLocationType()
{
- return $this->incentiveCompensation;
+ return $this->jobLocationType;
}
/**
- * @param string $incentiveCompensation
+ * @param string $jobLocationType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncentiveCompensation($incentiveCompensation)
+ public function setJobLocationType($jobLocationType)
{
$types = [
"string",
];
- $incentiveCompensation = self::checkTypes($incentiveCompensation, $types);
+ $jobLocationType = self::checkTypes($jobLocationType, $types);
- $this->incentiveCompensation = $incentiveCompensation;
+ $this->jobLocationType = $jobLocationType;
}
/**
@@ -827,453 +804,477 @@ public function setTotalJobOpenings($totalJobOpenings)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getExperienceRequirements()
+ public function getSkills()
{
- return $this->experienceRequirements;
+ return $this->skills;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements
+ * @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 setExperienceRequirements($experienceRequirements)
+ public function setSkills($skills)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $experienceRequirements = self::checkTypes($experienceRequirements, $types);
+ $skills = self::checkTypes($skills, $types);
- $this->experienceRequirements = $experienceRequirements;
+ $this->skills = $skills;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getJobBenefits()
+ public function getApplicantLocationRequirements()
{
- return $this->jobBenefits;
+ return $this->applicantLocationRequirements;
}
/**
- * @param string $jobBenefits
+ * @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 setJobBenefits($jobBenefits)
+ public function setApplicantLocationRequirements($applicantLocationRequirements)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "string",
+ ];
+
+ $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types);
+
+ $this->applicantLocationRequirements = $applicantLocationRequirements;
+ }
+
+ /**
+ * @return bool|null
+ */
+ public function getDirectApply()
+ {
+ return $this->directApply;
+ }
+
+ /**
+ * @param bool|null $directApply
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDirectApply($directApply)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $jobBenefits = self::checkTypes($jobBenefits, $types);
+ $directApply = self::checkTypes($directApply, $types);
- $this->jobBenefits = $jobBenefits;
+ $this->directApply = $directApply;
}
/**
* @return string
*/
- public function getSalaryCurrency()
+ public function getEmployerOverview()
{
- return $this->salaryCurrency;
+ return $this->employerOverview;
}
/**
- * @param string $salaryCurrency
+ * @param string $employerOverview
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSalaryCurrency($salaryCurrency)
+ public function setEmployerOverview($employerOverview)
{
$types = [
"string",
];
- $salaryCurrency = self::checkTypes($salaryCurrency, $types);
+ $employerOverview = self::checkTypes($employerOverview, $types);
- $this->salaryCurrency = $salaryCurrency;
+ $this->employerOverview = $employerOverview;
}
/**
- * @return bool|null
+ * @return Date|DateTime|null
*/
- public function getExperienceInPlaceOfEducation()
+ public function getValidThrough()
{
- return $this->experienceInPlaceOfEducation;
+ return $this->validThrough;
}
/**
- * @param bool|null $experienceInPlaceOfEducation
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExperienceInPlaceOfEducation($experienceInPlaceOfEducation)
+ public function setValidThrough($validThrough)
{
$types = [
- "bool",
+ "Date",
+ "DateTime",
"null",
];
- $experienceInPlaceOfEducation = self::checkTypes($experienceInPlaceOfEducation, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->experienceInPlaceOfEducation = $experienceInPlaceOfEducation;
+ $this->validThrough = $validThrough;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- public function getSecurityClearanceRequirement()
+ public function getOccupationalCategory()
{
- return $this->securityClearanceRequirement;
+ return $this->occupationalCategory;
}
/**
- * @param string $securityClearanceRequirement
+ * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $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 = [
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
];
- $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types);
+ $occupationalCategory = self::checkTypes($occupationalCategory, $types);
- $this->securityClearanceRequirement = $securityClearanceRequirement;
+ $this->occupationalCategory = $occupationalCategory;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getEligibilityToWorkRequirement()
+ public function getSensoryRequirement()
{
- return $this->eligibilityToWorkRequirement;
+ return $this->sensoryRequirement;
}
/**
- * @param string $eligibilityToWorkRequirement
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $sensoryRequirement
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement)
+ public function setSensoryRequirement($sensoryRequirement)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types);
+ $sensoryRequirement = self::checkTypes($sensoryRequirement, $types);
- $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement;
+ $this->sensoryRequirement = $sensoryRequirement;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return string
*/
- public function getEducationRequirements()
+ public function getWorkHours()
{
- return $this->educationRequirements;
+ return $this->workHours;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements
+ * @param string $workHours
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationRequirements($educationRequirements)
+ public function setWorkHours($workHours)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
"string",
];
- $educationRequirements = self::checkTypes($educationRequirements, $types);
+ $workHours = self::checkTypes($workHours, $types);
- $this->educationRequirements = $educationRequirements;
+ $this->workHours = $workHours;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getBenefits()
+ public function getEmploymentUnit()
{
- return $this->benefits;
+ return $this->employmentUnit;
}
/**
- * @param string $benefits
+ * @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 setBenefits($benefits)
+ public function setEmploymentUnit($employmentUnit)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $benefits = self::checkTypes($benefits, $types);
+ $employmentUnit = self::checkTypes($employmentUnit, $types);
- $this->benefits = $benefits;
+ $this->employmentUnit = $employmentUnit;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return bool|null
*/
- public function getIndustry()
+ public function getExperienceInPlaceOfEducation()
{
- return $this->industry;
+ return $this->experienceInPlaceOfEducation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $industry
+ * @param bool|null $experienceInPlaceOfEducation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIndustry($industry)
+ public function setExperienceInPlaceOfEducation($experienceInPlaceOfEducation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
- "string",
+ "bool",
+ "null",
];
- $industry = self::checkTypes($industry, $types);
+ $experienceInPlaceOfEducation = self::checkTypes($experienceInPlaceOfEducation, $types);
- $this->industry = $industry;
+ $this->experienceInPlaceOfEducation = $experienceInPlaceOfEducation;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return string
*/
- public function getBaseSalary()
+ public function getResponsibilities()
{
- return $this->baseSalary;
+ return $this->responsibilities;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary
+ * @param string $responsibilities
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBaseSalary($baseSalary)
+ public function setResponsibilities($responsibilities)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\PriceSpecification",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "null",
];
- $baseSalary = self::checkTypes($baseSalary, $types);
+ $responsibilities = self::checkTypes($responsibilities, $types);
- $this->baseSalary = $baseSalary;
+ $this->responsibilities = $responsibilities;
}
/**
- * @return Date|DateTime|null
+ * @return Date|string|null
*/
- public function getDatePosted()
+ public function getJobStartDate()
{
- return $this->datePosted;
+ return $this->jobStartDate;
}
/**
- * @param Date|DateTime|null $datePosted
+ * @param Date|string|null $jobStartDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDatePosted($datePosted)
+ public function setJobStartDate($jobStartDate)
{
$types = [
"Date",
- "DateTime",
+ "string",
"null",
];
- $datePosted = self::checkTypes($datePosted, $types);
+ $jobStartDate = self::checkTypes($jobStartDate, $types);
- $this->datePosted = $datePosted;
+ $this->jobStartDate = $jobStartDate;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getSkills()
+ public function getBaseSalary()
{
- return $this->skills;
+ return $this->baseSalary;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills
+ * @param \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $baseSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSkills($skills)
+ public function setBaseSalary($baseSalary)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PriceSpecification",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "Number",
+ "null",
];
- $skills = self::checkTypes($skills, $types);
+ $baseSalary = self::checkTypes($baseSalary, $types);
- $this->skills = $skills;
+ $this->baseSalary = $baseSalary;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getHiringOrganization()
+ public function getIncentives()
{
- return $this->hiringOrganization;
+ return $this->incentives;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $hiringOrganization
+ * @param string $incentives
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHiringOrganization($hiringOrganization)
+ public function setIncentives($incentives)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $hiringOrganization = self::checkTypes($hiringOrganization, $types);
+ $incentives = self::checkTypes($incentives, $types);
- $this->hiringOrganization = $hiringOrganization;
+ $this->incentives = $incentives;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getJobImmediateStart()
+ public function getApplicationContact()
{
- return $this->jobImmediateStart;
+ return $this->applicationContact;
}
/**
- * @param bool|null $jobImmediateStart
+ * @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 setJobImmediateStart($jobImmediateStart)
+ public function setApplicationContact($applicationContact)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
+ "string",
];
- $jobImmediateStart = self::checkTypes($jobImmediateStart, $types);
+ $applicationContact = self::checkTypes($applicationContact, $types);
- $this->jobImmediateStart = $jobImmediateStart;
+ $this->applicationContact = $applicationContact;
}
/**
- * @return Date|DateTime|null
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getValidThrough()
+ public function getEducationRequirements()
{
- return $this->validThrough;
+ return $this->educationRequirements;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @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 setValidThrough($validThrough)
+ public function setEducationRequirements($educationRequirements)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $educationRequirements = self::checkTypes($educationRequirements, $types);
- $this->validThrough = $validThrough;
+ $this->educationRequirements = $educationRequirements;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getEmploymentUnit()
+ public function getSpecialCommitments()
{
- return $this->employmentUnit;
+ return $this->specialCommitments;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $employmentUnit
+ * @param string $specialCommitments
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmploymentUnit($employmentUnit)
+ public function setSpecialCommitments($specialCommitments)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $employmentUnit = self::checkTypes($employmentUnit, $types);
+ $specialCommitments = self::checkTypes($specialCommitments, $types);
- $this->employmentUnit = $employmentUnit;
+ $this->specialCommitments = $specialCommitments;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getQualifications()
+ public function getIndustry()
{
- return $this->qualifications;
+ return $this->industry;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
+ * @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 setQualifications($qualifications)
+ public function setIndustry($industry)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $qualifications = self::checkTypes($qualifications, $types);
+ $industry = self::checkTypes($industry, $types);
- $this->qualifications = $qualifications;
+ $this->industry = $industry;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return string
*/
- public function getOccupationalCategory()
+ public function getBenefits()
{
- return $this->occupationalCategory;
+ return $this->benefits;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param string $benefits
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setBenefits($benefits)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $benefits = self::checkTypes($benefits, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->benefits = $benefits;
}
}
diff --git a/src/Models/SchemaOrg/Joint.php b/src/Models/SchemaOrg/Joint.php
index c7958355..53746e0a 100644
--- a/src/Models/SchemaOrg/Joint.php
+++ b/src/Models/SchemaOrg/Joint.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "structuralClass" => "structuralClass",
"biomechnicalClass" => "biomechnicalClass",
+ "structuralClass" => "structuralClass",
"functionalClass" => "functionalClass",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * The name given to how bone physically connects to each other.
+ * The biomechanical properties of the bone.
*
*
* @var string
*/
- protected $structuralClass;
+ protected $biomechnicalClass;
/**
- * 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.
@@ -52,49 +52,49 @@ public static function fieldList() {
/**
* @return string
*/
- public function getStructuralClass()
+ public function getBiomechnicalClass()
{
- return $this->structuralClass;
+ return $this->biomechnicalClass;
}
/**
- * @param string $structuralClass
+ * @param string $biomechnicalClass
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStructuralClass($structuralClass)
+ public function setBiomechnicalClass($biomechnicalClass)
{
$types = [
"string",
];
- $structuralClass = self::checkTypes($structuralClass, $types);
+ $biomechnicalClass = self::checkTypes($biomechnicalClass, $types);
- $this->structuralClass = $structuralClass;
+ $this->biomechnicalClass = $biomechnicalClass;
}
/**
* @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;
}
/**
diff --git a/src/Models/SchemaOrg/LearningResource.php b/src/Models/SchemaOrg/LearningResource.php
index c9f5b932..36422211 100644
--- a/src/Models/SchemaOrg/LearningResource.php
+++ b/src/Models/SchemaOrg/LearningResource.php
@@ -17,153 +17,153 @@ public static function getType()
public static function fieldList() {
$fields = [
- "teaches" => "teaches",
+ "educationalAlignment" => "educationalAlignment",
+ "learningResourceType" => "learningResourceType",
"educationalLevel" => "educationalLevel",
- "assesses" => "assesses",
"educationalUse" => "educationalUse",
- "educationalAlignment" => "educationalAlignment",
+ "assesses" => "assesses",
+ "teaches" => "teaches",
"competencyRequired" => "competencyRequired",
- "learningResourceType" => "learningResourceType",
];
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.
+ * 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\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string
*/
- protected $teaches;
+ protected $educationalAlignment;
/**
- * 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 predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
*
*
* @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.
+ * 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 $assesses;
+ protected $educationalLevel;
/**
* The purpose of a work in the context of education; for example, 'assignment', 'group work'.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
protected $educationalUse;
/**
- * 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.
+ * The item being described is intended to assess the competency or learning outcome defined by the referenced term.
*
*
- * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $educationalAlignment;
+ protected $assesses;
/**
- * 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.
+ * 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
*/
- protected $competencyRequired;
+ protected $teaches;
/**
- * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
+ * 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 \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $learningResourceType;
+ protected $competencyRequired;
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
*/
- public function getTeaches()
+ public function getEducationalAlignment()
{
- return $this->teaches;
+ return $this->educationalAlignment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches
+ * @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 setTeaches($teaches)
+ public function setEducationalAlignment($educationalAlignment)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\AlignmentObject",
"string",
];
- $teaches = self::checkTypes($teaches, $types);
+ $educationalAlignment = self::checkTypes($educationalAlignment, $types);
- $this->teaches = $teaches;
+ $this->educationalAlignment = $educationalAlignment;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getEducationalLevel()
+ public function getLearningResourceType()
{
- return $this->educationalLevel;
+ return $this->learningResourceType;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $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",
];
- $educationalLevel = self::checkTypes($educationalLevel, $types);
+ $learningResourceType = self::checkTypes($learningResourceType, $types);
- $this->educationalLevel = $educationalLevel;
+ $this->learningResourceType = $learningResourceType;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getAssesses()
+ public function getEducationalLevel()
{
- return $this->assesses;
+ return $this->educationalLevel;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses
+ * @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 setAssesses($assesses)
+ public function setEducationalLevel($educationalLevel)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $assesses = self::checkTypes($assesses, $types);
+ $educationalLevel = self::checkTypes($educationalLevel, $types);
- $this->assesses = $assesses;
+ $this->educationalLevel = $educationalLevel;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
public function getEducationalUse()
{
@@ -171,15 +171,15 @@ public function getEducationalUse()
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalUse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setEducationalUse($educationalUse)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
$educationalUse = self::checkTypes($educationalUse, $types);
@@ -188,78 +188,78 @@ public function setEducationalUse($educationalUse)
}
/**
- * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getEducationalAlignment()
+ public function getAssesses()
{
- return $this->educationalAlignment;
+ return $this->assesses;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $assesses
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationalAlignment($educationalAlignment)
+ public function setAssesses($assesses)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AlignmentObject",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $educationalAlignment = self::checkTypes($educationalAlignment, $types);
+ $assesses = self::checkTypes($assesses, $types);
- $this->educationalAlignment = $educationalAlignment;
+ $this->assesses = $assesses;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getCompetencyRequired()
+ public function getTeaches()
{
- return $this->competencyRequired;
+ return $this->teaches;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $competencyRequired
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $teaches
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCompetencyRequired($competencyRequired)
+ public function setTeaches($teaches)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $competencyRequired = self::checkTypes($competencyRequired, $types);
+ $teaches = self::checkTypes($teaches, $types);
- $this->competencyRequired = $competencyRequired;
+ $this->teaches = $teaches;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getLearningResourceType()
+ public function getCompetencyRequired()
{
- return $this->learningResourceType;
+ return $this->competencyRequired;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType
+ * @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 setLearningResourceType($learningResourceType)
+ public function setCompetencyRequired($competencyRequired)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $learningResourceType = self::checkTypes($learningResourceType, $types);
+ $competencyRequired = self::checkTypes($competencyRequired, $types);
- $this->learningResourceType = $learningResourceType;
+ $this->competencyRequired = $competencyRequired;
}
}
diff --git a/src/Models/SchemaOrg/Legislation.php b/src/Models/SchemaOrg/Legislation.php
index 8567e99e..a8b21574 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",
- "legislationLegalForce" => "legislationLegalForce",
- "legislationType" => "legislationType",
- "jurisdiction" => "jurisdiction",
- "legislationIdentifier" => "legislationIdentifier",
"legislationChanges" => "legislationChanges",
- "legislationResponsible" => "legislationResponsible",
+ "legislationLegalForce" => "legislationLegalForce",
"legislationJurisdiction" => "legislationJurisdiction",
+ "legislationApplies" => "legislationApplies",
+ "jurisdiction" => "jurisdiction",
+ "legislationConsolidates" => "legislationConsolidates",
"legislationDate" => "legislationDate",
"legislationPassedBy" => "legislationPassedBy",
- "legislationConsolidates" => "legislationConsolidates",
- "legislationApplies" => "legislationApplies",
+ "legislationIdentifier" => "legislationIdentifier",
+ "legislationTransposes" => "legislationTransposes",
"legislationDateVersion" => "legislationDateVersion",
+ "legislationType" => "legislationType",
+ "legislationResponsible" => "legislationResponsible",
];
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.
+ * 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\Legislation|string
*/
- protected $legislationTransposes;
+ protected $legislationChanges;
/**
* Whether the legislation is currently in force, not in force, or partially in force.
@@ -52,116 +52,116 @@ 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.
+ * The jurisdiction from which the legislation originates.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $legislationType;
+ protected $legislationJurisdiction;
/**
- * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.
+ * 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 string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $jurisdiction;
+ protected $legislationApplies;
/**
- * 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.
+ * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $legislationIdentifier;
+ protected $jurisdiction;
/**
- * 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 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 $legislationChanges;
+ protected $legislationConsolidates;
/**
- * 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 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 \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var Date|null
*/
- protected $legislationResponsible;
+ protected $legislationDate;
/**
- * The jurisdiction from which the legislation originates.
+ * 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\AdministrativeArea|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $legislationJurisdiction;
+ protected $legislationPassedBy;
/**
- * 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.
+ * 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 Date|null
+ * @var string
*/
- protected $legislationDate;
+ protected $legislationIdentifier;
/**
- * 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.
+ * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Legislation|string
*/
- protected $legislationPassedBy;
+ protected $legislationTransposes;
/**
- * 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.
+ * 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\Legislation|string
+ * @var Date|null
*/
- protected $legislationConsolidates;
+ protected $legislationDateVersion;
/**
- * 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.
+ * 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 \OpenActive\Models\SchemaOrg\Legislation|string
+ * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- protected $legislationApplies;
+ protected $legislationType;
/**
- * 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")
+ * 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 Date|null
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $legislationDateVersion;
+ protected $legislationResponsible;
/**
* @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationTransposes()
+ public function getLegislationChanges()
{
- return $this->legislationTransposes;
+ return $this->legislationChanges;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationTransposes
+ * @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 setLegislationTransposes($legislationTransposes)
+ public function setLegislationChanges($legislationChanges)
{
$types = [
"\OpenActive\Models\SchemaOrg\Legislation",
"string",
];
- $legislationTransposes = self::checkTypes($legislationTransposes, $types);
+ $legislationChanges = self::checkTypes($legislationChanges, $types);
- $this->legislationTransposes = $legislationTransposes;
+ $this->legislationChanges = $legislationChanges;
}
/**
@@ -190,279 +190,279 @@ public function setLegislationLegalForce($legislationLegalForce)
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getLegislationType()
+ public function getLegislationJurisdiction()
{
- return $this->legislationType;
+ return $this->legislationJurisdiction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $legislationType
+ * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $legislationJurisdiction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationType($legislationType)
+ public function setLegislationJurisdiction($legislationJurisdiction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $legislationType = self::checkTypes($legislationType, $types);
+ $legislationJurisdiction = self::checkTypes($legislationJurisdiction, $types);
- $this->legislationType = $legislationType;
+ $this->legislationJurisdiction = $legislationJurisdiction;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
+ * @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getJurisdiction()
+ public function getLegislationApplies()
{
- return $this->jurisdiction;
+ return $this->legislationApplies;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction
+ * @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 setJurisdiction($jurisdiction)
+ public function setLegislationApplies($legislationApplies)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Legislation",
"string",
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $jurisdiction = self::checkTypes($jurisdiction, $types);
+ $legislationApplies = self::checkTypes($legislationApplies, $types);
- $this->jurisdiction = $jurisdiction;
+ $this->legislationApplies = $legislationApplies;
}
/**
- * @return string
+ * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- public function getLegislationIdentifier()
+ public function getJurisdiction()
{
- return $this->legislationIdentifier;
+ return $this->jurisdiction;
}
/**
- * @param string $legislationIdentifier
+ * @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 setLegislationIdentifier($legislationIdentifier)
+ public function setJurisdiction($jurisdiction)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
];
- $legislationIdentifier = self::checkTypes($legislationIdentifier, $types);
+ $jurisdiction = self::checkTypes($jurisdiction, $types);
- $this->legislationIdentifier = $legislationIdentifier;
+ $this->jurisdiction = $jurisdiction;
}
/**
* @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationChanges()
+ public function getLegislationConsolidates()
{
- return $this->legislationChanges;
+ return $this->legislationConsolidates;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationChanges
+ * @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 setLegislationChanges($legislationChanges)
+ public function setLegislationConsolidates($legislationConsolidates)
{
$types = [
"\OpenActive\Models\SchemaOrg\Legislation",
"string",
];
- $legislationChanges = self::checkTypes($legislationChanges, $types);
+ $legislationConsolidates = self::checkTypes($legislationConsolidates, $types);
- $this->legislationChanges = $legislationChanges;
+ $this->legislationConsolidates = $legislationConsolidates;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return Date|null
*/
- public function getLegislationResponsible()
+ public function getLegislationDate()
{
- return $this->legislationResponsible;
+ return $this->legislationDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationResponsible
+ * @param Date|null $legislationDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationResponsible($legislationResponsible)
+ public function setLegislationDate($legislationDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
+ "Date",
+ "null",
];
- $legislationResponsible = self::checkTypes($legislationResponsible, $types);
+ $legislationDate = self::checkTypes($legislationDate, $types);
- $this->legislationResponsible = $legislationResponsible;
+ $this->legislationDate = $legislationDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getLegislationJurisdiction()
+ public function getLegislationPassedBy()
{
- return $this->legislationJurisdiction;
+ return $this->legislationPassedBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $legislationJurisdiction
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $legislationPassedBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationJurisdiction($legislationJurisdiction)
+ public function setLegislationPassedBy($legislationPassedBy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $legislationJurisdiction = self::checkTypes($legislationJurisdiction, $types);
+ $legislationPassedBy = self::checkTypes($legislationPassedBy, $types);
- $this->legislationJurisdiction = $legislationJurisdiction;
+ $this->legislationPassedBy = $legislationPassedBy;
}
/**
- * @return Date|null
+ * @return string
*/
- public function getLegislationDate()
+ public function getLegislationIdentifier()
{
- return $this->legislationDate;
+ return $this->legislationIdentifier;
}
/**
- * @param Date|null $legislationDate
+ * @param string $legislationIdentifier
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationDate($legislationDate)
+ public function setLegislationIdentifier($legislationIdentifier)
{
$types = [
- "Date",
- "null",
+ "string",
];
- $legislationDate = self::checkTypes($legislationDate, $types);
+ $legislationIdentifier = self::checkTypes($legislationIdentifier, $types);
- $this->legislationDate = $legislationDate;
+ $this->legislationIdentifier = $legislationIdentifier;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Legislation|string
*/
- public function getLegislationPassedBy()
+ public function getLegislationTransposes()
{
- return $this->legislationPassedBy;
+ return $this->legislationTransposes;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $legislationPassedBy
+ * @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 setLegislationPassedBy($legislationPassedBy)
+ public function setLegislationTransposes($legislationTransposes)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Legislation",
"string",
];
- $legislationPassedBy = self::checkTypes($legislationPassedBy, $types);
+ $legislationTransposes = self::checkTypes($legislationTransposes, $types);
- $this->legislationPassedBy = $legislationPassedBy;
+ $this->legislationTransposes = $legislationTransposes;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Legislation|string
+ * @return Date|null
*/
- public function getLegislationConsolidates()
+ public function getLegislationDateVersion()
{
- return $this->legislationConsolidates;
+ return $this->legislationDateVersion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationConsolidates
+ * @param Date|null $legislationDateVersion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegislationConsolidates($legislationConsolidates)
+ public function setLegislationDateVersion($legislationDateVersion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Legislation",
- "string",
+ "Date",
+ "null",
];
- $legislationConsolidates = self::checkTypes($legislationConsolidates, $types);
+ $legislationDateVersion = self::checkTypes($legislationDateVersion, $types);
- $this->legislationConsolidates = $legislationConsolidates;
+ $this->legislationDateVersion = $legislationDateVersion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Legislation|string
+ * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- public function getLegislationApplies()
+ public function getLegislationType()
{
- return $this->legislationApplies;
+ return $this->legislationType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationApplies
+ * @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 setLegislationApplies($legislationApplies)
+ public function setLegislationType($legislationType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Legislation",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
];
- $legislationApplies = self::checkTypes($legislationApplies, $types);
+ $legislationType = self::checkTypes($legislationType, $types);
- $this->legislationApplies = $legislationApplies;
+ $this->legislationType = $legislationType;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getLegislationDateVersion()
+ public function getLegislationResponsible()
{
- return $this->legislationDateVersion;
+ return $this->legislationResponsible;
}
/**
- * @param Date|null $legislationDateVersion
+ * @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 setLegislationDateVersion($legislationDateVersion)
+ public function setLegislationResponsible($legislationResponsible)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $legislationDateVersion = self::checkTypes($legislationDateVersion, $types);
+ $legislationResponsible = self::checkTypes($legislationResponsible, $types);
- $this->legislationDateVersion = $legislationDateVersion;
+ $this->legislationResponsible = $legislationResponsible;
}
}
diff --git a/src/Models/SchemaOrg/LinkRole.php b/src/Models/SchemaOrg/LinkRole.php
index 6ad5e287..8ddfe855 100644
--- a/src/Models/SchemaOrg/LinkRole.php
+++ b/src/Models/SchemaOrg/LinkRole.php
@@ -36,7 +36,7 @@ public static function fieldList() {
* 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
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
protected $inLanguage;
@@ -65,7 +65,7 @@ public function setLinkRelationship($linkRelationship)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
public function getInLanguage()
{
@@ -73,15 +73,15 @@ public function getInLanguage()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage
+ * @param \OpenActive\Models\SchemaOrg\Language|string $inLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setInLanguage($inLanguage)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\Language",
+ "string",
];
$inLanguage = self::checkTypes($inLanguage, $types);
diff --git a/src/Models/SchemaOrg/ListItem.php b/src/Models/SchemaOrg/ListItem.php
index ac5d7ffd..11f14a81 100644
--- a/src/Models/SchemaOrg/ListItem.php
+++ b/src/Models/SchemaOrg/ListItem.php
@@ -18,9 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"position" => "position",
- "nextItem" => "nextItem",
"item" => "item",
"previousItem" => "previousItem",
+ "nextItem" => "nextItem",
];
return array_merge(parent::fieldList(), $fields);
@@ -35,28 +35,28 @@ public static function fieldList() {
protected $position;
/**
- * A link to the ListItem that follows the current one.
+ * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists').
*
*
- * @var \OpenActive\Models\SchemaOrg\ListItem|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $nextItem;
+ protected $item;
/**
- * 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
@@ -85,78 +85,78 @@ public function setPosition($position)
}
/**
- * @return \OpenActive\Models\SchemaOrg\ListItem|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getNextItem()
+ public function getItem()
{
- return $this->nextItem;
+ return $this->item;
}
/**
- * @param \OpenActive\Models\SchemaOrg\ListItem|string $nextItem
+ * @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 setNextItem($nextItem)
+ public function setItem($item)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ListItem",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $nextItem = self::checkTypes($nextItem, $types);
+ $item = self::checkTypes($item, $types);
- $this->nextItem = $nextItem;
+ $this->item = $item;
}
/**
- * @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..899424a3 100644
--- a/src/Models/SchemaOrg/LiveBlogPosting.php
+++ b/src/Models/SchemaOrg/LiveBlogPosting.php
@@ -17,22 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
- "coverageEndTime" => "coverageEndTime",
"coverageStartTime" => "coverageStartTime",
"liveBlogUpdate" => "liveBlogUpdate",
+ "coverageEndTime" => "coverageEndTime",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The time when the live blog will stop covering the Event. Note that coverage may continue after the Event concludes.
- *
- *
- * @var DateTime|null
- */
- 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.
*
@@ -50,29 +42,12 @@ public static function fieldList() {
protected $liveBlogUpdate;
/**
- * @return DateTime|null
- */
- public function getCoverageEndTime()
- {
- return $this->coverageEndTime;
- }
-
- /**
- * @param DateTime|null $coverageEndTime
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The time when the live blog will stop covering the Event. Note that coverage may continue after the Event concludes.
+ *
+ *
+ * @var DateTime|null
*/
- public function setCoverageEndTime($coverageEndTime)
- {
- $types = [
- "DateTime",
- "null",
- ];
-
- $coverageEndTime = self::checkTypes($coverageEndTime, $types);
-
- $this->coverageEndTime = $coverageEndTime;
- }
+ protected $coverageEndTime;
/**
* @return DateTime|null
@@ -124,4 +99,29 @@ public function setLiveBlogUpdate($liveBlogUpdate)
$this->liveBlogUpdate = $liveBlogUpdate;
}
+ /**
+ * @return DateTime|null
+ */
+ public function getCoverageEndTime()
+ {
+ return $this->coverageEndTime;
+ }
+
+ /**
+ * @param DateTime|null $coverageEndTime
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCoverageEndTime($coverageEndTime)
+ {
+ $types = [
+ "DateTime",
+ "null",
+ ];
+
+ $coverageEndTime = self::checkTypes($coverageEndTime, $types);
+
+ $this->coverageEndTime = $coverageEndTime;
+ }
+
}
diff --git a/src/Models/SchemaOrg/LoanOrCredit.php b/src/Models/SchemaOrg/LoanOrCredit.php
index 2d6710bb..25c89660 100644
--- a/src/Models/SchemaOrg/LoanOrCredit.php
+++ b/src/Models/SchemaOrg/LoanOrCredit.php
@@ -17,316 +17,316 @@ public static function getType()
public static function fieldList() {
$fields = [
- "renegotiableLoan" => "renegotiableLoan",
- "loanType" => "loanType",
- "recourseLoan" => "recourseLoan",
"loanTerm" => "loanTerm",
- "gracePeriod" => "gracePeriod",
- "requiredCollateral" => "requiredCollateral",
"currency" => "currency",
"amount" => "amount",
+ "loanType" => "loanType",
+ "recourseLoan" => "recourseLoan",
+ "renegotiableLoan" => "renegotiableLoan",
+ "gracePeriod" => "gracePeriod",
"loanRepaymentForm" => "loanRepaymentForm",
+ "requiredCollateral" => "requiredCollateral",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Whether the terms for payment of interest can be renegotiated during the life of the loan.
+ * The duration of the loan or credit agreement.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $renegotiableLoan;
+ protected $loanTerm;
/**
- * The type of a loan or credit.
+ * 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 $loanType;
+ protected $currency;
/**
- * 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.
+ * The amount of money.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $recourseLoan;
+ protected $amount;
/**
- * The duration of the loan or credit agreement.
+ * The type of a loan or credit.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $loanTerm;
+ protected $loanType;
/**
- * 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.
+ * 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 DateInterval|string|null
+ * @var bool|null
*/
- protected $gracePeriod;
+ protected $recourseLoan;
/**
- * Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.)
+ * Whether the terms for payment of interest can be renegotiated during the life of the loan.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Thing
+ * @var bool|null
*/
- protected $requiredCollateral;
+ protected $renegotiableLoan;
/**
- * 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 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.
*
*
- * @var string
+ * @var DateInterval|string|null
*/
- protected $currency;
+ protected $gracePeriod;
/**
- * The amount of money.
+ * A form of paying back money previously borrowed from a lender. Repayment usually takes the form of periodic payments that normally include part principal plus interest in each payment.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\RepaymentSpecification|string
*/
- protected $amount;
+ protected $loanRepaymentForm;
/**
- * A form of paying back money previously borrowed from a lender. Repayment usually takes the form of periodic payments that normally include part principal plus interest in each payment.
+ * Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.)
*
*
- * @var \OpenActive\Models\SchemaOrg\RepaymentSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $loanRepaymentForm;
+ protected $requiredCollateral;
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getRenegotiableLoan()
+ public function getLoanTerm()
{
- return $this->renegotiableLoan;
+ return $this->loanTerm;
}
/**
- * @param bool|null $renegotiableLoan
+ * @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 setRenegotiableLoan($renegotiableLoan)
+ public function setLoanTerm($loanTerm)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $renegotiableLoan = self::checkTypes($renegotiableLoan, $types);
+ $loanTerm = self::checkTypes($loanTerm, $types);
- $this->renegotiableLoan = $renegotiableLoan;
+ $this->loanTerm = $loanTerm;
}
/**
* @return string
*/
- public function getLoanType()
+ public function getCurrency()
{
- return $this->loanType;
+ return $this->currency;
}
/**
- * @param string $loanType
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLoanType($loanType)
+ public function setCurrency($currency)
{
$types = [
"string",
];
- $loanType = self::checkTypes($loanType, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->loanType = $loanType;
+ $this->currency = $currency;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getRecourseLoan()
+ public function getAmount()
{
- return $this->recourseLoan;
+ return $this->amount;
}
/**
- * @param bool|null $recourseLoan
+ * @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 setRecourseLoan($recourseLoan)
+ public function setAmount($amount)
{
$types = [
- "bool",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
+ "Number",
"null",
];
- $recourseLoan = self::checkTypes($recourseLoan, $types);
+ $amount = self::checkTypes($amount, $types);
- $this->recourseLoan = $recourseLoan;
+ $this->amount = $amount;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getLoanTerm()
+ public function getLoanType()
{
- return $this->loanTerm;
+ return $this->loanType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $loanTerm
+ * @param string $loanType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLoanTerm($loanTerm)
+ public function setLoanType($loanType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $loanTerm = self::checkTypes($loanTerm, $types);
+ $loanType = self::checkTypes($loanType, $types);
- $this->loanTerm = $loanTerm;
+ $this->loanType = $loanType;
}
/**
- * @return DateInterval|string|null
+ * @return bool|null
*/
- public function getGracePeriod()
+ public function getRecourseLoan()
{
- return $this->gracePeriod;
+ return $this->recourseLoan;
}
/**
- * @param DateInterval|string|null $gracePeriod
+ * @param bool|null $recourseLoan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGracePeriod($gracePeriod)
+ public function setRecourseLoan($recourseLoan)
{
$types = [
- "DateInterval",
- "string",
+ "bool",
"null",
];
- $gracePeriod = self::checkTypes($gracePeriod, $types);
+ $recourseLoan = self::checkTypes($recourseLoan, $types);
- $this->gracePeriod = $gracePeriod;
+ $this->recourseLoan = $recourseLoan;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Thing
+ * @return bool|null
*/
- public function getRequiredCollateral()
+ public function getRenegotiableLoan()
{
- return $this->requiredCollateral;
+ return $this->renegotiableLoan;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Thing $requiredCollateral
+ * @param bool|null $renegotiableLoan
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiredCollateral($requiredCollateral)
+ public function setRenegotiableLoan($renegotiableLoan)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\Thing",
+ "bool",
+ "null",
];
- $requiredCollateral = self::checkTypes($requiredCollateral, $types);
+ $renegotiableLoan = self::checkTypes($renegotiableLoan, $types);
- $this->requiredCollateral = $requiredCollateral;
+ $this->renegotiableLoan = $renegotiableLoan;
}
/**
- * @return string
+ * @return DateInterval|string|null
*/
- public function getCurrency()
+ public function getGracePeriod()
{
- return $this->currency;
+ return $this->gracePeriod;
}
/**
- * @param string $currency
+ * @param DateInterval|string|null $gracePeriod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrency($currency)
+ public function setGracePeriod($gracePeriod)
{
$types = [
+ "DateInterval",
"string",
+ "null",
];
- $currency = self::checkTypes($currency, $types);
+ $gracePeriod = self::checkTypes($gracePeriod, $types);
- $this->currency = $currency;
+ $this->gracePeriod = $gracePeriod;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\RepaymentSpecification|string
*/
- public function getAmount()
+ public function getLoanRepaymentForm()
{
- return $this->amount;
+ return $this->loanRepaymentForm;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\RepaymentSpecification|string $loanRepaymentForm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmount($amount)
+ public function setLoanRepaymentForm($loanRepaymentForm)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\RepaymentSpecification",
"string",
- "null",
];
- $amount = self::checkTypes($amount, $types);
+ $loanRepaymentForm = self::checkTypes($loanRepaymentForm, $types);
- $this->amount = $amount;
+ $this->loanRepaymentForm = $loanRepaymentForm;
}
/**
- * @return \OpenActive\Models\SchemaOrg\RepaymentSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getLoanRepaymentForm()
+ public function getRequiredCollateral()
{
- return $this->loanRepaymentForm;
+ return $this->requiredCollateral;
}
/**
- * @param \OpenActive\Models\SchemaOrg\RepaymentSpecification|string $loanRepaymentForm
+ * @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 setLoanRepaymentForm($loanRepaymentForm)
+ public function setRequiredCollateral($requiredCollateral)
{
$types = [
- "\OpenActive\Models\SchemaOrg\RepaymentSpecification",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $loanRepaymentForm = self::checkTypes($loanRepaymentForm, $types);
+ $requiredCollateral = self::checkTypes($requiredCollateral, $types);
- $this->loanRepaymentForm = $loanRepaymentForm;
+ $this->requiredCollateral = $requiredCollateral;
}
}
diff --git a/src/Models/SchemaOrg/LocalBusiness.php b/src/Models/SchemaOrg/LocalBusiness.php
index 5dc0f3df..6c5e5eb7 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
@@ -17,10 +17,10 @@ public static function getType()
public static function fieldList() {
$fields = [
- "branchOf" => "branchOf",
- "openingHours" => "openingHours",
"priceRange" => "priceRange",
+ "openingHours" => "openingHours",
"paymentAccepted" => "paymentAccepted",
+ "branchOf" => "branchOf",
"currenciesAccepted" => "currenciesAccepted",
];
@@ -28,12 +28,12 @@ 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 price range of the business, for example ```$$$```.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $branchOf;
+ protected $priceRange;
/**
* 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>
.
@@ -44,23 +44,23 @@ public static function fieldList() {
protected $openingHours;
/**
- * The price range of the business, for example ```$$$```.
+ * Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
*
*
* @var string
*/
- protected $priceRange;
+ protected $paymentAccepted;
/**
- * Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
+ * The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $paymentAccepted;
+ protected $branchOf;
/**
- * 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
@@ -68,28 +68,27 @@ public static function fieldList() {
protected $currenciesAccepted;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getBranchOf()
+ public function getPriceRange()
{
- return $this->branchOf;
+ return $this->priceRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $branchOf
+ * @param string $priceRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBranchOf($branchOf)
+ public function setPriceRange($priceRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $branchOf = self::checkTypes($branchOf, $types);
+ $priceRange = self::checkTypes($priceRange, $types);
- $this->branchOf = $branchOf;
+ $this->priceRange = $priceRange;
}
/**
@@ -119,49 +118,50 @@ public function setOpeningHours($openingHours)
/**
* @return string
*/
- public function getPriceRange()
+ public function getPaymentAccepted()
{
- return $this->priceRange;
+ return $this->paymentAccepted;
}
/**
- * @param string $priceRange
+ * @param string $paymentAccepted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceRange($priceRange)
+ public function setPaymentAccepted($paymentAccepted)
{
$types = [
"string",
];
- $priceRange = self::checkTypes($priceRange, $types);
+ $paymentAccepted = self::checkTypes($paymentAccepted, $types);
- $this->priceRange = $priceRange;
+ $this->paymentAccepted = $paymentAccepted;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPaymentAccepted()
+ public function getBranchOf()
{
- return $this->paymentAccepted;
+ return $this->branchOf;
}
/**
- * @param string $paymentAccepted
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $branchOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPaymentAccepted($paymentAccepted)
+ public function setBranchOf($branchOf)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $paymentAccepted = self::checkTypes($paymentAccepted, $types);
+ $branchOf = self::checkTypes($branchOf, $types);
- $this->paymentAccepted = $paymentAccepted;
+ $this->branchOf = $branchOf;
}
/**
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..f3e2055d 100644
--- a/src/Models/SchemaOrg/LodgingBusiness.php
+++ b/src/Models/SchemaOrg/LodgingBusiness.php
@@ -17,287 +17,287 @@ public static function getType()
public static function fieldList() {
$fields = [
- "numberOfRooms" => "numberOfRooms",
- "audience" => "audience",
+ "petsAllowed" => "petsAllowed",
"starRating" => "starRating",
- "amenityFeature" => "amenityFeature",
- "availableLanguage" => "availableLanguage",
"checkoutTime" => "checkoutTime",
"checkinTime" => "checkinTime",
- "petsAllowed" => "petsAllowed",
+ "numberOfRooms" => "numberOfRooms",
+ "amenityFeature" => "amenityFeature",
+ "availableLanguage" => "availableLanguage",
+ "audience" => "audience",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * 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.
+ * 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|Number|null
+ * @var bool|string|null
*/
- protected $numberOfRooms;
+ protected $petsAllowed;
/**
- * An intended audience, i.e. a group for whom something was created.
+ * 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 \OpenActive\Models\SchemaOrg\Audience|string
+ * @var \OpenActive\Models\SchemaOrg\Rating|string
*/
- protected $audience;
+ protected $starRating;
/**
- * 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).
+ * The latest someone may check out of a lodging establishment.
*
*
- * @var \OpenActive\Models\SchemaOrg\Rating|string
+ * @var DateTime|string|null
*/
- protected $starRating;
+ protected $checkoutTime;
/**
- * 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.
+ * The earliest someone may check into a lodging establishment.
*
*
- * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @var DateTime|string|null
*/
- protected $amenityFeature;
+ protected $checkinTime;
/**
- * 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 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|\OpenActive\Models\SchemaOrg\Language
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- protected $availableLanguage;
+ protected $numberOfRooms;
/**
- * The latest someone may check out of a lodging establishment.
+ * 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.
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- protected $checkoutTime;
+ protected $amenityFeature;
/**
- * The earliest someone may check into a lodging establishment.
+ * 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 DateTime|string|null
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $checkinTime;
+ protected $availableLanguage;
/**
- * 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
+ * @return bool|string|null
*/
- public function getNumberOfRooms()
+ public function getPetsAllowed()
{
- return $this->numberOfRooms;
+ return $this->petsAllowed;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms
+ * @param bool|string|null $petsAllowed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumberOfRooms($numberOfRooms)
+ public function setPetsAllowed($petsAllowed)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "bool",
"string",
- "Number",
"null",
];
- $numberOfRooms = self::checkTypes($numberOfRooms, $types);
+ $petsAllowed = self::checkTypes($petsAllowed, $types);
- $this->numberOfRooms = $numberOfRooms;
+ $this->petsAllowed = $petsAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Audience|string
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
*/
- public function getAudience()
+ public function getStarRating()
{
- return $this->audience;
+ return $this->starRating;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Audience|string $audience
+ * @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 setAudience($audience)
+ public function setStarRating($starRating)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Rating",
"string",
];
- $audience = self::checkTypes($audience, $types);
+ $starRating = self::checkTypes($starRating, $types);
- $this->audience = $audience;
+ $this->starRating = $starRating;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Rating|string
+ * @return DateTime|string|null
*/
- public function getStarRating()
+ public function getCheckoutTime()
{
- return $this->starRating;
+ return $this->checkoutTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating
+ * @param DateTime|string|null $checkoutTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStarRating($starRating)
+ public function setCheckoutTime($checkoutTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Rating",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $starRating = self::checkTypes($starRating, $types);
+ $checkoutTime = self::checkTypes($checkoutTime, $types);
- $this->starRating = $starRating;
+ $this->checkoutTime = $checkoutTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @return DateTime|string|null
*/
- public function getAmenityFeature()
+ public function getCheckinTime()
{
- return $this->amenityFeature;
+ return $this->checkinTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
+ * @param DateTime|string|null $checkinTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmenityFeature($amenityFeature)
+ public function setCheckinTime($checkinTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $amenityFeature = self::checkTypes($amenityFeature, $types);
+ $checkinTime = self::checkTypes($checkinTime, $types);
- $this->amenityFeature = $amenityFeature;
+ $this->checkinTime = $checkinTime;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
*/
- public function getAvailableLanguage()
+ public function getNumberOfRooms()
{
- return $this->availableLanguage;
+ return $this->numberOfRooms;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
+ * @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 setAvailableLanguage($availableLanguage)
+ public function setNumberOfRooms($numberOfRooms)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
- "\OpenActive\Models\SchemaOrg\Language",
+ "Number",
+ "null",
];
- $availableLanguage = self::checkTypes($availableLanguage, $types);
+ $numberOfRooms = self::checkTypes($numberOfRooms, $types);
- $this->availableLanguage = $availableLanguage;
+ $this->numberOfRooms = $numberOfRooms;
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- public function getCheckoutTime()
+ public function getAmenityFeature()
{
- return $this->checkoutTime;
+ return $this->amenityFeature;
}
/**
- * @param DateTime|string|null $checkoutTime
+ * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCheckoutTime($checkoutTime)
+ public function setAmenityFeature($amenityFeature)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
+ "string",
];
- $checkoutTime = self::checkTypes($checkoutTime, $types);
+ $amenityFeature = self::checkTypes($amenityFeature, $types);
- $this->checkoutTime = $checkoutTime;
+ $this->amenityFeature = $amenityFeature;
}
/**
- * @return DateTime|string|null
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getCheckinTime()
+ public function getAvailableLanguage()
{
- return $this->checkinTime;
+ return $this->availableLanguage;
}
/**
- * @param DateTime|string|null $checkinTime
+ * @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 setCheckinTime($checkinTime)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $checkinTime = self::checkTypes($checkinTime, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->checkinTime = $checkinTime;
+ $this->availableLanguage = $availableLanguage;
}
/**
- * @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..0d82f391 100644
--- a/src/Models/SchemaOrg/LodgingReservation.php
+++ b/src/Models/SchemaOrg/LodgingReservation.php
@@ -17,11 +17,11 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "numAdults" => "numAdults",
"lodgingUnitType" => "lodgingUnitType",
- "lodgingUnitDescription" => "lodgingUnitDescription",
"checkoutTime" => "checkoutTime",
- "numAdults" => "numAdults",
"checkinTime" => "checkinTime",
+ "lodgingUnitDescription" => "lodgingUnitDescription",
"numChildren" => "numChildren",
];
@@ -29,20 +29,20 @@ public static function fieldList() {
}
/**
- * Textual description of the unit type (including suite vs. room, size of bed, etc.).
+ * The number of adults staying in the unit.
*
*
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
- protected $lodgingUnitType;
+ protected $numAdults;
/**
- * A full description of the lodging unit.
+ * Textual description of the unit type (including suite vs. room, size of bed, etc.).
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- protected $lodgingUnitDescription;
+ protected $lodgingUnitType;
/**
* The latest someone may check out of a lodging establishment.
@@ -53,77 +53,80 @@ public static function fieldList() {
protected $checkoutTime;
/**
- * The number of adults staying in the unit.
+ * The earliest someone may check into a lodging establishment.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var DateTime|string|null
*/
- protected $numAdults;
+ protected $checkinTime;
/**
- * The earliest someone may check into a lodging establishment.
+ * A full description of the lodging unit.
*
*
- * @var DateTime|string|null
+ * @var string
*/
- protected $checkinTime;
+ protected $lodgingUnitDescription;
/**
* The number of children staying in the unit.
*
*
- * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
protected $numChildren;
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
- public function getLodgingUnitType()
+ public function getNumAdults()
{
- return $this->lodgingUnitType;
+ return $this->numAdults;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $lodgingUnitType
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null $numAdults
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLodgingUnitType($lodgingUnitType)
+ public function setNumAdults($numAdults)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "int",
"null",
];
- $lodgingUnitType = self::checkTypes($lodgingUnitType, $types);
+ $numAdults = self::checkTypes($numAdults, $types);
- $this->lodgingUnitType = $lodgingUnitType;
+ $this->numAdults = $numAdults;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- public function getLodgingUnitDescription()
+ public function getLodgingUnitType()
{
- return $this->lodgingUnitDescription;
+ return $this->lodgingUnitType;
}
/**
- * @param string $lodgingUnitDescription
+ * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $lodgingUnitType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLodgingUnitDescription($lodgingUnitDescription)
+ public function setLodgingUnitType($lodgingUnitType)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
"string",
+ "null",
];
- $lodgingUnitDescription = self::checkTypes($lodgingUnitDescription, $types);
+ $lodgingUnitType = self::checkTypes($lodgingUnitType, $types);
- $this->lodgingUnitDescription = $lodgingUnitDescription;
+ $this->lodgingUnitType = $lodgingUnitType;
}
/**
@@ -153,60 +156,57 @@ public function setCheckoutTime($checkoutTime)
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return DateTime|string|null
*/
- public function getNumAdults()
+ public function getCheckinTime()
{
- return $this->numAdults;
+ return $this->checkinTime;
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numAdults
+ * @param DateTime|string|null $checkinTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNumAdults($numAdults)
+ public function setCheckinTime($checkinTime)
{
$types = [
- "int",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "string",
+ "DateTime",
+ "Time",
"null",
];
- $numAdults = self::checkTypes($numAdults, $types);
+ $checkinTime = self::checkTypes($checkinTime, $types);
- $this->numAdults = $numAdults;
+ $this->checkinTime = $checkinTime;
}
/**
- * @return DateTime|string|null
+ * @return string
*/
- public function getCheckinTime()
+ public function getLodgingUnitDescription()
{
- return $this->checkinTime;
+ return $this->lodgingUnitDescription;
}
/**
- * @param DateTime|string|null $checkinTime
+ * @param string $lodgingUnitDescription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCheckinTime($checkinTime)
+ public function setLodgingUnitDescription($lodgingUnitDescription)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "string",
];
- $checkinTime = self::checkTypes($checkinTime, $types);
+ $lodgingUnitDescription = self::checkTypes($lodgingUnitDescription, $types);
- $this->checkinTime = $checkinTime;
+ $this->lodgingUnitDescription = $lodgingUnitDescription;
}
/**
- * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null
*/
public function getNumChildren()
{
@@ -214,16 +214,16 @@ public function getNumChildren()
}
/**
- * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numChildren
+ * @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 setNumChildren($numChildren)
{
$types = [
- "int",
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "int",
"null",
];
diff --git a/src/Models/SchemaOrg/LymphaticVessel.php b/src/Models/SchemaOrg/LymphaticVessel.php
index de4fecdf..d4c33834 100644
--- a/src/Models/SchemaOrg/LymphaticVessel.php
+++ b/src/Models/SchemaOrg/LymphaticVessel.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "runsTo" => "runsTo",
"regionDrained" => "regionDrained",
+ "runsTo" => "runsTo",
"originatesFrom" => "originatesFrom",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * The vasculature the lymphatic structure runs, or efferents, to.
+ * 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\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $runsTo;
+ protected $regionDrained;
/**
- * 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.
@@ -50,54 +50,54 @@ public static function fieldList() {
protected $originatesFrom;
/**
- * @return \OpenActive\Models\SchemaOrg\Vessel|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getRunsTo()
+ public function getRegionDrained()
{
- return $this->runsTo;
+ return $this->regionDrained;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $runsTo
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRunsTo($runsTo)
+ public function setRegionDrained($regionDrained)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vessel",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $runsTo = self::checkTypes($runsTo, $types);
+ $regionDrained = self::checkTypes($regionDrained, $types);
- $this->runsTo = $runsTo;
+ $this->regionDrained = $regionDrained;
}
/**
- * @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;
}
/**
diff --git a/src/Models/SchemaOrg/MediaObject.php b/src/Models/SchemaOrg/MediaObject.php
index 959cbe73..e2372fc7 100644
--- a/src/Models/SchemaOrg/MediaObject.php
+++ b/src/Models/SchemaOrg/MediaObject.php
@@ -17,122 +17,126 @@ public static function getType()
public static function fieldList() {
$fields = [
- "contentSize" => "contentSize",
- "contentUrl" => "contentUrl",
- "width" => "width",
- "height" => "height",
- "regionsAllowed" => "regionsAllowed",
- "startTime" => "startTime",
"associatedArticle" => "associatedArticle",
+ "contentSize" => "contentSize",
"ineligibleRegion" => "ineligibleRegion",
- "requiresSubscription" => "requiresSubscription",
- "playerType" => "playerType",
- "encodesCreativeWork" => "encodesCreativeWork",
- "duration" => "duration",
"encodingFormat" => "encodingFormat",
- "uploadDate" => "uploadDate",
- "embedUrl" => "embedUrl",
- "bitrate" => "bitrate",
"endTime" => "endTime",
+ "uploadDate" => "uploadDate",
+ "contentUrl" => "contentUrl",
+ "startTime" => "startTime",
+ "interpretedAsClaim" => "interpretedAsClaim",
"productionCompany" => "productionCompany",
+ "height" => "height",
+ "duration" => "duration",
"sha256" => "sha256",
- "interpretedAsClaim" => "interpretedAsClaim",
+ "width" => "width",
+ "bitrate" => "bitrate",
+ "embedUrl" => "embedUrl",
+ "requiresSubscription" => "requiresSubscription",
+ "playerType" => "playerType",
+ "regionsAllowed" => "regionsAllowed",
+ "encodesCreativeWork" => "encodesCreativeWork",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * File size in (mega/kilo) bytes.
+ * A NewsArticle associated with the Media Object.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\NewsArticle|string
*/
- protected $contentSize;
+ protected $associatedArticle;
/**
- * Actual bytes of the media object, for example the image file or video file.
+ * File size in (mega/kilo)bytes.
*
*
* @var string
*/
- protected $contentUrl;
+ protected $contentSize;
/**
- * 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 \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $width;
+ protected $ineligibleRegion;
/**
- * The height of the item.
+ * 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.
+ *
+ * Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $height;
+ protected $encodingFormat;
/**
- * 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 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\Place|string
+ * @var DateTime|string|null
*/
- protected $regionsAllowed;
+ 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.
+ * Date (including time if available) when this media object was uploaded to this site.
*
*
- * @var DateTime|string|null
+ * @var Date|DateTime|null
*/
- protected $startTime;
+ protected $uploadDate;
/**
- * A NewsArticle associated with the Media Object.
+ * Actual bytes of the media object, for example the image file or video file.
*
*
- * @var \OpenActive\Models\SchemaOrg\NewsArticle|string
+ * @var string
*/
- protected $associatedArticle;
+ protected $contentUrl;
/**
- * 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 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\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var DateTime|string|null
*/
- protected $ineligibleRegion;
+ protected $startTime;
/**
- * 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').
+ * 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\MediaSubscription|bool|string|null
+ * @var \OpenActive\Models\SchemaOrg\Claim|string
*/
- protected $requiresSubscription;
+ protected $interpretedAsClaim;
/**
- * Player type required—for example, Flash or Silverlight.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $playerType;
+ protected $productionCompany;
/**
- * The CreativeWork encoded by this media object.
+ * The height of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $encodesCreativeWork;
+ protected $height;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
* @var DateInterval|string|null
@@ -140,349 +144,344 @@ public static function fieldList() {
protected $duration;
/**
- * 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.
- *
- * Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.
+ * 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 string
*/
- protected $encodingFormat;
+ protected $sha256;
/**
- * Date when this media object was uploaded to this site.
+ * The width of the item.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $uploadDate;
+ protected $width;
/**
- * 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 bitrate of the media object.
*
*
* @var string
*/
- protected $embedUrl;
+ protected $bitrate;
/**
- * The bitrate of 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 string
*/
- protected $bitrate;
+ protected $embedUrl;
/**
- * 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.
+ * 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 DateTime|string|null
+ * @var bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- protected $endTime;
+ protected $requiresSubscription;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * Player type required—for example, Flash or Silverlight.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $productionCompany;
+ protected $playerType;
/**
- * 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 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 string
+ * @var \OpenActive\Models\SchemaOrg\Place|string
*/
- protected $sha256;
+ protected $regionsAllowed;
/**
- * 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 CreativeWork encoded by this media object.
*
*
- * @var \OpenActive\Models\SchemaOrg\Claim|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $interpretedAsClaim;
+ protected $encodesCreativeWork;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\NewsArticle|string
*/
- public function getContentSize()
+ public function getAssociatedArticle()
{
- return $this->contentSize;
+ return $this->associatedArticle;
}
/**
- * @param string $contentSize
+ * @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 setContentSize($contentSize)
+ public function setAssociatedArticle($associatedArticle)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\NewsArticle",
"string",
];
- $contentSize = self::checkTypes($contentSize, $types);
+ $associatedArticle = self::checkTypes($associatedArticle, $types);
- $this->contentSize = $contentSize;
+ $this->associatedArticle = $associatedArticle;
}
/**
* @return string
*/
- public function getContentUrl()
+ public function getContentSize()
{
- return $this->contentUrl;
+ return $this->contentSize;
}
/**
- * @param string $contentUrl
+ * @param string $contentSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentUrl($contentUrl)
+ public function setContentSize($contentSize)
{
$types = [
"string",
];
- $contentUrl = self::checkTypes($contentUrl, $types);
+ $contentSize = self::checkTypes($contentSize, $types);
- $this->contentUrl = $contentUrl;
+ $this->contentSize = $contentSize;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @return \OpenActive\Models\SchemaOrg\Place|string|\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 \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.
*/
- public function setWidth($width)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
+ "\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 string
*/
- public function getHeight()
+ public function getEncodingFormat()
{
- return $this->height;
+ return $this->encodingFormat;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height
+ * @param string $encodingFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHeight($height)
+ public function setEncodingFormat($encodingFormat)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $height = self::checkTypes($height, $types);
+ $encodingFormat = self::checkTypes($encodingFormat, $types);
- $this->height = $height;
+ $this->encodingFormat = $encodingFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return DateTime|string|null
*/
- public function getRegionsAllowed()
+ public function getEndTime()
{
- return $this->regionsAllowed;
+ return $this->endTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $regionsAllowed
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRegionsAllowed($regionsAllowed)
+ public function setEndTime($endTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $regionsAllowed = self::checkTypes($regionsAllowed, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->regionsAllowed = $regionsAllowed;
+ $this->endTime = $endTime;
}
/**
- * @return DateTime|string|null
+ * @return Date|DateTime|null
*/
- public function getStartTime()
+ public function getUploadDate()
{
- return $this->startTime;
+ return $this->uploadDate;
}
/**
- * @param DateTime|string|null $startTime
+ * @param Date|DateTime|null $uploadDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartTime($startTime)
+ public function setUploadDate($uploadDate)
{
$types = [
+ "Date",
"DateTime",
- "Time",
"null",
];
- $startTime = self::checkTypes($startTime, $types);
+ $uploadDate = self::checkTypes($uploadDate, $types);
- $this->startTime = $startTime;
+ $this->uploadDate = $uploadDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\NewsArticle|string
+ * @return string
*/
- public function getAssociatedArticle()
+ public function getContentUrl()
{
- return $this->associatedArticle;
+ return $this->contentUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\NewsArticle|string $associatedArticle
+ * @param string $contentUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAssociatedArticle($associatedArticle)
+ public function setContentUrl($contentUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\NewsArticle",
"string",
];
- $associatedArticle = self::checkTypes($associatedArticle, $types);
+ $contentUrl = self::checkTypes($contentUrl, $types);
- $this->associatedArticle = $associatedArticle;
+ $this->contentUrl = $contentUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @return DateTime|string|null
*/
- public function getIneligibleRegion()
+ public function getStartTime()
{
- return $this->ineligibleRegion;
+ return $this->startTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param DateTime|string|null $startTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setStartTime($startTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
- "string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
+ "DateTime",
+ "Time",
+ "null",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->startTime = $startTime;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @return \OpenActive\Models\SchemaOrg\Claim|string
*/
- public function getRequiresSubscription()
+ public function getInterpretedAsClaim()
{
- return $this->requiresSubscription;
+ return $this->interpretedAsClaim;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null $requiresSubscription
+ * @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 setRequiresSubscription($requiresSubscription)
+ public function setInterpretedAsClaim($interpretedAsClaim)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaSubscription",
- "bool",
+ "\OpenActive\Models\SchemaOrg\Claim",
"string",
- "null",
];
- $requiresSubscription = self::checkTypes($requiresSubscription, $types);
+ $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
- $this->requiresSubscription = $requiresSubscription;
+ $this->interpretedAsClaim = $interpretedAsClaim;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getPlayerType()
+ public function getProductionCompany()
{
- return $this->playerType;
+ return $this->productionCompany;
}
/**
- * @param string $playerType
+ * @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 setPlayerType($playerType)
+ public function setProductionCompany($productionCompany)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $playerType = self::checkTypes($playerType, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->playerType = $playerType;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getEncodesCreativeWork()
+ public function getHeight()
{
- return $this->encodesCreativeWork;
+ return $this->height;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $encodesCreativeWork
+ * @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 setEncodesCreativeWork($encodesCreativeWork)
+ public function setHeight($height)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types);
+ $height = self::checkTypes($height, $types);
- $this->encodesCreativeWork = $encodesCreativeWork;
+ $this->height = $height;
}
/**
@@ -514,198 +513,200 @@ public function setDuration($duration)
/**
* @return string
*/
- public function getEncodingFormat()
+ public function getSha256()
{
- return $this->encodingFormat;
+ return $this->sha256;
}
/**
- * @param string $encodingFormat
+ * @param string $sha256
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodingFormat($encodingFormat)
+ public function setSha256($sha256)
{
$types = [
"string",
];
- $encodingFormat = self::checkTypes($encodingFormat, $types);
+ $sha256 = self::checkTypes($sha256, $types);
- $this->encodingFormat = $encodingFormat;
+ $this->sha256 = $sha256;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getUploadDate()
+ public function getWidth()
{
- return $this->uploadDate;
+ return $this->width;
}
/**
- * @param Date|null $uploadDate
+ * @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 setUploadDate($uploadDate)
+ public function setWidth($width)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $uploadDate = self::checkTypes($uploadDate, $types);
+ $width = self::checkTypes($width, $types);
- $this->uploadDate = $uploadDate;
+ $this->width = $width;
}
/**
* @return string
*/
- public function getEmbedUrl()
+ public function getBitrate()
{
- return $this->embedUrl;
+ return $this->bitrate;
}
/**
- * @param string $embedUrl
+ * @param string $bitrate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEmbedUrl($embedUrl)
+ public function setBitrate($bitrate)
{
$types = [
"string",
];
- $embedUrl = self::checkTypes($embedUrl, $types);
+ $bitrate = self::checkTypes($bitrate, $types);
- $this->embedUrl = $embedUrl;
+ $this->bitrate = $bitrate;
}
/**
* @return string
*/
- public function getBitrate()
+ public function getEmbedUrl()
{
- return $this->bitrate;
+ return $this->embedUrl;
}
/**
- * @param string $bitrate
+ * @param string $embedUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBitrate($bitrate)
+ public function setEmbedUrl($embedUrl)
{
$types = [
"string",
];
- $bitrate = self::checkTypes($bitrate, $types);
+ $embedUrl = self::checkTypes($embedUrl, $types);
- $this->bitrate = $bitrate;
+ $this->embedUrl = $embedUrl;
}
/**
- * @return DateTime|string|null
+ * @return bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- public function getEndTime()
+ public function getRequiresSubscription()
{
- return $this->endTime;
+ return $this->requiresSubscription;
}
/**
- * @param DateTime|string|null $endTime
+ * @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 setEndTime($endTime)
+ public function setRequiresSubscription($requiresSubscription)
{
$types = [
- "DateTime",
- "Time",
+ "bool",
+ "\OpenActive\Models\SchemaOrg\MediaSubscription",
+ "string",
"null",
];
- $endTime = self::checkTypes($endTime, $types);
+ $requiresSubscription = self::checkTypes($requiresSubscription, $types);
- $this->endTime = $endTime;
+ $this->requiresSubscription = $requiresSubscription;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return string
*/
- public function getProductionCompany()
+ public function getPlayerType()
{
- return $this->productionCompany;
+ return $this->playerType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param string $playerType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setPlayerType($playerType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $playerType = self::checkTypes($playerType, $types);
- $this->productionCompany = $productionCompany;
+ $this->playerType = $playerType;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getSha256()
+ public function getRegionsAllowed()
{
- return $this->sha256;
+ return $this->regionsAllowed;
}
/**
- * @param string $sha256
+ * @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 setSha256($sha256)
+ public function setRegionsAllowed($regionsAllowed)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $sha256 = self::checkTypes($sha256, $types);
+ $regionsAllowed = self::checkTypes($regionsAllowed, $types);
- $this->sha256 = $sha256;
+ $this->regionsAllowed = $regionsAllowed;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Claim|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getInterpretedAsClaim()
+ public function getEncodesCreativeWork()
{
- return $this->interpretedAsClaim;
+ return $this->encodesCreativeWork;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim
+ * @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 setInterpretedAsClaim($interpretedAsClaim)
+ public function setEncodesCreativeWork($encodesCreativeWork)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Claim",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
+ $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types);
- $this->interpretedAsClaim = $interpretedAsClaim;
+ $this->encodesCreativeWork = $encodesCreativeWork;
}
}
diff --git a/src/Models/SchemaOrg/MediaReview.php b/src/Models/SchemaOrg/MediaReview.php
index f0f371ee..b7a57077 100644
--- a/src/Models/SchemaOrg/MediaReview.php
+++ b/src/Models/SchemaOrg/MediaReview.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "originalMediaLink" => "originalMediaLink",
"originalMediaContextDescription" => "originalMediaContextDescription",
"mediaAuthenticityCategory" => "mediaAuthenticityCategory",
- "originalMediaLink" => "originalMediaLink",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * 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|\OpenActive\Models\SchemaOrg\WebPage|\OpenActive\Models\SchemaOrg\MediaObject
+ */
+ protected $originalMediaLink;
+
/**
* Describes, in a [[MediaReview]] when dealing with [[DecontextualizedContent]], background information that can contribute to better interpretation of the [[MediaObject]].
*
@@ -42,12 +50,30 @@ 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.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage
+ * @return string|\OpenActive\Models\SchemaOrg\WebPage|\OpenActive\Models\SchemaOrg\MediaObject
*/
- protected $originalMediaLink;
+ public function getOriginalMediaLink()
+ {
+ return $this->originalMediaLink;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\WebPage|\OpenActive\Models\SchemaOrg\MediaObject $originalMediaLink
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setOriginalMediaLink($originalMediaLink)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\WebPage",
+ "\OpenActive\Models\SchemaOrg\MediaObject",
+ ];
+
+ $originalMediaLink = self::checkTypes($originalMediaLink, $types);
+
+ $this->originalMediaLink = $originalMediaLink;
+ }
/**
* @return string
@@ -98,30 +124,4 @@ public function setMediaAuthenticityCategory($mediaAuthenticityCategory)
$this->mediaAuthenticityCategory = $mediaAuthenticityCategory;
}
- /**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage
- */
- public function getOriginalMediaLink()
- {
- return $this->originalMediaLink;
- }
-
- /**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage $originalMediaLink
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setOriginalMediaLink($originalMediaLink)
- {
- $types = [
- "string",
- "\OpenActive\Models\SchemaOrg\MediaObject",
- "\OpenActive\Models\SchemaOrg\WebPage",
- ];
-
- $originalMediaLink = self::checkTypes($originalMediaLink, $types);
-
- $this->originalMediaLink = $originalMediaLink;
- }
-
}
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..2b3865ce 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\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|\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\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|\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\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|\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\MedicalTest",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\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..b03ada78 100644
--- a/src/Models/SchemaOrg/MedicalCode.php
+++ b/src/Models/SchemaOrg/MedicalCode.php
@@ -5,7 +5,7 @@
/**
*
*/
-class MedicalCode extends \OpenActive\Models\SchemaOrg\MedicalIntangible
+class MedicalCode extends \OpenActive\Models\SchemaOrg\CategoryCode
{
/**
* @return string[]|null
@@ -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..15e4ee06 100644
--- a/src/Models/SchemaOrg/MedicalCondition.php
+++ b/src/Models/SchemaOrg/MedicalCondition.php
@@ -17,66 +17,66 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "pathophysiology" => "pathophysiology",
"possibleComplication" => "possibleComplication",
- "naturalProgression" => "naturalProgression",
- "primaryPrevention" => "primaryPrevention",
- "status" => "status",
- "differentialDiagnosis" => "differentialDiagnosis",
+ "possibleTreatment" => "possibleTreatment",
+ "expectedPrognosis" => "expectedPrognosis",
+ "secondaryPrevention" => "secondaryPrevention",
"stage" => "stage",
- "pathophysiology" => "pathophysiology",
+ "typicalTest" => "typicalTest",
"drug" => "drug",
- "secondaryPrevention" => "secondaryPrevention",
+ "differentialDiagnosis" => "differentialDiagnosis",
+ "riskFactor" => "riskFactor",
"associatedAnatomy" => "associatedAnatomy",
"signOrSymptom" => "signOrSymptom",
- "typicalTest" => "typicalTest",
+ "status" => "status",
+ "primaryPrevention" => "primaryPrevention",
+ "naturalProgression" => "naturalProgression",
"epidemiology" => "epidemiology",
- "riskFactor" => "riskFactor",
- "expectedPrognosis" => "expectedPrognosis",
- "possibleTreatment" => "possibleTreatment",
];
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.
+ * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.
*
*
* @var string
*/
- protected $possibleComplication;
+ protected $pathophysiology;
/**
- * The expected progression of the condition if it is not treated and allowed to progress naturally.
+ * 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 string
*/
- protected $naturalProgression;
+ protected $possibleComplication;
/**
- * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.
+ * A possible treatment to address this condition, sign or symptom.
*
*
* @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $primaryPrevention;
+ protected $possibleTreatment;
/**
- * The status of the study (enumerated).
+ * The likely outcome in either the short term or long term of the medical condition.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var string
*/
- protected $status;
+ protected $expectedPrognosis;
/**
- * 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.
@@ -87,12 +87,12 @@ public static function fieldList() {
protected $stage;
/**
- * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.
+ * A medical test typically performed given this condition.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- protected $pathophysiology;
+ protected $typicalTest;
/**
* Specifying a drug or medicine used in a medication procedure.
@@ -103,12 +103,20 @@ public static function fieldList() {
protected $drug;
/**
- * A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition.
+ * 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 \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\DDxElement|string
*/
- protected $secondaryPrevention;
+ protected $differentialDiagnosis;
+
+ /**
+ * 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\MedicalRiskFactor|string
+ */
+ protected $riskFactor;
/**
* The anatomy of the underlying organ system or structures associated with this entity.
@@ -127,168 +135,157 @@ public static function fieldList() {
protected $signOrSymptom;
/**
- * A medical test typically performed given this condition.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
- */
- protected $typicalTest;
-
- /**
- * The characteristics of associated patients, such as age, gender, race etc.
+ * The status of the study (enumerated).
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|\OpenActive\Enums\SchemaOrg\EventStatusType|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.
+ * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $riskFactor;
+ protected $primaryPrevention;
/**
- * The likely outcome in either the short term or long term of the medical condition.
+ * The expected progression of the condition if it is not treated and allowed to progress naturally.
*
*
* @var string
*/
- protected $expectedPrognosis;
+ protected $naturalProgression;
/**
- * A possible treatment to address this condition, sign or symptom.
+ * The characteristics of associated patients, such as age, gender, race etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var string
*/
- protected $possibleTreatment;
+ protected $epidemiology;
/**
* @return string
*/
- public function getPossibleComplication()
+ public function getPathophysiology()
{
- return $this->possibleComplication;
+ return $this->pathophysiology;
}
/**
- * @param string $possibleComplication
+ * @param string $pathophysiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPossibleComplication($possibleComplication)
+ public function setPathophysiology($pathophysiology)
{
$types = [
"string",
];
- $possibleComplication = self::checkTypes($possibleComplication, $types);
+ $pathophysiology = self::checkTypes($pathophysiology, $types);
- $this->possibleComplication = $possibleComplication;
+ $this->pathophysiology = $pathophysiology;
}
/**
* @return string
*/
- public function getNaturalProgression()
+ public function getPossibleComplication()
{
- return $this->naturalProgression;
+ return $this->possibleComplication;
}
/**
- * @param string $naturalProgression
+ * @param string $possibleComplication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNaturalProgression($naturalProgression)
+ public function setPossibleComplication($possibleComplication)
{
$types = [
"string",
];
- $naturalProgression = self::checkTypes($naturalProgression, $types);
+ $possibleComplication = self::checkTypes($possibleComplication, $types);
- $this->naturalProgression = $naturalProgression;
+ $this->possibleComplication = $possibleComplication;
}
/**
* @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getPrimaryPrevention()
+ public function getPossibleTreatment()
{
- return $this->primaryPrevention;
+ return $this->possibleTreatment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $primaryPrevention
+ * @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 setPrimaryPrevention($primaryPrevention)
+ public function setPossibleTreatment($possibleTreatment)
{
$types = [
"\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $primaryPrevention = self::checkTypes($primaryPrevention, $types);
+ $possibleTreatment = self::checkTypes($possibleTreatment, $types);
- $this->primaryPrevention = $primaryPrevention;
+ $this->possibleTreatment = $possibleTreatment;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return string
*/
- public function getStatus()
+ public function getExpectedPrognosis()
{
- return $this->status;
+ return $this->expectedPrognosis;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param string $expectedPrognosis
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStatus($status)
+ public function setExpectedPrognosis($expectedPrognosis)
{
$types = [
"string",
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
- "null",
];
- $status = self::checkTypes($status, $types);
+ $expectedPrognosis = self::checkTypes($expectedPrognosis, $types);
- $this->status = $status;
+ $this->expectedPrognosis = $expectedPrognosis;
}
/**
- * @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;
}
/**
@@ -317,27 +314,28 @@ public function setStage($stage)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- public function getPathophysiology()
+ public function getTypicalTest()
{
- return $this->pathophysiology;
+ return $this->typicalTest;
}
/**
- * @param string $pathophysiology
+ * @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 setPathophysiology($pathophysiology)
+ public function setTypicalTest($typicalTest)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"string",
];
- $pathophysiology = self::checkTypes($pathophysiology, $types);
+ $typicalTest = self::checkTypes($typicalTest, $types);
- $this->pathophysiology = $pathophysiology;
+ $this->typicalTest = $typicalTest;
}
/**
@@ -366,28 +364,53 @@ public function setDrug($drug)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\DDxElement|string
*/
- public function getSecondaryPrevention()
+ public function getDifferentialDiagnosis()
{
- return $this->secondaryPrevention;
+ return $this->differentialDiagnosis;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $secondaryPrevention
+ * @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 setSecondaryPrevention($secondaryPrevention)
+ public function setDifferentialDiagnosis($differentialDiagnosis)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\DDxElement",
"string",
];
- $secondaryPrevention = self::checkTypes($secondaryPrevention, $types);
+ $differentialDiagnosis = self::checkTypes($differentialDiagnosis, $types);
- $this->secondaryPrevention = $secondaryPrevention;
+ $this->differentialDiagnosis = $differentialDiagnosis;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
+ */
+ public function getRiskFactor()
+ {
+ return $this->riskFactor;
+ }
+
+ /**
+ * @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 setRiskFactor($riskFactor)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MedicalRiskFactor",
+ "string",
+ ];
+
+ $riskFactor = self::checkTypes($riskFactor, $types);
+
+ $this->riskFactor = $riskFactor;
}
/**
@@ -443,126 +466,103 @@ public function setSignOrSymptom($signOrSymptom)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|\OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
- public function getTypicalTest()
- {
- return $this->typicalTest;
- }
-
- /**
- * @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 setTypicalTest($typicalTest)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
- "string",
- ];
-
- $typicalTest = self::checkTypes($typicalTest, $types);
-
- $this->typicalTest = $typicalTest;
- }
-
- /**
- * @return string
- */
- public function getEpidemiology()
+ public function getStatus()
{
- return $this->epidemiology;
+ return $this->status;
}
/**
- * @param string $epidemiology
+ * @param \OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|\OpenActive\Enums\SchemaOrg\EventStatusType|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\Models\SchemaOrg\MedicalStudyStatus",
"string",
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "null",
];
- $epidemiology = self::checkTypes($epidemiology, $types);
+ $status = self::checkTypes($status, $types);
- $this->epidemiology = $epidemiology;
+ $this->status = $status;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getRiskFactor()
+ public function getPrimaryPrevention()
{
- return $this->riskFactor;
+ return $this->primaryPrevention;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string $riskFactor
+ * @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 setRiskFactor($riskFactor)
+ public function setPrimaryPrevention($primaryPrevention)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalRiskFactor",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $riskFactor = self::checkTypes($riskFactor, $types);
+ $primaryPrevention = self::checkTypes($primaryPrevention, $types);
- $this->riskFactor = $riskFactor;
+ $this->primaryPrevention = $primaryPrevention;
}
/**
* @return string
*/
- public function getExpectedPrognosis()
+ public function getNaturalProgression()
{
- return $this->expectedPrognosis;
+ return $this->naturalProgression;
}
/**
- * @param string $expectedPrognosis
+ * @param string $naturalProgression
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpectedPrognosis($expectedPrognosis)
+ public function setNaturalProgression($naturalProgression)
{
$types = [
"string",
];
- $expectedPrognosis = self::checkTypes($expectedPrognosis, $types);
+ $naturalProgression = self::checkTypes($naturalProgression, $types);
- $this->expectedPrognosis = $expectedPrognosis;
+ $this->naturalProgression = $naturalProgression;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return string
*/
- public function getPossibleTreatment()
+ public function getEpidemiology()
{
- return $this->possibleTreatment;
+ return $this->epidemiology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment
+ * @param string $epidemiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPossibleTreatment($possibleTreatment)
+ public function setEpidemiology($epidemiology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $possibleTreatment = self::checkTypes($possibleTreatment, $types);
+ $epidemiology = self::checkTypes($epidemiology, $types);
- $this->possibleTreatment = $possibleTreatment;
+ $this->epidemiology = $epidemiology;
}
}
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..c806656b 100644
--- a/src/Models/SchemaOrg/MedicalDevice.php
+++ b/src/Models/SchemaOrg/MedicalDevice.php
@@ -17,24 +17,24 @@ public static function getType()
public static function fieldList() {
$fields = [
- "adverseOutcome" => "adverseOutcome",
+ "procedure" => "procedure",
"preOp" => "preOp",
+ "adverseOutcome" => "adverseOutcome",
+ "contraindication" => "contraindication",
"seriousAdverseOutcome" => "seriousAdverseOutcome",
"postOp" => "postOp",
- "procedure" => "procedure",
- "contraindication" => "contraindication",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * 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 procedure involved in setting up, using, and/or installing the device.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var string
*/
- protected $adverseOutcome;
+ protected $procedure;
/**
* A description of the workup, testing, and other preparations required before implanting this device.
@@ -45,60 +45,59 @@ public static function fieldList() {
protected $preOp;
/**
- * 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 contraindication for this therapy.
*
*
- * @var string
+ * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
*/
- protected $postOp;
+ protected $contraindication;
/**
- * 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.
+ * A description of the postoperative procedures, care, and/or followups for this device.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @var string
*/
- protected $contraindication;
+ protected $postOp;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return string
*/
- public function getAdverseOutcome()
+ public function getProcedure()
{
- return $this->adverseOutcome;
+ return $this->procedure;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome
+ * @param string $procedure
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAdverseOutcome($adverseOutcome)
+ public function setProcedure($procedure)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $adverseOutcome = self::checkTypes($adverseOutcome, $types);
+ $procedure = self::checkTypes($procedure, $types);
- $this->adverseOutcome = $adverseOutcome;
+ $this->procedure = $procedure;
}
/**
@@ -128,99 +127,100 @@ public function setPreOp($preOp)
/**
* @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
+ * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
*/
- public function getPostOp()
+ public function getContraindication()
{
- return $this->postOp;
+ return $this->contraindication;
}
/**
- * @param string $postOp
+ * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostOp($postOp)
+ public function setContraindication($contraindication)
{
$types = [
"string",
+ "\OpenActive\Models\SchemaOrg\MedicalContraindication",
];
- $postOp = self::checkTypes($postOp, $types);
+ $contraindication = self::checkTypes($contraindication, $types);
- $this->postOp = $postOp;
+ $this->contraindication = $contraindication;
}
/**
- * @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 string
*/
- public function getContraindication()
+ public function getPostOp()
{
- return $this->contraindication;
+ return $this->postOp;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
+ * @param string $postOp
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContraindication($contraindication)
+ public function setPostOp($postOp)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\MedicalContraindication",
];
- $contraindication = self::checkTypes($contraindication, $types);
+ $postOp = self::checkTypes($postOp, $types);
- $this->contraindication = $contraindication;
+ $this->postOp = $postOp;
}
}
diff --git a/src/Models/SchemaOrg/MedicalEntity.php b/src/Models/SchemaOrg/MedicalEntity.php
index 3d730b94..3691d658 100644
--- a/src/Models/SchemaOrg/MedicalEntity.php
+++ b/src/Models/SchemaOrg/MedicalEntity.php
@@ -18,12 +18,12 @@ public static function getType()
public static function fieldList() {
$fields = [
"legalStatus" => "legalStatus",
+ "recognizingAuthority" => "recognizingAuthority",
"funding" => "funding",
- "study" => "study",
"code" => "code",
- "guideline" => "guideline",
- "recognizingAuthority" => "recognizingAuthority",
"medicineSystem" => "medicineSystem",
+ "study" => "study",
+ "guideline" => "guideline",
"relevantSpecialty" => "relevantSpecialty",
];
@@ -34,25 +34,25 @@ public static function fieldList() {
* 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
+ * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
protected $legalStatus;
/**
- * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
+ * If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.
*
*
- * @var \OpenActive\Models\SchemaOrg\Grant|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $funding;
+ protected $recognizingAuthority;
/**
- * A medical study or trial related to this entity.
+ * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalStudy|string
+ * @var \OpenActive\Models\SchemaOrg\Grant|string
*/
- protected $study;
+ protected $funding;
/**
* A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.
@@ -63,28 +63,28 @@ public static function fieldList() {
protected $code;
/**
- * A medical guideline related to this entity.
+ * The system of medicine that includes this MedicalEntity, for example 'evidence-based', 'homeopathic', 'chiropractic', etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalGuideline|string
+ * @var \OpenActive\Models\SchemaOrg\MedicineSystem|string
*/
- protected $guideline;
+ protected $medicineSystem;
/**
- * 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.
+ * A medical guideline related to this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicineSystem|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalGuideline|string
*/
- protected $medicineSystem;
+ protected $guideline;
/**
* If applicable, a medical specialty in which this entity is relevant.
@@ -95,7 +95,7 @@ public static function fieldList() {
protected $relevantSpecialty;
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
public function getLegalStatus()
{
@@ -103,7 +103,7 @@ public function getLegalStatus()
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
+ * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null $legalStatus
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -111,8 +111,8 @@ public function setLegalStatus($legalStatus)
{
$types = [
"\OpenActive\Models\SchemaOrg\DrugLegalStatus",
- "string",
"\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
+ "string",
"null",
];
@@ -122,53 +122,53 @@ public function setLegalStatus($legalStatus)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Grant|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getFunding()
+ public function getRecognizingAuthority()
{
- return $this->funding;
+ return $this->recognizingAuthority;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Grant|string $funding
+ * @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 setFunding($funding)
+ public function setRecognizingAuthority($recognizingAuthority)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Grant",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $funding = self::checkTypes($funding, $types);
+ $recognizingAuthority = self::checkTypes($recognizingAuthority, $types);
- $this->funding = $funding;
+ $this->recognizingAuthority = $recognizingAuthority;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string
+ * @return \OpenActive\Models\SchemaOrg\Grant|string
*/
- public function getStudy()
+ public function getFunding()
{
- return $this->study;
+ return $this->funding;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalStudy|string $study
+ * @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 setStudy($study)
+ public function setFunding($funding)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalStudy",
+ "\OpenActive\Models\SchemaOrg\Grant",
"string",
];
- $study = self::checkTypes($study, $types);
+ $funding = self::checkTypes($funding, $types);
- $this->study = $study;
+ $this->funding = $funding;
}
/**
@@ -197,78 +197,78 @@ public function setCode($code)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalGuideline|string
+ * @return \OpenActive\Models\SchemaOrg\MedicineSystem|string
*/
- public function getGuideline()
+ public function getMedicineSystem()
{
- return $this->guideline;
+ return $this->medicineSystem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalGuideline|string $guideline
+ * @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 setGuideline($guideline)
+ public function setMedicineSystem($medicineSystem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalGuideline",
+ "\OpenActive\Models\SchemaOrg\MedicineSystem",
"string",
];
- $guideline = self::checkTypes($guideline, $types);
+ $medicineSystem = self::checkTypes($medicineSystem, $types);
- $this->guideline = $guideline;
+ $this->medicineSystem = $medicineSystem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string
*/
- public function getRecognizingAuthority()
+ public function getStudy()
{
- return $this->recognizingAuthority;
+ return $this->study;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizingAuthority
+ * @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 setRecognizingAuthority($recognizingAuthority)
+ public function setStudy($study)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\MedicalStudy",
"string",
];
- $recognizingAuthority = self::checkTypes($recognizingAuthority, $types);
+ $study = self::checkTypes($study, $types);
- $this->recognizingAuthority = $recognizingAuthority;
+ $this->study = $study;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicineSystem|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalGuideline|string
*/
- public function getMedicineSystem()
+ public function getGuideline()
{
- return $this->medicineSystem;
+ return $this->guideline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicineSystem|string $medicineSystem
+ * @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 setMedicineSystem($medicineSystem)
+ public function setGuideline($guideline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicineSystem",
+ "\OpenActive\Models\SchemaOrg\MedicalGuideline",
"string",
];
- $medicineSystem = self::checkTypes($medicineSystem, $types);
+ $guideline = self::checkTypes($guideline, $types);
- $this->medicineSystem = $medicineSystem;
+ $this->guideline = $guideline;
}
/**
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..09f06061 100644
--- a/src/Models/SchemaOrg/MedicalOrganization.php
+++ b/src/Models/SchemaOrg/MedicalOrganization.php
@@ -17,24 +17,16 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isAcceptingNewPatients" => "isAcceptingNewPatients",
"healthPlanNetworkId" => "healthPlanNetworkId",
"medicalSpecialty" => "medicalSpecialty",
+ "isAcceptingNewPatients" => "isAcceptingNewPatients",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Whether the provider is accepting new patients.
- *
- *
- * @var bool|null
- */
- 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
@@ -50,29 +42,12 @@ public static function fieldList() {
protected $medicalSpecialty;
/**
- * @return bool|null
- */
- public function getIsAcceptingNewPatients()
- {
- return $this->isAcceptingNewPatients;
- }
-
- /**
- * @param bool|null $isAcceptingNewPatients
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * Whether the provider is accepting new patients.
+ *
+ *
+ * @var bool|null
*/
- public function setIsAcceptingNewPatients($isAcceptingNewPatients)
- {
- $types = [
- "bool",
- "null",
- ];
-
- $isAcceptingNewPatients = self::checkTypes($isAcceptingNewPatients, $types);
-
- $this->isAcceptingNewPatients = $isAcceptingNewPatients;
- }
+ protected $isAcceptingNewPatients;
/**
* @return string
@@ -123,4 +98,29 @@ public function setMedicalSpecialty($medicalSpecialty)
$this->medicalSpecialty = $medicalSpecialty;
}
+ /**
+ * @return bool|null
+ */
+ public function getIsAcceptingNewPatients()
+ {
+ return $this->isAcceptingNewPatients;
+ }
+
+ /**
+ * @param bool|null $isAcceptingNewPatients
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setIsAcceptingNewPatients($isAcceptingNewPatients)
+ {
+ $types = [
+ "bool",
+ "null",
+ ];
+
+ $isAcceptingNewPatients = self::checkTypes($isAcceptingNewPatients, $types);
+
+ $this->isAcceptingNewPatients = $isAcceptingNewPatients;
+ }
+
}
diff --git a/src/Models/SchemaOrg/MedicalProcedure.php b/src/Models/SchemaOrg/MedicalProcedure.php
index e92c5117..a3c91dba 100644
--- a/src/Models/SchemaOrg/MedicalProcedure.php
+++ b/src/Models/SchemaOrg/MedicalProcedure.php
@@ -17,141 +17,141 @@ public static function getType()
public static function fieldList() {
$fields = [
- "procedureType" => "procedureType",
"preparation" => "preparation",
- "bodyLocation" => "bodyLocation",
- "status" => "status",
+ "procedureType" => "procedureType",
"howPerformed" => "howPerformed",
+ "status" => "status",
"followup" => "followup",
+ "bodyLocation" => "bodyLocation",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type of procedure, for example Surgical, Noninvasive, or Percutaneous.
+ * Typical preparation that a patient must undergo before having the procedure performed.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
+ * @var string|\OpenActive\Models\SchemaOrg\MedicalEntity
*/
- protected $procedureType;
+ protected $preparation;
/**
- * Typical preparation that a patient must undergo before having the procedure performed.
+ * The type of procedure, for example Surgical, Noninvasive, or Percutaneous.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
*/
- protected $preparation;
+ protected $procedureType;
/**
- * 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).
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|\OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
protected $status;
/**
- * How the procedure is performed.
+ * Typical or recommended followup care after the procedure is performed.
*
*
* @var string
*/
- protected $howPerformed;
+ protected $followup;
/**
- * Typical or recommended followup care after the procedure is performed.
+ * Location in the body of the anatomical structure.
*
*
* @var string
*/
- protected $followup;
+ protected $bodyLocation;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
+ * @return string|\OpenActive\Models\SchemaOrg\MedicalEntity
*/
- public function getProcedureType()
+ public function getPreparation()
{
- return $this->procedureType;
+ return $this->preparation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalProcedureType|string $procedureType
+ * @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 setProcedureType($procedureType)
+ public function setPreparation($preparation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalProcedureType",
"string",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
];
- $procedureType = self::checkTypes($procedureType, $types);
+ $preparation = self::checkTypes($preparation, $types);
- $this->procedureType = $procedureType;
+ $this->preparation = $preparation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
*/
- public function getPreparation()
+ public function getProcedureType()
{
- return $this->preparation;
+ return $this->procedureType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $preparation
+ * @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 setPreparation($preparation)
+ public function setProcedureType($procedureType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
+ "\OpenActive\Models\SchemaOrg\MedicalProcedureType",
"string",
];
- $preparation = self::checkTypes($preparation, $types);
+ $procedureType = self::checkTypes($procedureType, $types);
- $this->preparation = $preparation;
+ $this->procedureType = $procedureType;
}
/**
* @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 \OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|\OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
public function getStatus()
{
@@ -159,16 +159,16 @@ public function getStatus()
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param \OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|\OpenActive\Enums\SchemaOrg\EventStatusType|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setStatus($status)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
"string",
"\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
"null",
];
@@ -180,49 +180,49 @@ public function setStatus($status)
/**
* @return string
*/
- public function getHowPerformed()
+ public function getFollowup()
{
- return $this->howPerformed;
+ return $this->followup;
}
/**
- * @param string $howPerformed
+ * @param string $followup
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHowPerformed($howPerformed)
+ public function setFollowup($followup)
{
$types = [
"string",
];
- $howPerformed = self::checkTypes($howPerformed, $types);
+ $followup = self::checkTypes($followup, $types);
- $this->howPerformed = $howPerformed;
+ $this->followup = $followup;
}
/**
* @return string
*/
- public function getFollowup()
+ public function getBodyLocation()
{
- return $this->followup;
+ return $this->bodyLocation;
}
/**
- * @param string $followup
+ * @param string $bodyLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFollowup($followup)
+ public function setBodyLocation($bodyLocation)
{
$types = [
"string",
];
- $followup = self::checkTypes($followup, $types);
+ $bodyLocation = self::checkTypes($bodyLocation, $types);
- $this->followup = $followup;
+ $this->bodyLocation = $bodyLocation;
}
}
diff --git a/src/Models/SchemaOrg/MedicalStudy.php b/src/Models/SchemaOrg/MedicalStudy.php
index 080b8780..b852f65e 100644
--- a/src/Models/SchemaOrg/MedicalStudy.php
+++ b/src/Models/SchemaOrg/MedicalStudy.php
@@ -17,9 +17,9 @@ public static function getType()
public static function fieldList() {
$fields = [
- "healthCondition" => "healthCondition",
- "status" => "status",
"studySubject" => "studySubject",
+ "status" => "status",
+ "healthCondition" => "healthCondition",
"studyLocation" => "studyLocation",
"sponsor" => "sponsor",
];
@@ -28,28 +28,28 @@ public static function fieldList() {
}
/**
- * Specifying the health condition(s) of a patient, medical study, or other target audience.
+ * A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $healthCondition;
+ protected $studySubject;
/**
* The status of the study (enumerated).
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|\OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
protected $status;
/**
- * A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.
+ * Specifying the health condition(s) of a patient, medical study, or other target audience.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- protected $studySubject;
+ protected $healthCondition;
/**
* The location in which the study is taking/took place.
@@ -60,40 +60,40 @@ 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.
+ * 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
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $sponsor;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getHealthCondition()
+ public function getStudySubject()
{
- return $this->healthCondition;
+ return $this->studySubject;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition
+ * @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 setHealthCondition($healthCondition)
+ public function setStudySubject($studySubject)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $healthCondition = self::checkTypes($healthCondition, $types);
+ $studySubject = self::checkTypes($studySubject, $types);
- $this->healthCondition = $healthCondition;
+ $this->studySubject = $studySubject;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|\OpenActive\Enums\SchemaOrg\EventStatusType|null
*/
public function getStatus()
{
@@ -101,16 +101,16 @@ public function getStatus()
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param \OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|\OpenActive\Enums\SchemaOrg\EventStatusType|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setStatus($status)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
"string",
"\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
"null",
];
@@ -120,28 +120,28 @@ public function setStatus($status)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getStudySubject()
+ public function getHealthCondition()
{
- return $this->studySubject;
+ return $this->healthCondition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $studySubject
+ * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStudySubject($studySubject)
+ public function setHealthCondition($healthCondition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
"string",
];
- $studySubject = self::checkTypes($studySubject, $types);
+ $healthCondition = self::checkTypes($healthCondition, $types);
- $this->studySubject = $studySubject;
+ $this->healthCondition = $healthCondition;
}
/**
@@ -170,7 +170,7 @@ public function setStudyLocation($studyLocation)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getSponsor()
{
@@ -178,15 +178,15 @@ public function getSponsor()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $sponsor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSponsor($sponsor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
diff --git a/src/Models/SchemaOrg/MedicalTest.php b/src/Models/SchemaOrg/MedicalTest.php
index 76a74b88..717c64cd 100644
--- a/src/Models/SchemaOrg/MedicalTest.php
+++ b/src/Models/SchemaOrg/MedicalTest.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"usedToDiagnose" => "usedToDiagnose",
- "affectedBy" => "affectedBy",
- "normalRange" => "normalRange",
"signDetected" => "signDetected",
+ "affectedBy" => "affectedBy",
"usesDevice" => "usesDevice",
+ "normalRange" => "normalRange",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,36 +36,36 @@ public static function fieldList() {
protected $usedToDiagnose;
/**
- * Drugs that affect the test's results.
+ * A sign detected by the test.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSign|string
*/
- protected $affectedBy;
+ protected $signDetected;
/**
- * Range of acceptable values for a typical patient, when applicable.
+ * Drugs that affect the test's results.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Drug|string
*/
- protected $normalRange;
+ protected $affectedBy;
/**
- * A sign detected by the test.
+ * Device used to perform the test.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSign|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalDevice|string
*/
- protected $signDetected;
+ protected $usesDevice;
/**
- * Device used to perform the test.
+ * Range of acceptable values for a typical patient, when applicable.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalDevice|string
+ * @var \OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- protected $usesDevice;
+ protected $normalRange;
/**
* @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
@@ -93,104 +93,104 @@ public function setUsedToDiagnose($usedToDiagnose)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSign|string
*/
- public function getAffectedBy()
+ public function getSignDetected()
{
- return $this->affectedBy;
+ return $this->signDetected;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $affectedBy
+ * @param \OpenActive\Models\SchemaOrg\MedicalSign|string $signDetected
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAffectedBy($affectedBy)
+ public function setSignDetected($signDetected)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\MedicalSign",
"string",
];
- $affectedBy = self::checkTypes($affectedBy, $types);
+ $signDetected = self::checkTypes($signDetected, $types);
- $this->affectedBy = $affectedBy;
+ $this->signDetected = $signDetected;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getNormalRange()
+ public function getAffectedBy()
{
- return $this->normalRange;
+ return $this->affectedBy;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $normalRange
+ * @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 setNormalRange($normalRange)
+ public function setAffectedBy($affectedBy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $normalRange = self::checkTypes($normalRange, $types);
+ $affectedBy = self::checkTypes($affectedBy, $types);
- $this->normalRange = $normalRange;
+ $this->affectedBy = $affectedBy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSign|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalDevice|string
*/
- public function getSignDetected()
+ public function getUsesDevice()
{
- return $this->signDetected;
+ return $this->usesDevice;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSign|string $signDetected
+ * @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 setSignDetected($signDetected)
+ public function setUsesDevice($usesDevice)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSign",
+ "\OpenActive\Models\SchemaOrg\MedicalDevice",
"string",
];
- $signDetected = self::checkTypes($signDetected, $types);
+ $usesDevice = self::checkTypes($usesDevice, $types);
- $this->signDetected = $signDetected;
+ $this->usesDevice = $usesDevice;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalDevice|string
+ * @return \OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- public function getUsesDevice()
+ public function getNormalRange()
{
- return $this->usesDevice;
+ return $this->normalRange;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalDevice|string $usesDevice
+ * @param \OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null $normalRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUsesDevice($usesDevice)
+ public function setNormalRange($normalRange)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalDevice",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
"string",
+ "null",
];
- $usesDevice = self::checkTypes($usesDevice, $types);
+ $normalRange = self::checkTypes($normalRange, $types);
- $this->usesDevice = $usesDevice;
+ $this->normalRange = $normalRange;
}
}
diff --git a/src/Models/SchemaOrg/MedicalTherapy.php b/src/Models/SchemaOrg/MedicalTherapy.php
index 74a5c5cb..eee22248 100644
--- a/src/Models/SchemaOrg/MedicalTherapy.php
+++ b/src/Models/SchemaOrg/MedicalTherapy.php
@@ -17,21 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "duplicateTherapy" => "duplicateTherapy",
- "seriousAdverseOutcome" => "seriousAdverseOutcome",
"contraindication" => "contraindication",
+ "seriousAdverseOutcome" => "seriousAdverseOutcome",
+ "duplicateTherapy" => "duplicateTherapy",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A therapy that duplicates or overlaps this one.
+ * A contraindication for this therapy.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
*/
- protected $duplicateTherapy;
+ protected $contraindication;
/**
* 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.
@@ -42,36 +42,36 @@ public static function fieldList() {
protected $seriousAdverseOutcome;
/**
- * A contraindication for this therapy.
+ * A therapy that duplicates or overlaps this one.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $contraindication;
+ protected $duplicateTherapy;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
*/
- public function getDuplicateTherapy()
+ public function getContraindication()
{
- return $this->duplicateTherapy;
+ return $this->contraindication;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $duplicateTherapy
+ * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuplicateTherapy($duplicateTherapy)
+ public function setContraindication($contraindication)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
+ "\OpenActive\Models\SchemaOrg\MedicalContraindication",
];
- $duplicateTherapy = self::checkTypes($duplicateTherapy, $types);
+ $contraindication = self::checkTypes($contraindication, $types);
- $this->duplicateTherapy = $duplicateTherapy;
+ $this->contraindication = $contraindication;
}
/**
@@ -100,28 +100,28 @@ public function setSeriousAdverseOutcome($seriousAdverseOutcome)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getContraindication()
+ public function getDuplicateTherapy()
{
- return $this->contraindication;
+ return $this->duplicateTherapy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
+ * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $duplicateTherapy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContraindication($contraindication)
+ public function setDuplicateTherapy($duplicateTherapy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
- "\OpenActive\Models\SchemaOrg\MedicalContraindication",
];
- $contraindication = self::checkTypes($contraindication, $types);
+ $duplicateTherapy = self::checkTypes($duplicateTherapy, $types);
- $this->contraindication = $contraindication;
+ $this->duplicateTherapy = $duplicateTherapy;
}
}
diff --git a/src/Models/SchemaOrg/MemberProgram.php b/src/Models/SchemaOrg/MemberProgram.php
new file mode 100644
index 00000000..36a635a9
--- /dev/null
+++ b/src/Models/SchemaOrg/MemberProgram.php
@@ -0,0 +1,93 @@
+ "hasTiers",
+ "hostingOrganization" => "hostingOrganization",
+ ];
+
+ return array_merge(parent::fieldList(), $fields);
+ }
+
+ /**
+ * The tiers of a member program.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|string
+ */
+ protected $hasTiers;
+
+ /**
+ * The Organization (airline, travelers' club, retailer, etc.) the membership is made with or which offers the MemberProgram.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
+ */
+ protected $hostingOrganization;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|string
+ */
+ public function getHasTiers()
+ {
+ return $this->hasTiers;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\MemberProgramTier|string $hasTiers
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setHasTiers($hasTiers)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MemberProgramTier",
+ "string",
+ ];
+
+ $hasTiers = self::checkTypes($hasTiers, $types);
+
+ $this->hasTiers = $hasTiers;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
+ */
+ public function getHostingOrganization()
+ {
+ return $this->hostingOrganization;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $hostingOrganization
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setHostingOrganization($hostingOrganization)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
+ ];
+
+ $hostingOrganization = self::checkTypes($hostingOrganization, $types);
+
+ $this->hostingOrganization = $hostingOrganization;
+ }
+
+}
diff --git a/src/Models/SchemaOrg/MemberProgramTier.php b/src/Models/SchemaOrg/MemberProgramTier.php
new file mode 100644
index 00000000..a0f0bbb3
--- /dev/null
+++ b/src/Models/SchemaOrg/MemberProgramTier.php
@@ -0,0 +1,165 @@
+ "hasTierRequirement",
+ "membershipPointsEarned" => "membershipPointsEarned",
+ "hasTierBenefit" => "hasTierBenefit",
+ "isTierOf" => "isTierOf",
+ ];
+
+ return array_merge(parent::fieldList(), $fields);
+ }
+
+ /**
+ * A requirement for a user to join a membership tier, for example: a CreditCard if the tier requires sign up for a credit card, A UnitPriceSpecification if the user is required to pay a (periodic) fee, or a MonetaryAmount if the user needs to spend a minimum amount to join the tier. If a tier is free to join then this property does not need to be specified.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\CreditCard|\OpenActive\Models\SchemaOrg\UnitPriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ */
+ protected $hasTierRequirement;
+
+ /**
+ * The number of membership points earned by the member. If necessary, the unitText can be used to express the units the points are issued in. (E.g. stars, miles, etc.)
+ *
+ *
+ * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ */
+ protected $membershipPointsEarned;
+
+ /**
+ * A member benefit for a particular tier of a loyalty program.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\TierBenefitEnumeration|null
+ */
+ protected $hasTierBenefit;
+
+ /**
+ * The member program this tier is a part of.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MemberProgram|string
+ */
+ protected $isTierOf;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\CreditCard|\OpenActive\Models\SchemaOrg\UnitPriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ */
+ public function getHasTierRequirement()
+ {
+ return $this->hasTierRequirement;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\CreditCard|\OpenActive\Models\SchemaOrg\UnitPriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string $hasTierRequirement
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setHasTierRequirement($hasTierRequirement)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CreditCard",
+ "\OpenActive\Models\SchemaOrg\UnitPriceSpecification",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
+ ];
+
+ $hasTierRequirement = self::checkTypes($hasTierRequirement, $types);
+
+ $this->hasTierRequirement = $hasTierRequirement;
+ }
+
+ /**
+ * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
+ */
+ public function getMembershipPointsEarned()
+ {
+ return $this->membershipPointsEarned;
+ }
+
+ /**
+ * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $membershipPointsEarned
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMembershipPointsEarned($membershipPointsEarned)
+ {
+ $types = [
+ "Number",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ "null",
+ ];
+
+ $membershipPointsEarned = self::checkTypes($membershipPointsEarned, $types);
+
+ $this->membershipPointsEarned = $membershipPointsEarned;
+ }
+
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\TierBenefitEnumeration|null
+ */
+ public function getHasTierBenefit()
+ {
+ return $this->hasTierBenefit;
+ }
+
+ /**
+ * @param \OpenActive\Enums\SchemaOrg\TierBenefitEnumeration|null $hasTierBenefit
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setHasTierBenefit($hasTierBenefit)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\TierBenefitEnumeration",
+ "null",
+ ];
+
+ $hasTierBenefit = self::checkTypes($hasTierBenefit, $types);
+
+ $this->hasTierBenefit = $hasTierBenefit;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MemberProgram|string
+ */
+ public function getIsTierOf()
+ {
+ return $this->isTierOf;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\MemberProgram|string $isTierOf
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setIsTierOf($isTierOf)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MemberProgram",
+ "string",
+ ];
+
+ $isTierOf = self::checkTypes($isTierOf, $types);
+
+ $this->isTierOf = $isTierOf;
+ }
+
+}
diff --git a/src/Models/SchemaOrg/Menu.php b/src/Models/SchemaOrg/Menu.php
index 6253ba92..f7938999 100644
--- a/src/Models/SchemaOrg/Menu.php
+++ b/src/Models/SchemaOrg/Menu.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "hasMenuSection" => "hasMenuSection",
"hasMenuItem" => "hasMenuItem",
+ "hasMenuSection" => "hasMenuSection",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A subgrouping of the menu (by dishes, course, serving time period, etc.).
+ * A food or drink item contained in a menu or menu section.
*
*
- * @var \OpenActive\Models\SchemaOrg\MenuSection|string
+ * @var \OpenActive\Models\SchemaOrg\MenuItem|string
*/
- protected $hasMenuSection;
+ protected $hasMenuItem;
/**
- * A food or drink item contained in a menu or menu section.
+ * A subgrouping of the menu (by dishes, course, serving time period, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\MenuItem|string
+ * @var \OpenActive\Models\SchemaOrg\MenuSection|string
*/
- protected $hasMenuItem;
+ protected $hasMenuSection;
/**
- * @return \OpenActive\Models\SchemaOrg\MenuSection|string
+ * @return \OpenActive\Models\SchemaOrg\MenuItem|string
*/
- public function getHasMenuSection()
+ public function getHasMenuItem()
{
- return $this->hasMenuSection;
+ return $this->hasMenuItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MenuSection|string $hasMenuSection
+ * @param \OpenActive\Models\SchemaOrg\MenuItem|string $hasMenuItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenuSection($hasMenuSection)
+ public function setHasMenuItem($hasMenuItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MenuSection",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
"string",
];
- $hasMenuSection = self::checkTypes($hasMenuSection, $types);
+ $hasMenuItem = self::checkTypes($hasMenuItem, $types);
- $this->hasMenuSection = $hasMenuSection;
+ $this->hasMenuItem = $hasMenuItem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MenuItem|string
+ * @return \OpenActive\Models\SchemaOrg\MenuSection|string
*/
- public function getHasMenuItem()
+ public function getHasMenuSection()
{
- return $this->hasMenuItem;
+ return $this->hasMenuSection;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MenuItem|string $hasMenuItem
+ * @param \OpenActive\Models\SchemaOrg\MenuSection|string $hasMenuSection
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenuItem($hasMenuItem)
+ public function setHasMenuSection($hasMenuSection)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MenuItem",
+ "\OpenActive\Models\SchemaOrg\MenuSection",
"string",
];
- $hasMenuItem = self::checkTypes($hasMenuItem, $types);
+ $hasMenuSection = self::checkTypes($hasMenuSection, $types);
- $this->hasMenuItem = $hasMenuItem;
+ $this->hasMenuSection = $hasMenuSection;
}
}
diff --git a/src/Models/SchemaOrg/MenuItem.php b/src/Models/SchemaOrg/MenuItem.php
index 1dc921ac..74204590 100644
--- a/src/Models/SchemaOrg/MenuItem.php
+++ b/src/Models/SchemaOrg/MenuItem.php
@@ -17,148 +17,148 @@ public static function getType()
public static function fieldList() {
$fields = [
- "menuAddOn" => "menuAddOn",
- "offers" => "offers",
"suitableForDiet" => "suitableForDiet",
+ "menuAddOn" => "menuAddOn",
"nutrition" => "nutrition",
+ "offers" => "offers",
];
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.
- *
+ * 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\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string
*/
- protected $offers;
+ protected $menuAddOn;
/**
- * 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.
+ * 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\NutritionInformation|string
+ * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- protected $nutrition;
+ protected $offers;
/**
- * @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;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string
*/
- public function getOffers()
+ public function getMenuAddOn()
{
- return $this->offers;
+ return $this->menuAddOn;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @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 setOffers($offers)
+ public function setMenuAddOn($menuAddOn)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\MenuSection",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
"string",
];
- $offers = self::checkTypes($offers, $types);
+ $menuAddOn = self::checkTypes($menuAddOn, $types);
- $this->offers = $offers;
+ $this->menuAddOn = $menuAddOn;
}
/**
- * @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\Offer|\OpenActive\Models\SchemaOrg\Demand|string
*/
- public function getNutrition()
+ public function getOffers()
{
- return $this->nutrition;
+ return $this->offers;
}
/**
- * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition
+ * @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 setNutrition($nutrition)
+ public function setOffers($offers)
{
$types = [
- "\OpenActive\Models\SchemaOrg\NutritionInformation",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Demand",
"string",
];
- $nutrition = self::checkTypes($nutrition, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->nutrition = $nutrition;
+ $this->offers = $offers;
}
}
diff --git a/src/Models/SchemaOrg/MenuSection.php b/src/Models/SchemaOrg/MenuSection.php
index d96ae4c7..4df9a52c 100644
--- a/src/Models/SchemaOrg/MenuSection.php
+++ b/src/Models/SchemaOrg/MenuSection.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "hasMenuSection" => "hasMenuSection",
"hasMenuItem" => "hasMenuItem",
+ "hasMenuSection" => "hasMenuSection",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A subgrouping of the menu (by dishes, course, serving time period, etc.).
+ * A food or drink item contained in a menu or menu section.
*
*
- * @var \OpenActive\Models\SchemaOrg\MenuSection|string
+ * @var \OpenActive\Models\SchemaOrg\MenuItem|string
*/
- protected $hasMenuSection;
+ protected $hasMenuItem;
/**
- * A food or drink item contained in a menu or menu section.
+ * A subgrouping of the menu (by dishes, course, serving time period, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\MenuItem|string
+ * @var \OpenActive\Models\SchemaOrg\MenuSection|string
*/
- protected $hasMenuItem;
+ protected $hasMenuSection;
/**
- * @return \OpenActive\Models\SchemaOrg\MenuSection|string
+ * @return \OpenActive\Models\SchemaOrg\MenuItem|string
*/
- public function getHasMenuSection()
+ public function getHasMenuItem()
{
- return $this->hasMenuSection;
+ return $this->hasMenuItem;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MenuSection|string $hasMenuSection
+ * @param \OpenActive\Models\SchemaOrg\MenuItem|string $hasMenuItem
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenuSection($hasMenuSection)
+ public function setHasMenuItem($hasMenuItem)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MenuSection",
+ "\OpenActive\Models\SchemaOrg\MenuItem",
"string",
];
- $hasMenuSection = self::checkTypes($hasMenuSection, $types);
+ $hasMenuItem = self::checkTypes($hasMenuItem, $types);
- $this->hasMenuSection = $hasMenuSection;
+ $this->hasMenuItem = $hasMenuItem;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MenuItem|string
+ * @return \OpenActive\Models\SchemaOrg\MenuSection|string
*/
- public function getHasMenuItem()
+ public function getHasMenuSection()
{
- return $this->hasMenuItem;
+ return $this->hasMenuSection;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MenuItem|string $hasMenuItem
+ * @param \OpenActive\Models\SchemaOrg\MenuSection|string $hasMenuSection
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHasMenuItem($hasMenuItem)
+ public function setHasMenuSection($hasMenuSection)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MenuItem",
+ "\OpenActive\Models\SchemaOrg\MenuSection",
"string",
];
- $hasMenuItem = self::checkTypes($hasMenuItem, $types);
+ $hasMenuSection = self::checkTypes($hasMenuSection, $types);
- $this->hasMenuItem = $hasMenuItem;
+ $this->hasMenuSection = $hasMenuSection;
}
}
diff --git a/src/Models/SchemaOrg/MerchantReturnPolicy.php b/src/Models/SchemaOrg/MerchantReturnPolicy.php
index e57e8719..40c2218d 100644
--- a/src/Models/SchemaOrg/MerchantReturnPolicy.php
+++ b/src/Models/SchemaOrg/MerchantReturnPolicy.php
@@ -17,95 +17,105 @@ public static function getType()
public static function fieldList() {
$fields = [
- "returnPolicyCategory" => "returnPolicyCategory",
- "returnPolicyCountry" => "returnPolicyCountry",
- "merchantReturnLink" => "merchantReturnLink",
- "restockingFee" => "restockingFee",
- "itemDefectReturnShippingFeesAmount" => "itemDefectReturnShippingFeesAmount",
- "itemDefectReturnFees" => "itemDefectReturnFees",
+ "additionalProperty" => "additionalProperty",
+ "returnFees" => "returnFees",
+ "returnPolicySeasonalOverride" => "returnPolicySeasonalOverride",
"inStoreReturnsOffered" => "inStoreReturnsOffered",
- "itemCondition" => "itemCondition",
+ "itemDefectReturnFees" => "itemDefectReturnFees",
+ "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource",
+ "returnMethod" => "returnMethod",
+ "refundType" => "refundType",
+ "validForMemberTier" => "validForMemberTier",
"itemDefectReturnLabelSource" => "itemDefectReturnLabelSource",
+ "returnPolicyCountry" => "returnPolicyCountry",
+ "itemDefectReturnShippingFeesAmount" => "itemDefectReturnShippingFeesAmount",
"returnLabelSource" => "returnLabelSource",
- "customerRemorseReturnShippingFeesAmount" => "customerRemorseReturnShippingFeesAmount",
- "refundType" => "refundType",
"returnShippingFeesAmount" => "returnShippingFeesAmount",
- "merchantReturnDays" => "merchantReturnDays",
- "returnMethod" => "returnMethod",
- "additionalProperty" => "additionalProperty",
- "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource",
+ "merchantReturnLink" => "merchantReturnLink",
+ "customerRemorseReturnShippingFeesAmount" => "customerRemorseReturnShippingFeesAmount",
"customerRemorseReturnFees" => "customerRemorseReturnFees",
- "returnPolicySeasonalOverride" => "returnPolicySeasonalOverride",
+ "itemCondition" => "itemCondition",
+ "merchantReturnDays" => "merchantReturnDays",
+ "returnPolicyCategory" => "returnPolicyCategory",
"applicableCountry" => "applicableCountry",
- "returnFees" => "returnFees",
+ "restockingFee" => "restockingFee",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Specifies an applicable return policy (from an enumeration).
+ * 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 \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $returnPolicyCategory;
+ protected $additionalProperty;
/**
- * 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 type of return fees for purchased products (for any return reason).
*
*
- * @var \OpenActive\Models\SchemaOrg\Country|string
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $returnPolicyCountry;
+ protected $returnFees;
/**
- * Specifies a Web page or service by URL, for product returns.
+ * Seasonal override of a return policy.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string
*/
- protected $merchantReturnLink;
+ protected $returnPolicySeasonalOverride;
/**
- * 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.
+ * Are in-store returns offered? (For more advanced return methods use the [[returnMethod]] property.)
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var bool|null
*/
- protected $restockingFee;
+ protected $inStoreReturnsOffered;
/**
- * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]].
+ * The type of return fees for returns of defect products.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $itemDefectReturnShippingFeesAmount;
+ protected $itemDefectReturnFees;
/**
- * The type of return fees for returns of defect products.
+ * 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\ReturnFeesEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- protected $itemDefectReturnFees;
+ protected $customerRemorseReturnLabelSource;
/**
- * Are in-store returns offered? (for more advanced return methods use the [[returnMethod]] property)
+ * The type of return method offered, specified from an enumeration.
*
*
- * @var bool|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
*/
- protected $inStoreReturnsOffered;
+ protected $returnMethod;
/**
- * 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.
+ * A refund type, from an enumerated list.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
*/
- protected $itemCondition;
+ protected $refundType;
+
+ /**
+ * The membership program tier an Offer (or a PriceSpecification, OfferShippingDetails, or MerchantReturnPolicy under an Offer) is valid for.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|string
+ */
+ protected $validForMemberTier;
/**
* The method (from an enumeration) by which the customer obtains a return shipping label for a defect product.
@@ -116,28 +126,28 @@ public static function fieldList() {
protected $itemDefectReturnLabelSource;
/**
- * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned for any reason.
+ * 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\ReturnLabelSourceEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $returnLabelSource;
+ protected $returnPolicyCountry;
/**
- * The amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]].
+ * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]].
*
*
* @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $customerRemorseReturnShippingFeesAmount;
+ protected $itemDefectReturnShippingFeesAmount;
/**
- * A refund type, from an enumerated list.
+ * 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\RefundTypeEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- protected $refundType;
+ protected $returnLabelSource;
/**
* Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]].
@@ -148,53 +158,52 @@ public static function fieldList() {
protected $returnShippingFeesAmount;
/**
- * 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]].
+ * Specifies a Web page or service by URL, for product returns.
*
*
- * @var Date|DateTime|int|null
+ * @var string
*/
- protected $merchantReturnDays;
+ protected $merchantReturnLink;
/**
- * The type of return method offered, specified from an enumeration.
+ * The amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]].
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $returnMethod;
+ protected $customerRemorseReturnShippingFeesAmount;
/**
- * 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.
- *
+ * The type of return fees if the product is returned due to customer remorse.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $additionalProperty;
+ protected $customerRemorseReturnFees;
/**
- * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned due to customer remorse.
+ * 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\ReturnLabelSourceEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- protected $customerRemorseReturnLabelSource;
+ protected $itemCondition;
/**
- * The type of return fees if the product is returned due to customer remorse.
+ * 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]].
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @var Date|DateTime|int|null
*/
- protected $customerRemorseReturnFees;
+ protected $merchantReturnDays;
/**
- * Seasonal override of a return policy.
+ * Specifies an applicable return policy (from an enumeration).
*
*
- * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string
+ * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
*/
- protected $returnPolicySeasonalOverride;
+ protected $returnPolicyCategory;
/**
* A country where a particular merchant return policy applies to, for example the two-letter ISO 3166-1 alpha-2 country code.
@@ -205,212 +214,236 @@ public static function fieldList() {
protected $applicableCountry;
/**
- * The type of return fees for purchased products (for any return reason)
+ * 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 \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $returnFees;
+ protected $restockingFee;
/**
- * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- public function getReturnPolicyCategory()
+ public function getAdditionalProperty()
{
- return $this->returnPolicyCategory;
+ return $this->additionalProperty;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory
+ * @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 setReturnPolicyCategory($returnPolicyCategory)
+ public function setAdditionalProperty($additionalProperty)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "string",
];
- $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
+ $additionalProperty = self::checkTypes($additionalProperty, $types);
- $this->returnPolicyCategory = $returnPolicyCategory;
+ $this->additionalProperty = $additionalProperty;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getReturnPolicyCountry()
+ public function getReturnFees()
{
- return $this->returnPolicyCountry;
+ return $this->returnFees;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $returnPolicyCountry
+ * @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 setReturnPolicyCountry($returnPolicyCountry)
+ public function setReturnFees($returnFees)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "null",
];
- $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types);
+ $returnFees = self::checkTypes($returnFees, $types);
- $this->returnPolicyCountry = $returnPolicyCountry;
+ $this->returnFees = $returnFees;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string
*/
- public function getMerchantReturnLink()
+ public function getReturnPolicySeasonalOverride()
{
- return $this->merchantReturnLink;
+ return $this->returnPolicySeasonalOverride;
}
/**
- * @param string $merchantReturnLink
+ * @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 setMerchantReturnLink($merchantReturnLink)
+ public function setReturnPolicySeasonalOverride($returnPolicySeasonalOverride)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride",
"string",
];
- $merchantReturnLink = self::checkTypes($merchantReturnLink, $types);
+ $returnPolicySeasonalOverride = self::checkTypes($returnPolicySeasonalOverride, $types);
- $this->merchantReturnLink = $merchantReturnLink;
+ $this->returnPolicySeasonalOverride = $returnPolicySeasonalOverride;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return bool|null
*/
- public function getRestockingFee()
+ public function getInStoreReturnsOffered()
{
- return $this->restockingFee;
+ return $this->inStoreReturnsOffered;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $restockingFee
+ * @param bool|null $inStoreReturnsOffered
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRestockingFee($restockingFee)
+ public function setInStoreReturnsOffered($inStoreReturnsOffered)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
- "Number",
+ "bool",
"null",
];
- $restockingFee = self::checkTypes($restockingFee, $types);
+ $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types);
- $this->restockingFee = $restockingFee;
+ $this->inStoreReturnsOffered = $inStoreReturnsOffered;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getItemDefectReturnShippingFeesAmount()
+ public function getItemDefectReturnFees()
{
- return $this->itemDefectReturnShippingFeesAmount;
+ return $this->itemDefectReturnFees;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $itemDefectReturnShippingFeesAmount
+ * @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 setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount)
+ public function setItemDefectReturnFees($itemDefectReturnFees)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "null",
];
- $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types);
+ $itemDefectReturnFees = self::checkTypes($itemDefectReturnFees, $types);
- $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount;
+ $this->itemDefectReturnFees = $itemDefectReturnFees;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- public function getItemDefectReturnFees()
+ public function getCustomerRemorseReturnLabelSource()
{
- return $this->itemDefectReturnFees;
+ return $this->customerRemorseReturnLabelSource;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $itemDefectReturnFees
+ * @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 setItemDefectReturnFees($itemDefectReturnFees)
+ public function setCustomerRemorseReturnLabelSource($customerRemorseReturnLabelSource)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
"null",
];
- $itemDefectReturnFees = self::checkTypes($itemDefectReturnFees, $types);
+ $customerRemorseReturnLabelSource = self::checkTypes($customerRemorseReturnLabelSource, $types);
- $this->itemDefectReturnFees = $itemDefectReturnFees;
+ $this->customerRemorseReturnLabelSource = $customerRemorseReturnLabelSource;
}
/**
- * @return bool|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
*/
- public function getInStoreReturnsOffered()
+ public function getReturnMethod()
{
- return $this->inStoreReturnsOffered;
+ return $this->returnMethod;
}
/**
- * @param bool|null $inStoreReturnsOffered
+ * @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 setInStoreReturnsOffered($inStoreReturnsOffered)
+ public function setReturnMethod($returnMethod)
{
$types = [
- "bool",
+ "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration",
"null",
];
- $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types);
+ $returnMethod = self::checkTypes($returnMethod, $types);
- $this->inStoreReturnsOffered = $inStoreReturnsOffered;
+ $this->returnMethod = $returnMethod;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
*/
- public function getItemCondition()
+ public function getRefundType()
{
- return $this->itemCondition;
+ return $this->refundType;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
+ * @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 setItemCondition($itemCondition)
+ public function setRefundType($refundType)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration",
"null",
];
- $itemCondition = self::checkTypes($itemCondition, $types);
+ $refundType = self::checkTypes($refundType, $types);
- $this->itemCondition = $itemCondition;
+ $this->refundType = $refundType;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|string
+ */
+ public function getValidForMemberTier()
+ {
+ return $this->validForMemberTier;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\MemberProgramTier|string $validForMemberTier
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setValidForMemberTier($validForMemberTier)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MemberProgramTier",
+ "string",
+ ];
+
+ $validForMemberTier = self::checkTypes($validForMemberTier, $types);
+
+ $this->validForMemberTier = $validForMemberTier;
}
/**
@@ -439,78 +472,78 @@ public function setItemDefectReturnLabelSource($itemDefectReturnLabelSource)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getReturnLabelSource()
+ public function getReturnPolicyCountry()
{
- return $this->returnLabelSource;
+ return $this->returnPolicyCountry;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $returnLabelSource
+ * @param \OpenActive\Models\SchemaOrg\Country|string $returnPolicyCountry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnLabelSource($returnLabelSource)
+ public function setReturnPolicyCountry($returnPolicyCountry)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\Country",
+ "string",
];
- $returnLabelSource = self::checkTypes($returnLabelSource, $types);
+ $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types);
- $this->returnLabelSource = $returnLabelSource;
+ $this->returnPolicyCountry = $returnPolicyCountry;
}
/**
* @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getCustomerRemorseReturnShippingFeesAmount()
+ public function getItemDefectReturnShippingFeesAmount()
{
- return $this->customerRemorseReturnShippingFeesAmount;
+ return $this->itemDefectReturnShippingFeesAmount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $customerRemorseReturnShippingFeesAmount
+ * @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 setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount)
+ public function setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount)
{
$types = [
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types);
+ $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types);
- $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount;
+ $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- public function getRefundType()
+ public function getReturnLabelSource()
{
- return $this->refundType;
+ return $this->returnLabelSource;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null $refundType
+ * @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 setRefundType($refundType)
+ public function setReturnLabelSource($returnLabelSource)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration",
+ "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
"null",
];
- $refundType = self::checkTypes($refundType, $types);
+ $returnLabelSource = self::checkTypes($returnLabelSource, $types);
- $this->refundType = $refundType;
+ $this->returnLabelSource = $returnLabelSource;
}
/**
@@ -539,155 +572,154 @@ public function setReturnShippingFeesAmount($returnShippingFeesAmount)
}
/**
- * @return Date|DateTime|int|null
+ * @return string
*/
- public function getMerchantReturnDays()
+ public function getMerchantReturnLink()
{
- return $this->merchantReturnDays;
+ return $this->merchantReturnLink;
}
/**
- * @param Date|DateTime|int|null $merchantReturnDays
+ * @param string $merchantReturnLink
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMerchantReturnDays($merchantReturnDays)
+ public function setMerchantReturnLink($merchantReturnLink)
{
$types = [
- "Date",
- "DateTime",
- "int",
- "null",
+ "string",
];
- $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
+ $merchantReturnLink = self::checkTypes($merchantReturnLink, $types);
- $this->merchantReturnDays = $merchantReturnDays;
+ $this->merchantReturnLink = $merchantReturnLink;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getReturnMethod()
+ public function getCustomerRemorseReturnShippingFeesAmount()
{
- return $this->returnMethod;
+ return $this->customerRemorseReturnShippingFeesAmount;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null $returnMethod
+ * @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 setReturnMethod($returnMethod)
+ public function setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
];
- $returnMethod = self::checkTypes($returnMethod, $types);
+ $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types);
- $this->returnMethod = $returnMethod;
+ $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getAdditionalProperty()
+ public function getCustomerRemorseReturnFees()
{
- return $this->additionalProperty;
+ return $this->customerRemorseReturnFees;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty
+ * @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 setAdditionalProperty($additionalProperty)
+ public function setCustomerRemorseReturnFees($customerRemorseReturnFees)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "null",
];
- $additionalProperty = self::checkTypes($additionalProperty, $types);
+ $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types);
- $this->additionalProperty = $additionalProperty;
+ $this->customerRemorseReturnFees = $customerRemorseReturnFees;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- public function getCustomerRemorseReturnLabelSource()
+ public function getItemCondition()
{
- return $this->customerRemorseReturnLabelSource;
+ return $this->itemCondition;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $customerRemorseReturnLabelSource
+ * @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 setCustomerRemorseReturnLabelSource($customerRemorseReturnLabelSource)
+ public function setItemCondition($itemCondition)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
+ "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
"null",
];
- $customerRemorseReturnLabelSource = self::checkTypes($customerRemorseReturnLabelSource, $types);
+ $itemCondition = self::checkTypes($itemCondition, $types);
- $this->customerRemorseReturnLabelSource = $customerRemorseReturnLabelSource;
+ $this->itemCondition = $itemCondition;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return Date|DateTime|int|null
*/
- public function getCustomerRemorseReturnFees()
+ public function getMerchantReturnDays()
{
- return $this->customerRemorseReturnFees;
+ return $this->merchantReturnDays;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $customerRemorseReturnFees
+ * @param Date|DateTime|int|null $merchantReturnDays
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCustomerRemorseReturnFees($customerRemorseReturnFees)
+ public function setMerchantReturnDays($merchantReturnDays)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "Date",
+ "DateTime",
+ "int",
"null",
];
- $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types);
+ $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
- $this->customerRemorseReturnFees = $customerRemorseReturnFees;
+ $this->merchantReturnDays = $merchantReturnDays;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string
+ * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
*/
- public function getReturnPolicySeasonalOverride()
+ public function getReturnPolicyCategory()
{
- return $this->returnPolicySeasonalOverride;
+ return $this->returnPolicyCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string $returnPolicySeasonalOverride
+ * @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 setReturnPolicySeasonalOverride($returnPolicySeasonalOverride)
+ public function setReturnPolicyCategory($returnPolicyCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride",
- "string",
+ "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
+ "null",
];
- $returnPolicySeasonalOverride = self::checkTypes($returnPolicySeasonalOverride, $types);
+ $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
- $this->returnPolicySeasonalOverride = $returnPolicySeasonalOverride;
+ $this->returnPolicyCategory = $returnPolicyCategory;
}
/**
@@ -716,28 +748,30 @@ public function setApplicableCountry($applicableCountry)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getReturnFees()
+ public function getRestockingFee()
{
- return $this->returnFees;
+ return $this->restockingFee;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $returnFees
+ * @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 setReturnFees($returnFees)
+ public function setRestockingFee($restockingFee)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
+ "Number",
"null",
];
- $returnFees = self::checkTypes($returnFees, $types);
+ $restockingFee = self::checkTypes($restockingFee, $types);
- $this->returnFees = $returnFees;
+ $this->restockingFee = $restockingFee;
}
}
diff --git a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
index 042d983d..aa55dfbe 100644
--- a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
+++ b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
@@ -17,22 +17,51 @@ public static function getType()
public static function fieldList() {
$fields = [
- "returnPolicyCategory" => "returnPolicyCategory",
+ "returnFees" => "returnFees",
+ "returnMethod" => "returnMethod",
+ "refundType" => "refundType",
+ "returnShippingFeesAmount" => "returnShippingFeesAmount",
"startDate" => "startDate",
- "endDate" => "endDate",
"merchantReturnDays" => "merchantReturnDays",
+ "returnPolicyCategory" => "returnPolicyCategory",
+ "endDate" => "endDate",
+ "restockingFee" => "restockingFee",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Specifies an applicable return policy (from an enumeration).
+ * The type of return fees for purchased products (for any return reason).
*
*
- * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $returnPolicyCategory;
+ protected $returnFees;
+
+ /**
+ * The type of return method offered, specified from an enumeration.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ */
+ protected $returnMethod;
+
+ /**
+ * A refund type, from an enumerated list.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
+ */
+ protected $refundType;
+
+ /**
+ * Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ */
+ protected $returnShippingFeesAmount;
/**
* The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
@@ -42,6 +71,22 @@ public static function fieldList() {
*/
protected $startDate;
+ /**
+ * 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]].
+ *
+ *
+ * @var Date|DateTime|int|null
+ */
+ protected $merchantReturnDays;
+
+ /**
+ * Specifies an applicable return policy (from an enumeration).
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ */
+ protected $returnPolicyCategory;
+
/**
* The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
@@ -51,36 +96,111 @@ public static function fieldList() {
protected $endDate;
/**
- * 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]].
+ * 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 Date|DateTime|int|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $merchantReturnDays;
+ protected $restockingFee;
/**
- * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getReturnPolicyCategory()
+ public function getReturnFees()
{
- return $this->returnPolicyCategory;
+ return $this->returnFees;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory
+ * @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 setReturnPolicyCategory($returnPolicyCategory)
+ public function setReturnFees($returnFees)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
"null",
];
- $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
+ $returnFees = self::checkTypes($returnFees, $types);
- $this->returnPolicyCategory = $returnPolicyCategory;
+ $this->returnFees = $returnFees;
+ }
+
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ */
+ public function getReturnMethod()
+ {
+ return $this->returnMethod;
+ }
+
+ /**
+ * @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 setReturnMethod($returnMethod)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration",
+ "null",
+ ];
+
+ $returnMethod = self::checkTypes($returnMethod, $types);
+
+ $this->returnMethod = $returnMethod;
+ }
+
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
+ */
+ public function getRefundType()
+ {
+ return $this->refundType;
+ }
+
+ /**
+ * @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 setRefundType($refundType)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration",
+ "null",
+ ];
+
+ $refundType = self::checkTypes($refundType, $types);
+
+ $this->refundType = $refundType;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ */
+ public function getReturnShippingFeesAmount()
+ {
+ return $this->returnShippingFeesAmount;
+ }
+
+ /**
+ * @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 setReturnShippingFeesAmount($returnShippingFeesAmount)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
+ ];
+
+ $returnShippingFeesAmount = self::checkTypes($returnShippingFeesAmount, $types);
+
+ $this->returnShippingFeesAmount = $returnShippingFeesAmount;
}
/**
@@ -109,6 +229,58 @@ public function setStartDate($startDate)
$this->startDate = $startDate;
}
+ /**
+ * @return Date|DateTime|int|null
+ */
+ public function getMerchantReturnDays()
+ {
+ return $this->merchantReturnDays;
+ }
+
+ /**
+ * @param Date|DateTime|int|null $merchantReturnDays
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMerchantReturnDays($merchantReturnDays)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "int",
+ "null",
+ ];
+
+ $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
+
+ $this->merchantReturnDays = $merchantReturnDays;
+ }
+
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ */
+ public function getReturnPolicyCategory()
+ {
+ return $this->returnPolicyCategory;
+ }
+
+ /**
+ * @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 setReturnPolicyCategory($returnPolicyCategory)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
+ "null",
+ ];
+
+ $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
+
+ $this->returnPolicyCategory = $returnPolicyCategory;
+ }
+
/**
* @return Date|DateTime|null
*/
@@ -136,30 +308,30 @@ public function setEndDate($endDate)
}
/**
- * @return Date|DateTime|int|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getMerchantReturnDays()
+ public function getRestockingFee()
{
- return $this->merchantReturnDays;
+ return $this->restockingFee;
}
/**
- * @param Date|DateTime|int|null $merchantReturnDays
+ * @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 setMerchantReturnDays($merchantReturnDays)
+ public function setRestockingFee($restockingFee)
{
$types = [
- "Date",
- "DateTime",
- "int",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
+ "Number",
"null",
];
- $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
+ $restockingFee = self::checkTypes($restockingFee, $types);
- $this->merchantReturnDays = $merchantReturnDays;
+ $this->restockingFee = $restockingFee;
}
}
diff --git a/src/Models/SchemaOrg/Message.php b/src/Models/SchemaOrg/Message.php
index 6803a9a6..f61a02cb 100644
--- a/src/Models/SchemaOrg/Message.php
+++ b/src/Models/SchemaOrg/Message.php
@@ -17,14 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
- "bccRecipient" => "bccRecipient",
"recipient" => "recipient",
- "dateReceived" => "dateReceived",
+ "dateRead" => "dateRead",
+ "dateSent" => "dateSent",
+ "bccRecipient" => "bccRecipient",
"ccRecipient" => "ccRecipient",
- "messageAttachment" => "messageAttachment",
"toRecipient" => "toRecipient",
- "dateSent" => "dateSent",
- "dateRead" => "dateRead",
+ "dateReceived" => "dateReceived",
+ "messageAttachment" => "messageAttachment",
"sender" => "sender",
];
@@ -32,171 +32,170 @@ public static function fieldList() {
}
/**
- * A sub property of recipient. The recipient blind copied on a message.
+ * A sub property of participant. The participant who is at the receiving end of the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $bccRecipient;
+ protected $recipient;
/**
- * A sub property of participant. The participant who is at the receiving 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\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var Date|DateTime|null
*/
- protected $recipient;
+ protected $dateRead;
/**
- * The date/time the message was received if a single recipient exists.
+ * The date/time at which the message was sent.
*
*
* @var DateTime|null
*/
- protected $dateReceived;
+ protected $dateSent;
/**
- * A sub property of recipient. The recipient copied on a message.
+ * A sub property of recipient. The recipient blind copied on a message.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $ccRecipient;
+ protected $bccRecipient;
/**
- * A CreativeWork attached to the message.
+ * A sub property of recipient. The recipient copied on a message.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- protected $messageAttachment;
+ protected $ccRecipient;
/**
* A sub property of recipient. The recipient who was directly sent the message.
*
*
- * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
protected $toRecipient;
/**
- * The date/time at which the message was sent.
+ * The date/time the message was received if a single recipient exists.
*
*
* @var DateTime|null
*/
- protected $dateSent;
+ protected $dateReceived;
/**
- * The date/time at which the message has been read by the recipient if a single recipient exists.
+ * A CreativeWork attached to the message.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $dateRead;
+ protected $messageAttachment;
/**
* A sub property of participant. The participant who is at the sending end of the action.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $sender;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getBccRecipient()
+ public function getRecipient()
{
- return $this->bccRecipient;
+ return $this->recipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $bccRecipient
+ * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBccRecipient($bccRecipient)
+ public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
+ "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $bccRecipient = self::checkTypes($bccRecipient, $types);
+ $recipient = self::checkTypes($recipient, $types);
- $this->bccRecipient = $bccRecipient;
+ $this->recipient = $recipient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return Date|DateTime|null
*/
- public function getRecipient()
+ public function getDateRead()
{
- return $this->recipient;
+ return $this->dateRead;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param Date|DateTime|null $dateRead
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecipient($recipient)
+ public function setDateRead($dateRead)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $recipient = self::checkTypes($recipient, $types);
+ $dateRead = self::checkTypes($dateRead, $types);
- $this->recipient = $recipient;
+ $this->dateRead = $dateRead;
}
/**
* @return DateTime|null
*/
- public function getDateReceived()
+ public function getDateSent()
{
- return $this->dateReceived;
+ return $this->dateSent;
}
/**
- * @param DateTime|null $dateReceived
+ * @param DateTime|null $dateSent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateReceived($dateReceived)
+ public function setDateSent($dateSent)
{
$types = [
"DateTime",
"null",
];
- $dateReceived = self::checkTypes($dateReceived, $types);
+ $dateSent = self::checkTypes($dateSent, $types);
- $this->dateReceived = $dateReceived;
+ $this->dateSent = $dateSent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getCcRecipient()
+ public function getBccRecipient()
{
- return $this->ccRecipient;
+ return $this->bccRecipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string $ccRecipient
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string $bccRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCcRecipient($ccRecipient)
+ public function setBccRecipient($bccRecipient)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
@@ -205,38 +204,40 @@ public function setCcRecipient($ccRecipient)
"string",
];
- $ccRecipient = self::checkTypes($ccRecipient, $types);
+ $bccRecipient = self::checkTypes($bccRecipient, $types);
- $this->ccRecipient = $ccRecipient;
+ $this->bccRecipient = $bccRecipient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
*/
- public function getMessageAttachment()
+ public function getCcRecipient()
{
- return $this->messageAttachment;
+ return $this->ccRecipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $messageAttachment
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string $ccRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMessageAttachment($messageAttachment)
+ public function setCcRecipient($ccRecipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"string",
];
- $messageAttachment = self::checkTypes($messageAttachment, $types);
+ $ccRecipient = self::checkTypes($ccRecipient, $types);
- $this->messageAttachment = $messageAttachment;
+ $this->ccRecipient = $ccRecipient;
}
/**
- * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
public function getToRecipient()
{
@@ -244,16 +245,16 @@ public function getToRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $toRecipient
+ * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $toRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setToRecipient($toRecipient)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\Organization",
"string",
];
@@ -266,56 +267,55 @@ public function setToRecipient($toRecipient)
/**
* @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\CreativeWork|string
*/
- public function getDateRead()
+ public function getMessageAttachment()
{
- return $this->dateRead;
+ return $this->messageAttachment;
}
/**
- * @param Date|DateTime|null $dateRead
+ * @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 setDateRead($dateRead)
+ public function setMessageAttachment($messageAttachment)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $dateRead = self::checkTypes($dateRead, $types);
+ $messageAttachment = self::checkTypes($messageAttachment, $types);
- $this->dateRead = $dateRead;
+ $this->messageAttachment = $messageAttachment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getSender()
{
@@ -323,16 +323,16 @@ public function getSender()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $sender
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string $sender
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setSender($sender)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/MolecularEntity.php b/src/Models/SchemaOrg/MolecularEntity.php
index 4a7fb865..f3197ff4 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",
+ "smiles" => "smiles",
"molecularFormula" => "molecularFormula",
"potentialUse" => "potentialUse",
- "chemicalRole" => "chemicalRole",
+ "inChIKey" => "inChIKey",
"molecularWeight" => "molecularWeight",
"inChI" => "inChI",
- "smiles" => "smiles",
+ "chemicalRole" => "chemicalRole",
+ "monoisotopicMolecularWeight" => "monoisotopicMolecularWeight",
];
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,12 +40,12 @@ 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>.
+ * 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|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var string
*/
- protected $monoisotopicMolecularWeight;
+ protected $smiles;
/**
* The empirical formula is the simplest whole number ratio of all the atoms in a molecule.
@@ -72,18 +64,18 @@ public static function fieldList() {
protected $potentialUse;
/**
- * A role played by the BioChemEntity within a chemical context.
+ * InChIKey is a hashed version of the full InChI (using the SHA-256 algorithm).
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $chemicalRole;
+ protected $inChIKey;
/**
* 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
protected $molecularWeight;
@@ -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.
+ * A role played by the BioChemEntity within a chemical context.
*
*
- * @var string
- */
- protected $smiles;
-
- /**
- * @return string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getInChIKey()
- {
- return $this->inChIKey;
- }
+ protected $chemicalRole;
/**
- * @param string $inChIKey
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function setInChIKey($inChIKey)
- {
- $types = [
- "string",
- ];
-
- $inChIKey = self::checkTypes($inChIKey, $types);
-
- $this->inChIKey = $inChIKey;
- }
+ protected $monoisotopicMolecularWeight;
/**
* @return string
@@ -152,28 +128,27 @@ public function setIupacName($iupacName)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return string
*/
- public function getMonoisotopicMolecularWeight()
+ public function getSmiles()
{
- return $this->monoisotopicMolecularWeight;
+ return $this->smiles;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $monoisotopicMolecularWeight
+ * @param string $smiles
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight)
+ public function setSmiles($smiles)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types);
+ $smiles = self::checkTypes($smiles, $types);
- $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight;
+ $this->smiles = $smiles;
}
/**
@@ -226,32 +201,31 @@ public function setPotentialUse($potentialUse)
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getChemicalRole()
+ public function getInChIKey()
{
- return $this->chemicalRole;
+ return $this->inChIKey;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $chemicalRole
+ * @param string $inChIKey
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setChemicalRole($chemicalRole)
+ public function setInChIKey($inChIKey)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $chemicalRole = self::checkTypes($chemicalRole, $types);
+ $inChIKey = self::checkTypes($inChIKey, $types);
- $this->chemicalRole = $chemicalRole;
+ $this->inChIKey = $inChIKey;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
*/
public function getMolecularWeight()
{
@@ -259,15 +233,15 @@ public function getMolecularWeight()
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $molecularWeight
+ * @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 setMolecularWeight($molecularWeight)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
$molecularWeight = self::checkTypes($molecularWeight, $types);
@@ -300,27 +274,53 @@ public function setInChI($inChI)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getSmiles()
+ public function getChemicalRole()
{
- return $this->smiles;
+ return $this->chemicalRole;
}
/**
- * @param string $smiles
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $chemicalRole
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSmiles($smiles)
+ public function setChemicalRole($chemicalRole)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $smiles = self::checkTypes($smiles, $types);
+ $chemicalRole = self::checkTypes($chemicalRole, $types);
- $this->smiles = $smiles;
+ $this->chemicalRole = $chemicalRole;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getMonoisotopicMolecularWeight()
+ {
+ return $this->monoisotopicMolecularWeight;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $monoisotopicMolecularWeight
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ ];
+
+ $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types);
+
+ $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight;
}
}
diff --git a/src/Models/SchemaOrg/MonetaryAmount.php b/src/Models/SchemaOrg/MonetaryAmount.php
index 016e1527..4ef815c5 100644
--- a/src/Models/SchemaOrg/MonetaryAmount.php
+++ b/src/Models/SchemaOrg/MonetaryAmount.php
@@ -17,207 +17,207 @@ public static function getType()
public static function fieldList() {
$fields = [
- "maxValue" => "maxValue",
"minValue" => "minValue",
- "validFrom" => "validFrom",
- "value" => "value",
+ "maxValue" => "maxValue",
"currency" => "currency",
"validThrough" => "validThrough",
+ "value" => "value",
+ "validFrom" => "validFrom",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The upper value of some characteristic or property.
+ * The lower value of some characteristic or property.
*
*
* @var Number|null
*/
- protected $maxValue;
+ protected $minValue;
/**
- * The lower value of some characteristic or property.
+ * The upper value of some characteristic or property.
*
*
* @var Number|null
*/
- protected $minValue;
+ protected $maxValue;
/**
- * The date when the item becomes valid.
+ * 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 Date|DateTime|null
+ * @var string
*/
- protected $validFrom;
+ protected $currency;
/**
- * 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 date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
*
*
- * @var string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @var Date|DateTime|null
*/
- protected $value;
+ protected $validThrough;
/**
- * 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 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
+ * @var bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- protected $currency;
+ protected $value;
/**
- * 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 date when the item becomes valid.
*
*
* @var Date|DateTime|null
*/
- protected $validThrough;
+ protected $validFrom;
/**
* @return Number|null
*/
- public function getMaxValue()
+ public function getMinValue()
{
- return $this->maxValue;
+ return $this->minValue;
}
/**
- * @param Number|null $maxValue
+ * @param Number|null $minValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMaxValue($maxValue)
+ public function setMinValue($minValue)
{
$types = [
"Number",
"null",
];
- $maxValue = self::checkTypes($maxValue, $types);
+ $minValue = self::checkTypes($minValue, $types);
- $this->maxValue = $maxValue;
+ $this->minValue = $minValue;
}
/**
* @return Number|null
*/
- public function getMinValue()
+ public function getMaxValue()
{
- return $this->minValue;
+ return $this->maxValue;
}
/**
- * @param Number|null $minValue
+ * @param Number|null $maxValue
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMinValue($minValue)
+ public function setMaxValue($maxValue)
{
$types = [
"Number",
"null",
];
- $minValue = self::checkTypes($minValue, $types);
+ $maxValue = self::checkTypes($maxValue, $types);
- $this->minValue = $minValue;
+ $this->maxValue = $maxValue;
}
/**
- * @return Date|DateTime|null
+ * @return string
*/
- public function getValidFrom()
+ public function getCurrency()
{
- return $this->validFrom;
+ return $this->currency;
}
/**
- * @param Date|DateTime|null $validFrom
+ * @param string $currency
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidFrom($validFrom)
+ public function setCurrency($currency)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "string",
];
- $validFrom = self::checkTypes($validFrom, $types);
+ $currency = self::checkTypes($currency, $types);
- $this->validFrom = $validFrom;
+ $this->currency = $currency;
}
/**
- * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null
+ * @return Date|DateTime|null
*/
- public function getValue()
+ public function getValidThrough()
{
- return $this->value;
+ return $this->validThrough;
}
/**
- * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value
+ * @param Date|DateTime|null $validThrough
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValue($value)
+ public function setValidThrough($validThrough)
{
$types = [
- "string",
- "Number",
- "\OpenActive\Models\SchemaOrg\StructuredValue",
- "bool",
+ "Date",
+ "DateTime",
"null",
];
- $value = self::checkTypes($value, $types);
+ $validThrough = self::checkTypes($validThrough, $types);
- $this->value = $value;
+ $this->validThrough = $validThrough;
}
/**
- * @return string
+ * @return bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null
*/
- public function getCurrency()
+ public function getValue()
{
- return $this->currency;
+ return $this->value;
}
/**
- * @param string $currency
+ * @param bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null $value
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrency($currency)
+ public function setValue($value)
{
$types = [
+ "bool",
"string",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
+ "null",
];
- $currency = self::checkTypes($currency, $types);
+ $value = self::checkTypes($value, $types);
- $this->currency = $currency;
+ $this->value = $value;
}
/**
* @return Date|DateTime|null
*/
- public function getValidThrough()
+ public function getValidFrom()
{
- return $this->validThrough;
+ return $this->validFrom;
}
/**
- * @param Date|DateTime|null $validThrough
+ * @param Date|DateTime|null $validFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setValidThrough($validThrough)
+ public function setValidFrom($validFrom)
{
$types = [
"Date",
@@ -225,9 +225,9 @@ public function setValidThrough($validThrough)
"null",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $validFrom = self::checkTypes($validFrom, $types);
- $this->validThrough = $validThrough;
+ $this->validFrom = $validFrom;
}
}
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..cdc5afbf 100644
--- a/src/Models/SchemaOrg/MoneyTransfer.php
+++ b/src/Models/SchemaOrg/MoneyTransfer.php
@@ -28,7 +28,7 @@ public static function fieldList() {
* A bank or bank’s branch, financial institution or international financial institution operating the beneficiary’s bank account or releasing funds for the beneficiary.
*
*
- * @var \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string
+ * @var string|\OpenActive\Models\SchemaOrg\BankOrCreditUnion
*/
protected $beneficiaryBank;
@@ -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\BankOrCreditUnion|string
+ * @return string|\OpenActive\Models\SchemaOrg\BankOrCreditUnion
*/
public function getBeneficiaryBank()
{
@@ -49,15 +49,15 @@ public function getBeneficiaryBank()
}
/**
- * @param \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string $beneficiaryBank
+ * @param string|\OpenActive\Models\SchemaOrg\BankOrCreditUnion $beneficiaryBank
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setBeneficiaryBank($beneficiaryBank)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BankOrCreditUnion",
"string",
+ "\OpenActive\Models\SchemaOrg\BankOrCreditUnion",
];
$beneficiaryBank = self::checkTypes($beneficiaryBank, $types);
@@ -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/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..c8420e18 100644
--- a/src/Models/SchemaOrg/Movie.php
+++ b/src/Models/SchemaOrg/Movie.php
@@ -17,48 +17,44 @@ public static function getType()
public static function fieldList() {
$fields = [
- "countryOfOrigin" => "countryOfOrigin",
- "director" => "director",
- "titleEIDR" => "titleEIDR",
- "subtitleLanguage" => "subtitleLanguage",
"actor" => "actor",
"trailer" => "trailer",
- "duration" => "duration",
- "productionCompany" => "productionCompany",
+ "titleEIDR" => "titleEIDR",
"actors" => "actors",
- "musicBy" => "musicBy",
"directors" => "directors",
+ "subtitleLanguage" => "subtitleLanguage",
+ "productionCompany" => "productionCompany",
+ "countryOfOrigin" => "countryOfOrigin",
+ "duration" => "duration",
+ "director" => "director",
+ "musicBy" => "musicBy",
];
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.
+ * An actor (individual or a group), 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\Country|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- protected $countryOfOrigin;
+ protected $actor;
/**
- * 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 [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.
+ * 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.
*
*
*
@@ -67,117 +63,122 @@ public static function fieldList() {
protected $titleEIDR;
/**
- * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
+ * 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\Language|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $subtitleLanguage;
+ protected $actors;
/**
- * 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.
+ * 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 $actor;
+ protected $directors;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
*
*
- * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @var string|\OpenActive\Models\SchemaOrg\Language
*/
- protected $trailer;
+ protected $subtitleLanguage;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $duration;
+ protected $productionCompany;
/**
- * The production company or studio responsible for the item e.g. series, video game, 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\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $productionCompany;
+ protected $countryOfOrigin;
/**
- * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var DateInterval|string|null
*/
- protected $actors;
+ protected $duration;
/**
- * 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.
+ * The composer of the soundtrack.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- protected $directors;
+ protected $musicBy;
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- public function getCountryOfOrigin()
+ public function getActor()
{
- return $this->countryOfOrigin;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string $actor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCountryOfOrigin($countryOfOrigin)
+ public function setActor($actor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Country",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PerformingGroup",
"string",
];
- $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->countryOfOrigin = $countryOfOrigin;
+ $this->actor = $actor;
}
/**
- * @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;
}
/**
@@ -205,205 +206,205 @@ public function setTitleEIDR($titleEIDR)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSubtitleLanguage()
+ public function getActors()
{
- return $this->subtitleLanguage;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage
+ * @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 setSubtitleLanguage($subtitleLanguage)
+ public function setActors($actors)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->subtitleLanguage = $subtitleLanguage;
+ $this->actors = $actors;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActor()
+ public function getDirectors()
{
- return $this->actor;
+ return $this->directors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @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 setActor($actor)
+ public function setDirectors($directors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->actor = $actor;
+ $this->directors = $directors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return string|\OpenActive\Models\SchemaOrg\Language
*/
- public function getTrailer()
+ public function getSubtitleLanguage()
{
- return $this->trailer;
+ return $this->subtitleLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @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 setTrailer($trailer)
+ public function setSubtitleLanguage($subtitleLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
+ "\OpenActive\Models\SchemaOrg\Language",
];
- $trailer = self::checkTypes($trailer, $types);
+ $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
- $this->trailer = $trailer;
+ $this->subtitleLanguage = $subtitleLanguage;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDuration()
+ public function getProductionCompany()
{
- return $this->duration;
+ return $this->productionCompany;
}
/**
- * @param DateInterval|string|null $duration
+ * @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 setDuration($duration)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->duration = $duration;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getProductionCompany()
+ public function getCountryOfOrigin()
{
- return $this->productionCompany;
+ return $this->countryOfOrigin;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @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 setProductionCompany($productionCompany)
+ public function setCountryOfOrigin($countryOfOrigin)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
- $this->productionCompany = $productionCompany;
+ $this->countryOfOrigin = $countryOfOrigin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return DateInterval|string|null
*/
- public function getActors()
+ public function getDuration()
{
- return $this->actors;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActors($actors)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "DateInterval",
"string",
+ "null",
];
- $actors = self::checkTypes($actors, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->actors = $actors;
+ $this->duration = $duration;
}
/**
- * @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
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getDirectors()
+ public function getMusicBy()
{
- return $this->directors;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirectors($directors)
+ public function setMusicBy($musicBy)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->directors = $directors;
+ $this->musicBy = $musicBy;
}
}
diff --git a/src/Models/SchemaOrg/MovieSeries.php b/src/Models/SchemaOrg/MovieSeries.php
index e262dec2..a705df2a 100644
--- a/src/Models/SchemaOrg/MovieSeries.php
+++ b/src/Models/SchemaOrg/MovieSeries.php
@@ -17,44 +17,52 @@ public static function getType()
public static function fieldList() {
$fields = [
- "director" => "director",
"actor" => "actor",
"trailer" => "trailer",
- "productionCompany" => "productionCompany",
"actors" => "actors",
- "musicBy" => "musicBy",
"directors" => "directors",
+ "productionCompany" => "productionCompany",
+ "director" => "director",
+ "musicBy" => "musicBy",
];
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.
+ * An actor (individual or a group), 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
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- protected $director;
+ protected $actor;
+
+ /**
+ * The trailer of a movie or TV/radio series, season, episode, etc.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
+ */
+ 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. Actors can be associated with individual items or with a series, episode, clip.
*
*
* @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $actor;
+ protected $actors;
/**
- * The trailer of a movie or tv/radio series, season, episode, etc.
+ * 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\VideoObject|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $trailer;
+ protected $directors;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
* @var \OpenActive\Models\SchemaOrg\Organization|string
@@ -62,12 +70,12 @@ public static function fieldList() {
protected $productionCompany;
/**
- * 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.
@@ -78,86 +86,104 @@ public static function fieldList() {
protected $musicBy;
/**
- * 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
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string
*/
- protected $directors;
+ public function getActor()
+ {
+ return $this->actor;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string $actor
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function getDirector()
+ public function setActor($actor)
{
- return $this->director;
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\PerformingGroup",
+ "string",
+ ];
+
+ $actor = self::checkTypes($actor, $types);
+
+ $this->actor = $actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ */
+ public function getTrailer()
+ {
+ return $this->trailer;
+ }
+
+ /**
+ * @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;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActor()
+ public function getActors()
{
- return $this->actor;
+ return $this->actors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actor
+ * @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 setActor($actor)
+ public function setActors($actors)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actor = self::checkTypes($actor, $types);
+ $actors = self::checkTypes($actors, $types);
- $this->actor = $actor;
+ $this->actors = $actors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\VideoObject|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getTrailer()
+ public function getDirectors()
{
- return $this->trailer;
+ return $this->directors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @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 setTrailer($trailer)
+ public function setDirectors($directors)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $trailer = self::checkTypes($trailer, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->trailer = $trailer;
+ $this->directors = $directors;
}
/**
@@ -188,26 +214,26 @@ public function setProductionCompany($productionCompany)
/**
* @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;
}
/**
@@ -236,29 +262,4 @@ public function setMusicBy($musicBy)
$this->musicBy = $musicBy;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\Person|string
- */
- public function getDirectors()
- {
- return $this->directors;
- }
-
- /**
- * @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 setDirectors($directors)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "string",
- ];
-
- $directors = self::checkTypes($directors, $types);
-
- $this->directors = $directors;
- }
-
}
diff --git a/src/Models/SchemaOrg/Muscle.php b/src/Models/SchemaOrg/Muscle.php
index c9754755..40138a04 100644
--- a/src/Models/SchemaOrg/Muscle.php
+++ b/src/Models/SchemaOrg/Muscle.php
@@ -17,23 +17,23 @@ public static function getType()
public static function fieldList() {
$fields = [
- "insertion" => "insertion",
- "antagonist" => "antagonist",
- "nerve" => "nerve",
"bloodSupply" => "bloodSupply",
+ "antagonist" => "antagonist",
+ "insertion" => "insertion",
"muscleAction" => "muscleAction",
+ "nerve" => "nerve",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The place of attachment of a muscle, or what the muscle moves.
+ * The blood vessel that carries blood from the heart to the muscle.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\Vessel|string
*/
- protected $insertion;
+ protected $bloodSupply;
/**
* The muscle whose action counteracts the specified muscle.
@@ -44,52 +44,52 @@ public static function fieldList() {
protected $antagonist;
/**
- * The underlying innervation associated with the muscle.
+ * The place of attachment of a muscle, or what the muscle moves.
*
*
- * @var \OpenActive\Models\SchemaOrg\Nerve|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $nerve;
+ protected $insertion;
/**
- * The blood vessel that carries blood from the heart to the muscle.
+ * The movement the muscle generates.
*
*
- * @var \OpenActive\Models\SchemaOrg\Vessel|string
+ * @var string
*/
- protected $bloodSupply;
+ protected $muscleAction;
/**
- * The movement the muscle generates.
+ * The underlying innervation associated with the muscle.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Nerve|string
*/
- protected $muscleAction;
+ protected $nerve;
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\Vessel|string
*/
- public function getInsertion()
+ public function getBloodSupply()
{
- return $this->insertion;
+ return $this->bloodSupply;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $insertion
+ * @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 setInsertion($insertion)
+ public function setBloodSupply($bloodSupply)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $insertion = self::checkTypes($insertion, $types);
+ $bloodSupply = self::checkTypes($bloodSupply, $types);
- $this->insertion = $insertion;
+ $this->bloodSupply = $bloodSupply;
}
/**
@@ -118,77 +118,77 @@ public function setAntagonist($antagonist)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Nerve|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getNerve()
+ public function getInsertion()
{
- return $this->nerve;
+ return $this->insertion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Nerve|string $nerve
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $insertion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNerve($nerve)
+ public function setInsertion($insertion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Nerve",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $nerve = self::checkTypes($nerve, $types);
+ $insertion = self::checkTypes($insertion, $types);
- $this->nerve = $nerve;
+ $this->insertion = $insertion;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Vessel|string
+ * @return string
*/
- public function getBloodSupply()
+ public function getMuscleAction()
{
- return $this->bloodSupply;
+ return $this->muscleAction;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $bloodSupply
+ * @param string $muscleAction
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBloodSupply($bloodSupply)
+ public function setMuscleAction($muscleAction)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $bloodSupply = self::checkTypes($bloodSupply, $types);
+ $muscleAction = self::checkTypes($muscleAction, $types);
- $this->bloodSupply = $bloodSupply;
+ $this->muscleAction = $muscleAction;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Nerve|string
*/
- public function getMuscleAction()
+ public function getNerve()
{
- return $this->muscleAction;
+ return $this->nerve;
}
/**
- * @param string $muscleAction
+ * @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 setMuscleAction($muscleAction)
+ public function setNerve($nerve)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Nerve",
"string",
];
- $muscleAction = self::checkTypes($muscleAction, $types);
+ $nerve = self::checkTypes($nerve, $types);
- $this->muscleAction = $muscleAction;
+ $this->nerve = $nerve;
}
}
diff --git a/src/Models/SchemaOrg/MusicAlbum.php b/src/Models/SchemaOrg/MusicAlbum.php
index 004dcd17..9f04ff4d 100644
--- a/src/Models/SchemaOrg/MusicAlbum.php
+++ b/src/Models/SchemaOrg/MusicAlbum.php
@@ -18,30 +18,22 @@ public static function getType()
public static function fieldList() {
$fields = [
"albumProductionType" => "albumProductionType",
- "albumReleaseType" => "albumReleaseType",
"albumRelease" => "albumRelease",
"byArtist" => "byArtist",
+ "albumReleaseType" => "albumReleaseType",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Classification of the album by it's type of content: soundtrack, live album, studio album, etc.
+ * Classification of the album by its type of content: soundtrack, live album, studio album, etc.
*
*
* @var \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null
*/
protected $albumProductionType;
- /**
- * The kind of release which this album is: single, EP or album.
- *
- *
- * @var \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
- */
- protected $albumReleaseType;
-
/**
* A release of this album.
*
@@ -58,6 +50,14 @@ public static function fieldList() {
*/
protected $byArtist;
+ /**
+ * The kind of release which this album is: single, EP or album.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
+ */
+ protected $albumReleaseType;
+
/**
* @return \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null
*/
@@ -83,31 +83,6 @@ public function setAlbumProductionType($albumProductionType)
$this->albumProductionType = $albumProductionType;
}
- /**
- * @return \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
- */
- public function getAlbumReleaseType()
- {
- return $this->albumReleaseType;
- }
-
- /**
- * @param \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null $albumReleaseType
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setAlbumReleaseType($albumReleaseType)
- {
- $types = [
- "\OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType",
- "null",
- ];
-
- $albumReleaseType = self::checkTypes($albumReleaseType, $types);
-
- $this->albumReleaseType = $albumReleaseType;
- }
-
/**
* @return \OpenActive\Models\SchemaOrg\MusicRelease|string
*/
@@ -159,4 +134,29 @@ public function setByArtist($byArtist)
$this->byArtist = $byArtist;
}
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
+ */
+ public function getAlbumReleaseType()
+ {
+ return $this->albumReleaseType;
+ }
+
+ /**
+ * @param \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null $albumReleaseType
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setAlbumReleaseType($albumReleaseType)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType",
+ "null",
+ ];
+
+ $albumReleaseType = self::checkTypes($albumReleaseType, $types);
+
+ $this->albumReleaseType = $albumReleaseType;
+ }
+
}
diff --git a/src/Models/SchemaOrg/MusicComposition.php b/src/Models/SchemaOrg/MusicComposition.php
index c1427176..dd2f9aa6 100644
--- a/src/Models/SchemaOrg/MusicComposition.php
+++ b/src/Models/SchemaOrg/MusicComposition.php
@@ -17,68 +17,68 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "firstPerformance" => "firstPerformance",
+ "recordedAs" => "recordedAs",
+ "lyrics" => "lyrics",
"iswcCode" => "iswcCode",
- "composer" => "composer",
- "musicCompositionForm" => "musicCompositionForm",
"includedComposition" => "includedComposition",
- "recordedAs" => "recordedAs",
- "firstPerformance" => "firstPerformance",
+ "lyricist" => "lyricist",
"musicArrangement" => "musicArrangement",
- "lyrics" => "lyrics",
+ "musicCompositionForm" => "musicCompositionForm",
"musicalKey" => "musicalKey",
- "lyricist" => "lyricist",
+ "composer" => "composer",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The International Standard Musical Work Code for the composition.
+ * The date and place the work was first performed.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $iswcCode;
+ protected $firstPerformance;
/**
- * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
+ * An audio recording of the work.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $composer;
+ protected $recordedAs;
/**
- * The type of composition (e.g. overture, sonata, symphony, etc.).
+ * The words in the song.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $musicCompositionForm;
+ protected $lyrics;
/**
- * Smaller compositions included in this work (e.g. a movement in a symphony).
+ * The International Standard Musical Work Code for the composition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @var string
*/
- protected $includedComposition;
+ protected $iswcCode;
/**
- * An audio recording of the work.
+ * Smaller compositions included in this work (e.g. a movement in a symphony).
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- protected $recordedAs;
+ protected $includedComposition;
/**
- * The date and place the work was first performed.
+ * The person who wrote the words.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $firstPerformance;
+ protected $lyricist;
/**
* An arrangement derived from the composition.
@@ -89,12 +89,12 @@ public static function fieldList() {
protected $musicArrangement;
/**
- * The words in the song.
+ * The type of composition (e.g. overture, sonata, symphony, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string
*/
- protected $lyrics;
+ protected $musicCompositionForm;
/**
* The key, mode, or scale this composition uses.
@@ -105,160 +105,160 @@ public static function fieldList() {
protected $musicalKey;
/**
- * The person who wrote the words.
+ * The person or organization who wrote a composition, or who is the composer of a work performed at some event.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $lyricist;
+ protected $composer;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getIswcCode()
+ public function getFirstPerformance()
{
- return $this->iswcCode;
+ return $this->firstPerformance;
}
/**
- * @param string $iswcCode
+ * @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 setIswcCode($iswcCode)
+ public function setFirstPerformance($firstPerformance)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $iswcCode = self::checkTypes($iswcCode, $types);
+ $firstPerformance = self::checkTypes($firstPerformance, $types);
- $this->iswcCode = $iswcCode;
+ $this->firstPerformance = $firstPerformance;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getComposer()
+ public function getRecordedAs()
{
- return $this->composer;
+ return $this->recordedAs;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer
+ * @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 setComposer($composer)
+ public function setRecordedAs($recordedAs)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $composer = self::checkTypes($composer, $types);
+ $recordedAs = self::checkTypes($recordedAs, $types);
- $this->composer = $composer;
+ $this->recordedAs = $recordedAs;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getMusicCompositionForm()
+ public function getLyrics()
{
- return $this->musicCompositionForm;
+ return $this->lyrics;
}
/**
- * @param string $musicCompositionForm
+ * @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 setMusicCompositionForm($musicCompositionForm)
+ public function setLyrics($lyrics)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $musicCompositionForm = self::checkTypes($musicCompositionForm, $types);
+ $lyrics = self::checkTypes($lyrics, $types);
- $this->musicCompositionForm = $musicCompositionForm;
+ $this->lyrics = $lyrics;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @return string
*/
- public function getIncludedComposition()
+ public function getIswcCode()
{
- return $this->includedComposition;
+ return $this->iswcCode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $includedComposition
+ * @param string $iswcCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIncludedComposition($includedComposition)
+ public function setIswcCode($iswcCode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicComposition",
"string",
];
- $includedComposition = self::checkTypes($includedComposition, $types);
+ $iswcCode = self::checkTypes($iswcCode, $types);
- $this->includedComposition = $includedComposition;
+ $this->iswcCode = $iswcCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- public function getRecordedAs()
+ public function getIncludedComposition()
{
- return $this->recordedAs;
+ return $this->includedComposition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $recordedAs
+ * @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 setRecordedAs($recordedAs)
+ public function setIncludedComposition($includedComposition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "\OpenActive\Models\SchemaOrg\MusicComposition",
"string",
];
- $recordedAs = self::checkTypes($recordedAs, $types);
+ $includedComposition = self::checkTypes($includedComposition, $types);
- $this->recordedAs = $recordedAs;
+ $this->includedComposition = $includedComposition;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getFirstPerformance()
+ public function getLyricist()
{
- return $this->firstPerformance;
+ return $this->lyricist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Event|string $firstPerformance
+ * @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 setFirstPerformance($firstPerformance)
+ public function setLyricist($lyricist)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Event",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $firstPerformance = self::checkTypes($firstPerformance, $types);
+ $lyricist = self::checkTypes($lyricist, $types);
- $this->firstPerformance = $firstPerformance;
+ $this->lyricist = $lyricist;
}
/**
@@ -287,28 +287,27 @@ public function setMusicArrangement($musicArrangement)
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string
*/
- public function getLyrics()
+ public function getMusicCompositionForm()
{
- return $this->lyrics;
+ return $this->musicCompositionForm;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $lyrics
+ * @param string $musicCompositionForm
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLyrics($lyrics)
+ public function setMusicCompositionForm($musicCompositionForm)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $lyrics = self::checkTypes($lyrics, $types);
+ $musicCompositionForm = self::checkTypes($musicCompositionForm, $types);
- $this->lyrics = $lyrics;
+ $this->musicCompositionForm = $musicCompositionForm;
}
/**
@@ -336,28 +335,29 @@ public function setMusicalKey($musicalKey)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getLyricist()
+ public function getComposer()
{
- return $this->lyricist;
+ return $this->composer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $lyricist
+ * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $composer
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLyricist($lyricist)
+ public function setComposer($composer)
{
$types = [
"\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $lyricist = self::checkTypes($lyricist, $types);
+ $composer = self::checkTypes($composer, $types);
- $this->lyricist = $lyricist;
+ $this->composer = $composer;
}
}
diff --git a/src/Models/SchemaOrg/MusicGroup.php b/src/Models/SchemaOrg/MusicGroup.php
index 6d520149..935704aa 100644
--- a/src/Models/SchemaOrg/MusicGroup.php
+++ b/src/Models/SchemaOrg/MusicGroup.php
@@ -17,48 +17,48 @@ public static function getType()
public static function fieldList() {
$fields = [
- "tracks" => "tracks",
- "genre" => "genre",
- "musicGroupMember" => "musicGroupMember",
+ "album" => "album",
"albums" => "albums",
+ "genre" => "genre",
+ "tracks" => "tracks",
"track" => "track",
- "album" => "album",
+ "musicGroupMember" => "musicGroupMember",
];
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.
+ * A collection of music albums.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $genre;
+ protected $albums;
/**
- * A member of a music group—for example, John, Paul, George, or Ringo.
+ * Genre of the creative work, broadcast channel or group.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var string
*/
- protected $musicGroupMember;
+ protected $genre;
/**
- * A collection of music albums.
+ * A music recording (track)—usually a single song.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $albums;
+ protected $tracks;
/**
* A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
@@ -69,110 +69,110 @@ public static function fieldList() {
protected $track;
/**
- * A music album.
+ * A member of a music group—for example, John, Paul, George, or Ringo.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $album;
+ protected $musicGroupMember;
/**
- * @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;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function getGenre()
+ public function getAlbums()
{
- return $this->genre;
+ return $this->albums;
}
/**
- * @param string $genre
+ * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $albums
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGenre($genre)
+ public function setAlbums($albums)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $genre = self::checkTypes($genre, $types);
+ $albums = self::checkTypes($albums, $types);
- $this->genre = $genre;
+ $this->albums = $albums;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return string
*/
- public function getMusicGroupMember()
+ public function getGenre()
{
- return $this->musicGroupMember;
+ return $this->genre;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $musicGroupMember
+ * @param string $genre
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicGroupMember($musicGroupMember)
+ public function setGenre($genre)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $musicGroupMember = self::checkTypes($musicGroupMember, $types);
+ $genre = self::checkTypes($genre, $types);
- $this->musicGroupMember = $musicGroupMember;
+ $this->genre = $genre;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getAlbums()
+ public function getTracks()
{
- return $this->albums;
+ return $this->tracks;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $albums
+ * @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 setAlbums($albums)
+ public function setTracks($tracks)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $albums = self::checkTypes($albums, $types);
+ $tracks = self::checkTypes($tracks, $types);
- $this->albums = $albums;
+ $this->tracks = $tracks;
}
/**
@@ -202,28 +202,28 @@ public function setTrack($track)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAlbum()
+ public function getMusicGroupMember()
{
- return $this->album;
+ return $this->musicGroupMember;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $album
+ * @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 setAlbum($album)
+ public function setMusicGroupMember($musicGroupMember)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $album = self::checkTypes($album, $types);
+ $musicGroupMember = self::checkTypes($musicGroupMember, $types);
- $this->album = $album;
+ $this->musicGroupMember = $musicGroupMember;
}
}
diff --git a/src/Models/SchemaOrg/MusicPlaylist.php b/src/Models/SchemaOrg/MusicPlaylist.php
index b445413a..33e61c8b 100644
--- a/src/Models/SchemaOrg/MusicPlaylist.php
+++ b/src/Models/SchemaOrg/MusicPlaylist.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "tracks" => "tracks",
"numTracks" => "numTracks",
+ "tracks" => "tracks",
"track" => "track",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * A music recording (track)—usually a single song.
+ * The number of tracks in this album or playlist.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var int|null
*/
- protected $tracks;
+ protected $numTracks;
/**
- * The number of tracks in this album or playlist.
+ * A music recording (track)—usually a single song.
*
*
- * @var int|null
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $numTracks;
+ protected $tracks;
/**
* A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
@@ -50,53 +50,53 @@ public static function fieldList() {
protected $track;
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return int|null
*/
- public function getTracks()
+ public function getNumTracks()
{
- return $this->tracks;
+ return $this->numTracks;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks
+ * @param int|null $numTracks
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTracks($tracks)
+ public function setNumTracks($numTracks)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicRecording",
- "string",
+ "int",
+ "null",
];
- $tracks = self::checkTypes($tracks, $types);
+ $numTracks = self::checkTypes($numTracks, $types);
- $this->tracks = $tracks;
+ $this->numTracks = $numTracks;
}
/**
- * @return int|null
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getNumTracks()
+ public function getTracks()
{
- return $this->numTracks;
+ return $this->tracks;
}
/**
- * @param int|null $numTracks
+ * @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 setNumTracks($numTracks)
+ public function setTracks($tracks)
{
$types = [
- "int",
- "null",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "string",
];
- $numTracks = self::checkTypes($numTracks, $types);
+ $tracks = self::checkTypes($tracks, $types);
- $this->numTracks = $numTracks;
+ $this->tracks = $tracks;
}
/**
diff --git a/src/Models/SchemaOrg/MusicRecording.php b/src/Models/SchemaOrg/MusicRecording.php
index 9784c961..c08c7d56 100644
--- a/src/Models/SchemaOrg/MusicRecording.php
+++ b/src/Models/SchemaOrg/MusicRecording.php
@@ -17,25 +17,17 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isrcCode" => "isrcCode",
"inPlaylist" => "inPlaylist",
- "inAlbum" => "inAlbum",
- "recordingOf" => "recordingOf",
- "duration" => "duration",
+ "isrcCode" => "isrcCode",
"byArtist" => "byArtist",
+ "duration" => "duration",
+ "recordingOf" => "recordingOf",
+ "inAlbum" => "inAlbum",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The International Standard Recording Code for the recording.
- *
- *
- * @var string
- */
- protected $isrcCode;
-
/**
* The playlist to which this recording belongs.
*
@@ -45,23 +37,23 @@ public static function fieldList() {
protected $inPlaylist;
/**
- * The album to which this recording belongs.
+ * The International Standard Recording Code for the recording.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var string
*/
- protected $inAlbum;
+ protected $isrcCode;
/**
- * The composition this track is a recording of.
+ * The artist that performed this album or recording.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- protected $recordingOf;
+ protected $byArtist;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
* @var DateInterval|string|null
@@ -69,36 +61,20 @@ public static function fieldList() {
protected $duration;
/**
- * The artist that performed this album or recording.
+ * The composition this track is a recording of.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
- */
- protected $byArtist;
-
- /**
- * @return string
+ * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- public function getIsrcCode()
- {
- return $this->isrcCode;
- }
+ protected $recordingOf;
/**
- * @param string $isrcCode
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The album to which this recording belongs.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function setIsrcCode($isrcCode)
- {
- $types = [
- "string",
- ];
-
- $isrcCode = self::checkTypes($isrcCode, $types);
-
- $this->isrcCode = $isrcCode;
- }
+ protected $inAlbum;
/**
* @return \OpenActive\Models\SchemaOrg\MusicPlaylist|string
@@ -126,53 +102,53 @@ public function setInPlaylist($inPlaylist)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return string
*/
- public function getInAlbum()
+ public function getIsrcCode()
{
- return $this->inAlbum;
+ return $this->isrcCode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $inAlbum
+ * @param string $isrcCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInAlbum($inAlbum)
+ public function setIsrcCode($isrcCode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $inAlbum = self::checkTypes($inAlbum, $types);
+ $isrcCode = self::checkTypes($isrcCode, $types);
- $this->inAlbum = $inAlbum;
+ $this->isrcCode = $isrcCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
*/
- public function getRecordingOf()
+ public function getByArtist()
{
- return $this->recordingOf;
+ return $this->byArtist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $recordingOf
+ * @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 setRecordingOf($recordingOf)
+ public function setByArtist($byArtist)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicComposition",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $recordingOf = self::checkTypes($recordingOf, $types);
+ $byArtist = self::checkTypes($byArtist, $types);
- $this->recordingOf = $recordingOf;
+ $this->byArtist = $byArtist;
}
/**
@@ -202,29 +178,53 @@ public function setDuration($duration)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- public function getByArtist()
+ public function getRecordingOf()
{
- return $this->byArtist;
+ return $this->recordingOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $byArtist
+ * @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 setByArtist($byArtist)
+ public function setRecordingOf($recordingOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\MusicComposition",
"string",
];
- $byArtist = self::checkTypes($byArtist, $types);
+ $recordingOf = self::checkTypes($recordingOf, $types);
- $this->byArtist = $byArtist;
+ $this->recordingOf = $recordingOf;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ */
+ public function getInAlbum()
+ {
+ return $this->inAlbum;
+ }
+
+ /**
+ * @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 setInAlbum($inAlbum)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
+ "string",
+ ];
+
+ $inAlbum = self::checkTypes($inAlbum, $types);
+
+ $this->inAlbum = $inAlbum;
}
}
diff --git a/src/Models/SchemaOrg/MusicRelease.php b/src/Models/SchemaOrg/MusicRelease.php
index 163cea5a..e4d36a1f 100644
--- a/src/Models/SchemaOrg/MusicRelease.php
+++ b/src/Models/SchemaOrg/MusicRelease.php
@@ -19,9 +19,9 @@ public static function fieldList() {
$fields = [
"releaseOf" => "releaseOf",
"musicReleaseFormat" => "musicReleaseFormat",
+ "recordLabel" => "recordLabel",
"duration" => "duration",
"creditedTo" => "creditedTo",
- "recordLabel" => "recordLabel",
"catalogNumber" => "catalogNumber",
];
@@ -37,7 +37,7 @@ public static function fieldList() {
protected $releaseOf;
/**
- * 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,28 +45,28 @@ 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 label that issued the release.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $duration;
+ protected $recordLabel;
/**
- * 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 duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var DateInterval|string|null
*/
- protected $creditedTo;
+ protected $duration;
/**
- * 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.
@@ -127,80 +127,80 @@ public function setMusicReleaseFormat($musicReleaseFormat)
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getDuration()
+ public function getRecordLabel()
{
- return $this->duration;
+ return $this->recordLabel;
}
/**
- * @param DateInterval|string|null $duration
+ * @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 setDuration($duration)
+ public function setRecordLabel($recordLabel)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $recordLabel = self::checkTypes($recordLabel, $types);
- $this->duration = $duration;
+ $this->recordLabel = $recordLabel;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return DateInterval|string|null
*/
- public function getCreditedTo()
+ public function getDuration()
{
- return $this->creditedTo;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $creditedTo
+ * @param DateInterval|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreditedTo($creditedTo)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
+ "DateInterval",
"string",
+ "null",
];
- $creditedTo = self::checkTypes($creditedTo, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->creditedTo = $creditedTo;
+ $this->duration = $duration;
}
/**
- * @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;
}
/**
diff --git a/src/Models/SchemaOrg/Nerve.php b/src/Models/SchemaOrg/Nerve.php
index 3063b8b5..2945f64a 100644
--- a/src/Models/SchemaOrg/Nerve.php
+++ b/src/Models/SchemaOrg/Nerve.php
@@ -17,146 +17,146 @@ public static function getType()
public static function fieldList() {
$fields = [
- "sensoryUnit" => "sensoryUnit",
"branch" => "branch",
- "sourcedFrom" => "sourcedFrom",
"nerveMotor" => "nerveMotor",
+ "sensoryUnit" => "sensoryUnit",
+ "sourcedFrom" => "sourcedFrom",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The neurological pathway extension that inputs and sends information to the brain or spinal cord.
+ * The branches that delineate from the nerve bundle. Not to be confused with [[branchOf]].
*
*
- * @var \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $sensoryUnit;
+ protected $branch;
/**
- * The branches that delineate from the nerve bundle. Not to be confused with [[branchOf]].
+ * The neurological pathway extension that involves muscle control.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\Muscle|string
*/
- protected $branch;
+ protected $nerveMotor;
/**
- * The neurological pathway that originates the neurons.
+ * The neurological pathway extension that inputs and sends information to the brain or spinal cord.
*
*
- * @var \OpenActive\Models\SchemaOrg\BrainStructure|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
*/
- protected $sourcedFrom;
+ protected $sensoryUnit;
/**
- * The neurological pathway extension that involves muscle control.
+ * The neurological pathway that originates the neurons.
*
*
- * @var \OpenActive\Models\SchemaOrg\Muscle|string
+ * @var \OpenActive\Models\SchemaOrg\BrainStructure|string
*/
- protected $nerveMotor;
+ protected $sourcedFrom;
/**
- * @return \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getSensoryUnit()
+ public function getBranch()
{
- return $this->sensoryUnit;
+ return $this->branch;
}
/**
- * @param \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $sensoryUnit
+ * @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 setSensoryUnit($sensoryUnit)
+ public function setBranch($branch)
{
$types = [
- "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $sensoryUnit = self::checkTypes($sensoryUnit, $types);
+ $branch = self::checkTypes($branch, $types);
- $this->sensoryUnit = $sensoryUnit;
+ $this->branch = $branch;
}
/**
- * @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|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
*/
- public function getSourcedFrom()
+ public function getSensoryUnit()
{
- return $this->sourcedFrom;
+ return $this->sensoryUnit;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BrainStructure|string $sourcedFrom
+ * @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 setSourcedFrom($sourcedFrom)
+ public function setSensoryUnit($sensoryUnit)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BrainStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
"string",
];
- $sourcedFrom = self::checkTypes($sourcedFrom, $types);
+ $sensoryUnit = self::checkTypes($sensoryUnit, $types);
- $this->sourcedFrom = $sourcedFrom;
+ $this->sensoryUnit = $sensoryUnit;
}
/**
- * @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..8d615d9b 100644
--- a/src/Models/SchemaOrg/NewsArticle.php
+++ b/src/Models/SchemaOrg/NewsArticle.php
@@ -17,179 +17,179 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "printPage" => "printPage",
"printEdition" => "printEdition",
+ "dateline" => "dateline",
"printColumn" => "printColumn",
- "printPage" => "printPage",
"printSection" => "printSection",
- "dateline" => "dateline",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The edition of the print product in which the NewsArticle appears.
+ * 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 $printEdition;
+ protected $printPage;
/**
- * The number of the column in which the NewsArticle appears in the print edition.
+ * The edition of the print product in which the NewsArticle appears.
*
*
* @var string
*/
- protected $printColumn;
+ protected $printEdition;
/**
- * 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).
+ * 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 $printPage;
+ protected $dateline;
/**
- * If this NewsArticle appears in print, this field indicates the print section in which the article appeared.
+ * The number of the column in which the NewsArticle appears in the print edition.
*
*
* @var string
*/
- protected $printSection;
+ protected $printColumn;
/**
- * 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 print section in which the article appeared.
*
*
* @var string
*/
- protected $dateline;
+ protected $printSection;
/**
* @return string
*/
- public function getPrintEdition()
+ public function getPrintPage()
{
- return $this->printEdition;
+ return $this->printPage;
}
/**
- * @param string $printEdition
+ * @param string $printPage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrintEdition($printEdition)
+ public function setPrintPage($printPage)
{
$types = [
"string",
];
- $printEdition = self::checkTypes($printEdition, $types);
+ $printPage = self::checkTypes($printPage, $types);
- $this->printEdition = $printEdition;
+ $this->printPage = $printPage;
}
/**
* @return string
*/
- public function getPrintColumn()
+ public function getPrintEdition()
{
- return $this->printColumn;
+ return $this->printEdition;
}
/**
- * @param string $printColumn
+ * @param string $printEdition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrintColumn($printColumn)
+ public function setPrintEdition($printEdition)
{
$types = [
"string",
];
- $printColumn = self::checkTypes($printColumn, $types);
+ $printEdition = self::checkTypes($printEdition, $types);
- $this->printColumn = $printColumn;
+ $this->printEdition = $printEdition;
}
/**
* @return string
*/
- public function getPrintPage()
+ public function getDateline()
{
- return $this->printPage;
+ return $this->dateline;
}
/**
- * @param string $printPage
+ * @param string $dateline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrintPage($printPage)
+ public function setDateline($dateline)
{
$types = [
"string",
];
- $printPage = self::checkTypes($printPage, $types);
+ $dateline = self::checkTypes($dateline, $types);
- $this->printPage = $printPage;
+ $this->dateline = $dateline;
}
/**
* @return string
*/
- public function getPrintSection()
+ public function getPrintColumn()
{
- return $this->printSection;
+ return $this->printColumn;
}
/**
- * @param string $printSection
+ * @param string $printColumn
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrintSection($printSection)
+ public function setPrintColumn($printColumn)
{
$types = [
"string",
];
- $printSection = self::checkTypes($printSection, $types);
+ $printColumn = self::checkTypes($printColumn, $types);
- $this->printSection = $printSection;
+ $this->printColumn = $printColumn;
}
/**
* @return string
*/
- public function getDateline()
+ public function getPrintSection()
{
- return $this->dateline;
+ return $this->printSection;
}
/**
- * @param string $dateline
+ * @param string $printSection
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateline($dateline)
+ public function setPrintSection($printSection)
{
$types = [
"string",
];
- $dateline = self::checkTypes($dateline, $types);
+ $printSection = self::checkTypes($printSection, $types);
- $this->dateline = $dateline;
+ $this->printSection = $printSection;
}
}
diff --git a/src/Models/SchemaOrg/NewsMediaOrganization.php b/src/Models/SchemaOrg/NewsMediaOrganization.php
index fc8abd3d..ce7da7d8 100644
--- a/src/Models/SchemaOrg/NewsMediaOrganization.php
+++ b/src/Models/SchemaOrg/NewsMediaOrganization.php
@@ -17,384 +17,384 @@ public static function getType()
public static function fieldList() {
$fields = [
- "ownershipFundingInfo" => "ownershipFundingInfo",
- "correctionsPolicy" => "correctionsPolicy",
- "diversityStaffingReport" => "diversityStaffingReport",
"diversityPolicy" => "diversityPolicy",
"ethicsPolicy" => "ethicsPolicy",
- "missionCoveragePrioritiesPolicy" => "missionCoveragePrioritiesPolicy",
- "actionableFeedbackPolicy" => "actionableFeedbackPolicy",
"masthead" => "masthead",
- "unnamedSourcesPolicy" => "unnamedSourcesPolicy",
"verificationFactCheckingPolicy" => "verificationFactCheckingPolicy",
"noBylinesPolicy" => "noBylinesPolicy",
+ "unnamedSourcesPolicy" => "unnamedSourcesPolicy",
+ "correctionsPolicy" => "correctionsPolicy",
+ "ownershipFundingInfo" => "ownershipFundingInfo",
+ "diversityStaffingReport" => "diversityStaffingReport",
+ "actionableFeedbackPolicy" => "actionableFeedbackPolicy",
+ "missionCoveragePrioritiesPolicy" => "missionCoveragePrioritiesPolicy",
];
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.
+ * 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\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $ownershipFundingInfo;
+ protected $diversityPolicy;
/**
- * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.
+ * 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 $correctionsPolicy;
+ protected $ethicsPolicy;
/**
- * 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.
+ * 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 a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement explaining when authors of articles are not named in bylines.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $ethicsPolicy;
+ protected $noBylinesPolicy;
/**
- * For a [[NewsMediaOrganization]], a statement on coverage priorities, including any public agenda or stance on issues.
+ * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.
*
*
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $missionCoveragePrioritiesPolicy;
+ protected $unnamedSourcesPolicy;
/**
- * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.
+ * 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
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $actionableFeedbackPolicy;
+ protected $correctionsPolicy;
/**
- * For a [[NewsMediaOrganization]], a link to the masthead page or a page listing top editorial management.
+ * 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 string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\AboutPage
*/
- protected $masthead;
+ protected $ownershipFundingInfo;
/**
- * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.
+ * 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 \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string|\OpenActive\Models\SchemaOrg\Article
*/
- protected $unnamedSourcesPolicy;
+ protected $diversityStaffingReport;
/**
- * Disclosure about verification and fact-checking processes for a [[NewsMediaOrganization]] or other fact-checking [[Organization]].
+ * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.
*
*
* @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $verificationFactCheckingPolicy;
+ protected $actionableFeedbackPolicy;
/**
- * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement explaining when authors of articles are not named in bylines.
+ * For a [[NewsMediaOrganization]], a statement on coverage priorities, including any public agenda or stance on issues.
*
*
- * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- protected $noBylinesPolicy;
+ protected $missionCoveragePrioritiesPolicy;
/**
- * @return string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getOwnershipFundingInfo()
+ public function getDiversityPolicy()
{
- return $this->ownershipFundingInfo;
+ return $this->diversityPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork $ownershipFundingInfo
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $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",
+ "string",
];
- $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
+ $diversityPolicy = self::checkTypes($diversityPolicy, $types);
- $this->ownershipFundingInfo = $ownershipFundingInfo;
+ $this->diversityPolicy = $diversityPolicy;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getCorrectionsPolicy()
+ public function getEthicsPolicy()
{
- return $this->correctionsPolicy;
+ return $this->ethicsPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy
+ * @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 setCorrectionsPolicy($correctionsPolicy)
+ public function setEthicsPolicy($ethicsPolicy)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $correctionsPolicy = self::checkTypes($correctionsPolicy, $types);
+ $ethicsPolicy = self::checkTypes($ethicsPolicy, $types);
- $this->correctionsPolicy = $correctionsPolicy;
+ $this->ethicsPolicy = $ethicsPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Article
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDiversityStaffingReport()
+ public function getMasthead()
{
- return $this->diversityStaffingReport;
+ return $this->masthead;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport
+ * @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 setDiversityStaffingReport($diversityStaffingReport)
+ public function setMasthead($masthead)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
- "\OpenActive\Models\SchemaOrg\Article",
];
- $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types);
+ $masthead = self::checkTypes($masthead, $types);
- $this->diversityStaffingReport = $diversityStaffingReport;
+ $this->masthead = $masthead;
}
/**
* @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\CreativeWork|string
*/
- public function getEthicsPolicy()
+ public function getNoBylinesPolicy()
{
- return $this->ethicsPolicy;
+ return $this->noBylinesPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $noBylinesPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEthicsPolicy($ethicsPolicy)
+ public function setNoBylinesPolicy($noBylinesPolicy)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $ethicsPolicy = self::checkTypes($ethicsPolicy, $types);
+ $noBylinesPolicy = self::checkTypes($noBylinesPolicy, $types);
- $this->ethicsPolicy = $ethicsPolicy;
+ $this->noBylinesPolicy = $noBylinesPolicy;
}
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getMissionCoveragePrioritiesPolicy()
+ public function getUnnamedSourcesPolicy()
{
- return $this->missionCoveragePrioritiesPolicy;
+ return $this->unnamedSourcesPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $missionCoveragePrioritiesPolicy
+ * @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 setMissionCoveragePrioritiesPolicy($missionCoveragePrioritiesPolicy)
+ public function setUnnamedSourcesPolicy($unnamedSourcesPolicy)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $missionCoveragePrioritiesPolicy = self::checkTypes($missionCoveragePrioritiesPolicy, $types);
+ $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types);
- $this->missionCoveragePrioritiesPolicy = $missionCoveragePrioritiesPolicy;
+ $this->unnamedSourcesPolicy = $unnamedSourcesPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getActionableFeedbackPolicy()
+ public function getCorrectionsPolicy()
{
- return $this->actionableFeedbackPolicy;
+ return $this->correctionsPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $actionableFeedbackPolicy
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $correctionsPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActionableFeedbackPolicy($actionableFeedbackPolicy)
+ public function setCorrectionsPolicy($correctionsPolicy)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types);
+ $correctionsPolicy = self::checkTypes($correctionsPolicy, $types);
- $this->actionableFeedbackPolicy = $actionableFeedbackPolicy;
+ $this->correctionsPolicy = $correctionsPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\AboutPage
*/
- public function getMasthead()
+ public function getOwnershipFundingInfo()
{
- return $this->masthead;
+ return $this->ownershipFundingInfo;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $masthead
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\AboutPage $ownershipFundingInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMasthead($masthead)
+ public function setOwnershipFundingInfo($ownershipFundingInfo)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
+ "\OpenActive\Models\SchemaOrg\AboutPage",
];
- $masthead = self::checkTypes($masthead, $types);
+ $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
- $this->masthead = $masthead;
+ $this->ownershipFundingInfo = $ownershipFundingInfo;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string|\OpenActive\Models\SchemaOrg\Article
*/
- public function getUnnamedSourcesPolicy()
+ public function getDiversityStaffingReport()
{
- return $this->unnamedSourcesPolicy;
+ return $this->diversityStaffingReport;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy
+ * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setUnnamedSourcesPolicy($unnamedSourcesPolicy)
+ public function setDiversityStaffingReport($diversityStaffingReport)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
+ "\OpenActive\Models\SchemaOrg\Article",
];
- $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types);
+ $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types);
- $this->unnamedSourcesPolicy = $unnamedSourcesPolicy;
+ $this->diversityStaffingReport = $diversityStaffingReport;
}
/**
* @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getVerificationFactCheckingPolicy()
+ public function getActionableFeedbackPolicy()
{
- return $this->verificationFactCheckingPolicy;
+ return $this->actionableFeedbackPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $verificationFactCheckingPolicy
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $actionableFeedbackPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setVerificationFactCheckingPolicy($verificationFactCheckingPolicy)
+ public function setActionableFeedbackPolicy($actionableFeedbackPolicy)
{
$types = [
"string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $verificationFactCheckingPolicy = self::checkTypes($verificationFactCheckingPolicy, $types);
+ $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types);
- $this->verificationFactCheckingPolicy = $verificationFactCheckingPolicy;
+ $this->actionableFeedbackPolicy = $actionableFeedbackPolicy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
*/
- public function getNoBylinesPolicy()
+ public function getMissionCoveragePrioritiesPolicy()
{
- return $this->noBylinesPolicy;
+ return $this->missionCoveragePrioritiesPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $noBylinesPolicy
+ * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $missionCoveragePrioritiesPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNoBylinesPolicy($noBylinesPolicy)
+ public function setMissionCoveragePrioritiesPolicy($missionCoveragePrioritiesPolicy)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
];
- $noBylinesPolicy = self::checkTypes($noBylinesPolicy, $types);
+ $missionCoveragePrioritiesPolicy = self::checkTypes($missionCoveragePrioritiesPolicy, $types);
- $this->noBylinesPolicy = $noBylinesPolicy;
+ $this->missionCoveragePrioritiesPolicy = $missionCoveragePrioritiesPolicy;
}
}
diff --git a/src/Models/SchemaOrg/NutritionInformation.php b/src/Models/SchemaOrg/NutritionInformation.php
index ec66b0a4..a65d2f17 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",
+ "fatContent" => "fatContent",
"fiberContent" => "fiberContent",
- "unsaturatedFatContent" => "unsaturatedFatContent",
+ "servingSize" => "servingSize",
"saturatedFatContent" => "saturatedFatContent",
+ "unsaturatedFatContent" => "unsaturatedFatContent",
+ "carbohydrateContent" => "carbohydrateContent",
+ "transFatContent" => "transFatContent",
+ "calories" => "calories",
+ "sugarContent" => "sugarContent",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The number of grams of fat.
+ * The number of grams of protein.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $fatContent;
+ protected $proteinContent;
/**
- * The serving size, in terms of the number of volume or mass.
+ * The number of milligrams of sodium.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $servingSize;
+ protected $sodiumContent;
/**
- * The number of grams of protein.
+ * The number of milligrams of cholesterol.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $proteinContent;
+ protected $cholesterolContent;
/**
- * The number of calories.
+ * The number of grams of fat.
*
*
- * @var \OpenActive\Models\SchemaOrg\Energy|string
+ * @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $calories;
+ protected $fatContent;
/**
- * The number of milligrams of sodium.
+ * The number of grams of fiber.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $sodiumContent;
+ protected $fiberContent;
/**
- * The number of milligrams of cholesterol.
+ * The serving size, in terms of the number of volume or mass.
*
*
- * @var \OpenActive\Models\SchemaOrg\Mass|string
+ * @var string
*/
- protected $cholesterolContent;
+ protected $servingSize;
/**
- * The number of grams of sugar.
+ * The number of grams of saturated fat.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $sugarContent;
+ protected $saturatedFatContent;
/**
- * The number of grams of carbohydrates.
+ * The number of grams of unsaturated fat.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $carbohydrateContent;
+ protected $unsaturatedFatContent;
/**
- * The number of grams of trans fat.
+ * The number of grams of carbohydrates.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $transFatContent;
+ protected $carbohydrateContent;
/**
- * The number of grams of fiber.
+ * The number of grams of trans fat.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $fiberContent;
+ protected $transFatContent;
/**
- * The number of grams of unsaturated fat.
+ * The number of calories.
*
*
- * @var \OpenActive\Models\SchemaOrg\Mass|string
+ * @var \OpenActive\Models\SchemaOrg\Energy|string
*/
- protected $unsaturatedFatContent;
+ protected $calories;
/**
- * The number of grams of saturated fat.
+ * The number of grams of sugar.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $saturatedFatContent;
+ protected $sugarContent;
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getFatContent()
+ public function getProteinContent()
{
- return $this->fatContent;
+ return $this->proteinContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $fatContent
+ * @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 setFatContent($fatContent)
+ public function setProteinContent($proteinContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $fatContent = self::checkTypes($fatContent, $types);
+ $proteinContent = self::checkTypes($proteinContent, $types);
- $this->fatContent = $fatContent;
+ $this->proteinContent = $proteinContent;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getServingSize()
+ public function getSodiumContent()
{
- return $this->servingSize;
+ return $this->sodiumContent;
}
/**
- * @param string $servingSize
+ * @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 setServingSize($servingSize)
+ public function setSodiumContent($sodiumContent)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $servingSize = self::checkTypes($servingSize, $types);
+ $sodiumContent = self::checkTypes($sodiumContent, $types);
- $this->servingSize = $servingSize;
+ $this->sodiumContent = $sodiumContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getProteinContent()
+ public function getCholesterolContent()
{
- return $this->proteinContent;
+ return $this->cholesterolContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $proteinContent
+ * @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 setProteinContent($proteinContent)
+ public function setCholesterolContent($cholesterolContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $proteinContent = self::checkTypes($proteinContent, $types);
+ $cholesterolContent = self::checkTypes($cholesterolContent, $types);
- $this->proteinContent = $proteinContent;
+ $this->cholesterolContent = $cholesterolContent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Energy|string
+ * @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getCalories()
+ public function getFatContent()
{
- return $this->calories;
+ return $this->fatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Energy|string $calories
+ * @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 setCalories($calories)
+ public function setFatContent($fatContent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Energy",
+ "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $calories = self::checkTypes($calories, $types);
+ $fatContent = self::checkTypes($fatContent, $types);
- $this->calories = $calories;
+ $this->fatContent = $fatContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getSodiumContent()
+ public function getFiberContent()
{
- return $this->sodiumContent;
+ return $this->fiberContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $sodiumContent
+ * @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 setSodiumContent($sodiumContent)
+ public function setFiberContent($fiberContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $sodiumContent = self::checkTypes($sodiumContent, $types);
+ $fiberContent = self::checkTypes($fiberContent, $types);
- $this->sodiumContent = $sodiumContent;
+ $this->fiberContent = $fiberContent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Mass|string
+ * @return string
*/
- public function getCholesterolContent()
+ public function getServingSize()
{
- return $this->cholesterolContent;
+ return $this->servingSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $cholesterolContent
+ * @param string $servingSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCholesterolContent($cholesterolContent)
+ public function setServingSize($servingSize)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $cholesterolContent = self::checkTypes($cholesterolContent, $types);
+ $servingSize = self::checkTypes($servingSize, $types);
- $this->cholesterolContent = $cholesterolContent;
+ $this->servingSize = $servingSize;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getSugarContent()
+ public function getSaturatedFatContent()
{
- return $this->sugarContent;
+ return $this->saturatedFatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $sugarContent
+ * @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 setSugarContent($sugarContent)
+ public function setSaturatedFatContent($saturatedFatContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $sugarContent = self::checkTypes($sugarContent, $types);
+ $saturatedFatContent = self::checkTypes($saturatedFatContent, $types);
- $this->sugarContent = $sugarContent;
+ $this->saturatedFatContent = $saturatedFatContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getCarbohydrateContent()
+ public function getUnsaturatedFatContent()
{
- return $this->carbohydrateContent;
+ return $this->unsaturatedFatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $carbohydrateContent
+ * @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 setCarbohydrateContent($carbohydrateContent)
+ public function setUnsaturatedFatContent($unsaturatedFatContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $carbohydrateContent = self::checkTypes($carbohydrateContent, $types);
+ $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types);
- $this->carbohydrateContent = $carbohydrateContent;
+ $this->unsaturatedFatContent = $unsaturatedFatContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getTransFatContent()
+ public function getCarbohydrateContent()
{
- return $this->transFatContent;
+ return $this->carbohydrateContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $transFatContent
+ * @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 setTransFatContent($transFatContent)
+ public function setCarbohydrateContent($carbohydrateContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $transFatContent = self::checkTypes($transFatContent, $types);
+ $carbohydrateContent = self::checkTypes($carbohydrateContent, $types);
- $this->transFatContent = $transFatContent;
+ $this->carbohydrateContent = $carbohydrateContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getFiberContent()
+ public function getTransFatContent()
{
- return $this->fiberContent;
+ return $this->transFatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $fiberContent
+ * @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 setFiberContent($fiberContent)
+ public function setTransFatContent($transFatContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $fiberContent = self::checkTypes($fiberContent, $types);
+ $transFatContent = self::checkTypes($transFatContent, $types);
- $this->fiberContent = $fiberContent;
+ $this->transFatContent = $transFatContent;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Mass|string
+ * @return \OpenActive\Models\SchemaOrg\Energy|string
*/
- public function getUnsaturatedFatContent()
+ public function getCalories()
{
- return $this->unsaturatedFatContent;
+ return $this->calories;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $unsaturatedFatContent
+ * @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 setUnsaturatedFatContent($unsaturatedFatContent)
+ public function setCalories($calories)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Mass",
+ "\OpenActive\Models\SchemaOrg\Energy",
"string",
];
- $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types);
+ $calories = self::checkTypes($calories, $types);
- $this->unsaturatedFatContent = $unsaturatedFatContent;
+ $this->calories = $calories;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getSaturatedFatContent()
+ public function getSugarContent()
{
- return $this->saturatedFatContent;
+ return $this->sugarContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $saturatedFatContent
+ * @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 setSaturatedFatContent($saturatedFatContent)
+ public function setSugarContent($sugarContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $saturatedFatContent = self::checkTypes($saturatedFatContent, $types);
+ $sugarContent = self::checkTypes($sugarContent, $types);
- $this->saturatedFatContent = $saturatedFatContent;
+ $this->sugarContent = $sugarContent;
}
}
diff --git a/src/Models/SchemaOrg/Observation.php b/src/Models/SchemaOrg/Observation.php
index 95b9a4a5..e766b565 100644
--- a/src/Models/SchemaOrg/Observation.php
+++ b/src/Models/SchemaOrg/Observation.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Observation extends \OpenActive\Models\SchemaOrg\Intangible
+class Observation extends \OpenActive\Models\SchemaOrg\QuantitativeValue
{
/**
* @return string[]|null
@@ -17,39 +17,60 @@ public static function getType()
public static function fieldList() {
$fields = [
- "measuredValue" => "measuredValue",
- "observedNode" => "observedNode",
"measuredProperty" => "measuredProperty",
- "observationDate" => "observationDate",
+ "measurementMethod" => "measurementMethod",
+ "measurementQualifier" => "measurementQualifier",
+ "variableMeasured" => "variableMeasured",
"marginOfError" => "marginOfError",
+ "observationDate" => "observationDate",
+ "observationAbout" => "observationAbout",
+ "measurementDenominator" => "measurementDenominator",
+ "measurementTechnique" => "measurementTechnique",
+ "observationPeriod" => "observationPeriod",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The measuredValue of an [[Observation]].
+ * 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 \OpenActive\Models\SchemaOrg\DataType
+ * @var string|\OpenActive\Enums\PropertyEnumeration|null
*/
- protected $measuredValue;
+ protected $measuredProperty;
/**
- * The observedNode of an [[Observation]], often a [[StatisticalPopulation]].
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
*
*
- * @var \OpenActive\Models\SchemaOrg\StatisticalPopulation|string
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
*/
- protected $observedNode;
+ protected $measurementMethod;
/**
- * 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).
+ * Provides additional qualification to an observation. For example, a GDP observation measures the Nominal value.
*
*
- * @var string|\OpenActive\Enums\PropertyEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Enumeration|string
*/
- protected $measuredProperty;
+ protected $measurementQualifier;
+
+ /**
+ * 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\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|null
+ */
+ protected $variableMeasured;
+
+ /**
+ * A [[marginOfError]] for an [[Observation]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ protected $marginOfError;
/**
* The observationDate of an [[Observation]].
@@ -60,86 +81,172 @@ public static function fieldList() {
protected $observationDate;
/**
- * A marginOfError for an [[Observation]].
+ * The [[observationAbout]] property identifies an entity, often a [[Place]], associated with an [[Observation]].
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\Thing|string
*/
- protected $marginOfError;
+ protected $observationAbout;
+
+ /**
+ * Identifies the denominator variable when an observation represents a ratio or percentage.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\StatisticalVariable|string
+ */
+ protected $measurementDenominator;
+
+ /**
+ * 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 string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ protected $measurementTechnique;
+
+ /**
+ * 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
+ */
+ protected $observationPeriod;
+
+ /**
+ * @return string|\OpenActive\Enums\PropertyEnumeration|null
+ */
+ public function getMeasuredProperty()
+ {
+ return $this->measuredProperty;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\DataType
+ * @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 getMeasuredValue()
+ public function setMeasuredProperty($measuredProperty)
{
- return $this->measuredValue;
+ $types = [
+ "string",
+ "\OpenActive\Enums\PropertyEnumeration",
+ "null",
+ ];
+
+ $measuredProperty = self::checkTypes($measuredProperty, $types);
+
+ $this->measuredProperty = $measuredProperty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataType $measuredValue
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementMethod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMeasuredValue($measuredValue)
+ public function setMeasurementMethod($measurementMethod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataType",
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
];
- $measuredValue = self::checkTypes($measuredValue, $types);
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
- $this->measuredValue = $measuredValue;
+ $this->measurementMethod = $measurementMethod;
}
/**
- * @return \OpenActive\Models\SchemaOrg\StatisticalPopulation|string
+ * @return \OpenActive\Models\SchemaOrg\Enumeration|string
*/
- public function getObservedNode()
+ public function getMeasurementQualifier()
{
- return $this->observedNode;
+ return $this->measurementQualifier;
}
/**
- * @param \OpenActive\Models\SchemaOrg\StatisticalPopulation|string $observedNode
+ * @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 setObservedNode($observedNode)
+ public function setMeasurementQualifier($measurementQualifier)
{
$types = [
- "\OpenActive\Models\SchemaOrg\StatisticalPopulation",
+ "\OpenActive\Models\SchemaOrg\Enumeration",
"string",
];
- $observedNode = self::checkTypes($observedNode, $types);
+ $measurementQualifier = self::checkTypes($measurementQualifier, $types);
- $this->observedNode = $observedNode;
+ $this->measurementQualifier = $measurementQualifier;
}
/**
- * @return string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|null
*/
- public function getMeasuredProperty()
+ public function getVariableMeasured()
{
- return $this->measuredProperty;
+ return $this->variableMeasured;
}
/**
- * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty
+ * @param \OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|null $variableMeasured
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMeasuredProperty($measuredProperty)
+ public function setVariableMeasured($variableMeasured)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
"string",
"\OpenActive\Enums\PropertyEnumeration",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
"null",
];
- $measuredProperty = self::checkTypes($measuredProperty, $types);
+ $variableMeasured = self::checkTypes($variableMeasured, $types);
- $this->measuredProperty = $measuredProperty;
+ $this->variableMeasured = $variableMeasured;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ */
+ public function getMarginOfError()
+ {
+ return $this->marginOfError;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $marginOfError
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMarginOfError($marginOfError)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
+ ];
+
+ $marginOfError = self::checkTypes($marginOfError, $types);
+
+ $this->marginOfError = $marginOfError;
}
/**
@@ -168,28 +275,105 @@ public function setObservationDate($observationDate)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\Thing|string
*/
- public function getMarginOfError()
+ public function getObservationAbout()
{
- return $this->marginOfError;
+ return $this->observationAbout;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $marginOfError
+ * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\Thing|string $observationAbout
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMarginOfError($marginOfError)
+ public function setObservationAbout($observationAbout)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Thing",
"string",
];
- $marginOfError = self::checkTypes($marginOfError, $types);
+ $observationAbout = self::checkTypes($observationAbout, $types);
- $this->marginOfError = $marginOfError;
+ $this->observationAbout = $observationAbout;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\StatisticalVariable|string
+ */
+ public function getMeasurementDenominator()
+ {
+ return $this->measurementDenominator;
+ }
+
+ /**
+ * @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 setMeasurementDenominator($measurementDenominator)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
+ "string",
+ ];
+
+ $measurementDenominator = self::checkTypes($measurementDenominator, $types);
+
+ $this->measurementDenominator = $measurementDenominator;
+ }
+
+ /**
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null
+ */
+ public function getMeasurementTechnique()
+ {
+ return $this->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.
+ */
+ public function setMeasurementTechnique($measurementTechnique)
+ {
+ $types = [
+ "string",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "null",
+ ];
+
+ $measurementTechnique = self::checkTypes($measurementTechnique, $types);
+
+ $this->measurementTechnique = $measurementTechnique;
+ }
+
+ /**
+ * @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 = [
+ "string",
+ ];
+
+ $observationPeriod = self::checkTypes($observationPeriod, $types);
+
+ $this->observationPeriod = $observationPeriod;
}
}
diff --git a/src/Models/SchemaOrg/Occupation.php b/src/Models/SchemaOrg/Occupation.php
index ea516342..c4654c56 100644
--- a/src/Models/SchemaOrg/Occupation.php
+++ b/src/Models/SchemaOrg/Occupation.php
@@ -17,284 +17,284 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "qualifications" => "qualifications",
+ "experienceRequirements" => "experienceRequirements",
"estimatedSalary" => "estimatedSalary",
+ "skills" => "skills",
+ "occupationalCategory" => "occupationalCategory",
"responsibilities" => "responsibilities",
"occupationLocation" => "occupationLocation",
- "experienceRequirements" => "experienceRequirements",
"educationRequirements" => "educationRequirements",
- "skills" => "skills",
- "qualifications" => "qualifications",
- "occupationalCategory" => "occupationalCategory",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * 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.
+ * Specific qualifications required for this role or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $estimatedSalary;
+ protected $qualifications;
/**
- * Responsibilities associated with this role or Occupation.
+ * Description of skills and experience needed for the position or Occupation.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements|string
*/
- protected $responsibilities;
+ protected $experienceRequirements;
/**
- * The region/country for which this occupational description is appropriate. Note that educational requirements and qualifications can vary between jurisdictions.
+ * 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\AdministrativeArea|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|null
*/
- protected $occupationLocation;
+ protected $estimatedSalary;
/**
- * Description of skills and experience needed for the position or Occupation.
+ * A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is either claimed by a person, an organization or desired or required to fulfill a role or to work in an occupation.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- protected $experienceRequirements;
+ protected $skills;
/**
- * 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 \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- protected $educationRequirements;
+ protected $occupationalCategory;
/**
- * 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.
+ * Responsibilities associated with this role or Occupation.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @var string
*/
- protected $skills;
+ protected $responsibilities;
/**
- * Specific qualifications required for this role or Occupation.
+ * The region/country for which this occupational description is appropriate. Note that educational requirements and qualifications can vary between jurisdictions.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- protected $qualifications;
+ protected $occupationLocation;
/**
- * 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.
+ * Educational background needed for the position or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- protected $occupationalCategory;
+ protected $educationRequirements;
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getEstimatedSalary()
+ public function getQualifications()
{
- return $this->estimatedSalary;
+ return $this->qualifications;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary
+ * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEstimatedSalary($estimatedSalary)
+ public function setQualifications($qualifications)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "Number",
- "null",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $estimatedSalary = self::checkTypes($estimatedSalary, $types);
+ $qualifications = self::checkTypes($qualifications, $types);
- $this->estimatedSalary = $estimatedSalary;
+ $this->qualifications = $qualifications;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements|string
*/
- public function getResponsibilities()
+ public function getExperienceRequirements()
{
- return $this->responsibilities;
+ return $this->experienceRequirements;
}
/**
- * @param string $responsibilities
+ * @param \OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements|string $experienceRequirements
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setResponsibilities($responsibilities)
+ public function setExperienceRequirements($experienceRequirements)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
"string",
];
- $responsibilities = self::checkTypes($responsibilities, $types);
+ $experienceRequirements = self::checkTypes($experienceRequirements, $types);
- $this->responsibilities = $responsibilities;
+ $this->experienceRequirements = $experienceRequirements;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|null
*/
- public function getOccupationLocation()
+ public function getEstimatedSalary()
{
- return $this->occupationLocation;
+ return $this->estimatedSalary;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $occupationLocation
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|null $estimatedSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationLocation($occupationLocation)
+ public function setEstimatedSalary($estimatedSalary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AdministrativeArea",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
+ "null",
];
- $occupationLocation = self::checkTypes($occupationLocation, $types);
+ $estimatedSalary = self::checkTypes($estimatedSalary, $types);
- $this->occupationLocation = $occupationLocation;
+ $this->estimatedSalary = $estimatedSalary;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
*/
- public function getExperienceRequirements()
+ public function getSkills()
{
- return $this->experienceRequirements;
+ return $this->skills;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements
+ * @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 setExperienceRequirements($experienceRequirements)
+ public function setSkills($skills)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $experienceRequirements = self::checkTypes($experienceRequirements, $types);
+ $skills = self::checkTypes($skills, $types);
- $this->experienceRequirements = $experienceRequirements;
+ $this->skills = $skills;
}
/**
- * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- public function getEducationRequirements()
+ public function getOccupationalCategory()
{
- return $this->educationRequirements;
+ return $this->occupationalCategory;
}
/**
- * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements
+ * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEducationRequirements($educationRequirements)
+ public function setOccupationalCategory($occupationalCategory)
{
$types = [
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
];
- $educationRequirements = self::checkTypes($educationRequirements, $types);
+ $occupationalCategory = self::checkTypes($occupationalCategory, $types);
- $this->educationRequirements = $educationRequirements;
+ $this->occupationalCategory = $occupationalCategory;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm
+ * @return string
*/
- public function getSkills()
+ public function getResponsibilities()
{
- return $this->skills;
+ return $this->responsibilities;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills
+ * @param string $responsibilities
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSkills($skills)
+ public function setResponsibilities($responsibilities)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $skills = self::checkTypes($skills, $types);
+ $responsibilities = self::checkTypes($responsibilities, $types);
- $this->skills = $skills;
+ $this->responsibilities = $responsibilities;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string
*/
- public function getQualifications()
+ public function getOccupationLocation()
{
- return $this->qualifications;
+ return $this->occupationLocation;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
+ * @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 setQualifications($qualifications)
+ public function setOccupationLocation($occupationLocation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AdministrativeArea",
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $qualifications = self::checkTypes($qualifications, $types);
+ $occupationLocation = self::checkTypes($occupationLocation, $types);
- $this->qualifications = $qualifications;
+ $this->occupationLocation = $occupationLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
*/
- public function getOccupationalCategory()
+ public function getEducationRequirements()
{
- return $this->occupationalCategory;
+ return $this->educationRequirements;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @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 setOccupationalCategory($occupationalCategory)
+ public function setEducationRequirements($educationRequirements)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
"string",
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $educationRequirements = self::checkTypes($educationRequirements, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->educationRequirements = $educationRequirements;
}
}
diff --git a/src/Models/SchemaOrg/Offer.php b/src/Models/SchemaOrg/Offer.php
index 34933e9b..8e295f49 100644
--- a/src/Models/SchemaOrg/Offer.php
+++ b/src/Models/SchemaOrg/Offer.php
@@ -17,155 +17,198 @@ public static function getType()
public static function fieldList() {
$fields = [
- "hasAdultConsideration" => "hasAdultConsideration",
- "gtin12" => "gtin12",
- "review" => "review",
"itemOffered" => "itemOffered",
- "category" => "category",
+ "availabilityStarts" => "availabilityStarts",
+ "eligibleDuration" => "eligibleDuration",
+ "additionalProperty" => "additionalProperty",
+ "price" => "price",
+ "mobileUrl" => "mobileUrl",
+ "availability" => "availability",
+ "serialNumber" => "serialNumber",
+ "addOn" => "addOn",
+ "hasMeasurement" => "hasMeasurement",
+ "availableDeliveryMethod" => "availableDeliveryMethod",
+ "ineligibleRegion" => "ineligibleRegion",
"priceValidUntil" => "priceValidUntil",
- "shippingDetails" => "shippingDetails",
- "mpn" => "mpn",
- "includesObject" => "includesObject",
- "businessFunction" => "businessFunction",
- "itemCondition" => "itemCondition",
- "gtin" => "gtin",
+ "validForMemberTier" => "validForMemberTier",
+ "isFamilyFriendly" => "isFamilyFriendly",
+ "leaseLength" => "leaseLength",
"eligibleQuantity" => "eligibleQuantity",
- "acceptedPaymentMethod" => "acceptedPaymentMethod",
+ "eligibleCustomerType" => "eligibleCustomerType",
"warranty" => "warranty",
+ "asin" => "asin",
+ "checkoutPageURLTemplate" => "checkoutPageURLTemplate",
+ "gtin13" => "gtin13",
"seller" => "seller",
- "ineligibleRegion" => "ineligibleRegion",
- "leaseLength" => "leaseLength",
- "aggregateRating" => "aggregateRating",
+ "hasAdultConsideration" => "hasAdultConsideration",
+ "areaServed" => "areaServed",
+ "validThrough" => "validThrough",
+ "mpn" => "mpn",
+ "priceSpecification" => "priceSpecification",
"offeredBy" => "offeredBy",
+ "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy",
+ "includesObject" => "includesObject",
+ "acceptedPaymentMethod" => "acceptedPaymentMethod",
+ "category" => "category",
+ "hasGS1DigitalLink" => "hasGS1DigitalLink",
+ "gtin8" => "gtin8",
+ "reviews" => "reviews",
+ "gtin" => "gtin",
+ "review" => "review",
+ "priceCurrency" => "priceCurrency",
+ "gtin14" => "gtin14",
+ "shippingDetails" => "shippingDetails",
+ "inventoryLevel" => "inventoryLevel",
+ "businessFunction" => "businessFunction",
+ "itemCondition" => "itemCondition",
"deliveryLeadTime" => "deliveryLeadTime",
- "availableDeliveryMethod" => "availableDeliveryMethod",
+ "eligibleRegion" => "eligibleRegion",
+ "gtin12" => "gtin12",
"validFrom" => "validFrom",
"availabilityEnds" => "availabilityEnds",
- "eligibleRegion" => "eligibleRegion",
- "hasMeasurement" => "hasMeasurement",
- "gtin8" => "gtin8",
- "inventoryLevel" => "inventoryLevel",
- "sku" => "sku",
- "addOn" => "addOn",
- "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy",
+ "aggregateRating" => "aggregateRating",
"advanceBookingRequirement" => "advanceBookingRequirement",
- "gtin14" => "gtin14",
- "priceCurrency" => "priceCurrency",
- "eligibleTransactionVolume" => "eligibleTransactionVolume",
- "areaServed" => "areaServed",
- "eligibleCustomerType" => "eligibleCustomerType",
- "availability" => "availability",
- "gtin13" => "gtin13",
- "reviews" => "reviews",
- "isFamilyFriendly" => "isFamilyFriendly",
- "validThrough" => "validThrough",
- "priceSpecification" => "priceSpecification",
- "price" => "price",
- "availabilityStarts" => "availabilityStarts",
- "eligibleDuration" => "eligibleDuration",
"availableAtOrFrom" => "availableAtOrFrom",
- "serialNumber" => "serialNumber",
+ "sku" => "sku",
+ "eligibleTransactionVolume" => "eligibleTransactionVolume",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Used to tag an item to be intended or suitable for consumption or use by adults only.
+ * 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\Enums\SchemaOrg\AdultOrientedEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\AggregateOffer|string
*/
- protected $hasAdultConsideration;
+ protected $itemOffered;
/**
- * 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 beginning of the availability of the product or service included in the offer.
*
*
- * @var string
+ * @var Date|DateTime|string|null
*/
- protected $gtin12;
+ protected $availabilityStarts;
/**
- * A review of the item.
+ * The duration for which the given offer is valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\Review|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $review;
+ protected $eligibleDuration;
/**
- * 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.
+ * 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 \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\PropertyValue|string
*/
- protected $itemOffered;
+ protected $additionalProperty;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.\n\nUsage guidelines:\n\n* Use the [[priceCurrency]] property (with 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") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as '$' in the value.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.\n* Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.
+ *
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var string|Number|null
*/
- protected $category;
+ protected $price;
/**
- * The date after which the price is no longer available.
+ * 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 Date|null
+ * @var string
*/
- protected $priceValidUntil;
+ protected $mobileUrl;
/**
- * Indicates information about the shipping policies and options associated with an [[Offer]].
+ * The availability of this item—for example In stock, Out of stock, Pre-order, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\OfferShippingDetails|string
+ * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- protected $shippingDetails;
+ protected $availability;
/**
- * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
+ * 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 string
*/
- protected $mpn;
+ protected $serialNumber;
/**
- * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
+ * 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\TypeAndQuantityNode|string
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $includesObject;
+ protected $addOn;
/**
- * 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.
+ * 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\Enums\SchemaOrg\BusinessFunction|null
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $businessFunction;
+ protected $hasMeasurement;
/**
- * 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 delivery method(s) available for this offer.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
*/
- protected $itemCondition;
+ protected $availableDeliveryMethod;
/**
- * 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 \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
*/
- protected $gtin;
+ protected $ineligibleRegion;
+
+ /**
+ * The date after which the price is no longer available.
+ *
+ *
+ * @var Date|null
+ */
+ protected $priceValidUntil;
+
+ /**
+ * The membership program tier an Offer (or a PriceSpecification, OfferShippingDetails, or MerchantReturnPolicy under an Offer) is valid for.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|string
+ */
+ protected $validForMemberTier;
+
+ /**
+ * Indicates whether this content is family friendly.
+ *
+ *
+ * @var bool|null
+ */
+ protected $isFamilyFriendly;
+
+ /**
+ * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null
+ */
+ protected $leaseLength;
/**
* 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.
@@ -176,12 +219,12 @@ public static function fieldList() {
protected $eligibleQuantity;
/**
- * The payment method(s) accepted by seller for this offer.
+ * The type(s) of customers for which the given offer is valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null
+ * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null
*/
- protected $acceptedPaymentMethod;
+ protected $eligibleCustomerType;
/**
* The warranty promise(s) included in the offer.
@@ -192,153 +235,169 @@ public static function fieldList() {
protected $warranty;
/**
- * 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 URL template (RFC 6570) for a checkout page for an offer. This approach allows merchants to specify a URL for online checkout of the offered product, by interpolating parameters such as the logged in user ID, product ID, quantity, discount code etc. Parameter naming and standardization are not specified here.
*
*
- * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var string
*/
- protected $ineligibleRegion;
+ protected $checkoutPageURLTemplate;
/**
- * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
+ * 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\QuantitativeValue|DateInterval|string|null
+ * @var string
*/
- protected $leaseLength;
+ protected $gtin13;
/**
- * The overall rating, based on a collection of reviews or ratings, of the item.
+ * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $aggregateRating;
+ protected $seller;
/**
- * A pointer to the organization or person making the offer.
+ * Used to tag an item to be intended or suitable for consumption or use by adults only.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null
*/
- protected $offeredBy;
+ protected $hasAdultConsideration;
/**
- * 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 geographic area where a service or offered item is provided.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea
*/
- protected $deliveryLeadTime;
+ protected $areaServed;
/**
- * The delivery method(s) available for this offer.
+ * 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\DeliveryMethod|null
+ * @var Date|DateTime|null
*/
- protected $availableDeliveryMethod;
+ protected $validThrough;
/**
- * 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.
+ * One or more detailed price specifications, indicating the unit price and delivery or payment charges.
*
*
- * @var Date|DateTime|string|null
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $availabilityEnds;
+ protected $priceSpecification;
/**
- * 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]].
- *
+ * A pointer to the organization or person making the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $eligibleRegion;
+ protected $offeredBy;
/**
- * 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.
+ * Specifies a MerchantReturnPolicy that may be applicable.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string
*/
- protected $hasMeasurement;
+ protected $hasMerchantReturnPolicy;
/**
- * 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.
+ * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
*/
- protected $gtin8;
+ protected $includesObject;
/**
- * 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 string|\OpenActive\Models\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit
*/
- 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.
+ * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null
*/
- protected $sku;
+ protected $category;
/**
- * 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 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]].