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: Other item types should be adapted similarly. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var string */ - protected $addOn; + protected $hasGS1DigitalLink; /** - * Specifies a MerchantReturnPolicy that may be applicable. + * 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 \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @var string */ - protected $hasMerchantReturnPolicy; + protected $gtin8; /** - * The amount of time that is required between accepting the offer and the actual usage of the resource or service. + * Review of the item. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $advanceBookingRequirement; + protected $reviews; /** - * 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. + * 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 string */ - protected $gtin14; + protected $gtin; /** - * 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 Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * A review of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Review|string + */ + protected $review; + + /** + * 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 @@ -346,101 +405,101 @@ public static function fieldList() { protected $priceCurrency; /** - * 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 GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var string */ - protected $eligibleTransactionVolume; + protected $gtin14; /** - * The geographic area where a service or offered item is provided. + * Indicates information about the shipping policies and options associated with an [[Offer]]. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\OfferShippingDetails|string */ - protected $areaServed; + protected $shippingDetails; /** - * The type(s) of customers for which the given offer is valid. + * The current approximate inventory level for the item or items. * * - * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $eligibleCustomerType; + protected $inventoryLevel; /** - * The availability of this item—for example In stock, Out of stock, Pre-order, etc. + * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell. * * - * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null + * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - protected $availability; + protected $businessFunction; /** - * 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. + * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - protected $gtin13; + protected $itemCondition; /** - * Review of the item. + * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $reviews; + protected $deliveryLeadTime; /** - * Indicates whether this content is family friendly. + * 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 bool|null + * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place */ - protected $isFamilyFriendly; + 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 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 Tradings 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 similiar Unicode symbols. - * + * The end of the availability of the product or service included in the offer. * * - * @var string|Number|null + * @var Date|DateTime|string|null */ - protected $price; + protected $availabilityEnds; /** - * The beginning of the availability of the product or service included in the offer. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var Date|DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $availabilityStarts; + protected $aggregateRating; /** - * 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). @@ -448,320 +507,432 @@ public static function fieldList() { * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $availableAtOrFrom; + protected $availableAtOrFrom; + + /** + * 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 $sku; + + /** + * 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 + */ + 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->itemOffered; + } + + /** + * @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 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", + ]; + + $itemOffered = self::checkTypes($itemOffered, $types); + + $this->itemOffered = $itemOffered; + } + + /** + * @return Date|DateTime|string|null + */ + public function getAvailabilityStarts() + { + return $this->availabilityStarts; + } + + /** + * @param Date|DateTime|string|null $availabilityStarts + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAvailabilityStarts($availabilityStarts) + { + $types = [ + "Date", + "DateTime", + "Time", + "null", + ]; + + $availabilityStarts = self::checkTypes($availabilityStarts, $types); + + $this->availabilityStarts = $availabilityStarts; + } + + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getEligibleDuration() + { + return $this->eligibleDuration; + } + + /** + * @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 setEligibleDuration($eligibleDuration) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $eligibleDuration = self::checkTypes($eligibleDuration, $types); + + $this->eligibleDuration = $eligibleDuration; + } + + /** + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + */ + public function getAdditionalProperty() + { + return $this->additionalProperty; + } /** - * 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 + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $serialNumber; + public function setAdditionalProperty($additionalProperty) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", + ]; + + $additionalProperty = self::checkTypes($additionalProperty, $types); + + $this->additionalProperty = $additionalProperty; + } /** - * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null + * @return string|Number|null */ - public function getHasAdultConsideration() + public function getPrice() { - return $this->hasAdultConsideration; + return $this->price; } /** - * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration + * @param string|Number|null $price * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasAdultConsideration($hasAdultConsideration) + public function setPrice($price) { $types = [ - "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", + "string", + "Number", "null", ]; - $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); + $price = self::checkTypes($price, $types); - $this->hasAdultConsideration = $hasAdultConsideration; + $this->price = $price; } /** * @return string */ - public function getGtin12() + public function getMobileUrl() { - return $this->gtin12; + return $this->mobileUrl; } /** - * @param string $gtin12 + * @param string $mobileUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin12($gtin12) + public function setMobileUrl($mobileUrl) { $types = [ "string", ]; - $gtin12 = self::checkTypes($gtin12, $types); + $mobileUrl = self::checkTypes($mobileUrl, $types); - $this->gtin12 = $gtin12; + $this->mobileUrl = $mobileUrl; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null */ - public function getReview() + public function getAvailability() { - return $this->review; + return $this->availability; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @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 setReview($review) + public function setAvailability($availability) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", - "string", + "\OpenActive\Enums\SchemaOrg\ItemAvailability", + "null", ]; - $review = self::checkTypes($review, $types); + $availability = self::checkTypes($availability, $types); - $this->review = $review; + $this->availability = $availability; } /** - * @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 string */ - public function getItemOffered() + public function getSerialNumber() { - return $this->itemOffered; + return $this->serialNumber; } /** - * @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 string $serialNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemOffered($itemOffered) + public function setSerialNumber($serialNumber) { $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", ]; - $itemOffered = self::checkTypes($itemOffered, $types); + $serialNumber = self::checkTypes($serialNumber, $types); - $this->itemOffered = $itemOffered; + $this->serialNumber = $serialNumber; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getCategory() + public function getAddOn() { - return $this->category; + return $this->addOn; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param \OpenActive\Models\SchemaOrg\Offer|string $addOn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setAddOn($addOn) { $types = [ + "\OpenActive\Models\SchemaOrg\Offer", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", ]; - $category = self::checkTypes($category, $types); + $addOn = self::checkTypes($addOn, $types); - $this->category = $category; + $this->addOn = $addOn; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getPriceValidUntil() + public function getHasMeasurement() { - return $this->priceValidUntil; + return $this->hasMeasurement; } /** - * @param Date|null $priceValidUntil + * @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 setPriceValidUntil($priceValidUntil) + public function setHasMeasurement($hasMeasurement) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $priceValidUntil = self::checkTypes($priceValidUntil, $types); + $hasMeasurement = self::checkTypes($hasMeasurement, $types); - $this->priceValidUntil = $priceValidUntil; + $this->hasMeasurement = $hasMeasurement; } /** - * @return \OpenActive\Models\SchemaOrg\OfferShippingDetails|string + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getShippingDetails() + public function getAvailableDeliveryMethod() { - return $this->shippingDetails; + return $this->availableDeliveryMethod; } /** - * @param \OpenActive\Models\SchemaOrg\OfferShippingDetails|string $shippingDetails + * @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 setShippingDetails($shippingDetails) + public function setAvailableDeliveryMethod($availableDeliveryMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferShippingDetails", - "string", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", ]; - $shippingDetails = self::checkTypes($shippingDetails, $types); + $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); - $this->shippingDetails = $shippingDetails; + $this->availableDeliveryMethod = $availableDeliveryMethod; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape */ - public function getMpn() + public function getIneligibleRegion() { - return $this->mpn; + return $this->ineligibleRegion; } /** - * @param string $mpn + * @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 setMpn($mpn) + public function setIneligibleRegion($ineligibleRegion) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", + "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $mpn = self::checkTypes($mpn, $types); + $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - $this->mpn = $mpn; + $this->ineligibleRegion = $ineligibleRegion; } /** - * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string + * @return Date|null */ - public function getIncludesObject() + public function getPriceValidUntil() { - return $this->includesObject; + return $this->priceValidUntil; } /** - * @param \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string $includesObject + * @param Date|null $priceValidUntil * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludesObject($includesObject) + public function setPriceValidUntil($priceValidUntil) { $types = [ - "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode", - "string", + "Date", + "null", ]; - $includesObject = self::checkTypes($includesObject, $types); + $priceValidUntil = self::checkTypes($priceValidUntil, $types); - $this->includesObject = $includesObject; + $this->priceValidUntil = $priceValidUntil; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null + * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - public function getBusinessFunction() + public function getValidForMemberTier() { - return $this->businessFunction; + return $this->validForMemberTier; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction + * @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 setBusinessFunction($businessFunction) + public function setValidForMemberTier($validForMemberTier) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessFunction", - "null", + "\OpenActive\Models\SchemaOrg\MemberProgramTier", + "string", ]; - $businessFunction = self::checkTypes($businessFunction, $types); + $validForMemberTier = self::checkTypes($validForMemberTier, $types); - $this->businessFunction = $businessFunction; + $this->validForMemberTier = $validForMemberTier; } /** - * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @return bool|null */ - public function getItemCondition() + public function getIsFamilyFriendly() { - return $this->itemCondition; + return $this->isFamilyFriendly; } /** - * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition + * @param bool|null $isFamilyFriendly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemCondition($itemCondition) + public function setIsFamilyFriendly($isFamilyFriendly) { $types = [ - "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "bool", "null", ]; - $itemCondition = self::checkTypes($itemCondition, $types); + $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); - $this->itemCondition = $itemCondition; + $this->isFamilyFriendly = $isFamilyFriendly; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null */ - public function getGtin() + public function getLeaseLength() { - return $this->gtin; + return $this->leaseLength; } /** - * @param string $gtin + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin($gtin) + public function setLeaseLength($leaseLength) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "DateInterval", "string", + "null", ]; - $gtin = self::checkTypes($gtin, $types); + $leaseLength = self::checkTypes($leaseLength, $types); - $this->gtin = $gtin; + $this->leaseLength = $leaseLength; } /** @@ -790,30 +961,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; } /** @@ -842,459 +1011,480 @@ 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 getCheckoutPageURLTemplate() { - return $this->ineligibleRegion; + return $this->checkoutPageURLTemplate; + } + + /** + * @param string $checkoutPageURLTemplate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCheckoutPageURLTemplate($checkoutPageURLTemplate) + { + $types = [ + "string", + ]; + + $checkoutPageURLTemplate = self::checkTypes($checkoutPageURLTemplate, $types); + + $this->checkoutPageURLTemplate = $checkoutPageURLTemplate; + } + + /** + * @return string + */ + public function getGtin13() + { + 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|DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getLeaseLength() + public function getSeller() { - return $this->leaseLength; + return $this->seller; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength + * @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 setLeaseLength($leaseLength) + public function setSeller($seller) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "DateInterval", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "null", ]; - $leaseLength = self::checkTypes($leaseLength, $types); + $seller = self::checkTypes($seller, $types); - $this->leaseLength = $leaseLength; + $this->seller = $seller; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null */ - public function getAggregateRating() + public function getHasAdultConsideration() { - return $this->aggregateRating; + return $this->hasAdultConsideration; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setHasAdultConsideration($hasAdultConsideration) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", - "string", + "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", + "null", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); - $this->aggregateRating = $aggregateRating; + $this->hasAdultConsideration = $hasAdultConsideration; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea */ - public function getOfferedBy() + public function getAreaServed() { - return $this->offeredBy; + return $this->areaServed; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $offeredBy + * @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 setOfferedBy($offeredBy) + public function setAreaServed($areaServed) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", ]; - $offeredBy = self::checkTypes($offeredBy, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->offeredBy = $offeredBy; + $this->areaServed = $areaServed; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Date|DateTime|null */ - public function getDeliveryLeadTime() + public function getValidThrough() { - return $this->deliveryLeadTime; + return $this->validThrough; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime + * @param Date|DateTime|null $validThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeliveryLeadTime($deliveryLeadTime) + public function setValidThrough($validThrough) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Date", + "DateTime", + "null", ]; - $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); + $validThrough = self::checkTypes($validThrough, $types); - $this->deliveryLeadTime = $deliveryLeadTime; + $this->validThrough = $validThrough; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return string */ - public function getAvailableDeliveryMethod() + public function getMpn() { - return $this->availableDeliveryMethod; + return $this->mpn; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod + * @param string $mpn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableDeliveryMethod($availableDeliveryMethod) + public function setMpn($mpn) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "string", ]; - $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); + $mpn = self::checkTypes($mpn, $types); - $this->availableDeliveryMethod = $availableDeliveryMethod; + $this->mpn = $mpn; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getValidFrom() + public function getPriceSpecification() { - return $this->validFrom; + return $this->priceSpecification; } /** - * @param Date|DateTime|null $validFrom + * @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 setValidFrom($validFrom) + public function setPriceSpecification($priceSpecification) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", ]; - $validFrom = self::checkTypes($validFrom, $types); + $priceSpecification = self::checkTypes($priceSpecification, $types); - $this->validFrom = $validFrom; + $this->priceSpecification = $priceSpecification; } /** - * @return Date|DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getAvailabilityEnds() + public function getOfferedBy() { - return $this->availabilityEnds; + return $this->offeredBy; } /** - * @param Date|DateTime|string|null $availabilityEnds + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $offeredBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailabilityEnds($availabilityEnds) + public function setOfferedBy($offeredBy) { $types = [ - "Date", - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $availabilityEnds = self::checkTypes($availabilityEnds, $types); + $offeredBy = self::checkTypes($offeredBy, $types); - $this->availabilityEnds = $availabilityEnds; + $this->offeredBy = $offeredBy; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - public function getEligibleRegion() + public function getHasMerchantReturnPolicy() { - return $this->eligibleRegion; + return $this->hasMerchantReturnPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion + * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleRegion($eligibleRegion) + public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $eligibleRegion = self::checkTypes($eligibleRegion, $types); + $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); - $this->eligibleRegion = $eligibleRegion; + $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string */ - public function getHasMeasurement() + public function getIncludesObject() { - return $this->hasMeasurement; + return $this->includesObject; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @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 setHasMeasurement($hasMeasurement) + public function setIncludesObject($includesObject) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode", "string", ]; - $hasMeasurement = self::checkTypes($hasMeasurement, $types); + $includesObject = self::checkTypes($includesObject, $types); - $this->hasMeasurement = $hasMeasurement; + $this->includesObject = $includesObject; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit */ - public function getGtin8() + public function getAcceptedPaymentMethod() { - return $this->gtin8; + return $this->acceptedPaymentMethod; } /** - * @param string $gtin8 + * @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 setGtin8($gtin8) + public function setAcceptedPaymentMethod($acceptedPaymentMethod) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\PaymentMethod", + "\OpenActive\Models\SchemaOrg\LoanOrCredit", ]; - $gtin8 = self::checkTypes($gtin8, $types); + $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); - $this->gtin8 = $gtin8; + $this->acceptedPaymentMethod = $acceptedPaymentMethod; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null */ - public function getInventoryLevel() + public function getCategory() { - return $this->inventoryLevel; + return $this->category; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel + * @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 setInventoryLevel($inventoryLevel) + public function setCategory($category) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", "string", + "null", ]; - $inventoryLevel = self::checkTypes($inventoryLevel, $types); + $category = self::checkTypes($category, $types); - $this->inventoryLevel = $inventoryLevel; + $this->category = $category; } /** * @return string */ - public function getSku() + public function getHasGS1DigitalLink() { - return $this->sku; + return $this->hasGS1DigitalLink; } /** - * @param string $sku + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSku($sku) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ "string", ]; - $sku = self::checkTypes($sku, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->sku = $sku; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return string */ - public function getAddOn() + public function getGtin8() { - return $this->addOn; + return $this->gtin8; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $addOn + * @param string $gtin8 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddOn($addOn) + public function setGtin8($gtin8) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $addOn = self::checkTypes($addOn, $types); + $gtin8 = self::checkTypes($gtin8, $types); - $this->addOn = $addOn; + $this->gtin8 = $gtin8; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getHasMerchantReturnPolicy() + public function getReviews() { - return $this->hasMerchantReturnPolicy; + return $this->reviews; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy + * @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 setHasMerchantReturnPolicy($hasMerchantReturnPolicy) + public function setReviews($reviews) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); + $reviews = self::checkTypes($reviews, $types); - $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; + $this->reviews = $reviews; } /** - * @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; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getGtin14() + public function getReview() { - return $this->gtin14; + return $this->review; } /** - * @param string $gtin14 + * @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 setGtin14($gtin14) + public function setReview($review) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $gtin14 = self::checkTypes($gtin14, $types); + $review = self::checkTypes($review, $types); - $this->gtin14 = $gtin14; + $this->review = $review; } /** @@ -1322,308 +1512,305 @@ public function setPriceCurrency($priceCurrency) } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return string */ - public function getEligibleTransactionVolume() + public function getGtin14() { - return $this->eligibleTransactionVolume; + return $this->gtin14; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume + * @param string $gtin14 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleTransactionVolume($eligibleTransactionVolume) + public function setGtin14($gtin14) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); + $gtin14 = self::checkTypes($gtin14, $types); - $this->eligibleTransactionVolume = $eligibleTransactionVolume; + $this->gtin14 = $gtin14; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\OfferShippingDetails|string */ - public function getAreaServed() + public function getShippingDetails() { - return $this->areaServed; + return $this->shippingDetails; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param \OpenActive\Models\SchemaOrg\OfferShippingDetails|string $shippingDetails * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setShippingDetails($shippingDetails) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\OfferShippingDetails", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $areaServed = self::checkTypes($areaServed, $types); + $shippingDetails = self::checkTypes($shippingDetails, $types); - $this->areaServed = $areaServed; + $this->shippingDetails = $shippingDetails; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEligibleCustomerType() + public function getInventoryLevel() { - return $this->eligibleCustomerType; + return $this->inventoryLevel; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType + * @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 setEligibleCustomerType($eligibleCustomerType) + public function setInventoryLevel($inventoryLevel) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessEntityType", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types); + $inventoryLevel = self::checkTypes($inventoryLevel, $types); - $this->eligibleCustomerType = $eligibleCustomerType; + $this->inventoryLevel = $inventoryLevel; } /** - * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null + * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - public function getAvailability() + public function getBusinessFunction() { - return $this->availability; + return $this->businessFunction; } /** - * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability + * @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 setAvailability($availability) + public function setBusinessFunction($businessFunction) { $types = [ - "\OpenActive\Enums\SchemaOrg\ItemAvailability", + "\OpenActive\Enums\SchemaOrg\BusinessFunction", "null", ]; - $availability = self::checkTypes($availability, $types); + $businessFunction = self::checkTypes($businessFunction, $types); - $this->availability = $availability; + $this->businessFunction = $businessFunction; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - public function getGtin13() + public function getItemCondition() { - return $this->gtin13; + return $this->itemCondition; } /** - * @param string $gtin13 + * @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 setGtin13($gtin13) + public function setItemCondition($itemCondition) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "null", ]; - $gtin13 = self::checkTypes($gtin13, $types); + $itemCondition = self::checkTypes($itemCondition, $types); - $this->gtin13 = $gtin13; + $this->itemCondition = $itemCondition; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getReviews() + public function getDeliveryLeadTime() { - return $this->reviews; + return $this->deliveryLeadTime; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @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 setReviews($reviews) + public function setDeliveryLeadTime($deliveryLeadTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); - $this->reviews = $reviews; + $this->deliveryLeadTime = $deliveryLeadTime; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place */ - public function getIsFamilyFriendly() + public function getEligibleRegion() { - return $this->isFamilyFriendly; + return $this->eligibleRegion; } /** - * @param bool|null $isFamilyFriendly + * @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 setIsFamilyFriendly($isFamilyFriendly) + public function setEligibleRegion($eligibleRegion) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\GeoShape", + "string", + "\OpenActive\Models\SchemaOrg\Place", ]; - $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); + $eligibleRegion = self::checkTypes($eligibleRegion, $types); - $this->isFamilyFriendly = $isFamilyFriendly; + $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 string|Number|null + * @return Date|DateTime|string|null */ - public function getPrice() + public function getAvailabilityEnds() { - return $this->price; + return $this->availabilityEnds; } /** - * @param string|Number|null $price + * @param Date|DateTime|string|null $availabilityEnds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrice($price) + public function setAvailabilityEnds($availabilityEnds) { $types = [ - "string", - "Number", + "Date", + "DateTime", + "Time", "null", ]; - $price = self::checkTypes($price, $types); + $availabilityEnds = self::checkTypes($availabilityEnds, $types); - $this->price = $price; + $this->availabilityEnds = $availabilityEnds; } /** - * @return Date|DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getAvailabilityStarts() + public function getAggregateRating() { - return $this->availabilityStarts; + return $this->aggregateRating; } /** - * @param Date|DateTime|string|null $availabilityStarts + * @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 setAvailabilityStarts($availabilityStarts) + public function setAggregateRating($aggregateRating) { $types = [ - "Date", - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\AggregateRating", + "string", ]; - $availabilityStarts = self::checkTypes($availabilityStarts, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->availabilityStarts = $availabilityStarts; + $this->aggregateRating = $aggregateRating; } /** * @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; } /** @@ -1654,25 +1841,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/OfferShippingDetails.php b/src/Models/SchemaOrg/OfferShippingDetails.php index 7d7eba60..67d48408 100644 --- a/src/Models/SchemaOrg/OfferShippingDetails.php +++ b/src/Models/SchemaOrg/OfferShippingDetails.php @@ -17,33 +17,47 @@ public static function getType() public static function fieldList() { $fields = [ + "shippingRate" => "shippingRate", + "validForMemberTier" => "validForMemberTier", "shippingDestination" => "shippingDestination", - "doesNotShip" => "doesNotShip", "shippingSettingsLink" => "shippingSettingsLink", "transitTimeLabel" => "transitTimeLabel", - "shippingLabel" => "shippingLabel", "deliveryTime" => "deliveryTime", - "shippingRate" => "shippingRate", + "height" => "height", + "width" => "width", + "weight" => "weight", + "depth" => "depth", + "doesNotShip" => "doesNotShip", + "shippingLabel" => "shippingLabel", + "shippingOrigin" => "shippingOrigin", ]; return array_merge(parent::fieldList(), $fields); } /** - * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges. + * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. * * - * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $shippingDestination; + protected $shippingRate; /** - * Indicates when shipping to a particular [[shippingDestination]] is not available. + * The membership program tier an Offer (or a PriceSpecification, OfferShippingDetails, or MerchantReturnPolicy under an Offer) is valid for. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - protected $doesNotShip; + protected $validForMemberTier; + + /** + * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + protected $shippingDestination; /** * Link to a page containing [[ShippingRateSettings]] and [[DeliveryTimeSettings]] details. @@ -61,6 +75,54 @@ public static function fieldList() { */ protected $transitTimeLabel; + /** + * The total delay between the receipt of the order and the goods reaching the final customer. + * + * + * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + */ + protected $deliveryTime; + + /** + * The height of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $height; + + /** + * The width of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $width; + + /** + * The weight of the product or person. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $weight; + + /** + * The depth of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + */ + protected $depth; + + /** + * Indicates when shipping to a particular [[shippingDestination]] is not available. + * + * + * @var bool|null + */ + protected $doesNotShip; + /** * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). * @@ -70,69 +132,86 @@ public static function fieldList() { protected $shippingLabel; /** - * The total delay between the receipt of the order and the goods reaching the final customer. + * Indicates the origin of a shipment, i.e. where it should be coming from. * * - * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - protected $deliveryTime; + protected $shippingOrigin; /** - * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. - * - * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $shippingRate; + public function getShippingRate() + { + return $this->shippingRate; + } /** - * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function getShippingDestination() + public function setShippingRate($shippingRate) { - return $this->shippingDestination; + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", + ]; + + $shippingRate = self::checkTypes($shippingRate, $types); + + $this->shippingRate = $shippingRate; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingDestination + * @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 setShippingDestination($shippingDestination) + public function setValidForMemberTier($validForMemberTier) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedRegion", + "\OpenActive\Models\SchemaOrg\MemberProgramTier", "string", ]; - $shippingDestination = self::checkTypes($shippingDestination, $types); + $validForMemberTier = self::checkTypes($validForMemberTier, $types); - $this->shippingDestination = $shippingDestination; + $this->validForMemberTier = $validForMemberTier; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - public function getDoesNotShip() + public function getShippingDestination() { - return $this->doesNotShip; + return $this->shippingDestination; } /** - * @param bool|null $doesNotShip + * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingDestination * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoesNotShip($doesNotShip) + public function setShippingDestination($shippingDestination) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\DefinedRegion", + "string", ]; - $doesNotShip = self::checkTypes($doesNotShip, $types); + $shippingDestination = self::checkTypes($shippingDestination, $types); - $this->doesNotShip = $doesNotShip; + $this->shippingDestination = $shippingDestination; } /** @@ -184,77 +263,205 @@ public function setTransitTimeLabel($transitTimeLabel) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string */ - public function getShippingLabel() + public function getDeliveryTime() { - return $this->shippingLabel; + return $this->deliveryTime; } /** - * @param string $shippingLabel + * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingLabel($shippingLabel) + public function setDeliveryTime($deliveryTime) { $types = [ + "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime", "string", ]; - $shippingLabel = self::checkTypes($shippingLabel, $types); + $deliveryTime = self::checkTypes($deliveryTime, $types); - $this->shippingLabel = $shippingLabel; + $this->deliveryTime = $deliveryTime; } /** - * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getDeliveryTime() + public function getHeight() { - return $this->deliveryTime; + return $this->height; } /** - * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime + * @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 setDeliveryTime($deliveryTime) + public function setHeight($height) { $types = [ - "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $deliveryTime = self::checkTypes($deliveryTime, $types); + $height = self::checkTypes($height, $types); - $this->deliveryTime = $deliveryTime; + $this->height = $height; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getShippingRate() + public function getWidth() { - return $this->shippingRate; + return $this->width; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate + * @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 setShippingRate($shippingRate) + public function setWidth($width) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $shippingRate = self::checkTypes($shippingRate, $types); + $width = self::checkTypes($width, $types); - $this->shippingRate = $shippingRate; + $this->width = $width; + } + + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getWeight() + { + return $this->weight; + } + + /** + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setWeight($weight) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $weight = self::checkTypes($weight, $types); + + $this->weight = $weight; + } + + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + */ + public function getDepth() + { + return $this->depth; + } + + /** + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $depth + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDepth($depth) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Distance", + "string", + ]; + + $depth = self::checkTypes($depth, $types); + + $this->depth = $depth; + } + + /** + * @return bool|null + */ + public function getDoesNotShip() + { + return $this->doesNotShip; + } + + /** + * @param bool|null $doesNotShip + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDoesNotShip($doesNotShip) + { + $types = [ + "bool", + "null", + ]; + + $doesNotShip = self::checkTypes($doesNotShip, $types); + + $this->doesNotShip = $doesNotShip; + } + + /** + * @return string + */ + public function getShippingLabel() + { + return $this->shippingLabel; + } + + /** + * @param string $shippingLabel + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingLabel($shippingLabel) + { + $types = [ + "string", + ]; + + $shippingLabel = self::checkTypes($shippingLabel, $types); + + $this->shippingLabel = $shippingLabel; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + public function getShippingOrigin() + { + return $this->shippingOrigin; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingOrigin + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingOrigin($shippingOrigin) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedRegion", + "string", + ]; + + $shippingOrigin = self::checkTypes($shippingOrigin, $types); + + $this->shippingOrigin = $shippingOrigin; } } diff --git a/src/Models/SchemaOrg/OpeningHoursSpecification.php b/src/Models/SchemaOrg/OpeningHoursSpecification.php index c6833643..0cf5a650 100644 --- a/src/Models/SchemaOrg/OpeningHoursSpecification.php +++ b/src/Models/SchemaOrg/OpeningHoursSpecification.php @@ -17,39 +17,39 @@ public static function getType() public static function fieldList() { $fields = [ - "closes" => "closes", "dayOfWeek" => "dayOfWeek", - "validFrom" => "validFrom", - "opens" => "opens", + "closes" => "closes", "validThrough" => "validThrough", + "opens" => "opens", + "validFrom" => "validFrom", ]; return array_merge(parent::fieldList(), $fields); } /** - * The closing hour of the place or service on the given day(s) of the week. + * The day of the week for which these opening hours are valid. * * - * @var string|null + * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null */ - protected $closes; + protected $dayOfWeek; /** - * The day of the week for which these opening hours are valid. + * The closing hour of the place or service on the given day(s) of the week. * * - * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null + * @var string|null */ - protected $dayOfWeek; + protected $closes; /** - * 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 opening hour of the place or service on the given day(s) of the week. @@ -60,77 +60,77 @@ public static function fieldList() { protected $opens; /** - * 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 string|null + * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null */ - public function getCloses() + public function getDayOfWeek() { - return $this->closes; + return $this->dayOfWeek; } /** - * @param string|null $closes + * @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 setCloses($closes) + public function setDayOfWeek($dayOfWeek) { $types = [ - "Time", + "\OpenActive\Enums\SchemaOrg\DayOfWeek", "null", ]; - $closes = self::checkTypes($closes, $types); + $dayOfWeek = self::checkTypes($dayOfWeek, $types); - $this->closes = $closes; + $this->dayOfWeek = $dayOfWeek; } /** - * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null + * @return string|null */ - public function getDayOfWeek() + public function getCloses() { - return $this->dayOfWeek; + return $this->closes; } /** - * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|null $dayOfWeek + * @param string|null $closes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDayOfWeek($dayOfWeek) + public function setCloses($closes) { $types = [ - "\OpenActive\Enums\SchemaOrg\DayOfWeek", + "Time", "null", ]; - $dayOfWeek = self::checkTypes($dayOfWeek, $types); + $closes = self::checkTypes($closes, $types); - $this->dayOfWeek = $dayOfWeek; + $this->closes = $closes; } /** * @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", @@ -138,9 +138,9 @@ public function setValidFrom($validFrom) "null", ]; - $validFrom = self::checkTypes($validFrom, $types); + $validThrough = self::checkTypes($validThrough, $types); - $this->validFrom = $validFrom; + $this->validThrough = $validThrough; } /** @@ -171,17 +171,17 @@ public function setOpens($opens) /** * @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", @@ -189,9 +189,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/Order.php b/src/Models/SchemaOrg/Order.php index 45189e75..4903ce1f 100644 --- a/src/Models/SchemaOrg/Order.php +++ b/src/Models/SchemaOrg/Order.php @@ -17,80 +17,80 @@ public static function getType() public static function fieldList() { $fields = [ - "orderDelivery" => "orderDelivery", - "billingAddress" => "billingAddress", "acceptedOffer" => "acceptedOffer", + "customer" => "customer", + "isGift" => "isGift", + "paymentMethod" => "paymentMethod", + "paymentUrl" => "paymentUrl", "merchant" => "merchant", - "orderStatus" => "orderStatus", - "confirmationNumber" => "confirmationNumber", "partOfInvoice" => "partOfInvoice", - "orderNumber" => "orderNumber", - "seller" => "seller", - "customer" => "customer", "paymentDueDate" => "paymentDueDate", "broker" => "broker", - "discountCode" => "discountCode", "discount" => "discount", - "paymentMethodId" => "paymentMethodId", - "paymentUrl" => "paymentUrl", - "discountCurrency" => "discountCurrency", - "paymentDue" => "paymentDue", "orderDate" => "orderDate", - "isGift" => "isGift", + "paymentMethodId" => "paymentMethodId", "orderedItem" => "orderedItem", - "paymentMethod" => "paymentMethod", + "paymentDue" => "paymentDue", + "seller" => "seller", + "discountCurrency" => "discountCurrency", + "orderDelivery" => "orderDelivery", + "billingAddress" => "billingAddress", + "confirmationNumber" => "confirmationNumber", + "orderStatus" => "orderStatus", + "discountCode" => "discountCode", + "orderNumber" => "orderNumber", ]; return array_merge(parent::fieldList(), $fields); } /** - * The delivery of the parcel related to this order or order item. + * The offer(s) -- e.g., product, quantity and price combinations -- included in the order. * * - * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $orderDelivery; + protected $acceptedOffer; /** - * The billing address for the order. + * Party placing the order or paying the invoice. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $billingAddress; + protected $customer; /** - * The offer(s) -- e.g., product, quantity and price combinations -- included in the order. + * Indicates whether the offer was accepted as a gift for someone other than the buyer. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var bool|null */ - protected $acceptedOffer; + protected $isGift; /** - * 'merchant' is an out-dated term for 'seller'. + * The name of the credit card or other method of payment for the order. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string|\OpenActive\Models\SchemaOrg\PaymentMethod */ - protected $merchant; + protected $paymentMethod; /** - * The current status of the order. + * The URL for sending a payment. * * - * @var \OpenActive\Models\SchemaOrg\OrderStatus|string + * @var string */ - protected $orderStatus; + protected $paymentUrl; /** - * A number that confirms the given order or payment has been received. + * 'merchant' is an out-dated term for 'seller'. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $confirmationNumber; + protected $merchant; /** * The order is being paid as part of the referenced Invoice. @@ -101,273 +101,274 @@ public static function fieldList() { protected $partOfInvoice; /** - * The identifier of the transaction. + * The date that payment is due. * * - * @var string + * @var Date|DateTime|null */ - protected $orderNumber; + protected $paymentDueDate; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $seller; + protected $broker; /** - * Party placing the order or paying the invoice. + * Any discount applied (to an Order). * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string|Number|null */ - protected $customer; + protected $discount; /** - * The date that payment is due. + * Date order was placed. * * * @var Date|DateTime|null */ - protected $paymentDueDate; + protected $orderDate; /** - * 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. + * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $broker; + protected $paymentMethodId; /** - * Code used to redeem a discount. + * The item ordered. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string */ - protected $discountCode; + protected $orderedItem; /** - * Any discount applied (to an Order). + * The date that payment is due. * * - * @var string|Number|null + * @var DateTime|null */ - protected $discount; + protected $paymentDue; /** - * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $paymentMethodId; + protected $seller; /** - * The URL for sending a payment. + * The currency of the discount.\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 $paymentUrl; + protected $discountCurrency; /** - * The currency of the discount.\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 delivery of the parcel related to this order or order item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string */ - protected $discountCurrency; + protected $orderDelivery; /** - * The date that payment is due. + * The billing address for the order. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $paymentDue; + protected $billingAddress; /** - * Date order was placed. + * A number that confirms the given order or payment has been received. * * - * @var Date|DateTime|null + * @var string */ - protected $orderDate; + protected $confirmationNumber; /** - * Was the offer accepted as a gift for someone other than the buyer. + * The current status of the order. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\OrderStatus|string */ - protected $isGift; + protected $orderStatus; /** - * The item ordered. + * Code used to redeem a discount. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @var string */ - protected $orderedItem; + protected $discountCode; /** - * The name of the credit card or other method of payment for the order. + * The identifier of the transaction. * * - * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @var string */ - protected $paymentMethod; + protected $orderNumber; /** - * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getOrderDelivery() + public function getAcceptedOffer() { - return $this->orderDelivery; + return $this->acceptedOffer; } /** - * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery + * @param \OpenActive\Models\SchemaOrg\Offer|string $acceptedOffer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderDelivery($orderDelivery) + public function setAcceptedOffer($acceptedOffer) { $types = [ - "\OpenActive\Models\SchemaOrg\ParcelDelivery", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $orderDelivery = self::checkTypes($orderDelivery, $types); + $acceptedOffer = self::checkTypes($acceptedOffer, $types); - $this->orderDelivery = $orderDelivery; + $this->acceptedOffer = $acceptedOffer; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getBillingAddress() + public function getCustomer() { - return $this->billingAddress; + return $this->customer; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $billingAddress + * @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 setBillingAddress($billingAddress) + public function setCustomer($customer) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $billingAddress = self::checkTypes($billingAddress, $types); + $customer = self::checkTypes($customer, $types); - $this->billingAddress = $billingAddress; + $this->customer = $customer; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return bool|null */ - public function getAcceptedOffer() + public function getIsGift() { - return $this->acceptedOffer; + return $this->isGift; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $acceptedOffer + * @param bool|null $isGift * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcceptedOffer($acceptedOffer) + public function setIsGift($isGift) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "string", + "bool", + "null", ]; - $acceptedOffer = self::checkTypes($acceptedOffer, $types); + $isGift = self::checkTypes($isGift, $types); - $this->acceptedOffer = $acceptedOffer; + $this->isGift = $isGift; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\PaymentMethod */ - public function getMerchant() + public function getPaymentMethod() { - return $this->merchant; + return $this->paymentMethod; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $merchant + * @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 setMerchant($merchant) + public function setPaymentMethod($paymentMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\PaymentMethod", ]; - $merchant = self::checkTypes($merchant, $types); + $paymentMethod = self::checkTypes($paymentMethod, $types); - $this->merchant = $merchant; + $this->paymentMethod = $paymentMethod; } /** - * @return \OpenActive\Models\SchemaOrg\OrderStatus|string + * @return string */ - public function getOrderStatus() + public function getPaymentUrl() { - return $this->orderStatus; + return $this->paymentUrl; } /** - * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderStatus + * @param string $paymentUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderStatus($orderStatus) + public function setPaymentUrl($paymentUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\OrderStatus", "string", ]; - $orderStatus = self::checkTypes($orderStatus, $types); + $paymentUrl = self::checkTypes($paymentUrl, $types); - $this->orderStatus = $orderStatus; + $this->paymentUrl = $paymentUrl; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getConfirmationNumber() + public function getMerchant() { - return $this->confirmationNumber; + return $this->merchant; } /** - * @param string $confirmationNumber + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $merchant * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setConfirmationNumber($confirmationNumber) + public function setMerchant($merchant) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $confirmationNumber = self::checkTypes($confirmationNumber, $types); + $merchant = self::checkTypes($merchant, $types); - $this->confirmationNumber = $confirmationNumber; + $this->merchant = $merchant; } /** @@ -396,43 +397,45 @@ public function setPartOfInvoice($partOfInvoice) } /** - * @return string + * @return Date|DateTime|null */ - public function getOrderNumber() + public function getPaymentDueDate() { - return $this->orderNumber; + return $this->paymentDueDate; } /** - * @param string $orderNumber + * @param Date|DateTime|null $paymentDueDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderNumber($orderNumber) + public function setPaymentDueDate($paymentDueDate) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $orderNumber = self::checkTypes($orderNumber, $types); + $paymentDueDate = self::checkTypes($paymentDueDate, $types); - $this->orderNumber = $orderNumber; + $this->paymentDueDate = $paymentDueDate; } /** * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSeller() + public function getBroker() { - return $this->seller; + return $this->broker; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @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 setSeller($seller) + public function setBroker($broker) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", @@ -440,51 +443,51 @@ public function setSeller($seller) "string", ]; - $seller = self::checkTypes($seller, $types); + $broker = self::checkTypes($broker, $types); - $this->seller = $seller; + $this->broker = $broker; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string|Number|null */ - public function getCustomer() + public function getDiscount() { - return $this->customer; + return $this->discount; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer + * @param string|Number|null $discount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCustomer($customer) + public function setDiscount($discount) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", + "Number", + "null", ]; - $customer = self::checkTypes($customer, $types); + $discount = self::checkTypes($discount, $types); - $this->customer = $customer; + $this->discount = $discount; } /** * @return Date|DateTime|null */ - public function getPaymentDueDate() + public function getOrderDate() { - return $this->paymentDueDate; + return $this->orderDate; } /** - * @param Date|DateTime|null $paymentDueDate + * @param Date|DateTime|null $orderDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentDueDate($paymentDueDate) + public function setOrderDate($orderDate) { $types = [ "Date", @@ -492,285 +495,282 @@ public function setPaymentDueDate($paymentDueDate) "null", ]; - $paymentDueDate = self::checkTypes($paymentDueDate, $types); + $orderDate = self::checkTypes($orderDate, $types); - $this->paymentDueDate = $paymentDueDate; + $this->orderDate = $orderDate; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getBroker() + public function getPaymentMethodId() { - return $this->broker; + return $this->paymentMethodId; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker + * @param string $paymentMethodId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroker($broker) + public function setPaymentMethodId($paymentMethodId) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $broker = self::checkTypes($broker, $types); + $paymentMethodId = self::checkTypes($paymentMethodId, $types); - $this->broker = $broker; + $this->paymentMethodId = $paymentMethodId; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string */ - public function getDiscountCode() + public function getOrderedItem() { - return $this->discountCode; + return $this->orderedItem; } /** - * @param string $discountCode + * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string $orderedItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscountCode($discountCode) + public function setOrderedItem($orderedItem) { $types = [ + "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\OrderItem", "string", ]; - $discountCode = self::checkTypes($discountCode, $types); + $orderedItem = self::checkTypes($orderedItem, $types); - $this->discountCode = $discountCode; + $this->orderedItem = $orderedItem; } /** - * @return string|Number|null + * @return DateTime|null */ - public function getDiscount() + public function getPaymentDue() { - return $this->discount; + return $this->paymentDue; } /** - * @param string|Number|null $discount + * @param DateTime|null $paymentDue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscount($discount) + public function setPaymentDue($paymentDue) { $types = [ - "string", - "Number", + "DateTime", "null", ]; - $discount = self::checkTypes($discount, $types); + $paymentDue = self::checkTypes($paymentDue, $types); - $this->discount = $discount; + $this->paymentDue = $paymentDue; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getPaymentMethodId() + public function getSeller() { - return $this->paymentMethodId; + return $this->seller; } /** - * @param string $paymentMethodId + * @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 setPaymentMethodId($paymentMethodId) + public function setSeller($seller) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $paymentMethodId = self::checkTypes($paymentMethodId, $types); + $seller = self::checkTypes($seller, $types); - $this->paymentMethodId = $paymentMethodId; + $this->seller = $seller; } /** * @return string */ - public function getPaymentUrl() + public function getDiscountCurrency() { - return $this->paymentUrl; + return $this->discountCurrency; } /** - * @param string $paymentUrl + * @param string $discountCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentUrl($paymentUrl) + public function setDiscountCurrency($discountCurrency) { $types = [ "string", ]; - $paymentUrl = self::checkTypes($paymentUrl, $types); + $discountCurrency = self::checkTypes($discountCurrency, $types); - $this->paymentUrl = $paymentUrl; + $this->discountCurrency = $discountCurrency; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string */ - public function getDiscountCurrency() + public function getOrderDelivery() { - return $this->discountCurrency; + return $this->orderDelivery; } /** - * @param string $discountCurrency + * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscountCurrency($discountCurrency) + public function setOrderDelivery($orderDelivery) { $types = [ + "\OpenActive\Models\SchemaOrg\ParcelDelivery", "string", ]; - $discountCurrency = self::checkTypes($discountCurrency, $types); + $orderDelivery = self::checkTypes($orderDelivery, $types); - $this->discountCurrency = $discountCurrency; + $this->orderDelivery = $orderDelivery; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getPaymentDue() + public function getBillingAddress() { - return $this->paymentDue; + return $this->billingAddress; } /** - * @param DateTime|null $paymentDue + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $billingAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentDue($paymentDue) + public function setBillingAddress($billingAddress) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\PostalAddress", + "string", ]; - $paymentDue = self::checkTypes($paymentDue, $types); + $billingAddress = self::checkTypes($billingAddress, $types); - $this->paymentDue = $paymentDue; + $this->billingAddress = $billingAddress; } /** - * @return Date|DateTime|null + * @return string */ - public function getOrderDate() + public function getConfirmationNumber() { - return $this->orderDate; + return $this->confirmationNumber; } /** - * @param Date|DateTime|null $orderDate + * @param string $confirmationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderDate($orderDate) + public function setConfirmationNumber($confirmationNumber) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $orderDate = self::checkTypes($orderDate, $types); + $confirmationNumber = self::checkTypes($confirmationNumber, $types); - $this->orderDate = $orderDate; + $this->confirmationNumber = $confirmationNumber; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\OrderStatus|string */ - public function getIsGift() + public function getOrderStatus() { - return $this->isGift; + return $this->orderStatus; } /** - * @param bool|null $isGift + * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsGift($isGift) + public function setOrderStatus($orderStatus) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\OrderStatus", + "string", ]; - $isGift = self::checkTypes($isGift, $types); + $orderStatus = self::checkTypes($orderStatus, $types); - $this->isGift = $isGift; + $this->orderStatus = $orderStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @return string */ - public function getOrderedItem() + public function getDiscountCode() { - return $this->orderedItem; + return $this->discountCode; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string $orderedItem + * @param string $discountCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderedItem($orderedItem) + public function setDiscountCode($discountCode) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\OrderItem", - "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $orderedItem = self::checkTypes($orderedItem, $types); + $discountCode = self::checkTypes($discountCode, $types); - $this->orderedItem = $orderedItem; + $this->discountCode = $discountCode; } /** - * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @return string */ - public function getPaymentMethod() + public function getOrderNumber() { - return $this->paymentMethod; + return $this->orderNumber; } /** - * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod + * @param string $orderNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentMethod($paymentMethod) + public function setOrderNumber($orderNumber) { $types = [ - "\OpenActive\Enums\SchemaOrg\PaymentMethod", - "null", + "string", ]; - $paymentMethod = self::checkTypes($paymentMethod, $types); + $orderNumber = self::checkTypes($orderNumber, $types); - $this->paymentMethod = $paymentMethod; + $this->orderNumber = $orderNumber; } } diff --git a/src/Models/SchemaOrg/OrderItem.php b/src/Models/SchemaOrg/OrderItem.php index 3de3127a..657229d2 100644 --- a/src/Models/SchemaOrg/OrderItem.php +++ b/src/Models/SchemaOrg/OrderItem.php @@ -17,180 +17,182 @@ public static function getType() public static function fieldList() { $fields = [ - "orderDelivery" => "orderDelivery", "orderItemStatus" => "orderItemStatus", + "orderedItem" => "orderedItem", + "orderDelivery" => "orderDelivery", "orderQuantity" => "orderQuantity", "orderItemNumber" => "orderItemNumber", - "orderedItem" => "orderedItem", ]; return array_merge(parent::fieldList(), $fields); } /** - * The delivery of the parcel related to this order or order item. + * The current status of the order item. * * - * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string + * @var \OpenActive\Models\SchemaOrg\OrderStatus|string */ - protected $orderDelivery; + protected $orderItemStatus; /** - * The current status of the order item. + * The item ordered. * * - * @var \OpenActive\Models\SchemaOrg\OrderStatus|string + * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string */ - protected $orderItemStatus; + protected $orderedItem; /** - * The number of the item ordered. If the property is not set, assume the quantity is one. + * The delivery of the parcel related to this order or order item. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string */ - protected $orderQuantity; + protected $orderDelivery; /** - * The identifier of the order item. + * The number of the item ordered. If the property is not set, assume the quantity is one. * * - * @var string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $orderItemNumber; + protected $orderQuantity; /** - * The item ordered. + * The identifier of the order item. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @var string */ - protected $orderedItem; + protected $orderItemNumber; /** - * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string + * @return \OpenActive\Models\SchemaOrg\OrderStatus|string */ - public function getOrderDelivery() + public function getOrderItemStatus() { - return $this->orderDelivery; + return $this->orderItemStatus; } /** - * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery + * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderItemStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderDelivery($orderDelivery) + public function setOrderItemStatus($orderItemStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\ParcelDelivery", + "\OpenActive\Models\SchemaOrg\OrderStatus", "string", ]; - $orderDelivery = self::checkTypes($orderDelivery, $types); + $orderItemStatus = self::checkTypes($orderItemStatus, $types); - $this->orderDelivery = $orderDelivery; + $this->orderItemStatus = $orderItemStatus; } /** - * @return \OpenActive\Models\SchemaOrg\OrderStatus|string + * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string */ - public function getOrderItemStatus() + public function getOrderedItem() { - return $this->orderItemStatus; + return $this->orderedItem; } /** - * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderItemStatus + * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OrderItem|string $orderedItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderItemStatus($orderItemStatus) + public function setOrderedItem($orderedItem) { $types = [ - "\OpenActive\Models\SchemaOrg\OrderStatus", + "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\OrderItem", "string", ]; - $orderItemStatus = self::checkTypes($orderItemStatus, $types); + $orderedItem = self::checkTypes($orderedItem, $types); - $this->orderItemStatus = $orderItemStatus; + $this->orderedItem = $orderedItem; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string */ - public function getOrderQuantity() + public function getOrderDelivery() { - return $this->orderQuantity; + return $this->orderDelivery; } /** - * @param Number|null $orderQuantity + * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderQuantity($orderQuantity) + public function setOrderDelivery($orderDelivery) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\ParcelDelivery", + "string", ]; - $orderQuantity = self::checkTypes($orderQuantity, $types); + $orderDelivery = self::checkTypes($orderDelivery, $types); - $this->orderQuantity = $orderQuantity; + $this->orderDelivery = $orderDelivery; } /** - * @return string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getOrderItemNumber() + public function getOrderQuantity() { - return $this->orderItemNumber; + return $this->orderQuantity; } /** - * @param string $orderItemNumber + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $orderQuantity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderItemNumber($orderItemNumber) + public function setOrderQuantity($orderQuantity) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $orderItemNumber = self::checkTypes($orderItemNumber, $types); + $orderQuantity = self::checkTypes($orderQuantity, $types); - $this->orderItemNumber = $orderItemNumber; + $this->orderQuantity = $orderQuantity; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @return string */ - public function getOrderedItem() + public function getOrderItemNumber() { - return $this->orderedItem; + return $this->orderItemNumber; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string $orderedItem + * @param string $orderItemNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderedItem($orderedItem) + public function setOrderItemNumber($orderItemNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\OrderItem", - "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $orderedItem = self::checkTypes($orderedItem, $types); + $orderItemNumber = self::checkTypes($orderItemNumber, $types); - $this->orderedItem = $orderedItem; + $this->orderItemNumber = $orderItemNumber; } } diff --git a/src/Models/SchemaOrg/Organization.php b/src/Models/SchemaOrg/Organization.php index 9e50ab4f..65ccad77 100644 --- a/src/Models/SchemaOrg/Organization.php +++ b/src/Models/SchemaOrg/Organization.php @@ -17,84 +17,98 @@ public static function getType() public static function fieldList() { $fields = [ - "ownershipFundingInfo" => "ownershipFundingInfo", + "interactionStatistic" => "interactionStatistic", + "legalName" => "legalName", "hasCredential" => "hasCredential", - "founders" => "founders", - "telephone" => "telephone", - "review" => "review", + "hasMemberProgram" => "hasMemberProgram", + "contactPoints" => "contactPoints", "knowsAbout" => "knowsAbout", + "publishingPrinciples" => "publishingPrinciples", + "alumni" => "alumni", + "isicV4" => "isicV4", + "founder" => "founder", + "telephone" => "telephone", + "diversityPolicy" => "diversityPolicy", + "subOrganization" => "subOrganization", + "foundingDate" => "foundingDate", + "vatID" => "vatID", + "knowsLanguage" => "knowsLanguage", + "iso6523Code" => "iso6523Code", "award" => "award", - "member" => "member", - "employee" => "employee", - "dissolutionDate" => "dissolutionDate", + "address" => "address", "funding" => "funding", - "vatID" => "vatID", - "globalLocationNumber" => "globalLocationNumber", - "keywords" => "keywords", - "contactPoints" => "contactPoints", - "subOrganization" => "subOrganization", - "awards" => "awards", - "numberOfEmployees" => "numberOfEmployees", + "hasOfferCatalog" => "hasOfferCatalog", + "hasCertification" => "hasCertification", + "parentOrganization" => "parentOrganization", + "ethicsPolicy" => "ethicsPolicy", + "hasPOS" => "hasPOS", "funder" => "funder", - "makesOffer" => "makesOffer", - "legalName" => "legalName", - "correctionsPolicy" => "correctionsPolicy", - "aggregateRating" => "aggregateRating", - "interactionStatistic" => "interactionStatistic", - "location" => "location", - "address" => "address", - "memberOf" => "memberOf", - "publishingPrinciples" => "publishingPrinciples", - "diversityStaffingReport" => "diversityStaffingReport", - "diversityPolicy" => "diversityPolicy", + "faxNumber" => "faxNumber", "email" => "email", - "employees" => "employees", - "nonprofitStatus" => "nonprofitStatus", - "slogan" => "slogan", - "ethicsPolicy" => "ethicsPolicy", - "brand" => "brand", - "sponsor" => "sponsor", - "logo" => "logo", - "actionableFeedbackPolicy" => "actionableFeedbackPolicy", "naics" => "naics", + "event" => "event", + "events" => "events", + "keywords" => "keywords", + "memberOf" => "memberOf", "contactPoint" => "contactPoint", + "taxID" => "taxID", + "logo" => "logo", + "skills" => "skills", + "areaServed" => "areaServed", + "department" => "department", + "location" => "location", "serviceArea" => "serviceArea", - "isicV4" => "isicV4", - "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", - "hasPOS" => "hasPOS", - "founder" => "founder", + "numberOfEmployees" => "numberOfEmployees", "unnamedSourcesPolicy" => "unnamedSourcesPolicy", - "foundingLocation" => "foundingLocation", - "duns" => "duns", - "parentOrganization" => "parentOrganization", - "alumni" => "alumni", + "brand" => "brand", + "dissolutionDate" => "dissolutionDate", + "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", + "owns" => "owns", "leiCode" => "leiCode", - "areaServed" => "areaServed", - "foundingDate" => "foundingDate", - "knowsLanguage" => "knowsLanguage", + "correctionsPolicy" => "correctionsPolicy", + "acceptedPaymentMethod" => "acceptedPaymentMethod", + "nonprofitStatus" => "nonprofitStatus", + "hasGS1DigitalLink" => "hasGS1DigitalLink", "reviews" => "reviews", + "employees" => "employees", + "globalLocationNumber" => "globalLocationNumber", + "review" => "review", + "ownershipFundingInfo" => "ownershipFundingInfo", + "awards" => "awards", + "foundingLocation" => "foundingLocation", + "diversityStaffingReport" => "diversityStaffingReport", + "slogan" => "slogan", + "founders" => "founders", + "employee" => "employee", + "member" => "member", + "duns" => "duns", + "sponsor" => "sponsor", + "makesOffer" => "makesOffer", + "actionableFeedbackPolicy" => "actionableFeedbackPolicy", + "aggregateRating" => "aggregateRating", "seeks" => "seeks", - "taxID" => "taxID", - "owns" => "owns", - "hasOfferCatalog" => "hasOfferCatalog", + "agentInteractionStatistic" => "agentInteractionStatistic", "members" => "members", - "events" => "events", - "iso6523Code" => "iso6523Code", - "department" => "department", - "faxNumber" => "faxNumber", - "event" => "event", ]; 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. + * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. * * - * @var string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - protected $ownershipFundingInfo; + protected $interactionStatistic; + + /** + * The official name of the organization, e.g. the registered company name. + * + * + * @var string + */ + protected $legalName; /** * A credential awarded to the Person or Organization. @@ -105,12 +119,63 @@ public static function fieldList() { protected $hasCredential; /** - * A person who founded this organization. + * MemberProgram offered by an Organization, for example an eCommerce merchant or an airline. + * + * + * @var \OpenActive\Models\SchemaOrg\MemberProgram|string + */ + protected $hasMemberProgram; + + /** + * A contact point for a person or organization. + * + * + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + */ + protected $contactPoints; + + /** + * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. + * + * + * @var string|\OpenActive\Models\SchemaOrg\Thing + */ + protected $knowsAbout; + + /** + * 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|\OpenActive\Models\SchemaOrg\CreativeWork + */ + protected $publishingPrinciples; + + /** + * Alumni of an organization. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $founders; + protected $alumni; + + /** + * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * + * + * @var string + */ + protected $isicV4; + + /** + * A person or organization who founded this organization. + * + * + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + */ + protected $founder; /** * The telephone number. @@ -121,52 +186,68 @@ public static function fieldList() { protected $telephone; /** - * A review of the item. + * 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 \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $review; + protected $diversityPolicy; /** - * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. + * A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific 'department' property. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $knowsAbout; + protected $subOrganization; /** - * An award won by or for this item. + * The date that this organization was founded. + * + * + * @var Date|null + */ + protected $foundingDate; + + /** + * The Value-added Tax ID of the organization or person. * * * @var string */ - protected $award; + protected $vatID; /** - * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. + * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $member; + protected $knowsLanguage; /** - * Someone working for this organization. + * An organization identifier as defined in [ISO 6523(-1)](https://en.wikipedia.org/wiki/ISO/IEC_6523). The identifier should be in the `XXXX:YYYYYY:ZZZ` or `XXXX:YYYYYY`format. Where `XXXX` is a 4 digit _ICD_ (International Code Designator), `YYYYYY` is an _OID_ (Organization Identifier) with all formatting characters (dots, dashes, spaces) removed with a maximal length of 35 characters, and `ZZZ` is an optional OPI (Organization Part Identifier) with a maximum length of 35 characters. The various components (ICD, OID, OPI) are joined with a colon character (ASCII `0x3a`). Note that many existing organization identifiers defined as attributes like [leiCode](https://schema.org/leiCode) (`0199`), [duns](https://schema.org/duns) (`0060`) or [GLN](https://schema.org/globalLocationNumber) (`0088`) can be expressed using ISO-6523. If possible, ISO-6523 codes should be preferred to populating [vatID](https://schema.org/vatID) or [taxID](https://schema.org/taxID), as ISO identifiers are less ambiguous. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $employee; + protected $iso6523Code; /** - * The date that this organization was dissolved. + * An award won by or for this item. * * - * @var Date|null + * @var string */ - protected $dissolutionDate; + protected $award; + + /** + * Physical address of the item. + * + * + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + */ + protected $address; /** * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. @@ -177,279 +258,332 @@ public static function fieldList() { protected $funding; /** - * The Value-added Tax ID of the organization or person. + * Indicates an OfferCatalog listing for this Organization, Person, or Service. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - protected $vatID; + protected $hasOfferCatalog; /** - * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. + * Certification information about a product, organization, service, place, or person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $globalLocationNumber; + protected $hasCertification; /** - * 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 larger organization that this organization is a [[subOrganization]] of, if any. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $keywords; + protected $parentOrganization; /** - * A contact point for a person or organization. + * 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 \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $contactPoints; + protected $ethicsPolicy; /** - * A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific 'department' property. + * Points-of-Sales operated by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $subOrganization; + protected $hasPOS; /** - * Awards won by or for this item. + * 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; + + /** + * The fax number. * * * @var string */ - protected $awards; + protected $faxNumber; /** - * The number of employees in an organization e.g. business. + * Email address. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $numberOfEmployees; + protected $email; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * The North American Industry Classification System (NAICS) code for a particular organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $funder; + protected $naics; /** - * A pointer to products or services offered by the organization or person. + * Upcoming or past event associated with this place, organization, or action. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $makesOffer; + protected $event; /** - * The official name of the organization, e.g. the registered company name. + * Upcoming or past events associated with this place or organization. + * + * + * @var \OpenActive\Models\SchemaOrg\Event|string + */ + protected $events; + + /** + * 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 string|\OpenActive\Models\SchemaOrg\DefinedTerm + */ + protected $keywords; + + /** + * An Organization (or ProgramMembership) to which this Person or Organization belongs. + * + * + * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\MemberProgramTier|string + */ + protected $memberOf; + + /** + * A contact point for a person or organization. + * + * + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + */ + protected $contactPoint; + + /** + * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. * * * @var string */ - protected $legalName; + protected $taxID; /** - * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors. + * An associated logo. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var string|\OpenActive\Models\SchemaOrg\ImageObject */ - protected $correctionsPolicy; + protected $logo; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * 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 \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $aggregateRating; + protected $skills; /** - * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * The geographic area where a service or offered item is provided. * * - * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea */ - protected $interactionStatistic; + protected $areaServed; + + /** + * A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|string + */ + protected $department; /** * 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; /** - * Physical address of the item. + * The geographic area where the service is provided. + * + * + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + */ + protected $serviceArea; + + /** + * The number of employees in an organization, e.g. business. * * - * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $address; + protected $numberOfEmployees; /** - * An Organization (or ProgramMembership) to which this Person or Organization belongs. + * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required. * * - * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $memberOf; + protected $unnamedSourcesPolicy; /** - * 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 brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - protected $publishingPrinciples; + protected $brand; /** - * 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. + * The date that this organization was dissolved. * * - * @var string|\OpenActive\Models\SchemaOrg\Article + * @var Date|null */ - protected $diversityStaffingReport; + protected $dissolutionDate; /** - * 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. + * Specifies a MerchantReturnPolicy that may be applicable. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - protected $diversityPolicy; + protected $hasMerchantReturnPolicy; /** - * Email address. + * Products owned by the organization or person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string */ - protected $email; + protected $owns; /** - * People working for this organization. + * An organization identifier that uniquely identifies a legal entity as defined in ISO 17442. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $employees; + protected $leiCode; /** - * nonprofit Status indicates the legal status of a non-profit organization in its primary place of business. + * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors. * * - * @var \OpenActive\Enums\SchemaOrg\NonprofitType|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $nonprofitStatus; + protected $correctionsPolicy; /** - * A slogan or motto associated with the item. + * The payment method(s) that are accepted in general by an organization, or for some specific demand or offer. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit */ - protected $slogan; + protected $acceptedPaymentMethod; /** - * 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. + * nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Enums\SchemaOrg\NonprofitType|null */ - protected $ethicsPolicy; + protected $nonprofitStatus; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * 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: Other item types should be adapted similarly. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var string */ - protected $brand; + protected $hasGS1DigitalLink; /** - * 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. + * Review of the item. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $sponsor; + protected $reviews; /** - * An associated logo. + * People working for this organization. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $logo; + protected $employees; /** - * 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. + * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var string */ - protected $actionableFeedbackPolicy; + protected $globalLocationNumber; /** - * The North American Industry Classification System (NAICS) code for a particular organization or business person. + * A review of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $naics; + protected $review; /** - * A contact point for a person or organization. + * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\AboutPage */ - protected $contactPoint; + protected $ownershipFundingInfo; /** - * The geographic area where the service is provided. + * Awards won by or for this item. * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $serviceArea; + protected $awards; /** - * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * The place where the Organization was founded. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $isicV4; + protected $foundingLocation; /** - * Specifies a MerchantReturnPolicy that may be applicable. + * 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\MerchantReturnPolicy|string + * @var string|\OpenActive\Models\SchemaOrg\Article */ - protected $hasMerchantReturnPolicy; + protected $diversityStaffingReport; /** - * Points-of-Sales operated by the organization or person. + * A slogan or motto associated with the item. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $hasPOS; + protected $slogan; /** * A person who founded this organization. @@ -457,23 +591,23 @@ public static function fieldList() { * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $founder; + protected $founders; /** - * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required. + * Someone working for this organization. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $unnamedSourcesPolicy; + protected $employee; /** - * The place where the Organization was founded. + * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $foundingLocation; + protected $member; /** * The Dun & Bradstreet DUNS number for identifying an organization or business person. @@ -484,792 +618,856 @@ public static function fieldList() { protected $duns; /** - * The larger organization that this organization is a [[subOrganization]] of, if any. + * 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|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $parentOrganization; + protected $sponsor; /** - * Alumni of an organization. + * A pointer to products or services offered by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $alumni; + protected $makesOffer; /** - * An organization identifier that uniquely identifies a legal entity as defined in ISO 17442. + * 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 + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $leiCode; + protected $actionableFeedbackPolicy; /** - * The geographic area where a service or offered item is provided. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $areaServed; + protected $aggregateRating; /** - * The date that this organization was founded. + * A pointer to products or services sought by the organization or person (demand). * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Demand|string */ - protected $foundingDate; + protected $seeks; /** - * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). + * The number of completed interactions for this entity, in a particular role (the 'agent'), in a particular action (indicated in the statistic), and in a particular context (i.e. interactionService). * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - protected $knowsLanguage; + protected $agentInteractionStatistic; /** - * Review of the item. + * A member of this organization. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $reviews; + protected $members; /** - * A pointer to products or services sought by the organization or person (demand). - * - * - * @var \OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - protected $seeks; + public function getInteractionStatistic() + { + return $this->interactionStatistic; + } /** - * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. - * - * - * @var 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 $taxID; + public function setInteractionStatistic($interactionStatistic) + { + $types = [ + "\OpenActive\Models\SchemaOrg\InteractionCounter", + "string", + ]; + + $interactionStatistic = self::checkTypes($interactionStatistic, $types); + + $this->interactionStatistic = $interactionStatistic; + } /** - * Products owned by the organization or person. - * - * - * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @return string */ - protected $owns; + public function getLegalName() + { + return $this->legalName; + } /** - * Indicates an OfferCatalog listing for this Organization, Person, or Service. - * - * - * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @param string $legalName + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $hasOfferCatalog; + public function setLegalName($legalName) + { + $types = [ + "string", + ]; + + $legalName = self::checkTypes($legalName, $types); + + $this->legalName = $legalName; + } /** - * A member of this organization. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - protected $members; + public function getHasCredential() + { + return $this->hasCredential; + } /** - * Upcoming or past events associated with this place or organization. - * - * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $events; + public function setHasCredential($hasCredential) + { + $types = [ + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "string", + ]; + + $hasCredential = self::checkTypes($hasCredential, $types); + + $this->hasCredential = $hasCredential; + } /** - * An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. - * - * - * @var string + * @return \OpenActive\Models\SchemaOrg\MemberProgram|string */ - protected $iso6523Code; + public function getHasMemberProgram() + { + return $this->hasMemberProgram; + } /** - * A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe. - * - * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @param \OpenActive\Models\SchemaOrg\MemberProgram|string $hasMemberProgram + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $department; + public function setHasMemberProgram($hasMemberProgram) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MemberProgram", + "string", + ]; + + $hasMemberProgram = self::checkTypes($hasMemberProgram, $types); + + $this->hasMemberProgram = $hasMemberProgram; + } /** - * The fax number. - * - * - * @var string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $faxNumber; + public function getContactPoints() + { + return $this->contactPoints; + } /** - * Upcoming or past event associated with this place, organization, or action. - * - * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $event; + public function setContactPoints($contactPoints) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", + "string", + ]; + + $contactPoints = self::checkTypes($contactPoints, $types); + + $this->contactPoints = $contactPoints; + } /** - * @return string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getOwnershipFundingInfo() + public function getKnowsAbout() { - return $this->ownershipFundingInfo; + return $this->knowsAbout; } /** - * @param string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork $ownershipFundingInfo + * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOwnershipFundingInfo($ownershipFundingInfo) + public function setKnowsAbout($knowsAbout) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\AboutPage", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types); + $knowsAbout = self::checkTypes($knowsAbout, $types); - $this->ownershipFundingInfo = $ownershipFundingInfo; + $this->knowsAbout = $knowsAbout; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getHasCredential() + public function getPublishingPrinciples() { - return $this->hasCredential; + return $this->publishingPrinciples; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential + * @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 setHasCredential($hasCredential) + public function setPublishingPrinciples($publishingPrinciples) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $hasCredential = self::checkTypes($hasCredential, $types); + $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); - $this->hasCredential = $hasCredential; + $this->publishingPrinciples = $publishingPrinciples; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getFounders() + public function getAlumni() { - return $this->founders; + return $this->alumni; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $founders + * @param \OpenActive\Models\SchemaOrg\Person|string $alumni * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFounders($founders) + public function setAlumni($alumni) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $founders = self::checkTypes($founders, $types); + $alumni = self::checkTypes($alumni, $types); - $this->founders = $founders; + $this->alumni = $alumni; } /** * @return string */ - public function getTelephone() + public function getIsicV4() { - return $this->telephone; + return $this->isicV4; } /** - * @param string $telephone + * @param string $isicV4 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTelephone($telephone) + public function setIsicV4($isicV4) { $types = [ "string", ]; - $telephone = self::checkTypes($telephone, $types); + $isicV4 = self::checkTypes($isicV4, $types); - $this->telephone = $telephone; + $this->isicV4 = $isicV4; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getReview() + public function getFounder() { - return $this->review; + return $this->founder; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $founder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setFounder($founder) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $review = self::checkTypes($review, $types); + $founder = self::checkTypes($founder, $types); - $this->review = $review; + $this->founder = $founder; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return string */ - public function getKnowsAbout() + public function getTelephone() { - return $this->knowsAbout; + return $this->telephone; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout + * @param string $telephone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnowsAbout($knowsAbout) + public function setTelephone($telephone) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $knowsAbout = self::checkTypes($knowsAbout, $types); + $telephone = self::checkTypes($telephone, $types); - $this->knowsAbout = $knowsAbout; + $this->telephone = $telephone; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getAward() + public function getDiversityPolicy() { - return $this->award; + return $this->diversityPolicy; } /** - * @param string $award + * @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 setAward($award) + public function setDiversityPolicy($diversityPolicy) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $award = self::checkTypes($award, $types); + $diversityPolicy = self::checkTypes($diversityPolicy, $types); - $this->award = $award; + $this->diversityPolicy = $diversityPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getMember() + public function getSubOrganization() { - return $this->member; + return $this->subOrganization; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member + * @param \OpenActive\Models\SchemaOrg\Organization|string $subOrganization * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMember($member) + public function setSubOrganization($subOrganization) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $member = self::checkTypes($member, $types); + $subOrganization = self::checkTypes($subOrganization, $types); - $this->member = $member; + $this->subOrganization = $subOrganization; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return Date|null */ - public function getEmployee() + public function getFoundingDate() { - return $this->employee; + return $this->foundingDate; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $employee + * @param Date|null $foundingDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmployee($employee) + public function setFoundingDate($foundingDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "null", ]; - $employee = self::checkTypes($employee, $types); + $foundingDate = self::checkTypes($foundingDate, $types); - $this->employee = $employee; + $this->foundingDate = $foundingDate; } /** - * @return Date|null + * @return string */ - public function getDissolutionDate() + public function getVatID() { - return $this->dissolutionDate; + return $this->vatID; } /** - * @param Date|null $dissolutionDate + * @param string $vatID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDissolutionDate($dissolutionDate) + public function setVatID($vatID) { $types = [ - "Date", - "null", + "string", ]; - $dissolutionDate = self::checkTypes($dissolutionDate, $types); + $vatID = self::checkTypes($vatID, $types); - $this->dissolutionDate = $dissolutionDate; + $this->vatID = $vatID; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getFunding() + public function getKnowsLanguage() { - return $this->funding; + return $this->knowsLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @param string|\OpenActive\Models\SchemaOrg\Language $knowsLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunding($funding) + public function setKnowsLanguage($knowsLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $funding = self::checkTypes($funding, $types); + $knowsLanguage = self::checkTypes($knowsLanguage, $types); - $this->funding = $funding; + $this->knowsLanguage = $knowsLanguage; } /** * @return string */ - public function getVatID() + public function getIso6523Code() { - return $this->vatID; + return $this->iso6523Code; } /** - * @param string $vatID + * @param string $iso6523Code * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVatID($vatID) + public function setIso6523Code($iso6523Code) { $types = [ "string", ]; - $vatID = self::checkTypes($vatID, $types); + $iso6523Code = self::checkTypes($iso6523Code, $types); - $this->vatID = $vatID; + $this->iso6523Code = $iso6523Code; } /** * @return string */ - public function getGlobalLocationNumber() + public function getAward() { - return $this->globalLocationNumber; + return $this->award; } /** - * @param string $globalLocationNumber + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGlobalLocationNumber($globalLocationNumber) + public function setAward($award) { $types = [ "string", ]; - $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); + $award = self::checkTypes($award, $types); - $this->globalLocationNumber = $globalLocationNumber; + $this->award = $award; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress */ - public function getKeywords() + public function getAddress() { - return $this->keywords; + return $this->address; + } + + /** + * @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 setAddress($address) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", + ]; + + $address = self::checkTypes($address, $types); + + $this->address = $address; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Grant|string + */ + public function getFunding() + { + return $this->funding; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @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 setKeywords($keywords) + public function setFunding($funding) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $funding = self::checkTypes($funding, $types); - $this->keywords = $keywords; + $this->funding = $funding; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - public function getContactPoints() + public function getHasOfferCatalog() { - return $this->contactPoints; + return $this->hasOfferCatalog; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints + * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoints($contactPoints) + public function setHasOfferCatalog($hasOfferCatalog) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $contactPoints = self::checkTypes($contactPoints, $types); + $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); - $this->contactPoints = $contactPoints; + $this->hasOfferCatalog = $hasOfferCatalog; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getSubOrganization() + public function getHasCertification() { - return $this->subOrganization; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $subOrganization + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubOrganization($subOrganization) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $subOrganization = self::checkTypes($subOrganization, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->subOrganization = $subOrganization; + $this->hasCertification = $hasCertification; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getAwards() + public function getParentOrganization() { - return $this->awards; + return $this->parentOrganization; } /** - * @param string $awards + * @param \OpenActive\Models\SchemaOrg\Organization|string $parentOrganization * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setParentOrganization($parentOrganization) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $awards = self::checkTypes($awards, $types); + $parentOrganization = self::checkTypes($parentOrganization, $types); - $this->awards = $awards; + $this->parentOrganization = $parentOrganization; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getNumberOfEmployees() + public function getEthicsPolicy() { - return $this->numberOfEmployees; + return $this->ethicsPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees + * @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 setNumberOfEmployees($numberOfEmployees) + public function setEthicsPolicy($ethicsPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); + $ethicsPolicy = self::checkTypes($ethicsPolicy, $types); - $this->numberOfEmployees = $numberOfEmployees; + $this->ethicsPolicy = $ethicsPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getFunder() + public function getHasPOS() { - return $this->funder; + return $this->hasPOS; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunder($funder) + public function setHasPOS($hasPOS) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $funder = self::checkTypes($funder, $types); + $hasPOS = self::checkTypes($hasPOS, $types); - $this->funder = $funder; + $this->hasPOS = $hasPOS; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getMakesOffer() + public function getFunder() { - return $this->makesOffer; + return $this->funder; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer + * @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 setMakesOffer($makesOffer) + public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $makesOffer = self::checkTypes($makesOffer, $types); + $funder = self::checkTypes($funder, $types); - $this->makesOffer = $makesOffer; + $this->funder = $funder; } /** * @return string */ - public function getLegalName() + public function getFaxNumber() { - return $this->legalName; + return $this->faxNumber; } /** - * @param string $legalName + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegalName($legalName) + public function setFaxNumber($faxNumber) { $types = [ "string", ]; - $legalName = self::checkTypes($legalName, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->legalName = $legalName; + $this->faxNumber = $faxNumber; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return string */ - public function getCorrectionsPolicy() + public function getEmail() { - return $this->correctionsPolicy; + return $this->email; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy + * @param string $email * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCorrectionsPolicy($correctionsPolicy) + public function setEmail($email) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $correctionsPolicy = self::checkTypes($correctionsPolicy, $types); + $email = self::checkTypes($email, $types); - $this->correctionsPolicy = $correctionsPolicy; + $this->email = $email; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return string */ - public function getAggregateRating() + public function getNaics() { - return $this->aggregateRating; + return $this->naics; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param string $naics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setNaics($naics) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $naics = self::checkTypes($naics, $types); - $this->aggregateRating = $aggregateRating; + $this->naics = $naics; } /** - * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getInteractionStatistic() + public function getEvent() { - return $this->interactionStatistic; + return $this->event; } /** - * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic + * @param \OpenActive\Models\SchemaOrg\Event|string $event * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionStatistic($interactionStatistic) + public function setEvent($event) { $types = [ - "\OpenActive\Models\SchemaOrg\InteractionCounter", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $interactionStatistic = self::checkTypes($interactionStatistic, $types); + $event = self::checkTypes($event, $types); - $this->interactionStatistic = $interactionStatistic; + $this->event = $event; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getLocation() + public function getEvents() { - return $this->location; + return $this->events; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @param \OpenActive\Models\SchemaOrg\Event|string $events * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLocation($location) + public function setEvents($events) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Event", "string", - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $location = self::checkTypes($location, $types); + $events = self::checkTypes($events, $types); - $this->location = $location; + $this->events = $events; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getAddress() + public function getKeywords() { - return $this->address; + return $this->keywords; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @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 setAddress($address) + public function setKeywords($keywords) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $address = self::checkTypes($address, $types); + $keywords = self::checkTypes($keywords, $types); - $this->address = $address; + $this->keywords = $keywords; } /** - * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\MemberProgramTier|string */ public function getMemberOf() { @@ -1277,7 +1475,7 @@ public function getMemberOf() } /** - * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf + * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\MemberProgramTier|string $memberOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -1286,6 +1484,7 @@ public function setMemberOf($memberOf) $types = [ "\OpenActive\Models\SchemaOrg\ProgramMembership", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\MemberProgramTier", "string", ]; @@ -1295,977 +1494,984 @@ public function setMemberOf($memberOf) } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getPublishingPrinciples() + public function getContactPoint() { - return $this->publishingPrinciples; + return $this->contactPoint; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples + * @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 setPublishingPrinciples($publishingPrinciples) + public function setContactPoint($contactPoint) { $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); + $contactPoint = self::checkTypes($contactPoint, $types); - $this->publishingPrinciples = $publishingPrinciples; + $this->contactPoint = $contactPoint; } /** - * @return string|\OpenActive\Models\SchemaOrg\Article + * @return string */ - public function getDiversityStaffingReport() + public function getTaxID() { - return $this->diversityStaffingReport; + return $this->taxID; } /** - * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport + * @param string $taxID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiversityStaffingReport($diversityStaffingReport) + public function setTaxID($taxID) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Article", ]; - $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types); + $taxID = self::checkTypes($taxID, $types); - $this->diversityStaffingReport = $diversityStaffingReport; + $this->taxID = $taxID; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string|\OpenActive\Models\SchemaOrg\ImageObject */ - public function getDiversityPolicy() + public function getLogo() { - return $this->diversityPolicy; + return $this->logo; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy + * @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 setDiversityPolicy($diversityPolicy) + public function setLogo($logo) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", + "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $diversityPolicy = self::checkTypes($diversityPolicy, $types); + $logo = self::checkTypes($logo, $types); - $this->diversityPolicy = $diversityPolicy; + $this->logo = $logo; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getEmail() + public function getSkills() { - return $this->email; + return $this->skills; } /** - * @param string $email + * @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 setEmail($email) + public function setSkills($skills) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $email = self::checkTypes($email, $types); + $skills = self::checkTypes($skills, $types); - $this->email = $email; + $this->skills = $skills; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea */ - public function getEmployees() + public function getAreaServed() { - return $this->employees; + return $this->areaServed; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $employees + * @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 setEmployees($employees) + public function setAreaServed($areaServed) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", ]; - $employees = self::checkTypes($employees, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->employees = $employees; + $this->areaServed = $areaServed; } /** - * @return \OpenActive\Enums\SchemaOrg\NonprofitType|null + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getNonprofitStatus() + public function getDepartment() { - return $this->nonprofitStatus; + return $this->department; } /** - * @param \OpenActive\Enums\SchemaOrg\NonprofitType|null $nonprofitStatus + * @param \OpenActive\Models\SchemaOrg\Organization|string $department * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNonprofitStatus($nonprofitStatus) + public function setDepartment($department) { $types = [ - "\OpenActive\Enums\SchemaOrg\NonprofitType", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $nonprofitStatus = self::checkTypes($nonprofitStatus, $types); + $department = self::checkTypes($department, $types); - $this->nonprofitStatus = $nonprofitStatus; + $this->department = $department; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation|\OpenActive\Models\SchemaOrg\PostalAddress */ - public function getSlogan() + public function getLocation() { - return $this->slogan; + return $this->location; } /** - * @param string $slogan + * @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 setSlogan($slogan) + public function setLocation($location) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\VirtualLocation", + "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $slogan = self::checkTypes($slogan, $types); + $location = self::checkTypes($location, $types); - $this->slogan = $slogan; + $this->location = $location; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string */ - public function getEthicsPolicy() + public function getServiceArea() { - return $this->ethicsPolicy; + return $this->serviceArea; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy + * @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 setEthicsPolicy($ethicsPolicy) + public function setServiceArea($serviceArea) { $types = [ + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\Place", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $ethicsPolicy = self::checkTypes($ethicsPolicy, $types); + $serviceArea = self::checkTypes($serviceArea, $types); - $this->ethicsPolicy = $ethicsPolicy; + $this->serviceArea = $serviceArea; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getBrand() + public function getNumberOfEmployees() { - return $this->brand; + return $this->numberOfEmployees; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @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 setBrand($brand) + public function setNumberOfEmployees($numberOfEmployees) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $brand = self::checkTypes($brand, $types); + $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); - $this->brand = $brand; + $this->numberOfEmployees = $numberOfEmployees; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getSponsor() + public function getUnnamedSourcesPolicy() { - return $this->sponsor; + return $this->unnamedSourcesPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @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 setSponsor($sponsor) + public function setUnnamedSourcesPolicy($unnamedSourcesPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $sponsor = self::checkTypes($sponsor, $types); + $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types); - $this->sponsor = $sponsor; + $this->unnamedSourcesPolicy = $unnamedSourcesPolicy; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - public function getLogo() + public function getBrand() { - return $this->logo; + return $this->brand; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLogo($logo) + public function setBrand($brand) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Brand", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $brand = self::checkTypes($brand, $types); - $this->logo = $logo; + $this->brand = $brand; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return Date|null */ - public function getActionableFeedbackPolicy() + public function getDissolutionDate() { - return $this->actionableFeedbackPolicy; + return $this->dissolutionDate; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $actionableFeedbackPolicy + * @param Date|null $dissolutionDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActionableFeedbackPolicy($actionableFeedbackPolicy) + public function setDissolutionDate($dissolutionDate) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "Date", + "null", ]; - $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types); + $dissolutionDate = self::checkTypes($dissolutionDate, $types); - $this->actionableFeedbackPolicy = $actionableFeedbackPolicy; + $this->dissolutionDate = $dissolutionDate; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - public function getNaics() + public function getHasMerchantReturnPolicy() { - return $this->naics; + return $this->hasMerchantReturnPolicy; } /** - * @param string $naics + * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNaics($naics) + public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) { $types = [ + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", ]; - $naics = self::checkTypes($naics, $types); + $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); - $this->naics = $naics; + $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string */ - public function getContactPoint() + public function getOwns() { - return $this->contactPoint; + return $this->owns; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint + * @param \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string $owns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoint($contactPoint) + public function setOwns($owns) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\OwnershipInfo", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $contactPoint = self::checkTypes($contactPoint, $types); + $owns = self::checkTypes($owns, $types); - $this->contactPoint = $contactPoint; + $this->owns = $owns; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getServiceArea() + public function getLeiCode() { - return $this->serviceArea; + return $this->leiCode; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea + * @param string $leiCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceArea($serviceArea) + public function setLeiCode($leiCode) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $serviceArea = self::checkTypes($serviceArea, $types); + $leiCode = self::checkTypes($leiCode, $types); - $this->serviceArea = $serviceArea; + $this->leiCode = $leiCode; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getIsicV4() + public function getCorrectionsPolicy() { - return $this->isicV4; + return $this->correctionsPolicy; } /** - * @param string $isicV4 + * @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 setIsicV4($isicV4) + public function setCorrectionsPolicy($correctionsPolicy) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $isicV4 = self::checkTypes($isicV4, $types); + $correctionsPolicy = self::checkTypes($correctionsPolicy, $types); - $this->isicV4 = $isicV4; + $this->correctionsPolicy = $correctionsPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @return string|\OpenActive\Models\SchemaOrg\PaymentMethod|\OpenActive\Models\SchemaOrg\LoanOrCredit */ - public function getHasMerchantReturnPolicy() + public function getAcceptedPaymentMethod() { - return $this->hasMerchantReturnPolicy; + return $this->acceptedPaymentMethod; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy + * @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 setHasMerchantReturnPolicy($hasMerchantReturnPolicy) + public function setAcceptedPaymentMethod($acceptedPaymentMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", + "\OpenActive\Models\SchemaOrg\PaymentMethod", + "\OpenActive\Models\SchemaOrg\LoanOrCredit", ]; - $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); + $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); - $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; + $this->acceptedPaymentMethod = $acceptedPaymentMethod; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Enums\SchemaOrg\NonprofitType|null */ - public function getHasPOS() + public function getNonprofitStatus() { - return $this->hasPOS; + return $this->nonprofitStatus; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS + * @param \OpenActive\Enums\SchemaOrg\NonprofitType|null $nonprofitStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasPOS($hasPOS) + public function setNonprofitStatus($nonprofitStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", + "\OpenActive\Enums\SchemaOrg\NonprofitType", + "null", ]; - $hasPOS = self::checkTypes($hasPOS, $types); + $nonprofitStatus = self::checkTypes($nonprofitStatus, $types); - $this->hasPOS = $hasPOS; + $this->nonprofitStatus = $nonprofitStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getFounder() + public function getHasGS1DigitalLink() { - return $this->founder; + return $this->hasGS1DigitalLink; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $founder + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFounder($founder) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $founder = self::checkTypes($founder, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->founder = $founder; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getUnnamedSourcesPolicy() + public function getReviews() { - return $this->unnamedSourcesPolicy; + return $this->reviews; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy + * @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 setUnnamedSourcesPolicy($unnamedSourcesPolicy) + public function setReviews($reviews) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types); + $reviews = self::checkTypes($reviews, $types); - $this->unnamedSourcesPolicy = $unnamedSourcesPolicy; + $this->reviews = $reviews; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getFoundingLocation() + public function getEmployees() { - return $this->foundingLocation; + return $this->employees; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $foundingLocation + * @param \OpenActive\Models\SchemaOrg\Person|string $employees * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFoundingLocation($foundingLocation) + public function setEmployees($employees) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $foundingLocation = self::checkTypes($foundingLocation, $types); + $employees = self::checkTypes($employees, $types); - $this->foundingLocation = $foundingLocation; + $this->employees = $employees; } /** * @return string */ - public function getDuns() + public function getGlobalLocationNumber() { - return $this->duns; + return $this->globalLocationNumber; } /** - * @param string $duns + * @param string $globalLocationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuns($duns) + public function setGlobalLocationNumber($globalLocationNumber) { $types = [ "string", ]; - $duns = self::checkTypes($duns, $types); + $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); - $this->duns = $duns; + $this->globalLocationNumber = $globalLocationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getParentOrganization() + public function getReview() { - return $this->parentOrganization; + return $this->review; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $parentOrganization + * @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 setParentOrganization($parentOrganization) + public function setReview($review) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $parentOrganization = self::checkTypes($parentOrganization, $types); + $review = self::checkTypes($review, $types); - $this->parentOrganization = $parentOrganization; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\AboutPage */ - public function getAlumni() + public function getOwnershipFundingInfo() { - return $this->alumni; + return $this->ownershipFundingInfo; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $alumni + * @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 setAlumni($alumni) + public function setOwnershipFundingInfo($ownershipFundingInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", + "\OpenActive\Models\SchemaOrg\AboutPage", ]; - $alumni = self::checkTypes($alumni, $types); + $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types); - $this->alumni = $alumni; + $this->ownershipFundingInfo = $ownershipFundingInfo; } /** * @return string */ - public function getLeiCode() + public function getAwards() { - return $this->leiCode; + return $this->awards; } /** - * @param string $leiCode + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLeiCode($leiCode) + public function setAwards($awards) { $types = [ "string", ]; - $leiCode = self::checkTypes($leiCode, $types); + $awards = self::checkTypes($awards, $types); - $this->leiCode = $leiCode; + $this->awards = $awards; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getAreaServed() + public function getFoundingLocation() { - return $this->areaServed; + return $this->foundingLocation; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param \OpenActive\Models\SchemaOrg\Place|string $foundingLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setFoundingLocation($foundingLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", - "string", "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $areaServed = self::checkTypes($areaServed, $types); + $foundingLocation = self::checkTypes($foundingLocation, $types); - $this->areaServed = $areaServed; + $this->foundingLocation = $foundingLocation; } /** - * @return Date|null + * @return string|\OpenActive\Models\SchemaOrg\Article */ - public function getFoundingDate() + public function getDiversityStaffingReport() { - return $this->foundingDate; + return $this->diversityStaffingReport; } /** - * @param Date|null $foundingDate + * @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 setFoundingDate($foundingDate) + public function setDiversityStaffingReport($diversityStaffingReport) { $types = [ - "Date", - "null", + "string", + "\OpenActive\Models\SchemaOrg\Article", ]; - $foundingDate = self::checkTypes($foundingDate, $types); + $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types); - $this->foundingDate = $foundingDate; + $this->diversityStaffingReport = $diversityStaffingReport; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return string */ - public function getKnowsLanguage() + public function getSlogan() { - return $this->knowsLanguage; + return $this->slogan; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnowsLanguage($knowsLanguage) + public function setSlogan($slogan) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $knowsLanguage = self::checkTypes($knowsLanguage, $types); + $slogan = self::checkTypes($slogan, $types); - $this->knowsLanguage = $knowsLanguage; + $this->slogan = $slogan; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getReviews() + public function getFounders() { - return $this->reviews; + return $this->founders; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @param \OpenActive\Models\SchemaOrg\Person|string $founders * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviews($reviews) + public function setFounders($founders) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $founders = self::checkTypes($founders, $types); - $this->reviews = $reviews; + $this->founders = $founders; } /** - * @return \OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSeeks() + public function getEmployee() { - return $this->seeks; + return $this->employee; } /** - * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks + * @param \OpenActive\Models\SchemaOrg\Person|string $employee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeeks($seeks) + public function setEmployee($employee) { $types = [ - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $seeks = self::checkTypes($seeks, $types); + $employee = self::checkTypes($employee, $types); - $this->seeks = $seeks; + $this->employee = $employee; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getTaxID() + public function getMember() { - return $this->taxID; + return $this->member; } /** - * @param string $taxID + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $member * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTaxID($taxID) + public function setMember($member) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $taxID = self::checkTypes($taxID, $types); + $member = self::checkTypes($member, $types); - $this->taxID = $taxID; + $this->member = $member; } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @return string */ - public function getOwns() + public function getDuns() { - return $this->owns; + return $this->duns; } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns + * @param string $duns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOwns($owns) + public function setDuns($duns) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\OwnershipInfo", "string", ]; - $owns = self::checkTypes($owns, $types); + $duns = self::checkTypes($duns, $types); - $this->owns = $owns; + $this->duns = $duns; } /** - * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getHasOfferCatalog() + public function getSponsor() { - return $this->hasOfferCatalog; + return $this->sponsor; } /** - * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @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 setHasOfferCatalog($hasOfferCatalog) + public function setSponsor($sponsor) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferCatalog", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->hasOfferCatalog = $hasOfferCatalog; + $this->sponsor = $sponsor; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getMembers() + public function getMakesOffer() { - return $this->members; + return $this->makesOffer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $members + * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMembers($members) + public function setMakesOffer($makesOffer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $members = self::checkTypes($members, $types); + $makesOffer = self::checkTypes($makesOffer, $types); - $this->members = $members; + $this->makesOffer = $makesOffer; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getEvents() + public function getActionableFeedbackPolicy() { - return $this->events; + return $this->actionableFeedbackPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $events + * @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 setEvents($events) + public function setActionableFeedbackPolicy($actionableFeedbackPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $events = self::checkTypes($events, $types); + $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types); - $this->events = $events; + $this->actionableFeedbackPolicy = $actionableFeedbackPolicy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getIso6523Code() + public function getAggregateRating() { - return $this->iso6523Code; + return $this->aggregateRating; } /** - * @param string $iso6523Code + * @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 setIso6523Code($iso6523Code) + public function setAggregateRating($aggregateRating) { $types = [ + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $iso6523Code = self::checkTypes($iso6523Code, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->iso6523Code = $iso6523Code; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Demand|string */ - public function getDepartment() + public function getSeeks() { - return $this->department; + return $this->seeks; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $department + * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartment($department) + public function setSeeks($seeks) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Demand", "string", ]; - $department = self::checkTypes($department, $types); + $seeks = self::checkTypes($seeks, $types); - $this->department = $department; + $this->seeks = $seeks; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getFaxNumber() + public function getAgentInteractionStatistic() { - return $this->faxNumber; + return $this->agentInteractionStatistic; } /** - * @param string $faxNumber + * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $agentInteractionStatistic * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFaxNumber($faxNumber) + public function setAgentInteractionStatistic($agentInteractionStatistic) { $types = [ + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $agentInteractionStatistic = self::checkTypes($agentInteractionStatistic, $types); - $this->faxNumber = $faxNumber; + $this->agentInteractionStatistic = $agentInteractionStatistic; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getEvent() + public function getMembers() { - return $this->event; + return $this->members; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $event + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $members * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvent($event) + public function setMembers($members) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $event = self::checkTypes($event, $types); + $members = self::checkTypes($members, $types); - $this->event = $event; + $this->members = $members; } } diff --git a/src/Models/SchemaOrg/OwnershipInfo.php b/src/Models/SchemaOrg/OwnershipInfo.php index 8567084a..757b2253 100644 --- a/src/Models/SchemaOrg/OwnershipInfo.php +++ b/src/Models/SchemaOrg/OwnershipInfo.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "ownedFrom" => "ownedFrom", + "ownedThrough" => "ownedThrough", "typeOfGood" => "typeOfGood", "acquiredFrom" => "acquiredFrom", - "ownedThrough" => "ownedThrough", ]; return array_merge(parent::fieldList(), $fields); @@ -35,28 +35,28 @@ public static function fieldList() { protected $ownedFrom; /** - * The product that this structured value is referring to. + * The date and time of giving up ownership on the product. * * - * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + * @var DateTime|null */ - protected $typeOfGood; + protected $ownedThrough; /** - * The organization or person from which the product was acquired. + * The product that this structured value is referring to. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $acquiredFrom; + protected $typeOfGood; /** - * The date and time of giving up ownership on the product. + * The organization or person from which the product was acquired. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $ownedThrough; + protected $acquiredFrom; /** * @return DateTime|null @@ -84,80 +84,80 @@ public function setOwnedFrom($ownedFrom) } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + * @return DateTime|null */ - public function getTypeOfGood() + public function getOwnedThrough() { - return $this->typeOfGood; + return $this->ownedThrough; } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $typeOfGood + * @param DateTime|null $ownedThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypeOfGood($typeOfGood) + public function setOwnedThrough($ownedThrough) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\Service", - "string", + "DateTime", + "null", ]; - $typeOfGood = self::checkTypes($typeOfGood, $types); + $ownedThrough = self::checkTypes($ownedThrough, $types); - $this->typeOfGood = $typeOfGood; + $this->ownedThrough = $ownedThrough; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getAcquiredFrom() + public function getTypeOfGood() { - return $this->acquiredFrom; + return $this->typeOfGood; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $acquiredFrom + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $typeOfGood * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcquiredFrom($acquiredFrom) + public function setTypeOfGood($typeOfGood) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $acquiredFrom = self::checkTypes($acquiredFrom, $types); + $typeOfGood = self::checkTypes($typeOfGood, $types); - $this->acquiredFrom = $acquiredFrom; + $this->typeOfGood = $typeOfGood; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getOwnedThrough() + public function getAcquiredFrom() { - return $this->ownedThrough; + return $this->acquiredFrom; } /** - * @param DateTime|null $ownedThrough + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $acquiredFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOwnedThrough($ownedThrough) + public function setAcquiredFrom($acquiredFrom) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $ownedThrough = self::checkTypes($ownedThrough, $types); + $acquiredFrom = self::checkTypes($acquiredFrom, $types); - $this->ownedThrough = $ownedThrough; + $this->acquiredFrom = $acquiredFrom; } } diff --git a/src/Models/SchemaOrg/ParcelDelivery.php b/src/Models/SchemaOrg/ParcelDelivery.php index 1d2c5534..3b82146a 100644 --- a/src/Models/SchemaOrg/ParcelDelivery.php +++ b/src/Models/SchemaOrg/ParcelDelivery.php @@ -17,333 +17,331 @@ public static function getType() public static function fieldList() { $fields = [ - "originAddress" => "originAddress", + "carrier" => "carrier", + "deliveryAddress" => "deliveryAddress", + "deliveryStatus" => "deliveryStatus", + "partOfOrder" => "partOfOrder", "trackingNumber" => "trackingNumber", - "itemShipped" => "itemShipped", - "provider" => "provider", + "originAddress" => "originAddress", "trackingUrl" => "trackingUrl", - "deliveryAddress" => "deliveryAddress", + "itemShipped" => "itemShipped", "expectedArrivalUntil" => "expectedArrivalUntil", - "deliveryStatus" => "deliveryStatus", - "expectedArrivalFrom" => "expectedArrivalFrom", - "carrier" => "carrier", "hasDeliveryMethod" => "hasDeliveryMethod", - "partOfOrder" => "partOfOrder", + "provider" => "provider", + "expectedArrivalFrom" => "expectedArrivalFrom", ]; return array_merge(parent::fieldList(), $fields); } /** - * Shipper's address. + * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $originAddress; + protected $carrier; /** - * Shipper tracking number. + * Destination address. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $trackingNumber; + protected $deliveryAddress; /** - * Item(s) being shipped. + * New entry added as the package passes through each leg of its journey (from shipment to final delivery). * * - * @var \OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\DeliveryEvent|string */ - protected $itemShipped; + protected $deliveryStatus; /** - * 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 overall order the items in this delivery were included in. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Order|string */ - protected $provider; + protected $partOfOrder; /** - * Tracking url for the parcel delivery. + * Shipper tracking number. * * * @var string */ - protected $trackingUrl; + protected $trackingNumber; /** - * Destination address. + * Shipper's address. * * * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $deliveryAddress; + protected $originAddress; /** - * The latest date the package may arrive. + * Tracking url for the parcel delivery. * * - * @var Date|DateTime|null + * @var string */ - protected $expectedArrivalUntil; + protected $trackingUrl; /** - * New entry added as the package passes through each leg of its journey (from shipment to final delivery). + * Item(s) being shipped. * * - * @var \OpenActive\Models\SchemaOrg\DeliveryEvent|string + * @var \OpenActive\Models\SchemaOrg\Product|string */ - protected $deliveryStatus; + protected $itemShipped; /** - * The earliest date the package may arrive. + * The latest date the package may arrive. * * * @var Date|DateTime|null */ - protected $expectedArrivalFrom; + protected $expectedArrivalUntil; /** - * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. + * Method used for delivery or shipping. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $carrier; + protected $hasDeliveryMethod; /** - * Method used for delivery or shipping. + * 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\Enums\SchemaOrg\DeliveryMethod|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $hasDeliveryMethod; + protected $provider; /** - * The overall order the items in this delivery were included in. + * The earliest date the package may arrive. * * - * @var \OpenActive\Models\SchemaOrg\Order|string + * @var Date|DateTime|null */ - protected $partOfOrder; + protected $expectedArrivalFrom; /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getOriginAddress() + public function getCarrier() { - return $this->originAddress; + return $this->carrier; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $originAddress + * @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 setOriginAddress($originAddress) + public function setCarrier($carrier) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $originAddress = self::checkTypes($originAddress, $types); + $carrier = self::checkTypes($carrier, $types); - $this->originAddress = $originAddress; + $this->carrier = $carrier; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getTrackingNumber() + public function getDeliveryAddress() { - return $this->trackingNumber; + return $this->deliveryAddress; } /** - * @param string $trackingNumber + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $deliveryAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrackingNumber($trackingNumber) + public function setDeliveryAddress($deliveryAddress) { $types = [ + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $trackingNumber = self::checkTypes($trackingNumber, $types); + $deliveryAddress = self::checkTypes($deliveryAddress, $types); - $this->trackingNumber = $trackingNumber; + $this->deliveryAddress = $deliveryAddress; } /** - * @return \OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\DeliveryEvent|string */ - public function getItemShipped() + public function getDeliveryStatus() { - return $this->itemShipped; + return $this->deliveryStatus; } /** - * @param \OpenActive\Models\SchemaOrg\Product|string $itemShipped + * @param \OpenActive\Models\SchemaOrg\DeliveryEvent|string $deliveryStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemShipped($itemShipped) + public function setDeliveryStatus($deliveryStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\DeliveryEvent", "string", ]; - $itemShipped = self::checkTypes($itemShipped, $types); + $deliveryStatus = self::checkTypes($deliveryStatus, $types); - $this->itemShipped = $itemShipped; + $this->deliveryStatus = $deliveryStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Order|string */ - public function getProvider() + public function getPartOfOrder() { - return $this->provider; + return $this->partOfOrder; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param \OpenActive\Models\SchemaOrg\Order|string $partOfOrder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setPartOfOrder($partOfOrder) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Order", "string", ]; - $provider = self::checkTypes($provider, $types); + $partOfOrder = self::checkTypes($partOfOrder, $types); - $this->provider = $provider; + $this->partOfOrder = $partOfOrder; } /** * @return string */ - public function getTrackingUrl() + public function getTrackingNumber() { - return $this->trackingUrl; + return $this->trackingNumber; } /** - * @param string $trackingUrl + * @param string $trackingNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrackingUrl($trackingUrl) + public function setTrackingNumber($trackingNumber) { $types = [ "string", ]; - $trackingUrl = self::checkTypes($trackingUrl, $types); + $trackingNumber = self::checkTypes($trackingNumber, $types); - $this->trackingUrl = $trackingUrl; + $this->trackingNumber = $trackingNumber; } /** * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getDeliveryAddress() + public function getOriginAddress() { - return $this->deliveryAddress; + return $this->originAddress; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $deliveryAddress + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $originAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeliveryAddress($deliveryAddress) + public function setOriginAddress($originAddress) { $types = [ "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $deliveryAddress = self::checkTypes($deliveryAddress, $types); + $originAddress = self::checkTypes($originAddress, $types); - $this->deliveryAddress = $deliveryAddress; + $this->originAddress = $originAddress; } /** - * @return Date|DateTime|null + * @return string */ - public function getExpectedArrivalUntil() + public function getTrackingUrl() { - return $this->expectedArrivalUntil; + return $this->trackingUrl; } /** - * @param Date|DateTime|null $expectedArrivalUntil + * @param string $trackingUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpectedArrivalUntil($expectedArrivalUntil) + public function setTrackingUrl($trackingUrl) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $expectedArrivalUntil = self::checkTypes($expectedArrivalUntil, $types); + $trackingUrl = self::checkTypes($trackingUrl, $types); - $this->expectedArrivalUntil = $expectedArrivalUntil; + $this->trackingUrl = $trackingUrl; } /** - * @return \OpenActive\Models\SchemaOrg\DeliveryEvent|string + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getDeliveryStatus() + public function getItemShipped() { - return $this->deliveryStatus; + return $this->itemShipped; } /** - * @param \OpenActive\Models\SchemaOrg\DeliveryEvent|string $deliveryStatus + * @param \OpenActive\Models\SchemaOrg\Product|string $itemShipped * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeliveryStatus($deliveryStatus) + public function setItemShipped($itemShipped) { $types = [ - "\OpenActive\Models\SchemaOrg\DeliveryEvent", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $deliveryStatus = self::checkTypes($deliveryStatus, $types); + $itemShipped = self::checkTypes($itemShipped, $types); - $this->deliveryStatus = $deliveryStatus; + $this->itemShipped = $itemShipped; } /** * @return Date|DateTime|null */ - public function getExpectedArrivalFrom() + public function getExpectedArrivalUntil() { - return $this->expectedArrivalFrom; + return $this->expectedArrivalUntil; } /** - * @param Date|DateTime|null $expectedArrivalFrom + * @param Date|DateTime|null $expectedArrivalUntil * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpectedArrivalFrom($expectedArrivalFrom) + public function setExpectedArrivalUntil($expectedArrivalUntil) { $types = [ "Date", @@ -351,84 +349,86 @@ public function setExpectedArrivalFrom($expectedArrivalFrom) "null", ]; - $expectedArrivalFrom = self::checkTypes($expectedArrivalFrom, $types); + $expectedArrivalUntil = self::checkTypes($expectedArrivalUntil, $types); - $this->expectedArrivalFrom = $expectedArrivalFrom; + $this->expectedArrivalUntil = $expectedArrivalUntil; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getCarrier() + public function getHasDeliveryMethod() { - return $this->carrier; + return $this->hasDeliveryMethod; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier + * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $hasDeliveryMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCarrier($carrier) + public function setHasDeliveryMethod($hasDeliveryMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "string", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", ]; - $carrier = self::checkTypes($carrier, $types); + $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types); - $this->carrier = $carrier; + $this->hasDeliveryMethod = $hasDeliveryMethod; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getHasDeliveryMethod() + public function getProvider() { - return $this->hasDeliveryMethod; + return $this->provider; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $hasDeliveryMethod + * @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 setHasDeliveryMethod($hasDeliveryMethod) + public function setProvider($provider) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types); + $provider = self::checkTypes($provider, $types); - $this->hasDeliveryMethod = $hasDeliveryMethod; + $this->provider = $provider; } /** - * @return \OpenActive\Models\SchemaOrg\Order|string + * @return Date|DateTime|null */ - public function getPartOfOrder() + public function getExpectedArrivalFrom() { - return $this->partOfOrder; + return $this->expectedArrivalFrom; } /** - * @param \OpenActive\Models\SchemaOrg\Order|string $partOfOrder + * @param Date|DateTime|null $expectedArrivalFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfOrder($partOfOrder) + public function setExpectedArrivalFrom($expectedArrivalFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\Order", - "string", + "Date", + "DateTime", + "null", ]; - $partOfOrder = self::checkTypes($partOfOrder, $types); + $expectedArrivalFrom = self::checkTypes($expectedArrivalFrom, $types); - $this->partOfOrder = $partOfOrder; + $this->expectedArrivalFrom = $expectedArrivalFrom; } } diff --git a/src/Models/SchemaOrg/Patient.php b/src/Models/SchemaOrg/Patient.php index 03ca71cc..d5a1c305 100644 --- a/src/Models/SchemaOrg/Patient.php +++ b/src/Models/SchemaOrg/Patient.php @@ -5,7 +5,7 @@ /** * */ -class Patient extends \OpenActive\Models\SchemaOrg\MedicalAudience +class Patient extends \OpenActive\Models\SchemaOrg\Person { /** * @return string[]|null @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "healthCondition" => "healthCondition", - "drug" => "drug", "diagnosis" => "diagnosis", + "drug" => "drug", + "healthCondition" => "healthCondition", ]; return array_merge(parent::fieldList(), $fields); } /** - * Specifying the health condition(s) of a patient, medical study, or other target audience. + * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process. * * * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $healthCondition; + protected $diagnosis; /** * Specifying a drug or medicine used in a medication procedure. @@ -42,36 +42,36 @@ public static function fieldList() { protected $drug; /** - * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process. + * Specifying the health condition(s) of a patient, medical study, or other target audience. * * * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $diagnosis; + protected $healthCondition; /** * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getHealthCondition() + public function getDiagnosis() { - return $this->healthCondition; + return $this->diagnosis; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition + * @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 setHealthCondition($healthCondition) + public function setDiagnosis($diagnosis) { $types = [ "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $healthCondition = self::checkTypes($healthCondition, $types); + $diagnosis = self::checkTypes($diagnosis, $types); - $this->healthCondition = $healthCondition; + $this->diagnosis = $diagnosis; } /** @@ -102,26 +102,26 @@ public function setDrug($drug) /** * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getDiagnosis() + public function getHealthCondition() { - return $this->diagnosis; + return $this->healthCondition; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $diagnosis + * @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 setDiagnosis($diagnosis) + public function setHealthCondition($healthCondition) { $types = [ "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $diagnosis = self::checkTypes($diagnosis, $types); + $healthCondition = self::checkTypes($healthCondition, $types); - $this->diagnosis = $diagnosis; + $this->healthCondition = $healthCondition; } } diff --git a/src/Models/SchemaOrg/PayAction.php b/src/Models/SchemaOrg/PayAction.php index 1f0c2cd7..c614a3f8 100644 --- a/src/Models/SchemaOrg/PayAction.php +++ b/src/Models/SchemaOrg/PayAction.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/PaymentCard.php b/src/Models/SchemaOrg/PaymentCard.php index 4205b446..9fff1f51 100644 --- a/src/Models/SchemaOrg/PaymentCard.php +++ b/src/Models/SchemaOrg/PaymentCard.php @@ -17,30 +17,30 @@ public static function getType() public static function fieldList() { $fields = [ + "contactlessPayment" => "contactlessPayment", "cashBack" => "cashBack", - "monthlyMinimumRepaymentAmount" => "monthlyMinimumRepaymentAmount", "floorLimit" => "floorLimit", - "contactlessPayment" => "contactlessPayment", + "monthlyMinimumRepaymentAmount" => "monthlyMinimumRepaymentAmount", ]; return array_merge(parent::fieldList(), $fields); } /** - * A cardholder benefit that pays the cardholder a small percentage of their net expenditures. + * A secure method for consumers to purchase products or services via debit, credit or smartcards by using RFID or NFC technology. * * - * @var bool|Number|null + * @var bool|null */ - protected $cashBack; + protected $contactlessPayment; /** - * The minimum payment is the lowest amount of money that one is required to pay on a credit card statement each month. + * A cardholder benefit that pays the cardholder a small percentage of their net expenditures. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @var bool|Number|null */ - protected $monthlyMinimumRepaymentAmount; + protected $cashBack; /** * A floor limit is the amount of money above which credit card transactions must be authorized. @@ -51,64 +51,62 @@ public static function fieldList() { protected $floorLimit; /** - * A secure method for consumers to purchase products or services via debit, credit or smartcards by using RFID or NFC technology. + * The minimum payment is the lowest amount of money that one is required to pay on a credit card statement each month. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - protected $contactlessPayment; + protected $monthlyMinimumRepaymentAmount; /** - * @return bool|Number|null + * @return bool|null */ - public function getCashBack() + public function getContactlessPayment() { - return $this->cashBack; + return $this->contactlessPayment; } /** - * @param bool|Number|null $cashBack + * @param bool|null $contactlessPayment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCashBack($cashBack) + public function setContactlessPayment($contactlessPayment) { $types = [ "bool", - "Number", "null", ]; - $cashBack = self::checkTypes($cashBack, $types); + $contactlessPayment = self::checkTypes($contactlessPayment, $types); - $this->cashBack = $cashBack; + $this->contactlessPayment = $contactlessPayment; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @return bool|Number|null */ - public function getMonthlyMinimumRepaymentAmount() + public function getCashBack() { - return $this->monthlyMinimumRepaymentAmount; + return $this->cashBack; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $monthlyMinimumRepaymentAmount + * @param bool|Number|null $cashBack * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMonthlyMinimumRepaymentAmount($monthlyMinimumRepaymentAmount) + public function setCashBack($cashBack) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "bool", "Number", "null", ]; - $monthlyMinimumRepaymentAmount = self::checkTypes($monthlyMinimumRepaymentAmount, $types); + $cashBack = self::checkTypes($cashBack, $types); - $this->monthlyMinimumRepaymentAmount = $monthlyMinimumRepaymentAmount; + $this->cashBack = $cashBack; } /** @@ -137,28 +135,30 @@ public function setFloorLimit($floorLimit) } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - public function getContactlessPayment() + public function getMonthlyMinimumRepaymentAmount() { - return $this->contactlessPayment; + return $this->monthlyMinimumRepaymentAmount; } /** - * @param bool|null $contactlessPayment + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $monthlyMinimumRepaymentAmount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactlessPayment($contactlessPayment) + public function setMonthlyMinimumRepaymentAmount($monthlyMinimumRepaymentAmount) { $types = [ - "bool", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", + "Number", "null", ]; - $contactlessPayment = self::checkTypes($contactlessPayment, $types); + $monthlyMinimumRepaymentAmount = self::checkTypes($monthlyMinimumRepaymentAmount, $types); - $this->contactlessPayment = $contactlessPayment; + $this->monthlyMinimumRepaymentAmount = $monthlyMinimumRepaymentAmount; } } diff --git a/src/Models/SchemaOrg/PaymentChargeSpecification.php b/src/Models/SchemaOrg/PaymentChargeSpecification.php index dec70bdb..f3d4b011 100644 --- a/src/Models/SchemaOrg/PaymentChargeSpecification.php +++ b/src/Models/SchemaOrg/PaymentChargeSpecification.php @@ -28,7 +28,7 @@ public static function fieldList() { * The payment method(s) to which the payment charge specification applies. * * - * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @var \OpenActive\Models\SchemaOrg\PaymentMethod|string */ protected $appliesToPaymentMethod; @@ -41,7 +41,7 @@ public static function fieldList() { protected $appliesToDeliveryMethod; /** - * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @return \OpenActive\Models\SchemaOrg\PaymentMethod|string */ public function getAppliesToPaymentMethod() { @@ -49,15 +49,15 @@ public function getAppliesToPaymentMethod() } /** - * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $appliesToPaymentMethod + * @param \OpenActive\Models\SchemaOrg\PaymentMethod|string $appliesToPaymentMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAppliesToPaymentMethod($appliesToPaymentMethod) { $types = [ - "\OpenActive\Enums\SchemaOrg\PaymentMethod", - "null", + "\OpenActive\Models\SchemaOrg\PaymentMethod", + "string", ]; $appliesToPaymentMethod = self::checkTypes($appliesToPaymentMethod, $types); diff --git a/src/Models/SchemaOrg/PaymentMethod.php b/src/Models/SchemaOrg/PaymentMethod.php new file mode 100644 index 00000000..ad864907 --- /dev/null +++ b/src/Models/SchemaOrg/PaymentMethod.php @@ -0,0 +1,59 @@ + "paymentMethodType", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * The type of a payment method. + * + * + * @var \OpenActive\Enums\SchemaOrg\PaymentMethodType|null + */ + protected $paymentMethodType; + + /** + * @return \OpenActive\Enums\SchemaOrg\PaymentMethodType|null + */ + public function getPaymentMethodType() + { + return $this->paymentMethodType; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\PaymentMethodType|null $paymentMethodType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPaymentMethodType($paymentMethodType) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\PaymentMethodType", + "null", + ]; + + $paymentMethodType = self::checkTypes($paymentMethodType, $types); + + $this->paymentMethodType = $paymentMethodType; + } + +} diff --git a/src/Models/SchemaOrg/PeopleAudience.php b/src/Models/SchemaOrg/PeopleAudience.php index 309a33b3..fcaa3323 100644 --- a/src/Models/SchemaOrg/PeopleAudience.php +++ b/src/Models/SchemaOrg/PeopleAudience.php @@ -18,14 +18,14 @@ public static function getType() public static function fieldList() { $fields = [ "requiredMinAge" => "requiredMinAge", - "suggestedMaxAge" => "suggestedMaxAge", + "requiredMaxAge" => "requiredMaxAge", + "suggestedAge" => "suggestedAge", + "suggestedGender" => "suggestedGender", "healthCondition" => "healthCondition", "suggestedMeasurement" => "suggestedMeasurement", - "suggestedAge" => "suggestedAge", - "requiredMaxAge" => "requiredMaxAge", - "suggestedMinAge" => "suggestedMinAge", "requiredGender" => "requiredGender", - "suggestedGender" => "suggestedGender", + "suggestedMinAge" => "suggestedMinAge", + "suggestedMaxAge" => "suggestedMaxAge", ]; return array_merge(parent::fieldList(), $fields); @@ -40,68 +40,68 @@ public static function fieldList() { protected $requiredMinAge; /** - * Maximum recommended age in years for the audience or user. + * Audiences defined by a person's maximum age. * * - * @var Number|null + * @var int|null */ - protected $suggestedMaxAge; + protected $requiredMaxAge; /** - * Specifying the health condition(s) of a patient, medical study, or other target audience. + * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers. * * - * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $healthCondition; + protected $suggestedAge; /** - * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. + * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - protected $suggestedMeasurement; + protected $suggestedGender; /** - * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers. + * Specifying the health condition(s) of a patient, medical study, or other target audience. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $suggestedAge; + protected $healthCondition; /** - * Audiences defined by a person's maximum age. + * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $requiredMaxAge; + protected $suggestedMeasurement; /** - * Minimum recommended age in years for the audience or user. + * Audiences defined by a person's gender. * * - * @var Number|null + * @var string */ - protected $suggestedMinAge; + protected $requiredGender; /** - * Audiences defined by a person's gender. + * Minimum recommended age in years for the audience or user. * * - * @var string + * @var Number|null */ - protected $requiredGender; + protected $suggestedMinAge; /** - * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". + * Maximum recommended age in years for the audience or user. * * - * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @var Number|null */ - protected $suggestedGender; + protected $suggestedMaxAge; /** * @return int|null @@ -129,203 +129,203 @@ public function setRequiredMinAge($requiredMinAge) } /** - * @return Number|null + * @return int|null */ - public function getSuggestedMaxAge() + public function getRequiredMaxAge() { - return $this->suggestedMaxAge; + return $this->requiredMaxAge; } /** - * @param Number|null $suggestedMaxAge + * @param int|null $requiredMaxAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMaxAge($suggestedMaxAge) + public function setRequiredMaxAge($requiredMaxAge) { $types = [ - "Number", + "int", "null", ]; - $suggestedMaxAge = self::checkTypes($suggestedMaxAge, $types); + $requiredMaxAge = self::checkTypes($requiredMaxAge, $types); - $this->suggestedMaxAge = $suggestedMaxAge; + $this->requiredMaxAge = $requiredMaxAge; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHealthCondition() + public function getSuggestedAge() { - return $this->healthCondition; + return $this->suggestedAge; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthCondition($healthCondition) + public function setSuggestedAge($suggestedAge) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalCondition", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $healthCondition = self::checkTypes($healthCondition, $types); + $suggestedAge = self::checkTypes($suggestedAge, $types); - $this->healthCondition = $healthCondition; + $this->suggestedAge = $suggestedAge; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - public function getSuggestedMeasurement() + public function getSuggestedGender() { - return $this->suggestedMeasurement; + return $this->suggestedGender; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement + * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMeasurement($suggestedMeasurement) + public function setSuggestedGender($suggestedGender) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\GenderType", "string", + "null", ]; - $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); + $suggestedGender = self::checkTypes($suggestedGender, $types); - $this->suggestedMeasurement = $suggestedMeasurement; + $this->suggestedGender = $suggestedGender; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getSuggestedAge() + public function getHealthCondition() { - return $this->suggestedAge; + return $this->healthCondition; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge + * @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 setSuggestedAge($suggestedAge) + public function setHealthCondition($healthCondition) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $suggestedAge = self::checkTypes($suggestedAge, $types); + $healthCondition = self::checkTypes($healthCondition, $types); - $this->suggestedAge = $suggestedAge; + $this->healthCondition = $healthCondition; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getRequiredMaxAge() + public function getSuggestedMeasurement() { - return $this->requiredMaxAge; + return $this->suggestedMeasurement; } /** - * @param int|null $requiredMaxAge + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiredMaxAge($requiredMaxAge) + public function setSuggestedMeasurement($suggestedMeasurement) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $requiredMaxAge = self::checkTypes($requiredMaxAge, $types); + $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); - $this->requiredMaxAge = $requiredMaxAge; + $this->suggestedMeasurement = $suggestedMeasurement; } /** - * @return Number|null + * @return string */ - public function getSuggestedMinAge() + public function getRequiredGender() { - return $this->suggestedMinAge; + return $this->requiredGender; } /** - * @param Number|null $suggestedMinAge + * @param string $requiredGender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMinAge($suggestedMinAge) + public function setRequiredGender($requiredGender) { $types = [ - "Number", - "null", + "string", ]; - $suggestedMinAge = self::checkTypes($suggestedMinAge, $types); + $requiredGender = self::checkTypes($requiredGender, $types); - $this->suggestedMinAge = $suggestedMinAge; + $this->requiredGender = $requiredGender; } /** - * @return string + * @return Number|null */ - public function getRequiredGender() + public function getSuggestedMinAge() { - return $this->requiredGender; + return $this->suggestedMinAge; } /** - * @param string $requiredGender + * @param Number|null $suggestedMinAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiredGender($requiredGender) + public function setSuggestedMinAge($suggestedMinAge) { $types = [ - "string", + "Number", + "null", ]; - $requiredGender = self::checkTypes($requiredGender, $types); + $suggestedMinAge = self::checkTypes($suggestedMinAge, $types); - $this->requiredGender = $requiredGender; + $this->suggestedMinAge = $suggestedMinAge; } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return Number|null */ - public function getSuggestedGender() + public function getSuggestedMaxAge() { - return $this->suggestedGender; + return $this->suggestedMaxAge; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender + * @param Number|null $suggestedMaxAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedGender($suggestedGender) + public function setSuggestedMaxAge($suggestedMaxAge) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", - "string", + "Number", "null", ]; - $suggestedGender = self::checkTypes($suggestedGender, $types); + $suggestedMaxAge = self::checkTypes($suggestedMaxAge, $types); - $this->suggestedGender = $suggestedGender; + $this->suggestedMaxAge = $suggestedMaxAge; } } diff --git a/src/Models/SchemaOrg/Permit.php b/src/Models/SchemaOrg/Permit.php index 195b6af0..78c8a693 100644 --- a/src/Models/SchemaOrg/Permit.php +++ b/src/Models/SchemaOrg/Permit.php @@ -17,12 +17,12 @@ public static function getType() public static function fieldList() { $fields = [ - "validFor" => "validFor", "issuedBy" => "issuedBy", + "validIn" => "validIn", + "validFor" => "validFor", + "issuedThrough" => "issuedThrough", "validUntil" => "validUntil", "validFrom" => "validFrom", - "issuedThrough" => "issuedThrough", - "validIn" => "validIn", "permitAudience" => "permitAudience", ]; @@ -30,52 +30,52 @@ public static function fieldList() { } /** - * The duration of validity of a permit or similar thing. + * The organization issuing the item, for example a [[Permit]], [[Ticket]], or [[Certification]]. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $validFor; + protected $issuedBy; /** - * The organization issuing the ticket or permit. + * The geographic area where the item is valid. Applies for example to a [[Permit]], a [[Certification]], or an [[EducationalOccupationalCredential]]. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - protected $issuedBy; + protected $validIn; /** - * The date when the item is no longer valid. + * The duration of validity of a permit or similar thing. * * - * @var Date|null + * @var DateInterval|string|null */ - protected $validUntil; + protected $validFor; /** - * The date when the item becomes valid. + * The service through which the permit was granted. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Service|string */ - protected $validFrom; + protected $issuedThrough; /** - * The service through with the permit was granted. + * The date when the item is no longer valid. * * - * @var \OpenActive\Models\SchemaOrg\Service|string + * @var Date|null */ - protected $issuedThrough; + protected $validUntil; /** - * The geographic area where a permit or similar thing is valid. + * The date when the item becomes valid. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @var Date|DateTime|null */ - protected $validIn; + protected $validFrom; /** * The target audience for this permit. @@ -85,32 +85,6 @@ public static function fieldList() { */ protected $permitAudience; - /** - * @return DateInterval|string|null - */ - public function getValidFor() - { - return $this->validFor; - } - - /** - * @param DateInterval|string|null $validFor - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setValidFor($validFor) - { - $types = [ - "DateInterval", - "string", - "null", - ]; - - $validFor = self::checkTypes($validFor, $types); - - $this->validFor = $validFor; - } - /** * @return \OpenActive\Models\SchemaOrg\Organization|string */ @@ -137,54 +111,54 @@ public function setIssuedBy($issuedBy) } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getValidUntil() + public function getValidIn() { - return $this->validUntil; + return $this->validIn; } /** - * @param Date|null $validUntil + * @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 setValidUntil($validUntil) + public function setValidIn($validIn) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "string", ]; - $validUntil = self::checkTypes($validUntil, $types); + $validIn = self::checkTypes($validIn, $types); - $this->validUntil = $validUntil; + $this->validIn = $validIn; } /** - * @return Date|DateTime|null + * @return DateInterval|string|null */ - public function getValidFrom() + public function getValidFor() { - return $this->validFrom; + return $this->validFor; } /** - * @param Date|DateTime|null $validFrom + * @param DateInterval|string|null $validFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidFrom($validFrom) + public function setValidFor($validFor) { $types = [ - "Date", - "DateTime", + "DateInterval", + "string", "null", ]; - $validFrom = self::checkTypes($validFrom, $types); + $validFor = self::checkTypes($validFor, $types); - $this->validFrom = $validFrom; + $this->validFor = $validFor; } /** @@ -213,28 +187,54 @@ public function setIssuedThrough($issuedThrough) } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @return Date|null */ - public function getValidIn() + public function getValidUntil() { - return $this->validIn; + return $this->validUntil; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $validIn + * @param Date|null $validUntil * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidIn($validIn) + public function setValidUntil($validUntil) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "string", + "Date", + "null", ]; - $validIn = self::checkTypes($validIn, $types); + $validUntil = self::checkTypes($validUntil, $types); - $this->validIn = $validIn; + $this->validUntil = $validUntil; + } + + /** + * @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; } /** diff --git a/src/Models/SchemaOrg/Person.php b/src/Models/SchemaOrg/Person.php index cf9a6193..225d7e72 100644 --- a/src/Models/SchemaOrg/Person.php +++ b/src/Models/SchemaOrg/Person.php @@ -17,161 +17,191 @@ public static function getType() public static function fieldList() { $fields = [ - "spouse" => "spouse", - "additionalName" => "additionalName", + "interactionStatistic" => "interactionStatistic", "hasCredential" => "hasCredential", + "colleague" => "colleague", + "contactPoints" => "contactPoints", + "netWorth" => "netWorth", + "knowsAbout" => "knowsAbout", + "publishingPrinciples" => "publishingPrinciples", + "isicV4" => "isicV4", "telephone" => "telephone", - "honorificPrefix" => "honorificPrefix", - "parents" => "parents", + "homeLocation" => "homeLocation", + "vatID" => "vatID", + "knowsLanguage" => "knowsLanguage", "familyName" => "familyName", - "givenName" => "givenName", - "knowsAbout" => "knowsAbout", - "performerIn" => "performerIn", - "netWorth" => "netWorth", + "honorificPrefix" => "honorificPrefix", "award" => "award", - "workLocation" => "workLocation", - "honorificSuffix" => "honorificSuffix", - "deathPlace" => "deathPlace", - "homeLocation" => "homeLocation", + "address" => "address", + "callSign" => "callSign", + "birthPlace" => "birthPlace", + "follows" => "follows", "funding" => "funding", - "vatID" => "vatID", - "height" => "height", - "globalLocationNumber" => "globalLocationNumber", - "contactPoints" => "contactPoints", - "hasOccupation" => "hasOccupation", - "gender" => "gender", - "parent" => "parent", - "awards" => "awards", - "sibling" => "sibling", - "jobTitle" => "jobTitle", - "birthDate" => "birthDate", + "hasOfferCatalog" => "hasOfferCatalog", + "hasCertification" => "hasCertification", + "givenName" => "givenName", + "hasPOS" => "hasPOS", "funder" => "funder", - "makesOffer" => "makesOffer", + "parents" => "parents", + "faxNumber" => "faxNumber", + "deathPlace" => "deathPlace", + "email" => "email", + "naics" => "naics", "children" => "children", - "worksFor" => "worksFor", - "knows" => "knows", - "interactionStatistic" => "interactionStatistic", - "address" => "address", "memberOf" => "memberOf", - "publishingPrinciples" => "publishingPrinciples", + "contactPoint" => "contactPoint", + "taxID" => "taxID", + "parent" => "parent", + "knows" => "knows", + "skills" => "skills", + "birthDate" => "birthDate", + "alumniOf" => "alumniOf", + "affiliation" => "affiliation", + "relatedTo" => "relatedTo", + "jobTitle" => "jobTitle", + "honorificSuffix" => "honorificSuffix", + "spouse" => "spouse", + "workLocation" => "workLocation", + "brand" => "brand", "colleagues" => "colleagues", + "nationality" => "nationality", + "owns" => "owns", + "performerIn" => "performerIn", "deathDate" => "deathDate", - "email" => "email", - "affiliation" => "affiliation", + "worksFor" => "worksFor", + "additionalName" => "additionalName", + "sibling" => "sibling", "siblings" => "siblings", - "birthPlace" => "birthPlace", - "brand" => "brand", - "sponsor" => "sponsor", - "naics" => "naics", - "contactPoint" => "contactPoint", - "callSign" => "callSign", - "isicV4" => "isicV4", - "hasPOS" => "hasPOS", - "alumniOf" => "alumniOf", - "duns" => "duns", + "globalLocationNumber" => "globalLocationNumber", + "height" => "height", + "gender" => "gender", + "awards" => "awards", "weight" => "weight", - "knowsLanguage" => "knowsLanguage", - "relatedTo" => "relatedTo", - "colleague" => "colleague", + "hasOccupation" => "hasOccupation", + "duns" => "duns", + "sponsor" => "sponsor", + "makesOffer" => "makesOffer", "seeks" => "seeks", - "taxID" => "taxID", - "owns" => "owns", - "hasOfferCatalog" => "hasOfferCatalog", - "follows" => "follows", - "nationality" => "nationality", - "faxNumber" => "faxNumber", + "agentInteractionStatistic" => "agentInteractionStatistic", ]; return array_merge(parent::fieldList(), $fields); } /** - * The person's spouse. + * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * + * + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string + */ + protected $interactionStatistic; + + /** + * A credential awarded to the Person or Organization. + * + * + * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + */ + protected $hasCredential; + + /** + * A colleague of the person. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $spouse; + protected $colleague; /** - * An additional name for a Person, can be used for a middle name. + * A contact point for a person or organization. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $additionalName; + protected $contactPoints; /** - * A credential awarded to the Person or Organization. + * The total financial value of the person as calculated by subtracting assets from liabilities. * * - * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $hasCredential; + protected $netWorth; /** - * The telephone number. + * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $telephone; + protected $knowsAbout; /** - * An honorific prefix preceding a Person's name such as Dr/Mrs/Mr. + * 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 $honorificPrefix; + protected $publishingPrinciples; /** - * A parents of the person. + * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $parents; + protected $isicV4; /** - * Family name. In the U.S., the last name of a Person. + * The telephone number. * * * @var string */ - protected $familyName; + protected $telephone; /** - * Given name. In the U.S., the first name of a Person. + * A contact location for a person's residence. + * + * + * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string + */ + protected $homeLocation; + + /** + * The Value-added Tax ID of the organization or person. * * * @var string */ - protected $givenName; + protected $vatID; /** - * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. + * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $knowsAbout; + protected $knowsLanguage; /** - * Event that this person is a performer or participant in. + * Family name. In the U.S., the last name of a Person. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var string */ - protected $performerIn; + protected $familyName; /** - * The total financial value of the person as calculated by subtracting assets from liabilities. + * An honorific prefix preceding a Person's name such as Dr/Mrs/Mr. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var string */ - protected $netWorth; + protected $honorificPrefix; /** * An award won by or for this item. @@ -182,36 +212,36 @@ public static function fieldList() { protected $award; /** - * A contact location for a person's place of work. + * Physical address of the item. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress */ - protected $workLocation; + protected $address; /** - * An honorific suffix following a Person's name such as M.D. /PhD/MSCSW. + * 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 $honorificSuffix; + protected $callSign; /** - * The place where the person died. + * The place where the person was born. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $deathPlace; + protected $birthPlace; /** - * A contact location for a person's residence. + * The most generic uni-directional social relation. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $homeLocation; + protected $follows; /** * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. @@ -222,124 +252,124 @@ public static function fieldList() { protected $funding; /** - * The Value-added Tax ID of the organization or person. + * Indicates an OfferCatalog listing for this Organization, Person, or Service. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - protected $vatID; + protected $hasOfferCatalog; /** - * The height of the item. + * Certification information about a product, organization, service, place, or person. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $height; + protected $hasCertification; /** - * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. + * Given name. In the U.S., the first name of a Person. * * * @var string */ - protected $globalLocationNumber; + protected $givenName; /** - * A contact point for a person or organization. + * Points-of-Sales operated by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $contactPoints; + protected $hasPOS; /** - * The Person's occupation. For past professions, use Role for expressing dates. + * A person or organization that supports (sponsors) something through some kind of financial contribution. * * - * @var \OpenActive\Models\SchemaOrg\Occupation|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $hasOccupation; + protected $funder; /** - * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". + * A parents of the person. * * - * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $gender; + protected $parents; /** - * A parent of this person. + * The fax number. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $parent; + protected $faxNumber; /** - * Awards won by or for this item. + * The place where the person died. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $awards; + protected $deathPlace; /** - * A sibling of the person. + * Email address. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $sibling; + protected $email; /** - * The job title of the person (for example, Financial Manager). + * The North American Industry Classification System (NAICS) code for a particular organization or business person. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var string */ - protected $jobTitle; + protected $naics; /** - * Date of birth. + * A child of the person. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $birthDate; + protected $children; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * An Organization (or ProgramMembership) to which this Person or Organization belongs. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - protected $funder; + protected $memberOf; /** - * A pointer to products or services offered by the organization or person. + * A contact point for a person or organization. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $makesOffer; + protected $contactPoint; /** - * A child of the person. + * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $children; + protected $taxID; /** - * Organizations that the person works for. + * A parent of this person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $worksFor; + protected $parent; /** * The most generic bi-directional social/work relation. @@ -350,159 +380,188 @@ public static function fieldList() { protected $knows; /** - * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * 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 \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $interactionStatistic; + protected $skills; /** - * Physical address of the item. + * Date of birth. * * - * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var Date|null */ - protected $address; + protected $birthDate; /** - * An Organization (or ProgramMembership) to which this Person or Organization belongs. + * An organization that the person is an alumni of. * * - * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $memberOf; + protected $alumniOf; /** - * 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. - * + * An organization that this person is affiliated with. For example, a school/university, a club, or a team. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $publishingPrinciples; + protected $affiliation; /** - * A colleague of the person. + * The most generic familial relation. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $colleagues; + protected $relatedTo; /** - * Date of death. + * The job title of the person (for example, Financial Manager). * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $deathDate; + protected $jobTitle; /** - * Email address. + * An honorific suffix following a Person's name such as M.D./PhD/MSCSW. * * * @var string */ - protected $email; + protected $honorificSuffix; /** - * An organization that this person is affiliated with. For example, a school/university, a club, or a team. + * The person's spouse. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $affiliation; + protected $spouse; /** - * A sibling of the person. + * A contact location for a person's place of work. + * + * + * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string + */ + protected $workLocation; + + /** + * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + */ + protected $brand; + + /** + * A colleague of the person. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $siblings; + protected $colleagues; /** - * The place where the person was born. + * Nationality of the person. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $birthPlace; + protected $nationality; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * Products owned by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string */ - protected $brand; + protected $owns; /** - * 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. + * Event that this person is a performer or participant in. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $sponsor; + protected $performerIn; /** - * The North American Industry Classification System (NAICS) code for a particular organization or business person. + * Date of death. + * + * + * @var Date|null + */ + protected $deathDate; + + /** + * Organizations that the person works for. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|string + */ + protected $worksFor; + + /** + * An additional name for a Person, can be used for a middle name. * * * @var string */ - protected $naics; + protected $additionalName; /** - * A contact point for a person or organization. + * A sibling of the person. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $contactPoint; + protected $sibling; /** - * 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. + * A sibling of the person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $callSign; + protected $siblings; /** - * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. * * * @var string */ - protected $isicV4; + protected $globalLocationNumber; /** - * Points-of-Sales operated by the organization or person. + * The height of the item. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $hasPOS; + protected $height; /** - * An organization that the person is an alumni of. + * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". * * - * @var \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - protected $alumniOf; + protected $gender; /** - * The Dun & Bradstreet DUNS number for identifying an organization or business person. + * Awards won by or for this item. * * * @var string */ - protected $duns; + protected $awards; /** * The weight of the product or person. @@ -513,354 +572,398 @@ public static function fieldList() { protected $weight; /** - * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). + * The Person's occupation. For past professions, use Role for expressing dates. * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var \OpenActive\Models\SchemaOrg\Occupation|string */ - protected $knowsLanguage; + protected $hasOccupation; /** - * The most generic familial relation. + * The Dun & Bradstreet DUNS number for identifying an organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $relatedTo; + protected $duns; /** - * A colleague of the person. + * 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\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $colleague; + protected $sponsor; /** - * A pointer to products or services sought by the organization or person (demand). + * A pointer to products or services offered by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\Demand|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $seeks; + protected $makesOffer; /** - * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. + * A pointer to products or services sought by the organization or person (demand). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Demand|string */ - protected $taxID; + protected $seeks; /** - * Products owned by the organization or person. + * The number of completed interactions for this entity, in a particular role (the 'agent'), in a particular action (indicated in the statistic), and in a particular context (i.e. interactionService). * * - * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - protected $owns; + protected $agentInteractionStatistic; /** - * Indicates an OfferCatalog listing for this Organization, Person, or Service. - * - * - * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - protected $hasOfferCatalog; + public function getInteractionStatistic() + { + return $this->interactionStatistic; + } /** - * The most generic uni-directional social relation. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|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 $follows; + public function setInteractionStatistic($interactionStatistic) + { + $types = [ + "\OpenActive\Models\SchemaOrg\InteractionCounter", + "string", + ]; + + $interactionStatistic = self::checkTypes($interactionStatistic, $types); + + $this->interactionStatistic = $interactionStatistic; + } /** - * Nationality of the person. - * - * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - protected $nationality; + public function getHasCredential() + { + return $this->hasCredential; + } /** - * The fax number. - * - * - * @var string + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $faxNumber; + public function setHasCredential($hasCredential) + { + $types = [ + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "string", + ]; + + $hasCredential = self::checkTypes($hasCredential, $types); + + $this->hasCredential = $hasCredential; + } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSpouse() + public function getColleague() { - return $this->spouse; + return $this->colleague; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $spouse + * @param \OpenActive\Models\SchemaOrg\Person|string $colleague * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpouse($spouse) + public function setColleague($colleague) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $spouse = self::checkTypes($spouse, $types); + $colleague = self::checkTypes($colleague, $types); - $this->spouse = $spouse; + $this->colleague = $colleague; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getAdditionalName() + public function getContactPoints() { - return $this->additionalName; + return $this->contactPoints; } /** - * @param string $additionalName + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalName($additionalName) + public function setContactPoints($contactPoints) { $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $additionalName = self::checkTypes($additionalName, $types); + $contactPoints = self::checkTypes($contactPoints, $types); - $this->additionalName = $additionalName; + $this->contactPoints = $contactPoints; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getHasCredential() + public function getNetWorth() { - return $this->hasCredential; + return $this->netWorth; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string $netWorth * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasCredential($hasCredential) + public function setNetWorth($netWorth) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $hasCredential = self::checkTypes($hasCredential, $types); + $netWorth = self::checkTypes($netWorth, $types); - $this->hasCredential = $hasCredential; + $this->netWorth = $netWorth; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getTelephone() + public function getKnowsAbout() { - return $this->telephone; + return $this->knowsAbout; } /** - * @param string $telephone + * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTelephone($telephone) + public function setKnowsAbout($knowsAbout) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $telephone = self::checkTypes($telephone, $types); + $knowsAbout = self::checkTypes($knowsAbout, $types); - $this->telephone = $telephone; + $this->knowsAbout = $knowsAbout; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getHonorificPrefix() + public function getPublishingPrinciples() { - return $this->honorificPrefix; + return $this->publishingPrinciples; } /** - * @param string $honorificPrefix + * @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 setHonorificPrefix($honorificPrefix) + public function setPublishingPrinciples($publishingPrinciples) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $honorificPrefix = self::checkTypes($honorificPrefix, $types); + $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); - $this->honorificPrefix = $honorificPrefix; + $this->publishingPrinciples = $publishingPrinciples; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getParents() + public function getIsicV4() { - return $this->parents; + return $this->isicV4; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $parents + * @param string $isicV4 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setParents($parents) + public function setIsicV4($isicV4) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $parents = self::checkTypes($parents, $types); + $isicV4 = self::checkTypes($isicV4, $types); - $this->parents = $parents; + $this->isicV4 = $isicV4; } /** * @return string */ - public function getFamilyName() + public function getTelephone() { - return $this->familyName; + return $this->telephone; } /** - * @param string $familyName + * @param string $telephone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFamilyName($familyName) + public function setTelephone($telephone) { $types = [ "string", ]; - $familyName = self::checkTypes($familyName, $types); + $telephone = self::checkTypes($telephone, $types); - $this->familyName = $familyName; + $this->telephone = $telephone; + } + + /** + * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string + */ + public function getHomeLocation() + { + return $this->homeLocation; + } + + /** + * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string $homeLocation + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHomeLocation($homeLocation) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Place", + "string", + ]; + + $homeLocation = self::checkTypes($homeLocation, $types); + + $this->homeLocation = $homeLocation; } /** * @return string */ - public function getGivenName() + public function getVatID() { - return $this->givenName; + return $this->vatID; } /** - * @param string $givenName + * @param string $vatID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGivenName($givenName) + public function setVatID($vatID) { $types = [ "string", ]; - $givenName = self::checkTypes($givenName, $types); + $vatID = self::checkTypes($vatID, $types); - $this->givenName = $givenName; + $this->vatID = $vatID; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getKnowsAbout() + public function getKnowsLanguage() { - return $this->knowsAbout; + return $this->knowsLanguage; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout + * @param string|\OpenActive\Models\SchemaOrg\Language $knowsLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnowsAbout($knowsAbout) + public function setKnowsLanguage($knowsLanguage) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Language", ]; - $knowsAbout = self::checkTypes($knowsAbout, $types); + $knowsLanguage = self::checkTypes($knowsLanguage, $types); - $this->knowsAbout = $knowsAbout; + $this->knowsLanguage = $knowsLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return string */ - public function getPerformerIn() + public function getFamilyName() { - return $this->performerIn; + return $this->familyName; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $performerIn + * @param string $familyName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPerformerIn($performerIn) + public function setFamilyName($familyName) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $performerIn = self::checkTypes($performerIn, $types); + $familyName = self::checkTypes($familyName, $types); - $this->performerIn = $performerIn; + $this->familyName = $familyName; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return string */ - public function getNetWorth() + public function getHonorificPrefix() { - return $this->netWorth; + return $this->honorificPrefix; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $netWorth + * @param string $honorificPrefix * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNetWorth($netWorth) + public function setHonorificPrefix($honorificPrefix) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $netWorth = self::checkTypes($netWorth, $types); + $honorificPrefix = self::checkTypes($honorificPrefix, $types); - $this->netWorth = $netWorth; + $this->honorificPrefix = $honorificPrefix; } /** @@ -888,104 +991,102 @@ public function setAward($award) } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress */ - public function getWorkLocation() + public function getAddress() { - return $this->workLocation; + return $this->address; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string $workLocation + * @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 setWorkLocation($workLocation) + public function setAddress($address) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\ContactPoint", "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $workLocation = self::checkTypes($workLocation, $types); + $address = self::checkTypes($address, $types); - $this->workLocation = $workLocation; + $this->address = $address; } /** * @return string */ - public function getHonorificSuffix() + public function getCallSign() { - return $this->honorificSuffix; + return $this->callSign; } /** - * @param string $honorificSuffix + * @param string $callSign * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHonorificSuffix($honorificSuffix) + public function setCallSign($callSign) { $types = [ "string", ]; - $honorificSuffix = self::checkTypes($honorificSuffix, $types); + $callSign = self::checkTypes($callSign, $types); - $this->honorificSuffix = $honorificSuffix; + $this->callSign = $callSign; } /** * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getDeathPlace() + public function getBirthPlace() { - return $this->deathPlace; + return $this->birthPlace; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $deathPlace + * @param \OpenActive\Models\SchemaOrg\Place|string $birthPlace * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeathPlace($deathPlace) + public function setBirthPlace($birthPlace) { $types = [ "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $deathPlace = self::checkTypes($deathPlace, $types); + $birthPlace = self::checkTypes($birthPlace, $types); - $this->deathPlace = $deathPlace; + $this->birthPlace = $birthPlace; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getHomeLocation() + public function getFollows() { - return $this->homeLocation; + return $this->follows; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string $homeLocation + * @param \OpenActive\Models\SchemaOrg\Person|string $follows * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHomeLocation($homeLocation) + public function setFollows($follows) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $homeLocation = self::checkTypes($homeLocation, $types); + $follows = self::checkTypes($follows, $types); - $this->homeLocation = $homeLocation; + $this->follows = $follows; } /** @@ -1014,378 +1115,376 @@ public function setFunding($funding) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - public function getVatID() + public function getHasOfferCatalog() { - return $this->vatID; + return $this->hasOfferCatalog; } /** - * @param string $vatID + * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVatID($vatID) + public function setHasOfferCatalog($hasOfferCatalog) { $types = [ + "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $vatID = self::checkTypes($vatID, $types); + $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); - $this->vatID = $vatID; + $this->hasOfferCatalog = $hasOfferCatalog; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getHeight() + public function getHasCertification() { - return $this->height; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeight($height) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $height = self::checkTypes($height, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->height = $height; + $this->hasCertification = $hasCertification; } /** * @return string */ - public function getGlobalLocationNumber() + public function getGivenName() { - return $this->globalLocationNumber; + return $this->givenName; } /** - * @param string $globalLocationNumber + * @param string $givenName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGlobalLocationNumber($globalLocationNumber) + public function setGivenName($givenName) { $types = [ "string", ]; - $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); + $givenName = self::checkTypes($givenName, $types); - $this->globalLocationNumber = $globalLocationNumber; + $this->givenName = $givenName; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getContactPoints() + public function getHasPOS() { - return $this->contactPoints; + return $this->hasPOS; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints + * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoints($contactPoints) + public function setHasPOS($hasPOS) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $contactPoints = self::checkTypes($contactPoints, $types); + $hasPOS = self::checkTypes($hasPOS, $types); - $this->contactPoints = $contactPoints; + $this->hasPOS = $hasPOS; } /** - * @return \OpenActive\Models\SchemaOrg\Occupation|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getHasOccupation() + public function getFunder() { - return $this->hasOccupation; + return $this->funder; } /** - * @param \OpenActive\Models\SchemaOrg\Occupation|string $hasOccupation + * @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 setHasOccupation($hasOccupation) + public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\Occupation", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $hasOccupation = self::checkTypes($hasOccupation, $types); + $funder = self::checkTypes($funder, $types); - $this->hasOccupation = $hasOccupation; + $this->funder = $funder; } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGender() + public function getParents() { - return $this->gender; + return $this->parents; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $gender + * @param \OpenActive\Models\SchemaOrg\Person|string $parents * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGender($gender) + public function setParents($parents) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $gender = self::checkTypes($gender, $types); + $parents = self::checkTypes($parents, $types); - $this->gender = $gender; + $this->parents = $parents; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getParent() + public function getFaxNumber() { - return $this->parent; + return $this->faxNumber; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $parent + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setParent($parent) + public function setFaxNumber($faxNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $parent = self::checkTypes($parent, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->parent = $parent; + $this->faxNumber = $faxNumber; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getAwards() + public function getDeathPlace() { - return $this->awards; + return $this->deathPlace; } /** - * @param string $awards + * @param \OpenActive\Models\SchemaOrg\Place|string $deathPlace * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setDeathPlace($deathPlace) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $awards = self::checkTypes($awards, $types); + $deathPlace = self::checkTypes($deathPlace, $types); - $this->awards = $awards; + $this->deathPlace = $deathPlace; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getSibling() + public function getEmail() { - return $this->sibling; + return $this->email; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $sibling + * @param string $email * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSibling($sibling) + public function setEmail($email) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $sibling = self::checkTypes($sibling, $types); + $email = self::checkTypes($email, $types); - $this->sibling = $sibling; + $this->email = $email; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return string */ - public function getJobTitle() + public function getNaics() { - return $this->jobTitle; + return $this->naics; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $jobTitle + * @param string $naics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobTitle($jobTitle) + public function setNaics($naics) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $jobTitle = self::checkTypes($jobTitle, $types); + $naics = self::checkTypes($naics, $types); - $this->jobTitle = $jobTitle; + $this->naics = $naics; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getBirthDate() + public function getChildren() { - return $this->birthDate; + return $this->children; } /** - * @param Date|null $birthDate + * @param \OpenActive\Models\SchemaOrg\Person|string $children * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBirthDate($birthDate) + public function setChildren($children) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $birthDate = self::checkTypes($birthDate, $types); + $children = self::checkTypes($children, $types); - $this->birthDate = $birthDate; + $this->children = $children; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - public function getFunder() + public function getMemberOf() { - return $this->funder; + return $this->memberOf; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\MemberProgramTier|string $memberOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunder($funder) + public function setMemberOf($memberOf) { $types = [ + "\OpenActive\Models\SchemaOrg\ProgramMembership", "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\MemberProgramTier", "string", ]; - $funder = self::checkTypes($funder, $types); + $memberOf = self::checkTypes($memberOf, $types); - $this->funder = $funder; + $this->memberOf = $memberOf; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getMakesOffer() + public function getContactPoint() { - return $this->makesOffer; + return $this->contactPoint; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer + * @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 setMakesOffer($makesOffer) + public function setContactPoint($contactPoint) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $makesOffer = self::checkTypes($makesOffer, $types); + $contactPoint = self::checkTypes($contactPoint, $types); - $this->makesOffer = $makesOffer; + $this->contactPoint = $contactPoint; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getChildren() + public function getTaxID() { - return $this->children; + return $this->taxID; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $children + * @param string $taxID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setChildren($children) + public function setTaxID($taxID) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $children = self::checkTypes($children, $types); + $taxID = self::checkTypes($taxID, $types); - $this->children = $children; + $this->taxID = $taxID; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getWorksFor() + public function getParent() { - return $this->worksFor; + return $this->parent; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $worksFor + * @param \OpenActive\Models\SchemaOrg\Person|string $parent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorksFor($worksFor) + public function setParent($parent) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $worksFor = self::checkTypes($worksFor, $types); + $parent = self::checkTypes($parent, $types); - $this->worksFor = $worksFor; + $this->parent = $parent; } /** @@ -1414,751 +1513,755 @@ public function setKnows($knows) } /** - * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getInteractionStatistic() + public function getSkills() { - return $this->interactionStatistic; + return $this->skills; } /** - * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic + * @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 setInteractionStatistic($interactionStatistic) + public function setSkills($skills) { $types = [ - "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $interactionStatistic = self::checkTypes($interactionStatistic, $types); + $skills = self::checkTypes($skills, $types); - $this->interactionStatistic = $interactionStatistic; + $this->skills = $skills; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return Date|null */ - public function getAddress() + public function getBirthDate() { - return $this->address; + return $this->birthDate; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @param Date|null $birthDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddress($address) + public function setBirthDate($birthDate) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", + "Date", + "null", ]; - $address = self::checkTypes($address, $types); + $birthDate = self::checkTypes($birthDate, $types); - $this->address = $address; + $this->birthDate = $birthDate; } /** - * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getMemberOf() + public function getAlumniOf() { - return $this->memberOf; + return $this->alumniOf; } /** - * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf + * @param \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string $alumniOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMemberOf($memberOf) + public function setAlumniOf($alumniOf) { $types = [ - "\OpenActive\Models\SchemaOrg\ProgramMembership", + "\OpenActive\Models\SchemaOrg\EducationalOrganization", "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $memberOf = self::checkTypes($memberOf, $types); + $alumniOf = self::checkTypes($alumniOf, $types); - $this->memberOf = $memberOf; + $this->alumniOf = $alumniOf; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getPublishingPrinciples() + public function getAffiliation() { - return $this->publishingPrinciples; + return $this->affiliation; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples + * @param \OpenActive\Models\SchemaOrg\Organization|string $affiliation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublishingPrinciples($publishingPrinciples) + public function setAffiliation($affiliation) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); + $affiliation = self::checkTypes($affiliation, $types); - $this->publishingPrinciples = $publishingPrinciples; + $this->affiliation = $affiliation; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getColleagues() + public function getRelatedTo() { - return $this->colleagues; + return $this->relatedTo; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colleagues + * @param \OpenActive\Models\SchemaOrg\Person|string $relatedTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setColleagues($colleagues) + public function setRelatedTo($relatedTo) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $colleagues = self::checkTypes($colleagues, $types); + $relatedTo = self::checkTypes($relatedTo, $types); - $this->colleagues = $colleagues; + $this->relatedTo = $relatedTo; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getDeathDate() + public function getJobTitle() { - return $this->deathDate; + return $this->jobTitle; } /** - * @param Date|null $deathDate + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $jobTitle * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeathDate($deathDate) + public function setJobTitle($jobTitle) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $deathDate = self::checkTypes($deathDate, $types); + $jobTitle = self::checkTypes($jobTitle, $types); - $this->deathDate = $deathDate; + $this->jobTitle = $jobTitle; } /** * @return string */ - public function getEmail() + public function getHonorificSuffix() { - return $this->email; + return $this->honorificSuffix; } /** - * @param string $email + * @param string $honorificSuffix * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmail($email) + public function setHonorificSuffix($honorificSuffix) { $types = [ "string", ]; - $email = self::checkTypes($email, $types); + $honorificSuffix = self::checkTypes($honorificSuffix, $types); - $this->email = $email; + $this->honorificSuffix = $honorificSuffix; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getAffiliation() + public function getSpouse() { - return $this->affiliation; + return $this->spouse; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $affiliation + * @param \OpenActive\Models\SchemaOrg\Person|string $spouse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAffiliation($affiliation) + public function setSpouse($spouse) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $affiliation = self::checkTypes($affiliation, $types); + $spouse = self::checkTypes($spouse, $types); - $this->affiliation = $affiliation; + $this->spouse = $spouse; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string */ - public function getSiblings() + public function getWorkLocation() { - return $this->siblings; + return $this->workLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $siblings + * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string $workLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSiblings($siblings) + public function setWorkLocation($workLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $siblings = self::checkTypes($siblings, $types); + $workLocation = self::checkTypes($workLocation, $types); - $this->siblings = $siblings; + $this->workLocation = $workLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - public function getBirthPlace() + public function getBrand() { - return $this->birthPlace; + return $this->brand; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $birthPlace + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBirthPlace($birthPlace) + public function setBrand($brand) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Brand", "string", ]; - $birthPlace = self::checkTypes($birthPlace, $types); + $brand = self::checkTypes($brand, $types); - $this->birthPlace = $birthPlace; + $this->brand = $brand; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getBrand() + public function getColleagues() { - return $this->brand; + return $this->colleagues; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @param \OpenActive\Models\SchemaOrg\Person|string $colleagues * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBrand($brand) + public function setColleagues($colleagues) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $brand = self::checkTypes($brand, $types); + $colleagues = self::checkTypes($colleagues, $types); - $this->brand = $brand; + $this->colleagues = $colleagues; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getSponsor() + public function getNationality() { - return $this->sponsor; + return $this->nationality; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @param \OpenActive\Models\SchemaOrg\Country|string $nationality * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSponsor($sponsor) + public function setNationality($nationality) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $sponsor = self::checkTypes($sponsor, $types); + $nationality = self::checkTypes($nationality, $types); - $this->sponsor = $sponsor; + $this->nationality = $nationality; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string */ - public function getNaics() + public function getOwns() { - return $this->naics; + return $this->owns; } /** - * @param string $naics + * @param \OpenActive\Models\SchemaOrg\OwnershipInfo|\OpenActive\Models\SchemaOrg\Product|string $owns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNaics($naics) + public function setOwns($owns) { $types = [ + "\OpenActive\Models\SchemaOrg\OwnershipInfo", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $naics = self::checkTypes($naics, $types); + $owns = self::checkTypes($owns, $types); - $this->naics = $naics; + $this->owns = $owns; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getContactPoint() + public function getPerformerIn() { - return $this->contactPoint; + return $this->performerIn; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint + * @param \OpenActive\Models\SchemaOrg\Event|string $performerIn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoint($contactPoint) + public function setPerformerIn($performerIn) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $contactPoint = self::checkTypes($contactPoint, $types); + $performerIn = self::checkTypes($performerIn, $types); - $this->contactPoint = $contactPoint; + $this->performerIn = $performerIn; } /** - * @return string + * @return Date|null */ - public function getCallSign() + public function getDeathDate() { - return $this->callSign; + return $this->deathDate; } /** - * @param string $callSign + * @param Date|null $deathDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCallSign($callSign) + public function setDeathDate($deathDate) { $types = [ - "string", + "Date", + "null", ]; - $callSign = self::checkTypes($callSign, $types); + $deathDate = self::checkTypes($deathDate, $types); - $this->callSign = $callSign; + $this->deathDate = $deathDate; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getIsicV4() + public function getWorksFor() { - return $this->isicV4; + return $this->worksFor; } /** - * @param string $isicV4 + * @param \OpenActive\Models\SchemaOrg\Organization|string $worksFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsicV4($isicV4) + public function setWorksFor($worksFor) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $isicV4 = self::checkTypes($isicV4, $types); + $worksFor = self::checkTypes($worksFor, $types); - $this->isicV4 = $isicV4; + $this->worksFor = $worksFor; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getHasPOS() + public function getAdditionalName() { - return $this->hasPOS; + return $this->additionalName; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS + * @param string $additionalName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasPOS($hasPOS) + public function setAdditionalName($additionalName) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $hasPOS = self::checkTypes($hasPOS, $types); + $additionalName = self::checkTypes($additionalName, $types); - $this->hasPOS = $hasPOS; + $this->additionalName = $additionalName; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getAlumniOf() + public function getSibling() { - return $this->alumniOf; + return $this->sibling; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string $alumniOf + * @param \OpenActive\Models\SchemaOrg\Person|string $sibling * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlumniOf($alumniOf) + public function setSibling($sibling) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOrganization", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $alumniOf = self::checkTypes($alumniOf, $types); + $sibling = self::checkTypes($sibling, $types); - $this->alumniOf = $alumniOf; + $this->sibling = $sibling; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDuns() + public function getSiblings() { - return $this->duns; + return $this->siblings; } /** - * @param string $duns + * @param \OpenActive\Models\SchemaOrg\Person|string $siblings * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuns($duns) + public function setSiblings($siblings) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $duns = self::checkTypes($duns, $types); + $siblings = self::checkTypes($siblings, $types); - $this->duns = $duns; + $this->siblings = $siblings; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getWeight() + public function getGlobalLocationNumber() { - return $this->weight; + return $this->globalLocationNumber; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight + * @param string $globalLocationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWeight($weight) + public function setGlobalLocationNumber($globalLocationNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $weight = self::checkTypes($weight, $types); + $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); - $this->weight = $weight; + $this->globalLocationNumber = $globalLocationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getKnowsLanguage() + public function getHeight() { - return $this->knowsLanguage; + return $this->height; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage + * @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 setKnowsLanguage($knowsLanguage) + public function setHeight($height) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $knowsLanguage = self::checkTypes($knowsLanguage, $types); + $height = self::checkTypes($height, $types); - $this->knowsLanguage = $knowsLanguage; + $this->height = $height; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - public function getRelatedTo() + public function getGender() { - return $this->relatedTo; + return $this->gender; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $relatedTo + * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $gender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedTo($relatedTo) + public function setGender($gender) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Enums\SchemaOrg\GenderType", "string", + "null", ]; - $relatedTo = self::checkTypes($relatedTo, $types); + $gender = self::checkTypes($gender, $types); - $this->relatedTo = $relatedTo; + $this->gender = $gender; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getColleague() + public function getAwards() { - return $this->colleague; + return $this->awards; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colleague + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setColleague($colleague) + public function setAwards($awards) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $colleague = self::checkTypes($colleague, $types); + $awards = self::checkTypes($awards, $types); - $this->colleague = $colleague; + $this->awards = $awards; } /** - * @return \OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSeeks() + public function getWeight() { - return $this->seeks; + return $this->weight; } /** - * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeeks($seeks) + public function setWeight($weight) { $types = [ - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $seeks = self::checkTypes($seeks, $types); + $weight = self::checkTypes($weight, $types); - $this->seeks = $seeks; + $this->weight = $weight; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Occupation|string */ - public function getTaxID() + public function getHasOccupation() { - return $this->taxID; + return $this->hasOccupation; } /** - * @param string $taxID + * @param \OpenActive\Models\SchemaOrg\Occupation|string $hasOccupation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTaxID($taxID) + public function setHasOccupation($hasOccupation) { $types = [ + "\OpenActive\Models\SchemaOrg\Occupation", "string", ]; - $taxID = self::checkTypes($taxID, $types); + $hasOccupation = self::checkTypes($hasOccupation, $types); - $this->taxID = $taxID; + $this->hasOccupation = $hasOccupation; } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @return string */ - public function getOwns() + public function getDuns() { - return $this->owns; + return $this->duns; } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns + * @param string $duns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOwns($owns) + public function setDuns($duns) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\OwnershipInfo", "string", ]; - $owns = self::checkTypes($owns, $types); + $duns = self::checkTypes($duns, $types); - $this->owns = $owns; + $this->duns = $duns; } /** - * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getHasOfferCatalog() + public function getSponsor() { - return $this->hasOfferCatalog; + return $this->sponsor; } /** - * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @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 setHasOfferCatalog($hasOfferCatalog) + public function setSponsor($sponsor) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferCatalog", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->hasOfferCatalog = $hasOfferCatalog; + $this->sponsor = $sponsor; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getFollows() + public function getMakesOffer() { - return $this->follows; + return $this->makesOffer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $follows + * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFollows($follows) + public function setMakesOffer($makesOffer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $follows = self::checkTypes($follows, $types); + $makesOffer = self::checkTypes($makesOffer, $types); - $this->follows = $follows; + $this->makesOffer = $makesOffer; } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return \OpenActive\Models\SchemaOrg\Demand|string */ - public function getNationality() + public function getSeeks() { - return $this->nationality; + return $this->seeks; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $nationality + * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNationality($nationality) + public function setSeeks($seeks) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Models\SchemaOrg\Demand", "string", ]; - $nationality = self::checkTypes($nationality, $types); + $seeks = self::checkTypes($seeks, $types); - $this->nationality = $nationality; + $this->seeks = $seeks; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getFaxNumber() + public function getAgentInteractionStatistic() { - return $this->faxNumber; + return $this->agentInteractionStatistic; } /** - * @param string $faxNumber + * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $agentInteractionStatistic * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFaxNumber($faxNumber) + public function setAgentInteractionStatistic($agentInteractionStatistic) { $types = [ + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $agentInteractionStatistic = self::checkTypes($agentInteractionStatistic, $types); - $this->faxNumber = $faxNumber; + $this->agentInteractionStatistic = $agentInteractionStatistic; } } diff --git a/src/Models/SchemaOrg/Pharmacy.php b/src/Models/SchemaOrg/Pharmacy.php index 7d42cf23..98d3f065 100644 --- a/src/Models/SchemaOrg/Pharmacy.php +++ b/src/Models/SchemaOrg/Pharmacy.php @@ -5,7 +5,7 @@ /** * */ -class Pharmacy extends \OpenActive\Models\SchemaOrg\MedicalOrganization +class Pharmacy extends \OpenActive\Models\SchemaOrg\MedicalBusiness { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/PhysicalActivity.php b/src/Models/SchemaOrg/PhysicalActivity.php index 7607ab7b..bfafdd9c 100644 --- a/src/Models/SchemaOrg/PhysicalActivity.php +++ b/src/Models/SchemaOrg/PhysicalActivity.php @@ -17,23 +17,15 @@ public static function getType() public static function fieldList() { $fields = [ - "category" => "category", "pathophysiology" => "pathophysiology", "associatedAnatomy" => "associatedAnatomy", + "category" => "category", "epidemiology" => "epidemiology", ]; return array_merge(parent::fieldList(), $fields); } - /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. - * - * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null - */ - protected $category; - /** * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition. * @@ -51,40 +43,20 @@ public static function fieldList() { protected $associatedAnatomy; /** - * The characteristics of associated patients, such as age, gender, race etc. + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var string - */ - protected $epidemiology; - - /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null */ - public function getCategory() - { - return $this->category; - } + protected $category; /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The characteristics of associated patients, such as age, gender, race etc. + * + * + * @var string */ - public function setCategory($category) - { - $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", - ]; - - $category = self::checkTypes($category, $types); - - $this->category = $category; - } + protected $epidemiology; /** * @return string @@ -137,6 +109,34 @@ public function setAssociatedAnatomy($associatedAnatomy) $this->associatedAnatomy = $associatedAnatomy; } + /** + * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null + */ + public function getCategory() + { + return $this->category; + } + + /** + * @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 setCategory($category) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "string", + "null", + ]; + + $category = self::checkTypes($category, $types); + + $this->category = $category; + } + /** * @return string */ diff --git a/src/Models/SchemaOrg/Physician.php b/src/Models/SchemaOrg/Physician.php index 1431e4a1..b8db00ce 100644 --- a/src/Models/SchemaOrg/Physician.php +++ b/src/Models/SchemaOrg/Physician.php @@ -17,8 +17,10 @@ public static function getType() public static function fieldList() { $fields = [ - "availableService" => "availableService", + "occupationalCategory" => "occupationalCategory", "medicalSpecialty" => "medicalSpecialty", + "availableService" => "availableService", + "usNPI" => "usNPI", "hospitalAffiliation" => "hospitalAffiliation", ]; @@ -26,12 +28,13 @@ public static function fieldList() { } /** - * A medical service available from this provider. + * 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\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var \OpenActive\Models\SchemaOrg\CategoryCode|string */ - protected $availableService; + protected $occupationalCategory; /** * A medical specialty of the provider. @@ -41,6 +44,23 @@ public static function fieldList() { */ protected $medicalSpecialty; + /** + * A medical service available from this provider. + * + * + * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|string + */ + protected $availableService; + + /** + * A National Provider Identifier (NPI) + * is a unique 10-digit identification number issued to health care providers in the United States by the Centers for Medicare and Medicaid Services. + * + * + * @var string + */ + protected $usNPI; + /** * A hospital with which the physician or office is affiliated. * @@ -50,30 +70,28 @@ public static function fieldList() { protected $hospitalAffiliation; /** - * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return \OpenActive\Models\SchemaOrg\CategoryCode|string */ - public function getAvailableService() + public function getOccupationalCategory() { - return $this->availableService; + return $this->occupationalCategory; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService + * @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 setAvailableService($availableService) + public function setOccupationalCategory($occupationalCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTest", - "\OpenActive\Models\SchemaOrg\MedicalProcedure", - "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\CategoryCode", "string", ]; - $availableService = self::checkTypes($availableService, $types); + $occupationalCategory = self::checkTypes($occupationalCategory, $types); - $this->availableService = $availableService; + $this->occupationalCategory = $occupationalCategory; } /** @@ -101,6 +119,57 @@ public function setMedicalSpecialty($medicalSpecialty) $this->medicalSpecialty = $medicalSpecialty; } + /** + * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalProcedure|string + */ + public function getAvailableService() + { + return $this->availableService; + } + + /** + * @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 setAvailableService($availableService) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MedicalTest", + "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\MedicalProcedure", + "string", + ]; + + $availableService = self::checkTypes($availableService, $types); + + $this->availableService = $availableService; + } + + /** + * @return string + */ + public function getUsNPI() + { + return $this->usNPI; + } + + /** + * @param string $usNPI + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setUsNPI($usNPI) + { + $types = [ + "string", + ]; + + $usNPI = self::checkTypes($usNPI, $types); + + $this->usNPI = $usNPI; + } + /** * @return \OpenActive\Models\SchemaOrg\Hospital|string */ diff --git a/src/Models/SchemaOrg/PhysiciansOffice.php b/src/Models/SchemaOrg/PhysiciansOffice.php new file mode 100644 index 00000000..cc13b02a --- /dev/null +++ b/src/Models/SchemaOrg/PhysiciansOffice.php @@ -0,0 +1,25 @@ + "photos", + "additionalProperty" => "additionalProperty", + "isicV4" => "isicV4", + "containedInPlace" => "containedInPlace", "telephone" => "telephone", + "geoEquals" => "geoEquals", + "address" => "address", + "hasCertification" => "hasCertification", + "branchCode" => "branchCode", + "geoWithin" => "geoWithin", + "faxNumber" => "faxNumber", + "event" => "event", + "events" => "events", + "latitude" => "latitude", + "keywords" => "keywords", + "smokingAllowed" => "smokingAllowed", + "isAccessibleForFree" => "isAccessibleForFree", + "logo" => "logo", + "geoCovers" => "geoCovers", + "longitude" => "longitude", + "hasDriveThroughService" => "hasDriveThroughService", + "geoCrosses" => "geoCrosses", + "geoOverlaps" => "geoOverlaps", + "geo" => "geo", + "publicAccess" => "publicAccess", + "map" => "map", + "hasGS1DigitalLink" => "hasGS1DigitalLink", + "reviews" => "reviews", + "globalLocationNumber" => "globalLocationNumber", + "geoDisjoint" => "geoDisjoint", "review" => "review", "maps" => "maps", + "openingHoursSpecification" => "openingHoursSpecification", "geoContains" => "geoContains", - "maximumAttendeeCapacity" => "maximumAttendeeCapacity", "containsPlace" => "containsPlace", - "smokingAllowed" => "smokingAllowed", - "globalLocationNumber" => "globalLocationNumber", - "keywords" => "keywords", - "geoIntersects" => "geoIntersects", - "latitude" => "latitude", + "containedIn" => "containedIn", "geoTouches" => "geoTouches", - "geoCoveredBy" => "geoCoveredBy", - "aggregateRating" => "aggregateRating", - "address" => "address", - "geoEquals" => "geoEquals", - "map" => "map", - "publicAccess" => "publicAccess", - "geoCrosses" => "geoCrosses", - "containedInPlace" => "containedInPlace", - "amenityFeature" => "amenityFeature", "slogan" => "slogan", - "photos" => "photos", - "geoCovers" => "geoCovers", - "containedIn" => "containedIn", - "hasDriveThroughService" => "hasDriveThroughService", - "logo" => "logo", - "isAccessibleForFree" => "isAccessibleForFree", - "geoWithin" => "geoWithin", - "geoDisjoint" => "geoDisjoint", + "amenityFeature" => "amenityFeature", + "geoIntersects" => "geoIntersects", "tourBookingPage" => "tourBookingPage", - "isicV4" => "isicV4", - "geoOverlaps" => "geoOverlaps", - "branchCode" => "branchCode", - "additionalProperty" => "additionalProperty", - "openingHoursSpecification" => "openingHoursSpecification", - "reviews" => "reviews", + "geoCoveredBy" => "geoCoveredBy", "photo" => "photo", - "specialOpeningHoursSpecification" => "specialOpeningHoursSpecification", + "aggregateRating" => "aggregateRating", "hasMap" => "hasMap", - "longitude" => "longitude", - "geo" => "geo", - "events" => "events", - "faxNumber" => "faxNumber", - "event" => "event", + "maximumAttendeeCapacity" => "maximumAttendeeCapacity", + "specialOpeningHoursSpecification" => "specialOpeningHoursSpecification", ]; return array_merge(parent::fieldList(), $fields); } /** - * The telephone number. + * Photographs of this place. + * + * + * @var \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string + */ + protected $photos; + + /** + * 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\PropertyValue|string + */ + protected $additionalProperty; + + /** + * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. * * * @var string */ - protected $telephone; + protected $isicV4; /** - * A review of the item. + * The basic containment relation between a place and one that contains it. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $review; + protected $containedInPlace; /** - * A URL to a map of the place. + * The telephone number. * * * @var string */ - protected $maps; + protected $telephone; /** - * 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; /** - * The total number of individuals that may attend an event or venue. + * Physical address of the item. * * - * @var int|null + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress */ - protected $maximumAttendeeCapacity; + protected $address; /** - * The basic containment relation between a place and another that it contains. + * Certification information about a product, organization, service, place, or person. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $containsPlace; + protected $hasCertification; /** - * Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room. + * A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.\n\nFor example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch. + * * * - * @var bool|null + * @var string */ - protected $smokingAllowed; + protected $branchCode; /** - * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. + * Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * + * + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + */ + protected $geoWithin; + + /** + * The fax number. * * * @var string */ - protected $globalLocationNumber; + protected $faxNumber; /** - * 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. + * Upcoming or past event associated with this place, organization, or action. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $keywords; + protected $event; /** - * 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). + * Upcoming or past events associated with this place or organization. * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $geoIntersects; + protected $events; /** * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). @@ -156,214 +184,228 @@ public static function fieldList() { protected $latitude; /** - * 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) ) + * 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\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $geoTouches; + protected $keywords; /** - * 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). + * Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var bool|null */ - protected $geoCoveredBy; + protected $smokingAllowed; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * A flag to signal that the item, event, or place is accessible for free. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var bool|null */ - protected $aggregateRating; + protected $isAccessibleForFree; /** - * Physical address of the item. + * An associated logo. * * - * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var string|\OpenActive\Models\SchemaOrg\ImageObject */ - protected $address; + protected $logo; /** - * 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 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 $geoEquals; + protected $geoCovers; /** - * A URL to a map of the place. + * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). * * - * @var string + * @var string|Number|null */ - protected $map; + protected $longitude; /** - * A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value + * Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users. * * * @var bool|null */ - protected $publicAccess; + protected $hasDriveThroughService; /** * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ protected $geoCrosses; /** - * The basic containment relation between a place and one that contains it. + * 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|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $containedInPlace; + protected $geoOverlaps; /** - * 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 geo coordinates of the place. * * - * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string + * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string */ - protected $amenityFeature; + protected $geo; /** - * A slogan or motto associated with the item. + * A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value. + * + * + * @var bool|null + */ + protected $publicAccess; + + /** + * A URL to a map of the place. * * * @var string */ - protected $slogan; + protected $map; /** - * Photographs of this place. + * 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: Other item types should be adapted similarly. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string + * @var string */ - protected $photos; + protected $hasGS1DigitalLink; /** - * 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). + * Review of the item. * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $geoCovers; + protected $reviews; /** - * The basic containment relation between a place and one that contains it. + * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $containedIn; + protected $globalLocationNumber; /** - * Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users. + * 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 bool|null + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $hasDriveThroughService; + protected $geoDisjoint; /** - * An associated logo. + * A review of the item. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $logo; + protected $review; /** - * A flag to signal that the item, event, or place is accessible for free. + * A URL to a map of the place. * * - * @var bool|null + * @var string */ - protected $isAccessibleForFree; + protected $maps; /** - * 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). + * The opening hours of a certain place. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - protected $geoWithin; + protected $openingHoursSpecification; /** - * Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: they have no point in common. They form a set of disconnected geometries." (a symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM)) + * Represents a relationship between two geometries (or the places they represent), relating a 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 $geoDisjoint; + protected $geoContains; /** - * 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 basic containment relation between a place and another that it contains. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $tourBookingPage; + protected $containsPlace; /** - * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * The basic containment relation between a place and one that contains it. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $isicV4; + protected $containedIn; /** - * 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 spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).) * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $geoOverlaps; + protected $geoTouches; /** - * A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.\n\nFor example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch. - * + * A slogan or motto associated with the item. * * * @var string */ - protected $branchCode; + protected $slogan; /** - * 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. - * + * 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\PropertyValue|string + * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - protected $additionalProperty; + protected $amenityFeature; /** - * The opening hours of a certain place. + * 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\OpeningHoursSpecification|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $openingHoursSpecification; + protected $geoIntersects; + + /** + * 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 string + */ + protected $tourBookingPage; /** - * Review of the item. + * 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\Review|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $reviews; + protected $geoCoveredBy; /** * A photograph of this place. @@ -374,149 +416,176 @@ public static function fieldList() { protected $photo; /** - * The special opening hours of a certain place.\n\nUse this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. - * + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $specialOpeningHoursSpecification; + protected $aggregateRating; /** * A URL to a map of the place. * * - * @var string|\OpenActive\Models\SchemaOrg\Map + * @var \OpenActive\Models\SchemaOrg\Map|string */ protected $hasMap; /** - * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). + * The total number of individuals that may attend an event or venue. * * - * @var string|Number|null + * @var int|null */ - protected $longitude; + protected $maximumAttendeeCapacity; /** - * The geo coordinates of the place. + * The special opening hours of a certain place.\n\nUse this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. + * * * - * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - protected $geo; + protected $specialOpeningHoursSpecification; /** - * Upcoming or past events associated with this place or organization. - * - * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $events; + public function getPhotos() + { + return $this->photos; + } /** - * The fax number. - * - * - * @var string + * @param \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string $photos + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $faxNumber; + public function setPhotos($photos) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Photograph", + "\OpenActive\Models\SchemaOrg\ImageObject", + "string", + ]; + + $photos = self::checkTypes($photos, $types); + + $this->photos = $photos; + } /** - * Upcoming or past event associated with this place, organization, or action. - * - * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $event; + public function getAdditionalProperty() + { + return $this->additionalProperty; + } + + /** + * @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 setAdditionalProperty($additionalProperty) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", + ]; + + $additionalProperty = self::checkTypes($additionalProperty, $types); + + $this->additionalProperty = $additionalProperty; + } /** * @return string */ - public function getTelephone() + public function getIsicV4() { - return $this->telephone; + return $this->isicV4; } /** - * @param string $telephone + * @param string $isicV4 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTelephone($telephone) + public function setIsicV4($isicV4) { $types = [ "string", ]; - $telephone = self::checkTypes($telephone, $types); + $isicV4 = self::checkTypes($isicV4, $types); - $this->telephone = $telephone; + $this->isicV4 = $isicV4; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getReview() + public function getContainedInPlace() { - return $this->review; + return $this->containedInPlace; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param \OpenActive\Models\SchemaOrg\Place|string $containedInPlace * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setContainedInPlace($containedInPlace) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $review = self::checkTypes($review, $types); + $containedInPlace = self::checkTypes($containedInPlace, $types); - $this->review = $review; + $this->containedInPlace = $containedInPlace; } /** * @return string */ - public function getMaps() + public function getTelephone() { - return $this->maps; + return $this->telephone; } /** - * @param string $maps + * @param string $telephone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaps($maps) + public function setTelephone($telephone) { $types = [ "string", ]; - $maps = self::checkTypes($maps, $types); + $telephone = self::checkTypes($telephone, $types); - $this->maps = $maps; + $this->telephone = $telephone; } /** * @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", @@ -524,159 +593,183 @@ public function setGeoContains($geoContains) "string", ]; - $geoContains = self::checkTypes($geoContains, $types); + $geoEquals = self::checkTypes($geoEquals, $types); - $this->geoContains = $geoContains; + $this->geoEquals = $geoEquals; } /** - * @return int|null + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress */ - public function getMaximumAttendeeCapacity() + public function getAddress() { - return $this->maximumAttendeeCapacity; + return $this->address; } /** - * @param int|null $maximumAttendeeCapacity + * @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 setMaximumAttendeeCapacity($maximumAttendeeCapacity) + public function setAddress($address) { $types = [ - "int", - "null", + "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); + $address = self::checkTypes($address, $types); - $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; + $this->address = $address; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getContainsPlace() + public function getHasCertification() { - return $this->containsPlace; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $containsPlace + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContainsPlace($containsPlace) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $containsPlace = self::checkTypes($containsPlace, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->containsPlace = $containsPlace; + $this->hasCertification = $hasCertification; } /** - * @return bool|null + * @return string */ - public function getSmokingAllowed() + public function getBranchCode() { - return $this->smokingAllowed; + return $this->branchCode; } /** - * @param bool|null $smokingAllowed + * @param string $branchCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSmokingAllowed($smokingAllowed) + public function setBranchCode($branchCode) { $types = [ - "bool", - "null", + "string", ]; - $smokingAllowed = self::checkTypes($smokingAllowed, $types); + $branchCode = self::checkTypes($branchCode, $types); - $this->smokingAllowed = $smokingAllowed; + $this->branchCode = $branchCode; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + */ + public function getGeoWithin() + { + return $this->geoWithin; + } + + /** + * @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 setGeoWithin($geoWithin) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "string", + ]; + + $geoWithin = self::checkTypes($geoWithin, $types); + + $this->geoWithin = $geoWithin; } /** * @return string */ - public function getGlobalLocationNumber() + public function getFaxNumber() { - return $this->globalLocationNumber; + return $this->faxNumber; } /** - * @param string $globalLocationNumber + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGlobalLocationNumber($globalLocationNumber) + public function setFaxNumber($faxNumber) { $types = [ "string", ]; - $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->globalLocationNumber = $globalLocationNumber; + $this->faxNumber = $faxNumber; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getKeywords() + public function getEvent() { - return $this->keywords; + return $this->event; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param \OpenActive\Models\SchemaOrg\Event|string $event * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setEvent($event) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $event = self::checkTypes($event, $types); - $this->keywords = $keywords; + $this->event = $event; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getGeoIntersects() + public function getEvents() { - return $this->geoIntersects; + return $this->events; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects + * @param \OpenActive\Models\SchemaOrg\Event|string $events * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoIntersects($geoIntersects) + public function setEvents($events) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $geoIntersects = self::checkTypes($geoIntersects, $types); + $events = self::checkTypes($events, $types); - $this->geoIntersects = $geoIntersects; + $this->events = $events; } /** @@ -706,121 +799,119 @@ public function setLatitude($latitude) } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getGeoTouches() + public function getKeywords() { - return $this->geoTouches; + return $this->keywords; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches + * @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 setGeoTouches($geoTouches) + public function setKeywords($keywords) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $geoTouches = self::checkTypes($geoTouches, $types); + $keywords = self::checkTypes($keywords, $types); - $this->geoTouches = $geoTouches; + $this->keywords = $keywords; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return bool|null */ - public function getGeoCoveredBy() + public function getSmokingAllowed() { - return $this->geoCoveredBy; + return $this->smokingAllowed; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCoveredBy + * @param bool|null $smokingAllowed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoCoveredBy($geoCoveredBy) + public function setSmokingAllowed($smokingAllowed) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "string", + "bool", + "null", ]; - $geoCoveredBy = self::checkTypes($geoCoveredBy, $types); + $smokingAllowed = self::checkTypes($smokingAllowed, $types); - $this->geoCoveredBy = $geoCoveredBy; + $this->smokingAllowed = $smokingAllowed; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return bool|null */ - public function getAggregateRating() + public function getIsAccessibleForFree() { - return $this->aggregateRating; + return $this->isAccessibleForFree; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param bool|null $isAccessibleForFree * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setIsAccessibleForFree($isAccessibleForFree) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", - "string", + "bool", + "null", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); - $this->aggregateRating = $aggregateRating; + $this->isAccessibleForFree = $isAccessibleForFree; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return string|\OpenActive\Models\SchemaOrg\ImageObject */ - public function getAddress() + public function getLogo() { - return $this->address; + return $this->logo; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @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 setAddress($address) + public function setLogo($logo) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $address = self::checkTypes($address, $types); + $logo = self::checkTypes($logo, $types); - $this->address = $address; + $this->logo = $logo; } /** * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getGeoEquals() + public function getGeoCovers() { - return $this->geoEquals; + return $this->geoCovers; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals + * @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 setGeoEquals($geoEquals) + public function setGeoCovers($geoCovers) { $types = [ "\OpenActive\Models\SchemaOrg\Place", @@ -828,62 +919,64 @@ public function setGeoEquals($geoEquals) "string", ]; - $geoEquals = self::checkTypes($geoEquals, $types); + $geoCovers = self::checkTypes($geoCovers, $types); - $this->geoEquals = $geoEquals; + $this->geoCovers = $geoCovers; } /** - * @return string + * @return string|Number|null */ - public function getMap() + public function getLongitude() { - return $this->map; + return $this->longitude; } /** - * @param string $map + * @param string|Number|null $longitude * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMap($map) + public function setLongitude($longitude) { $types = [ "string", + "Number", + "null", ]; - $map = self::checkTypes($map, $types); + $longitude = self::checkTypes($longitude, $types); - $this->map = $map; + $this->longitude = $longitude; } /** * @return bool|null */ - public function getPublicAccess() + public function getHasDriveThroughService() { - return $this->publicAccess; + return $this->hasDriveThroughService; } /** - * @param bool|null $publicAccess + * @param bool|null $hasDriveThroughService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublicAccess($publicAccess) + public function setHasDriveThroughService($hasDriveThroughService) { $types = [ "bool", "null", ]; - $publicAccess = self::checkTypes($publicAccess, $types); + $hasDriveThroughService = self::checkTypes($hasDriveThroughService, $types); - $this->publicAccess = $publicAccess; + $this->hasDriveThroughService = $hasDriveThroughService; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ public function getGeoCrosses() { @@ -891,15 +984,15 @@ public function getGeoCrosses() } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCrosses + * @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 setGeoCrosses($geoCrosses) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; @@ -909,656 +1002,630 @@ public function setGeoCrosses($geoCrosses) } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getContainedInPlace() + public function getGeoOverlaps() { - return $this->containedInPlace; + return $this->geoOverlaps; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $containedInPlace + * @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 setContainedInPlace($containedInPlace) + public function setGeoOverlaps($geoOverlaps) { $types = [ "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $containedInPlace = self::checkTypes($containedInPlace, $types); + $geoOverlaps = self::checkTypes($geoOverlaps, $types); - $this->containedInPlace = $containedInPlace; + $this->geoOverlaps = $geoOverlaps; } /** - * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string + * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string */ - public function getAmenityFeature() + public function getGeo() { - return $this->amenityFeature; + return $this->geo; } /** - * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature + * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string $geo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAmenityFeature($amenityFeature) + public function setGeo($geo) { $types = [ - "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", + "\OpenActive\Models\SchemaOrg\GeoCoordinates", + "\OpenActive\Models\SchemaOrg\GeoShape", "string", ]; - $amenityFeature = self::checkTypes($amenityFeature, $types); + $geo = self::checkTypes($geo, $types); - $this->amenityFeature = $amenityFeature; + $this->geo = $geo; } /** - * @return string + * @return bool|null */ - public function getSlogan() + public function getPublicAccess() { - return $this->slogan; + return $this->publicAccess; } /** - * @param string $slogan + * @param bool|null $publicAccess * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSlogan($slogan) + public function setPublicAccess($publicAccess) { $types = [ - "string", + "bool", + "null", ]; - $slogan = self::checkTypes($slogan, $types); + $publicAccess = self::checkTypes($publicAccess, $types); - $this->slogan = $slogan; + $this->publicAccess = $publicAccess; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string + * @return string */ - public function getPhotos() + public function getMap() { - return $this->photos; + return $this->map; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string $photos + * @param string $map * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPhotos($photos) + public function setMap($map) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", - "\OpenActive\Models\SchemaOrg\Photograph", "string", ]; - $photos = self::checkTypes($photos, $types); + $map = self::checkTypes($map, $types); - $this->photos = $photos; + $this->map = $map; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getGeoCovers() + public function getHasGS1DigitalLink() { - return $this->geoCovers; + return $this->hasGS1DigitalLink; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoCovers($geoCovers) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geoCovers = self::checkTypes($geoCovers, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->geoCovers = $geoCovers; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getContainedIn() + public function getReviews() { - return $this->containedIn; + return $this->reviews; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $containedIn + * @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 setContainedIn($containedIn) + public function setReviews($reviews) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $containedIn = self::checkTypes($containedIn, $types); - - $this->containedIn = $containedIn; - } - - /** - * @return bool|null - */ - public function getHasDriveThroughService() - { - return $this->hasDriveThroughService; - } - - /** - * @param bool|null $hasDriveThroughService - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setHasDriveThroughService($hasDriveThroughService) - { - $types = [ - "bool", - "null", - ]; - - $hasDriveThroughService = self::checkTypes($hasDriveThroughService, $types); + $reviews = self::checkTypes($reviews, $types); - $this->hasDriveThroughService = $hasDriveThroughService; + $this->reviews = $reviews; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return string */ - public function getLogo() + public function getGlobalLocationNumber() { - return $this->logo; + return $this->globalLocationNumber; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @param string $globalLocationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLogo($logo) + public function setGlobalLocationNumber($globalLocationNumber) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); - $this->logo = $logo; + $this->globalLocationNumber = $globalLocationNumber; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getIsAccessibleForFree() + public function getGeoDisjoint() { - return $this->isAccessibleForFree; + return $this->geoDisjoint; } /** - * @param bool|null $isAccessibleForFree + * @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 setIsAccessibleForFree($isAccessibleForFree) + public function setGeoDisjoint($geoDisjoint) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "string", ]; - $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); + $geoDisjoint = self::checkTypes($geoDisjoint, $types); - $this->isAccessibleForFree = $isAccessibleForFree; + $this->geoDisjoint = $geoDisjoint; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getGeoWithin() + public function getReview() { - return $this->geoWithin; + return $this->review; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin + * @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 setGeoWithin($geoWithin) + public function setReview($review) { - $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $geoWithin = self::checkTypes($geoWithin, $types); + $review = self::checkTypes($review, $types); - $this->geoWithin = $geoWithin; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getGeoDisjoint() + public function getMaps() { - return $this->geoDisjoint; + return $this->maps; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint + * @param string $maps * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoDisjoint($geoDisjoint) + public function setMaps($maps) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geoDisjoint = self::checkTypes($geoDisjoint, $types); + $maps = self::checkTypes($maps, $types); - $this->geoDisjoint = $geoDisjoint; + $this->maps = $maps; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - public function getTourBookingPage() + public function getOpeningHoursSpecification() { - return $this->tourBookingPage; + return $this->openingHoursSpecification; } /** - * @param string $tourBookingPage + * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $openingHoursSpecification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTourBookingPage($tourBookingPage) + public function setOpeningHoursSpecification($openingHoursSpecification) { $types = [ + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $tourBookingPage = self::checkTypes($tourBookingPage, $types); + $openingHoursSpecification = self::checkTypes($openingHoursSpecification, $types); - $this->tourBookingPage = $tourBookingPage; + $this->openingHoursSpecification = $openingHoursSpecification; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getIsicV4() + public function getGeoContains() { - return $this->isicV4; + return $this->geoContains; } /** - * @param string $isicV4 + * @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 setIsicV4($isicV4) + public function setGeoContains($geoContains) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $isicV4 = self::checkTypes($isicV4, $types); + $geoContains = self::checkTypes($geoContains, $types); - $this->isicV4 = $isicV4; + $this->geoContains = $geoContains; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoOverlaps() + public function getContainsPlace() { - return $this->geoOverlaps; + return $this->containsPlace; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps + * @param \OpenActive\Models\SchemaOrg\Place|string $containsPlace * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoOverlaps($geoOverlaps) + public function setContainsPlace($containsPlace) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geoOverlaps = self::checkTypes($geoOverlaps, $types); + $containsPlace = self::checkTypes($containsPlace, $types); - $this->geoOverlaps = $geoOverlaps; + $this->containsPlace = $containsPlace; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getBranchCode() + public function getContainedIn() { - return $this->branchCode; + return $this->containedIn; } /** - * @param string $branchCode + * @param \OpenActive\Models\SchemaOrg\Place|string $containedIn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBranchCode($branchCode) + public function setContainedIn($containedIn) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $branchCode = self::checkTypes($branchCode, $types); + $containedIn = self::checkTypes($containedIn, $types); - $this->branchCode = $branchCode; + $this->containedIn = $containedIn; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getAdditionalProperty() + public function getGeoTouches() { - return $this->additionalProperty; + return $this->geoTouches; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @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 setAdditionalProperty($additionalProperty) + public function setGeoTouches($geoTouches) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $geoTouches = self::checkTypes($geoTouches, $types); - $this->additionalProperty = $additionalProperty; + $this->geoTouches = $geoTouches; } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return string */ - public function getOpeningHoursSpecification() + public function getSlogan() { - return $this->openingHoursSpecification; + return $this->slogan; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $openingHoursSpecification + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOpeningHoursSpecification($openingHoursSpecification) + public function setSlogan($slogan) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $openingHoursSpecification = self::checkTypes($openingHoursSpecification, $types); + $slogan = self::checkTypes($slogan, $types); - $this->openingHoursSpecification = $openingHoursSpecification; + $this->slogan = $slogan; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - public function getReviews() + public function getAmenityFeature() { - return $this->reviews; + return $this->amenityFeature; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @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 setReviews($reviews) + public function setAmenityFeature($amenityFeature) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $amenityFeature = self::checkTypes($amenityFeature, $types); - $this->reviews = $reviews; + $this->amenityFeature = $amenityFeature; } /** - * @return \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getPhoto() + public function getGeoIntersects() { - return $this->photo; + return $this->geoIntersects; } /** - * @param \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string $photo + * @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 setPhoto($photo) + public function setGeoIntersects($geoIntersects) { $types = [ - "\OpenActive\Models\SchemaOrg\Photograph", - "\OpenActive\Models\SchemaOrg\ImageObject", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $photo = self::checkTypes($photo, $types); + $geoIntersects = self::checkTypes($geoIntersects, $types); - $this->photo = $photo; + $this->geoIntersects = $geoIntersects; } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return string */ - public function getSpecialOpeningHoursSpecification() + public function getTourBookingPage() { - return $this->specialOpeningHoursSpecification; + return $this->tourBookingPage; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $specialOpeningHoursSpecification + * @param string $tourBookingPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpecialOpeningHoursSpecification($specialOpeningHoursSpecification) + public function setTourBookingPage($tourBookingPage) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $specialOpeningHoursSpecification = self::checkTypes($specialOpeningHoursSpecification, $types); + $tourBookingPage = self::checkTypes($tourBookingPage, $types); - $this->specialOpeningHoursSpecification = $specialOpeningHoursSpecification; + $this->tourBookingPage = $tourBookingPage; } /** - * @return string|\OpenActive\Models\SchemaOrg\Map + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getHasMap() + public function getGeoCoveredBy() { - return $this->hasMap; + return $this->geoCoveredBy; } /** - * @param string|\OpenActive\Models\SchemaOrg\Map $hasMap + * @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 setHasMap($hasMap) + public function setGeoCoveredBy($geoCoveredBy) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", - "\OpenActive\Models\SchemaOrg\Map", ]; - $hasMap = self::checkTypes($hasMap, $types); + $geoCoveredBy = self::checkTypes($geoCoveredBy, $types); - $this->hasMap = $hasMap; + $this->geoCoveredBy = $geoCoveredBy; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getLongitude() + public function getPhoto() { - return $this->longitude; + return $this->photo; } /** - * @param string|Number|null $longitude + * @param \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string $photo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLongitude($longitude) + public function setPhoto($photo) { $types = [ + "\OpenActive\Models\SchemaOrg\Photograph", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", - "Number", - "null", ]; - $longitude = self::checkTypes($longitude, $types); + $photo = self::checkTypes($photo, $types); - $this->longitude = $longitude; + $this->photo = $photo; } /** - * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getGeo() + public function getAggregateRating() { - return $this->geo; + return $this->aggregateRating; } /** - * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string $geo + * @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 setGeo($geo) + public function setAggregateRating($aggregateRating) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoCoordinates", - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $geo = self::checkTypes($geo, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->geo = $geo; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Map|string */ - public function getEvents() + public function getHasMap() { - return $this->events; + return $this->hasMap; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $events + * @param \OpenActive\Models\SchemaOrg\Map|string $hasMap * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvents($events) + public function setHasMap($hasMap) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Map", "string", ]; - $events = self::checkTypes($events, $types); + $hasMap = self::checkTypes($hasMap, $types); - $this->events = $events; + $this->hasMap = $hasMap; } /** - * @return string + * @return int|null */ - public function getFaxNumber() + public function getMaximumAttendeeCapacity() { - return $this->faxNumber; + return $this->maximumAttendeeCapacity; } /** - * @param string $faxNumber + * @param int|null $maximumAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFaxNumber($faxNumber) + public function setMaximumAttendeeCapacity($maximumAttendeeCapacity) { $types = [ - "string", + "int", + "null", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); - $this->faxNumber = $faxNumber; + $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - public function getEvent() + public function getSpecialOpeningHoursSpecification() { - return $this->event; + return $this->specialOpeningHoursSpecification; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $event + * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $specialOpeningHoursSpecification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvent($event) + public function setSpecialOpeningHoursSpecification($specialOpeningHoursSpecification) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $event = self::checkTypes($event, $types); + $specialOpeningHoursSpecification = self::checkTypes($specialOpeningHoursSpecification, $types); - $this->event = $event; + $this->specialOpeningHoursSpecification = $specialOpeningHoursSpecification; } } diff --git a/src/Models/SchemaOrg/PlanAction.php b/src/Models/SchemaOrg/PlanAction.php index e2590c54..f692e3ad 100644 --- a/src/Models/SchemaOrg/PlanAction.php +++ b/src/Models/SchemaOrg/PlanAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * The time the object is scheduled to. * * - * @var DateTime|null + * @var Date|DateTime|null */ protected $scheduledTime; /** - * @return DateTime|null + * @return Date|DateTime|null */ public function getScheduledTime() { @@ -40,13 +40,14 @@ public function getScheduledTime() } /** - * @param DateTime|null $scheduledTime + * @param Date|DateTime|null $scheduledTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setScheduledTime($scheduledTime) { $types = [ + "Date", "DateTime", "null", ]; diff --git a/src/Models/SchemaOrg/PlayAction.php b/src/Models/SchemaOrg/PlayAction.php index 13454c63..f8455cf5 100644 --- a/src/Models/SchemaOrg/PlayAction.php +++ b/src/Models/SchemaOrg/PlayAction.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "audience" => "audience", "event" => "event", + "audience" => "audience", ]; return array_merge(parent::fieldList(), $fields); } /** - * An intended audience, i.e. a group for whom something was created. + * Upcoming or past event associated with this place, organization, or action. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $audience; + protected $event; /** - * Upcoming or past event associated with this place, organization, or action. + * An intended audience, i.e. a group for whom something was created. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $event; + protected $audience; /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getAudience() + public function getEvent() { - return $this->audience; + return $this->event; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param \OpenActive\Models\SchemaOrg\Event|string $event * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setEvent($event) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $audience = self::checkTypes($audience, $types); + $event = self::checkTypes($event, $types); - $this->audience = $audience; + $this->event = $event; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getEvent() + public function getAudience() { - return $this->event; + return $this->audience; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $event + * @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 setEvent($event) + public function setAudience($audience) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $event = self::checkTypes($event, $types); + $audience = self::checkTypes($audience, $types); - $this->event = $event; + $this->audience = $audience; } } diff --git a/src/Models/SchemaOrg/PodcastSeries.php b/src/Models/SchemaOrg/PodcastSeries.php index 9f300e86..1c4787fb 100644 --- a/src/Models/SchemaOrg/PodcastSeries.php +++ b/src/Models/SchemaOrg/PodcastSeries.php @@ -25,10 +25,10 @@ public static function fieldList() { } /** - * 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 (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 $actor; @@ -36,12 +36,12 @@ public static function fieldList() { * The URL for a feed, e.g. associated with a podcast series, blog, or series of date-stamped updates. This is usually RSS or Atom. * * - * @var \OpenActive\Models\SchemaOrg\DataFeed|string + * @var string|\OpenActive\Models\SchemaOrg\DataFeed */ protected $webFeed; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string */ public function getActor() { @@ -49,7 +49,7 @@ public function getActor() } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @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. */ @@ -57,6 +57,7 @@ public function setActor($actor) { $types = [ "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\PerformingGroup", "string", ]; @@ -66,7 +67,7 @@ public function setActor($actor) } /** - * @return \OpenActive\Models\SchemaOrg\DataFeed|string + * @return string|\OpenActive\Models\SchemaOrg\DataFeed */ public function getWebFeed() { @@ -74,15 +75,15 @@ public function getWebFeed() } /** - * @param \OpenActive\Models\SchemaOrg\DataFeed|string $webFeed + * @param string|\OpenActive\Models\SchemaOrg\DataFeed $webFeed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setWebFeed($webFeed) { $types = [ - "\OpenActive\Models\SchemaOrg\DataFeed", "string", + "\OpenActive\Models\SchemaOrg\DataFeed", ]; $webFeed = self::checkTypes($webFeed, $types); diff --git a/src/Models/SchemaOrg/PoliceStation.php b/src/Models/SchemaOrg/PoliceStation.php index e9f6934c..ac151713 100644 --- a/src/Models/SchemaOrg/PoliceStation.php +++ b/src/Models/SchemaOrg/PoliceStation.php @@ -5,7 +5,7 @@ /** * */ -class PoliceStation extends \OpenActive\Models\SchemaOrg\CivicStructure +class PoliceStation extends \OpenActive\Models\SchemaOrg\EmergencyService { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/PoliticalParty.php b/src/Models/SchemaOrg/PoliticalParty.php new file mode 100644 index 00000000..aeeb0be3 --- /dev/null +++ b/src/Models/SchemaOrg/PoliticalParty.php @@ -0,0 +1,25 @@ + "addressCountry", - "addressRegion" => "addressRegion", - "addressLocality" => "addressLocality", "postalCode" => "postalCode", - "postOfficeBoxNumber" => "postOfficeBoxNumber", + "addressLocality" => "addressLocality", "streetAddress" => "streetAddress", + "postOfficeBoxNumber" => "postOfficeBoxNumber", + "addressRegion" => "addressRegion", ]; return array_merge(parent::fieldList(), $fields); } /** - * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). + * 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; /** * The locality in which the street address is, and which is in the region. For example, Mountain View. @@ -53,12 +53,12 @@ public static function fieldList() { protected $addressLocality; /** - * The postal code. For example, 94043. + * The street address. For example, 1600 Amphitheatre Pkwy. * * * @var string */ - protected $postalCode; + protected $streetAddress; /** * The post office box number for PO box addresses. @@ -69,15 +69,15 @@ public static function fieldList() { protected $postOfficeBoxNumber; /** - * The street address. For example, 1600 Amphitheatre Pkwy. + * The region in which the locality is, and which is in the country. For example, California or another appropriate first-level [Administrative division](https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country). * * * @var string */ - protected $streetAddress; + protected $addressRegion; /** - * @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); @@ -104,25 +104,25 @@ 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; } /** @@ -152,25 +152,25 @@ public function setAddressLocality($addressLocality) /** * @return string */ - public function getPostalCode() + public function getStreetAddress() { - return $this->postalCode; + return $this->streetAddress; } /** - * @param string $postalCode + * @param string $streetAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCode($postalCode) + public function setStreetAddress($streetAddress) { $types = [ "string", ]; - $postalCode = self::checkTypes($postalCode, $types); + $streetAddress = self::checkTypes($streetAddress, $types); - $this->postalCode = $postalCode; + $this->streetAddress = $streetAddress; } /** @@ -200,25 +200,25 @@ public function setPostOfficeBoxNumber($postOfficeBoxNumber) /** * @return string */ - public function getStreetAddress() + public function getAddressRegion() { - return $this->streetAddress; + return $this->addressRegion; } /** - * @param string $streetAddress + * @param string $addressRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStreetAddress($streetAddress) + public function setAddressRegion($addressRegion) { $types = [ "string", ]; - $streetAddress = self::checkTypes($streetAddress, $types); + $addressRegion = self::checkTypes($addressRegion, $types); - $this->streetAddress = $streetAddress; + $this->addressRegion = $addressRegion; } } diff --git a/src/Models/SchemaOrg/PriceSpecification.php b/src/Models/SchemaOrg/PriceSpecification.php index 4bcddd3e..39d7e9a6 100644 --- a/src/Models/SchemaOrg/PriceSpecification.php +++ b/src/Models/SchemaOrg/PriceSpecification.php @@ -17,27 +17,54 @@ public static function getType() public static function fieldList() { $fields = [ - "minPrice" => "minPrice", + "price" => "price", + "membershipPointsEarned" => "membershipPointsEarned", + "validForMemberTier" => "validForMemberTier", + "valueAddedTaxIncluded" => "valueAddedTaxIncluded", "eligibleQuantity" => "eligibleQuantity", - "validFrom" => "validFrom", - "maxPrice" => "maxPrice", + "validThrough" => "validThrough", "priceCurrency" => "priceCurrency", - "valueAddedTaxIncluded" => "valueAddedTaxIncluded", + "maxPrice" => "maxPrice", + "validFrom" => "validFrom", + "minPrice" => "minPrice", "eligibleTransactionVolume" => "eligibleTransactionVolume", - "validThrough" => "validThrough", - "price" => "price", ]; return array_merge(parent::fieldList(), $fields); } /** - * The lowest price if the price is a range. + * 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 Number|null + * @var string|Number|null */ - protected $minPrice; + protected $price; + + /** + * 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; + + /** + * 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; + + /** + * Specifies whether the applicable value-added tax (VAT) is included in the price specification or not. + * + * + * @var bool|null + */ + protected $valueAddedTaxIncluded; /** * 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. @@ -48,12 +75,20 @@ public static function fieldList() { protected $eligibleQuantity; /** - * 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 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; /** * The highest price if the price is a range. @@ -64,20 +99,20 @@ public static function fieldList() { protected $maxPrice; /** - * 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 Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The date when the item becomes valid. * * - * @var string + * @var Date|DateTime|null */ - protected $priceCurrency; + protected $validFrom; /** - * Specifies whether the applicable value-added tax (VAT) is included in the price specification or not. + * The lowest price if the price is a range. * * - * @var bool|null + * @var Number|null */ - protected $valueAddedTaxIncluded; + protected $minPrice; /** * 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. @@ -88,121 +123,157 @@ public static function fieldList() { protected $eligibleTransactionVolume; /** - * 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 string|Number|null */ - protected $validThrough; + public function getPrice() + { + return $this->price; + } /** - * 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 Tradings 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 similiar Unicode symbols. - * - * - * - * @var string|Number|null + * @param string|Number|null $price + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $price; + public function setPrice($price) + { + $types = [ + "string", + "Number", + "null", + ]; + + $price = self::checkTypes($price, $types); + + $this->price = $price; + } /** - * @return Number|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getMinPrice() + public function getMembershipPointsEarned() { - return $this->minPrice; + return $this->membershipPointsEarned; } /** - * @param Number|null $minPrice + * @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 setMinPrice($minPrice) + public function setMembershipPointsEarned($membershipPointsEarned) { $types = [ "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $minPrice = self::checkTypes($minPrice, $types); + $membershipPointsEarned = self::checkTypes($membershipPointsEarned, $types); - $this->minPrice = $minPrice; + $this->membershipPointsEarned = $membershipPointsEarned; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - public function getEligibleQuantity() + public function getValidForMemberTier() { - return $this->eligibleQuantity; + return $this->validForMemberTier; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity + * @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 setEligibleQuantity($eligibleQuantity) + public function setValidForMemberTier($validForMemberTier) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\MemberProgramTier", "string", ]; - $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); + $validForMemberTier = self::checkTypes($validForMemberTier, $types); - $this->eligibleQuantity = $eligibleQuantity; + $this->validForMemberTier = $validForMemberTier; } /** - * @return Date|DateTime|null + * @return bool|null */ - public function getValidFrom() + public function getValueAddedTaxIncluded() { - return $this->validFrom; + return $this->valueAddedTaxIncluded; } /** - * @param Date|DateTime|null $validFrom + * @param bool|null $valueAddedTaxIncluded * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidFrom($validFrom) + public function setValueAddedTaxIncluded($valueAddedTaxIncluded) { $types = [ - "Date", - "DateTime", + "bool", "null", ]; - $validFrom = self::checkTypes($validFrom, $types); + $valueAddedTaxIncluded = self::checkTypes($valueAddedTaxIncluded, $types); - $this->validFrom = $validFrom; + $this->valueAddedTaxIncluded = $valueAddedTaxIncluded; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getMaxPrice() + public function getEligibleQuantity() { - return $this->maxPrice; + return $this->eligibleQuantity; } /** - * @param Number|null $maxPrice + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaxPrice($maxPrice) + public function setEligibleQuantity($eligibleQuantity) { $types = [ - "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); + + $this->eligibleQuantity = $eligibleQuantity; + } + + /** + * @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", ]; - $maxPrice = self::checkTypes($maxPrice, $types); + $validThrough = self::checkTypes($validThrough, $types); - $this->maxPrice = $maxPrice; + $this->validThrough = $validThrough; } /** @@ -230,105 +301,104 @@ public function setPriceCurrency($priceCurrency) } /** - * @return bool|null + * @return Number|null */ - public function getValueAddedTaxIncluded() + public function getMaxPrice() { - return $this->valueAddedTaxIncluded; + return $this->maxPrice; } /** - * @param bool|null $valueAddedTaxIncluded + * @param Number|null $maxPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueAddedTaxIncluded($valueAddedTaxIncluded) + public function setMaxPrice($maxPrice) { $types = [ - "bool", + "Number", "null", ]; - $valueAddedTaxIncluded = self::checkTypes($valueAddedTaxIncluded, $types); + $maxPrice = self::checkTypes($maxPrice, $types); - $this->valueAddedTaxIncluded = $valueAddedTaxIncluded; + $this->maxPrice = $maxPrice; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return Date|DateTime|null */ - public function getEligibleTransactionVolume() + public function getValidFrom() { - return $this->eligibleTransactionVolume; + return $this->validFrom; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume + * @param Date|DateTime|null $validFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleTransactionVolume($eligibleTransactionVolume) + public function setValidFrom($validFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", - "string", + "Date", + "DateTime", + "null", ]; - $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); + $validFrom = self::checkTypes($validFrom, $types); - $this->eligibleTransactionVolume = $eligibleTransactionVolume; + $this->validFrom = $validFrom; } /** - * @return Date|DateTime|null + * @return Number|null */ - public function getValidThrough() + public function getMinPrice() { - return $this->validThrough; + return $this->minPrice; } /** - * @param Date|DateTime|null $validThrough + * @param Number|null $minPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidThrough($validThrough) + public function setMinPrice($minPrice) { $types = [ - "Date", - "DateTime", + "Number", "null", ]; - $validThrough = self::checkTypes($validThrough, $types); + $minPrice = self::checkTypes($minPrice, $types); - $this->validThrough = $validThrough; + $this->minPrice = $minPrice; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getPrice() + public function getEligibleTransactionVolume() { - return $this->price; + return $this->eligibleTransactionVolume; } /** - * @param string|Number|null $price + * @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 setPrice($price) + public function setEligibleTransactionVolume($eligibleTransactionVolume) { $types = [ + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", - "Number", - "null", ]; - $price = self::checkTypes($price, $types); + $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); - $this->price = $price; + $this->eligibleTransactionVolume = $eligibleTransactionVolume; } } diff --git a/src/Models/SchemaOrg/Product.php b/src/Models/SchemaOrg/Product.php index 2d779e5b..c5ced3dd 100644 --- a/src/Models/SchemaOrg/Product.php +++ b/src/Models/SchemaOrg/Product.php @@ -17,153 +17,160 @@ public static function getType() public static function fieldList() { $fields = [ - "isAccessoryOrSparePartFor" => "isAccessoryOrSparePartFor", - "hasAdultConsideration" => "hasAdultConsideration", - "gtin12" => "gtin12", - "nsn" => "nsn", + "releaseDate" => "releaseDate", + "additionalProperty" => "additionalProperty", + "mobileUrl" => "mobileUrl", + "isSimilarTo" => "isSimilarTo", + "model" => "model", + "productionDate" => "productionDate", + "hasEnergyConsumptionDetails" => "hasEnergyConsumptionDetails", "material" => "material", - "review" => "review", + "hasMeasurement" => "hasMeasurement", "award" => "award", - "width" => "width", - "countryOfOrigin" => "countryOfOrigin", - "pattern" => "pattern", - "category" => "category", + "inProductGroupWithID" => "inProductGroupWithID", "funding" => "funding", - "mpn" => "mpn", - "height" => "height", + "hasCertification" => "hasCertification", + "manufacturer" => "manufacturer", + "isFamilyFriendly" => "isFamilyFriendly", + "countryOfAssembly" => "countryOfAssembly", "keywords" => "keywords", - "purchaseDate" => "purchaseDate", - "hasEnergyConsumptionDetails" => "hasEnergyConsumptionDetails", - "audience" => "audience", + "size" => "size", + "logo" => "logo", + "asin" => "asin", + "gtin13" => "gtin13", + "hasAdultConsideration" => "hasAdultConsideration", + "positiveNotes" => "positiveNotes", + "mpn" => "mpn", + "pattern" => "pattern", + "brand" => "brand", + "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", + "category" => "category", + "hasGS1DigitalLink" => "hasGS1DigitalLink", + "gtin8" => "gtin8", + "reviews" => "reviews", + "gtin" => "gtin", + "isRelatedTo" => "isRelatedTo", + "review" => "review", + "color" => "color", + "countryOfOrigin" => "countryOfOrigin", + "gtin14" => "gtin14", "offers" => "offers", - "productionDate" => "productionDate", + "height" => "height", + "isAccessoryOrSparePartFor" => "isAccessoryOrSparePartFor", "itemCondition" => "itemCondition", "awards" => "awards", - "gtin" => "gtin", - "productID" => "productID", - "countryOfAssembly" => "countryOfAssembly", - "color" => "color", - "aggregateRating" => "aggregateRating", - "isSimilarTo" => "isSimilarTo", - "depth" => "depth", - "countryOfLastProcessing" => "countryOfLastProcessing", + "width" => "width", "isVariantOf" => "isVariantOf", - "slogan" => "slogan", - "brand" => "brand", - "manufacturer" => "manufacturer", - "hasMeasurement" => "hasMeasurement", "isConsumableFor" => "isConsumableFor", - "logo" => "logo", - "gtin8" => "gtin8", - "sku" => "sku", - "inProductGroupWithID" => "inProductGroupWithID", - "model" => "model", - "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", - "releaseDate" => "releaseDate", - "gtin14" => "gtin14", + "slogan" => "slogan", + "countryOfLastProcessing" => "countryOfLastProcessing", "weight" => "weight", - "size" => "size", - "additionalProperty" => "additionalProperty", - "gtin13" => "gtin13", - "reviews" => "reviews", - "isFamilyFriendly" => "isFamilyFriendly", - "isRelatedTo" => "isRelatedTo", + "gtin12" => "gtin12", + "nsn" => "nsn", + "depth" => "depth", + "colorSwatch" => "colorSwatch", + "aggregateRating" => "aggregateRating", + "negativeNotes" => "negativeNotes", + "sku" => "sku", + "productID" => "productID", + "purchaseDate" => "purchaseDate", + "audience" => "audience", ]; return array_merge(parent::fieldList(), $fields); } /** - * A pointer to another product (or multiple products) for which this product is an accessory or spare part. + * The release date of a product or product model. This can be used to distinguish the exact variant of a product. * * - * @var \OpenActive\Models\SchemaOrg\Product|string + * @var Date|null */ - protected $isAccessoryOrSparePartFor; + protected $releaseDate; /** - * Used to tag an item to be intended or suitable for consumption or use by adults only. + * 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\AdultOrientedEnumeration|null + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $hasAdultConsideration; + protected $additionalProperty; /** - * 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 [[mobileUrl]] property is provided for specific situations in which data consumers need to determine whether one of several provided URLs is a dedicated 'mobile site'. + * + * To discourage over-use, and reflecting intial usecases, the property is expected only on [[Product]] and [[Offer]], rather than [[Thing]]. The general trend in web technology is towards [responsive design](https://en.wikipedia.org/wiki/Responsive_web_design) in which content can be flexibly adapted to a wide range of browsing environments. Pages and sites referenced with the long-established [[url]] property should ideally also be usable on a wide variety of devices, including mobile phones. In most cases, it would be pointless and counter productive to attempt to update all [[url]] markup to use [[mobileUrl]] for more mobile-oriented pages. The property is intended for the case when items (primarily [[Product]] and [[Offer]]) have extra URLs hosted on an additional "mobile site" alongside the main one. It should not be taken as an endorsement of this publication style. + * * * * @var string */ - protected $gtin12; + protected $mobileUrl; /** - * Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]]. + * A pointer to another, functionally similar product (or multiple products). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $nsn; + protected $isSimilarTo; /** - * A material that something is made from, e.g. leather, wool, cotton, paper. + * The model of the product. Use with the URL of a ProductModel or a textual representation of the model identifier. The URL of the ProductModel can be from an external source. It is recommended to additionally provide strong product identifiers via the gtin8/gtin13/gtin14 and mpn properties. * * - * @var string|\OpenActive\Models\SchemaOrg\Product + * @var string|\OpenActive\Models\SchemaOrg\ProductModel */ - protected $material; + protected $model; /** - * A review of the item. + * The date of production of the item, e.g. vehicle. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var Date|null */ - protected $review; + protected $productionDate; /** - * An award won by or for this item. + * Defines the energy efficiency Category (also known as "class" or "rating") for a product according to an international energy efficiency standard. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string */ - protected $award; + protected $hasEnergyConsumptionDetails; /** - * The width of the item. + * A material that something is made from, e.g. leather, wool, cotton, paper. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @var string|\OpenActive\Models\SchemaOrg\Product */ - protected $width; + protected $material; /** - * 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. + * 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\Country|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $countryOfOrigin; + protected $hasMeasurement; /** - * 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. + * An award won by or for this item. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string */ - protected $pattern; + protected $award; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]]. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var string */ - protected $category; + protected $inProductGroupWithID; /** * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. @@ -174,262 +181,303 @@ public static function fieldList() { protected $funding; /** - * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. + * Certification information about a product, organization, service, place, or person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $mpn; + protected $hasCertification; /** - * The height of the item. + * The manufacturer of the product. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $height; + protected $manufacturer; /** - * 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. + * Indicates whether this content is family friendly. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var bool|null */ - protected $keywords; + protected $isFamilyFriendly; /** - * The date the item e.g. vehicle was purchased by the current owner. + * The place where the product was assembled. * * - * @var Date|null + * @var string */ - protected $purchaseDate; + protected $countryOfAssembly; /** - * Defines the energy efficiency Category (also known as "class" or "rating") for a product according to an international energy efficiency standard. + * 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\EnergyConsumptionDetails|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $hasEnergyConsumptionDetails; + protected $keywords; /** - * An intended audience, i.e. a group for whom something was created. + * 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\Audience|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $audience; + protected $size; /** - * 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. - * + * An associated logo. * * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var string|\OpenActive\Models\SchemaOrg\ImageObject */ - protected $offers; + protected $logo; /** - * The date of production of the item, e.g. vehicle. + * 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 Date|null + * @var string */ - protected $productionDate; + protected $asin; /** - * 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 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\Enums\SchemaOrg\OfferItemCondition|null + * @var string */ - protected $itemCondition; + protected $gtin13; /** - * Awards won by or for this item. + * Used to tag an item to be intended or suitable for consumption or use by adults only. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null */ - protected $awards; + protected $hasAdultConsideration; /** - * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties. The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs. A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. - * + * Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews. + * + * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. + * + * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ListItem|string */ - protected $gtin; + protected $positiveNotes; /** - * The product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```. + * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. * * * @var string */ - protected $productID; + protected $mpn; /** - * The place where the product was assembled. + * 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 string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $countryOfAssembly; + protected $pattern; /** - * The color of the product. + * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - protected $color; + protected $brand; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * Specifies a MerchantReturnPolicy that may be applicable. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - protected $aggregateRating; + protected $hasMerchantReturnPolicy; /** - * A pointer to another, functionally similar product (or multiple products). + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null */ - protected $isSimilarTo; + protected $category; /** - * The depth of the item. + * 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: Other item types should be adapted similarly. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $depth; + protected $hasGS1DigitalLink; /** - * The place where the item (typically [[Product]]) was last processed and tested before importation. + * 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 $countryOfLastProcessing; + protected $gtin8; /** - * Indicates the kind of product that this is a variant of. In the case of [[ProductModel]], this is a pointer (from a ProductModel) to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. In the case of a [[ProductGroup]], the group description also serves as a template, representing a set of Products that vary on explicitly defined, specific dimensions only (so it defines both a set of variants, as well as which values distinguish amongst those variants). When used with [[ProductGroup]], this property can apply to any [[Product]] included in the group. + * Review of the item. * * - * @var \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $isVariantOf; + protected $reviews; /** - * A slogan or motto associated with the item. + * 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 string */ - protected $slogan; + protected $gtin; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * A pointer to another, somehow related product (or multiple products). * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $brand; + protected $isRelatedTo; /** - * The manufacturer of the product. + * A review of the item. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $manufacturer; + protected $review; /** - * 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. + * The color of the product. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $hasMeasurement; + protected $color; /** - * A pointer to another product (or multiple products) for which this product is a consumable. + * 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\Product|string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $isConsumableFor; + protected $countryOfOrigin; /** - * An associated logo. + * The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var string */ - protected $logo; + protected $gtin14; /** - * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * An 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 + * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - protected $gtin8; + protected $offers; /** - * 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 height of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $sku; + protected $height; /** - * Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]]. + * A pointer to another product (or multiple products) for which this product is an accessory or spare part. + * + * + * @var \OpenActive\Models\SchemaOrg\Product|string + */ + protected $isAccessoryOrSparePartFor; + + /** + * 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\OfferItemCondition|null + */ + protected $itemCondition; + + /** + * Awards won by or for this item. * * * @var string */ - protected $inProductGroupWithID; + protected $awards; /** - * The model of the product. Use with the URL of a ProductModel or a textual representation of the model identifier. The URL of the ProductModel can be from an external source. It is recommended to additionally provide strong product identifiers via the gtin8/gtin13/gtin14 and mpn properties. + * The width of the item. * * - * @var \OpenActive\Models\SchemaOrg\ProductModel|string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $model; + protected $width; /** - * Specifies a MerchantReturnPolicy that may be applicable. + * Indicates the kind of product that this is a variant of. In the case of [[ProductModel]], this is a pointer (from a ProductModel) to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. In the case of a [[ProductGroup]], the group description also serves as a template, representing a set of Products that vary on explicitly defined, specific dimensions only (so it defines both a set of variants, as well as which values distinguish amongst those variants). When used with [[ProductGroup]], this property can apply to any [[Product]] included in the group. * * - * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @var \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string */ - protected $hasMerchantReturnPolicy; + protected $isVariantOf; /** - * The release date of a product or product model. This can be used to distinguish the exact variant of a product. + * A pointer to another product (or multiple products) for which this product is a consumable. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Product|string */ - protected $releaseDate; + protected $isConsumableFor; /** - * 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. + * A slogan or motto associated with the item. * * * @var string */ - protected $gtin14; + protected $slogan; + + /** + * The place where the item (typically [[Product]]) was last processed and tested before importation. + * + * + * @var string + */ + protected $countryOfLastProcessing; /** * The weight of the product or person. @@ -440,1324 +488,1536 @@ public static function fieldList() { protected $weight; /** - * 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 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * @var string */ - protected $size; + protected $gtin12; /** - * 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. + * Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]]. + * + * + * @var string + */ + protected $nsn; + + /** + * The depth of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + */ + protected $depth; + + /** + * A color swatch image, visualizing the color of a [[Product]]. Should match the textual description specified in the [[color]] property. This can be a URL or a fully described ImageObject. + * + * + * @var \OpenActive\Models\SchemaOrg\ImageObject|string + */ + protected $colorSwatch; + + /** + * The overall rating, based on a collection of reviews or ratings, of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + */ + protected $aggregateRating; + + /** + * Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry + * + * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions + * tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]]. * + * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list). * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string */ - protected $additionalProperty; + protected $negativeNotes; /** - * 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 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 $gtin13; + protected $sku; + + /** + * The product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```. + * + * + * @var string + */ + protected $productID; + + /** + * The date the item, e.g. vehicle, was purchased by the current owner. + * + * + * @var Date|null + */ + protected $purchaseDate; + + /** + * An intended audience, i.e. a group for whom something was created. + * + * + * @var \OpenActive\Models\SchemaOrg\Audience|string + */ + protected $audience; + + /** + * @return Date|null + */ + public function getReleaseDate() + { + return $this->releaseDate; + } + + /** + * @param Date|null $releaseDate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setReleaseDate($releaseDate) + { + $types = [ + "Date", + "null", + ]; + + $releaseDate = self::checkTypes($releaseDate, $types); + + $this->releaseDate = $releaseDate; + } + + /** + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + */ + public function getAdditionalProperty() + { + return $this->additionalProperty; + } + + /** + * @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 setAdditionalProperty($additionalProperty) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", + ]; + + $additionalProperty = self::checkTypes($additionalProperty, $types); + + $this->additionalProperty = $additionalProperty; + } + + /** + * @return string + */ + public function getMobileUrl() + { + return $this->mobileUrl; + } + + /** + * @param string $mobileUrl + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMobileUrl($mobileUrl) + { + $types = [ + "string", + ]; + + $mobileUrl = self::checkTypes($mobileUrl, $types); + + $this->mobileUrl = $mobileUrl; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + */ + public function getIsSimilarTo() + { + return $this->isSimilarTo; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $isSimilarTo + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIsSimilarTo($isSimilarTo) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", + "string", + ]; + + $isSimilarTo = self::checkTypes($isSimilarTo, $types); + + $this->isSimilarTo = $isSimilarTo; + } + + /** + * @return string|\OpenActive\Models\SchemaOrg\ProductModel + */ + public function getModel() + { + return $this->model; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\ProductModel $model + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setModel($model) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\ProductModel", + ]; + + $model = self::checkTypes($model, $types); + + $this->model = $model; + } + + /** + * @return Date|null + */ + public function getProductionDate() + { + return $this->productionDate; + } + + /** + * @param Date|null $productionDate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setProductionDate($productionDate) + { + $types = [ + "Date", + "null", + ]; + + $productionDate = self::checkTypes($productionDate, $types); - /** - * Review of the item. - * - * - * @var \OpenActive\Models\SchemaOrg\Review|string - */ - protected $reviews; + $this->productionDate = $productionDate; + } /** - * Indicates whether this content is family friendly. - * - * - * @var bool|null + * @return \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string */ - protected $isFamilyFriendly; + public function getHasEnergyConsumptionDetails() + { + return $this->hasEnergyConsumptionDetails; + } /** - * A pointer to another, somehow related product (or multiple products). - * - * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @param \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string $hasEnergyConsumptionDetails + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $isRelatedTo; + public function setHasEnergyConsumptionDetails($hasEnergyConsumptionDetails) + { + $types = [ + "\OpenActive\Models\SchemaOrg\EnergyConsumptionDetails", + "string", + ]; + + $hasEnergyConsumptionDetails = self::checkTypes($hasEnergyConsumptionDetails, $types); + + $this->hasEnergyConsumptionDetails = $hasEnergyConsumptionDetails; + } /** - * @return \OpenActive\Models\SchemaOrg\Product|string + * @return string|\OpenActive\Models\SchemaOrg\Product */ - public function getIsAccessoryOrSparePartFor() + public function getMaterial() { - return $this->isAccessoryOrSparePartFor; + return $this->material; } /** - * @param \OpenActive\Models\SchemaOrg\Product|string $isAccessoryOrSparePartFor + * @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 setIsAccessoryOrSparePartFor($isAccessoryOrSparePartFor) + public function setMaterial($material) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", "string", + "\OpenActive\Models\SchemaOrg\Product", ]; - $isAccessoryOrSparePartFor = self::checkTypes($isAccessoryOrSparePartFor, $types); + $material = self::checkTypes($material, $types); - $this->isAccessoryOrSparePartFor = $isAccessoryOrSparePartFor; + $this->material = $material; } /** - * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHasAdultConsideration() + public function getHasMeasurement() { - return $this->hasAdultConsideration; + return $this->hasMeasurement; } /** - * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration + * @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 setHasAdultConsideration($hasAdultConsideration) + public function setHasMeasurement($hasMeasurement) { $types = [ - "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); + $hasMeasurement = self::checkTypes($hasMeasurement, $types); - $this->hasAdultConsideration = $hasAdultConsideration; + $this->hasMeasurement = $hasMeasurement; } /** * @return string */ - public function getGtin12() + public function getAward() { - return $this->gtin12; + return $this->award; } /** - * @param string $gtin12 + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin12($gtin12) + public function setAward($award) { $types = [ "string", ]; - $gtin12 = self::checkTypes($gtin12, $types); + $award = self::checkTypes($award, $types); - $this->gtin12 = $gtin12; + $this->award = $award; } /** * @return string */ - public function getNsn() + public function getInProductGroupWithID() { - return $this->nsn; + return $this->inProductGroupWithID; } /** - * @param string $nsn + * @param string $inProductGroupWithID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNsn($nsn) + public function setInProductGroupWithID($inProductGroupWithID) { $types = [ "string", ]; - $nsn = self::checkTypes($nsn, $types); + $inProductGroupWithID = self::checkTypes($inProductGroupWithID, $types); - $this->nsn = $nsn; + $this->inProductGroupWithID = $inProductGroupWithID; } /** - * @return string|\OpenActive\Models\SchemaOrg\Product + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - public function getMaterial() + public function getFunding() { - return $this->material; + return $this->funding; } /** - * @param string|\OpenActive\Models\SchemaOrg\Product $material + * @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 setMaterial($material) + public function setFunding($funding) { $types = [ + "\OpenActive\Models\SchemaOrg\Grant", "string", - "\OpenActive\Models\SchemaOrg\Product", ]; - $material = self::checkTypes($material, $types); + $funding = self::checkTypes($funding, $types); - $this->material = $material; + $this->funding = $funding; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getReview() + public function getHasCertification() { - return $this->review; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $review = self::checkTypes($review, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->review = $review; + $this->hasCertification = $hasCertification; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getAward() + public function getManufacturer() { - return $this->award; + return $this->manufacturer; } /** - * @param string $award + * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAward($award) + public function setManufacturer($manufacturer) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $award = self::checkTypes($award, $types); + $manufacturer = self::checkTypes($manufacturer, $types); - $this->award = $award; + $this->manufacturer = $manufacturer; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @return bool|null */ - public function getWidth() + public function getIsFamilyFriendly() { - return $this->width; + return $this->isFamilyFriendly; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width + * @param bool|null $isFamilyFriendly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWidth($width) + public function setIsFamilyFriendly($isFamilyFriendly) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\Distance", - "string", + "bool", + "null", ]; - $width = self::checkTypes($width, $types); + $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); - $this->width = $width; + $this->isFamilyFriendly = $isFamilyFriendly; } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string */ - public function getCountryOfOrigin() + public function getCountryOfAssembly() { - return $this->countryOfOrigin; + return $this->countryOfAssembly; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @param string $countryOfAssembly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfOrigin($countryOfOrigin) + public function setCountryOfAssembly($countryOfAssembly) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $countryOfAssembly = self::checkTypes($countryOfAssembly, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->countryOfAssembly = $countryOfAssembly; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getPattern() + public function getKeywords() { - return $this->pattern; + return $this->keywords; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern + * @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 setPattern($pattern) + public function setKeywords($keywords) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $pattern = self::checkTypes($pattern, $types); + $keywords = self::checkTypes($keywords, $types); - $this->pattern = $pattern; + $this->keywords = $keywords; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getCategory() + public function getSize() { - return $this->category; + return $this->size; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @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 setCategory($category) + public function setSize($size) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\SizeSpecification", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $category = self::checkTypes($category, $types); + $size = self::checkTypes($size, $types); - $this->category = $category; + $this->size = $size; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return string|\OpenActive\Models\SchemaOrg\ImageObject */ - public function getFunding() + public function getLogo() { - return $this->funding; + return $this->logo; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @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 setFunding($funding) + public function setLogo($logo) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", "string", + "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $funding = self::checkTypes($funding, $types); + $logo = self::checkTypes($logo, $types); - $this->funding = $funding; + $this->logo = $logo; } /** * @return string */ - public function getMpn() + public function getAsin() { - return $this->mpn; + return $this->asin; } /** - * @param string $mpn + * @param string $asin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMpn($mpn) + public function setAsin($asin) { $types = [ "string", ]; - $mpn = self::checkTypes($mpn, $types); + $asin = self::checkTypes($asin, $types); - $this->mpn = $mpn; + $this->asin = $asin; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getHeight() + public function getGtin13() { - return $this->height; + return $this->gtin13; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @param string $gtin13 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeight($height) + public function setGtin13($gtin13) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $height = self::checkTypes($height, $types); + $gtin13 = self::checkTypes($gtin13, $types); - $this->height = $height; + $this->gtin13 = $gtin13; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null */ - public function getKeywords() + public function getHasAdultConsideration() { - return $this->keywords; + return $this->hasAdultConsideration; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setHasAdultConsideration($hasAdultConsideration) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", - "string", + "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", + "null", ]; - $keywords = self::checkTypes($keywords, $types); + $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); - $this->keywords = $keywords; + $this->hasAdultConsideration = $hasAdultConsideration; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ListItem|string */ - public function getPurchaseDate() + public function getPositiveNotes() { - return $this->purchaseDate; + return $this->positiveNotes; } /** - * @param Date|null $purchaseDate + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ListItem|string $positiveNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPurchaseDate($purchaseDate) + public function setPositiveNotes($positiveNotes) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\WebContent", + "\OpenActive\Models\SchemaOrg\ListItem", + "string", ]; - $purchaseDate = self::checkTypes($purchaseDate, $types); + $positiveNotes = self::checkTypes($positiveNotes, $types); - $this->purchaseDate = $purchaseDate; + $this->positiveNotes = $positiveNotes; } /** - * @return \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string + * @return string */ - public function getHasEnergyConsumptionDetails() + public function getMpn() { - return $this->hasEnergyConsumptionDetails; + return $this->mpn; } /** - * @param \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string $hasEnergyConsumptionDetails + * @param string $mpn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasEnergyConsumptionDetails($hasEnergyConsumptionDetails) + public function setMpn($mpn) { $types = [ - "\OpenActive\Models\SchemaOrg\EnergyConsumptionDetails", "string", ]; - $hasEnergyConsumptionDetails = self::checkTypes($hasEnergyConsumptionDetails, $types); + $mpn = self::checkTypes($mpn, $types); - $this->hasEnergyConsumptionDetails = $hasEnergyConsumptionDetails; + $this->mpn = $mpn; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getAudience() + public function getPattern() { - return $this->audience; + return $this->pattern; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @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 setAudience($audience) + public function setPattern($pattern) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $audience = self::checkTypes($audience, $types); + $pattern = self::checkTypes($pattern, $types); - $this->audience = $audience; + $this->pattern = $pattern; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - public function getOffers() + public function getBrand() { - return $this->offers; + return $this->brand; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setBrand($brand) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Brand", "string", ]; - $offers = self::checkTypes($offers, $types); + $brand = self::checkTypes($brand, $types); - $this->offers = $offers; + $this->brand = $brand; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - public function getProductionDate() + public function getHasMerchantReturnPolicy() { - return $this->productionDate; + return $this->hasMerchantReturnPolicy; } /** - * @param Date|null $productionDate + * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionDate($productionDate) + public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", + "string", ]; - $productionDate = self::checkTypes($productionDate, $types); + $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); - $this->productionDate = $productionDate; + $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; } /** - * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null */ - public function getItemCondition() + public function getCategory() { - return $this->itemCondition; + return $this->category; } /** - * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition + * @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 setItemCondition($itemCondition) + public function setCategory($category) { $types = [ - "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "string", "null", ]; - $itemCondition = self::checkTypes($itemCondition, $types); + $category = self::checkTypes($category, $types); - $this->itemCondition = $itemCondition; + $this->category = $category; } /** * @return string */ - public function getAwards() + public function getHasGS1DigitalLink() { - return $this->awards; + return $this->hasGS1DigitalLink; } /** - * @param string $awards + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ "string", ]; - $awards = self::checkTypes($awards, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->awards = $awards; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** * @return string */ - public function getGtin() + public function getGtin8() { - return $this->gtin; + return $this->gtin8; } /** - * @param string $gtin + * @param string $gtin8 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin($gtin) + public function setGtin8($gtin8) { $types = [ "string", ]; - $gtin = self::checkTypes($gtin, $types); + $gtin8 = self::checkTypes($gtin8, $types); - $this->gtin = $gtin; + $this->gtin8 = $gtin8; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getProductID() + public function getReviews() { - return $this->productID; + return $this->reviews; } /** - * @param string $productID + * @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 setProductID($productID) + public function setReviews($reviews) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $productID = self::checkTypes($productID, $types); + $reviews = self::checkTypes($reviews, $types); - $this->productID = $productID; + $this->reviews = $reviews; } /** * @return string */ - public function getCountryOfAssembly() + public function getGtin() { - return $this->countryOfAssembly; + return $this->gtin; } /** - * @param string $countryOfAssembly + * @param string $gtin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfAssembly($countryOfAssembly) + public function setGtin($gtin) { $types = [ "string", ]; - $countryOfAssembly = self::checkTypes($countryOfAssembly, $types); + $gtin = self::checkTypes($gtin, $types); - $this->countryOfAssembly = $countryOfAssembly; + $this->gtin = $gtin; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getColor() + public function getIsRelatedTo() { - return $this->color; + return $this->isRelatedTo; } /** - * @param string $color + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $isRelatedTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setColor($color) + public function setIsRelatedTo($isRelatedTo) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $color = self::checkTypes($color, $types); + $isRelatedTo = self::checkTypes($isRelatedTo, $types); - $this->color = $color; + $this->isRelatedTo = $isRelatedTo; } /** - * @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; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return string */ - public function getIsSimilarTo() + public function getColor() { - return $this->isSimilarTo; + return $this->color; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isSimilarTo + * @param string $color * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsSimilarTo($isSimilarTo) + public function setColor($color) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $isSimilarTo = self::checkTypes($isSimilarTo, $types); + $color = self::checkTypes($color, $types); - $this->isSimilarTo = $isSimilarTo; + $this->color = $color; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getDepth() + public function getCountryOfOrigin() { - return $this->depth; + return $this->countryOfOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth + * @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 setDepth($depth) + public function setCountryOfOrigin($countryOfOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $depth = self::checkTypes($depth, $types); + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); - $this->depth = $depth; + $this->countryOfOrigin = $countryOfOrigin; } /** * @return string */ - public function getCountryOfLastProcessing() + public function getGtin14() { - return $this->countryOfLastProcessing; + return $this->gtin14; } /** - * @param string $countryOfLastProcessing + * @param string $gtin14 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfLastProcessing($countryOfLastProcessing) + public function setGtin14($gtin14) { $types = [ "string", ]; - $countryOfLastProcessing = self::checkTypes($countryOfLastProcessing, $types); + $gtin14 = self::checkTypes($gtin14, $types); - $this->countryOfLastProcessing = $countryOfLastProcessing; + $this->gtin14 = $gtin14; } /** - * @return \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string + * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - public function getIsVariantOf() + public function getOffers() { - return $this->isVariantOf; + return $this->offers; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string $isVariantOf + * @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 setIsVariantOf($isVariantOf) + public function setOffers($offers) { $types = [ - "\OpenActive\Models\SchemaOrg\ProductModel", - "\OpenActive\Models\SchemaOrg\ProductGroup", + "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Demand", "string", ]; - $isVariantOf = self::checkTypes($isVariantOf, $types); + $offers = self::checkTypes($offers, $types); - $this->isVariantOf = $isVariantOf; + $this->offers = $offers; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSlogan() + public function getHeight() { - return $this->slogan; + return $this->height; } /** - * @param string $slogan + * @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 setSlogan($slogan) + public function setHeight($height) { $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $slogan = self::checkTypes($slogan, $types); + $height = self::checkTypes($height, $types); - $this->slogan = $slogan; + $this->height = $height; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getBrand() + public function getIsAccessoryOrSparePartFor() { - return $this->brand; + return $this->isAccessoryOrSparePartFor; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @param \OpenActive\Models\SchemaOrg\Product|string $isAccessoryOrSparePartFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBrand($brand) + public function setIsAccessoryOrSparePartFor($isAccessoryOrSparePartFor) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $brand = self::checkTypes($brand, $types); + $isAccessoryOrSparePartFor = self::checkTypes($isAccessoryOrSparePartFor, $types); - $this->brand = $brand; + $this->isAccessoryOrSparePartFor = $isAccessoryOrSparePartFor; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - public function getManufacturer() + public function getItemCondition() { - return $this->manufacturer; + return $this->itemCondition; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer + * @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 setManufacturer($manufacturer) + public function setItemCondition($itemCondition) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "string", + "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "null", ]; - $manufacturer = self::checkTypes($manufacturer, $types); + $itemCondition = self::checkTypes($itemCondition, $types); - $this->manufacturer = $manufacturer; + $this->itemCondition = $itemCondition; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getHasMeasurement() + public function getAwards() { - return $this->hasMeasurement; + return $this->awards; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMeasurement($hasMeasurement) + public function setAwards($awards) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $hasMeasurement = self::checkTypes($hasMeasurement, $types); + $awards = self::checkTypes($awards, $types); - $this->hasMeasurement = $hasMeasurement; + $this->awards = $awards; } /** - * @return \OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getIsConsumableFor() + public function getWidth() { - return $this->isConsumableFor; + return $this->width; } /** - * @param \OpenActive\Models\SchemaOrg\Product|string $isConsumableFor + * @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 setIsConsumableFor($isConsumableFor) + public function setWidth($width) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $isConsumableFor = self::checkTypes($isConsumableFor, $types); + $width = self::checkTypes($width, $types); - $this->isConsumableFor = $isConsumableFor; + $this->width = $width; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string */ - public function getLogo() + public function getIsVariantOf() { - return $this->logo; + return $this->isVariantOf; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @param \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string $isVariantOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLogo($logo) + public function setIsVariantOf($isVariantOf) { $types = [ + "\OpenActive\Models\SchemaOrg\ProductModel", + "\OpenActive\Models\SchemaOrg\ProductGroup", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $isVariantOf = self::checkTypes($isVariantOf, $types); - $this->logo = $logo; + $this->isVariantOf = $isVariantOf; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getGtin8() + public function getIsConsumableFor() { - return $this->gtin8; + return $this->isConsumableFor; } /** - * @param string $gtin8 + * @param \OpenActive\Models\SchemaOrg\Product|string $isConsumableFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin8($gtin8) + public function setIsConsumableFor($isConsumableFor) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $gtin8 = self::checkTypes($gtin8, $types); + $isConsumableFor = self::checkTypes($isConsumableFor, $types); - $this->gtin8 = $gtin8; + $this->isConsumableFor = $isConsumableFor; } /** * @return string */ - public function getSku() + public function getSlogan() { - return $this->sku; + return $this->slogan; } /** - * @param string $sku + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSku($sku) + public function setSlogan($slogan) { $types = [ "string", ]; - $sku = self::checkTypes($sku, $types); + $slogan = self::checkTypes($slogan, $types); - $this->sku = $sku; + $this->slogan = $slogan; } /** * @return string */ - public function getInProductGroupWithID() + public function getCountryOfLastProcessing() { - return $this->inProductGroupWithID; + return $this->countryOfLastProcessing; } /** - * @param string $inProductGroupWithID + * @param string $countryOfLastProcessing * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInProductGroupWithID($inProductGroupWithID) + public function setCountryOfLastProcessing($countryOfLastProcessing) { $types = [ "string", ]; - $inProductGroupWithID = self::checkTypes($inProductGroupWithID, $types); + $countryOfLastProcessing = self::checkTypes($countryOfLastProcessing, $types); - $this->inProductGroupWithID = $inProductGroupWithID; + $this->countryOfLastProcessing = $countryOfLastProcessing; } /** - * @return \OpenActive\Models\SchemaOrg\ProductModel|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getModel() + public function getWeight() { - return $this->model; + return $this->weight; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|string $model + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setModel($model) + public function setWeight($weight) { $types = [ - "\OpenActive\Models\SchemaOrg\ProductModel", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $model = self::checkTypes($model, $types); + $weight = self::checkTypes($weight, $types); - $this->model = $model; + $this->weight = $weight; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @return string */ - public function getHasMerchantReturnPolicy() + public function getGtin12() { - return $this->hasMerchantReturnPolicy; + return $this->gtin12; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy + * @param string $gtin12 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) + public function setGtin12($gtin12) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", ]; - $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); + $gtin12 = self::checkTypes($gtin12, $types); - $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; + $this->gtin12 = $gtin12; } /** - * @return Date|null + * @return string */ - public function getReleaseDate() + public function getNsn() { - return $this->releaseDate; + return $this->nsn; } /** - * @param Date|null $releaseDate + * @param string $nsn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReleaseDate($releaseDate) + public function setNsn($nsn) { $types = [ - "Date", - "null", + "string", ]; - $releaseDate = self::checkTypes($releaseDate, $types); + $nsn = self::checkTypes($nsn, $types); - $this->releaseDate = $releaseDate; + $this->nsn = $nsn; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string */ - public function getGtin14() + public function getDepth() { - return $this->gtin14; + return $this->depth; } /** - * @param string $gtin14 + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $depth * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin14($gtin14) + public function setDepth($depth) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Distance", "string", ]; - $gtin14 = self::checkTypes($gtin14, $types); + $depth = self::checkTypes($depth, $types); - $this->gtin14 = $gtin14; + $this->depth = $depth; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getWeight() + public function getColorSwatch() { - return $this->weight; + return $this->colorSwatch; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $colorSwatch * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWeight($weight) + public function setColorSwatch($colorSwatch) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $weight = self::checkTypes($weight, $types); + $colorSwatch = self::checkTypes($colorSwatch, $types); - $this->weight = $weight; + $this->colorSwatch = $colorSwatch; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getSize() + public function getAggregateRating() { - return $this->size; + return $this->aggregateRating; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification $size + * @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 setSize($size) + public function setAggregateRating($aggregateRating) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", - "\OpenActive\Models\SchemaOrg\SizeSpecification", ]; - $size = self::checkTypes($size, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->size = $size; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string */ - public function getAdditionalProperty() + public function getNegativeNotes() { - return $this->additionalProperty; + return $this->negativeNotes; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @param \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string $negativeNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalProperty($additionalProperty) + public function setNegativeNotes($negativeNotes) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\WebContent", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\ListItem", "string", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $negativeNotes = self::checkTypes($negativeNotes, $types); - $this->additionalProperty = $additionalProperty; + $this->negativeNotes = $negativeNotes; } /** * @return string */ - public function getGtin13() + public function getSku() { - return $this->gtin13; + return $this->sku; } /** - * @param string $gtin13 + * @param string $sku * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin13($gtin13) + public function setSku($sku) { $types = [ "string", ]; - $gtin13 = self::checkTypes($gtin13, $types); + $sku = self::checkTypes($sku, $types); - $this->gtin13 = $gtin13; + $this->sku = $sku; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string */ - public function getReviews() + public function getProductID() { - return $this->reviews; + return $this->productID; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @param string $productID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviews($reviews) + public function setProductID($productID) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $productID = self::checkTypes($productID, $types); - $this->reviews = $reviews; + $this->productID = $productID; } /** - * @return bool|null + * @return Date|null */ - public function getIsFamilyFriendly() + public function getPurchaseDate() { - return $this->isFamilyFriendly; + return $this->purchaseDate; } /** - * @param bool|null $isFamilyFriendly + * @param Date|null $purchaseDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsFamilyFriendly($isFamilyFriendly) + public function setPurchaseDate($purchaseDate) { $types = [ - "bool", + "Date", "null", ]; - $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); + $purchaseDate = self::checkTypes($purchaseDate, $types); - $this->isFamilyFriendly = $isFamilyFriendly; + $this->purchaseDate = $purchaseDate; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getIsRelatedTo() + public function getAudience() { - return $this->isRelatedTo; + return $this->audience; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo + * @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 setIsRelatedTo($isRelatedTo) + public function setAudience($audience) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $isRelatedTo = self::checkTypes($isRelatedTo, $types); + $audience = self::checkTypes($audience, $types); - $this->isRelatedTo = $isRelatedTo; + $this->audience = $audience; } } diff --git a/src/Models/SchemaOrg/ProductGroup.php b/src/Models/SchemaOrg/ProductGroup.php index a33132b4..fe4f0b27 100644 --- a/src/Models/SchemaOrg/ProductGroup.php +++ b/src/Models/SchemaOrg/ProductGroup.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "hasVariant" => "hasVariant", - "productGroupID" => "productGroupID", "variesBy" => "variesBy", + "productGroupID" => "productGroupID", ]; return array_merge(parent::fieldList(), $fields); @@ -34,20 +34,20 @@ public static function fieldList() { protected $hasVariant; /** - * Indicates a textual identifier for a ProductGroup. + * Indicates the property or properties by which the variants in a [[ProductGroup]] vary, e.g. their size, color etc. Schema.org properties can be referenced by their short name e.g. "color"; terms defined elsewhere can be referenced with their URIs. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $productGroupID; + protected $variesBy; /** - * Indicates the property or properties by which the variants in a [[ProductGroup]] vary, e.g. their size, color etc. Schema.org properties can be referenced by their short name e.g. "color"; terms defined elsewhere can be referenced with their URIs. + * Indicates a textual identifier for a ProductGroup. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var string */ - protected $variesBy; + protected $productGroupID; /** * @return \OpenActive\Models\SchemaOrg\Product|string @@ -75,52 +75,52 @@ public function setHasVariant($hasVariant) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getProductGroupID() + public function getVariesBy() { - return $this->productGroupID; + return $this->variesBy; } /** - * @param string $productGroupID + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $variesBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductGroupID($productGroupID) + public function setVariesBy($variesBy) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $productGroupID = self::checkTypes($productGroupID, $types); + $variesBy = self::checkTypes($variesBy, $types); - $this->productGroupID = $productGroupID; + $this->variesBy = $variesBy; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return string */ - public function getVariesBy() + public function getProductGroupID() { - return $this->variesBy; + return $this->productGroupID; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $variesBy + * @param string $productGroupID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVariesBy($variesBy) + public function setProductGroupID($productGroupID) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $variesBy = self::checkTypes($variesBy, $types); + $productGroupID = self::checkTypes($productGroupID, $types); - $this->variesBy = $variesBy; + $this->productGroupID = $productGroupID; } } diff --git a/src/Models/SchemaOrg/ProgramMembership.php b/src/Models/SchemaOrg/ProgramMembership.php index c73bd560..f55bc856 100644 --- a/src/Models/SchemaOrg/ProgramMembership.php +++ b/src/Models/SchemaOrg/ProgramMembership.php @@ -18,10 +18,11 @@ public static function getType() public static function fieldList() { $fields = [ "membershipPointsEarned" => "membershipPointsEarned", - "member" => "member", + "programName" => "programName", "membershipNumber" => "membershipNumber", + "program" => "program", + "member" => "member", "hostingOrganization" => "hostingOrganization", - "programName" => "programName", "members" => "members", ]; @@ -29,7 +30,7 @@ public static function fieldList() { } /** - * 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.) + * 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 @@ -37,12 +38,12 @@ public static function fieldList() { protected $membershipPointsEarned; /** - * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. + * The program providing the membership. It is preferable to use [:program](https://schema.org/program) instead. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $member; + protected $programName; /** * A unique identifier for the membership. @@ -53,26 +54,34 @@ public static function fieldList() { protected $membershipNumber; /** - * The organization (airline, travelers' club, etc.) the membership is made with. + * The [MemberProgram](https://schema.org/MemberProgram) associated with a [ProgramMembership](https://schema.org/ProgramMembership). * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\MemberProgram|string */ - protected $hostingOrganization; + protected $program; /** - * The program providing the membership. + * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $programName; + protected $member; + + /** + * 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; /** * A member of this organization. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $members; @@ -104,29 +113,27 @@ public function setMembershipPointsEarned($membershipPointsEarned) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getMember() + public function getProgramName() { - return $this->member; + return $this->programName; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member + * @param string $programName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMember($member) + public function setProgramName($programName) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $member = self::checkTypes($member, $types); + $programName = self::checkTypes($programName, $types); - $this->member = $member; + $this->programName = $programName; } /** @@ -154,56 +161,83 @@ public function setMembershipNumber($membershipNumber) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\MemberProgram|string */ - public function getHostingOrganization() + public function getProgram() { - return $this->hostingOrganization; + return $this->program; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $hostingOrganization + * @param \OpenActive\Models\SchemaOrg\MemberProgram|string $program * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHostingOrganization($hostingOrganization) + public function setProgram($program) { $types = [ + "\OpenActive\Models\SchemaOrg\MemberProgram", + "string", + ]; + + $program = self::checkTypes($program, $types); + + $this->program = $program; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + */ + public function getMember() + { + return $this->member; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $member + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMember($member) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $hostingOrganization = self::checkTypes($hostingOrganization, $types); + $member = self::checkTypes($member, $types); - $this->hostingOrganization = $hostingOrganization; + $this->member = $member; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getProgramName() + public function getHostingOrganization() { - return $this->programName; + return $this->hostingOrganization; } /** - * @param string $programName + * @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 setProgramName($programName) + public function setHostingOrganization($hostingOrganization) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $programName = self::checkTypes($programName, $types); + $hostingOrganization = self::checkTypes($hostingOrganization, $types); - $this->programName = $programName; + $this->hostingOrganization = $hostingOrganization; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getMembers() { @@ -211,15 +245,15 @@ public function getMembers() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $members + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $members * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setMembers($members) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/PronounceableText.php b/src/Models/SchemaOrg/PronounceableText.php index 15e10a48..ed77ddfb 100644 --- a/src/Models/SchemaOrg/PronounceableText.php +++ b/src/Models/SchemaOrg/PronounceableText.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "phoneticText" => "phoneticText", - "speechToTextMarkup" => "speechToTextMarkup", "textValue" => "textValue", "inLanguage" => "inLanguage", + "speechToTextMarkup" => "speechToTextMarkup", ]; return array_merge(parent::fieldList(), $fields); @@ -35,28 +35,28 @@ public static function fieldList() { protected $phoneticText; /** - * Form of markup used. eg. [SSML](https://www.w3.org/TR/speech-synthesis11) or [IPA](https://www.wikidata.org/wiki/Property:P898). + * Text value being annotated. * * * @var string */ - protected $speechToTextMarkup; + protected $textValue; /** - * Text value being annotated. + * 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 $textValue; + protected $inLanguage; /** - * 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]]. + * Form of markup used. eg. [SSML](https://www.w3.org/TR/speech-synthesis11) or [IPA](https://www.wikidata.org/wiki/Property:P898). * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var string */ - protected $inLanguage; + protected $speechToTextMarkup; /** * @return string @@ -85,74 +85,74 @@ public function setPhoneticText($phoneticText) /** * @return string */ - public function getSpeechToTextMarkup() + public function getTextValue() { - return $this->speechToTextMarkup; + return $this->textValue; } /** - * @param string $speechToTextMarkup + * @param string $textValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpeechToTextMarkup($speechToTextMarkup) + public function setTextValue($textValue) { $types = [ "string", ]; - $speechToTextMarkup = self::checkTypes($speechToTextMarkup, $types); + $textValue = self::checkTypes($textValue, $types); - $this->speechToTextMarkup = $speechToTextMarkup; + $this->textValue = $textValue; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getTextValue() + public function getInLanguage() { - return $this->textValue; + return $this->inLanguage; } /** - * @param string $textValue + * @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 setTextValue($textValue) + public function setInLanguage($inLanguage) { $types = [ + "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $textValue = self::checkTypes($textValue, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->textValue = $textValue; + $this->inLanguage = $inLanguage; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return string */ - public function getInLanguage() + public function getSpeechToTextMarkup() { - return $this->inLanguage; + return $this->speechToTextMarkup; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @param string $speechToTextMarkup * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInLanguage($inLanguage) + public function setSpeechToTextMarkup($speechToTextMarkup) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $speechToTextMarkup = self::checkTypes($speechToTextMarkup, $types); - $this->inLanguage = $inLanguage; + $this->speechToTextMarkup = $speechToTextMarkup; } } diff --git a/src/Models/SchemaOrg/Property.php b/src/Models/SchemaOrg/Property.php index bdc35f9f..3b287ab5 100644 --- a/src/Models/SchemaOrg/Property.php +++ b/src/Models/SchemaOrg/Property.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "domainIncludes" => "domainIncludes", + "inverseOf" => "inverseOf", "supersededBy" => "supersededBy", "rangeIncludes" => "rangeIncludes", - "inverseOf" => "inverseOf", ]; return array_merge(parent::fieldList(), $fields); @@ -35,28 +35,28 @@ public static function fieldList() { protected $domainIncludes; /** - * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. + * Relates a property to a property that is its inverse. Inverse properties relate the same pairs of items to each other, but in reversed direction. For example, the 'alumni' and 'alumniOf' properties are inverseOf each other. Some properties don't have explicit inverses; in these situations RDFa and JSON-LD syntax for reverse properties can be used. * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @var string|\OpenActive\Enums\PropertyEnumeration|null */ - protected $supersededBy; + protected $inverseOf; /** - * Relates a property to a class that constitutes (one of) the expected type(s) for values of the property. + * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. * * - * @var \OpenActive\Models\SchemaOrg\Class|string + * @var \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|null */ - protected $rangeIncludes; + protected $supersededBy; /** - * Relates a property to a property that is its inverse. Inverse properties relate the same pairs of items to each other, but in reversed direction. For example, the 'alumni' and 'alumniOf' properties are inverseOf each other. Some properties don't have explicit inverses; in these situations RDFa and JSON-LD syntax for reverse properties can be used. + * Relates a property to a class that constitutes (one of) the expected type(s) for values of the property. * * - * @var string|\OpenActive\Enums\PropertyEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Class|string */ - protected $inverseOf; + protected $rangeIncludes; /** * @return \OpenActive\Models\SchemaOrg\Class|string @@ -84,82 +84,82 @@ public function setDomainIncludes($domainIncludes) } /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @return string|\OpenActive\Enums\PropertyEnumeration|null */ - public function getSupersededBy() + public function getInverseOf() { - return $this->supersededBy; + return $this->inverseOf; } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy + * @param string|\OpenActive\Enums\PropertyEnumeration|null $inverseOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupersededBy($supersededBy) + public function setInverseOf($inverseOf) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", - "\OpenActive\Models\SchemaOrg\Class", "string", "\OpenActive\Enums\PropertyEnumeration", "null", ]; - $supersededBy = self::checkTypes($supersededBy, $types); + $inverseOf = self::checkTypes($inverseOf, $types); - $this->supersededBy = $supersededBy; + $this->inverseOf = $inverseOf; } /** - * @return \OpenActive\Models\SchemaOrg\Class|string + * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|null */ - public function getRangeIncludes() + public function getSupersededBy() { - return $this->rangeIncludes; + return $this->supersededBy; } /** - * @param \OpenActive\Models\SchemaOrg\Class|string $rangeIncludes + * @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 setRangeIncludes($rangeIncludes) + public function setSupersededBy($supersededBy) { $types = [ + "\OpenActive\Enums\PropertyEnumeration", "\OpenActive\Models\SchemaOrg\Class", + "\OpenActive\Models\SchemaOrg\Enumeration", "string", + "null", ]; - $rangeIncludes = self::checkTypes($rangeIncludes, $types); + $supersededBy = self::checkTypes($supersededBy, $types); - $this->rangeIncludes = $rangeIncludes; + $this->supersededBy = $supersededBy; } /** - * @return string|\OpenActive\Enums\PropertyEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Class|string */ - public function getInverseOf() + public function getRangeIncludes() { - return $this->inverseOf; + return $this->rangeIncludes; } /** - * @param string|\OpenActive\Enums\PropertyEnumeration|null $inverseOf + * @param \OpenActive\Models\SchemaOrg\Class|string $rangeIncludes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInverseOf($inverseOf) + public function setRangeIncludes($rangeIncludes) { $types = [ + "\OpenActive\Models\SchemaOrg\Class", "string", - "\OpenActive\Enums\PropertyEnumeration", - "null", ]; - $inverseOf = self::checkTypes($inverseOf, $types); + $rangeIncludes = self::checkTypes($rangeIncludes, $types); - $this->inverseOf = $inverseOf; + $this->rangeIncludes = $rangeIncludes; } } diff --git a/src/Models/SchemaOrg/PropertyValue.php b/src/Models/SchemaOrg/PropertyValue.php index f8056176..0ab635cb 100644 --- a/src/Models/SchemaOrg/PropertyValue.php +++ b/src/Models/SchemaOrg/PropertyValue.php @@ -17,30 +17,31 @@ public static function getType() public static function fieldList() { $fields = [ - "valueReference" => "valueReference", + "minValue" => "minValue", "propertyID" => "propertyID", "maxValue" => "maxValue", - "unitText" => "unitText", - "measurementTechnique" => "measurementTechnique", - "minValue" => "minValue", - "value" => "value", "unitCode" => "unitCode", + "measurementMethod" => "measurementMethod", + "value" => "value", + "measurementTechnique" => "measurementTechnique", + "valueReference" => "valueReference", + "unitText" => "unitText", ]; return array_merge(parent::fieldList(), $fields); } /** - * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. + * The lower value of some characteristic or property. * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + * @var Number|null */ - protected $valueReference; + protected $minValue; /** * A commonly used identifier for the characteristic represented by the property, e.g. a manufacturer or a standard code for a property. propertyID can be - * (1) a prefixed string, mainly meant to be used with standards for product properties; (2) a site-specific, non-prefixed string (e.g. the primary key of the property or the vendor-specific id of the property), or (3) + * (1) a prefixed string, mainly meant to be used with standards for product properties; (2) a site-specific, non-prefixed string (e.g. the primary key of the property or the vendor-specific ID of the property), or (3) * a URL indicating the type of the property, either pointing to an external vocabulary, or a Web resource that describes the property (e.g. a glossary entry). * Standards bodies should promote a standard prefix for the identifiers of properties from their standards. * @@ -58,84 +59,83 @@ public static function fieldList() { protected $maxValue; /** - * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for - * unitCode. + * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. * * * @var string */ - protected $unitText; + protected $unitCode; /** - * 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 subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]]. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - protected $measurementTechnique; + protected $measurementMethod; /** - * The lower value of some characteristic or property. + * 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 Number|null + * @var bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null */ - protected $minValue; + protected $value; /** - * 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. + * 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|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - protected $value; + protected $measurementTechnique; /** - * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. + * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. + * + * + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + */ + protected $valueReference; + + /** + * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for + * unitCode. * * * @var string */ - protected $unitCode; + protected $unitText; /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + * @return Number|null */ - public function getValueReference() + public function getMinValue() { - return $this->valueReference; + return $this->minValue; } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null $valueReference + * @param Number|null $minValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueReference($valueReference) + public function setMinValue($minValue) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", - "\OpenActive\Models\SchemaOrg\DefinedTerm", - "string", - "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "\OpenActive\Models\SchemaOrg\StructuredValue", - "\OpenActive\Models\SchemaOrg\PropertyValue", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "Number", "null", ]; - $valueReference = self::checkTypes($valueReference, $types); + $minValue = self::checkTypes($minValue, $types); - $this->valueReference = $valueReference; + $this->minValue = $minValue; } /** @@ -190,126 +190,163 @@ public function setMaxValue($maxValue) /** * @return string */ - public function getUnitText() + public function getUnitCode() { - return $this->unitText; + return $this->unitCode; } /** - * @param string $unitText + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setUnitCode($unitCode) { $types = [ "string", ]; - $unitText = self::checkTypes($unitText, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->unitText = $unitText; + $this->unitCode = $unitCode; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - public function getMeasurementTechnique() + public function getMeasurementMethod() { - return $this->measurementTechnique; + return $this->measurementMethod; } /** - * @param string $measurementTechnique + * @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 Number|null + * @return bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null */ - public function getMinValue() + public function getValue() { - return $this->minValue; + return $this->value; } /** - * @param Number|null $minValue + * @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 setMinValue($minValue) + public function setValue($value) { $types = [ + "bool", + "string", "Number", + "\OpenActive\Models\SchemaOrg\StructuredValue", "null", ]; - $minValue = self::checkTypes($minValue, $types); + $value = self::checkTypes($value, $types); - $this->minValue = $minValue; + $this->value = $value; } /** - * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - public function getValue() + public function getMeasurementTechnique() { - return $this->value; + return $this->measurementTechnique; } /** - * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value + * @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 setValue($value) + public function setMeasurementTechnique($measurementTechnique) { $types = [ "string", - "Number", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "null", + ]; + + $measurementTechnique = self::checkTypes($measurementTechnique, $types); + + $this->measurementTechnique = $measurementTechnique; + } + + /** + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + */ + public function getValueReference() + { + return $this->valueReference; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null $valueReference + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValueReference($valueReference) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", "\OpenActive\Models\SchemaOrg\StructuredValue", - "bool", + "\OpenActive\Models\SchemaOrg\Enumeration", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "null", ]; - $value = self::checkTypes($value, $types); + $valueReference = self::checkTypes($valueReference, $types); - $this->value = $value; + $this->valueReference = $valueReference; } /** * @return string */ - public function getUnitCode() + public function getUnitText() { - return $this->unitCode; + return $this->unitText; } /** - * @param string $unitCode + * @param string $unitText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitCode($unitCode) + public function setUnitText($unitText) { $types = [ "string", ]; - $unitCode = self::checkTypes($unitCode, $types); + $unitText = self::checkTypes($unitText, $types); - $this->unitCode = $unitCode; + $this->unitText = $unitText; } } diff --git a/src/Models/SchemaOrg/PropertyValueSpecification.php b/src/Models/SchemaOrg/PropertyValueSpecification.php index e316e8b1..8f447674 100644 --- a/src/Models/SchemaOrg/PropertyValueSpecification.php +++ b/src/Models/SchemaOrg/PropertyValueSpecification.php @@ -18,16 +18,16 @@ public static function getType() public static function fieldList() { $fields = [ "valueMaxLength" => "valueMaxLength", + "valueMinLength" => "valueMinLength", + "multipleValues" => "multipleValues", + "minValue" => "minValue", "readonlyValue" => "readonlyValue", "maxValue" => "maxValue", - "valueName" => "valueName", + "stepValue" => "stepValue", "defaultValue" => "defaultValue", - "valueMinLength" => "valueMinLength", - "valueRequired" => "valueRequired", - "minValue" => "minValue", + "valueName" => "valueName", "valuePattern" => "valuePattern", - "stepValue" => "stepValue", - "multipleValues" => "multipleValues", + "valueRequired" => "valueRequired", ]; return array_merge(parent::fieldList(), $fields); @@ -42,84 +42,84 @@ public static function fieldList() { protected $valueMaxLength; /** - * Whether or not a property is mutable. Default is false. Specifying this for a property that also has a value makes it act similar to a "hidden" input in an HTML form. + * Specifies the minimum allowed range for number of characters in a literal value. * * - * @var bool|null + * @var Number|null */ - protected $readonlyValue; + protected $valueMinLength; /** - * The upper value of some characteristic or property. + * Whether multiple values are allowed for the property. Default is false. * * - * @var Number|null + * @var bool|null */ - protected $maxValue; + protected $multipleValues; /** - * Indicates the name of the PropertyValueSpecification to be used in URL templates and form encoding in a manner analogous to HTML's `input@name`. + * The lower value of some characteristic or property. * * - * @var string + * @var Number|null */ - protected $valueName; + protected $minValue; /** - * The default value of the input. For properties that expect a literal, the default is a literal value, for properties that expect an object, it's an ID reference to one of the current values. + * Whether or not a property is mutable. Default is false. Specifying this for a property that also has a value makes it act similar to a "hidden" input in an HTML form. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var bool|null */ - protected $defaultValue; + protected $readonlyValue; /** - * Specifies the minimum allowed range for number of characters in a literal value. + * The upper value of some characteristic or property. * * * @var Number|null */ - protected $valueMinLength; + protected $maxValue; /** - * Whether the property must be filled in to complete the action. Default is false. + * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. * * - * @var bool|null + * @var Number|null */ - protected $valueRequired; + protected $stepValue; /** - * The lower value of some characteristic or property. + * The default value of the input. For properties that expect a literal, the default is a literal value, for properties that expect an object, it's an ID reference to one of the current values. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $minValue; + protected $defaultValue; /** - * Specifies a regular expression for testing literal values according to the HTML spec. + * Indicates the name of the PropertyValueSpecification to be used in URL templates and form encoding in a manner analogous to HTML's `input@name`. * * * @var string */ - protected $valuePattern; + protected $valueName; /** - * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. + * Specifies a regular expression for testing literal values according to the HTML spec. * * - * @var Number|null + * @var string */ - protected $stepValue; + protected $valuePattern; /** - * Whether multiple values are allowed for the property. Default is false. + * Whether the property must be filled in to complete the action. Default is false. * * * @var bool|null */ - protected $multipleValues; + protected $valueRequired; /** * @return Number|null @@ -147,251 +147,251 @@ public function setValueMaxLength($valueMaxLength) } /** - * @return bool|null + * @return Number|null */ - public function getReadonlyValue() + public function getValueMinLength() { - return $this->readonlyValue; + return $this->valueMinLength; } /** - * @param bool|null $readonlyValue + * @param Number|null $valueMinLength * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReadonlyValue($readonlyValue) + public function setValueMinLength($valueMinLength) { $types = [ - "bool", + "Number", "null", ]; - $readonlyValue = self::checkTypes($readonlyValue, $types); + $valueMinLength = self::checkTypes($valueMinLength, $types); - $this->readonlyValue = $readonlyValue; + $this->valueMinLength = $valueMinLength; } /** - * @return Number|null + * @return bool|null */ - public function getMaxValue() + public function getMultipleValues() { - return $this->maxValue; + return $this->multipleValues; } /** - * @param Number|null $maxValue + * @param bool|null $multipleValues * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaxValue($maxValue) + public function setMultipleValues($multipleValues) { $types = [ - "Number", + "bool", "null", ]; - $maxValue = self::checkTypes($maxValue, $types); + $multipleValues = self::checkTypes($multipleValues, $types); - $this->maxValue = $maxValue; + $this->multipleValues = $multipleValues; } /** - * @return string + * @return Number|null */ - public function getValueName() + public function getMinValue() { - return $this->valueName; + return $this->minValue; } /** - * @param string $valueName + * @param Number|null $minValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueName($valueName) + public function setMinValue($minValue) { $types = [ - "string", + "Number", + "null", ]; - $valueName = self::checkTypes($valueName, $types); + $minValue = self::checkTypes($minValue, $types); - $this->valueName = $valueName; + $this->minValue = $minValue; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return bool|null */ - public function getDefaultValue() + public function getReadonlyValue() { - return $this->defaultValue; + return $this->readonlyValue; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $defaultValue + * @param bool|null $readonlyValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDefaultValue($defaultValue) + public function setReadonlyValue($readonlyValue) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\Thing", + "bool", + "null", ]; - $defaultValue = self::checkTypes($defaultValue, $types); + $readonlyValue = self::checkTypes($readonlyValue, $types); - $this->defaultValue = $defaultValue; + $this->readonlyValue = $readonlyValue; } /** * @return Number|null */ - public function getValueMinLength() + public function getMaxValue() { - return $this->valueMinLength; + return $this->maxValue; } /** - * @param Number|null $valueMinLength + * @param Number|null $maxValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueMinLength($valueMinLength) + public function setMaxValue($maxValue) { $types = [ "Number", "null", ]; - $valueMinLength = self::checkTypes($valueMinLength, $types); + $maxValue = self::checkTypes($maxValue, $types); - $this->valueMinLength = $valueMinLength; + $this->maxValue = $maxValue; } /** - * @return bool|null + * @return Number|null */ - public function getValueRequired() + public function getStepValue() { - return $this->valueRequired; + return $this->stepValue; } /** - * @param bool|null $valueRequired + * @param Number|null $stepValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueRequired($valueRequired) + public function setStepValue($stepValue) { $types = [ - "bool", + "Number", "null", ]; - $valueRequired = self::checkTypes($valueRequired, $types); + $stepValue = self::checkTypes($stepValue, $types); - $this->valueRequired = $valueRequired; + $this->stepValue = $stepValue; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getMinValue() + public function getDefaultValue() { - return $this->minValue; + return $this->defaultValue; } /** - * @param Number|null $minValue + * @param \OpenActive\Models\SchemaOrg\Thing|string $defaultValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinValue($minValue) + public function setDefaultValue($defaultValue) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\Thing", + "string", ]; - $minValue = self::checkTypes($minValue, $types); + $defaultValue = self::checkTypes($defaultValue, $types); - $this->minValue = $minValue; + $this->defaultValue = $defaultValue; } /** * @return string */ - public function getValuePattern() + public function getValueName() { - return $this->valuePattern; + return $this->valueName; } /** - * @param string $valuePattern + * @param string $valueName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValuePattern($valuePattern) + public function setValueName($valueName) { $types = [ "string", ]; - $valuePattern = self::checkTypes($valuePattern, $types); + $valueName = self::checkTypes($valueName, $types); - $this->valuePattern = $valuePattern; + $this->valueName = $valueName; } /** - * @return Number|null + * @return string */ - public function getStepValue() + public function getValuePattern() { - return $this->stepValue; + return $this->valuePattern; } /** - * @param Number|null $stepValue + * @param string $valuePattern * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStepValue($stepValue) + public function setValuePattern($valuePattern) { $types = [ - "Number", - "null", + "string", ]; - $stepValue = self::checkTypes($stepValue, $types); + $valuePattern = self::checkTypes($valuePattern, $types); - $this->stepValue = $stepValue; + $this->valuePattern = $valuePattern; } /** * @return bool|null */ - public function getMultipleValues() + public function getValueRequired() { - return $this->multipleValues; + return $this->valueRequired; } /** - * @param bool|null $multipleValues + * @param bool|null $valueRequired * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMultipleValues($multipleValues) + public function setValueRequired($valueRequired) { $types = [ "bool", "null", ]; - $multipleValues = self::checkTypes($multipleValues, $types); + $valueRequired = self::checkTypes($valueRequired, $types); - $this->multipleValues = $multipleValues; + $this->valueRequired = $valueRequired; } } diff --git a/src/Models/SchemaOrg/Protein.php b/src/Models/SchemaOrg/Protein.php index 2bc310d0..078256d9 100644 --- a/src/Models/SchemaOrg/Protein.php +++ b/src/Models/SchemaOrg/Protein.php @@ -24,7 +24,7 @@ public static function fieldList() { } /** - * 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 diff --git a/src/Models/SchemaOrg/PublicationEvent.php b/src/Models/SchemaOrg/PublicationEvent.php index f088abb7..9b4db259 100644 --- a/src/Models/SchemaOrg/PublicationEvent.php +++ b/src/Models/SchemaOrg/PublicationEvent.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "publishedBy" => "publishedBy", - "free" => "free", "publishedOn" => "publishedOn", + "free" => "free", ]; return array_merge(parent::fieldList(), $fields); @@ -29,28 +29,28 @@ public static function fieldList() { * An agent associated with the publication event. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ protected $publishedBy; /** - * A flag to signal that the item, event, or place is accessible for free. + * A broadcast service associated with the publication event. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\BroadcastService|string */ - protected $free; + protected $publishedOn; /** - * A broadcast service associated with the publication event. + * A flag to signal that the item, event, or place is accessible for free. * * - * @var \OpenActive\Models\SchemaOrg\BroadcastService|string + * @var bool|null */ - protected $publishedOn; + protected $free; /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ public function getPublishedBy() { @@ -58,15 +58,15 @@ public function getPublishedBy() } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $publishedBy + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $publishedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setPublishedBy($publishedBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; @@ -76,53 +76,53 @@ public function setPublishedBy($publishedBy) } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\BroadcastService|string */ - public function getFree() + public function getPublishedOn() { - return $this->free; + return $this->publishedOn; } /** - * @param bool|null $free + * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $publishedOn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFree($free) + public function setPublishedOn($publishedOn) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\BroadcastService", + "string", ]; - $free = self::checkTypes($free, $types); + $publishedOn = self::checkTypes($publishedOn, $types); - $this->free = $free; + $this->publishedOn = $publishedOn; } /** - * @return \OpenActive\Models\SchemaOrg\BroadcastService|string + * @return bool|null */ - public function getPublishedOn() + public function getFree() { - return $this->publishedOn; + return $this->free; } /** - * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $publishedOn + * @param bool|null $free * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublishedOn($publishedOn) + public function setFree($free) { $types = [ - "\OpenActive\Models\SchemaOrg\BroadcastService", - "string", + "bool", + "null", ]; - $publishedOn = self::checkTypes($publishedOn, $types); + $free = self::checkTypes($free, $types); - $this->publishedOn = $publishedOn; + $this->free = $free; } } diff --git a/src/Models/SchemaOrg/PublicationIssue.php b/src/Models/SchemaOrg/PublicationIssue.php index e2bb7f23..519688a3 100644 --- a/src/Models/SchemaOrg/PublicationIssue.php +++ b/src/Models/SchemaOrg/PublicationIssue.php @@ -17,30 +17,30 @@ public static function getType() public static function fieldList() { $fields = [ + "pagination" => "pagination", "pageStart" => "pageStart", - "pageEnd" => "pageEnd", "issueNumber" => "issueNumber", - "pagination" => "pagination", + "pageEnd" => "pageEnd", ]; 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; /** - * The page on which the work ends; for example "138" or "xvi". + * The page on which the work starts; for example "135" or "xiii". * * * @var string|int|null */ - protected $pageEnd; + protected $pageStart; /** * Identifies the issue of publication; for example, "iii" or "2". @@ -51,53 +51,51 @@ public static function fieldList() { protected $issueNumber; /** - * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". + * The page on which the work ends; for example "138" or "xvi". * * - * @var string + * @var string|int|null */ - protected $pagination; + protected $pageEnd; /** - * @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|int|null */ - public function getPageEnd() + public function getPageStart() { - return $this->pageEnd; + return $this->pageStart; } /** - * @param string|int|null $pageEnd + * @param string|int|null $pageStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageEnd($pageEnd) + public function setPageStart($pageStart) { $types = [ "string", @@ -105,9 +103,9 @@ public function setPageEnd($pageEnd) "null", ]; - $pageEnd = self::checkTypes($pageEnd, $types); + $pageStart = self::checkTypes($pageStart, $types); - $this->pageEnd = $pageEnd; + $this->pageStart = $pageStart; } /** @@ -137,27 +135,29 @@ public function setIssueNumber($issueNumber) } /** - * @return string + * @return string|int|null */ - public function getPagination() + public function getPageEnd() { - return $this->pagination; + return $this->pageEnd; } /** - * @param string $pagination + * @param string|int|null $pageEnd * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPagination($pagination) + public function setPageEnd($pageEnd) { $types = [ "string", + "int", + "null", ]; - $pagination = self::checkTypes($pagination, $types); + $pageEnd = self::checkTypes($pageEnd, $types); - $this->pagination = $pagination; + $this->pageEnd = $pageEnd; } } diff --git a/src/Models/SchemaOrg/PublicationVolume.php b/src/Models/SchemaOrg/PublicationVolume.php index 77d18ace..0d625e43 100644 --- a/src/Models/SchemaOrg/PublicationVolume.php +++ b/src/Models/SchemaOrg/PublicationVolume.php @@ -17,30 +17,30 @@ public static function getType() public static function fieldList() { $fields = [ + "pagination" => "pagination", "pageStart" => "pageStart", - "pageEnd" => "pageEnd", "volumeNumber" => "volumeNumber", - "pagination" => "pagination", + "pageEnd" => "pageEnd", ]; 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; /** - * The page on which the work ends; for example "138" or "xvi". + * The page on which the work starts; for example "135" or "xiii". * * * @var string|int|null */ - protected $pageEnd; + protected $pageStart; /** * Identifies the volume of publication or multi-part work; for example, "iii" or "2". @@ -51,53 +51,51 @@ public static function fieldList() { protected $volumeNumber; /** - * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". + * The page on which the work ends; for example "138" or "xvi". * * - * @var string + * @var string|int|null */ - protected $pagination; + protected $pageEnd; /** - * @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|int|null */ - public function getPageEnd() + public function getPageStart() { - return $this->pageEnd; + return $this->pageStart; } /** - * @param string|int|null $pageEnd + * @param string|int|null $pageStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageEnd($pageEnd) + public function setPageStart($pageStart) { $types = [ "string", @@ -105,9 +103,9 @@ public function setPageEnd($pageEnd) "null", ]; - $pageEnd = self::checkTypes($pageEnd, $types); + $pageStart = self::checkTypes($pageStart, $types); - $this->pageEnd = $pageEnd; + $this->pageStart = $pageStart; } /** @@ -137,27 +135,29 @@ public function setVolumeNumber($volumeNumber) } /** - * @return string + * @return string|int|null */ - public function getPagination() + public function getPageEnd() { - return $this->pagination; + return $this->pageEnd; } /** - * @param string $pagination + * @param string|int|null $pageEnd * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPagination($pagination) + public function setPageEnd($pageEnd) { $types = [ "string", + "int", + "null", ]; - $pagination = self::checkTypes($pagination, $types); + $pageEnd = self::checkTypes($pageEnd, $types); - $this->pagination = $pagination; + $this->pageEnd = $pageEnd; } } diff --git a/src/Models/SchemaOrg/QuantitativeValue.php b/src/Models/SchemaOrg/QuantitativeValue.php index 13658c50..c801640e 100644 --- a/src/Models/SchemaOrg/QuantitativeValue.php +++ b/src/Models/SchemaOrg/QuantitativeValue.php @@ -17,184 +17,177 @@ public static function getType() public static function fieldList() { $fields = [ - "valueReference" => "valueReference", - "maxValue" => "maxValue", - "unitText" => "unitText", + "additionalProperty" => "additionalProperty", "minValue" => "minValue", - "value" => "value", + "maxValue" => "maxValue", "unitCode" => "unitCode", - "additionalProperty" => "additionalProperty", + "value" => "value", + "valueReference" => "valueReference", + "unitText" => "unitText", ]; return array_merge(parent::fieldList(), $fields); } /** - * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. + * 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\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $valueReference; + protected $additionalProperty; /** - * The upper value of some characteristic or property. + * The lower value of some characteristic or property. * * * @var Number|null */ - protected $maxValue; + protected $minValue; /** - * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for - * unitCode. + * The upper value of some characteristic or property. * * - * @var string + * @var Number|null */ - protected $unitText; + protected $maxValue; /** - * The lower value of some characteristic or property. + * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. * * - * @var Number|null + * @var string */ - protected $minValue; + protected $unitCode; /** - * The value of the quantitative value or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text;', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * The value of a [[QuantitativeValue]] (including [[Observation]]) or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * - * @var string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @var bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null */ protected $value; /** - * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. + * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null */ - protected $unitCode; + protected $valueReference; /** - * 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. - * + * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for + * unitCode. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var string */ - protected $additionalProperty; + protected $unitText; /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getValueReference() + public function getAdditionalProperty() { - return $this->valueReference; + return $this->additionalProperty; } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null $valueReference + * @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 setValueReference($valueReference) + public function setAdditionalProperty($additionalProperty) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", - "\OpenActive\Models\SchemaOrg\DefinedTerm", - "string", - "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "\OpenActive\Models\SchemaOrg\StructuredValue", "\OpenActive\Models\SchemaOrg\PropertyValue", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "null", + "string", ]; - $valueReference = self::checkTypes($valueReference, $types); + $additionalProperty = self::checkTypes($additionalProperty, $types); - $this->valueReference = $valueReference; + $this->additionalProperty = $additionalProperty; } /** * @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 string + * @return Number|null */ - public function getUnitText() + public function getMaxValue() { - return $this->unitText; + return $this->maxValue; } /** - * @param string $unitText + * @param Number|null $maxValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setMaxValue($maxValue) { $types = [ - "string", + "Number", + "null", ]; - $unitText = self::checkTypes($unitText, $types); + $maxValue = self::checkTypes($maxValue, $types); - $this->unitText = $unitText; + $this->maxValue = $maxValue; } /** - * @return Number|null + * @return string */ - public function getMinValue() + public function getUnitCode() { - return $this->minValue; + return $this->unitCode; } /** - * @param Number|null $minValue + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinValue($minValue) + public function setUnitCode($unitCode) { $types = [ - "Number", - "null", + "string", ]; - $minValue = self::checkTypes($minValue, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->minValue = $minValue; + $this->unitCode = $unitCode; } /** - * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @return bool|string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|null */ public function getValue() { @@ -202,17 +195,17 @@ public function getValue() } /** - * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value + * @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 setValue($value) { $types = [ + "bool", "string", "Number", "\OpenActive\Models\SchemaOrg\StructuredValue", - "bool", "null", ]; @@ -222,52 +215,59 @@ public function setValue($value) } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null */ - public function getUnitCode() + public function getValueReference() { - return $this->unitCode; + return $this->valueReference; } /** - * @param string $unitCode + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null $valueReference * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitCode($unitCode) + public function setValueReference($valueReference) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", + "\OpenActive\Models\SchemaOrg\StructuredValue", + "\OpenActive\Models\SchemaOrg\Enumeration", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "null", ]; - $unitCode = self::checkTypes($unitCode, $types); + $valueReference = self::checkTypes($valueReference, $types); - $this->unitCode = $unitCode; + $this->valueReference = $valueReference; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return string */ - public function getAdditionalProperty() + public function getUnitText() { - return $this->additionalProperty; + return $this->unitText; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @param string $unitText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalProperty($additionalProperty) + public function setUnitText($unitText) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $unitText = self::checkTypes($unitText, $types); - $this->additionalProperty = $additionalProperty; + $this->unitText = $unitText; } } diff --git a/src/Models/SchemaOrg/QuantitativeValueDistribution.php b/src/Models/SchemaOrg/QuantitativeValueDistribution.php index 899a1813..5544266c 100644 --- a/src/Models/SchemaOrg/QuantitativeValueDistribution.php +++ b/src/Models/SchemaOrg/QuantitativeValueDistribution.php @@ -17,214 +17,214 @@ public static function getType() public static function fieldList() { $fields = [ - "percentile75" => "percentile75", - "median" => "median", - "percentile10" => "percentile10", - "percentile25" => "percentile25", "percentile90" => "percentile90", + "percentile10" => "percentile10", + "median" => "median", "duration" => "duration", + "percentile75" => "percentile75", + "percentile25" => "percentile25", ]; return array_merge(parent::fieldList(), $fields); } /** - * The 75th percentile value. + * The 90th percentile value. * * * @var Number|null */ - protected $percentile75; + protected $percentile90; /** - * The median value. + * The 10th percentile value. * * * @var Number|null */ - protected $median; + protected $percentile10; /** - * The 10th percentile value. + * The median value. * * * @var Number|null */ - protected $percentile10; + protected $median; /** - * The 25th percentile value. + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var Number|null + * @var DateInterval|string|null */ - protected $percentile25; + protected $duration; /** - * The 90th percentile value. + * The 75th percentile value. * * * @var Number|null */ - protected $percentile90; + protected $percentile75; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * The 25th percentile value. * * - * @var DateInterval|string|null + * @var Number|null */ - protected $duration; + protected $percentile25; /** * @return Number|null */ - public function getPercentile75() + public function getPercentile90() { - return $this->percentile75; + return $this->percentile90; } /** - * @param Number|null $percentile75 + * @param Number|null $percentile90 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPercentile75($percentile75) + public function setPercentile90($percentile90) { $types = [ "Number", "null", ]; - $percentile75 = self::checkTypes($percentile75, $types); + $percentile90 = self::checkTypes($percentile90, $types); - $this->percentile75 = $percentile75; + $this->percentile90 = $percentile90; } /** * @return Number|null */ - public function getMedian() + public function getPercentile10() { - return $this->median; + return $this->percentile10; } /** - * @param Number|null $median + * @param Number|null $percentile10 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMedian($median) + public function setPercentile10($percentile10) { $types = [ "Number", "null", ]; - $median = self::checkTypes($median, $types); + $percentile10 = self::checkTypes($percentile10, $types); - $this->median = $median; + $this->percentile10 = $percentile10; } /** * @return Number|null */ - public function getPercentile10() + public function getMedian() { - return $this->percentile10; + return $this->median; } /** - * @param Number|null $percentile10 + * @param Number|null $median * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPercentile10($percentile10) + public function setMedian($median) { $types = [ "Number", "null", ]; - $percentile10 = self::checkTypes($percentile10, $types); + $median = self::checkTypes($median, $types); - $this->percentile10 = $percentile10; + $this->median = $median; } /** - * @return Number|null + * @return DateInterval|string|null */ - public function getPercentile25() + public function getDuration() { - return $this->percentile25; + return $this->duration; } /** - * @param Number|null $percentile25 + * @param DateInterval|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPercentile25($percentile25) + public function setDuration($duration) { $types = [ - "Number", + "DateInterval", + "string", "null", ]; - $percentile25 = self::checkTypes($percentile25, $types); + $duration = self::checkTypes($duration, $types); - $this->percentile25 = $percentile25; + $this->duration = $duration; } /** * @return Number|null */ - public function getPercentile90() + public function getPercentile75() { - return $this->percentile90; + return $this->percentile75; } /** - * @param Number|null $percentile90 + * @param Number|null $percentile75 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPercentile90($percentile90) + public function setPercentile75($percentile75) { $types = [ "Number", "null", ]; - $percentile90 = self::checkTypes($percentile90, $types); + $percentile75 = self::checkTypes($percentile75, $types); - $this->percentile90 = $percentile90; + $this->percentile75 = $percentile75; } /** - * @return DateInterval|string|null + * @return Number|null */ - public function getDuration() + public function getPercentile25() { - return $this->duration; + return $this->percentile25; } /** - * @param DateInterval|string|null $duration + * @param Number|null $percentile25 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setPercentile25($percentile25) { $types = [ - "DateInterval", - "string", + "Number", "null", ]; - $duration = self::checkTypes($duration, $types); + $percentile25 = self::checkTypes($percentile25, $types); - $this->duration = $duration; + $this->percentile25 = $percentile25; } } diff --git a/src/Models/SchemaOrg/Question.php b/src/Models/SchemaOrg/Question.php index 9049d777..c13074e1 100644 --- a/src/Models/SchemaOrg/Question.php +++ b/src/Models/SchemaOrg/Question.php @@ -17,38 +17,39 @@ public static function getType() public static function fieldList() { $fields = [ - "suggestedAnswer" => "suggestedAnswer", - "acceptedAnswer" => "acceptedAnswer", "answerCount" => "answerCount", + "parentItem" => "parentItem", + "acceptedAnswer" => "acceptedAnswer", "eduQuestionType" => "eduQuestionType", + "suggestedAnswer" => "suggestedAnswer", ]; return array_merge(parent::fieldList(), $fields); } /** - * An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site. + * The number of answers this question has received. * * - * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string + * @var int|null */ - protected $suggestedAnswer; + protected $answerCount; /** - * The answer(s) that has been accepted as best, typically on a Question/Answer site. Sites vary in their selection mechanisms, e.g. drawing on community opinion and/or the view of the Question author. + * 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\Answer|\OpenActive\Models\SchemaOrg\ItemList|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string */ - protected $acceptedAnswer; + protected $parentItem; /** - * The number of answers this question has received. + * The answer(s) that has been accepted as best, typically on a Question/Answer site. Sites vary in their selection mechanisms, e.g. drawing on community opinion and/or the view of the Question author. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string */ - protected $answerCount; + protected $acceptedAnswer; /** * For questions that are part of learning resources (e.g. Quiz), eduQuestionType indicates the format of question being given. Example: "Multiple choice", "Open ended", "Flashcard". @@ -59,29 +60,62 @@ public static function fieldList() { protected $eduQuestionType; /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string + * An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site. + * + * + * @var \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string */ - public function getSuggestedAnswer() + protected $suggestedAnswer; + + /** + * @return int|null + */ + public function getAnswerCount() { - return $this->suggestedAnswer; + return $this->answerCount; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string $suggestedAnswer + * @param int|null $answerCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedAnswer($suggestedAnswer) + public function setAnswerCount($answerCount) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", - "\OpenActive\Models\SchemaOrg\Answer", + "int", + "null", + ]; + + $answerCount = self::checkTypes($answerCount, $types); + + $this->answerCount = $answerCount; + } + + /** + * @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", ]; - $suggestedAnswer = self::checkTypes($suggestedAnswer, $types); + $parentItem = self::checkTypes($parentItem, $types); - $this->suggestedAnswer = $suggestedAnswer; + $this->parentItem = $parentItem; } /** @@ -111,52 +145,53 @@ public function setAcceptedAnswer($acceptedAnswer) } /** - * @return int|null + * @return string */ - public function getAnswerCount() + public function getEduQuestionType() { - return $this->answerCount; + return $this->eduQuestionType; } /** - * @param int|null $answerCount + * @param string $eduQuestionType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAnswerCount($answerCount) + public function setEduQuestionType($eduQuestionType) { $types = [ - "int", - "null", + "string", ]; - $answerCount = self::checkTypes($answerCount, $types); + $eduQuestionType = self::checkTypes($eduQuestionType, $types); - $this->answerCount = $answerCount; + $this->eduQuestionType = $eduQuestionType; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string */ - public function getEduQuestionType() + public function getSuggestedAnswer() { - return $this->eduQuestionType; + return $this->suggestedAnswer; } /** - * @param string $eduQuestionType + * @param \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string $suggestedAnswer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEduQuestionType($eduQuestionType) + public function setSuggestedAnswer($suggestedAnswer) { $types = [ + "\OpenActive\Models\SchemaOrg\Answer", + "\OpenActive\Models\SchemaOrg\ItemList", "string", ]; - $eduQuestionType = self::checkTypes($eduQuestionType, $types); + $suggestedAnswer = self::checkTypes($suggestedAnswer, $types); - $this->eduQuestionType = $eduQuestionType; + $this->suggestedAnswer = $suggestedAnswer; } } diff --git a/src/Models/SchemaOrg/Quotation.php b/src/Models/SchemaOrg/Quotation.php index c49ffc80..ed0e40b0 100644 --- a/src/Models/SchemaOrg/Quotation.php +++ b/src/Models/SchemaOrg/Quotation.php @@ -27,12 +27,12 @@ public static function fieldList() { * The (e.g. fictional) character, Person or Organization to whom the quotation is attributed within the containing CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $spokenByCharacter; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getSpokenByCharacter() { @@ -40,15 +40,15 @@ public function getSpokenByCharacter() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $spokenByCharacter + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $spokenByCharacter * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSpokenByCharacter($spokenByCharacter) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/RadioSeries.php b/src/Models/SchemaOrg/RadioSeries.php index 4ae0b3b6..80572bd0 100644 --- a/src/Models/SchemaOrg/RadioSeries.php +++ b/src/Models/SchemaOrg/RadioSeries.php @@ -17,80 +17,80 @@ public static function getType() public static function fieldList() { $fields = [ - "season" => "season", - "containsSeason" => "containsSeason", - "director" => "director", "actor" => "actor", "trailer" => "trailer", - "episodes" => "episodes", - "numberOfEpisodes" => "numberOfEpisodes", - "seasons" => "seasons", - "productionCompany" => "productionCompany", "actors" => "actors", + "containsSeason" => "containsSeason", "numberOfSeasons" => "numberOfSeasons", - "musicBy" => "musicBy", "episode" => "episode", "directors" => "directors", + "seasons" => "seasons", + "season" => "season", + "productionCompany" => "productionCompany", + "director" => "director", + "numberOfEpisodes" => "numberOfEpisodes", + "musicBy" => "musicBy", + "episodes" => "episodes", ]; return array_merge(parent::fieldList(), $fields); } /** - * A season in a media series. + * 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|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string */ - protected $season; + protected $actor; /** - * A season that is part of the media series. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $containsSeason; + protected $trailer; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $director; + 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 season that is part of the media series. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $actor; + protected $containsSeason; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * The number of seasons in this series. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var int|null */ - protected $trailer; + protected $numberOfSeasons; /** - * An episode of a TV/radio series or season. + * An episode of a TV, radio or game media within a series or season. * * * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $episodes; + protected $episode; /** - * The number of episodes in this season or series. + * 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 int|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $numberOfEpisodes; + protected $directors; /** * A season in a media series. @@ -101,7 +101,15 @@ public static function fieldList() { protected $seasons; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * A season in a media series. + * + * + * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + */ + protected $season; + + /** + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * * @var \OpenActive\Models\SchemaOrg\Organization|string @@ -109,20 +117,20 @@ 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 number of seasons in this series. + * The number of episodes in this season or series. * * * @var int|null */ - protected $numberOfSeasons; + protected $numberOfEpisodes; /** * The composer of the soundtrack. @@ -133,194 +141,187 @@ public static function fieldList() { protected $musicBy; /** - * 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; - - /** - * 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; + protected $episodes; /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string */ - public function getSeason() + public function getActor() { - return $this->season; + return $this->actor; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @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 setSeason($season) + public function setActor($actor) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\PerformingGroup", "string", - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", ]; - $season = self::checkTypes($season, $types); + $actor = self::checkTypes($actor, $types); - $this->season = $season; + $this->actor = $actor; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getContainsSeason() + public function getTrailer() { - return $this->containsSeason; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason + * @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 setContainsSeason($containsSeason) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $containsSeason = self::checkTypes($containsSeason, $types); + $trailer = self::checkTypes($trailer, $types); - $this->containsSeason = $containsSeason; + $this->trailer = $trailer; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDirector() + public function getActors() { - return $this->director; + return $this->actors; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @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 setDirector($director) + public function setActors($actors) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $director = self::checkTypes($director, $types); + $actors = self::checkTypes($actors, $types); - $this->director = $director; + $this->actors = $actors; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getActor() + public function getContainsSeason() { - return $this->actor; + return $this->containsSeason; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setContainsSeason($containsSeason) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $actor = self::checkTypes($actor, $types); + $containsSeason = self::checkTypes($containsSeason, $types); - $this->actor = $actor; + $this->containsSeason = $containsSeason; } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return int|null */ - public function getTrailer() + public function getNumberOfSeasons() { - return $this->trailer; + return $this->numberOfSeasons; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param int|null $numberOfSeasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setNumberOfSeasons($numberOfSeasons) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", - "string", + "int", + "null", ]; - $trailer = self::checkTypes($trailer, $types); + $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); - $this->trailer = $trailer; + $this->numberOfSeasons = $numberOfSeasons; } /** * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getEpisodes() + public function getEpisode() { - return $this->episodes; + return $this->episode; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes + * @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 setEpisodes($episodes) + public function setEpisode($episode) { $types = [ "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $episodes = self::checkTypes($episodes, $types); + $episode = self::checkTypes($episode, $types); - $this->episodes = $episodes; + $this->episode = $episode; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNumberOfEpisodes() + public function getDirectors() { - return $this->numberOfEpisodes; + return $this->directors; } /** - * @param int|null $numberOfEpisodes + * @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 setNumberOfEpisodes($numberOfEpisodes) + public function setDirectors($directors) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); + $directors = self::checkTypes($directors, $types); - $this->numberOfEpisodes = $numberOfEpisodes; + $this->directors = $directors; } /** @@ -348,6 +349,31 @@ public function setSeasons($seasons) $this->seasons = $seasons; } + /** + * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + */ + public function getSeason() + { + return $this->season; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setSeason($season) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + ]; + + $season = self::checkTypes($season, $types); + + $this->season = $season; + } + /** * @return \OpenActive\Models\SchemaOrg\Organization|string */ @@ -376,51 +402,51 @@ 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; } /** * @return int|null */ - public function getNumberOfSeasons() + public function getNumberOfEpisodes() { - return $this->numberOfSeasons; + return $this->numberOfEpisodes; } /** - * @param int|null $numberOfSeasons + * @param int|null $numberOfEpisodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfSeasons($numberOfSeasons) + public function setNumberOfEpisodes($numberOfEpisodes) { $types = [ "int", "null", ]; - $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); + $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); - $this->numberOfSeasons = $numberOfSeasons; + $this->numberOfEpisodes = $numberOfEpisodes; } /** @@ -452,51 +478,26 @@ public function setMusicBy($musicBy) /** * @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); - - $this->episode = $episode; - } - - /** - * @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); + $episodes = self::checkTypes($episodes, $types); - $this->directors = $directors; + $this->episodes = $episodes; } } diff --git a/src/Models/SchemaOrg/Rating.php b/src/Models/SchemaOrg/Rating.php index 1e7d5d9d..c3c482a7 100644 --- a/src/Models/SchemaOrg/Rating.php +++ b/src/Models/SchemaOrg/Rating.php @@ -17,32 +17,32 @@ public static function getType() public static function fieldList() { $fields = [ + "ratingExplanation" => "ratingExplanation", + "bestRating" => "bestRating", + "author" => "author", "reviewAspect" => "reviewAspect", "worstRating" => "worstRating", - "author" => "author", - "bestRating" => "bestRating", "ratingValue" => "ratingValue", - "ratingExplanation" => "ratingExplanation", ]; return array_merge(parent::fieldList(), $fields); } /** - * This Review or Rating is relevant to this part or facet of the itemReviewed. + * A short explanation (e.g. one to two sentences) providing background context and other information that led to the conclusion expressed in the rating. This is particularly applicable to ratings associated with "fact check" markup using [[ClaimReview]]. * * * @var string */ - protected $reviewAspect; + protected $ratingExplanation; /** - * The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed. + * The highest value allowed in this rating system. * * * @var string|Number|null */ - protected $worstRating; + protected $bestRating; /** * 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. @@ -53,67 +53,67 @@ public static function fieldList() { protected $author; /** - * The highest value allowed in this rating system. If bestRating is omitted, 5 is assumed. + * This Review or Rating is relevant to this part or facet of the itemReviewed. * * - * @var string|Number|null + * @var string */ - protected $bestRating; + protected $reviewAspect; /** - * The rating for the content.\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 value allowed in this rating system. * * * @var string|Number|null */ - protected $ratingValue; + protected $worstRating; /** - * A short explanation (e.g. one to two sentences) providing background context and other information that led to the conclusion expressed in the rating. This is particularly applicable to ratings associated with "fact check" markup using [[ClaimReview]]. + * The rating for the content.\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 + * @var string|Number|null */ - protected $ratingExplanation; + protected $ratingValue; /** * @return string */ - public function getReviewAspect() + public function getRatingExplanation() { - return $this->reviewAspect; + return $this->ratingExplanation; } /** - * @param string $reviewAspect + * @param string $ratingExplanation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewAspect($reviewAspect) + public function setRatingExplanation($ratingExplanation) { $types = [ "string", ]; - $reviewAspect = self::checkTypes($reviewAspect, $types); + $ratingExplanation = self::checkTypes($ratingExplanation, $types); - $this->reviewAspect = $reviewAspect; + $this->ratingExplanation = $ratingExplanation; } /** * @return string|Number|null */ - public function getWorstRating() + public function getBestRating() { - return $this->worstRating; + return $this->bestRating; } /** - * @param string|Number|null $worstRating + * @param string|Number|null $bestRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorstRating($worstRating) + public function setBestRating($bestRating) { $types = [ "string", @@ -121,9 +121,9 @@ public function setWorstRating($worstRating) "null", ]; - $worstRating = self::checkTypes($worstRating, $types); + $bestRating = self::checkTypes($bestRating, $types); - $this->worstRating = $worstRating; + $this->bestRating = $bestRating; } /** @@ -153,45 +153,43 @@ public function setAuthor($author) } /** - * @return string|Number|null + * @return string */ - public function getBestRating() + public function getReviewAspect() { - return $this->bestRating; + return $this->reviewAspect; } /** - * @param string|Number|null $bestRating + * @param string $reviewAspect * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBestRating($bestRating) + public function setReviewAspect($reviewAspect) { $types = [ "string", - "Number", - "null", ]; - $bestRating = self::checkTypes($bestRating, $types); + $reviewAspect = self::checkTypes($reviewAspect, $types); - $this->bestRating = $bestRating; + $this->reviewAspect = $reviewAspect; } /** * @return string|Number|null */ - public function getRatingValue() + public function getWorstRating() { - return $this->ratingValue; + return $this->worstRating; } /** - * @param string|Number|null $ratingValue + * @param string|Number|null $worstRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRatingValue($ratingValue) + public function setWorstRating($worstRating) { $types = [ "string", @@ -199,33 +197,35 @@ public function setRatingValue($ratingValue) "null", ]; - $ratingValue = self::checkTypes($ratingValue, $types); + $worstRating = self::checkTypes($worstRating, $types); - $this->ratingValue = $ratingValue; + $this->worstRating = $worstRating; } /** - * @return string + * @return string|Number|null */ - public function getRatingExplanation() + public function getRatingValue() { - return $this->ratingExplanation; + return $this->ratingValue; } /** - * @param string $ratingExplanation + * @param string|Number|null $ratingValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRatingExplanation($ratingExplanation) + public function setRatingValue($ratingValue) { $types = [ "string", + "Number", + "null", ]; - $ratingExplanation = self::checkTypes($ratingExplanation, $types); + $ratingValue = self::checkTypes($ratingValue, $types); - $this->ratingExplanation = $ratingExplanation; + $this->ratingValue = $ratingValue; } } diff --git a/src/Models/SchemaOrg/RealEstateListing.php b/src/Models/SchemaOrg/RealEstateListing.php index a6c8c690..1b3d619f 100644 --- a/src/Models/SchemaOrg/RealEstateListing.php +++ b/src/Models/SchemaOrg/RealEstateListing.php @@ -17,80 +17,80 @@ public static function getType() public static function fieldList() { $fields = [ - "leaseLength" => "leaseLength", "datePosted" => "datePosted", + "leaseLength" => "leaseLength", ]; return array_merge(parent::fieldList(), $fields); } /** - * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. + * Publication date of an online listing. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @var Date|DateTime|null */ - protected $leaseLength; + protected $datePosted; /** - * Publication date of an online listing. + * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null */ - protected $datePosted; + protected $leaseLength; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @return Date|DateTime|null */ - public function getLeaseLength() + public function getDatePosted() { - return $this->leaseLength; + return $this->datePosted; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength + * @param Date|DateTime|null $datePosted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLeaseLength($leaseLength) + public function setDatePosted($datePosted) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "DateInterval", - "string", + "Date", + "DateTime", "null", ]; - $leaseLength = self::checkTypes($leaseLength, $types); + $datePosted = self::checkTypes($datePosted, $types); - $this->leaseLength = $leaseLength; + $this->datePosted = $datePosted; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null */ - public function getDatePosted() + public function getLeaseLength() { - return $this->datePosted; + return $this->leaseLength; } /** - * @param Date|DateTime|null $datePosted + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePosted($datePosted) + public function setLeaseLength($leaseLength) { $types = [ - "Date", - "DateTime", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "DateInterval", + "string", "null", ]; - $datePosted = self::checkTypes($datePosted, $types); + $leaseLength = self::checkTypes($leaseLength, $types); - $this->datePosted = $datePosted; + $this->leaseLength = $leaseLength; } } diff --git a/src/Models/SchemaOrg/ReceiveAction.php b/src/Models/SchemaOrg/ReceiveAction.php index 19fe5426..13049783 100644 --- a/src/Models/SchemaOrg/ReceiveAction.php +++ b/src/Models/SchemaOrg/ReceiveAction.php @@ -17,79 +17,79 @@ public static function getType() public static function fieldList() { $fields = [ - "sender" => "sender", "deliveryMethod" => "deliveryMethod", + "sender" => "sender", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of participant. The participant who is at the sending end of the action. + * A sub property of instrument. The method of delivery. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $sender; + protected $deliveryMethod; /** - * A sub property of instrument. The method of delivery. + * A sub property of participant. The participant who is at the sending end of the action. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string */ - protected $deliveryMethod; + protected $sender; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getSender() + public function getDeliveryMethod() { - return $this->sender; + return $this->deliveryMethod; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $sender + * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $deliveryMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSender($sender) + public function setDeliveryMethod($deliveryMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\Organization", - "string", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", ]; - $sender = self::checkTypes($sender, $types); + $deliveryMethod = self::checkTypes($deliveryMethod, $types); - $this->sender = $sender; + $this->deliveryMethod = $deliveryMethod; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Person|string */ - public function getDeliveryMethod() + public function getSender() { - return $this->deliveryMethod; + return $this->sender; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $deliveryMethod + * @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 setDeliveryMethod($deliveryMethod) + public function setSender($sender) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $deliveryMethod = self::checkTypes($deliveryMethod, $types); + $sender = self::checkTypes($sender, $types); - $this->deliveryMethod = $deliveryMethod; + $this->sender = $sender; } } diff --git a/src/Models/SchemaOrg/Recipe.php b/src/Models/SchemaOrg/Recipe.php index 76ba6019..2c4981a6 100644 --- a/src/Models/SchemaOrg/Recipe.php +++ b/src/Models/SchemaOrg/Recipe.php @@ -17,44 +17,36 @@ public static function getType() public static function fieldList() { $fields = [ - "recipeInstructions" => "recipeInstructions", - "ingredients" => "ingredients", - "recipeCuisine" => "recipeCuisine", - "suitableForDiet" => "suitableForDiet", - "nutrition" => "nutrition", "cookingMethod" => "cookingMethod", - "recipeIngredient" => "recipeIngredient", - "recipeYield" => "recipeYield", "cookTime" => "cookTime", + "suitableForDiet" => "suitableForDiet", + "recipeYield" => "recipeYield", + "ingredients" => "ingredients", + "recipeInstructions" => "recipeInstructions", + "nutrition" => "nutrition", "recipeCategory" => "recipeCategory", + "recipeIngredient" => "recipeIngredient", + "recipeCuisine" => "recipeCuisine", ]; return array_merge(parent::fieldList(), $fields); } /** - * A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items. - * - * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList - */ - protected $recipeInstructions; - - /** - * A single ingredient used in the recipe, e.g. sugar, flour or garlic. + * The method of cooking, such as Frying, Steaming, ... * * * @var string */ - protected $ingredients; + protected $cookingMethod; /** - * The cuisine of the recipe (for example, French or Ethiopian). + * The time it takes to actually cook the dish, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var string + * @var DateInterval|string|null */ - protected $recipeCuisine; + protected $cookTime; /** * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc. @@ -65,298 +57,306 @@ public static function fieldList() { protected $suitableForDiet; /** - * Nutrition information about the recipe or menu item. + * The quantity produced by the recipe (for example, number of people served, number of servings, etc). * * - * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $nutrition; + protected $recipeYield; /** - * The method of cooking, such as Frying, Steaming, ... + * A single ingredient used in the recipe, e.g. sugar, flour or garlic. * * * @var string */ - protected $cookingMethod; + protected $ingredients; /** - * A single ingredient used in the recipe, e.g. sugar, flour or garlic. + * A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\ItemList */ - protected $recipeIngredient; + protected $recipeInstructions; /** - * The quantity produced by the recipe (for example, number of people served, number of servings, etc). + * Nutrition information about the recipe or menu item. * * - * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string */ - protected $recipeYield; + protected $nutrition; /** - * The time it takes to actually cook the dish, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). + * The category of the recipe—for example, appetizer, entree, etc. * * - * @var DateInterval|string|null + * @var string */ - protected $cookTime; + protected $recipeCategory; /** - * The category of the recipe—for example, appetizer, entree, etc. + * A single ingredient used in the recipe, e.g. sugar, flour or garlic. * * * @var string */ - protected $recipeCategory; + protected $recipeIngredient; /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList + * The cuisine of the recipe (for example, French or Ethiopian). + * + * + * @var string */ - public function getRecipeInstructions() + protected $recipeCuisine; + + /** + * @return string + */ + public function getCookingMethod() { - return $this->recipeInstructions; + return $this->cookingMethod; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList $recipeInstructions + * @param string $cookingMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeInstructions($recipeInstructions) + public function setCookingMethod($cookingMethod) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", - "\OpenActive\Models\SchemaOrg\ItemList", ]; - $recipeInstructions = self::checkTypes($recipeInstructions, $types); + $cookingMethod = self::checkTypes($cookingMethod, $types); - $this->recipeInstructions = $recipeInstructions; + $this->cookingMethod = $cookingMethod; } /** - * @return string + * @return DateInterval|string|null */ - public function getIngredients() + public function getCookTime() { - return $this->ingredients; + return $this->cookTime; } /** - * @param string $ingredients + * @param DateInterval|string|null $cookTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIngredients($ingredients) + public function setCookTime($cookTime) { $types = [ + "DateInterval", "string", + "null", ]; - $ingredients = self::checkTypes($ingredients, $types); + $cookTime = self::checkTypes($cookTime, $types); - $this->ingredients = $ingredients; + $this->cookTime = $cookTime; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null */ - public function getRecipeCuisine() + public function getSuitableForDiet() { - return $this->recipeCuisine; + return $this->suitableForDiet; } /** - * @param string $recipeCuisine + * @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 setRecipeCuisine($recipeCuisine) + public function setSuitableForDiet($suitableForDiet) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\RestrictedDiet", + "null", ]; - $recipeCuisine = self::checkTypes($recipeCuisine, $types); + $suitableForDiet = self::checkTypes($suitableForDiet, $types); - $this->recipeCuisine = $recipeCuisine; + $this->suitableForDiet = $suitableForDiet; } /** - * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSuitableForDiet() + public function getRecipeYield() { - return $this->suitableForDiet; + return $this->recipeYield; } /** - * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $recipeYield * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuitableForDiet($suitableForDiet) + public function setRecipeYield($recipeYield) { $types = [ - "\OpenActive\Enums\SchemaOrg\RestrictedDiet", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $suitableForDiet = self::checkTypes($suitableForDiet, $types); + $recipeYield = self::checkTypes($recipeYield, $types); - $this->suitableForDiet = $suitableForDiet; + $this->recipeYield = $recipeYield; } /** - * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string + * @return string */ - public function getNutrition() + public function getIngredients() { - return $this->nutrition; + return $this->ingredients; } /** - * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition + * @param string $ingredients * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNutrition($nutrition) + public function setIngredients($ingredients) { $types = [ - "\OpenActive\Models\SchemaOrg\NutritionInformation", "string", ]; - $nutrition = self::checkTypes($nutrition, $types); + $ingredients = self::checkTypes($ingredients, $types); - $this->nutrition = $nutrition; + $this->ingredients = $ingredients; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\ItemList */ - public function getCookingMethod() + public function getRecipeInstructions() { - return $this->cookingMethod; + return $this->recipeInstructions; } /** - * @param string $cookingMethod + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\ItemList $recipeInstructions * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCookingMethod($cookingMethod) + public function setRecipeInstructions($recipeInstructions) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", + "\OpenActive\Models\SchemaOrg\ItemList", ]; - $cookingMethod = self::checkTypes($cookingMethod, $types); + $recipeInstructions = self::checkTypes($recipeInstructions, $types); - $this->cookingMethod = $cookingMethod; + $this->recipeInstructions = $recipeInstructions; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string */ - public function getRecipeIngredient() + public function getNutrition() { - return $this->recipeIngredient; + return $this->nutrition; } /** - * @param string $recipeIngredient + * @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 setRecipeIngredient($recipeIngredient) + public function setNutrition($nutrition) { $types = [ + "\OpenActive\Models\SchemaOrg\NutritionInformation", "string", ]; - $recipeIngredient = self::checkTypes($recipeIngredient, $types); + $nutrition = self::checkTypes($nutrition, $types); - $this->recipeIngredient = $recipeIngredient; + $this->nutrition = $nutrition; } /** - * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @return string */ - public function getRecipeYield() + public function getRecipeCategory() { - return $this->recipeYield; + return $this->recipeCategory; } /** - * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $recipeYield + * @param string $recipeCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeYield($recipeYield) + public function setRecipeCategory($recipeCategory) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $recipeYield = self::checkTypes($recipeYield, $types); + $recipeCategory = self::checkTypes($recipeCategory, $types); - $this->recipeYield = $recipeYield; + $this->recipeCategory = $recipeCategory; } /** - * @return DateInterval|string|null + * @return string */ - public function getCookTime() + public function getRecipeIngredient() { - return $this->cookTime; + return $this->recipeIngredient; } /** - * @param DateInterval|string|null $cookTime + * @param string $recipeIngredient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCookTime($cookTime) + public function setRecipeIngredient($recipeIngredient) { $types = [ - "DateInterval", "string", - "null", ]; - $cookTime = self::checkTypes($cookTime, $types); + $recipeIngredient = self::checkTypes($recipeIngredient, $types); - $this->cookTime = $cookTime; + $this->recipeIngredient = $recipeIngredient; } /** * @return string */ - public function getRecipeCategory() + public function getRecipeCuisine() { - return $this->recipeCategory; + return $this->recipeCuisine; } /** - * @param string $recipeCategory + * @param string $recipeCuisine * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeCategory($recipeCategory) + public function setRecipeCuisine($recipeCuisine) { $types = [ "string", ]; - $recipeCategory = self::checkTypes($recipeCategory, $types); + $recipeCuisine = self::checkTypes($recipeCuisine, $types); - $this->recipeCategory = $recipeCategory; + $this->recipeCuisine = $recipeCuisine; } } diff --git a/src/Models/SchemaOrg/Recommendation.php b/src/Models/SchemaOrg/Recommendation.php index 561842f6..7dccb2a3 100644 --- a/src/Models/SchemaOrg/Recommendation.php +++ b/src/Models/SchemaOrg/Recommendation.php @@ -27,12 +27,12 @@ public static function fieldList() { * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null */ protected $category; /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null */ public function getCategory() { @@ -40,17 +40,17 @@ public function getCategory() } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @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 setCategory($category) { $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", "\OpenActive\Models\SchemaOrg\CategoryCode", + "string", "null", ]; diff --git a/src/Models/SchemaOrg/RentAction.php b/src/Models/SchemaOrg/RentAction.php index e4936bdd..808deb82 100644 --- a/src/Models/SchemaOrg/RentAction.php +++ b/src/Models/SchemaOrg/RentAction.php @@ -17,78 +17,78 @@ public static function getType() public static function fieldList() { $fields = [ - "landlord" => "landlord", "realEstateAgent" => "realEstateAgent", + "landlord" => "landlord", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of participant. The owner of the real estate property. + * A sub property of participant. The real estate agent involved in the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\RealEstateAgent|string */ - protected $landlord; + protected $realEstateAgent; /** - * A sub property of participant. The real estate agent involved in the action. + * A sub property of participant. The owner of the real estate property. * * - * @var \OpenActive\Models\SchemaOrg\RealEstateAgent|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $realEstateAgent; + protected $landlord; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\RealEstateAgent|string */ - public function getLandlord() + public function getRealEstateAgent() { - return $this->landlord; + return $this->realEstateAgent; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $landlord + * @param \OpenActive\Models\SchemaOrg\RealEstateAgent|string $realEstateAgent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLandlord($landlord) + public function setRealEstateAgent($realEstateAgent) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\RealEstateAgent", "string", ]; - $landlord = self::checkTypes($landlord, $types); + $realEstateAgent = self::checkTypes($realEstateAgent, $types); - $this->landlord = $landlord; + $this->realEstateAgent = $realEstateAgent; } /** - * @return \OpenActive\Models\SchemaOrg\RealEstateAgent|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getRealEstateAgent() + public function getLandlord() { - return $this->realEstateAgent; + return $this->landlord; } /** - * @param \OpenActive\Models\SchemaOrg\RealEstateAgent|string $realEstateAgent + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $landlord * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRealEstateAgent($realEstateAgent) + public function setLandlord($landlord) { $types = [ - "\OpenActive\Models\SchemaOrg\RealEstateAgent", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $realEstateAgent = self::checkTypes($realEstateAgent, $types); + $landlord = self::checkTypes($landlord, $types); - $this->realEstateAgent = $realEstateAgent; + $this->landlord = $landlord; } } diff --git a/src/Models/SchemaOrg/RentalCarReservation.php b/src/Models/SchemaOrg/RentalCarReservation.php index 0b0ae3fe..488af4f1 100644 --- a/src/Models/SchemaOrg/RentalCarReservation.php +++ b/src/Models/SchemaOrg/RentalCarReservation.php @@ -17,22 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "dropoffLocation" => "dropoffLocation", - "dropoffTime" => "dropoffTime", "pickupTime" => "pickupTime", + "dropoffTime" => "dropoffTime", "pickupLocation" => "pickupLocation", + "dropoffLocation" => "dropoffLocation", ]; return array_merge(parent::fieldList(), $fields); } /** - * Where a rental car can be dropped off. + * When a taxi will pick up a passenger or a rental car can be picked up. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var DateTime|null */ - protected $dropoffLocation; + protected $pickupTime; /** * When a rental car can be dropped off. @@ -43,44 +43,44 @@ public static function fieldList() { protected $dropoffTime; /** - * When a taxi will pickup a passenger or a rental car can be picked up. + * Where a taxi will pick up a passenger or a rental car can be picked up. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $pickupTime; + protected $pickupLocation; /** - * Where a taxi will pick up a passenger or a rental car can be picked up. + * Where a rental car can be dropped off. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $pickupLocation; + protected $dropoffLocation; /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return DateTime|null */ - public function getDropoffLocation() + public function getPickupTime() { - return $this->dropoffLocation; + return $this->pickupTime; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $dropoffLocation + * @param DateTime|null $pickupTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDropoffLocation($dropoffLocation) + public function setPickupTime($pickupTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", + "DateTime", + "null", ]; - $dropoffLocation = self::checkTypes($dropoffLocation, $types); + $pickupTime = self::checkTypes($pickupTime, $types); - $this->dropoffLocation = $dropoffLocation; + $this->pickupTime = $pickupTime; } /** @@ -109,53 +109,53 @@ public function setDropoffTime($dropoffTime) } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getPickupTime() + public function getPickupLocation() { - return $this->pickupTime; + return $this->pickupLocation; } /** - * @param DateTime|null $pickupTime + * @param \OpenActive\Models\SchemaOrg\Place|string $pickupLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPickupTime($pickupTime) + public function setPickupLocation($pickupLocation) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $pickupTime = self::checkTypes($pickupTime, $types); + $pickupLocation = self::checkTypes($pickupLocation, $types); - $this->pickupTime = $pickupTime; + $this->pickupLocation = $pickupLocation; } /** * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getPickupLocation() + public function getDropoffLocation() { - return $this->pickupLocation; + return $this->dropoffLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $pickupLocation + * @param \OpenActive\Models\SchemaOrg\Place|string $dropoffLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPickupLocation($pickupLocation) + public function setDropoffLocation($dropoffLocation) { $types = [ "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $pickupLocation = self::checkTypes($pickupLocation, $types); + $dropoffLocation = self::checkTypes($dropoffLocation, $types); - $this->pickupLocation = $pickupLocation; + $this->dropoffLocation = $dropoffLocation; } } diff --git a/src/Models/SchemaOrg/RepaymentSpecification.php b/src/Models/SchemaOrg/RepaymentSpecification.php index bdca1b02..c840465c 100644 --- a/src/Models/SchemaOrg/RepaymentSpecification.php +++ b/src/Models/SchemaOrg/RepaymentSpecification.php @@ -17,24 +17,16 @@ public static function getType() public static function fieldList() { $fields = [ - "numberOfLoanPayments" => "numberOfLoanPayments", "earlyPrepaymentPenalty" => "earlyPrepaymentPenalty", "loanPaymentAmount" => "loanPaymentAmount", "loanPaymentFrequency" => "loanPaymentFrequency", "downPayment" => "downPayment", + "numberOfLoanPayments" => "numberOfLoanPayments", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The number of payments contractually required at origination to repay the loan. For monthly paying loans this is the number of months from the contractual first payment date to the maturity date. - * - * - * @var Number|null - */ - protected $numberOfLoanPayments; - /** * The amount to be paid as a penalty in the event of early payment of the loan. * @@ -63,34 +55,17 @@ public static function fieldList() { * a type of payment made in cash during the onset of the purchase of an expensive good/service. The payment typically represents only a percentage of the full purchase price. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ protected $downPayment; /** - * @return Number|null - */ - public function getNumberOfLoanPayments() - { - return $this->numberOfLoanPayments; - } - - /** - * @param Number|null $numberOfLoanPayments - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The number of payments contractually required at origination to repay the loan. For monthly paying loans this is the number of months from the contractual first payment date to the maturity date. + * + * + * @var Number|null */ - public function setNumberOfLoanPayments($numberOfLoanPayments) - { - $types = [ - "Number", - "null", - ]; - - $numberOfLoanPayments = self::checkTypes($numberOfLoanPayments, $types); - - $this->numberOfLoanPayments = $numberOfLoanPayments; - } + protected $numberOfLoanPayments; /** * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string @@ -168,7 +143,7 @@ public function setLoanPaymentFrequency($loanPaymentFrequency) } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ public function getDownPayment() { @@ -176,16 +151,16 @@ public function getDownPayment() } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $downPayment + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $downPayment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setDownPayment($downPayment) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "Number", "null", ]; @@ -194,4 +169,29 @@ public function setDownPayment($downPayment) $this->downPayment = $downPayment; } + /** + * @return Number|null + */ + public function getNumberOfLoanPayments() + { + return $this->numberOfLoanPayments; + } + + /** + * @param Number|null $numberOfLoanPayments + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setNumberOfLoanPayments($numberOfLoanPayments) + { + $types = [ + "Number", + "null", + ]; + + $numberOfLoanPayments = self::checkTypes($numberOfLoanPayments, $types); + + $this->numberOfLoanPayments = $numberOfLoanPayments; + } + } diff --git a/src/Models/SchemaOrg/ReplaceAction.php b/src/Models/SchemaOrg/ReplaceAction.php index e4cbd8a2..dc19979b 100644 --- a/src/Models/SchemaOrg/ReplaceAction.php +++ b/src/Models/SchemaOrg/ReplaceAction.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "replacee" => "replacee", "replacer" => "replacer", + "replacee" => "replacee", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of object. The object that is being replaced. + * A sub property of object. The object that replaces. * * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $replacee; + protected $replacer; /** - * A sub property of object. The object that replaces. + * A sub property of object. The object that is being replaced. * * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $replacer; + protected $replacee; /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getReplacee() + public function getReplacer() { - return $this->replacee; + return $this->replacer; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $replacee + * @param \OpenActive\Models\SchemaOrg\Thing|string $replacer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReplacee($replacee) + public function setReplacer($replacer) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $replacee = self::checkTypes($replacee, $types); + $replacer = self::checkTypes($replacer, $types); - $this->replacee = $replacee; + $this->replacer = $replacer; } /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getReplacer() + public function getReplacee() { - return $this->replacer; + return $this->replacee; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $replacer + * @param \OpenActive\Models\SchemaOrg\Thing|string $replacee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReplacer($replacer) + public function setReplacee($replacee) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $replacer = self::checkTypes($replacer, $types); + $replacee = self::checkTypes($replacee, $types); - $this->replacer = $replacer; + $this->replacee = $replacee; } } diff --git a/src/Models/SchemaOrg/Reservation.php b/src/Models/SchemaOrg/Reservation.php index aa63acae..58728145 100644 --- a/src/Models/SchemaOrg/Reservation.php +++ b/src/Models/SchemaOrg/Reservation.php @@ -17,103 +17,103 @@ public static function getType() public static function fieldList() { $fields = [ - "modifiedTime" => "modifiedTime", - "totalPrice" => "totalPrice", - "reservedTicket" => "reservedTicket", - "reservationStatus" => "reservationStatus", - "provider" => "provider", - "broker" => "broker", "bookingTime" => "bookingTime", + "underName" => "underName", + "broker" => "broker", + "reservedTicket" => "reservedTicket", "programMembershipUsed" => "programMembershipUsed", - "bookingAgent" => "bookingAgent", + "modifiedTime" => "modifiedTime", + "reservationFor" => "reservationFor", "priceCurrency" => "priceCurrency", + "provider" => "provider", + "totalPrice" => "totalPrice", "reservationId" => "reservationId", - "underName" => "underName", - "reservationFor" => "reservationFor", + "reservationStatus" => "reservationStatus", + "bookingAgent" => "bookingAgent", ]; return array_merge(parent::fieldList(), $fields); } /** - * The date and time the reservation was modified. + * The date and time the reservation was booked. * * * @var DateTime|null */ - protected $modifiedTime; + protected $bookingTime; /** - * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\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 person or organization the reservation or ticket is for. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $totalPrice; + protected $underName; /** - * A ticket associated with the reservation. + * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. * * - * @var \OpenActive\Models\SchemaOrg\Ticket|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $reservedTicket; + protected $broker; /** - * The current status of the reservation. + * A ticket associated with the reservation. * * - * @var \OpenActive\Models\SchemaOrg\ReservationStatusType|string + * @var \OpenActive\Models\SchemaOrg\Ticket|string */ - protected $reservationStatus; + protected $reservedTicket; /** - * 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. + * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\ProgramMembership|string */ - protected $provider; + protected $programMembershipUsed; /** - * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. + * The date and time the reservation was modified. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var DateTime|null */ - protected $broker; + protected $modifiedTime; /** - * The date and time the reservation was booked. + * The thing -- flight, event, restaurant, etc. being reserved. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $bookingTime; + protected $reservationFor; /** - * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation. + * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * - * @var \OpenActive\Models\SchemaOrg\ProgramMembership|string + * @var string */ - protected $programMembershipUsed; + protected $priceCurrency; /** - * 'bookingAgent' is an out-dated term indicating a 'broker' that serves as a booking agent. + * 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 $bookingAgent; + protected $provider; /** - * 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 Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\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 + * @var string|\OpenActive\Models\SchemaOrg\PriceSpecification|Number|null */ - protected $priceCurrency; + protected $totalPrice; /** * A unique identifier for the reservation. @@ -124,239 +124,236 @@ public static function fieldList() { protected $reservationId; /** - * The person or organization the reservation or ticket is for. + * The current status of the reservation. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\ReservationStatusType|string */ - protected $underName; + protected $reservationStatus; /** - * The thing -- flight, event, restaurant,etc. being reserved. + * 'bookingAgent' is an out-dated term indicating a 'broker' that serves as a booking agent. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $reservationFor; + protected $bookingAgent; /** * @return DateTime|null */ - public function getModifiedTime() + public function getBookingTime() { - return $this->modifiedTime; + return $this->bookingTime; } /** - * @param DateTime|null $modifiedTime + * @param DateTime|null $bookingTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setModifiedTime($modifiedTime) + public function setBookingTime($bookingTime) { $types = [ "DateTime", "null", ]; - $modifiedTime = self::checkTypes($modifiedTime, $types); + $bookingTime = self::checkTypes($bookingTime, $types); - $this->modifiedTime = $modifiedTime; + $this->bookingTime = $bookingTime; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getTotalPrice() + public function getUnderName() { - return $this->totalPrice; + return $this->underName; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $underName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalPrice($totalPrice) + public function setUnderName($underName) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "Number", - "null", ]; - $totalPrice = self::checkTypes($totalPrice, $types); + $underName = self::checkTypes($underName, $types); - $this->totalPrice = $totalPrice; + $this->underName = $underName; } /** - * @return \OpenActive\Models\SchemaOrg\Ticket|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getReservedTicket() + public function getBroker() { - return $this->reservedTicket; + return $this->broker; } /** - * @param \OpenActive\Models\SchemaOrg\Ticket|string $reservedTicket + * @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 setReservedTicket($reservedTicket) + public function setBroker($broker) { $types = [ - "\OpenActive\Models\SchemaOrg\Ticket", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $reservedTicket = self::checkTypes($reservedTicket, $types); + $broker = self::checkTypes($broker, $types); - $this->reservedTicket = $reservedTicket; + $this->broker = $broker; } /** - * @return \OpenActive\Models\SchemaOrg\ReservationStatusType|string + * @return \OpenActive\Models\SchemaOrg\Ticket|string */ - public function getReservationStatus() + public function getReservedTicket() { - return $this->reservationStatus; + return $this->reservedTicket; } /** - * @param \OpenActive\Models\SchemaOrg\ReservationStatusType|string $reservationStatus + * @param \OpenActive\Models\SchemaOrg\Ticket|string $reservedTicket * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReservationStatus($reservationStatus) + public function setReservedTicket($reservedTicket) { $types = [ - "\OpenActive\Models\SchemaOrg\ReservationStatusType", + "\OpenActive\Models\SchemaOrg\Ticket", "string", ]; - $reservationStatus = self::checkTypes($reservationStatus, $types); + $reservedTicket = self::checkTypes($reservedTicket, $types); - $this->reservationStatus = $reservationStatus; + $this->reservedTicket = $reservedTicket; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\ProgramMembership|string */ - public function getProvider() + public function getProgramMembershipUsed() { - return $this->provider; + return $this->programMembershipUsed; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param \OpenActive\Models\SchemaOrg\ProgramMembership|string $programMembershipUsed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setProgramMembershipUsed($programMembershipUsed) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\ProgramMembership", "string", ]; - $provider = self::checkTypes($provider, $types); + $programMembershipUsed = self::checkTypes($programMembershipUsed, $types); - $this->provider = $provider; + $this->programMembershipUsed = $programMembershipUsed; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return DateTime|null */ - public function getBroker() + public function getModifiedTime() { - return $this->broker; + return $this->modifiedTime; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker + * @param DateTime|null $modifiedTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroker($broker) + public function setModifiedTime($modifiedTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", - "string", + "DateTime", + "null", ]; - $broker = self::checkTypes($broker, $types); + $modifiedTime = self::checkTypes($modifiedTime, $types); - $this->broker = $broker; + $this->modifiedTime = $modifiedTime; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getBookingTime() + public function getReservationFor() { - return $this->bookingTime; + return $this->reservationFor; } /** - * @param DateTime|null $bookingTime + * @param \OpenActive\Models\SchemaOrg\Thing|string $reservationFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBookingTime($bookingTime) + public function setReservationFor($reservationFor) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Thing", + "string", ]; - $bookingTime = self::checkTypes($bookingTime, $types); + $reservationFor = self::checkTypes($reservationFor, $types); - $this->bookingTime = $bookingTime; + $this->reservationFor = $reservationFor; } /** - * @return \OpenActive\Models\SchemaOrg\ProgramMembership|string + * @return string */ - public function getProgramMembershipUsed() + public function getPriceCurrency() { - return $this->programMembershipUsed; + return $this->priceCurrency; } /** - * @param \OpenActive\Models\SchemaOrg\ProgramMembership|string $programMembershipUsed + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgramMembershipUsed($programMembershipUsed) + public function setPriceCurrency($priceCurrency) { $types = [ - "\OpenActive\Models\SchemaOrg\ProgramMembership", "string", ]; - $programMembershipUsed = self::checkTypes($programMembershipUsed, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->programMembershipUsed = $programMembershipUsed; + $this->priceCurrency = $priceCurrency; } /** * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getBookingAgent() + public function getProvider() { - return $this->bookingAgent; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $bookingAgent + * @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 setBookingAgent($bookingAgent) + public function setProvider($provider) { $types = [ "\OpenActive\Models\SchemaOrg\Person", @@ -364,33 +361,36 @@ public function setBookingAgent($bookingAgent) "string", ]; - $bookingAgent = self::checkTypes($bookingAgent, $types); + $provider = self::checkTypes($provider, $types); - $this->bookingAgent = $bookingAgent; + $this->provider = $provider; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\PriceSpecification|Number|null */ - public function getPriceCurrency() + public function getTotalPrice() { - return $this->priceCurrency; + return $this->totalPrice; } /** - * @param string $priceCurrency + * @param string|\OpenActive\Models\SchemaOrg\PriceSpecification|Number|null $totalPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceCurrency($priceCurrency) + public function setTotalPrice($totalPrice) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "Number", + "null", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $totalPrice = self::checkTypes($totalPrice, $types); - $this->priceCurrency = $priceCurrency; + $this->totalPrice = $totalPrice; } /** @@ -418,54 +418,54 @@ public function setReservationId($reservationId) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\ReservationStatusType|string */ - public function getUnderName() + public function getReservationStatus() { - return $this->underName; + return $this->reservationStatus; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $underName + * @param \OpenActive\Models\SchemaOrg\ReservationStatusType|string $reservationStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnderName($underName) + public function setReservationStatus($reservationStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\ReservationStatusType", "string", ]; - $underName = self::checkTypes($underName, $types); + $reservationStatus = self::checkTypes($reservationStatus, $types); - $this->underName = $underName; + $this->reservationStatus = $reservationStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getReservationFor() + public function getBookingAgent() { - return $this->reservationFor; + return $this->bookingAgent; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $reservationFor + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $bookingAgent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReservationFor($reservationFor) + public function setBookingAgent($bookingAgent) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $reservationFor = self::checkTypes($reservationFor, $types); + $bookingAgent = self::checkTypes($bookingAgent, $types); - $this->reservationFor = $reservationFor; + $this->bookingAgent = $bookingAgent; } } diff --git a/src/Models/SchemaOrg/ReturnAction.php b/src/Models/SchemaOrg/ReturnAction.php index d6d476a0..93009621 100644 --- a/src/Models/SchemaOrg/ReturnAction.php +++ b/src/Models/SchemaOrg/ReturnAction.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/Review.php b/src/Models/SchemaOrg/Review.php index 07193ea8..77bd1463 100644 --- a/src/Models/SchemaOrg/Review.php +++ b/src/Models/SchemaOrg/Review.php @@ -17,317 +17,326 @@ public static function getType() public static function fieldList() { $fields = [ - "reviewRating" => "reviewRating", + "associatedReview" => "associatedReview", + "positiveNotes" => "positiveNotes", + "associatedClaimReview" => "associatedClaimReview", + "reviewBody" => "reviewBody", "itemReviewed" => "itemReviewed", - "negativeNotes" => "negativeNotes", "reviewAspect" => "reviewAspect", - "associatedClaimReview" => "associatedClaimReview", - "positiveNotes" => "positiveNotes", - "associatedReview" => "associatedReview", + "reviewRating" => "reviewRating", + "negativeNotes" => "negativeNotes", "associatedMediaReview" => "associatedMediaReview", - "reviewBody" => "reviewBody", ]; return array_merge(parent::fieldList(), $fields); } /** - * The rating given in this review. Note that reviews can themselves be rated. The ```reviewRating``` applies to rating given by the review. The [[aggregateRating]] property applies to the review itself, as a creative work. + * An associated [[Review]]. * * - * @var \OpenActive\Models\SchemaOrg\Rating|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $reviewRating; + protected $associatedReview; /** - * The item that is being reviewed/rated. + * Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews. + * + * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. + * + * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list). * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ListItem|string */ - protected $itemReviewed; + protected $positiveNotes; /** - * Indicates, in the context of a [[Review]] (e.g. framed as 'pro' vs 'con' considerations), negative considerations - either as unstructured text, or a list. + * An associated [[ClaimReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]]. * * - * @var \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $negativeNotes; + protected $associatedClaimReview; /** - * This Review or Rating is relevant to this part or facet of the itemReviewed. + * The actual body of the review. * * * @var string */ - protected $reviewAspect; + protected $reviewBody; /** - * An associated [[ClaimReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]]. + * The item that is being reviewed/rated. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $associatedClaimReview; + protected $itemReviewed; /** - * Indicates, in the context of a [[Review]] (e.g. framed as 'pro' vs 'con' considerations), positive considerations - either as unstructured text, or a list. + * This Review or Rating is relevant to this part or facet of the itemReviewed. * * - * @var \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList + * @var string */ - protected $positiveNotes; + protected $reviewAspect; /** - * An associated [[Review]]. + * The rating given in this review. Note that reviews can themselves be rated. The ```reviewRating``` applies to rating given by the review. The [[aggregateRating]] property applies to the review itself, as a creative work. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Rating|string */ - protected $associatedReview; + protected $reviewRating; /** - * An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]]. + * Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry + * + * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions + * tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]]. + * + * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list). * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string */ - protected $associatedMediaReview; + protected $negativeNotes; /** - * The actual body of the review. + * An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $reviewBody; + protected $associatedMediaReview; /** - * @return \OpenActive\Models\SchemaOrg\Rating|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getReviewRating() + public function getAssociatedReview() { - return $this->reviewRating; + return $this->associatedReview; } /** - * @param \OpenActive\Models\SchemaOrg\Rating|string $reviewRating + * @param \OpenActive\Models\SchemaOrg\Review|string $associatedReview * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewRating($reviewRating) + public function setAssociatedReview($associatedReview) { $types = [ - "\OpenActive\Models\SchemaOrg\Rating", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $reviewRating = self::checkTypes($reviewRating, $types); + $associatedReview = self::checkTypes($associatedReview, $types); - $this->reviewRating = $reviewRating; + $this->associatedReview = $associatedReview; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ListItem|string */ - public function getItemReviewed() + public function getPositiveNotes() { - return $this->itemReviewed; + return $this->positiveNotes; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ListItem|string $positiveNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemReviewed($itemReviewed) + public function setPositiveNotes($positiveNotes) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\WebContent", + "\OpenActive\Models\SchemaOrg\ListItem", "string", ]; - $itemReviewed = self::checkTypes($itemReviewed, $types); + $positiveNotes = self::checkTypes($positiveNotes, $types); - $this->itemReviewed = $itemReviewed; + $this->positiveNotes = $positiveNotes; } /** - * @return \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getNegativeNotes() + public function getAssociatedClaimReview() { - return $this->negativeNotes; + return $this->associatedClaimReview; } /** - * @param \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList $negativeNotes + * @param \OpenActive\Models\SchemaOrg\Review|string $associatedClaimReview * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNegativeNotes($negativeNotes) + public function setAssociatedClaimReview($associatedClaimReview) { $types = [ - "\OpenActive\Models\SchemaOrg\ListItem", + "\OpenActive\Models\SchemaOrg\Review", "string", - "\OpenActive\Models\SchemaOrg\WebContent", - "\OpenActive\Models\SchemaOrg\ItemList", ]; - $negativeNotes = self::checkTypes($negativeNotes, $types); + $associatedClaimReview = self::checkTypes($associatedClaimReview, $types); - $this->negativeNotes = $negativeNotes; + $this->associatedClaimReview = $associatedClaimReview; } /** * @return string */ - public function getReviewAspect() + public function getReviewBody() { - return $this->reviewAspect; + return $this->reviewBody; } /** - * @param string $reviewAspect + * @param string $reviewBody * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewAspect($reviewAspect) + public function setReviewBody($reviewBody) { $types = [ "string", ]; - $reviewAspect = self::checkTypes($reviewAspect, $types); + $reviewBody = self::checkTypes($reviewBody, $types); - $this->reviewAspect = $reviewAspect; + $this->reviewBody = $reviewBody; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getAssociatedClaimReview() + public function getItemReviewed() { - return $this->associatedClaimReview; + return $this->itemReviewed; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $associatedClaimReview + * @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 setAssociatedClaimReview($associatedClaimReview) + public function setItemReviewed($itemReviewed) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $associatedClaimReview = self::checkTypes($associatedClaimReview, $types); + $itemReviewed = self::checkTypes($itemReviewed, $types); - $this->associatedClaimReview = $associatedClaimReview; + $this->itemReviewed = $itemReviewed; } /** - * @return \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList + * @return string */ - public function getPositiveNotes() + public function getReviewAspect() { - return $this->positiveNotes; + return $this->reviewAspect; } /** - * @param \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList $positiveNotes + * @param string $reviewAspect * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPositiveNotes($positiveNotes) + public function setReviewAspect($reviewAspect) { $types = [ - "\OpenActive\Models\SchemaOrg\WebContent", "string", - "\OpenActive\Models\SchemaOrg\ListItem", - "\OpenActive\Models\SchemaOrg\ItemList", ]; - $positiveNotes = self::checkTypes($positiveNotes, $types); + $reviewAspect = self::checkTypes($reviewAspect, $types); - $this->positiveNotes = $positiveNotes; + $this->reviewAspect = $reviewAspect; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Rating|string */ - public function getAssociatedReview() + public function getReviewRating() { - return $this->associatedReview; + return $this->reviewRating; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $associatedReview + * @param \OpenActive\Models\SchemaOrg\Rating|string $reviewRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedReview($associatedReview) + public function setReviewRating($reviewRating) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Rating", "string", ]; - $associatedReview = self::checkTypes($associatedReview, $types); + $reviewRating = self::checkTypes($reviewRating, $types); - $this->associatedReview = $associatedReview; + $this->reviewRating = $reviewRating; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string */ - public function getAssociatedMediaReview() + public function getNegativeNotes() { - return $this->associatedMediaReview; + return $this->negativeNotes; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $associatedMediaReview + * @param \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string $negativeNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedMediaReview($associatedMediaReview) + public function setNegativeNotes($negativeNotes) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\WebContent", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\ListItem", "string", ]; - $associatedMediaReview = self::checkTypes($associatedMediaReview, $types); + $negativeNotes = self::checkTypes($negativeNotes, $types); - $this->associatedMediaReview = $associatedMediaReview; + $this->negativeNotes = $negativeNotes; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getReviewBody() + public function getAssociatedMediaReview() { - return $this->reviewBody; + return $this->associatedMediaReview; } /** - * @param string $reviewBody + * @param \OpenActive\Models\SchemaOrg\Review|string $associatedMediaReview * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewBody($reviewBody) + public function setAssociatedMediaReview($associatedMediaReview) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $reviewBody = self::checkTypes($reviewBody, $types); + $associatedMediaReview = self::checkTypes($associatedMediaReview, $types); - $this->reviewBody = $reviewBody; + $this->associatedMediaReview = $associatedMediaReview; } } diff --git a/src/Models/SchemaOrg/ReviewNewsArticle.php b/src/Models/SchemaOrg/ReviewNewsArticle.php index 5f009dbb..a6b4ed3b 100644 --- a/src/Models/SchemaOrg/ReviewNewsArticle.php +++ b/src/Models/SchemaOrg/ReviewNewsArticle.php @@ -5,7 +5,7 @@ /** * */ -class ReviewNewsArticle extends \OpenActive\Models\SchemaOrg\CriticReview +class ReviewNewsArticle extends \OpenActive\Models\SchemaOrg\NewsArticle { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/Role.php b/src/Models/SchemaOrg/Role.php index 2ac3c878..b8e5fca6 100644 --- a/src/Models/SchemaOrg/Role.php +++ b/src/Models/SchemaOrg/Role.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "namedPosition" => "namedPosition", + "roleName" => "roleName", "startDate" => "startDate", "endDate" => "endDate", - "roleName" => "roleName", ]; return array_merge(parent::fieldList(), $fields); @@ -35,28 +35,28 @@ public static function fieldList() { protected $namedPosition; /** - * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * A role played, performed or filled by a person or organization. For example, the team of creators for a comic book might fill the roles named 'inker', 'penciller', and 'letterer'; or an athlete in a SportsTeam might play in the position named 'Quarterback'. * * - * @var Date|DateTime|null + * @var string */ - protected $startDate; + protected $roleName; /** - * 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; /** - * A role played, performed or filled by a person or organization. For example, the team of creators for a comic book might fill the roles named 'inker', 'penciller', and 'letterer'; or an athlete in a SportsTeam might play in the position named 'Quarterback'. + * The end 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 $roleName; + protected $endDate; /** * @return string @@ -83,45 +83,43 @@ public function setNamedPosition($namedPosition) } /** - * @return Date|DateTime|null + * @return string */ - public function getStartDate() + public function getRoleName() { - return $this->startDate; + return $this->roleName; } /** - * @param Date|DateTime|null $startDate + * @param string $roleName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartDate($startDate) + public function setRoleName($roleName) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $startDate = self::checkTypes($startDate, $types); + $roleName = self::checkTypes($roleName, $types); - $this->startDate = $startDate; + $this->roleName = $roleName; } /** * @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", @@ -129,33 +127,35 @@ public function setEndDate($endDate) "null", ]; - $endDate = self::checkTypes($endDate, $types); + $startDate = self::checkTypes($startDate, $types); - $this->endDate = $endDate; + $this->startDate = $startDate; } /** - * @return string + * @return Date|DateTime|null */ - public function getRoleName() + public function getEndDate() { - return $this->roleName; + return $this->endDate; } /** - * @param string $roleName + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRoleName($roleName) + public function setEndDate($endDate) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $roleName = self::checkTypes($roleName, $types); + $endDate = self::checkTypes($endDate, $types); - $this->roleName = $roleName; + $this->endDate = $endDate; } } diff --git a/src/Models/SchemaOrg/RsvpAction.php b/src/Models/SchemaOrg/RsvpAction.php index e75f683d..c05e2440 100644 --- a/src/Models/SchemaOrg/RsvpAction.php +++ b/src/Models/SchemaOrg/RsvpAction.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "rsvpResponse" => "rsvpResponse", - "comment" => "comment", "additionalNumberOfGuests" => "additionalNumberOfGuests", + "comment" => "comment", + "rsvpResponse" => "rsvpResponse", ]; return array_merge(parent::fieldList(), $fields); } /** - * The response (yes, no, maybe) to the RSVP. + * If responding yes, the number of guests who will attend in addition to the invitee. * * - * @var \OpenActive\Enums\SchemaOrg\RsvpResponseType|null + * @var Number|null */ - protected $rsvpResponse; + protected $additionalNumberOfGuests; /** * Comments, typically from users. @@ -42,36 +42,36 @@ public static function fieldList() { protected $comment; /** - * If responding yes, the number of guests who will attend in addition to the invitee. + * The response (yes, no, maybe) to the RSVP. * * - * @var Number|null + * @var \OpenActive\Enums\SchemaOrg\RsvpResponseType|null */ - protected $additionalNumberOfGuests; + protected $rsvpResponse; /** - * @return \OpenActive\Enums\SchemaOrg\RsvpResponseType|null + * @return Number|null */ - public function getRsvpResponse() + public function getAdditionalNumberOfGuests() { - return $this->rsvpResponse; + return $this->additionalNumberOfGuests; } /** - * @param \OpenActive\Enums\SchemaOrg\RsvpResponseType|null $rsvpResponse + * @param Number|null $additionalNumberOfGuests * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRsvpResponse($rsvpResponse) + public function setAdditionalNumberOfGuests($additionalNumberOfGuests) { $types = [ - "\OpenActive\Enums\SchemaOrg\RsvpResponseType", + "Number", "null", ]; - $rsvpResponse = self::checkTypes($rsvpResponse, $types); + $additionalNumberOfGuests = self::checkTypes($additionalNumberOfGuests, $types); - $this->rsvpResponse = $rsvpResponse; + $this->additionalNumberOfGuests = $additionalNumberOfGuests; } /** @@ -100,28 +100,28 @@ public function setComment($comment) } /** - * @return Number|null + * @return \OpenActive\Enums\SchemaOrg\RsvpResponseType|null */ - public function getAdditionalNumberOfGuests() + public function getRsvpResponse() { - return $this->additionalNumberOfGuests; + return $this->rsvpResponse; } /** - * @param Number|null $additionalNumberOfGuests + * @param \OpenActive\Enums\SchemaOrg\RsvpResponseType|null $rsvpResponse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalNumberOfGuests($additionalNumberOfGuests) + public function setRsvpResponse($rsvpResponse) { $types = [ - "Number", + "\OpenActive\Enums\SchemaOrg\RsvpResponseType", "null", ]; - $additionalNumberOfGuests = self::checkTypes($additionalNumberOfGuests, $types); + $rsvpResponse = self::checkTypes($rsvpResponse, $types); - $this->additionalNumberOfGuests = $additionalNumberOfGuests; + $this->rsvpResponse = $rsvpResponse; } } diff --git a/src/Models/SchemaOrg/Schedule.php b/src/Models/SchemaOrg/Schedule.php index fbc813d2..b7f18d0e 100644 --- a/src/Models/SchemaOrg/Schedule.php +++ b/src/Models/SchemaOrg/Schedule.php @@ -17,462 +17,462 @@ public static function getType() public static function fieldList() { $fields = [ - "scheduleTimezone" => "scheduleTimezone", - "startDate" => "startDate", - "exceptDate" => "exceptDate", - "startTime" => "startTime", + "byDay" => "byDay", + "endTime" => "endTime", "repeatCount" => "repeatCount", - "endDate" => "endDate", - "repeatFrequency" => "repeatFrequency", - "duration" => "duration", + "byMonthWeek" => "byMonthWeek", + "startDate" => "startDate", "byMonthDay" => "byMonthDay", - "endTime" => "endTime", + "startTime" => "startTime", "byMonth" => "byMonth", - "byDay" => "byDay", - "byMonthWeek" => "byMonthWeek", + "duration" => "duration", + "repeatFrequency" => "repeatFrequency", + "scheduleTimezone" => "scheduleTimezone", + "endDate" => "endDate", + "exceptDate" => "exceptDate", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates the timezone for which the time(s) indicated in the [[Schedule]] are given. The value provided should be among those listed in the IANA Time Zone Database. + * Defines the day(s) of the week on which a recurring [[Event]] takes place. May be specified using either [[DayOfWeek]], or alternatively [[Text]] conforming to iCal's syntax for byDay recurrence rules. * * - * @var string + * @var string|\OpenActive\Enums\SchemaOrg\DayOfWeek|null */ - protected $scheduleTimezone; + protected $byDay; /** - * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * 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 Date|DateTime|null + * @var DateTime|string|null */ - protected $startDate; + protected $endTime; /** - * Defines a [[Date]] or [[DateTime]] during which a scheduled [[Event]] will not take place. The property allows exceptions to - * a [[Schedule]] to be specified. If an exception is specified as a [[DateTime]] then only the event that would have started at that specific date and time - * should be excluded from the schedule. If an exception is specified as a [[Date]] then any event that is scheduled for that 24 hour period should be - * excluded from the schedule. This allows a whole day to be excluded from the schedule without having to itemise every scheduled event. + * Defines the number of times a recurring [[Event]] will take place. * * - * @var Date|DateTime|null + * @var int|null */ - protected $exceptDate; + protected $repeatCount; /** - * 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. + * Defines the week(s) of the month on which a recurring Event takes place. Specified as an Integer between 1-5. For clarity, byMonthWeek is best used in conjunction with byDay to indicate concepts like the first and third Mondays of a month. * * - * @var DateTime|string|null + * @var int|null */ - protected $startTime; + protected $byMonthWeek; /** - * Defines the number of times a recurring [[Event]] will take place + * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var int|null + * @var Date|DateTime|null */ - protected $repeatCount; + protected $startDate; /** - * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * Defines the day(s) of the month on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-31. * * - * @var Date|DateTime|null + * @var int|null */ - protected $endDate; + protected $byMonthDay; /** - * Defines the frequency at which [[Event]]s will occur according to a schedule [[Schedule]]. The intervals between - * events should be defined as a [[Duration]] of time. + * 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 DateInterval|string|null + * @var DateTime|string|null */ - protected $repeatFrequency; + protected $startTime; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * Defines the month(s) of the year on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-12. January is 1. * * - * @var DateInterval|string|null + * @var int|null */ - protected $duration; + protected $byMonth; /** - * Defines the day(s) of the month on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-31. + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var int|null + * @var DateInterval|string|null */ - protected $byMonthDay; + protected $duration; /** - * 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. + * Defines the frequency at which [[Event]]s will occur according to a schedule [[Schedule]]. The intervals between + * events should be defined as a [[Duration]] of time. * * - * @var DateTime|string|null + * @var DateInterval|string|null */ - protected $endTime; + protected $repeatFrequency; /** - * Defines the month(s) of the year on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-12. January is 1. + * Indicates the timezone for which the time(s) indicated in the [[Schedule]] are given. The value provided should be among those listed in the IANA Time Zone Database. * * - * @var int|null + * @var string */ - protected $byMonth; + protected $scheduleTimezone; /** - * Defines the day(s) of the week on which a recurring [[Event]] takes place. May be specified using either [[DayOfWeek]], or alternatively [[Text]] conforming to iCal's syntax for byDay recurrence rules. + * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null + * @var Date|DateTime|null */ - protected $byDay; + protected $endDate; /** - * Defines the week(s) of the month on which a recurring Event takes place. Specified as an Integer between 1-5. For clarity, byMonthWeek is best used in conjunction with byDay to indicate concepts like the first and third Mondays of a month. + * Defines a [[Date]] or [[DateTime]] during which a scheduled [[Event]] will not take place. The property allows exceptions to + * a [[Schedule]] to be specified. If an exception is specified as a [[DateTime]] then only the event that would have started at that specific date and time + * should be excluded from the schedule. If an exception is specified as a [[Date]] then any event that is scheduled for that 24 hour period should be + * excluded from the schedule. This allows a whole day to be excluded from the schedule without having to itemise every scheduled event. * * - * @var int|null + * @var Date|DateTime|null */ - protected $byMonthWeek; + protected $exceptDate; /** - * @return string + * @return string|\OpenActive\Enums\SchemaOrg\DayOfWeek|null */ - public function getScheduleTimezone() + public function getByDay() { - return $this->scheduleTimezone; + return $this->byDay; } /** - * @param string $scheduleTimezone + * @param string|\OpenActive\Enums\SchemaOrg\DayOfWeek|null $byDay * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setScheduleTimezone($scheduleTimezone) + public function setByDay($byDay) { $types = [ "string", + "\OpenActive\Enums\SchemaOrg\DayOfWeek", + "null", ]; - $scheduleTimezone = self::checkTypes($scheduleTimezone, $types); + $byDay = self::checkTypes($byDay, $types); - $this->scheduleTimezone = $scheduleTimezone; + $this->byDay = $byDay; } /** - * @return Date|DateTime|null + * @return DateTime|string|null */ - public function getStartDate() + public function getEndTime() { - return $this->startDate; + return $this->endTime; } /** - * @param Date|DateTime|null $startDate + * @param DateTime|string|null $endTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartDate($startDate) + public function setEndTime($endTime) { $types = [ - "Date", "DateTime", + "Time", "null", ]; - $startDate = self::checkTypes($startDate, $types); + $endTime = self::checkTypes($endTime, $types); - $this->startDate = $startDate; + $this->endTime = $endTime; } /** - * @return Date|DateTime|null + * @return int|null */ - public function getExceptDate() + public function getRepeatCount() { - return $this->exceptDate; + return $this->repeatCount; } /** - * @param Date|DateTime|null $exceptDate + * @param int|null $repeatCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExceptDate($exceptDate) + public function setRepeatCount($repeatCount) { $types = [ - "Date", - "DateTime", + "int", "null", ]; - $exceptDate = self::checkTypes($exceptDate, $types); + $repeatCount = self::checkTypes($repeatCount, $types); - $this->exceptDate = $exceptDate; + $this->repeatCount = $repeatCount; } /** - * @return DateTime|string|null + * @return int|null */ - public function getStartTime() + public function getByMonthWeek() { - return $this->startTime; + return $this->byMonthWeek; } /** - * @param DateTime|string|null $startTime + * @param int|null $byMonthWeek * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartTime($startTime) + public function setByMonthWeek($byMonthWeek) { $types = [ - "DateTime", - "Time", + "int", "null", ]; - $startTime = self::checkTypes($startTime, $types); + $byMonthWeek = self::checkTypes($byMonthWeek, $types); - $this->startTime = $startTime; + $this->byMonthWeek = $byMonthWeek; } /** - * @return int|null + * @return Date|DateTime|null */ - public function getRepeatCount() + public function getStartDate() { - return $this->repeatCount; + return $this->startDate; } /** - * @param int|null $repeatCount + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRepeatCount($repeatCount) + public function setStartDate($startDate) { $types = [ - "int", + "Date", + "DateTime", "null", ]; - $repeatCount = self::checkTypes($repeatCount, $types); + $startDate = self::checkTypes($startDate, $types); - $this->repeatCount = $repeatCount; + $this->startDate = $startDate; } /** - * @return Date|DateTime|null + * @return int|null */ - public function getEndDate() + public function getByMonthDay() { - return $this->endDate; + return $this->byMonthDay; } /** - * @param Date|DateTime|null $endDate + * @param int|null $byMonthDay * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndDate($endDate) + public function setByMonthDay($byMonthDay) { $types = [ - "Date", - "DateTime", + "int", "null", ]; - $endDate = self::checkTypes($endDate, $types); + $byMonthDay = self::checkTypes($byMonthDay, $types); - $this->endDate = $endDate; + $this->byMonthDay = $byMonthDay; } /** - * @return DateInterval|string|null + * @return DateTime|string|null */ - public function getRepeatFrequency() + public function getStartTime() { - return $this->repeatFrequency; + return $this->startTime; } /** - * @param DateInterval|string|null $repeatFrequency + * @param DateTime|string|null $startTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRepeatFrequency($repeatFrequency) + public function setStartTime($startTime) { $types = [ - "DateInterval", - "string", + "DateTime", + "Time", "null", ]; - $repeatFrequency = self::checkTypes($repeatFrequency, $types); + $startTime = self::checkTypes($startTime, $types); - $this->repeatFrequency = $repeatFrequency; + $this->startTime = $startTime; } /** - * @return DateInterval|string|null + * @return int|null */ - public function getDuration() + public function getByMonth() { - return $this->duration; + return $this->byMonth; } /** - * @param DateInterval|string|null $duration + * @param int|null $byMonth * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setByMonth($byMonth) { $types = [ - "DateInterval", - "string", + "int", "null", ]; - $duration = self::checkTypes($duration, $types); + $byMonth = self::checkTypes($byMonth, $types); - $this->duration = $duration; + $this->byMonth = $byMonth; } /** - * @return int|null + * @return DateInterval|string|null */ - public function getByMonthDay() + public function getDuration() { - return $this->byMonthDay; + return $this->duration; } /** - * @param int|null $byMonthDay + * @param DateInterval|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByMonthDay($byMonthDay) + public function setDuration($duration) { $types = [ - "int", + "DateInterval", + "string", "null", ]; - $byMonthDay = self::checkTypes($byMonthDay, $types); + $duration = self::checkTypes($duration, $types); - $this->byMonthDay = $byMonthDay; + $this->duration = $duration; } /** - * @return DateTime|string|null + * @return DateInterval|string|null */ - public function getEndTime() + public function getRepeatFrequency() { - return $this->endTime; + return $this->repeatFrequency; } /** - * @param DateTime|string|null $endTime + * @param DateInterval|string|null $repeatFrequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndTime($endTime) + public function setRepeatFrequency($repeatFrequency) { $types = [ - "DateTime", - "Time", + "DateInterval", + "string", "null", ]; - $endTime = self::checkTypes($endTime, $types); + $repeatFrequency = self::checkTypes($repeatFrequency, $types); - $this->endTime = $endTime; + $this->repeatFrequency = $repeatFrequency; } /** - * @return int|null + * @return string */ - public function getByMonth() + public function getScheduleTimezone() { - return $this->byMonth; + return $this->scheduleTimezone; } /** - * @param int|null $byMonth + * @param string $scheduleTimezone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByMonth($byMonth) + public function setScheduleTimezone($scheduleTimezone) { $types = [ - "int", - "null", + "string", ]; - $byMonth = self::checkTypes($byMonth, $types); + $scheduleTimezone = self::checkTypes($scheduleTimezone, $types); - $this->byMonth = $byMonth; + $this->scheduleTimezone = $scheduleTimezone; } /** - * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null + * @return Date|DateTime|null */ - public function getByDay() + public function getEndDate() { - return $this->byDay; + return $this->endDate; } /** - * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null $byDay + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByDay($byDay) + public function setEndDate($endDate) { $types = [ - "\OpenActive\Enums\SchemaOrg\DayOfWeek", - "string", + "Date", + "DateTime", "null", ]; - $byDay = self::checkTypes($byDay, $types); + $endDate = self::checkTypes($endDate, $types); - $this->byDay = $byDay; + $this->endDate = $endDate; } /** - * @return int|null + * @return Date|DateTime|null */ - public function getByMonthWeek() + public function getExceptDate() { - return $this->byMonthWeek; + return $this->exceptDate; } /** - * @param int|null $byMonthWeek + * @param Date|DateTime|null $exceptDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByMonthWeek($byMonthWeek) + public function setExceptDate($exceptDate) { $types = [ - "int", + "Date", + "DateTime", "null", ]; - $byMonthWeek = self::checkTypes($byMonthWeek, $types); + $exceptDate = self::checkTypes($exceptDate, $types); - $this->byMonthWeek = $byMonthWeek; + $this->exceptDate = $exceptDate; } } diff --git a/src/Models/SchemaOrg/ScreeningEvent.php b/src/Models/SchemaOrg/ScreeningEvent.php index 7ad91e7f..dc5d3b81 100644 --- a/src/Models/SchemaOrg/ScreeningEvent.php +++ b/src/Models/SchemaOrg/ScreeningEvent.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "subtitleLanguage" => "subtitleLanguage", "videoFormat" => "videoFormat", + "subtitleLanguage" => "subtitleLanguage", "workPresented" => "workPresented", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). + * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var string */ - protected $subtitleLanguage; + protected $videoFormat; /** - * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). + * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $videoFormat; + protected $subtitleLanguage; /** * The movie presented during this event. @@ -50,52 +50,52 @@ public static function fieldList() { protected $workPresented; /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return string */ - public function getSubtitleLanguage() + public function getVideoFormat() { - return $this->subtitleLanguage; + return $this->videoFormat; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage + * @param string $videoFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubtitleLanguage($subtitleLanguage) + public function setVideoFormat($videoFormat) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); + $videoFormat = self::checkTypes($videoFormat, $types); - $this->subtitleLanguage = $subtitleLanguage; + $this->videoFormat = $videoFormat; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getVideoFormat() + public function getSubtitleLanguage() { - return $this->videoFormat; + return $this->subtitleLanguage; } /** - * @param string $videoFormat + * @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 setVideoFormat($videoFormat) + public function setSubtitleLanguage($subtitleLanguage) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $videoFormat = self::checkTypes($videoFormat, $types); + $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); - $this->videoFormat = $videoFormat; + $this->subtitleLanguage = $subtitleLanguage; } /** diff --git a/src/Models/SchemaOrg/Seat.php b/src/Models/SchemaOrg/Seat.php index 02573abf..48d4eea6 100644 --- a/src/Models/SchemaOrg/Seat.php +++ b/src/Models/SchemaOrg/Seat.php @@ -17,30 +17,30 @@ public static function getType() public static function fieldList() { $fields = [ - "seatingType" => "seatingType", "seatSection" => "seatSection", - "seatRow" => "seatRow", "seatNumber" => "seatNumber", + "seatRow" => "seatRow", + "seatingType" => "seatingType", ]; return array_merge(parent::fieldList(), $fields); } /** - * The type/class of the seat. + * The section location of the reserved seat (e.g. Orchestra). * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var string */ - protected $seatingType; + protected $seatSection; /** - * The section location of the reserved seat (e.g. Orchestra). + * The location of the reserved seat (e.g., 27). * * * @var string */ - protected $seatSection; + protected $seatNumber; /** * The row location of the reserved seat (e.g., B). @@ -51,61 +51,59 @@ public static function fieldList() { protected $seatRow; /** - * The location of the reserved seat (e.g., 27). + * The type/class of the seat. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $seatNumber; + protected $seatingType; /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return string */ - public function getSeatingType() + public function getSeatSection() { - return $this->seatingType; + return $this->seatSection; } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $seatingType + * @param string $seatSection * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatingType($seatingType) + public function setSeatSection($seatSection) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", - "null", ]; - $seatingType = self::checkTypes($seatingType, $types); + $seatSection = self::checkTypes($seatSection, $types); - $this->seatingType = $seatingType; + $this->seatSection = $seatSection; } /** * @return string */ - public function getSeatSection() + public function getSeatNumber() { - return $this->seatSection; + return $this->seatNumber; } /** - * @param string $seatSection + * @param string $seatNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatSection($seatSection) + public function setSeatNumber($seatNumber) { $types = [ "string", ]; - $seatSection = self::checkTypes($seatSection, $types); + $seatNumber = self::checkTypes($seatNumber, $types); - $this->seatSection = $seatSection; + $this->seatNumber = $seatNumber; } /** @@ -133,27 +131,29 @@ public function setSeatRow($seatRow) } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getSeatNumber() + public function getSeatingType() { - return $this->seatNumber; + return $this->seatingType; } /** - * @param string $seatNumber + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $seatingType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatNumber($seatNumber) + public function setSeatingType($seatingType) { $types = [ + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $seatNumber = self::checkTypes($seatNumber, $types); + $seatingType = self::checkTypes($seatingType, $types); - $this->seatNumber = $seatNumber; + $this->seatingType = $seatingType; } } diff --git a/src/Models/SchemaOrg/SeekToAction.php b/src/Models/SchemaOrg/SeekToAction.php index 3fb9d2ca..02b978b2 100644 --- a/src/Models/SchemaOrg/SeekToAction.php +++ b/src/Models/SchemaOrg/SeekToAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * The start time of the clip expressed as the number of seconds from the beginning of the work. * * - * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null + * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null */ protected $startOffset; /** - * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null + * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null */ public function getStartOffset() { @@ -40,16 +40,16 @@ public function getStartOffset() } /** - * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset + * @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 setStartOffset($startOffset) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\HyperTocEntry", "string", + "Number", "null", ]; diff --git a/src/Models/SchemaOrg/SellAction.php b/src/Models/SchemaOrg/SellAction.php index 80598242..23fb659b 100644 --- a/src/Models/SchemaOrg/SellAction.php +++ b/src/Models/SchemaOrg/SellAction.php @@ -17,78 +17,78 @@ public static function getType() public static function fieldList() { $fields = [ - "warrantyPromise" => "warrantyPromise", "buyer" => "buyer", + "warrantyPromise" => "warrantyPromise", ]; return array_merge(parent::fieldList(), $fields); } /** - * The warranty promise(s) included in the offer. + * A sub property of participant. The participant/person/organization that bought the object. * * - * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $warrantyPromise; + protected $buyer; /** - * A sub property of participant. The participant/person/organization that bought the object. + * The warranty promise(s) included in the offer. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - protected $buyer; + protected $warrantyPromise; /** - * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getWarrantyPromise() + public function getBuyer() { - return $this->warrantyPromise; + return $this->buyer; } /** - * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $buyer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarrantyPromise($warrantyPromise) + public function setBuyer($buyer) { $types = [ - "\OpenActive\Models\SchemaOrg\WarrantyPromise", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $warrantyPromise = self::checkTypes($warrantyPromise, $types); + $buyer = self::checkTypes($buyer, $types); - $this->warrantyPromise = $warrantyPromise; + $this->buyer = $buyer; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - public function getBuyer() + public function getWarrantyPromise() { - return $this->buyer; + return $this->warrantyPromise; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $buyer + * @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 setBuyer($buyer) + public function setWarrantyPromise($warrantyPromise) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\WarrantyPromise", "string", ]; - $buyer = self::checkTypes($buyer, $types); + $warrantyPromise = self::checkTypes($warrantyPromise, $types); - $this->buyer = $buyer; + $this->warrantyPromise = $warrantyPromise; } } diff --git a/src/Models/SchemaOrg/SendAction.php b/src/Models/SchemaOrg/SendAction.php index 7250740d..2f5269e4 100644 --- a/src/Models/SchemaOrg/SendAction.php +++ b/src/Models/SchemaOrg/SendAction.php @@ -17,80 +17,80 @@ public static function getType() public static function fieldList() { $fields = [ - "recipient" => "recipient", "deliveryMethod" => "deliveryMethod", + "recipient" => "recipient", ]; 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 method of delivery. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $recipient; + protected $deliveryMethod; /** - * A sub property of instrument. The method of delivery. + * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $deliveryMethod; + protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getRecipient() + public function getDeliveryMethod() { - return $this->recipient; + return $this->deliveryMethod; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $deliveryMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipient($recipient) + public function setDeliveryMethod($deliveryMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", - "string", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", ]; - $recipient = self::checkTypes($recipient, $types); + $deliveryMethod = self::checkTypes($deliveryMethod, $types); - $this->recipient = $recipient; + $this->deliveryMethod = $deliveryMethod; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getDeliveryMethod() + public function getRecipient() { - return $this->deliveryMethod; + return $this->recipient; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $deliveryMethod + * @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 setDeliveryMethod($deliveryMethod) + public function setRecipient($recipient) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $deliveryMethod = self::checkTypes($deliveryMethod, $types); + $recipient = self::checkTypes($recipient, $types); - $this->deliveryMethod = $deliveryMethod; + $this->recipient = $recipient; } } diff --git a/src/Models/SchemaOrg/Service.php b/src/Models/SchemaOrg/Service.php index 8c90bb1c..4f9c7f09 100644 --- a/src/Models/SchemaOrg/Service.php +++ b/src/Models/SchemaOrg/Service.php @@ -17,42 +17,59 @@ public static function getType() public static function fieldList() { $fields = [ - "review" => "review", + "serviceType" => "serviceType", + "termsOfService" => "termsOfService", + "isSimilarTo" => "isSimilarTo", "award" => "award", + "broker" => "broker", + "hasOfferCatalog" => "hasOfferCatalog", + "hasCertification" => "hasCertification", "serviceAudience" => "serviceAudience", + "logo" => "logo", + "areaServed" => "areaServed", + "serviceArea" => "serviceArea", + "brand" => "brand", "category" => "category", + "providerMobility" => "providerMobility", + "isRelatedTo" => "isRelatedTo", "hoursAvailable" => "hoursAvailable", - "audience" => "audience", + "review" => "review", + "produces" => "produces", "offers" => "offers", - "serviceOutput" => "serviceOutput", "provider" => "provider", - "termsOfService" => "termsOfService", - "providerMobility" => "providerMobility", - "broker" => "broker", + "slogan" => "slogan", "aggregateRating" => "aggregateRating", - "isSimilarTo" => "isSimilarTo", + "serviceOutput" => "serviceOutput", "availableChannel" => "availableChannel", - "slogan" => "slogan", - "brand" => "brand", - "logo" => "logo", - "produces" => "produces", - "serviceArea" => "serviceArea", - "serviceType" => "serviceType", - "areaServed" => "areaServed", - "isRelatedTo" => "isRelatedTo", - "hasOfferCatalog" => "hasOfferCatalog", + "audience" => "audience", ]; return array_merge(parent::fieldList(), $fields); } /** - * A review of the item. + * The type of service being offered, e.g. veterans' benefits, emergency relief, etc. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null */ - protected $review; + protected $serviceType; + + /** + * Human-readable terms of service documentation. + * + * + * @var string + */ + protected $termsOfService; + + /** + * A pointer to another, functionally similar product (or multiple products). + * + * + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + */ + protected $isSimilarTo; /** * An award won by or for this item. @@ -63,69 +80,76 @@ public static function fieldList() { protected $award; /** - * The audience eligible for this service. + * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $serviceAudience; + protected $broker; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * Indicates an OfferCatalog listing for this Organization, Person, or Service. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - protected $category; + protected $hasOfferCatalog; /** - * The hours during which this service or contact is available. + * Certification information about a product, organization, service, place, or person. * * - * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $hoursAvailable; + protected $hasCertification; /** - * An intended audience, i.e. a group for whom something was created. + * The audience eligible for this service. * * * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $audience; + protected $serviceAudience; /** - * 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. - * + * An associated logo. * * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var string|\OpenActive\Models\SchemaOrg\ImageObject */ - protected $offers; + protected $logo; /** - * The tangible thing generated by the service, e.g. a passport, permit, etc. + * The geographic area where a service or offered item is provided. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea */ - protected $serviceOutput; + protected $areaServed; /** - * 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 geographic area where the service is provided. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string */ - protected $provider; + protected $serviceArea; /** - * Human-readable terms of service documentation. + * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - protected $termsOfService; + protected $brand; + + /** + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null + */ + protected $category; /** * Indicates the mobility of a provided service (e.g. 'static', 'dynamic'). @@ -136,717 +160,727 @@ public static function fieldList() { protected $providerMobility; /** - * 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 pointer to another, somehow related product (or multiple products). * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $broker; + protected $isRelatedTo; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * The hours during which this service or contact is available. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - protected $aggregateRating; + protected $hoursAvailable; /** - * A pointer to another, functionally similar product (or multiple products). + * A review of the item. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $isSimilarTo; + protected $review; /** - * A means of accessing the service (e.g. a phone bank, a web site, a location, etc.). + * The tangible thing generated by the service, e.g. a passport, permit, etc. * * - * @var \OpenActive\Models\SchemaOrg\ServiceChannel|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $availableChannel; + protected $produces; /** - * A slogan or motto associated with the 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 string + * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - protected $slogan; + protected $offers; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * 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\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $brand; + protected $provider; /** - * An associated logo. + * A slogan or motto associated with the item. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var string */ - protected $logo; + protected $slogan; /** - * The tangible thing generated by the service, e.g. a passport, permit, etc. + * 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 $produces; + protected $aggregateRating; /** - * The geographic area where the service is provided. + * The tangible thing generated by the service, e.g. a passport, permit, etc. * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $serviceArea; + protected $serviceOutput; /** - * The type of service being offered, e.g. veterans' benefits, emergency relief, etc. + * A means of accessing the service (e.g. a phone bank, a web site, a location, etc.). * * - * @var \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null + * @var \OpenActive\Models\SchemaOrg\ServiceChannel|string */ - protected $serviceType; + protected $availableChannel; /** - * The geographic area where a service or offered item is provided. + * An intended audience, i.e. a group for whom something was created. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $areaServed; + protected $audience; /** - * A pointer to another, somehow related product (or multiple products). - * - * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null */ - protected $isRelatedTo; + public function getServiceType() + { + return $this->serviceType; + } /** - * Indicates an OfferCatalog listing for this Organization, Person, or Service. - * - * - * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @param \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null $serviceType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $hasOfferCatalog; + public function setServiceType($serviceType) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\GovernmentBenefitsType", + "string", + "null", + ]; + + $serviceType = self::checkTypes($serviceType, $types); + + $this->serviceType = $serviceType; + } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string */ - public function getReview() + public function getTermsOfService() { - return $this->review; + return $this->termsOfService; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param string $termsOfService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setTermsOfService($termsOfService) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $review = self::checkTypes($review, $types); + $termsOfService = self::checkTypes($termsOfService, $types); - $this->review = $review; + $this->termsOfService = $termsOfService; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getAward() + public function getIsSimilarTo() { - return $this->award; + return $this->isSimilarTo; } /** - * @param string $award + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $isSimilarTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAward($award) + public function setIsSimilarTo($isSimilarTo) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $award = self::checkTypes($award, $types); + $isSimilarTo = self::checkTypes($isSimilarTo, $types); - $this->award = $award; + $this->isSimilarTo = $isSimilarTo; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return string */ - public function getServiceAudience() + public function getAward() { - return $this->serviceAudience; + return $this->award; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $serviceAudience + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceAudience($serviceAudience) + public function setAward($award) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $serviceAudience = self::checkTypes($serviceAudience, $types); + $award = self::checkTypes($award, $types); - $this->serviceAudience = $serviceAudience; + $this->award = $award; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getCategory() + public function getBroker() { - return $this->category; + return $this->broker; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @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 setCategory($category) + public function setBroker($broker) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", ]; - $category = self::checkTypes($category, $types); + $broker = self::checkTypes($broker, $types); - $this->category = $category; + $this->broker = $broker; } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - public function getHoursAvailable() + public function getHasOfferCatalog() { - return $this->hoursAvailable; + return $this->hasOfferCatalog; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable + * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHoursAvailable($hoursAvailable) + public function setHasOfferCatalog($hasOfferCatalog) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", + "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $hoursAvailable = self::checkTypes($hoursAvailable, $types); + $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); - $this->hoursAvailable = $hoursAvailable; + $this->hasOfferCatalog = $hasOfferCatalog; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getAudience() + public function getHasCertification() { - return $this->audience; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $audience = self::checkTypes($audience, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->audience = $audience; + $this->hasCertification = $hasCertification; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getOffers() + public function getServiceAudience() { - return $this->offers; + return $this->serviceAudience; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param \OpenActive\Models\SchemaOrg\Audience|string $serviceAudience * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setServiceAudience($serviceAudience) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $offers = self::checkTypes($offers, $types); + $serviceAudience = self::checkTypes($serviceAudience, $types); - $this->offers = $offers; + $this->serviceAudience = $serviceAudience; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return string|\OpenActive\Models\SchemaOrg\ImageObject */ - public function getServiceOutput() + public function getLogo() { - return $this->serviceOutput; + return $this->logo; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $serviceOutput + * @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 setServiceOutput($serviceOutput) + public function setLogo($logo) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", "string", + "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $serviceOutput = self::checkTypes($serviceOutput, $types); + $logo = self::checkTypes($logo, $types); - $this->serviceOutput = $serviceOutput; + $this->logo = $logo; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea */ - public function getProvider() + public function getAreaServed() { - return $this->provider; + return $this->areaServed; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @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 setProvider($provider) + public function setAreaServed($areaServed) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", ]; - $provider = self::checkTypes($provider, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->provider = $provider; + $this->areaServed = $areaServed; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string */ - public function getTermsOfService() + public function getServiceArea() { - return $this->termsOfService; + return $this->serviceArea; } /** - * @param string $termsOfService + * @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 setTermsOfService($termsOfService) + public function setServiceArea($serviceArea) { $types = [ + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $termsOfService = self::checkTypes($termsOfService, $types); + $serviceArea = self::checkTypes($serviceArea, $types); - $this->termsOfService = $termsOfService; + $this->serviceArea = $serviceArea; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - public function getProviderMobility() + public function getBrand() { - return $this->providerMobility; + return $this->brand; } /** - * @param string $providerMobility + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProviderMobility($providerMobility) + public function setBrand($brand) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Brand", "string", ]; - $providerMobility = self::checkTypes($providerMobility, $types); + $brand = self::checkTypes($brand, $types); - $this->providerMobility = $providerMobility; + $this->brand = $brand; } /** - * @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\AggregateRating|string + * @return string */ - public function getAggregateRating() + public function getProviderMobility() { - return $this->aggregateRating; + return $this->providerMobility; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param string $providerMobility * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setProviderMobility($providerMobility) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $providerMobility = self::checkTypes($providerMobility, $types); - $this->aggregateRating = $aggregateRating; + $this->providerMobility = $providerMobility; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getIsSimilarTo() + public function getIsRelatedTo() { - return $this->isSimilarTo; + return $this->isRelatedTo; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isSimilarTo + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $isRelatedTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsSimilarTo($isSimilarTo) + public function setIsRelatedTo($isRelatedTo) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $isSimilarTo = self::checkTypes($isSimilarTo, $types); + $isRelatedTo = self::checkTypes($isRelatedTo, $types); - $this->isSimilarTo = $isSimilarTo; + $this->isRelatedTo = $isRelatedTo; } /** - * @return \OpenActive\Models\SchemaOrg\ServiceChannel|string + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - public function getAvailableChannel() + public function getHoursAvailable() { - return $this->availableChannel; + return $this->hoursAvailable; } /** - * @param \OpenActive\Models\SchemaOrg\ServiceChannel|string $availableChannel + * @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 setAvailableChannel($availableChannel) + public function setHoursAvailable($hoursAvailable) { $types = [ - "\OpenActive\Models\SchemaOrg\ServiceChannel", + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $availableChannel = self::checkTypes($availableChannel, $types); + $hoursAvailable = self::checkTypes($hoursAvailable, $types); - $this->availableChannel = $availableChannel; + $this->hoursAvailable = $hoursAvailable; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getSlogan() + public function getReview() { - return $this->slogan; + return $this->review; } /** - * @param string $slogan + * @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 setSlogan($slogan) + public function setReview($review) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $slogan = self::checkTypes($slogan, $types); + $review = self::checkTypes($review, $types); - $this->slogan = $slogan; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getBrand() + public function getProduces() { - return $this->brand; + return $this->produces; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @param \OpenActive\Models\SchemaOrg\Thing|string $produces * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBrand($brand) + public function setProduces($produces) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $brand = self::checkTypes($brand, $types); + $produces = self::checkTypes($produces, $types); - $this->brand = $brand; + $this->produces = $produces; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - public function getLogo() + public function getOffers() { - return $this->logo; + return $this->offers; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @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 setLogo($logo) + public function setOffers($offers) { $types = [ + "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Demand", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $offers = self::checkTypes($offers, $types); - $this->logo = $logo; + $this->offers = $offers; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getProduces() + public function getProvider() { - return $this->produces; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $produces + * @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 setProduces($produces) + public function setProvider($provider) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $produces = self::checkTypes($produces, $types); + $provider = self::checkTypes($provider, $types); - $this->produces = $produces; + $this->provider = $provider; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getServiceArea() + public function getSlogan() { - return $this->serviceArea; + return $this->slogan; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceArea($serviceArea) + public function setSlogan($slogan) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $serviceArea = self::checkTypes($serviceArea, $types); + $slogan = self::checkTypes($slogan, $types); - $this->serviceArea = $serviceArea; + $this->slogan = $slogan; } /** - * @return \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getServiceType() + public function getAggregateRating() { - return $this->serviceType; + return $this->aggregateRating; } /** - * @param \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null $serviceType + * @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 setServiceType($serviceType) + public function setAggregateRating($aggregateRating) { $types = [ - "\OpenActive\Enums\SchemaOrg\GovernmentBenefitsType", + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", - "null", ]; - $serviceType = self::checkTypes($serviceType, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->serviceType = $serviceType; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getAreaServed() + public function getServiceOutput() { - return $this->areaServed; + return $this->serviceOutput; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param \OpenActive\Models\SchemaOrg\Thing|string $serviceOutput * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setServiceOutput($serviceOutput) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Thing", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $areaServed = self::checkTypes($areaServed, $types); + $serviceOutput = self::checkTypes($serviceOutput, $types); - $this->areaServed = $areaServed; + $this->serviceOutput = $serviceOutput; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\ServiceChannel|string */ - public function getIsRelatedTo() + public function getAvailableChannel() { - return $this->isRelatedTo; + return $this->availableChannel; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo + * @param \OpenActive\Models\SchemaOrg\ServiceChannel|string $availableChannel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsRelatedTo($isRelatedTo) + public function setAvailableChannel($availableChannel) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\ServiceChannel", "string", ]; - $isRelatedTo = self::checkTypes($isRelatedTo, $types); + $availableChannel = self::checkTypes($availableChannel, $types); - $this->isRelatedTo = $isRelatedTo; + $this->availableChannel = $availableChannel; } /** - * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getHasOfferCatalog() + public function getAudience() { - return $this->hasOfferCatalog; + return $this->audience; } /** - * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @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 setHasOfferCatalog($hasOfferCatalog) + public function setAudience($audience) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferCatalog", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + $audience = self::checkTypes($audience, $types); - $this->hasOfferCatalog = $hasOfferCatalog; + $this->audience = $audience; } } diff --git a/src/Models/SchemaOrg/ServiceChannel.php b/src/Models/SchemaOrg/ServiceChannel.php index cc65836f..d825cbe7 100644 --- a/src/Models/SchemaOrg/ServiceChannel.php +++ b/src/Models/SchemaOrg/ServiceChannel.php @@ -17,42 +17,42 @@ public static function getType() public static function fieldList() { $fields = [ - "providesService" => "providesService", + "serviceLocation" => "serviceLocation", + "servicePhone" => "servicePhone", "serviceSmsNumber" => "serviceSmsNumber", - "servicePostalAddress" => "servicePostalAddress", "serviceUrl" => "serviceUrl", - "servicePhone" => "servicePhone", - "availableLanguage" => "availableLanguage", "processingTime" => "processingTime", - "serviceLocation" => "serviceLocation", + "servicePostalAddress" => "servicePostalAddress", + "providesService" => "providesService", + "availableLanguage" => "availableLanguage", ]; return array_merge(parent::fieldList(), $fields); } /** - * The service provided by this channel. + * The location (e.g. civic structure, local business, etc.) where a person can go to access the service. * * - * @var \OpenActive\Models\SchemaOrg\Service|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $providesService; + protected $serviceLocation; /** - * The number to access the service by text message. + * The phone number to use to access the service. * * * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $serviceSmsNumber; + protected $servicePhone; /** - * The address for accessing the service by mail. + * The number to access the service by text message. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $servicePostalAddress; + protected $serviceSmsNumber; /** * The website to access the service. @@ -63,110 +63,110 @@ public static function fieldList() { protected $serviceUrl; /** - * The phone number to use to access the service. + * Estimated processing time for the service using this channel. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var DateInterval|string|null */ - protected $servicePhone; + protected $processingTime; /** - * 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 address for accessing the service by mail. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $availableLanguage; + protected $servicePostalAddress; /** - * Estimated processing time for the service using this channel. + * The service provided by this channel. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Service|string */ - protected $processingTime; + protected $providesService; /** - * The location (e.g. civic structure, local business, etc.) where a person can go to access the service. + * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $serviceLocation; + protected $availableLanguage; /** - * @return \OpenActive\Models\SchemaOrg\Service|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getProvidesService() + public function getServiceLocation() { - return $this->providesService; + return $this->serviceLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Service|string $providesService + * @param \OpenActive\Models\SchemaOrg\Place|string $serviceLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvidesService($providesService) + public function setServiceLocation($serviceLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $providesService = self::checkTypes($providesService, $types); + $serviceLocation = self::checkTypes($serviceLocation, $types); - $this->providesService = $providesService; + $this->serviceLocation = $serviceLocation; } /** * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getServiceSmsNumber() + public function getServicePhone() { - return $this->serviceSmsNumber; + return $this->servicePhone; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $serviceSmsNumber + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $servicePhone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceSmsNumber($serviceSmsNumber) + public function setServicePhone($servicePhone) { $types = [ "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $serviceSmsNumber = self::checkTypes($serviceSmsNumber, $types); + $servicePhone = self::checkTypes($servicePhone, $types); - $this->serviceSmsNumber = $serviceSmsNumber; + $this->servicePhone = $servicePhone; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getServicePostalAddress() + public function getServiceSmsNumber() { - return $this->servicePostalAddress; + return $this->serviceSmsNumber; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $servicePostalAddress + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $serviceSmsNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServicePostalAddress($servicePostalAddress) + public function setServiceSmsNumber($serviceSmsNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $servicePostalAddress = self::checkTypes($servicePostalAddress, $types); + $serviceSmsNumber = self::checkTypes($serviceSmsNumber, $types); - $this->servicePostalAddress = $servicePostalAddress; + $this->serviceSmsNumber = $serviceSmsNumber; } /** @@ -194,104 +194,104 @@ public function setServiceUrl($serviceUrl) } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return DateInterval|string|null */ - public function getServicePhone() + public function getProcessingTime() { - return $this->servicePhone; + return $this->processingTime; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $servicePhone + * @param DateInterval|string|null $processingTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServicePhone($servicePhone) + public function setProcessingTime($processingTime) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "DateInterval", "string", + "null", ]; - $servicePhone = self::checkTypes($servicePhone, $types); + $processingTime = self::checkTypes($processingTime, $types); - $this->servicePhone = $servicePhone; + $this->processingTime = $processingTime; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getAvailableLanguage() + public function getServicePostalAddress() { - return $this->availableLanguage; + return $this->servicePostalAddress; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $servicePostalAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableLanguage($availableLanguage) + public function setServicePostalAddress($servicePostalAddress) { $types = [ + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $availableLanguage = self::checkTypes($availableLanguage, $types); + $servicePostalAddress = self::checkTypes($servicePostalAddress, $types); - $this->availableLanguage = $availableLanguage; + $this->servicePostalAddress = $servicePostalAddress; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Service|string */ - public function getProcessingTime() + public function getProvidesService() { - return $this->processingTime; + return $this->providesService; } /** - * @param DateInterval|string|null $processingTime + * @param \OpenActive\Models\SchemaOrg\Service|string $providesService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProcessingTime($processingTime) + public function setProvidesService($providesService) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\Service", "string", - "null", ]; - $processingTime = self::checkTypes($processingTime, $types); + $providesService = self::checkTypes($providesService, $types); - $this->processingTime = $processingTime; + $this->providesService = $providesService; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getServiceLocation() + public function getAvailableLanguage() { - return $this->serviceLocation; + return $this->availableLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $serviceLocation + * @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 setServiceLocation($serviceLocation) + public function setAvailableLanguage($availableLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $serviceLocation = self::checkTypes($serviceLocation, $types); + $availableLanguage = self::checkTypes($availableLanguage, $types); - $this->serviceLocation = $serviceLocation; + $this->availableLanguage = $availableLanguage; } } diff --git a/src/Models/SchemaOrg/ShippingDeliveryTime.php b/src/Models/SchemaOrg/ShippingDeliveryTime.php index b0fe0b81..7f4cc4ea 100644 --- a/src/Models/SchemaOrg/ShippingDeliveryTime.php +++ b/src/Models/SchemaOrg/ShippingDeliveryTime.php @@ -17,22 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "transitTime" => "transitTime", + "cutoffTime" => "cutoffTime", "businessDays" => "businessDays", + "transitTime" => "transitTime", "handlingTime" => "handlingTime", - "cutoffTime" => "cutoffTime", ]; return array_merge(parent::fieldList(), $fields); } /** - * The typical delay the order has been sent for delivery and the goods reach the final customer. Typical properties: minValue, maxValue, unitCode (d for DAY). + * Order cutoff time allows merchants to describe the time after which they will no longer process orders received on that day. For orders processed after cutoff time, one day gets added to the delivery time estimate. This property is expected to be most typically used via the [[ShippingRateSettings]] publication pattern. The time is indicated using the ISO-8601 Time format, e.g. "23:30:00-05:00" would represent 6:30 pm Eastern Standard Time (EST) which is 5 hours behind Coordinated Universal Time (UTC). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string|null */ - protected $transitTime; + protected $cutoffTime; /** * Days of the week when the merchant typically operates, indicated via opening hours markup. @@ -43,44 +43,44 @@ public static function fieldList() { protected $businessDays; /** - * 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. Typical properties: minValue, maxValue, unitCode (d for DAY). This is by common convention assumed to mean business days (if a unitCode is used, coded as "d"), i.e. only counting days when the business normally operates. + * The typical delay the order has been sent for delivery and the goods reach the final customer. Typical properties: minValue, maxValue, unitCode (d for DAY). * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $handlingTime; + protected $transitTime; /** - * Order cutoff time allows merchants to describe the time after which they will no longer process orders received on that day. For orders processed after cutoff time, one day gets added to the delivery time estimate. This property is expected to be most typically used via the [[ShippingRateSettings]] publication pattern. The time is indicated using the ISO-8601 Time format, e.g. "23:30:00-05:00" would represent 6:30 pm Eastern Standard Time (EST) which is 5 hours behind Coordinated Universal Time (UTC). + * 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. Typical properties: minValue, maxValue, unitCode (d for DAY). This is by common convention assumed to mean business days (if a unitCode is used, coded as "d"), i.e. only counting days when the business normally operates. * * - * @var string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $cutoffTime; + protected $handlingTime; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string|null */ - public function getTransitTime() + public function getCutoffTime() { - return $this->transitTime; + return $this->cutoffTime; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $transitTime + * @param string|null $cutoffTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTransitTime($transitTime) + public function setCutoffTime($cutoffTime) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Time", + "null", ]; - $transitTime = self::checkTypes($transitTime, $types); + $cutoffTime = self::checkTypes($cutoffTime, $types); - $this->transitTime = $transitTime; + $this->cutoffTime = $cutoffTime; } /** @@ -111,51 +111,51 @@ public function setBusinessDays($businessDays) /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHandlingTime() + public function getTransitTime() { - return $this->handlingTime; + return $this->transitTime; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $handlingTime + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $transitTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHandlingTime($handlingTime) + public function setTransitTime($transitTime) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $handlingTime = self::checkTypes($handlingTime, $types); + $transitTime = self::checkTypes($transitTime, $types); - $this->handlingTime = $handlingTime; + $this->transitTime = $transitTime; } /** - * @return string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getCutoffTime() + public function getHandlingTime() { - return $this->cutoffTime; + return $this->handlingTime; } /** - * @param string|null $cutoffTime + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $handlingTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCutoffTime($cutoffTime) + public function setHandlingTime($handlingTime) { $types = [ - "Time", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $cutoffTime = self::checkTypes($cutoffTime, $types); + $handlingTime = self::checkTypes($handlingTime, $types); - $this->cutoffTime = $cutoffTime; + $this->handlingTime = $handlingTime; } } diff --git a/src/Models/SchemaOrg/ShippingRateSettings.php b/src/Models/SchemaOrg/ShippingRateSettings.php index 8e06f2fc..8c2fcc0d 100644 --- a/src/Models/SchemaOrg/ShippingRateSettings.php +++ b/src/Models/SchemaOrg/ShippingRateSettings.php @@ -17,40 +17,40 @@ public static function getType() public static function fieldList() { $fields = [ + "freeShippingThreshold" => "freeShippingThreshold", + "shippingRate" => "shippingRate", "shippingDestination" => "shippingDestination", + "isUnlabelledFallback" => "isUnlabelledFallback", "doesNotShip" => "doesNotShip", "shippingLabel" => "shippingLabel", - "isUnlabelledFallback" => "isUnlabelledFallback", - "shippingRate" => "shippingRate", - "freeShippingThreshold" => "freeShippingThreshold", ]; return array_merge(parent::fieldList(), $fields); } /** - * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges. + * A monetary value above (or at) which the shipping rate becomes free. Intended to be used via an [[OfferShippingDetails]] with [[shippingSettingsLink]] matching this [[ShippingRateSettings]]. * * - * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @var \OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $shippingDestination; + protected $freeShippingThreshold; /** - * Indicates when shipping to a particular [[shippingDestination]] is not available. + * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $doesNotShip; + protected $shippingRate; /** - * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). + * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - protected $shippingLabel; + protected $shippingDestination; /** * 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. @@ -61,93 +61,95 @@ public static function fieldList() { protected $isUnlabelledFallback; /** - * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. + * Indicates when shipping to a particular [[shippingDestination]] is not available. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var bool|null */ - protected $shippingRate; + protected $doesNotShip; /** - * A monetary value above which (or equal to) the shipping rate becomes free. Intended to be used via an [[OfferShippingDetails]] with [[shippingSettingsLink]] matching this [[ShippingRateSettings]]. + * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string + * @var string */ - protected $freeShippingThreshold; + protected $shippingLabel; /** - * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @return \OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getShippingDestination() + public function getFreeShippingThreshold() { - return $this->shippingDestination; + return $this->freeShippingThreshold; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingDestination + * @param \OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string $freeShippingThreshold * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingDestination($shippingDestination) + public function setFreeShippingThreshold($freeShippingThreshold) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedRegion", + "\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $shippingDestination = self::checkTypes($shippingDestination, $types); + $freeShippingThreshold = self::checkTypes($freeShippingThreshold, $types); - $this->shippingDestination = $shippingDestination; + $this->freeShippingThreshold = $freeShippingThreshold; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getDoesNotShip() + public function getShippingRate() { - return $this->doesNotShip; + return $this->shippingRate; } /** - * @param bool|null $doesNotShip + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoesNotShip($doesNotShip) + public function setShippingRate($shippingRate) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", ]; - $doesNotShip = self::checkTypes($doesNotShip, $types); + $shippingRate = self::checkTypes($shippingRate, $types); - $this->doesNotShip = $doesNotShip; + $this->shippingRate = $shippingRate; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - public function getShippingLabel() + public function getShippingDestination() { - return $this->shippingLabel; + return $this->shippingDestination; } /** - * @param string $shippingLabel + * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingDestination * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingLabel($shippingLabel) + public function setShippingDestination($shippingDestination) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedRegion", "string", ]; - $shippingLabel = self::checkTypes($shippingLabel, $types); + $shippingDestination = self::checkTypes($shippingDestination, $types); - $this->shippingLabel = $shippingLabel; + $this->shippingDestination = $shippingDestination; } /** @@ -176,54 +178,52 @@ public function setIsUnlabelledFallback($isUnlabelledFallback) } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return bool|null */ - public function getShippingRate() + public function getDoesNotShip() { - return $this->shippingRate; + return $this->doesNotShip; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate + * @param bool|null $doesNotShip * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingRate($shippingRate) + public function setDoesNotShip($doesNotShip) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "bool", + "null", ]; - $shippingRate = self::checkTypes($shippingRate, $types); + $doesNotShip = self::checkTypes($doesNotShip, $types); - $this->shippingRate = $shippingRate; + $this->doesNotShip = $doesNotShip; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string + * @return string */ - public function getFreeShippingThreshold() + public function getShippingLabel() { - return $this->freeShippingThreshold; + return $this->shippingLabel; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string $freeShippingThreshold + * @param string $shippingLabel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFreeShippingThreshold($freeShippingThreshold) + public function setShippingLabel($shippingLabel) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification", "string", ]; - $freeShippingThreshold = self::checkTypes($freeShippingThreshold, $types); + $shippingLabel = self::checkTypes($shippingLabel, $types); - $this->freeShippingThreshold = $freeShippingThreshold; + $this->shippingLabel = $shippingLabel; } } diff --git a/src/Models/SchemaOrg/SingleFamilyResidence.php b/src/Models/SchemaOrg/SingleFamilyResidence.php index d250af9d..f2acd38b 100644 --- a/src/Models/SchemaOrg/SingleFamilyResidence.php +++ b/src/Models/SchemaOrg/SingleFamilyResidence.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/SizeSpecification.php b/src/Models/SchemaOrg/SizeSpecification.php index 405d7111..cae672f9 100644 --- a/src/Models/SchemaOrg/SizeSpecification.php +++ b/src/Models/SchemaOrg/SizeSpecification.php @@ -17,216 +17,216 @@ public static function getType() public static function fieldList() { $fields = [ - "sizeGroup" => "sizeGroup", - "suggestedMeasurement" => "suggestedMeasurement", - "suggestedAge" => "suggestedAge", "hasMeasurement" => "hasMeasurement", - "sizeSystem" => "sizeSystem", + "suggestedAge" => "suggestedAge", "suggestedGender" => "suggestedGender", + "suggestedMeasurement" => "suggestedMeasurement", + "sizeGroup" => "sizeGroup", + "sizeSystem" => "sizeSystem", ]; return array_merge(parent::fieldList(), $fields); } /** - * The size group (also known as "size type") for a product's size. Size groups are common in the fashion industry to define size segments and suggested audiences for wearable products. Multiple values can be combined, for example "men's big and tall", "petite maternity" or "regular" + * 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 string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $sizeGroup; + protected $hasMeasurement; /** - * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. + * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $suggestedMeasurement; + protected $suggestedAge; /** - * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers. + * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - protected $suggestedAge; + protected $suggestedGender; /** - * 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. + * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $hasMeasurement; + protected $suggestedMeasurement; /** - * The size system used to identify a product's size. Typically either a standard (for example, "GS1" or "ISO-EN13402"), country code (for example "US" or "JP"), or a measuring system (for example "Metric" or "Imperial"). + * The size group (also known as "size type") for a product's size. Size groups are common in the fashion industry to define size segments and suggested audiences for wearable products. Multiple values can be combined, for example "men's big and tall", "petite maternity" or "regular". * * - * @var string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null + * @var string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null */ - protected $sizeSystem; + protected $sizeGroup; /** - * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". + * The size system used to identify a product's size. Typically either a standard (for example, "GS1" or "ISO-EN13402"), country code (for example "US" or "JP"), or a measuring system (for example "Metric" or "Imperial"). * * - * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @var \OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|string|null */ - protected $suggestedGender; + protected $sizeSystem; /** - * @return string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSizeGroup() + public function getHasMeasurement() { - return $this->sizeGroup; + return $this->hasMeasurement; } /** - * @param string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null $sizeGroup + * @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 setSizeGroup($sizeGroup) + public function setHasMeasurement($hasMeasurement) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration", - "null", ]; - $sizeGroup = self::checkTypes($sizeGroup, $types); + $hasMeasurement = self::checkTypes($hasMeasurement, $types); - $this->sizeGroup = $sizeGroup; + $this->hasMeasurement = $hasMeasurement; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSuggestedMeasurement() + public function getSuggestedAge() { - return $this->suggestedMeasurement; + return $this->suggestedAge; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMeasurement($suggestedMeasurement) + public function setSuggestedAge($suggestedAge) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); + $suggestedAge = self::checkTypes($suggestedAge, $types); - $this->suggestedMeasurement = $suggestedMeasurement; + $this->suggestedAge = $suggestedAge; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - public function getSuggestedAge() + public function getSuggestedGender() { - return $this->suggestedAge; + return $this->suggestedGender; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge + * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedAge($suggestedAge) + public function setSuggestedGender($suggestedGender) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\GenderType", "string", + "null", ]; - $suggestedAge = self::checkTypes($suggestedAge, $types); + $suggestedGender = self::checkTypes($suggestedGender, $types); - $this->suggestedAge = $suggestedAge; + $this->suggestedGender = $suggestedGender; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHasMeasurement() + public function getSuggestedMeasurement() { - return $this->hasMeasurement; + return $this->suggestedMeasurement; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMeasurement($hasMeasurement) + public function setSuggestedMeasurement($suggestedMeasurement) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $hasMeasurement = self::checkTypes($hasMeasurement, $types); + $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); - $this->hasMeasurement = $hasMeasurement; + $this->suggestedMeasurement = $suggestedMeasurement; } /** - * @return string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null + * @return string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null */ - public function getSizeSystem() + public function getSizeGroup() { - return $this->sizeSystem; + return $this->sizeGroup; } /** - * @param string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null $sizeSystem + * @param string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null $sizeGroup * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSizeSystem($sizeSystem) + public function setSizeGroup($sizeGroup) { $types = [ "string", - "\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration", + "\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration", "null", ]; - $sizeSystem = self::checkTypes($sizeSystem, $types); + $sizeGroup = self::checkTypes($sizeGroup, $types); - $this->sizeSystem = $sizeSystem; + $this->sizeGroup = $sizeGroup; } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return \OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|string|null */ - public function getSuggestedGender() + public function getSizeSystem() { - return $this->suggestedGender; + return $this->sizeSystem; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender + * @param \OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|string|null $sizeSystem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedGender($suggestedGender) + public function setSizeSystem($sizeSystem) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", + "\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration", "string", "null", ]; - $suggestedGender = self::checkTypes($suggestedGender, $types); + $sizeSystem = self::checkTypes($sizeSystem, $types); - $this->suggestedGender = $suggestedGender; + $this->sizeSystem = $sizeSystem; } } diff --git a/src/Models/SchemaOrg/SoftwareApplication.php b/src/Models/SchemaOrg/SoftwareApplication.php index 6c6eef7d..2190e25f 100644 --- a/src/Models/SchemaOrg/SoftwareApplication.php +++ b/src/Models/SchemaOrg/SoftwareApplication.php @@ -17,805 +17,805 @@ public static function getType() public static function fieldList() { $fields = [ - "countriesSupported" => "countriesSupported", - "installUrl" => "installUrl", - "operatingSystem" => "operatingSystem", "memoryRequirements" => "memoryRequirements", - "softwareVersion" => "softwareVersion", - "storageRequirements" => "storageRequirements", - "softwareHelp" => "softwareHelp", - "applicationSubCategory" => "applicationSubCategory", - "downloadUrl" => "downloadUrl", + "device" => "device", + "screenshot" => "screenshot", + "releaseNotes" => "releaseNotes", + "supportingData" => "supportingData", "applicationCategory" => "applicationCategory", "countriesNotSupported" => "countriesNotSupported", - "softwareRequirements" => "softwareRequirements", - "softwareAddOn" => "softwareAddOn", - "applicationSuite" => "applicationSuite", - "requirements" => "requirements", "permissions" => "permissions", + "operatingSystem" => "operatingSystem", + "availableOnDevice" => "availableOnDevice", + "softwareHelp" => "softwareHelp", + "fileSize" => "fileSize", + "requirements" => "requirements", + "storageRequirements" => "storageRequirements", "processorRequirements" => "processorRequirements", - "screenshot" => "screenshot", + "countriesSupported" => "countriesSupported", + "softwareAddOn" => "softwareAddOn", + "softwareRequirements" => "softwareRequirements", + "applicationSuite" => "applicationSuite", + "downloadUrl" => "downloadUrl", + "softwareVersion" => "softwareVersion", "featureList" => "featureList", - "releaseNotes" => "releaseNotes", - "supportingData" => "supportingData", - "fileSize" => "fileSize", - "device" => "device", - "availableOnDevice" => "availableOnDevice", + "applicationSubCategory" => "applicationSubCategory", + "installUrl" => "installUrl", ]; return array_merge(parent::fieldList(), $fields); } /** - * Countries for which the application is supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. + * Minimum memory requirements. * * * @var string */ - protected $countriesSupported; + protected $memoryRequirements; /** - * URL at which the app may be installed, if different from the URL of the item. + * Device required to run the application. Used in cases where a specific make/model is required to run the application. * * * @var string */ - protected $installUrl; + protected $device; /** - * Operating systems supported (Windows 7, OSX 10.6, Android 1.6). + * A link to a screenshot image of the app. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\ImageObject */ - protected $operatingSystem; + protected $screenshot; /** - * Minimum memory requirements. + * Description of what changed in this version. * * * @var string */ - protected $memoryRequirements; + protected $releaseNotes; /** - * Version of the software instance. + * Supporting data for a SoftwareApplication. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DataFeed|string */ - protected $softwareVersion; + protected $supportingData; /** - * Storage requirements (free space required). + * Type of software application, e.g. 'Game, Multimedia'. * * * @var string */ - protected $storageRequirements; + protected $applicationCategory; /** - * Software application help. + * Countries for which the application is not supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string */ - protected $softwareHelp; + protected $countriesNotSupported; /** - * Subcategory of the application, e.g. 'Arcade Game'. + * Permission(s) required to run the app (for example, a mobile app may require full internet access or may run only on wifi). * * * @var string */ - protected $applicationSubCategory; + protected $permissions; /** - * If the file can be downloaded, URL to download the binary. + * Operating systems supported (Windows 7, OS X 10.6, Android 1.6). * * * @var string */ - protected $downloadUrl; + protected $operatingSystem; /** - * Type of software application, e.g. 'Game, Multimedia'. + * Device required to run the application. Used in cases where a specific make/model is required to run the application. * * * @var string */ - protected $applicationCategory; + protected $availableOnDevice; /** - * Countries for which the application is not supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. + * Software application help. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $countriesNotSupported; + protected $softwareHelp; /** - * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (Examples: DirectX, Java or .NET runtime). + * Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed. * * * @var string */ - protected $softwareRequirements; + protected $fileSize; /** - * Additional content for a software application. + * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (examples: DirectX, Java or .NET runtime). * * - * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @var string */ - protected $softwareAddOn; + protected $requirements; /** - * The name of the application suite to which the application belongs (e.g. Excel belongs to Office). + * Storage requirements (free space required). * * * @var string */ - protected $applicationSuite; + protected $storageRequirements; /** - * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (Examples: DirectX, Java or .NET runtime). + * Processor architecture required to run the application (e.g. IA64). * * * @var string */ - protected $requirements; + protected $processorRequirements; /** - * Permission(s) required to run the app (for example, a mobile app may require full internet access or may run only on wifi). + * Countries for which the application is supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. * * * @var string */ - protected $permissions; + protected $countriesSupported; /** - * Processor architecture required to run the application (e.g. IA64). + * Additional content for a software application. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - protected $processorRequirements; + protected $softwareAddOn; /** - * A link to a screenshot image of the app. + * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (examples: DirectX, Java or .NET runtime). * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var string */ - protected $screenshot; + protected $softwareRequirements; /** - * Features or modules provided by this application (and possibly required by other applications). + * The name of the application suite to which the application belongs (e.g. Excel belongs to Office). * * * @var string */ - protected $featureList; + protected $applicationSuite; /** - * Description of what changed in this version. + * If the file can be downloaded, URL to download the binary. * * * @var string */ - protected $releaseNotes; + protected $downloadUrl; /** - * Supporting data for a SoftwareApplication. + * Version of the software instance. * * - * @var \OpenActive\Models\SchemaOrg\DataFeed|string + * @var string */ - protected $supportingData; + protected $softwareVersion; /** - * Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed. + * Features or modules provided by this application (and possibly required by other applications). * * * @var string */ - protected $fileSize; + protected $featureList; /** - * Device required to run the application. Used in cases where a specific make/model is required to run the application. + * Subcategory of the application, e.g. 'Arcade Game'. * * * @var string */ - protected $device; + protected $applicationSubCategory; /** - * Device required to run the application. Used in cases where a specific make/model is required to run the application. + * URL at which the app may be installed, if different from the URL of the item. * * * @var string */ - protected $availableOnDevice; + protected $installUrl; /** * @return string */ - public function getCountriesSupported() + public function getMemoryRequirements() { - return $this->countriesSupported; + return $this->memoryRequirements; } /** - * @param string $countriesSupported + * @param string $memoryRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountriesSupported($countriesSupported) + public function setMemoryRequirements($memoryRequirements) { $types = [ "string", ]; - $countriesSupported = self::checkTypes($countriesSupported, $types); + $memoryRequirements = self::checkTypes($memoryRequirements, $types); - $this->countriesSupported = $countriesSupported; + $this->memoryRequirements = $memoryRequirements; } /** * @return string */ - public function getInstallUrl() + public function getDevice() { - return $this->installUrl; + return $this->device; } /** - * @param string $installUrl + * @param string $device * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInstallUrl($installUrl) + public function setDevice($device) { $types = [ "string", ]; - $installUrl = self::checkTypes($installUrl, $types); + $device = self::checkTypes($device, $types); - $this->installUrl = $installUrl; + $this->device = $device; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\ImageObject */ - public function getOperatingSystem() + public function getScreenshot() { - return $this->operatingSystem; + return $this->screenshot; } /** - * @param string $operatingSystem + * @param string|\OpenActive\Models\SchemaOrg\ImageObject $screenshot * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOperatingSystem($operatingSystem) + public function setScreenshot($screenshot) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $operatingSystem = self::checkTypes($operatingSystem, $types); + $screenshot = self::checkTypes($screenshot, $types); - $this->operatingSystem = $operatingSystem; + $this->screenshot = $screenshot; } /** * @return string */ - public function getMemoryRequirements() + public function getReleaseNotes() { - return $this->memoryRequirements; + return $this->releaseNotes; } /** - * @param string $memoryRequirements + * @param string $releaseNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMemoryRequirements($memoryRequirements) + public function setReleaseNotes($releaseNotes) { $types = [ "string", ]; - $memoryRequirements = self::checkTypes($memoryRequirements, $types); + $releaseNotes = self::checkTypes($releaseNotes, $types); - $this->memoryRequirements = $memoryRequirements; + $this->releaseNotes = $releaseNotes; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DataFeed|string */ - public function getSoftwareVersion() + public function getSupportingData() { - return $this->softwareVersion; + return $this->supportingData; } /** - * @param string $softwareVersion + * @param \OpenActive\Models\SchemaOrg\DataFeed|string $supportingData * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareVersion($softwareVersion) + public function setSupportingData($supportingData) { $types = [ + "\OpenActive\Models\SchemaOrg\DataFeed", "string", ]; - $softwareVersion = self::checkTypes($softwareVersion, $types); + $supportingData = self::checkTypes($supportingData, $types); - $this->softwareVersion = $softwareVersion; + $this->supportingData = $supportingData; } /** * @return string */ - public function getStorageRequirements() + public function getApplicationCategory() { - return $this->storageRequirements; + return $this->applicationCategory; } /** - * @param string $storageRequirements + * @param string $applicationCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStorageRequirements($storageRequirements) + public function setApplicationCategory($applicationCategory) { $types = [ "string", ]; - $storageRequirements = self::checkTypes($storageRequirements, $types); + $applicationCategory = self::checkTypes($applicationCategory, $types); - $this->storageRequirements = $storageRequirements; + $this->applicationCategory = $applicationCategory; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getSoftwareHelp() + public function getCountriesNotSupported() { - return $this->softwareHelp; + return $this->countriesNotSupported; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $softwareHelp + * @param string $countriesNotSupported * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareHelp($softwareHelp) + public function setCountriesNotSupported($countriesNotSupported) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $softwareHelp = self::checkTypes($softwareHelp, $types); + $countriesNotSupported = self::checkTypes($countriesNotSupported, $types); - $this->softwareHelp = $softwareHelp; + $this->countriesNotSupported = $countriesNotSupported; } /** * @return string */ - public function getApplicationSubCategory() + public function getPermissions() { - return $this->applicationSubCategory; + return $this->permissions; } /** - * @param string $applicationSubCategory + * @param string $permissions * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationSubCategory($applicationSubCategory) + public function setPermissions($permissions) { $types = [ "string", ]; - $applicationSubCategory = self::checkTypes($applicationSubCategory, $types); + $permissions = self::checkTypes($permissions, $types); - $this->applicationSubCategory = $applicationSubCategory; + $this->permissions = $permissions; } /** * @return string */ - public function getDownloadUrl() + public function getOperatingSystem() { - return $this->downloadUrl; + return $this->operatingSystem; } /** - * @param string $downloadUrl + * @param string $operatingSystem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDownloadUrl($downloadUrl) + public function setOperatingSystem($operatingSystem) { $types = [ "string", ]; - $downloadUrl = self::checkTypes($downloadUrl, $types); + $operatingSystem = self::checkTypes($operatingSystem, $types); - $this->downloadUrl = $downloadUrl; + $this->operatingSystem = $operatingSystem; } /** * @return string */ - public function getApplicationCategory() + public function getAvailableOnDevice() { - return $this->applicationCategory; + return $this->availableOnDevice; } /** - * @param string $applicationCategory + * @param string $availableOnDevice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationCategory($applicationCategory) + public function setAvailableOnDevice($availableOnDevice) { $types = [ "string", ]; - $applicationCategory = self::checkTypes($applicationCategory, $types); + $availableOnDevice = self::checkTypes($availableOnDevice, $types); - $this->applicationCategory = $applicationCategory; + $this->availableOnDevice = $availableOnDevice; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getCountriesNotSupported() + public function getSoftwareHelp() { - return $this->countriesNotSupported; + return $this->softwareHelp; } /** - * @param string $countriesNotSupported + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $softwareHelp * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountriesNotSupported($countriesNotSupported) + public function setSoftwareHelp($softwareHelp) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $countriesNotSupported = self::checkTypes($countriesNotSupported, $types); + $softwareHelp = self::checkTypes($softwareHelp, $types); - $this->countriesNotSupported = $countriesNotSupported; + $this->softwareHelp = $softwareHelp; } /** * @return string */ - public function getSoftwareRequirements() + public function getFileSize() { - return $this->softwareRequirements; + return $this->fileSize; } /** - * @param string $softwareRequirements + * @param string $fileSize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareRequirements($softwareRequirements) + public function setFileSize($fileSize) { $types = [ "string", ]; - $softwareRequirements = self::checkTypes($softwareRequirements, $types); + $fileSize = self::checkTypes($fileSize, $types); - $this->softwareRequirements = $softwareRequirements; + $this->fileSize = $fileSize; } /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @return string */ - public function getSoftwareAddOn() + public function getRequirements() { - return $this->softwareAddOn; + return $this->requirements; } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $softwareAddOn + * @param string $requirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareAddOn($softwareAddOn) + public function setRequirements($requirements) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $softwareAddOn = self::checkTypes($softwareAddOn, $types); + $requirements = self::checkTypes($requirements, $types); - $this->softwareAddOn = $softwareAddOn; + $this->requirements = $requirements; } /** * @return string */ - public function getApplicationSuite() + public function getStorageRequirements() { - return $this->applicationSuite; + return $this->storageRequirements; } /** - * @param string $applicationSuite + * @param string $storageRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationSuite($applicationSuite) + public function setStorageRequirements($storageRequirements) { $types = [ "string", ]; - $applicationSuite = self::checkTypes($applicationSuite, $types); + $storageRequirements = self::checkTypes($storageRequirements, $types); - $this->applicationSuite = $applicationSuite; + $this->storageRequirements = $storageRequirements; } /** * @return string */ - public function getRequirements() + public function getProcessorRequirements() { - return $this->requirements; + return $this->processorRequirements; } /** - * @param string $requirements + * @param string $processorRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequirements($requirements) + public function setProcessorRequirements($processorRequirements) { $types = [ "string", ]; - $requirements = self::checkTypes($requirements, $types); + $processorRequirements = self::checkTypes($processorRequirements, $types); - $this->requirements = $requirements; + $this->processorRequirements = $processorRequirements; } /** * @return string */ - public function getPermissions() + public function getCountriesSupported() { - return $this->permissions; + return $this->countriesSupported; } /** - * @param string $permissions + * @param string $countriesSupported * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPermissions($permissions) + public function setCountriesSupported($countriesSupported) { $types = [ "string", ]; - $permissions = self::checkTypes($permissions, $types); + $countriesSupported = self::checkTypes($countriesSupported, $types); - $this->permissions = $permissions; + $this->countriesSupported = $countriesSupported; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - public function getProcessorRequirements() + public function getSoftwareAddOn() { - return $this->processorRequirements; + return $this->softwareAddOn; } /** - * @param string $processorRequirements + * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $softwareAddOn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProcessorRequirements($processorRequirements) + public function setSoftwareAddOn($softwareAddOn) { $types = [ + "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $processorRequirements = self::checkTypes($processorRequirements, $types); + $softwareAddOn = self::checkTypes($softwareAddOn, $types); - $this->processorRequirements = $processorRequirements; + $this->softwareAddOn = $softwareAddOn; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return string */ - public function getScreenshot() + public function getSoftwareRequirements() { - return $this->screenshot; + return $this->softwareRequirements; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $screenshot + * @param string $softwareRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setScreenshot($screenshot) + public function setSoftwareRequirements($softwareRequirements) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $screenshot = self::checkTypes($screenshot, $types); + $softwareRequirements = self::checkTypes($softwareRequirements, $types); - $this->screenshot = $screenshot; + $this->softwareRequirements = $softwareRequirements; } /** * @return string */ - public function getFeatureList() + public function getApplicationSuite() { - return $this->featureList; + return $this->applicationSuite; } /** - * @param string $featureList + * @param string $applicationSuite * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFeatureList($featureList) + public function setApplicationSuite($applicationSuite) { $types = [ "string", ]; - $featureList = self::checkTypes($featureList, $types); + $applicationSuite = self::checkTypes($applicationSuite, $types); - $this->featureList = $featureList; + $this->applicationSuite = $applicationSuite; } /** * @return string */ - public function getReleaseNotes() + public function getDownloadUrl() { - return $this->releaseNotes; + return $this->downloadUrl; } /** - * @param string $releaseNotes + * @param string $downloadUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReleaseNotes($releaseNotes) + public function setDownloadUrl($downloadUrl) { $types = [ "string", ]; - $releaseNotes = self::checkTypes($releaseNotes, $types); + $downloadUrl = self::checkTypes($downloadUrl, $types); - $this->releaseNotes = $releaseNotes; + $this->downloadUrl = $downloadUrl; } /** - * @return \OpenActive\Models\SchemaOrg\DataFeed|string + * @return string */ - public function getSupportingData() + public function getSoftwareVersion() { - return $this->supportingData; + return $this->softwareVersion; } /** - * @param \OpenActive\Models\SchemaOrg\DataFeed|string $supportingData + * @param string $softwareVersion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupportingData($supportingData) + public function setSoftwareVersion($softwareVersion) { $types = [ - "\OpenActive\Models\SchemaOrg\DataFeed", "string", ]; - $supportingData = self::checkTypes($supportingData, $types); + $softwareVersion = self::checkTypes($softwareVersion, $types); - $this->supportingData = $supportingData; + $this->softwareVersion = $softwareVersion; } /** * @return string */ - public function getFileSize() + public function getFeatureList() { - return $this->fileSize; + return $this->featureList; } /** - * @param string $fileSize + * @param string $featureList * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFileSize($fileSize) + public function setFeatureList($featureList) { $types = [ "string", ]; - $fileSize = self::checkTypes($fileSize, $types); + $featureList = self::checkTypes($featureList, $types); - $this->fileSize = $fileSize; + $this->featureList = $featureList; } /** * @return string */ - public function getDevice() + public function getApplicationSubCategory() { - return $this->device; + return $this->applicationSubCategory; } /** - * @param string $device + * @param string $applicationSubCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDevice($device) + public function setApplicationSubCategory($applicationSubCategory) { $types = [ "string", ]; - $device = self::checkTypes($device, $types); + $applicationSubCategory = self::checkTypes($applicationSubCategory, $types); - $this->device = $device; + $this->applicationSubCategory = $applicationSubCategory; } /** * @return string */ - public function getAvailableOnDevice() + public function getInstallUrl() { - return $this->availableOnDevice; + return $this->installUrl; } /** - * @param string $availableOnDevice + * @param string $installUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableOnDevice($availableOnDevice) + public function setInstallUrl($installUrl) { $types = [ "string", ]; - $availableOnDevice = self::checkTypes($availableOnDevice, $types); + $installUrl = self::checkTypes($installUrl, $types); - $this->availableOnDevice = $availableOnDevice; + $this->installUrl = $installUrl; } } diff --git a/src/Models/SchemaOrg/SoftwareSourceCode.php b/src/Models/SchemaOrg/SoftwareSourceCode.php index 2bf0a0af..13985efb 100644 --- a/src/Models/SchemaOrg/SoftwareSourceCode.php +++ b/src/Models/SchemaOrg/SoftwareSourceCode.php @@ -17,44 +17,44 @@ public static function getType() public static function fieldList() { $fields = [ - "programmingLanguage" => "programmingLanguage", "sampleType" => "sampleType", - "runtimePlatform" => "runtimePlatform", + "programmingLanguage" => "programmingLanguage", + "codeSampleType" => "codeSampleType", "runtime" => "runtime", "targetProduct" => "targetProduct", + "runtimePlatform" => "runtimePlatform", "codeRepository" => "codeRepository", - "codeSampleType" => "codeSampleType", ]; return array_merge(parent::fieldList(), $fields); } /** - * The computer programming language. + * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. * * - * @var string|\OpenActive\Models\SchemaOrg\ComputerLanguage + * @var string */ - protected $programmingLanguage; + protected $sampleType; /** - * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. + * The computer programming language. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ComputerLanguage|string */ - protected $sampleType; + protected $programmingLanguage; /** - * Runtime platform or script interpreter dependencies (Example - Java v1, Python2.3, .Net Framework 3.0). + * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. * * * @var string */ - protected $runtimePlatform; + protected $codeSampleType; /** - * Runtime platform or script interpreter dependencies (Example - Java v1, Python2.3, .Net Framework 3.0). + * Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0). * * * @var string @@ -70,92 +70,92 @@ public static function fieldList() { protected $targetProduct; /** - * Link to the repository where the un-compiled, human readable code and related code is located (SVN, github, CodePlex). + * Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0). * * * @var string */ - protected $codeRepository; + protected $runtimePlatform; /** - * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. + * Link to the repository where the un-compiled, human readable code and related code is located (SVN, GitHub, CodePlex). * * * @var string */ - protected $codeSampleType; + protected $codeRepository; /** - * @return string|\OpenActive\Models\SchemaOrg\ComputerLanguage + * @return string */ - public function getProgrammingLanguage() + public function getSampleType() { - return $this->programmingLanguage; + return $this->sampleType; } /** - * @param string|\OpenActive\Models\SchemaOrg\ComputerLanguage $programmingLanguage + * @param string $sampleType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgrammingLanguage($programmingLanguage) + public function setSampleType($sampleType) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\ComputerLanguage", ]; - $programmingLanguage = self::checkTypes($programmingLanguage, $types); + $sampleType = self::checkTypes($sampleType, $types); - $this->programmingLanguage = $programmingLanguage; + $this->sampleType = $sampleType; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ComputerLanguage|string */ - public function getSampleType() + public function getProgrammingLanguage() { - return $this->sampleType; + return $this->programmingLanguage; } /** - * @param string $sampleType + * @param \OpenActive\Models\SchemaOrg\ComputerLanguage|string $programmingLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSampleType($sampleType) + public function setProgrammingLanguage($programmingLanguage) { $types = [ + "\OpenActive\Models\SchemaOrg\ComputerLanguage", "string", ]; - $sampleType = self::checkTypes($sampleType, $types); + $programmingLanguage = self::checkTypes($programmingLanguage, $types); - $this->sampleType = $sampleType; + $this->programmingLanguage = $programmingLanguage; } /** * @return string */ - public function getRuntimePlatform() + public function getCodeSampleType() { - return $this->runtimePlatform; + return $this->codeSampleType; } /** - * @param string $runtimePlatform + * @param string $codeSampleType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRuntimePlatform($runtimePlatform) + public function setCodeSampleType($codeSampleType) { $types = [ "string", ]; - $runtimePlatform = self::checkTypes($runtimePlatform, $types); + $codeSampleType = self::checkTypes($codeSampleType, $types); - $this->runtimePlatform = $runtimePlatform; + $this->codeSampleType = $codeSampleType; } /** @@ -210,49 +210,49 @@ public function setTargetProduct($targetProduct) /** * @return string */ - public function getCodeRepository() + public function getRuntimePlatform() { - return $this->codeRepository; + return $this->runtimePlatform; } /** - * @param string $codeRepository + * @param string $runtimePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCodeRepository($codeRepository) + public function setRuntimePlatform($runtimePlatform) { $types = [ "string", ]; - $codeRepository = self::checkTypes($codeRepository, $types); + $runtimePlatform = self::checkTypes($runtimePlatform, $types); - $this->codeRepository = $codeRepository; + $this->runtimePlatform = $runtimePlatform; } /** * @return string */ - public function getCodeSampleType() + public function getCodeRepository() { - return $this->codeSampleType; + return $this->codeRepository; } /** - * @param string $codeSampleType + * @param string $codeRepository * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCodeSampleType($codeSampleType) + public function setCodeRepository($codeRepository) { $types = [ "string", ]; - $codeSampleType = self::checkTypes($codeSampleType, $types); + $codeRepository = self::checkTypes($codeRepository, $types); - $this->codeSampleType = $codeSampleType; + $this->codeRepository = $codeRepository; } } diff --git a/src/Models/SchemaOrg/SpecialAnnouncement.php b/src/Models/SchemaOrg/SpecialAnnouncement.php index e51824dd..fd266c96 100644 --- a/src/Models/SchemaOrg/SpecialAnnouncement.php +++ b/src/Models/SchemaOrg/SpecialAnnouncement.php @@ -17,460 +17,460 @@ public static function getType() public static function fieldList() { $fields = [ - "governmentBenefitsInfo" => "governmentBenefitsInfo", + "webFeed" => "webFeed", + "datePosted" => "datePosted", + "diseasePreventionInfo" => "diseasePreventionInfo", + "publicTransportClosuresInfo" => "publicTransportClosuresInfo", "category" => "category", + "schoolClosuresInfo" => "schoolClosuresInfo", + "quarantineGuidelines" => "quarantineGuidelines", + "governmentBenefitsInfo" => "governmentBenefitsInfo", + "travelBans" => "travelBans", "diseaseSpreadStatistics" => "diseaseSpreadStatistics", "gettingTestedInfo" => "gettingTestedInfo", "announcementLocation" => "announcementLocation", - "travelBans" => "travelBans", - "diseasePreventionInfo" => "diseasePreventionInfo", - "publicTransportClosuresInfo" => "publicTransportClosuresInfo", - "schoolClosuresInfo" => "schoolClosuresInfo", - "datePosted" => "datePosted", "newsUpdatesAndGuidelines" => "newsUpdatesAndGuidelines", - "quarantineGuidelines" => "quarantineGuidelines", - "webFeed" => "webFeed", ]; return array_merge(parent::fieldList(), $fields); } /** - * governmentBenefitsInfo provides information about government benefits associated with a SpecialAnnouncement. + * The URL for a feed, e.g. associated with a podcast series, blog, or series of date-stamped updates. This is usually RSS or Atom. * * - * @var \OpenActive\Models\SchemaOrg\GovernmentService|string + * @var string|\OpenActive\Models\SchemaOrg\DataFeed */ - protected $governmentBenefitsInfo; + protected $webFeed; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * Publication date of an online listing. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var Date|DateTime|null */ - protected $category; + protected $datePosted; /** - * Statistical information about the spread of a disease, either as [[WebContent]], or - * described directly as a [[Dataset]], or the specific [[Observation]]s in the dataset. When a [[WebContent]] URL is - * provided, the page indicated might also contain more such markup. + * Information about disease prevention. * * - * @var \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string + * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $diseaseSpreadStatistics; + protected $diseasePreventionInfo; /** - * Information about getting tested (for a [[MedicalCondition]]), e.g. in the context of a pandemic. + * Information about public transport closures. * * * @var \OpenActive\Models\SchemaOrg\WebContent|string */ - protected $gettingTestedInfo; + protected $publicTransportClosuresInfo; /** - * Indicates a specific [[CivicStructure]] or [[LocalBusiness]] associated with the SpecialAnnouncement. For example, a specific testing facility or business with special opening hours. For a larger geographic region like a quarantine of an entire region, use [[spatialCoverage]]. + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string + * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null */ - protected $announcementLocation; + protected $category; /** - * Information about travel bans, e.g. in the context of a pandemic. + * Information about school closures. * * * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $travelBans; + protected $schoolClosuresInfo; /** - * Information about disease prevention. + * Guidelines about quarantine rules, e.g. in the context of a pandemic. * * - * @var string|\OpenActive\Models\SchemaOrg\WebContent + * @var \OpenActive\Models\SchemaOrg\WebContent|string */ - protected $diseasePreventionInfo; + protected $quarantineGuidelines; /** - * Information about public transport closures. + * governmentBenefitsInfo provides information about government benefits associated with a SpecialAnnouncement. * * - * @var string|\OpenActive\Models\SchemaOrg\WebContent + * @var \OpenActive\Models\SchemaOrg\GovernmentService|string */ - protected $publicTransportClosuresInfo; + protected $governmentBenefitsInfo; /** - * Information about school closures. + * Information about travel bans, e.g. in the context of a pandemic. * * - * @var \OpenActive\Models\SchemaOrg\WebContent|string + * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $schoolClosuresInfo; + protected $travelBans; /** - * Publication date of an online listing. + * Statistical information about the spread of a disease, either as [[WebContent]], or + * described directly as a [[Dataset]], or the specific [[Observation]]s in the dataset. When a [[WebContent]] URL is + * provided, the page indicated might also contain more such markup. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|string */ - protected $datePosted; + protected $diseaseSpreadStatistics; /** - * Indicates a page with news updates and guidelines. This could often be (but is not required to be) the main page containing [[SpecialAnnouncement]] markup on a site. + * Information about getting tested (for a [[MedicalCondition]]), e.g. in the context of a pandemic. * * * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $newsUpdatesAndGuidelines; + protected $gettingTestedInfo; /** - * Guidelines about quarantine rules, e.g. in the context of a pandemic. + * Indicates a specific [[CivicStructure]] or [[LocalBusiness]] associated with the SpecialAnnouncement. For example, a specific testing facility or business with special opening hours. For a larger geographic region like a quarantine of an entire region, use [[spatialCoverage]]. * * - * @var string|\OpenActive\Models\SchemaOrg\WebContent + * @var \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string */ - protected $quarantineGuidelines; + protected $announcementLocation; /** - * The URL for a feed, e.g. associated with a podcast series, blog, or series of date-stamped updates. This is usually RSS or Atom. + * Indicates a page with news updates and guidelines. This could often be (but is not required to be) the main page containing [[SpecialAnnouncement]] markup on a site. * * - * @var \OpenActive\Models\SchemaOrg\DataFeed|string + * @var \OpenActive\Models\SchemaOrg\WebContent|string */ - protected $webFeed; + protected $newsUpdatesAndGuidelines; /** - * @return \OpenActive\Models\SchemaOrg\GovernmentService|string + * @return string|\OpenActive\Models\SchemaOrg\DataFeed */ - public function getGovernmentBenefitsInfo() + public function getWebFeed() { - return $this->governmentBenefitsInfo; + return $this->webFeed; } /** - * @param \OpenActive\Models\SchemaOrg\GovernmentService|string $governmentBenefitsInfo + * @param string|\OpenActive\Models\SchemaOrg\DataFeed $webFeed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGovernmentBenefitsInfo($governmentBenefitsInfo) + public function setWebFeed($webFeed) { $types = [ - "\OpenActive\Models\SchemaOrg\GovernmentService", "string", + "\OpenActive\Models\SchemaOrg\DataFeed", ]; - $governmentBenefitsInfo = self::checkTypes($governmentBenefitsInfo, $types); + $webFeed = self::checkTypes($webFeed, $types); - $this->governmentBenefitsInfo = $governmentBenefitsInfo; + $this->webFeed = $webFeed; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return Date|DateTime|null */ - public function getCategory() + public function getDatePosted() { - return $this->category; + return $this->datePosted; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param Date|DateTime|null $datePosted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setDatePosted($datePosted) { $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", + "Date", + "DateTime", "null", ]; - $category = self::checkTypes($category, $types); + $datePosted = self::checkTypes($datePosted, $types); - $this->category = $category; + $this->datePosted = $datePosted; } /** - * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string + * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getDiseaseSpreadStatistics() + public function getDiseasePreventionInfo() { - return $this->diseaseSpreadStatistics; + return $this->diseasePreventionInfo; } /** - * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string $diseaseSpreadStatistics + * @param string|\OpenActive\Models\SchemaOrg\WebContent $diseasePreventionInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiseaseSpreadStatistics($diseaseSpreadStatistics) + public function setDiseasePreventionInfo($diseasePreventionInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\Dataset", - "\OpenActive\Models\SchemaOrg\Observation", - "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $diseaseSpreadStatistics = self::checkTypes($diseaseSpreadStatistics, $types); + $diseasePreventionInfo = self::checkTypes($diseasePreventionInfo, $types); - $this->diseaseSpreadStatistics = $diseaseSpreadStatistics; + $this->diseasePreventionInfo = $diseasePreventionInfo; } /** * @return \OpenActive\Models\SchemaOrg\WebContent|string */ - public function getGettingTestedInfo() + public function getPublicTransportClosuresInfo() { - return $this->gettingTestedInfo; + return $this->publicTransportClosuresInfo; } /** - * @param \OpenActive\Models\SchemaOrg\WebContent|string $gettingTestedInfo + * @param \OpenActive\Models\SchemaOrg\WebContent|string $publicTransportClosuresInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGettingTestedInfo($gettingTestedInfo) + public function setPublicTransportClosuresInfo($publicTransportClosuresInfo) { $types = [ "\OpenActive\Models\SchemaOrg\WebContent", "string", ]; - $gettingTestedInfo = self::checkTypes($gettingTestedInfo, $types); + $publicTransportClosuresInfo = self::checkTypes($publicTransportClosuresInfo, $types); - $this->gettingTestedInfo = $gettingTestedInfo; + $this->publicTransportClosuresInfo = $publicTransportClosuresInfo; } /** - * @return \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string + * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|string|null */ - public function getAnnouncementLocation() + public function getCategory() { - return $this->announcementLocation; + return $this->category; } /** - * @param \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string $announcementLocation + * @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 setAnnouncementLocation($announcementLocation) + public function setCategory($category) { $types = [ - "\OpenActive\Models\SchemaOrg\CivicStructure", - "\OpenActive\Models\SchemaOrg\LocalBusiness", + "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", "string", + "null", ]; - $announcementLocation = self::checkTypes($announcementLocation, $types); + $category = self::checkTypes($category, $types); - $this->announcementLocation = $announcementLocation; + $this->category = $category; } /** * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getTravelBans() + public function getSchoolClosuresInfo() { - return $this->travelBans; + return $this->schoolClosuresInfo; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $travelBans + * @param string|\OpenActive\Models\SchemaOrg\WebContent $schoolClosuresInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTravelBans($travelBans) + public function setSchoolClosuresInfo($schoolClosuresInfo) { $types = [ "string", "\OpenActive\Models\SchemaOrg\WebContent", ]; - $travelBans = self::checkTypes($travelBans, $types); + $schoolClosuresInfo = self::checkTypes($schoolClosuresInfo, $types); - $this->travelBans = $travelBans; + $this->schoolClosuresInfo = $schoolClosuresInfo; } /** - * @return string|\OpenActive\Models\SchemaOrg\WebContent + * @return \OpenActive\Models\SchemaOrg\WebContent|string */ - public function getDiseasePreventionInfo() + public function getQuarantineGuidelines() { - return $this->diseasePreventionInfo; + return $this->quarantineGuidelines; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $diseasePreventionInfo + * @param \OpenActive\Models\SchemaOrg\WebContent|string $quarantineGuidelines * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiseasePreventionInfo($diseasePreventionInfo) + public function setQuarantineGuidelines($quarantineGuidelines) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\WebContent", + "string", ]; - $diseasePreventionInfo = self::checkTypes($diseasePreventionInfo, $types); + $quarantineGuidelines = self::checkTypes($quarantineGuidelines, $types); - $this->diseasePreventionInfo = $diseasePreventionInfo; + $this->quarantineGuidelines = $quarantineGuidelines; } /** - * @return string|\OpenActive\Models\SchemaOrg\WebContent + * @return \OpenActive\Models\SchemaOrg\GovernmentService|string */ - public function getPublicTransportClosuresInfo() + public function getGovernmentBenefitsInfo() { - return $this->publicTransportClosuresInfo; + return $this->governmentBenefitsInfo; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $publicTransportClosuresInfo + * @param \OpenActive\Models\SchemaOrg\GovernmentService|string $governmentBenefitsInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublicTransportClosuresInfo($publicTransportClosuresInfo) + public function setGovernmentBenefitsInfo($governmentBenefitsInfo) { $types = [ + "\OpenActive\Models\SchemaOrg\GovernmentService", "string", - "\OpenActive\Models\SchemaOrg\WebContent", ]; - $publicTransportClosuresInfo = self::checkTypes($publicTransportClosuresInfo, $types); + $governmentBenefitsInfo = self::checkTypes($governmentBenefitsInfo, $types); - $this->publicTransportClosuresInfo = $publicTransportClosuresInfo; + $this->governmentBenefitsInfo = $governmentBenefitsInfo; } /** - * @return \OpenActive\Models\SchemaOrg\WebContent|string + * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getSchoolClosuresInfo() + public function getTravelBans() { - return $this->schoolClosuresInfo; + return $this->travelBans; } /** - * @param \OpenActive\Models\SchemaOrg\WebContent|string $schoolClosuresInfo + * @param string|\OpenActive\Models\SchemaOrg\WebContent $travelBans * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSchoolClosuresInfo($schoolClosuresInfo) + public function setTravelBans($travelBans) { $types = [ - "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $schoolClosuresInfo = self::checkTypes($schoolClosuresInfo, $types); + $travelBans = self::checkTypes($travelBans, $types); - $this->schoolClosuresInfo = $schoolClosuresInfo; + $this->travelBans = $travelBans; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|string */ - public function getDatePosted() + public function getDiseaseSpreadStatistics() { - return $this->datePosted; + return $this->diseaseSpreadStatistics; } /** - * @param Date|DateTime|null $datePosted + * @param \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|string $diseaseSpreadStatistics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePosted($datePosted) + public function setDiseaseSpreadStatistics($diseaseSpreadStatistics) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\WebContent", + "\OpenActive\Models\SchemaOrg\Dataset", + "\OpenActive\Models\SchemaOrg\Observation", + "string", ]; - $datePosted = self::checkTypes($datePosted, $types); + $diseaseSpreadStatistics = self::checkTypes($diseaseSpreadStatistics, $types); - $this->datePosted = $datePosted; + $this->diseaseSpreadStatistics = $diseaseSpreadStatistics; } /** * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getNewsUpdatesAndGuidelines() + public function getGettingTestedInfo() { - return $this->newsUpdatesAndGuidelines; + return $this->gettingTestedInfo; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $newsUpdatesAndGuidelines + * @param string|\OpenActive\Models\SchemaOrg\WebContent $gettingTestedInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNewsUpdatesAndGuidelines($newsUpdatesAndGuidelines) + public function setGettingTestedInfo($gettingTestedInfo) { $types = [ "string", "\OpenActive\Models\SchemaOrg\WebContent", ]; - $newsUpdatesAndGuidelines = self::checkTypes($newsUpdatesAndGuidelines, $types); + $gettingTestedInfo = self::checkTypes($gettingTestedInfo, $types); - $this->newsUpdatesAndGuidelines = $newsUpdatesAndGuidelines; + $this->gettingTestedInfo = $gettingTestedInfo; } /** - * @return string|\OpenActive\Models\SchemaOrg\WebContent + * @return \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string */ - public function getQuarantineGuidelines() + public function getAnnouncementLocation() { - return $this->quarantineGuidelines; + return $this->announcementLocation; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $quarantineGuidelines + * @param \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string $announcementLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setQuarantineGuidelines($quarantineGuidelines) + public function setAnnouncementLocation($announcementLocation) { $types = [ + "\OpenActive\Models\SchemaOrg\CivicStructure", + "\OpenActive\Models\SchemaOrg\LocalBusiness", "string", - "\OpenActive\Models\SchemaOrg\WebContent", ]; - $quarantineGuidelines = self::checkTypes($quarantineGuidelines, $types); + $announcementLocation = self::checkTypes($announcementLocation, $types); - $this->quarantineGuidelines = $quarantineGuidelines; + $this->announcementLocation = $announcementLocation; } /** - * @return \OpenActive\Models\SchemaOrg\DataFeed|string + * @return \OpenActive\Models\SchemaOrg\WebContent|string */ - public function getWebFeed() + public function getNewsUpdatesAndGuidelines() { - return $this->webFeed; + return $this->newsUpdatesAndGuidelines; } /** - * @param \OpenActive\Models\SchemaOrg\DataFeed|string $webFeed + * @param \OpenActive\Models\SchemaOrg\WebContent|string $newsUpdatesAndGuidelines * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWebFeed($webFeed) + public function setNewsUpdatesAndGuidelines($newsUpdatesAndGuidelines) { $types = [ - "\OpenActive\Models\SchemaOrg\DataFeed", + "\OpenActive\Models\SchemaOrg\WebContent", "string", ]; - $webFeed = self::checkTypes($webFeed, $types); + $newsUpdatesAndGuidelines = self::checkTypes($newsUpdatesAndGuidelines, $types); - $this->webFeed = $webFeed; + $this->newsUpdatesAndGuidelines = $newsUpdatesAndGuidelines; } } diff --git a/src/Models/SchemaOrg/SportsEvent.php b/src/Models/SchemaOrg/SportsEvent.php index 4bed306f..5899baa5 100644 --- a/src/Models/SchemaOrg/SportsEvent.php +++ b/src/Models/SchemaOrg/SportsEvent.php @@ -17,9 +17,9 @@ public static function getType() public static function fieldList() { $fields = [ + "competitor" => "competitor", "homeTeam" => "homeTeam", "awayTeam" => "awayTeam", - "competitor" => "competitor", "sport" => "sport", ]; @@ -27,28 +27,28 @@ public static function fieldList() { } /** - * The home team in a sports event. + * A competitor in a sports event. * * * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - protected $homeTeam; + protected $competitor; /** - * The away team in a sports event. + * The home team in a sports event. * * - * @var \OpenActive\Models\SchemaOrg\SportsTeam|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - protected $awayTeam; + protected $homeTeam; /** - * A competitor in a sports event. + * The away team in a sports event. * * * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - protected $competitor; + protected $awayTeam; /** * A type of sport (e.g. Baseball). @@ -61,17 +61,17 @@ public static function fieldList() { /** * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function getHomeTeam() + public function getCompetitor() { - return $this->homeTeam; + return $this->competitor; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $homeTeam + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $competitor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHomeTeam($homeTeam) + public function setCompetitor($competitor) { $types = [ "\OpenActive\Models\SchemaOrg\Person", @@ -79,51 +79,51 @@ public function setHomeTeam($homeTeam) "string", ]; - $homeTeam = self::checkTypes($homeTeam, $types); + $competitor = self::checkTypes($competitor, $types); - $this->homeTeam = $homeTeam; + $this->competitor = $competitor; } /** - * @return \OpenActive\Models\SchemaOrg\SportsTeam|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function getAwayTeam() + public function getHomeTeam() { - return $this->awayTeam; + return $this->homeTeam; } /** - * @param \OpenActive\Models\SchemaOrg\SportsTeam|\OpenActive\Models\SchemaOrg\Person|string $awayTeam + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $homeTeam * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwayTeam($awayTeam) + public function setHomeTeam($homeTeam) { $types = [ - "\OpenActive\Models\SchemaOrg\SportsTeam", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\SportsTeam", "string", ]; - $awayTeam = self::checkTypes($awayTeam, $types); + $homeTeam = self::checkTypes($homeTeam, $types); - $this->awayTeam = $awayTeam; + $this->homeTeam = $homeTeam; } /** * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function getCompetitor() + public function getAwayTeam() { - return $this->competitor; + return $this->awayTeam; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $competitor + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $awayTeam * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCompetitor($competitor) + public function setAwayTeam($awayTeam) { $types = [ "\OpenActive\Models\SchemaOrg\Person", @@ -131,9 +131,9 @@ public function setCompetitor($competitor) "string", ]; - $competitor = self::checkTypes($competitor, $types); + $awayTeam = self::checkTypes($awayTeam, $types); - $this->competitor = $competitor; + $this->awayTeam = $awayTeam; } /** diff --git a/src/Models/SchemaOrg/SportsTeam.php b/src/Models/SchemaOrg/SportsTeam.php index 0adf96cb..1ce67220 100644 --- a/src/Models/SchemaOrg/SportsTeam.php +++ b/src/Models/SchemaOrg/SportsTeam.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "athlete" => "athlete", - "gender" => "gender", "coach" => "coach", + "gender" => "gender", ]; return array_merge(parent::fieldList(), $fields); @@ -34,20 +34,20 @@ public static function fieldList() { protected $athlete; /** - * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". + * A person that acts in a coaching role for a sports team. * * - * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $gender; + protected $coach; /** - * A person that acts in a coaching role for a sports team. + * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - protected $coach; + protected $gender; /** * @return \OpenActive\Models\SchemaOrg\Person|string @@ -75,54 +75,54 @@ public function setAthlete($athlete) } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGender() + public function getCoach() { - return $this->gender; + return $this->coach; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $gender + * @param \OpenActive\Models\SchemaOrg\Person|string $coach * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGender($gender) + public function setCoach($coach) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $gender = self::checkTypes($gender, $types); + $coach = self::checkTypes($coach, $types); - $this->gender = $gender; + $this->coach = $coach; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - public function getCoach() + public function getGender() { - return $this->coach; + return $this->gender; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $coach + * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $gender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCoach($coach) + public function setGender($gender) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Enums\SchemaOrg\GenderType", "string", + "null", ]; - $coach = self::checkTypes($coach, $types); + $gender = self::checkTypes($gender, $types); - $this->coach = $coach; + $this->gender = $gender; } } diff --git a/src/Models/SchemaOrg/StadiumOrArena.php b/src/Models/SchemaOrg/StadiumOrArena.php index f0e1be22..6e51a6f6 100644 --- a/src/Models/SchemaOrg/StadiumOrArena.php +++ b/src/Models/SchemaOrg/StadiumOrArena.php @@ -5,7 +5,7 @@ /** * */ -class StadiumOrArena extends \OpenActive\Models\SchemaOrg\SportsActivityLocation +class StadiumOrArena extends \OpenActive\Models\SchemaOrg\CivicStructure { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/StatisticalPopulation.php b/src/Models/SchemaOrg/StatisticalPopulation.php index a59fa6f4..27f58de6 100644 --- a/src/Models/SchemaOrg/StatisticalPopulation.php +++ b/src/Models/SchemaOrg/StatisticalPopulation.php @@ -18,38 +18,19 @@ public static function getType() public static function fieldList() { $fields = [ "populationType" => "populationType", - "numConstraints" => "numConstraints", - "constrainingProperty" => "constrainingProperty", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates the populationType common to all members of a [[StatisticalPopulation]]. + * Indicates the populationType common to all members of a [[StatisticalPopulation]] or all cases within the scope of a [[StatisticalVariable]]. * * * @var \OpenActive\Models\SchemaOrg\Class|string */ protected $populationType; - /** - * Indicates the number of constraints (not counting [[populationType]]) defined for a particular [[StatisticalPopulation]]. This helps applications understand if they have access to a sufficiently complete description of a [[StatisticalPopulation]]. - * - * - * @var int|null - */ - protected $numConstraints; - - /** - * Indicates a property used as a constraint to define a [[StatisticalPopulation]] with respect to the set of entities - * corresponding to an indicated type (via [[populationType]]). - * - * - * @var int|null - */ - protected $constrainingProperty; - /** * @return \OpenActive\Models\SchemaOrg\Class|string */ @@ -75,54 +56,4 @@ public function setPopulationType($populationType) $this->populationType = $populationType; } - /** - * @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 int|null - */ - public function getConstrainingProperty() - { - return $this->constrainingProperty; - } - - /** - * @param int|null $constrainingProperty - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setConstrainingProperty($constrainingProperty) - { - $types = [ - "int", - "null", - ]; - - $constrainingProperty = self::checkTypes($constrainingProperty, $types); - - $this->constrainingProperty = $constrainingProperty; - } - } diff --git a/src/Models/SchemaOrg/StatisticalVariable.php b/src/Models/SchemaOrg/StatisticalVariable.php new file mode 100644 index 00000000..93393e34 --- /dev/null +++ b/src/Models/SchemaOrg/StatisticalVariable.php @@ -0,0 +1,275 @@ + "measuredProperty", + "statType" => "statType", + "measurementMethod" => "measurementMethod", + "measurementQualifier" => "measurementQualifier", + "measurementDenominator" => "measurementDenominator", + "measurementTechnique" => "measurementTechnique", + "populationType" => "populationType", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * The measuredProperty of an [[Observation]], typically via its [[StatisticalVariable]]. There are various kinds of applicable [[Property]]: a schema.org property, a property from other RDF-compatible systems, e.g. W3C RDF Data Cube, Data Commons, Wikidata, or schema.org extensions such as [GS1's](https://www.gs1.org/voc/?show=properties). + * + * + * @var string|\OpenActive\Enums\PropertyEnumeration|null + */ + protected $measuredProperty; + + /** + * Indicates the kind of statistic represented by a [[StatisticalVariable]], e.g. mean, count etc. The value of statType is a property, either from within Schema.org (e.g. [[median]], [[marginOfError]], [[maxValue]], [[minValue]]) or from other compatible (e.g. RDF) systems such as DataCommons.org or Wikidata.org. + * + * + * @var string|\OpenActive\Enums\PropertyEnumeration|null + */ + protected $statType; + + /** + * 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; + + /** + * Provides additional qualification to an observation. For example, a GDP observation measures the Nominal value. + * + * + * @var \OpenActive\Models\SchemaOrg\Enumeration|string + */ + protected $measurementQualifier; + + /** + * 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; + + /** + * Indicates the populationType common to all members of a [[StatisticalPopulation]] or all cases within the scope of a [[StatisticalVariable]]. + * + * + * @var \OpenActive\Models\SchemaOrg\Class|string + */ + protected $populationType; + + /** + * @return string|\OpenActive\Enums\PropertyEnumeration|null + */ + public function getMeasuredProperty() + { + return $this->measuredProperty; + } + + /** + * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasuredProperty($measuredProperty) + { + $types = [ + "string", + "\OpenActive\Enums\PropertyEnumeration", + "null", + ]; + + $measuredProperty = self::checkTypes($measuredProperty, $types); + + $this->measuredProperty = $measuredProperty; + } + + /** + * @return string|\OpenActive\Enums\PropertyEnumeration|null + */ + public function getStatType() + { + return $this->statType; + } + + /** + * @param string|\OpenActive\Enums\PropertyEnumeration|null $statType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setStatType($statType) + { + $types = [ + "string", + "\OpenActive\Enums\PropertyEnumeration", + "null", + ]; + + $statType = self::checkTypes($statType, $types); + + $this->statType = $statType; + } + + /** + * @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\Enumeration|string + */ + public function getMeasurementQualifier() + { + return $this->measurementQualifier; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Enumeration|string $measurementQualifier + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementQualifier($measurementQualifier) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Enumeration", + "string", + ]; + + $measurementQualifier = self::checkTypes($measurementQualifier, $types); + + $this->measurementQualifier = $measurementQualifier; + } + + /** + * @return \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 \OpenActive\Models\SchemaOrg\Class|string + */ + public function getPopulationType() + { + return $this->populationType; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Class|string $populationType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPopulationType($populationType) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Class", + "string", + ]; + + $populationType = self::checkTypes($populationType, $types); + + $this->populationType = $populationType; + } + +} diff --git a/src/Models/SchemaOrg/Suite.php b/src/Models/SchemaOrg/Suite.php index 81897ebd..d55e327f 100644 --- a/src/Models/SchemaOrg/Suite.php +++ b/src/Models/SchemaOrg/Suite.php @@ -17,70 +17,68 @@ public static function getType() public static function fieldList() { $fields = [ - "numberOfRooms" => "numberOfRooms", - "bed" => "bed", "occupancy" => "occupancy", + "bed" => "bed", + "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 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\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType + * @var \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string */ protected $bed; /** - * 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\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType + * @return \OpenActive\Models\SchemaOrg\BedType|\OpenActive\Models\SchemaOrg\BedDetails|string */ public function getBed() { @@ -88,16 +86,16 @@ public function getBed() } /** - * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed + * @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 setBed($bed) { $types = [ + "\OpenActive\Models\SchemaOrg\BedType", "\OpenActive\Models\SchemaOrg\BedDetails", "string", - "\OpenActive\Models\SchemaOrg\BedType", ]; $bed = self::checkTypes($bed, $types); @@ -106,28 +104,30 @@ public function setBed($bed) } /** - * @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/SuperficialAnatomy.php b/src/Models/SchemaOrg/SuperficialAnatomy.php index 4432f6ac..9d8c6908 100644 --- a/src/Models/SchemaOrg/SuperficialAnatomy.php +++ b/src/Models/SchemaOrg/SuperficialAnatomy.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "relatedTherapy" => "relatedTherapy", "significance" => "significance", + "relatedTherapy" => "relatedTherapy", "relatedAnatomy" => "relatedAnatomy", "relatedCondition" => "relatedCondition", "associatedPathophysiology" => "associatedPathophysiology", @@ -28,20 +28,20 @@ public static function fieldList() { } /** - * A medical therapy related to this anatomy. + * The significance associated with the superficial anatomy; as an example, how characteristics of the superficial anatomy can suggest underlying medical conditions or courses of treatment. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var string */ - protected $relatedTherapy; + protected $significance; /** - * The significance associated with the superficial anatomy; as an example, how characteristics of the superficial anatomy can suggest underlying medical conditions or courses of treatment. + * A medical therapy related to this anatomy. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - protected $significance; + protected $relatedTherapy; /** * Anatomical systems or structures that relate to the superficial anatomy. @@ -68,52 +68,52 @@ public static function fieldList() { protected $associatedPathophysiology; /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return string */ - public function getRelatedTherapy() + public function getSignificance() { - return $this->relatedTherapy; + return $this->significance; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy + * @param string $significance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedTherapy($relatedTherapy) + public function setSignificance($significance) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $relatedTherapy = self::checkTypes($relatedTherapy, $types); + $significance = self::checkTypes($significance, $types); - $this->relatedTherapy = $relatedTherapy; + $this->significance = $significance; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getSignificance() + public function getRelatedTherapy() { - return $this->significance; + return $this->relatedTherapy; } /** - * @param string $significance + * @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 setSignificance($significance) + public function setRelatedTherapy($relatedTherapy) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $significance = self::checkTypes($significance, $types); + $relatedTherapy = self::checkTypes($relatedTherapy, $types); - $this->significance = $significance; + $this->relatedTherapy = $relatedTherapy; } /** diff --git a/src/Models/SchemaOrg/Syllabus.php b/src/Models/SchemaOrg/Syllabus.php new file mode 100644 index 00000000..bec74b5b --- /dev/null +++ b/src/Models/SchemaOrg/Syllabus.php @@ -0,0 +1,25 @@ + "countryOfOrigin", "titleEIDR" => "titleEIDR", "subtitleLanguage" => "subtitleLanguage", + "countryOfOrigin" => "countryOfOrigin", "partOfTVSeries" => "partOfTVSeries", ]; 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. - * - * - * @var \OpenActive\Models\SchemaOrg\Country|string - */ - protected $countryOfOrigin; - /** * 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. * * * @@ -55,10 +43,22 @@ public static function fieldList() { * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ protected $subtitleLanguage; + /** + * The 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\Country|string + */ + protected $countryOfOrigin; + /** * The TV series to which this episode or season belongs. * @@ -68,77 +68,77 @@ public static function fieldList() { protected $partOfTVSeries; /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string */ - public function getCountryOfOrigin() + public function getTitleEIDR() { - return $this->countryOfOrigin; + return $this->titleEIDR; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @param string $titleEIDR * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfOrigin($countryOfOrigin) + public function setTitleEIDR($titleEIDR) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $titleEIDR = self::checkTypes($titleEIDR, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->titleEIDR = $titleEIDR; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getTitleEIDR() + public function getSubtitleLanguage() { - return $this->titleEIDR; + return $this->subtitleLanguage; } /** - * @param string $titleEIDR + * @param string|\OpenActive\Models\SchemaOrg\Language $subtitleLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTitleEIDR($titleEIDR) + public function setSubtitleLanguage($subtitleLanguage) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $titleEIDR = self::checkTypes($titleEIDR, $types); + $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); - $this->titleEIDR = $titleEIDR; + $this->subtitleLanguage = $subtitleLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getSubtitleLanguage() + public function getCountryOfOrigin() { - return $this->subtitleLanguage; + return $this->countryOfOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage + * @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 setSubtitleLanguage($subtitleLanguage) + public function setCountryOfOrigin($countryOfOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); - $this->subtitleLanguage = $subtitleLanguage; + $this->countryOfOrigin = $countryOfOrigin; } /** diff --git a/src/Models/SchemaOrg/TVSeason.php b/src/Models/SchemaOrg/TVSeason.php index b4e4962c..e077a4aa 100644 --- a/src/Models/SchemaOrg/TVSeason.php +++ b/src/Models/SchemaOrg/TVSeason.php @@ -5,7 +5,7 @@ /** * */ -class TVSeason extends \OpenActive\Models\SchemaOrg\CreativeWorkSeason +class TVSeason extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -17,6 +17,7 @@ public static function getType() public static function fieldList() { $fields = [ + "titleEIDR" => "titleEIDR", "countryOfOrigin" => "countryOfOrigin", "partOfTVSeries" => "partOfTVSeries", ]; @@ -24,6 +25,19 @@ public static function fieldList() { return array_merge(parent::fieldList(), $fields); } + /** + * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television. + * + * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]]. + * + * Since schema.org types like [[Movie]], [[TVEpisode]], [[TVSeason]], and [[TVSeries]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. + * + * + * + * @var string + */ + protected $titleEIDR; + /** * The country of origin of something, including products as well as creative works such as movie and TV content. * @@ -44,6 +58,30 @@ public static function fieldList() { */ protected $partOfTVSeries; + /** + * @return string + */ + public function getTitleEIDR() + { + return $this->titleEIDR; + } + + /** + * @param string $titleEIDR + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTitleEIDR($titleEIDR) + { + $types = [ + "string", + ]; + + $titleEIDR = self::checkTypes($titleEIDR, $types); + + $this->titleEIDR = $titleEIDR; + } + /** * @return \OpenActive\Models\SchemaOrg\Country|string */ diff --git a/src/Models/SchemaOrg/TVSeries.php b/src/Models/SchemaOrg/TVSeries.php index a8df402b..321d5bad 100644 --- a/src/Models/SchemaOrg/TVSeries.php +++ b/src/Models/SchemaOrg/TVSeries.php @@ -5,7 +5,7 @@ /** * */ -class TVSeries extends \OpenActive\Models\SchemaOrg\CreativeWorkSeries +class TVSeries extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -17,93 +17,95 @@ public static function getType() public static function fieldList() { $fields = [ - "season" => "season", - "containsSeason" => "containsSeason", - "countryOfOrigin" => "countryOfOrigin", - "director" => "director", "actor" => "actor", "trailer" => "trailer", - "episodes" => "episodes", - "numberOfEpisodes" => "numberOfEpisodes", - "seasons" => "seasons", - "productionCompany" => "productionCompany", + "titleEIDR" => "titleEIDR", "actors" => "actors", + "containsSeason" => "containsSeason", "numberOfSeasons" => "numberOfSeasons", - "musicBy" => "musicBy", "episode" => "episode", "directors" => "directors", + "seasons" => "seasons", + "season" => "season", + "productionCompany" => "productionCompany", + "countryOfOrigin" => "countryOfOrigin", + "director" => "director", + "numberOfEpisodes" => "numberOfEpisodes", + "musicBy" => "musicBy", + "episodes" => "episodes", ]; return array_merge(parent::fieldList(), $fields); } /** - * A season in a media series. + * 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|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string */ - protected $season; + protected $actor; /** - * A season that is part of the media series. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $containsSeason; + protected $trailer; /** - * The country of origin of something, including products as well as creative works such as movie and TV content. + * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television. * - * 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. + * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]]. + * + * Since schema.org types like [[Movie]], [[TVEpisode]], [[TVSeason]], and [[TVSeries]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. * - * 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\Country|string + * @var string */ - protected $countryOfOrigin; + protected $titleEIDR; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $director; + 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 season that is part of the media series. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $actor; + protected $containsSeason; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * The number of seasons in this series. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var int|null */ - protected $trailer; + protected $numberOfSeasons; /** - * An episode of a TV/radio series or season. + * An episode of a TV, radio or game media within a series or season. * * * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $episodes; + protected $episode; /** - * The number of episodes in this season or series. + * 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 int|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $numberOfEpisodes; + protected $directors; /** * A season in a media series. @@ -114,7 +116,15 @@ public static function fieldList() { protected $seasons; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * A season in a media series. + * + * + * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + */ + protected $season; + + /** + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * * @var \OpenActive\Models\SchemaOrg\Organization|string @@ -122,20 +132,32 @@ 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. + * 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\Country|string + */ + protected $countryOfOrigin; + + /** + * 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 number of seasons in this series. + * The number of episodes in this season or series. * * * @var int|null */ - protected $numberOfSeasons; + protected $numberOfEpisodes; /** * The composer of the soundtrack. @@ -146,219 +168,211 @@ public static function fieldList() { protected $musicBy; /** - * 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; - - /** - * 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; + protected $episodes; /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string */ - public function getSeason() + public function getActor() { - return $this->season; + return $this->actor; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @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 setSeason($season) + public function setActor($actor) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\PerformingGroup", "string", - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", ]; - $season = self::checkTypes($season, $types); + $actor = self::checkTypes($actor, $types); - $this->season = $season; + $this->actor = $actor; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getContainsSeason() + public function getTrailer() { - return $this->containsSeason; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason + * @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 setContainsSeason($containsSeason) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $containsSeason = self::checkTypes($containsSeason, $types); + $trailer = self::checkTypes($trailer, $types); - $this->containsSeason = $containsSeason; + $this->trailer = $trailer; } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string */ - public function getCountryOfOrigin() + public function getTitleEIDR() { - return $this->countryOfOrigin; + return $this->titleEIDR; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @param string $titleEIDR * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfOrigin($countryOfOrigin) + public function setTitleEIDR($titleEIDR) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $titleEIDR = self::checkTypes($titleEIDR, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->titleEIDR = $titleEIDR; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDirector() + public function getActors() { - return $this->director; + return $this->actors; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @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 setDirector($director) + public function setActors($actors) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $director = self::checkTypes($director, $types); + $actors = self::checkTypes($actors, $types); - $this->director = $director; + $this->actors = $actors; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getActor() + public function getContainsSeason() { - return $this->actor; + return $this->containsSeason; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setContainsSeason($containsSeason) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $actor = self::checkTypes($actor, $types); + $containsSeason = self::checkTypes($containsSeason, $types); - $this->actor = $actor; + $this->containsSeason = $containsSeason; } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return int|null */ - public function getTrailer() + public function getNumberOfSeasons() { - return $this->trailer; + return $this->numberOfSeasons; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param int|null $numberOfSeasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setNumberOfSeasons($numberOfSeasons) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", - "string", + "int", + "null", ]; - $trailer = self::checkTypes($trailer, $types); + $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); - $this->trailer = $trailer; + $this->numberOfSeasons = $numberOfSeasons; } /** * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getEpisodes() + public function getEpisode() { - return $this->episodes; + return $this->episode; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes + * @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 setEpisodes($episodes) + public function setEpisode($episode) { $types = [ "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $episodes = self::checkTypes($episodes, $types); + $episode = self::checkTypes($episode, $types); - $this->episodes = $episodes; + $this->episode = $episode; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNumberOfEpisodes() + public function getDirectors() { - return $this->numberOfEpisodes; + return $this->directors; } /** - * @param int|null $numberOfEpisodes + * @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 setNumberOfEpisodes($numberOfEpisodes) + public function setDirectors($directors) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); + $directors = self::checkTypes($directors, $types); - $this->numberOfEpisodes = $numberOfEpisodes; + $this->directors = $directors; } /** @@ -386,6 +400,31 @@ public function setSeasons($seasons) $this->seasons = $seasons; } + /** + * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + */ + public function getSeason() + { + return $this->season; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setSeason($season) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + ]; + + $season = self::checkTypes($season, $types); + + $this->season = $season; + } + /** * @return \OpenActive\Models\SchemaOrg\Organization|string */ @@ -412,129 +451,129 @@ public function setProductionCompany($productionCompany) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getActors() + public function getCountryOfOrigin() { - return $this->actors; + return $this->countryOfOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @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 setActors($actors) + public function setCountryOfOrigin($countryOfOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $actors = self::checkTypes($actors, $types); + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); - $this->actors = $actors; + $this->countryOfOrigin = $countryOfOrigin; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNumberOfSeasons() + public function getDirector() { - return $this->numberOfSeasons; + return $this->director; } /** - * @param int|null $numberOfSeasons + * @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 setNumberOfSeasons($numberOfSeasons) + public function setDirector($director) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); + $director = self::checkTypes($director, $types); - $this->numberOfSeasons = $numberOfSeasons; + $this->director = $director; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return int|null */ - public function getMusicBy() + public function getNumberOfEpisodes() { - return $this->musicBy; + return $this->numberOfEpisodes; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param int|null $numberOfEpisodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setNumberOfEpisodes($numberOfEpisodes) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", - "string", + "int", + "null", ]; - $musicBy = self::checkTypes($musicBy, $types); + $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); - $this->musicBy = $musicBy; + $this->numberOfEpisodes = $numberOfEpisodes; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string */ - public function getEpisode() + public function getMusicBy() { - return $this->episode; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @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 setEpisode($episode) + public function setMusicBy($musicBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\MusicGroup", "string", ]; - $episode = self::checkTypes($episode, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->episode = $episode; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getDirectors() + public function getEpisodes() { - return $this->directors; + return $this->episodes; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @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 setDirectors($directors) + public function setEpisodes($episodes) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $directors = self::checkTypes($directors, $types); + $episodes = self::checkTypes($episodes, $types); - $this->directors = $directors; + $this->episodes = $episodes; } } diff --git a/src/Models/SchemaOrg/TaxiReservation.php b/src/Models/SchemaOrg/TaxiReservation.php index 2da50e7c..7f7c3b37 100644 --- a/src/Models/SchemaOrg/TaxiReservation.php +++ b/src/Models/SchemaOrg/TaxiReservation.php @@ -29,12 +29,12 @@ 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; /** - * When a taxi will pickup a passenger or a rental car can be picked up. + * When a taxi will pick up a passenger or a rental car can be picked up. * * * @var DateTime|null @@ -50,7 +50,7 @@ public static function fieldList() { protected $pickupLocation; /** - * @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", ]; diff --git a/src/Models/SchemaOrg/Taxon.php b/src/Models/SchemaOrg/Taxon.php index cc2eebde..4c10e5f4 100644 --- a/src/Models/SchemaOrg/Taxon.php +++ b/src/Models/SchemaOrg/Taxon.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "parentTaxon" => "parentTaxon", - "taxonRank" => "taxonRank", "childTaxon" => "childTaxon", + "taxonRank" => "taxonRank", "hasDefinedTerm" => "hasDefinedTerm", ]; @@ -30,25 +30,25 @@ public static function fieldList() { * Closest parent taxon of the taxon in question. * * - * @var string|\OpenActive\Models\SchemaOrg\Taxon + * @var \OpenActive\Models\SchemaOrg\Taxon|string */ protected $parentTaxon; /** - * The taxonomic rank of this taxon given preferably as a URI from a controlled vocabulary – (typically the ranks from TDWG TaxonRank ontology or equivalent Wikidata URIs). + * Closest child taxa of the taxon in question. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var string|\OpenActive\Models\SchemaOrg\Taxon */ - protected $taxonRank; + protected $childTaxon; /** - * Closest child taxa of the taxon in question. + * The taxonomic rank of this taxon given preferably as a URI from a controlled vocabulary – typically the ranks from TDWG TaxonRank ontology or equivalent Wikidata URIs. * * - * @var string|\OpenActive\Models\SchemaOrg\Taxon + * @var string|\OpenActive\Models\SchemaOrg\PropertyValue */ - protected $childTaxon; + protected $taxonRank; /** * A Defined Term contained in this term set. @@ -59,7 +59,7 @@ public static function fieldList() { protected $hasDefinedTerm; /** - * @return string|\OpenActive\Models\SchemaOrg\Taxon + * @return \OpenActive\Models\SchemaOrg\Taxon|string */ public function getParentTaxon() { @@ -67,15 +67,15 @@ public function getParentTaxon() } /** - * @param string|\OpenActive\Models\SchemaOrg\Taxon $parentTaxon + * @param \OpenActive\Models\SchemaOrg\Taxon|string $parentTaxon * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setParentTaxon($parentTaxon) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\Taxon", + "string", ]; $parentTaxon = self::checkTypes($parentTaxon, $types); @@ -84,53 +84,53 @@ public function setParentTaxon($parentTaxon) } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return string|\OpenActive\Models\SchemaOrg\Taxon */ - public function getTaxonRank() + public function getChildTaxon() { - return $this->taxonRank; + return $this->childTaxon; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $taxonRank + * @param string|\OpenActive\Models\SchemaOrg\Taxon $childTaxon * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTaxonRank($taxonRank) + public function setChildTaxon($childTaxon) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", "string", + "\OpenActive\Models\SchemaOrg\Taxon", ]; - $taxonRank = self::checkTypes($taxonRank, $types); + $childTaxon = self::checkTypes($childTaxon, $types); - $this->taxonRank = $taxonRank; + $this->childTaxon = $childTaxon; } /** - * @return string|\OpenActive\Models\SchemaOrg\Taxon + * @return string|\OpenActive\Models\SchemaOrg\PropertyValue */ - public function getChildTaxon() + public function getTaxonRank() { - return $this->childTaxon; + return $this->taxonRank; } /** - * @param string|\OpenActive\Models\SchemaOrg\Taxon $childTaxon + * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $taxonRank * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setChildTaxon($childTaxon) + public function setTaxonRank($taxonRank) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Taxon", + "\OpenActive\Models\SchemaOrg\PropertyValue", ]; - $childTaxon = self::checkTypes($childTaxon, $types); + $taxonRank = self::checkTypes($taxonRank, $types); - $this->childTaxon = $childTaxon; + $this->taxonRank = $taxonRank; } /** diff --git a/src/Models/SchemaOrg/TechArticle.php b/src/Models/SchemaOrg/TechArticle.php index 560d9995..f38c3497 100644 --- a/src/Models/SchemaOrg/TechArticle.php +++ b/src/Models/SchemaOrg/TechArticle.php @@ -17,75 +17,75 @@ public static function getType() public static function fieldList() { $fields = [ - "dependencies" => "dependencies", "proficiencyLevel" => "proficiencyLevel", + "dependencies" => "dependencies", ]; return array_merge(parent::fieldList(), $fields); } /** - * Prerequisites needed to fulfill steps in article. + * Proficiency needed for this content; expected values: 'Beginner', 'Expert'. * * * @var string */ - protected $dependencies; + protected $proficiencyLevel; /** - * Proficiency needed for this content; expected values: 'Beginner', 'Expert'. + * Prerequisites needed to fulfill steps in article. * * * @var string */ - protected $proficiencyLevel; + protected $dependencies; /** * @return string */ - public function getDependencies() + public function getProficiencyLevel() { - return $this->dependencies; + return $this->proficiencyLevel; } /** - * @param string $dependencies + * @param string $proficiencyLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDependencies($dependencies) + public function setProficiencyLevel($proficiencyLevel) { $types = [ "string", ]; - $dependencies = self::checkTypes($dependencies, $types); + $proficiencyLevel = self::checkTypes($proficiencyLevel, $types); - $this->dependencies = $dependencies; + $this->proficiencyLevel = $proficiencyLevel; } /** * @return string */ - public function getProficiencyLevel() + public function getDependencies() { - return $this->proficiencyLevel; + return $this->dependencies; } /** - * @param string $proficiencyLevel + * @param string $dependencies * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProficiencyLevel($proficiencyLevel) + public function setDependencies($dependencies) { $types = [ "string", ]; - $proficiencyLevel = self::checkTypes($proficiencyLevel, $types); + $dependencies = self::checkTypes($dependencies, $types); - $this->proficiencyLevel = $proficiencyLevel; + $this->dependencies = $dependencies; } } diff --git a/src/Models/SchemaOrg/TextObject.php b/src/Models/SchemaOrg/TextObject.php new file mode 100644 index 00000000..f2e989ee --- /dev/null +++ b/src/Models/SchemaOrg/TextObject.php @@ -0,0 +1,25 @@ + "adverseOutcome", - "drug" => "drug", "doseSchedule" => "doseSchedule", + "drug" => "drug", + "adverseOutcome" => "adverseOutcome", ]; 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 dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used. * * - * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string + * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string */ - protected $adverseOutcome; + protected $doseSchedule; /** * Specifying a drug or medicine used in a medication procedure. @@ -42,36 +42,36 @@ public static function fieldList() { protected $drug; /** - * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used. + * 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\DoseSchedule|string + * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - protected $doseSchedule; + protected $adverseOutcome; /** - * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string + * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string */ - public function getAdverseOutcome() + public function getDoseSchedule() { - return $this->adverseOutcome; + return $this->doseSchedule; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome + * @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 setAdverseOutcome($adverseOutcome) + public function setDoseSchedule($doseSchedule) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalEntity", + "\OpenActive\Models\SchemaOrg\DoseSchedule", "string", ]; - $adverseOutcome = self::checkTypes($adverseOutcome, $types); + $doseSchedule = self::checkTypes($doseSchedule, $types); - $this->adverseOutcome = $adverseOutcome; + $this->doseSchedule = $doseSchedule; } /** @@ -100,28 +100,28 @@ public function setDrug($drug) } /** - * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string + * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - public function getDoseSchedule() + public function getAdverseOutcome() { - return $this->doseSchedule; + return $this->adverseOutcome; } /** - * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule + * @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 setDoseSchedule($doseSchedule) + public function setAdverseOutcome($adverseOutcome) { $types = [ - "\OpenActive\Models\SchemaOrg\DoseSchedule", + "\OpenActive\Models\SchemaOrg\MedicalEntity", "string", ]; - $doseSchedule = self::checkTypes($doseSchedule, $types); + $adverseOutcome = self::checkTypes($adverseOutcome, $types); - $this->doseSchedule = $doseSchedule; + $this->adverseOutcome = $adverseOutcome; } } diff --git a/src/Models/SchemaOrg/Thing.php b/src/Models/SchemaOrg/Thing.php index 938171a4..bba29c39 100644 --- a/src/Models/SchemaOrg/Thing.php +++ b/src/Models/SchemaOrg/Thing.php @@ -20,15 +20,15 @@ public static function fieldList() { "identifier" => "identifier", "name" => "name", "description" => "description", - "mainEntityOfPage" => "mainEntityOfPage", - "alternateName" => "alternateName", + "disambiguatingDescription" => "disambiguatingDescription", "potentialAction" => "potentialAction", - "image" => "image", "url" => "url", "subjectOf" => "subjectOf", "additionalType" => "additionalType", - "disambiguatingDescription" => "disambiguatingDescription", + "image" => "image", "sameAs" => "sameAs", + "alternateName" => "alternateName", + "mainEntityOfPage" => "mainEntityOfPage", ]; return array_merge(parent::fieldList(), $fields); @@ -55,25 +55,17 @@ public static function fieldList() { * A description of the item. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\TextObject */ protected $description; /** - * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details. - * - * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string - */ - protected $mainEntityOfPage; - - /** - * An alias for the item. + * A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation. * * * @var string */ - protected $alternateName; + protected $disambiguatingDescription; /** * Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role. @@ -83,14 +75,6 @@ public static function fieldList() { */ protected $potentialAction; - /** - * An image of the item. This can be a [[URL]] or a fully described [[ImageObject]]. - * - * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject - */ - protected $image; - /** * URL of the item. * @@ -103,12 +87,13 @@ public static function fieldList() { * A CreativeWork or Event about this Thing. * * - * @var \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|string */ protected $subjectOf; /** - * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally. + * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the + * use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org style guide. * * * @var string @@ -116,12 +101,12 @@ public static function fieldList() { protected $additionalType; /** - * A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation. + * An image of the item. This can be a [[URL]] or a fully described [[ImageObject]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $disambiguatingDescription; + protected $image; /** * URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website. @@ -131,6 +116,22 @@ public static function fieldList() { */ protected $sameAs; + /** + * An alias for the item. + * + * + * @var string + */ + protected $alternateName; + + /** + * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details. + * + * + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + */ + protected $mainEntityOfPage; + /** * @return string|\OpenActive\Models\SchemaOrg\PropertyValue */ @@ -181,7 +182,7 @@ public function setName($name) } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\TextObject */ public function getDescription() { @@ -189,7 +190,7 @@ public function getDescription() } /** - * @param string $description + * @param string|\OpenActive\Models\SchemaOrg\TextObject $description * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -197,6 +198,7 @@ public function setDescription($description) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\TextObject", ]; $description = self::checkTypes($description, $types); @@ -205,224 +207,224 @@ public function setDescription($description) } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getMainEntityOfPage() + public function getDisambiguatingDescription() { - return $this->mainEntityOfPage; + return $this->disambiguatingDescription; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $mainEntityOfPage + * @param string $disambiguatingDescription * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMainEntityOfPage($mainEntityOfPage) + public function setDisambiguatingDescription($disambiguatingDescription) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $mainEntityOfPage = self::checkTypes($mainEntityOfPage, $types); + $disambiguatingDescription = self::checkTypes($disambiguatingDescription, $types); - $this->mainEntityOfPage = $mainEntityOfPage; + $this->disambiguatingDescription = $disambiguatingDescription; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Action|string */ - public function getAlternateName() + public function getPotentialAction() { - return $this->alternateName; + return $this->potentialAction; } /** - * @param string $alternateName + * @param \OpenActive\Models\SchemaOrg\Action|string $potentialAction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlternateName($alternateName) + public function setPotentialAction($potentialAction) { $types = [ + "\OpenActive\Models\SchemaOrg\Action", "string", ]; - $alternateName = self::checkTypes($alternateName, $types); + $potentialAction = self::checkTypes($potentialAction, $types); - $this->alternateName = $alternateName; + $this->potentialAction = $potentialAction; } /** - * @return \OpenActive\Models\SchemaOrg\Action|string + * @return string */ - public function getPotentialAction() + public function getUrl() { - return $this->potentialAction; + return $this->url; } /** - * @param \OpenActive\Models\SchemaOrg\Action|string $potentialAction + * @param string $url * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPotentialAction($potentialAction) + public function setUrl($url) { $types = [ - "\OpenActive\Models\SchemaOrg\Action", "string", ]; - $potentialAction = self::checkTypes($potentialAction, $types); + $url = self::checkTypes($url, $types); - $this->potentialAction = $potentialAction; + $this->url = $url; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|string */ - public function getImage() + public function getSubjectOf() { - return $this->image; + return $this->subjectOf; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $image + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|string $subjectOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setImage($image) + public function setSubjectOf($subjectOf) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Event", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $image = self::checkTypes($image, $types); + $subjectOf = self::checkTypes($subjectOf, $types); - $this->image = $image; + $this->subjectOf = $subjectOf; } /** * @return string */ - public function getUrl() + public function getAdditionalType() { - return $this->url; + return $this->additionalType; } /** - * @param string $url + * @param string $additionalType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUrl($url) + public function setAdditionalType($additionalType) { $types = [ "string", ]; - $url = self::checkTypes($url, $types); + $additionalType = self::checkTypes($additionalType, $types); - $this->url = $url; + $this->additionalType = $additionalType; } /** - * @return \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getSubjectOf() + public function getImage() { - return $this->subjectOf; + return $this->image; } /** - * @param \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string $subjectOf + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $image * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubjectOf($subjectOf) + public function setImage($image) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $subjectOf = self::checkTypes($subjectOf, $types); + $image = self::checkTypes($image, $types); - $this->subjectOf = $subjectOf; + $this->image = $image; } /** * @return string */ - public function getAdditionalType() + public function getSameAs() { - return $this->additionalType; + return $this->sameAs; } /** - * @param string $additionalType + * @param string $sameAs * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalType($additionalType) + public function setSameAs($sameAs) { $types = [ "string", ]; - $additionalType = self::checkTypes($additionalType, $types); + $sameAs = self::checkTypes($sameAs, $types); - $this->additionalType = $additionalType; + $this->sameAs = $sameAs; } /** * @return string */ - public function getDisambiguatingDescription() + public function getAlternateName() { - return $this->disambiguatingDescription; + return $this->alternateName; } /** - * @param string $disambiguatingDescription + * @param string $alternateName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDisambiguatingDescription($disambiguatingDescription) + public function setAlternateName($alternateName) { $types = [ "string", ]; - $disambiguatingDescription = self::checkTypes($disambiguatingDescription, $types); + $alternateName = self::checkTypes($alternateName, $types); - $this->disambiguatingDescription = $disambiguatingDescription; + $this->alternateName = $alternateName; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getSameAs() + public function getMainEntityOfPage() { - return $this->sameAs; + return $this->mainEntityOfPage; } /** - * @param string $sameAs + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $mainEntityOfPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSameAs($sameAs) + public function setMainEntityOfPage($mainEntityOfPage) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $sameAs = self::checkTypes($sameAs, $types); + $mainEntityOfPage = self::checkTypes($mainEntityOfPage, $types); - $this->sameAs = $sameAs; + $this->mainEntityOfPage = $mainEntityOfPage; } } diff --git a/src/Models/SchemaOrg/Ticket.php b/src/Models/SchemaOrg/Ticket.php index a75f6f70..61ec5d52 100644 --- a/src/Models/SchemaOrg/Ticket.php +++ b/src/Models/SchemaOrg/Ticket.php @@ -17,282 +17,282 @@ public static function getType() public static function fieldList() { $fields = [ - "ticketToken" => "ticketToken", - "ticketedSeat" => "ticketedSeat", - "totalPrice" => "totalPrice", "issuedBy" => "issuedBy", + "underName" => "underName", "ticketNumber" => "ticketNumber", - "dateIssued" => "dateIssued", + "ticketedSeat" => "ticketedSeat", "priceCurrency" => "priceCurrency", - "underName" => "underName", + "totalPrice" => "totalPrice", + "dateIssued" => "dateIssued", + "ticketToken" => "ticketToken", ]; return array_merge(parent::fieldList(), $fields); } /** - * Reference to an asset (e.g., Barcode, QR code image or PDF) usable for entrance. + * The organization issuing the item, for example a [[Permit]], [[Ticket]], or [[Certification]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $ticketToken; + protected $issuedBy; /** - * The seat associated with the ticket. + * The person or organization the reservation or ticket is for. * * - * @var \OpenActive\Models\SchemaOrg\Seat|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $ticketedSeat; + protected $underName; /** - * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\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 unique identifier for the ticket. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @var string */ - protected $totalPrice; + protected $ticketNumber; /** - * The organization issuing the ticket or permit. + * The seat associated with the ticket. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Seat|string */ - protected $issuedBy; + protected $ticketedSeat; /** - * The unique identifier for the ticket. + * 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 $ticketNumber; + protected $priceCurrency; /** - * The date the ticket was issued. + * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\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 Date|DateTime|null + * @var string|\OpenActive\Models\SchemaOrg\PriceSpecification|Number|null */ - protected $dateIssued; + protected $totalPrice; /** - * 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 Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The date the ticket was issued. * * - * @var string + * @var Date|DateTime|null */ - protected $priceCurrency; + protected $dateIssued; /** - * The person or organization the reservation or ticket is for. + * Reference to an asset (e.g., Barcode, QR code image or PDF) usable for entrance. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $underName; + protected $ticketToken; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getTicketToken() + public function getIssuedBy() { - return $this->ticketToken; + return $this->issuedBy; } /** - * @param string $ticketToken + * @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 setTicketToken($ticketToken) + public function setIssuedBy($issuedBy) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $ticketToken = self::checkTypes($ticketToken, $types); + $issuedBy = self::checkTypes($issuedBy, $types); - $this->ticketToken = $ticketToken; + $this->issuedBy = $issuedBy; } /** - * @return \OpenActive\Models\SchemaOrg\Seat|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getTicketedSeat() + public function getUnderName() { - return $this->ticketedSeat; + return $this->underName; } /** - * @param \OpenActive\Models\SchemaOrg\Seat|string $ticketedSeat + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $underName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTicketedSeat($ticketedSeat) + public function setUnderName($underName) { $types = [ - "\OpenActive\Models\SchemaOrg\Seat", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $ticketedSeat = self::checkTypes($ticketedSeat, $types); + $underName = self::checkTypes($underName, $types); - $this->ticketedSeat = $ticketedSeat; + $this->underName = $underName; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @return string */ - public function getTotalPrice() + public function getTicketNumber() { - return $this->totalPrice; + return $this->ticketNumber; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice + * @param string $ticketNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalPrice($totalPrice) + public function setTicketNumber($ticketNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", - "Number", - "null", ]; - $totalPrice = self::checkTypes($totalPrice, $types); + $ticketNumber = self::checkTypes($ticketNumber, $types); - $this->totalPrice = $totalPrice; + $this->ticketNumber = $ticketNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Seat|string */ - public function getIssuedBy() + public function getTicketedSeat() { - return $this->issuedBy; + return $this->ticketedSeat; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $issuedBy + * @param \OpenActive\Models\SchemaOrg\Seat|string $ticketedSeat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIssuedBy($issuedBy) + public function setTicketedSeat($ticketedSeat) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Seat", "string", ]; - $issuedBy = self::checkTypes($issuedBy, $types); + $ticketedSeat = self::checkTypes($ticketedSeat, $types); - $this->issuedBy = $issuedBy; + $this->ticketedSeat = $ticketedSeat; } /** * @return string */ - public function getTicketNumber() + public function getPriceCurrency() { - return $this->ticketNumber; + return $this->priceCurrency; } /** - * @param string $ticketNumber + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTicketNumber($ticketNumber) + public function setPriceCurrency($priceCurrency) { $types = [ "string", ]; - $ticketNumber = self::checkTypes($ticketNumber, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->ticketNumber = $ticketNumber; + $this->priceCurrency = $priceCurrency; } /** - * @return Date|DateTime|null + * @return string|\OpenActive\Models\SchemaOrg\PriceSpecification|Number|null */ - public function getDateIssued() + public function getTotalPrice() { - return $this->dateIssued; + return $this->totalPrice; } /** - * @param Date|DateTime|null $dateIssued + * @param string|\OpenActive\Models\SchemaOrg\PriceSpecification|Number|null $totalPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateIssued($dateIssued) + public function setTotalPrice($totalPrice) { $types = [ - "Date", - "DateTime", + "string", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "Number", "null", ]; - $dateIssued = self::checkTypes($dateIssued, $types); + $totalPrice = self::checkTypes($totalPrice, $types); - $this->dateIssued = $dateIssued; + $this->totalPrice = $totalPrice; } /** - * @return string + * @return Date|DateTime|null */ - public function getPriceCurrency() + public function getDateIssued() { - return $this->priceCurrency; + return $this->dateIssued; } /** - * @param string $priceCurrency + * @param Date|DateTime|null $dateIssued * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceCurrency($priceCurrency) + public function setDateIssued($dateIssued) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $dateIssued = self::checkTypes($dateIssued, $types); - $this->priceCurrency = $priceCurrency; + $this->dateIssued = $dateIssued; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getUnderName() + public function getTicketToken() { - return $this->underName; + return $this->ticketToken; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $underName + * @param string $ticketToken * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnderName($underName) + public function setTicketToken($ticketToken) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $underName = self::checkTypes($underName, $types); + $ticketToken = self::checkTypes($ticketToken, $types); - $this->underName = $underName; + $this->ticketToken = $ticketToken; } } diff --git a/src/Models/SchemaOrg/TipAction.php b/src/Models/SchemaOrg/TipAction.php index 1096c425..e09dc9f8 100644 --- a/src/Models/SchemaOrg/TipAction.php +++ b/src/Models/SchemaOrg/TipAction.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/TouristAttraction.php b/src/Models/SchemaOrg/TouristAttraction.php index dc3dd23b..f1abe76e 100644 --- a/src/Models/SchemaOrg/TouristAttraction.php +++ b/src/Models/SchemaOrg/TouristAttraction.php @@ -25,15 +25,15 @@ public static function fieldList() { } /** - * Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular country, etc. + * Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var string|\OpenActive\Models\SchemaOrg\Audience */ protected $touristType; /** - * 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]] + * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]. * * * @var string|\OpenActive\Models\SchemaOrg\Language @@ -41,7 +41,7 @@ public static function fieldList() { protected $availableLanguage; /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return string|\OpenActive\Models\SchemaOrg\Audience */ public function getTouristType() { @@ -49,15 +49,15 @@ public function getTouristType() } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType + * @param string|\OpenActive\Models\SchemaOrg\Audience $touristType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setTouristType($touristType) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", "string", + "\OpenActive\Models\SchemaOrg\Audience", ]; $touristType = self::checkTypes($touristType, $types); diff --git a/src/Models/SchemaOrg/TouristDestination.php b/src/Models/SchemaOrg/TouristDestination.php index bf2b0912..e47f5107 100644 --- a/src/Models/SchemaOrg/TouristDestination.php +++ b/src/Models/SchemaOrg/TouristDestination.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "touristType" => "touristType", "includesAttraction" => "includesAttraction", + "touristType" => "touristType", ]; return array_merge(parent::fieldList(), $fields); } /** - * Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular country, etc. + * Attraction located at destination. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\TouristAttraction|string */ - protected $touristType; + protected $includesAttraction; /** - * Attraction located at destination. + * Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc. * * - * @var \OpenActive\Models\SchemaOrg\TouristAttraction|string + * @var string|\OpenActive\Models\SchemaOrg\Audience */ - protected $includesAttraction; + protected $touristType; /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\TouristAttraction|string */ - public function getTouristType() + public function getIncludesAttraction() { - return $this->touristType; + return $this->includesAttraction; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType + * @param \OpenActive\Models\SchemaOrg\TouristAttraction|string $includesAttraction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTouristType($touristType) + public function setIncludesAttraction($includesAttraction) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\TouristAttraction", "string", ]; - $touristType = self::checkTypes($touristType, $types); + $includesAttraction = self::checkTypes($includesAttraction, $types); - $this->touristType = $touristType; + $this->includesAttraction = $includesAttraction; } /** - * @return \OpenActive\Models\SchemaOrg\TouristAttraction|string + * @return string|\OpenActive\Models\SchemaOrg\Audience */ - public function getIncludesAttraction() + public function getTouristType() { - return $this->includesAttraction; + return $this->touristType; } /** - * @param \OpenActive\Models\SchemaOrg\TouristAttraction|string $includesAttraction + * @param string|\OpenActive\Models\SchemaOrg\Audience $touristType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludesAttraction($includesAttraction) + public function setTouristType($touristType) { $types = [ - "\OpenActive\Models\SchemaOrg\TouristAttraction", "string", + "\OpenActive\Models\SchemaOrg\Audience", ]; - $includesAttraction = self::checkTypes($includesAttraction, $types); + $touristType = self::checkTypes($touristType, $types); - $this->includesAttraction = $includesAttraction; + $this->touristType = $touristType; } } diff --git a/src/Models/SchemaOrg/TouristTrip.php b/src/Models/SchemaOrg/TouristTrip.php index e3a4e1a8..c0ff27cd 100644 --- a/src/Models/SchemaOrg/TouristTrip.php +++ b/src/Models/SchemaOrg/TouristTrip.php @@ -24,15 +24,15 @@ public static function fieldList() { } /** - * Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular country, etc. + * Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var string|\OpenActive\Models\SchemaOrg\Audience */ protected $touristType; /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return string|\OpenActive\Models\SchemaOrg\Audience */ public function getTouristType() { @@ -40,15 +40,15 @@ public function getTouristType() } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType + * @param string|\OpenActive\Models\SchemaOrg\Audience $touristType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setTouristType($touristType) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", "string", + "\OpenActive\Models\SchemaOrg\Audience", ]; $touristType = self::checkTypes($touristType, $types); diff --git a/src/Models/SchemaOrg/TradeAction.php b/src/Models/SchemaOrg/TradeAction.php index abc0f7de..67fbd9ba 100644 --- a/src/Models/SchemaOrg/TradeAction.php +++ b/src/Models/SchemaOrg/TradeAction.php @@ -17,21 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "priceCurrency" => "priceCurrency", - "priceSpecification" => "priceSpecification", "price" => "price", + "priceSpecification" => "priceSpecification", + "priceCurrency" => "priceCurrency", ]; return array_merge(parent::fieldList(), $fields); } /** - * 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 Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * 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 + * @var string|Number|null */ - protected $priceCurrency; + protected $price; /** * One or more detailed price specifications, indicating the unit price and delivery or payment charges. @@ -42,36 +43,37 @@ public static function fieldList() { protected $priceSpecification; /** - * 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 Tradings 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 similiar Unicode symbols. - * + * 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|Number|null + * @var string */ - protected $price; + protected $priceCurrency; /** - * @return string + * @return string|Number|null */ - public function getPriceCurrency() + public function getPrice() { - return $this->priceCurrency; + return $this->price; } /** - * @param string $priceCurrency + * @param string|Number|null $price * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceCurrency($priceCurrency) + public function setPrice($price) { $types = [ "string", + "Number", + "null", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $price = self::checkTypes($price, $types); - $this->priceCurrency = $priceCurrency; + $this->price = $price; } /** @@ -100,29 +102,27 @@ public function setPriceSpecification($priceSpecification) } /** - * @return string|Number|null + * @return string */ - public function getPrice() + public function getPriceCurrency() { - return $this->price; + return $this->priceCurrency; } /** - * @param string|Number|null $price + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrice($price) + public function setPriceCurrency($priceCurrency) { $types = [ "string", - "Number", - "null", ]; - $price = self::checkTypes($price, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->price = $price; + $this->priceCurrency = $priceCurrency; } } diff --git a/src/Models/SchemaOrg/TrainTrip.php b/src/Models/SchemaOrg/TrainTrip.php index 7160d977..0d572284 100644 --- a/src/Models/SchemaOrg/TrainTrip.php +++ b/src/Models/SchemaOrg/TrainTrip.php @@ -18,11 +18,11 @@ public static function getType() public static function fieldList() { $fields = [ "trainName" => "trainName", + "arrivalStation" => "arrivalStation", "departureStation" => "departureStation", - "departurePlatform" => "departurePlatform", "trainNumber" => "trainNumber", + "departurePlatform" => "departurePlatform", "arrivalPlatform" => "arrivalPlatform", - "arrivalStation" => "arrivalStation", ]; return array_merge(parent::fieldList(), $fields); @@ -37,20 +37,20 @@ public static function fieldList() { protected $trainName; /** - * The station from which the train departs. + * The station where the train trip ends. * * * @var \OpenActive\Models\SchemaOrg\TrainStation|string */ - protected $departureStation; + protected $arrivalStation; /** - * The platform from which the train departs. + * The station from which the train departs. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\TrainStation|string */ - protected $departurePlatform; + protected $departureStation; /** * The unique identifier for the train. @@ -61,20 +61,20 @@ public static function fieldList() { protected $trainNumber; /** - * The platform where the train arrives. + * The platform from which the train departs. * * * @var string */ - protected $arrivalPlatform; + protected $departurePlatform; /** - * The station where the train trip ends. + * The platform where the train arrives. * * - * @var \OpenActive\Models\SchemaOrg\TrainStation|string + * @var string */ - protected $arrivalStation; + protected $arrivalPlatform; /** * @return string @@ -103,50 +103,51 @@ public function setTrainName($trainName) /** * @return \OpenActive\Models\SchemaOrg\TrainStation|string */ - public function getDepartureStation() + public function getArrivalStation() { - return $this->departureStation; + return $this->arrivalStation; } /** - * @param \OpenActive\Models\SchemaOrg\TrainStation|string $departureStation + * @param \OpenActive\Models\SchemaOrg\TrainStation|string $arrivalStation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureStation($departureStation) + public function setArrivalStation($arrivalStation) { $types = [ "\OpenActive\Models\SchemaOrg\TrainStation", "string", ]; - $departureStation = self::checkTypes($departureStation, $types); + $arrivalStation = self::checkTypes($arrivalStation, $types); - $this->departureStation = $departureStation; + $this->arrivalStation = $arrivalStation; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\TrainStation|string */ - public function getDeparturePlatform() + public function getDepartureStation() { - return $this->departurePlatform; + return $this->departureStation; } /** - * @param string $departurePlatform + * @param \OpenActive\Models\SchemaOrg\TrainStation|string $departureStation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeparturePlatform($departurePlatform) + public function setDepartureStation($departureStation) { $types = [ + "\OpenActive\Models\SchemaOrg\TrainStation", "string", ]; - $departurePlatform = self::checkTypes($departurePlatform, $types); + $departureStation = self::checkTypes($departureStation, $types); - $this->departurePlatform = $departurePlatform; + $this->departureStation = $departureStation; } /** @@ -176,50 +177,49 @@ public function setTrainNumber($trainNumber) /** * @return string */ - public function getArrivalPlatform() + public function getDeparturePlatform() { - return $this->arrivalPlatform; + return $this->departurePlatform; } /** - * @param string $arrivalPlatform + * @param string $departurePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalPlatform($arrivalPlatform) + public function setDeparturePlatform($departurePlatform) { $types = [ "string", ]; - $arrivalPlatform = self::checkTypes($arrivalPlatform, $types); + $departurePlatform = self::checkTypes($departurePlatform, $types); - $this->arrivalPlatform = $arrivalPlatform; + $this->departurePlatform = $departurePlatform; } /** - * @return \OpenActive\Models\SchemaOrg\TrainStation|string + * @return string */ - public function getArrivalStation() + public function getArrivalPlatform() { - return $this->arrivalStation; + return $this->arrivalPlatform; } /** - * @param \OpenActive\Models\SchemaOrg\TrainStation|string $arrivalStation + * @param string $arrivalPlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalStation($arrivalStation) + public function setArrivalPlatform($arrivalPlatform) { $types = [ - "\OpenActive\Models\SchemaOrg\TrainStation", "string", ]; - $arrivalStation = self::checkTypes($arrivalStation, $types); + $arrivalPlatform = self::checkTypes($arrivalPlatform, $types); - $this->arrivalStation = $arrivalStation; + $this->arrivalPlatform = $arrivalPlatform; } } diff --git a/src/Models/SchemaOrg/TransferAction.php b/src/Models/SchemaOrg/TransferAction.php index 7c5ae7d7..1693bc7d 100644 --- a/src/Models/SchemaOrg/TransferAction.php +++ b/src/Models/SchemaOrg/TransferAction.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/Trip.php b/src/Models/SchemaOrg/Trip.php index 552d9ac3..e61d7d48 100644 --- a/src/Models/SchemaOrg/Trip.php +++ b/src/Models/SchemaOrg/Trip.php @@ -17,89 +17,98 @@ public static function getType() public static function fieldList() { $fields = [ + "departureTime" => "departureTime", + "partOfTrip" => "partOfTrip", + "tripOrigin" => "tripOrigin", + "itinerary" => "itinerary", "arrivalTime" => "arrivalTime", "offers" => "offers", - "departureTime" => "departureTime", "provider" => "provider", "subTrip" => "subTrip", - "itinerary" => "itinerary", - "partOfTrip" => "partOfTrip", ]; return array_merge(parent::fieldList(), $fields); } /** - * The expected arrival time. + * The expected departure time. * * * @var DateTime|string|null */ - protected $arrivalTime; + protected $departureTime; /** - * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. - * + * Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip. * * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var \OpenActive\Models\SchemaOrg\Trip|string */ - protected $offers; + protected $partOfTrip; /** - * The expected departure time. + * The location of origin of the trip, prior to any destination(s). * * - * @var DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $departureTime; + protected $tripOrigin; /** - * 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. + * Destination(s) ( [[Place]] ) that make up a trip. For a trip where destination order is important use [[ItemList]] to specify that order (see examples). * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string */ - protected $provider; + protected $itinerary; /** - * Identifies a [[Trip]] that is a subTrip of this Trip. For example Day 1, Day 2, etc. of a multi-day trip. + * The expected arrival time. * * - * @var \OpenActive\Models\SchemaOrg\Trip|string + * @var DateTime|string|null */ - protected $subTrip; + protected $arrivalTime; /** - * Destination(s) ( [[Place]] ) that make up a trip. For a trip where destination order is important use [[ItemList]] to specify that order (see examples). + * 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\ItemList|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - protected $itinerary; + protected $offers; /** - * Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip. + * 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; + + /** + * Identifies a [[Trip]] that is a subTrip of this Trip. For example Day 1, Day 2, etc. of a multi-day trip. * * * @var \OpenActive\Models\SchemaOrg\Trip|string */ - protected $partOfTrip; + protected $subTrip; /** * @return DateTime|string|null */ - public function getArrivalTime() + public function getDepartureTime() { - return $this->arrivalTime; + return $this->departureTime; } /** - * @param DateTime|string|null $arrivalTime + * @param DateTime|string|null $departureTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalTime($arrivalTime) + public function setDepartureTime($departureTime) { $types = [ "DateTime", @@ -107,163 +116,188 @@ public function setArrivalTime($arrivalTime) "null", ]; - $arrivalTime = self::checkTypes($arrivalTime, $types); + $departureTime = self::checkTypes($departureTime, $types); - $this->arrivalTime = $arrivalTime; + $this->departureTime = $departureTime; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Trip|string */ - public function getOffers() + public function getPartOfTrip() { - return $this->offers; + return $this->partOfTrip; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param \OpenActive\Models\SchemaOrg\Trip|string $partOfTrip * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setPartOfTrip($partOfTrip) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Trip", "string", ]; - $offers = self::checkTypes($offers, $types); + $partOfTrip = self::checkTypes($partOfTrip, $types); - $this->offers = $offers; + $this->partOfTrip = $partOfTrip; } /** - * @return DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getDepartureTime() + public function getTripOrigin() { - return $this->departureTime; + return $this->tripOrigin; } /** - * @param DateTime|string|null $departureTime + * @param \OpenActive\Models\SchemaOrg\Place|string $tripOrigin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureTime($departureTime) + public function setTripOrigin($tripOrigin) { $types = [ - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $departureTime = self::checkTypes($departureTime, $types); + $tripOrigin = self::checkTypes($tripOrigin, $types); - $this->departureTime = $departureTime; + $this->tripOrigin = $tripOrigin; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string */ - public function getProvider() + public function getItinerary() { - return $this->provider; + return $this->itinerary; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string $itinerary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setItinerary($itinerary) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $provider = self::checkTypes($provider, $types); + $itinerary = self::checkTypes($itinerary, $types); - $this->provider = $provider; + $this->itinerary = $itinerary; } /** - * @return \OpenActive\Models\SchemaOrg\Trip|string + * @return DateTime|string|null */ - public function getSubTrip() + public function getArrivalTime() { - return $this->subTrip; + return $this->arrivalTime; } /** - * @param \OpenActive\Models\SchemaOrg\Trip|string $subTrip + * @param DateTime|string|null $arrivalTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubTrip($subTrip) + public function setArrivalTime($arrivalTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Trip", + "DateTime", + "Time", + "null", + ]; + + $arrivalTime = self::checkTypes($arrivalTime, $types); + + $this->arrivalTime = $arrivalTime; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + */ + public function getOffers() + { + return $this->offers; + } + + /** + * @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 setOffers($offers) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Demand", "string", ]; - $subTrip = self::checkTypes($subTrip, $types); + $offers = self::checkTypes($offers, $types); - $this->subTrip = $subTrip; + $this->offers = $offers; } /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getItinerary() + public function getProvider() { - return $this->itinerary; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string $itinerary + * @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 setItinerary($itinerary) + public function setProvider($provider) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $itinerary = self::checkTypes($itinerary, $types); + $provider = self::checkTypes($provider, $types); - $this->itinerary = $itinerary; + $this->provider = $provider; } /** * @return \OpenActive\Models\SchemaOrg\Trip|string */ - public function getPartOfTrip() + public function getSubTrip() { - return $this->partOfTrip; + return $this->subTrip; } /** - * @param \OpenActive\Models\SchemaOrg\Trip|string $partOfTrip + * @param \OpenActive\Models\SchemaOrg\Trip|string $subTrip * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfTrip($partOfTrip) + public function setSubTrip($subTrip) { $types = [ "\OpenActive\Models\SchemaOrg\Trip", "string", ]; - $partOfTrip = self::checkTypes($partOfTrip, $types); + $subTrip = self::checkTypes($subTrip, $types); - $this->partOfTrip = $partOfTrip; + $this->subTrip = $subTrip; } } diff --git a/src/Models/SchemaOrg/TypeAndQuantityNode.php b/src/Models/SchemaOrg/TypeAndQuantityNode.php index ffab830a..3ce8c8bd 100644 --- a/src/Models/SchemaOrg/TypeAndQuantityNode.php +++ b/src/Models/SchemaOrg/TypeAndQuantityNode.php @@ -17,32 +17,31 @@ public static function getType() public static function fieldList() { $fields = [ - "unitText" => "unitText", - "businessFunction" => "businessFunction", - "typeOfGood" => "typeOfGood", - "amountOfThisGood" => "amountOfThisGood", "unitCode" => "unitCode", + "amountOfThisGood" => "amountOfThisGood", + "typeOfGood" => "typeOfGood", + "businessFunction" => "businessFunction", + "unitText" => "unitText", ]; return array_merge(parent::fieldList(), $fields); } /** - * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for - * unitCode. + * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. * * * @var string */ - protected $unitText; + protected $unitCode; /** - * 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 quantity of the goods included in the offer. * * - * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null + * @var Number|null */ - protected $businessFunction; + protected $amountOfThisGood; /** * The product that this structured value is referring to. @@ -53,68 +52,69 @@ public static function fieldList() { protected $typeOfGood; /** - * The quantity of the goods included in the offer. + * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell. * * - * @var Number|null + * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - protected $amountOfThisGood; + protected $businessFunction; /** - * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. + * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for + * unitCode. * * * @var string */ - protected $unitCode; + protected $unitText; /** * @return string */ - public function getUnitText() + public function getUnitCode() { - return $this->unitText; + return $this->unitCode; } /** - * @param string $unitText + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setUnitCode($unitCode) { $types = [ "string", ]; - $unitText = self::checkTypes($unitText, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->unitText = $unitText; + $this->unitCode = $unitCode; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null + * @return Number|null */ - public function getBusinessFunction() + public function getAmountOfThisGood() { - return $this->businessFunction; + return $this->amountOfThisGood; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction + * @param Number|null $amountOfThisGood * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBusinessFunction($businessFunction) + public function setAmountOfThisGood($amountOfThisGood) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessFunction", + "Number", "null", ]; - $businessFunction = self::checkTypes($businessFunction, $types); + $amountOfThisGood = self::checkTypes($amountOfThisGood, $types); - $this->businessFunction = $businessFunction; + $this->amountOfThisGood = $amountOfThisGood; } /** @@ -144,52 +144,52 @@ public function setTypeOfGood($typeOfGood) } /** - * @return Number|null + * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - public function getAmountOfThisGood() + public function getBusinessFunction() { - return $this->amountOfThisGood; + return $this->businessFunction; } /** - * @param Number|null $amountOfThisGood + * @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 setAmountOfThisGood($amountOfThisGood) + public function setBusinessFunction($businessFunction) { $types = [ - "Number", + "\OpenActive\Enums\SchemaOrg\BusinessFunction", "null", ]; - $amountOfThisGood = self::checkTypes($amountOfThisGood, $types); + $businessFunction = self::checkTypes($businessFunction, $types); - $this->amountOfThisGood = $amountOfThisGood; + $this->businessFunction = $businessFunction; } /** * @return string */ - public function getUnitCode() + public function getUnitText() { - return $this->unitCode; + return $this->unitText; } /** - * @param string $unitCode + * @param string $unitText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitCode($unitCode) + public function setUnitText($unitText) { $types = [ "string", ]; - $unitCode = self::checkTypes($unitCode, $types); + $unitText = self::checkTypes($unitText, $types); - $this->unitCode = $unitCode; + $this->unitText = $unitText; } } diff --git a/src/Models/SchemaOrg/UnitPriceSpecification.php b/src/Models/SchemaOrg/UnitPriceSpecification.php index dec83bd4..273bbe90 100644 --- a/src/Models/SchemaOrg/UnitPriceSpecification.php +++ b/src/Models/SchemaOrg/UnitPriceSpecification.php @@ -17,43 +17,34 @@ public static function getType() public static function fieldList() { $fields = [ + "priceComponentType" => "priceComponentType", "priceType" => "priceType", - "unitText" => "unitText", - "billingIncrement" => "billingIncrement", "unitCode" => "unitCode", - "billingDuration" => "billingDuration", "referenceQuantity" => "referenceQuantity", - "priceComponentType" => "priceComponentType", + "billingIncrement" => "billingIncrement", + "billingDuration" => "billingDuration", "billingStart" => "billingStart", + "unitText" => "unitText", ]; return array_merge(parent::fieldList(), $fields); } /** - * 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\Enums\SchemaOrg\PriceTypeEnumeration|string|null - */ - protected $priceType; - - /** - * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for - * unitCode. + * Identifies a price component (for example, a line item on an invoice), part of the total price for an offer. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null */ - protected $unitText; + protected $priceComponentType; /** - * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. + * 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 Number|null + * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null */ - protected $billingIncrement; + protected $priceType; /** * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. @@ -64,28 +55,28 @@ public static function fieldList() { protected $unitCode; /** - * Specifies for how long this price (or price component) will be billed. Can be used, for example, to model the contractual duration of a subscription or payment plan. Type can be either a Duration or a Number (in which case the unit of measurement, for example month, is specified by the unitCode property). + * The reference quantity for which a certain price applies, e.g. 1 EUR per 4 kWh of electricity. This property is a replacement for unitOfMeasurement for the advanced cases where the price does not relate to a standard unit. * * - * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $billingDuration; + protected $referenceQuantity; /** - * The reference quantity for which a certain price applies, e.g. 1 EUR per 4 kWh of electricity. This property is a replacement for unitOfMeasurement for the advanced cases where the price does not relate to a standard unit. + * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|null */ - protected $referenceQuantity; + protected $billingIncrement; /** - * Identifies a price component (for example, a line item on an invoice), part of the total price for an offer. + * Specifies for how long this price (or price component) will be billed. Can be used, for example, to model the contractual duration of a subscription or payment plan. Type can be either a Duration or a Number (in which case the unit of measurement, for example month, is specified by the unitCode property). * * - * @var \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null */ - protected $priceComponentType; + protected $billingDuration; /** * Specifies after how much time this price (or price component) becomes valid and billing starts. Can be used, for example, to model a price increase after the first year of a subscription. The unit of measurement is specified by the unitCode property. @@ -96,78 +87,63 @@ public static function fieldList() { protected $billingStart; /** - * @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null - */ - public function getPriceType() - { - return $this->priceType; - } - - /** - * @param \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null $priceType - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for + * unitCode. + * + * + * @var string */ - public function setPriceType($priceType) - { - $types = [ - "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration", - "string", - "null", - ]; - - $priceType = self::checkTypes($priceType, $types); - - $this->priceType = $priceType; - } + protected $unitText; /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null */ - public function getUnitText() + public function getPriceComponentType() { - return $this->unitText; + return $this->priceComponentType; } /** - * @param string $unitText + * @param \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null $priceComponentType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setPriceComponentType($priceComponentType) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration", + "null", ]; - $unitText = self::checkTypes($unitText, $types); + $priceComponentType = self::checkTypes($priceComponentType, $types); - $this->unitText = $unitText; + $this->priceComponentType = $priceComponentType; } /** - * @return Number|null + * @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null */ - public function getBillingIncrement() + public function getPriceType() { - return $this->billingIncrement; + return $this->priceType; } /** - * @param Number|null $billingIncrement + * @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 setBillingIncrement($billingIncrement) + public function setPriceType($priceType) { $types = [ - "Number", + "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration", + "string", "null", ]; - $billingIncrement = self::checkTypes($billingIncrement, $types); + $priceType = self::checkTypes($priceType, $types); - $this->billingIncrement = $billingIncrement; + $this->priceType = $priceType; } /** @@ -195,81 +171,81 @@ public function setUnitCode($unitCode) } /** - * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getBillingDuration() + public function getReferenceQuantity() { - return $this->billingDuration; + return $this->referenceQuantity; } /** - * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $billingDuration + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $referenceQuantity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBillingDuration($billingDuration) + public function setReferenceQuantity($referenceQuantity) { $types = [ - "DateInterval", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $billingDuration = self::checkTypes($billingDuration, $types); + $referenceQuantity = self::checkTypes($referenceQuantity, $types); - $this->billingDuration = $billingDuration; + $this->referenceQuantity = $referenceQuantity; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|null */ - public function getReferenceQuantity() + public function getBillingIncrement() { - return $this->referenceQuantity; + return $this->billingIncrement; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $referenceQuantity + * @param Number|null $billingIncrement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReferenceQuantity($referenceQuantity) + public function setBillingIncrement($billingIncrement) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Number", + "null", ]; - $referenceQuantity = self::checkTypes($referenceQuantity, $types); + $billingIncrement = self::checkTypes($billingIncrement, $types); - $this->referenceQuantity = $referenceQuantity; + $this->billingIncrement = $billingIncrement; } /** - * @return \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null */ - public function getPriceComponentType() + public function getBillingDuration() { - return $this->priceComponentType; + return $this->billingDuration; } /** - * @param \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null $priceComponentType + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $billingDuration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceComponentType($priceComponentType) + public function setBillingDuration($billingDuration) { $types = [ - "\OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration", + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "DateInterval", + "string", "null", ]; - $priceComponentType = self::checkTypes($priceComponentType, $types); + $billingDuration = self::checkTypes($billingDuration, $types); - $this->priceComponentType = $priceComponentType; + $this->billingDuration = $billingDuration; } /** @@ -297,4 +273,28 @@ public function setBillingStart($billingStart) $this->billingStart = $billingStart; } + /** + * @return string + */ + public function getUnitText() + { + return $this->unitText; + } + + /** + * @param string $unitText + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setUnitText($unitText) + { + $types = [ + "string", + ]; + + $unitText = self::checkTypes($unitText, $types); + + $this->unitText = $unitText; + } + } diff --git a/src/Models/SchemaOrg/UpdateAction.php b/src/Models/SchemaOrg/UpdateAction.php index 4ac93653..17d84639 100644 --- a/src/Models/SchemaOrg/UpdateAction.php +++ b/src/Models/SchemaOrg/UpdateAction.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "targetCollection" => "targetCollection", "collection" => "collection", + "targetCollection" => "targetCollection", ]; return array_merge(parent::fieldList(), $fields); @@ -30,7 +30,7 @@ public static function fieldList() { * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $targetCollection; + protected $collection; /** * A sub property of object. The collection target of the action. @@ -38,56 +38,56 @@ public static function fieldList() { * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $collection; + protected $targetCollection; /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getTargetCollection() + public function getCollection() { - return $this->targetCollection; + return $this->collection; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $targetCollection + * @param \OpenActive\Models\SchemaOrg\Thing|string $collection * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTargetCollection($targetCollection) + public function setCollection($collection) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $targetCollection = self::checkTypes($targetCollection, $types); + $collection = self::checkTypes($collection, $types); - $this->targetCollection = $targetCollection; + $this->collection = $collection; } /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getCollection() + public function getTargetCollection() { - return $this->collection; + return $this->targetCollection; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $collection + * @param \OpenActive\Models\SchemaOrg\Thing|string $targetCollection * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCollection($collection) + public function setTargetCollection($targetCollection) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $collection = self::checkTypes($collection, $types); + $targetCollection = self::checkTypes($targetCollection, $types); - $this->collection = $collection; + $this->targetCollection = $targetCollection; } } diff --git a/src/Models/SchemaOrg/UserComments.php b/src/Models/SchemaOrg/UserComments.php index 16f3cdf5..d0c40617 100644 --- a/src/Models/SchemaOrg/UserComments.php +++ b/src/Models/SchemaOrg/UserComments.php @@ -17,23 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ - "replyToUrl" => "replyToUrl", - "discusses" => "discusses", "commentTime" => "commentTime", - "commentText" => "commentText", + "discusses" => "discusses", "creator" => "creator", + "commentText" => "commentText", + "replyToUrl" => "replyToUrl", ]; return array_merge(parent::fieldList(), $fields); } /** - * The URL at which a reply may be posted to the specified UserComment. + * The time at which the UserComment was made. * * - * @var string + * @var Date|DateTime|null */ - protected $replyToUrl; + protected $commentTime; /** * Specifies the CreativeWork associated with the UserComment. @@ -44,12 +44,12 @@ public static function fieldList() { protected $discusses; /** - * The time at which the UserComment was made. + * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $commentTime; + protected $creator; /** * The text of the UserComment. @@ -60,35 +60,37 @@ public static function fieldList() { protected $commentText; /** - * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. + * The URL at which a reply may be posted to the specified UserComment. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $creator; + protected $replyToUrl; /** - * @return string + * @return Date|DateTime|null */ - public function getReplyToUrl() + public function getCommentTime() { - return $this->replyToUrl; + return $this->commentTime; } /** - * @param string $replyToUrl + * @param Date|DateTime|null $commentTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReplyToUrl($replyToUrl) + public function setCommentTime($commentTime) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $replyToUrl = self::checkTypes($replyToUrl, $types); + $commentTime = self::checkTypes($commentTime, $types); - $this->replyToUrl = $replyToUrl; + $this->commentTime = $commentTime; } /** @@ -117,29 +119,29 @@ public function setDiscusses($discusses) } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getCommentTime() + public function getCreator() { - return $this->commentTime; + return $this->creator; } /** - * @param Date|DateTime|null $commentTime + * @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 setCommentTime($commentTime) + public function setCreator($creator) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $commentTime = self::checkTypes($commentTime, $types); + $creator = self::checkTypes($creator, $types); - $this->commentTime = $commentTime; + $this->creator = $creator; } /** @@ -167,29 +169,27 @@ public function setCommentText($commentText) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getCreator() + public function getReplyToUrl() { - return $this->creator; + return $this->replyToUrl; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creator + * @param string $replyToUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCreator($creator) + public function setReplyToUrl($replyToUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $creator = self::checkTypes($creator, $types); + $replyToUrl = self::checkTypes($replyToUrl, $types); - $this->creator = $creator; + $this->replyToUrl = $replyToUrl; } } diff --git a/src/Models/SchemaOrg/VacationRental.php b/src/Models/SchemaOrg/VacationRental.php new file mode 100644 index 00000000..2efcad55 --- /dev/null +++ b/src/Models/SchemaOrg/VacationRental.php @@ -0,0 +1,25 @@ + "fuelCapacity", - "accelerationTime" => "accelerationTime", - "speed" => "speed", - "trailerWeight" => "trailerWeight", - "vehicleEngine" => "vehicleEngine", + "vehicleSeatingCapacity" => "vehicleSeatingCapacity", "emissionsCO2" => "emissionsCO2", - "purchaseDate" => "purchaseDate", - "numberOfForwardGears" => "numberOfForwardGears", - "weightTotal" => "weightTotal", - "productionDate" => "productionDate", "numberOfPreviousOwners" => "numberOfPreviousOwners", - "steeringPosition" => "steeringPosition", - "wheelbase" => "wheelbase", - "vehicleInteriorType" => "vehicleInteriorType", - "numberOfAirbags" => "numberOfAirbags", - "fuelType" => "fuelType", - "cargoVolume" => "cargoVolume", - "vehicleTransmission" => "vehicleTransmission", "payload" => "payload", - "driveWheelConfiguration" => "driveWheelConfiguration", - "knownVehicleDamages" => "knownVehicleDamages", + "meetsEmissionStandard" => "meetsEmissionStandard", + "steeringPosition" => "steeringPosition", + "productionDate" => "productionDate", + "vehicleIdentificationNumber" => "vehicleIdentificationNumber", + "callSign" => "callSign", "fuelConsumption" => "fuelConsumption", - "vehicleInteriorColor" => "vehicleInteriorColor", - "numberOfAxles" => "numberOfAxles", - "modelDate" => "modelDate", "numberOfDoors" => "numberOfDoors", - "vehicleSeatingCapacity" => "vehicleSeatingCapacity", - "callSign" => "callSign", - "tongueWeight" => "tongueWeight", - "fuelEfficiency" => "fuelEfficiency", - "vehicleModelDate" => "vehicleModelDate", + "knownVehicleDamages" => "knownVehicleDamages", + "fuelCapacity" => "fuelCapacity", + "cargoVolume" => "cargoVolume", "vehicleConfiguration" => "vehicleConfiguration", + "vehicleInteriorColor" => "vehicleInteriorColor", + "vehicleModelDate" => "vehicleModelDate", "mileageFromOdometer" => "mileageFromOdometer", "seatingCapacity" => "seatingCapacity", - "bodyType" => "bodyType", - "dateVehicleFirstRegistered" => "dateVehicleFirstRegistered", - "vehicleIdentificationNumber" => "vehicleIdentificationNumber", - "meetsEmissionStandard" => "meetsEmissionStandard", + "numberOfAirbags" => "numberOfAirbags", + "vehicleTransmission" => "vehicleTransmission", + "modelDate" => "modelDate", + "numberOfForwardGears" => "numberOfForwardGears", "vehicleSpecialUsage" => "vehicleSpecialUsage", + "accelerationTime" => "accelerationTime", + "vehicleEngine" => "vehicleEngine", + "weightTotal" => "weightTotal", + "trailerWeight" => "trailerWeight", + "numberOfAxles" => "numberOfAxles", + "speed" => "speed", + "vehicleInteriorType" => "vehicleInteriorType", + "fuelEfficiency" => "fuelEfficiency", + "dateVehicleFirstRegistered" => "dateVehicleFirstRegistered", + "fuelType" => "fuelType", + "bodyType" => "bodyType", + "driveWheelConfiguration" => "driveWheelConfiguration", + "tongueWeight" => "tongueWeight", + "purchaseDate" => "purchaseDate", + "wheelbase" => "wheelbase", ]; return array_merge(parent::fieldList(), $fields); } /** - * The capacity of the fuel tank or in the case of electric cars, the battery. If there are multiple components for storage, this should indicate the total of all storage of the same type.\n\nTypical unit code(s): LTR for liters, GLL of US gallons, GLI for UK / imperial gallons, AMH for ampere-hours (for electrical vehicles). + * The number of passengers that can be seated in the vehicle, both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - protected $fuelCapacity; + protected $vehicleSeatingCapacity; /** - * The time needed to accelerate the vehicle from a given start velocity to a given target velocity.\n\nTypical unit code(s): SEC for seconds\n\n* Note: There are unfortunately no standard unit codes for seconds/0..100 km/h or seconds/0..60 mph. Simply use "SEC" for seconds and indicate the velocities in the [[name]] of the [[QuantitativeValue]], or use [[valueReference]] with a [[QuantitativeValue]] of 0..60 mph or 0..100 km/h to specify the reference speeds. + * The CO2 emissions in g/km. When used in combination with a QuantitativeValue, put "g/km" into the unitText property of that value, since there is no UN/CEFACT Common Code for "g/km". * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|null */ - protected $accelerationTime; + protected $emissionsCO2; /** - * The speed range of the vehicle. If the vehicle is powered by an engine, the upper limit of the speed range (indicated by [[maxValue]] should be the maximum speed achievable under regular conditions.\n\nTypical unit code(s): KMH for km/h, HM for mile per hour (0.447 04 m/s), KNT for knot\n\n*Note 1: Use [[minValue]] and [[maxValue]] to indicate the range. Typically, the minimal value is zero.\n* Note 2: There are many different ways of measuring the speed range. You can link to information about how the given value has been determined using the [[valueReference]] property. + * The number of owners of the vehicle, including the current one.\n\nTypical unit code(s): C62. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $speed; + protected $numberOfPreviousOwners; /** - * The permitted weight of a trailer attached to the vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. + * The permitted weight of passengers and cargo, EXCLUDING the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: Many databases specify the permitted TOTAL weight instead, which is the sum of [[weight]] and [[payload]]\n* Note 2: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 3: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 4: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $trailerWeight; + protected $payload; /** - * Information about the engine or engines of the vehicle. + * Indicates that the vehicle meets the respective emission standard. * * - * @var \OpenActive\Models\SchemaOrg\EngineSpecification|string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $vehicleEngine; + protected $meetsEmissionStandard; /** - * The CO2 emissions in g/km. When used in combination with a QuantitativeValue, put "g/km" into the unitText property of that value, since there is no UN/CEFACT Common Code for "g/km". + * The position of the steering wheel or similar device (mostly for cars). * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\SteeringPositionValue|string */ - protected $emissionsCO2; + protected $steeringPosition; /** - * The date the item e.g. vehicle was purchased by the current owner. + * The date of production of the item, e.g. vehicle. * * * @var Date|null */ - protected $purchaseDate; + protected $productionDate; /** - * The total number of forward gears available for the transmission system of the vehicle.\n\nTypical unit code(s): C62 + * The Vehicle Identification Number (VIN) is a unique serial number used by the automotive industry to identify individual motor vehicles. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var string */ - protected $numberOfForwardGears; + protected $vehicleIdentificationNumber; /** - * The permitted total weight of the loaded vehicle, including passengers and cargo and the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. + * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $weightTotal; + protected $callSign; /** - * The date of production of the item, e.g. vehicle. + * The amount of fuel consumed for traveling a particular distance or temporal duration with the given vehicle (e.g. liters per 100 km).\n\n* Note 1: There are unfortunately no standard unit codes for liters per 100 km. Use [[unitText]] to indicate the unit of measurement, e.g. L/100 km.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel consumption to another value. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $productionDate; + protected $fuelConsumption; /** - * The number of owners of the vehicle, including the current one.\n\nTypical unit code(s): C62 + * The number of doors.\n\nTypical unit code(s): C62. * * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - protected $numberOfPreviousOwners; + protected $numberOfDoors; /** - * The position of the steering wheel or similar device (mostly for cars). + * A textual description of known damages, both repaired and unrepaired. * * - * @var \OpenActive\Models\SchemaOrg\SteeringPositionValue|string + * @var string */ - protected $steeringPosition; + protected $knownVehicleDamages; /** - * The distance between the centers of the front and rear wheels.\n\nTypical unit code(s): CMT for centimeters, MTR for meters, INH for inches, FOT for foot/feet + * The capacity of the fuel tank or in the case of electric cars, the battery. If there are multiple components for storage, this should indicate the total of all storage of the same type.\n\nTypical unit code(s): LTR for liters, GLL of US gallons, GLI for UK / imperial gallons, AMH for ampere-hours (for electrical vehicles). * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $wheelbase; + protected $fuelCapacity; /** - * The type or material of the interior of the vehicle (e.g. synthetic fabric, leather, wood, etc.). While most interior types are characterized by the material used, an interior type can also be based on vehicle usage or target audience. + * The available volume for cargo or luggage. For automobiles, this is usually the trunk volume.\n\nTypical unit code(s): LTR for liters, FTQ for cubic foot/feet\n\nNote: You can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleInteriorType; + protected $cargoVolume; /** - * The number or type of airbags in the vehicle. + * A short text indicating the configuration of the vehicle, e.g. '5dr hatchback ST 2.5 MT 225 hp' or 'limited edition'. * * - * @var string|Number|null + * @var string */ - protected $numberOfAirbags; + protected $vehicleConfiguration; /** - * 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 color or color combination of the interior of the vehicle. * * - * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var string */ - protected $fuelType; + protected $vehicleInteriorColor; /** - * The available volume for cargo or luggage. For automobiles, this is usually the trunk volume.\n\nTypical unit code(s): LTR for liters, FTQ for cubic foot/feet\n\nNote: You can use [[minValue]] and [[maxValue]] to indicate ranges. + * The release date of a vehicle model (often used to differentiate versions of the same make and model). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Date|null */ - protected $cargoVolume; + protected $vehicleModelDate; /** - * The type of component used for transmitting the power from a rotating power source to the wheels or other relevant component(s) ("gearbox" for cars). + * The total distance travelled by the particular vehicle since its initial production, as read from its odometer.\n\nTypical unit code(s): KMT for kilometers, SMI for statute miles. * * - * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleTransmission; + protected $mileageFromOdometer; /** - * The permitted weight of passengers and cargo, EXCLUDING the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: Many databases specify the permitted TOTAL weight instead, which is the sum of [[weight]] and [[payload]]\n* Note 2: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 3: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 4: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. + * The number of persons that can be seated (e.g. in a vehicle), both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $payload; + protected $seatingCapacity; /** - * The drive wheel configuration, i.e. which roadwheels will receive torque from the vehicle's engine via the drivetrain. + * The number or type of airbags in the vehicle. * * - * @var string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue + * @var string|Number|null */ - protected $driveWheelConfiguration; + protected $numberOfAirbags; /** - * A textual description of known damages, both repaired and unrepaired. + * The type of component used for transmitting the power from a rotating power source to the wheels or other relevant component(s) ("gearbox" for cars). * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $knownVehicleDamages; + protected $vehicleTransmission; /** - * The amount of fuel consumed for traveling a particular distance or temporal duration with the given vehicle (e.g. liters per 100 km).\n\n* Note 1: There are unfortunately no standard unit codes for liters per 100 km. Use [[unitText]] to indicate the unit of measurement, e.g. L/100 km.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel consumption to another value. + * The release date of a vehicle model (often used to differentiate versions of the same make and model). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Date|null */ - protected $fuelConsumption; + protected $modelDate; /** - * The color or color combination of the interior of the vehicle. + * The total number of forward gears available for the transmission system of the vehicle.\n\nTypical unit code(s): C62. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - protected $vehicleInteriorColor; + protected $numberOfForwardGears; /** - * The number of axles.\n\nTypical unit code(s): C62 + * Indicates whether the vehicle has been used for special purposes, like commercial rental, driving school, or as a taxi. The legislation in many countries requires this information to be revealed when offering a car for sale. * * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var \OpenActive\Enums\SchemaOrg\CarUsageType|string|null */ - protected $numberOfAxles; + protected $vehicleSpecialUsage; /** - * The release date of a vehicle model (often used to differentiate versions of the same make and model). + * The time needed to accelerate the vehicle from a given start velocity to a given target velocity.\n\nTypical unit code(s): SEC for seconds\n\n* Note: There are unfortunately no standard unit codes for seconds/0..100 km/h or seconds/0..60 mph. Simply use "SEC" for seconds and indicate the velocities in the [[name]] of the [[QuantitativeValue]], or use [[valueReference]] with a [[QuantitativeValue]] of 0..60 mph or 0..100 km/h to specify the reference speeds. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $modelDate; + protected $accelerationTime; /** - * The number of doors.\n\nTypical unit code(s): C62 + * Information about the engine or engines of the vehicle. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\EngineSpecification|string */ - protected $numberOfDoors; + protected $vehicleEngine; /** - * The number of passengers that can be seated in the vehicle, both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons. + * The permitted total weight of the loaded vehicle, including passengers and cargo and the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleSeatingCapacity; + protected $weightTotal; /** - * 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 permitted weight of a trailer attached to the vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $callSign; + protected $trailerWeight; /** - * The permitted vertical load (TWR) of a trailer attached to the vehicle. Also referred to as Tongue Load Rating (TLR) or Vertical Load Rating (VLR)\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. + * The number of axles.\n\nTypical unit code(s): C62. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - protected $tongueWeight; + protected $numberOfAxles; /** - * The distance traveled per unit of fuel used; most commonly miles per gallon (mpg) or kilometers per liter (km/L).\n\n* Note 1: There are unfortunately no standard unit codes for miles per gallon or kilometers per liter. Use [[unitText]] to indicate the unit of measurement, e.g. mpg or km/L.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel economy to another value. + * The speed range of the vehicle. If the vehicle is powered by an engine, the upper limit of the speed range (indicated by [[maxValue]]) should be the maximum speed achievable under regular conditions.\n\nTypical unit code(s): KMH for km/h, HM for mile per hour (0.447 04 m/s), KNT for knot\n\n*Note 1: Use [[minValue]] and [[maxValue]] to indicate the range. Typically, the minimal value is zero.\n* Note 2: There are many different ways of measuring the speed range. You can link to information about how the given value has been determined using the [[valueReference]] property. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $fuelEfficiency; + protected $speed; /** - * The release date of a vehicle model (often used to differentiate versions of the same make and model). + * The type or material of the interior of the vehicle (e.g. synthetic fabric, leather, wood, etc.). While most interior types are characterized by the material used, an interior type can also be based on vehicle usage or target audience. * * - * @var Date|null + * @var string */ - protected $vehicleModelDate; + protected $vehicleInteriorType; /** - * A short text indicating the configuration of the vehicle, e.g. '5dr hatchback ST 2.5 MT 225 hp' or 'limited edition'. + * The distance traveled per unit of fuel used; most commonly miles per gallon (mpg) or kilometers per liter (km/L).\n\n* Note 1: There are unfortunately no standard unit codes for miles per gallon or kilometers per liter. Use [[unitText]] to indicate the unit of measurement, e.g. mpg or km/L.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel economy to another value. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleConfiguration; + protected $fuelEfficiency; /** - * The total distance travelled by the particular vehicle since its initial production, as read from its odometer.\n\nTypical unit code(s): KMT for kilometers, SMI for statute miles + * The date of the first registration of the vehicle with the respective public authorities. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Date|null */ - protected $mileageFromOdometer; + protected $dateVehicleFirstRegistered; /** - * The number of persons that can be seated (e.g. in a vehicle), both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons + * 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\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - protected $seatingCapacity; + protected $fuelType; /** * Indicates the design and body style of the vehicle (e.g. station wagon, hatchback, etc.). * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ protected $bodyType; /** - * The date of the first registration of the vehicle with the respective public authorities. + * The drive wheel configuration, i.e. which roadwheels will receive torque from the vehicle's engine via the drivetrain. * * - * @var Date|null + * @var string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue */ - protected $dateVehicleFirstRegistered; + protected $driveWheelConfiguration; /** - * The Vehicle Identification Number (VIN) is a unique serial number used by the automotive industry to identify individual motor vehicles. + * The permitted vertical load (TWR) of a trailer attached to the vehicle. Also referred to as Tongue Load Rating (TLR) or Vertical Load Rating (VLR).\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleIdentificationNumber; + protected $tongueWeight; /** - * Indicates that the vehicle meets the respective emission standard. + * The date the item, e.g. vehicle, was purchased by the current owner. * * - * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var Date|null */ - protected $meetsEmissionStandard; + protected $purchaseDate; /** - * Indicates whether the vehicle has been used for special purposes, like commercial rental, driving school, or as a taxi. The legislation in many countries requires this information to be revealed when offering a car for sale. + * The distance between the centers of the front and rear wheels.\n\nTypical unit code(s): CMT for centimeters, MTR for meters, INH for inches, FOT for foot/feet. * * - * @var \OpenActive\Enums\SchemaOrg\CarUsageType|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleSpecialUsage; + protected $wheelbase; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - public function getFuelCapacity() + public function getVehicleSeatingCapacity() { - return $this->fuelCapacity; + return $this->vehicleSeatingCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelCapacity + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $vehicleSeatingCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFuelCapacity($fuelCapacity) + public function setVehicleSeatingCapacity($vehicleSeatingCapacity) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "Number", + "null", ]; - $fuelCapacity = self::checkTypes($fuelCapacity, $types); + $vehicleSeatingCapacity = self::checkTypes($vehicleSeatingCapacity, $types); - $this->fuelCapacity = $fuelCapacity; + $this->vehicleSeatingCapacity = $vehicleSeatingCapacity; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|null */ - public function getAccelerationTime() + public function getEmissionsCO2() { - return $this->accelerationTime; + return $this->emissionsCO2; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $accelerationTime + * @param Number|null $emissionsCO2 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccelerationTime($accelerationTime) + public function setEmissionsCO2($emissionsCO2) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Number", + "null", ]; - $accelerationTime = self::checkTypes($accelerationTime, $types); + $emissionsCO2 = self::checkTypes($emissionsCO2, $types); - $this->accelerationTime = $accelerationTime; + $this->emissionsCO2 = $emissionsCO2; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getSpeed() + public function getNumberOfPreviousOwners() { - return $this->speed; + return $this->numberOfPreviousOwners; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $speed + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfPreviousOwners * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpeed($speed) + public function setNumberOfPreviousOwners($numberOfPreviousOwners) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $speed = self::checkTypes($speed, $types); + $numberOfPreviousOwners = self::checkTypes($numberOfPreviousOwners, $types); - $this->speed = $speed; + $this->numberOfPreviousOwners = $numberOfPreviousOwners; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getTrailerWeight() + public function getPayload() { - return $this->trailerWeight; + return $this->payload; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $trailerWeight + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $payload * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailerWeight($trailerWeight) + public function setPayload($payload) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $trailerWeight = self::checkTypes($trailerWeight, $types); + $payload = self::checkTypes($payload, $types); - $this->trailerWeight = $trailerWeight; + $this->payload = $payload; } /** - * @return \OpenActive\Models\SchemaOrg\EngineSpecification|string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getVehicleEngine() + public function getMeetsEmissionStandard() { - return $this->vehicleEngine; + return $this->meetsEmissionStandard; } /** - * @param \OpenActive\Models\SchemaOrg\EngineSpecification|string $vehicleEngine + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $meetsEmissionStandard * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleEngine($vehicleEngine) + public function setMeetsEmissionStandard($meetsEmissionStandard) { $types = [ - "\OpenActive\Models\SchemaOrg\EngineSpecification", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $vehicleEngine = self::checkTypes($vehicleEngine, $types); + $meetsEmissionStandard = self::checkTypes($meetsEmissionStandard, $types); - $this->vehicleEngine = $vehicleEngine; + $this->meetsEmissionStandard = $meetsEmissionStandard; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\SteeringPositionValue|string */ - public function getEmissionsCO2() + public function getSteeringPosition() { - return $this->emissionsCO2; + return $this->steeringPosition; } /** - * @param Number|null $emissionsCO2 + * @param \OpenActive\Models\SchemaOrg\SteeringPositionValue|string $steeringPosition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmissionsCO2($emissionsCO2) + public function setSteeringPosition($steeringPosition) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\SteeringPositionValue", + "string", ]; - $emissionsCO2 = self::checkTypes($emissionsCO2, $types); + $steeringPosition = self::checkTypes($steeringPosition, $types); - $this->emissionsCO2 = $emissionsCO2; + $this->steeringPosition = $steeringPosition; } /** * @return Date|null */ - public function getPurchaseDate() + public function getProductionDate() { - return $this->purchaseDate; + return $this->productionDate; } /** - * @param Date|null $purchaseDate + * @param Date|null $productionDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPurchaseDate($purchaseDate) + public function setProductionDate($productionDate) { $types = [ "Date", "null", ]; - $purchaseDate = self::checkTypes($purchaseDate, $types); + $productionDate = self::checkTypes($productionDate, $types); - $this->purchaseDate = $purchaseDate; + $this->productionDate = $productionDate; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return string */ - public function getNumberOfForwardGears() + public function getVehicleIdentificationNumber() { - return $this->numberOfForwardGears; + return $this->vehicleIdentificationNumber; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfForwardGears + * @param string $vehicleIdentificationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfForwardGears($numberOfForwardGears) + public function setVehicleIdentificationNumber($vehicleIdentificationNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $numberOfForwardGears = self::checkTypes($numberOfForwardGears, $types); + $vehicleIdentificationNumber = self::checkTypes($vehicleIdentificationNumber, $types); - $this->numberOfForwardGears = $numberOfForwardGears; + $this->vehicleIdentificationNumber = $vehicleIdentificationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getWeightTotal() + public function getCallSign() { - return $this->weightTotal; + return $this->callSign; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weightTotal + * @param string $callSign * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWeightTotal($weightTotal) + public function setCallSign($callSign) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $weightTotal = self::checkTypes($weightTotal, $types); + $callSign = self::checkTypes($callSign, $types); - $this->weightTotal = $weightTotal; + $this->callSign = $callSign; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getProductionDate() + public function getFuelConsumption() { - return $this->productionDate; + return $this->fuelConsumption; } /** - * @param Date|null $productionDate + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelConsumption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionDate($productionDate) + public function setFuelConsumption($fuelConsumption) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $productionDate = self::checkTypes($productionDate, $types); + $fuelConsumption = self::checkTypes($fuelConsumption, $types); - $this->productionDate = $productionDate; + $this->fuelConsumption = $fuelConsumption; } /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - public function getNumberOfPreviousOwners() + public function getNumberOfDoors() { - return $this->numberOfPreviousOwners; + return $this->numberOfDoors; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfPreviousOwners + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfDoors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfPreviousOwners($numberOfPreviousOwners) + public function setNumberOfDoors($numberOfDoors) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "Number", "null", ]; - $numberOfPreviousOwners = self::checkTypes($numberOfPreviousOwners, $types); + $numberOfDoors = self::checkTypes($numberOfDoors, $types); - $this->numberOfPreviousOwners = $numberOfPreviousOwners; + $this->numberOfDoors = $numberOfDoors; } /** - * @return \OpenActive\Models\SchemaOrg\SteeringPositionValue|string + * @return string */ - public function getSteeringPosition() + public function getKnownVehicleDamages() { - return $this->steeringPosition; + return $this->knownVehicleDamages; } /** - * @param \OpenActive\Models\SchemaOrg\SteeringPositionValue|string $steeringPosition + * @param string $knownVehicleDamages * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSteeringPosition($steeringPosition) + public function setKnownVehicleDamages($knownVehicleDamages) { $types = [ - "\OpenActive\Models\SchemaOrg\SteeringPositionValue", "string", ]; - $steeringPosition = self::checkTypes($steeringPosition, $types); + $knownVehicleDamages = self::checkTypes($knownVehicleDamages, $types); - $this->steeringPosition = $steeringPosition; + $this->knownVehicleDamages = $knownVehicleDamages; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getWheelbase() + public function getFuelCapacity() { - return $this->wheelbase; + return $this->fuelCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $wheelbase + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWheelbase($wheelbase) + public function setFuelCapacity($fuelCapacity) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $wheelbase = self::checkTypes($wheelbase, $types); + $fuelCapacity = self::checkTypes($fuelCapacity, $types); - $this->wheelbase = $wheelbase; + $this->fuelCapacity = $fuelCapacity; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleInteriorType() + public function getCargoVolume() { - return $this->vehicleInteriorType; + return $this->cargoVolume; } /** - * @param string $vehicleInteriorType + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $cargoVolume * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleInteriorType($vehicleInteriorType) + public function setCargoVolume($cargoVolume) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $vehicleInteriorType = self::checkTypes($vehicleInteriorType, $types); + $cargoVolume = self::checkTypes($cargoVolume, $types); - $this->vehicleInteriorType = $vehicleInteriorType; + $this->cargoVolume = $cargoVolume; } /** - * @return string|Number|null + * @return string */ - public function getNumberOfAirbags() + public function getVehicleConfiguration() { - return $this->numberOfAirbags; + return $this->vehicleConfiguration; } /** - * @param string|Number|null $numberOfAirbags + * @param string $vehicleConfiguration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfAirbags($numberOfAirbags) + public function setVehicleConfiguration($vehicleConfiguration) { $types = [ "string", - "Number", - "null", ]; - $numberOfAirbags = self::checkTypes($numberOfAirbags, $types); + $vehicleConfiguration = self::checkTypes($vehicleConfiguration, $types); - $this->numberOfAirbags = $numberOfAirbags; + $this->vehicleConfiguration = $vehicleConfiguration; } /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return string */ - public function getFuelType() + public function getVehicleInteriorColor() { - return $this->fuelType; + return $this->vehicleInteriorColor; } /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $fuelType + * @param string $vehicleInteriorColor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFuelType($fuelType) + public function setVehicleInteriorColor($vehicleInteriorColor) { $types = [ "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "null", ]; - $fuelType = self::checkTypes($fuelType, $types); + $vehicleInteriorColor = self::checkTypes($vehicleInteriorColor, $types); - $this->fuelType = $fuelType; + $this->vehicleInteriorColor = $vehicleInteriorColor; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Date|null */ - public function getCargoVolume() + public function getVehicleModelDate() { - return $this->cargoVolume; + return $this->vehicleModelDate; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $cargoVolume + * @param Date|null $vehicleModelDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCargoVolume($cargoVolume) + public function setVehicleModelDate($vehicleModelDate) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Date", + "null", ]; - $cargoVolume = self::checkTypes($cargoVolume, $types); + $vehicleModelDate = self::checkTypes($vehicleModelDate, $types); - $this->cargoVolume = $cargoVolume; + $this->vehicleModelDate = $vehicleModelDate; } /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleTransmission() + public function getMileageFromOdometer() { - return $this->vehicleTransmission; + return $this->mileageFromOdometer; } /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $vehicleTransmission + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $mileageFromOdometer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleTransmission($vehicleTransmission) + public function setMileageFromOdometer($mileageFromOdometer) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "null", ]; - $vehicleTransmission = self::checkTypes($vehicleTransmission, $types); + $mileageFromOdometer = self::checkTypes($mileageFromOdometer, $types); - $this->vehicleTransmission = $vehicleTransmission; + $this->mileageFromOdometer = $mileageFromOdometer; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getPayload() + public function getSeatingCapacity() { - return $this->payload; + return $this->seatingCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $payload + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $seatingCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPayload($payload) + public function setSeatingCapacity($seatingCapacity) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $payload = self::checkTypes($payload, $types); + $seatingCapacity = self::checkTypes($seatingCapacity, $types); - $this->payload = $payload; + $this->seatingCapacity = $seatingCapacity; } /** - * @return string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue + * @return string|Number|null */ - public function getDriveWheelConfiguration() + public function getNumberOfAirbags() { - return $this->driveWheelConfiguration; + return $this->numberOfAirbags; } /** - * @param string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue $driveWheelConfiguration + * @param string|Number|null $numberOfAirbags * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDriveWheelConfiguration($driveWheelConfiguration) + public function setNumberOfAirbags($numberOfAirbags) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue", + "Number", + "null", ]; - $driveWheelConfiguration = self::checkTypes($driveWheelConfiguration, $types); + $numberOfAirbags = self::checkTypes($numberOfAirbags, $types); - $this->driveWheelConfiguration = $driveWheelConfiguration; + $this->numberOfAirbags = $numberOfAirbags; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getKnownVehicleDamages() + public function getVehicleTransmission() { - return $this->knownVehicleDamages; + return $this->vehicleTransmission; } /** - * @param string $knownVehicleDamages + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $vehicleTransmission * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnownVehicleDamages($knownVehicleDamages) + public function setVehicleTransmission($vehicleTransmission) { $types = [ + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $knownVehicleDamages = self::checkTypes($knownVehicleDamages, $types); + $vehicleTransmission = self::checkTypes($vehicleTransmission, $types); - $this->knownVehicleDamages = $knownVehicleDamages; + $this->vehicleTransmission = $vehicleTransmission; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Date|null */ - public function getFuelConsumption() + public function getModelDate() { - return $this->fuelConsumption; + return $this->modelDate; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelConsumption + * @param Date|null $modelDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFuelConsumption($fuelConsumption) + public function setModelDate($modelDate) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Date", + "null", ]; - $fuelConsumption = self::checkTypes($fuelConsumption, $types); + $modelDate = self::checkTypes($modelDate, $types); - $this->fuelConsumption = $fuelConsumption; + $this->modelDate = $modelDate; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - public function getVehicleInteriorColor() + public function getNumberOfForwardGears() { - return $this->vehicleInteriorColor; + return $this->numberOfForwardGears; } /** - * @param string $vehicleInteriorColor + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfForwardGears * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleInteriorColor($vehicleInteriorColor) + public function setNumberOfForwardGears($numberOfForwardGears) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "Number", + "null", ]; - $vehicleInteriorColor = self::checkTypes($vehicleInteriorColor, $types); + $numberOfForwardGears = self::checkTypes($numberOfForwardGears, $types); - $this->vehicleInteriorColor = $vehicleInteriorColor; + $this->numberOfForwardGears = $numberOfForwardGears; } /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return \OpenActive\Enums\SchemaOrg\CarUsageType|string|null */ - public function getNumberOfAxles() + public function getVehicleSpecialUsage() { - return $this->numberOfAxles; + return $this->vehicleSpecialUsage; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfAxles + * @param \OpenActive\Enums\SchemaOrg\CarUsageType|string|null $vehicleSpecialUsage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfAxles($numberOfAxles) + public function setVehicleSpecialUsage($vehicleSpecialUsage) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\CarUsageType", "string", "null", ]; - $numberOfAxles = self::checkTypes($numberOfAxles, $types); + $vehicleSpecialUsage = self::checkTypes($vehicleSpecialUsage, $types); - $this->numberOfAxles = $numberOfAxles; + $this->vehicleSpecialUsage = $vehicleSpecialUsage; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getModelDate() + public function getAccelerationTime() { - return $this->modelDate; + return $this->accelerationTime; } /** - * @param Date|null $modelDate + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $accelerationTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setModelDate($modelDate) + public function setAccelerationTime($accelerationTime) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $modelDate = self::checkTypes($modelDate, $types); + $accelerationTime = self::checkTypes($accelerationTime, $types); - $this->modelDate = $modelDate; + $this->accelerationTime = $accelerationTime; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\EngineSpecification|string */ - public function getNumberOfDoors() + public function getVehicleEngine() { - return $this->numberOfDoors; + return $this->vehicleEngine; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfDoors + * @param \OpenActive\Models\SchemaOrg\EngineSpecification|string $vehicleEngine * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfDoors($numberOfDoors) + public function setVehicleEngine($vehicleEngine) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\EngineSpecification", "string", - "Number", - "null", ]; - $numberOfDoors = self::checkTypes($numberOfDoors, $types); + $vehicleEngine = self::checkTypes($vehicleEngine, $types); - $this->numberOfDoors = $numberOfDoors; + $this->vehicleEngine = $vehicleEngine; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleSeatingCapacity() + public function getWeightTotal() { - return $this->vehicleSeatingCapacity; + return $this->weightTotal; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $vehicleSeatingCapacity + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weightTotal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleSeatingCapacity($vehicleSeatingCapacity) + public function setWeightTotal($weightTotal) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $vehicleSeatingCapacity = self::checkTypes($vehicleSeatingCapacity, $types); + $weightTotal = self::checkTypes($weightTotal, $types); - $this->vehicleSeatingCapacity = $vehicleSeatingCapacity; + $this->weightTotal = $weightTotal; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getCallSign() + public function getTrailerWeight() { - return $this->callSign; + return $this->trailerWeight; } /** - * @param string $callSign + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $trailerWeight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCallSign($callSign) + public function setTrailerWeight($trailerWeight) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $callSign = self::checkTypes($callSign, $types); + $trailerWeight = self::checkTypes($trailerWeight, $types); - $this->callSign = $callSign; + $this->trailerWeight = $trailerWeight; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - public function getTongueWeight() + public function getNumberOfAxles() { - return $this->tongueWeight; + return $this->numberOfAxles; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $tongueWeight + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfAxles * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTongueWeight($tongueWeight) + public function setNumberOfAxles($numberOfAxles) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "Number", + "null", ]; - $tongueWeight = self::checkTypes($tongueWeight, $types); + $numberOfAxles = self::checkTypes($numberOfAxles, $types); - $this->tongueWeight = $tongueWeight; + $this->numberOfAxles = $numberOfAxles; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getFuelEfficiency() + public function getSpeed() { - return $this->fuelEfficiency; + return $this->speed; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelEfficiency + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $speed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFuelEfficiency($fuelEfficiency) + public function setSpeed($speed) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $fuelEfficiency = self::checkTypes($fuelEfficiency, $types); + $speed = self::checkTypes($speed, $types); - $this->fuelEfficiency = $fuelEfficiency; + $this->speed = $speed; } /** - * @return Date|null + * @return string */ - public function getVehicleModelDate() + public function getVehicleInteriorType() { - return $this->vehicleModelDate; + return $this->vehicleInteriorType; } /** - * @param Date|null $vehicleModelDate + * @param string $vehicleInteriorType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleModelDate($vehicleModelDate) + public function setVehicleInteriorType($vehicleInteriorType) { $types = [ - "Date", - "null", + "string", ]; - $vehicleModelDate = self::checkTypes($vehicleModelDate, $types); + $vehicleInteriorType = self::checkTypes($vehicleInteriorType, $types); - $this->vehicleModelDate = $vehicleModelDate; + $this->vehicleInteriorType = $vehicleInteriorType; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleConfiguration() + public function getFuelEfficiency() { - return $this->vehicleConfiguration; + return $this->fuelEfficiency; } /** - * @param string $vehicleConfiguration + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelEfficiency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleConfiguration($vehicleConfiguration) + public function setFuelEfficiency($fuelEfficiency) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $vehicleConfiguration = self::checkTypes($vehicleConfiguration, $types); + $fuelEfficiency = self::checkTypes($fuelEfficiency, $types); - $this->vehicleConfiguration = $vehicleConfiguration; + $this->fuelEfficiency = $fuelEfficiency; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Date|null */ - public function getMileageFromOdometer() + public function getDateVehicleFirstRegistered() { - return $this->mileageFromOdometer; + return $this->dateVehicleFirstRegistered; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $mileageFromOdometer + * @param Date|null $dateVehicleFirstRegistered * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMileageFromOdometer($mileageFromOdometer) + public function setDateVehicleFirstRegistered($dateVehicleFirstRegistered) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Date", + "null", ]; - $mileageFromOdometer = self::checkTypes($mileageFromOdometer, $types); + $dateVehicleFirstRegistered = self::checkTypes($dateVehicleFirstRegistered, $types); - $this->mileageFromOdometer = $mileageFromOdometer; + $this->dateVehicleFirstRegistered = $dateVehicleFirstRegistered; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - public function getSeatingCapacity() + public function getFuelType() { - return $this->seatingCapacity; + return $this->fuelType; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $seatingCapacity + * @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 setSeatingCapacity($seatingCapacity) + public function setFuelType($fuelType) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "null", ]; - $seatingCapacity = self::checkTypes($seatingCapacity, $types); + $fuelType = self::checkTypes($fuelType, $types); - $this->seatingCapacity = $seatingCapacity; + $this->fuelType = $fuelType; } /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ public function getBodyType() { @@ -1242,15 +1243,15 @@ public function getBodyType() } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $bodyType + * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $bodyType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setBodyType($bodyType) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "null", ]; @@ -1260,104 +1261,103 @@ public function setBodyType($bodyType) } /** - * @return Date|null + * @return string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue */ - public function getDateVehicleFirstRegistered() + public function getDriveWheelConfiguration() { - return $this->dateVehicleFirstRegistered; + return $this->driveWheelConfiguration; } /** - * @param Date|null $dateVehicleFirstRegistered + * @param string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue $driveWheelConfiguration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateVehicleFirstRegistered($dateVehicleFirstRegistered) + public function setDriveWheelConfiguration($driveWheelConfiguration) { $types = [ - "Date", - "null", + "string", + "\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue", ]; - $dateVehicleFirstRegistered = self::checkTypes($dateVehicleFirstRegistered, $types); + $driveWheelConfiguration = self::checkTypes($driveWheelConfiguration, $types); - $this->dateVehicleFirstRegistered = $dateVehicleFirstRegistered; + $this->driveWheelConfiguration = $driveWheelConfiguration; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleIdentificationNumber() + public function getTongueWeight() { - return $this->vehicleIdentificationNumber; + return $this->tongueWeight; } /** - * @param string $vehicleIdentificationNumber + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $tongueWeight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleIdentificationNumber($vehicleIdentificationNumber) + public function setTongueWeight($tongueWeight) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $vehicleIdentificationNumber = self::checkTypes($vehicleIdentificationNumber, $types); + $tongueWeight = self::checkTypes($tongueWeight, $types); - $this->vehicleIdentificationNumber = $vehicleIdentificationNumber; + $this->tongueWeight = $tongueWeight; } /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return Date|null */ - public function getMeetsEmissionStandard() + public function getPurchaseDate() { - return $this->meetsEmissionStandard; + return $this->purchaseDate; } /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $meetsEmissionStandard + * @param Date|null $purchaseDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMeetsEmissionStandard($meetsEmissionStandard) + public function setPurchaseDate($purchaseDate) { $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "Date", "null", ]; - $meetsEmissionStandard = self::checkTypes($meetsEmissionStandard, $types); + $purchaseDate = self::checkTypes($purchaseDate, $types); - $this->meetsEmissionStandard = $meetsEmissionStandard; + $this->purchaseDate = $purchaseDate; } /** - * @return \OpenActive\Enums\SchemaOrg\CarUsageType|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleSpecialUsage() + public function getWheelbase() { - return $this->vehicleSpecialUsage; + return $this->wheelbase; } /** - * @param \OpenActive\Enums\SchemaOrg\CarUsageType|string|null $vehicleSpecialUsage + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $wheelbase * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleSpecialUsage($vehicleSpecialUsage) + public function setWheelbase($wheelbase) { $types = [ - "\OpenActive\Enums\SchemaOrg\CarUsageType", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $vehicleSpecialUsage = self::checkTypes($vehicleSpecialUsage, $types); + $wheelbase = self::checkTypes($wheelbase, $types); - $this->vehicleSpecialUsage = $vehicleSpecialUsage; + $this->wheelbase = $wheelbase; } } diff --git a/src/Models/SchemaOrg/Vein.php b/src/Models/SchemaOrg/Vein.php index 98279ab1..852fcb5f 100644 --- a/src/Models/SchemaOrg/Vein.php +++ b/src/Models/SchemaOrg/Vein.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "regionDrained" => "regionDrained", - "tributary" => "tributary", "drainsTo" => "drainsTo", + "tributary" => "tributary", ]; return array_merge(parent::fieldList(), $fields); @@ -34,20 +34,20 @@ public static function fieldList() { protected $regionDrained; /** - * The anatomical or organ system that the vein flows into; a larger structure that the vein connects to. + * The vasculature that the vein drains into. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\Vessel|string */ - protected $tributary; + protected $drainsTo; /** - * The vasculature that the vein drains into. + * The anatomical or organ system that the vein flows into; a larger structure that the vein connects to. * * - * @var \OpenActive\Models\SchemaOrg\Vessel|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $drainsTo; + protected $tributary; /** * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string @@ -76,53 +76,53 @@ public function setRegionDrained($regionDrained) } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\Vessel|string */ - public function getTributary() + public function getDrainsTo() { - return $this->tributary; + return $this->drainsTo; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $tributary + * @param \OpenActive\Models\SchemaOrg\Vessel|string $drainsTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTributary($tributary) + public function setDrainsTo($drainsTo) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\Vessel", "string", ]; - $tributary = self::checkTypes($tributary, $types); + $drainsTo = self::checkTypes($drainsTo, $types); - $this->tributary = $tributary; + $this->drainsTo = $drainsTo; } /** - * @return \OpenActive\Models\SchemaOrg\Vessel|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getDrainsTo() + public function getTributary() { - return $this->drainsTo; + return $this->tributary; } /** - * @param \OpenActive\Models\SchemaOrg\Vessel|string $drainsTo + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $tributary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDrainsTo($drainsTo) + public function setTributary($tributary) { $types = [ - "\OpenActive\Models\SchemaOrg\Vessel", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $drainsTo = self::checkTypes($drainsTo, $types); + $tributary = self::checkTypes($tributary, $types); - $this->drainsTo = $drainsTo; + $this->tributary = $tributary; } } diff --git a/src/Models/SchemaOrg/VideoGame.php b/src/Models/SchemaOrg/VideoGame.php index 4dcc4416..fdc27aa2 100644 --- a/src/Models/SchemaOrg/VideoGame.php +++ b/src/Models/SchemaOrg/VideoGame.php @@ -5,7 +5,7 @@ /** * */ -class VideoGame extends \OpenActive\Models\SchemaOrg\SoftwareApplication +class VideoGame extends \OpenActive\Models\SchemaOrg\Game { /** * @return string[]|null @@ -17,41 +17,41 @@ public static function getType() public static function fieldList() { $fields = [ - "director" => "director", "actor" => "actor", + "gamePlatform" => "gamePlatform", "trailer" => "trailer", - "gameEdition" => "gameEdition", - "cheatCode" => "cheatCode", + "actors" => "actors", "gameServer" => "gameServer", "gameTip" => "gameTip", - "actors" => "actors", + "directors" => "directors", + "cheatCode" => "cheatCode", + "gameEdition" => "gameEdition", "playMode" => "playMode", - "gamePlatform" => "gamePlatform", + "director" => "director", "musicBy" => "musicBy", - "directors" => "directors", ]; 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; /** - * 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 electronic systems used to play video games. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $actor; + protected $gamePlatform; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * The trailer of a movie or TV/radio series, season, episode, etc. * * * @var \OpenActive\Models\SchemaOrg\VideoObject|string @@ -59,20 +59,12 @@ public static function fieldList() { protected $trailer; /** - * The edition of a video game. - * - * - * @var string - */ - protected $gameEdition; - - /** - * Cheat codes to the game. + * 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\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $cheatCode; + protected $actors; /** * The server on which it is possible to play the game. @@ -91,93 +83,102 @@ public static function fieldList() { protected $gameTip; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $actors; + protected $directors; /** - * Indicates whether this game is multi-player, co-op or single-player. The game can be marked as multi-player, co-op and single-player at the same time. + * Cheat codes to the game. * * - * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $playMode; + protected $cheatCode; /** - * The electronic systems used to play video games. + * The edition of a video game. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var string */ - protected $gamePlatform; + protected $gameEdition; /** - * The composer of the soundtrack. + * Indicates whether this game is multi-player, co-op or single-player. The game can be marked as multi-player, co-op and single-player at the same time. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null */ - protected $musicBy; + protected $playMode; /** - * 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. + * 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 $directors; + protected $director; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * The composer of the soundtrack. + * + * + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string */ - public function getDirector() + protected $musicBy; + + /** + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string + */ + public function getActor() { - return $this->director; + return $this->actor; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @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 setDirector($director) + public function setActor($actor) { $types = [ "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\PerformingGroup", "string", ]; - $director = self::checkTypes($director, $types); + $actor = self::checkTypes($actor, $types); - $this->director = $director; + $this->actor = $actor; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getActor() + public function getGamePlatform() { - return $this->actor; + return $this->gamePlatform; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param \OpenActive\Models\SchemaOrg\Thing|string $gamePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setGamePlatform($gamePlatform) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $actor = self::checkTypes($actor, $types); + $gamePlatform = self::checkTypes($gamePlatform, $types); - $this->actor = $actor; + $this->gamePlatform = $gamePlatform; } /** @@ -206,127 +207,152 @@ public function setTrailer($trailer) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGameEdition() + public function getActors() { - return $this->gameEdition; + return $this->actors; } /** - * @param string $gameEdition + * @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 setGameEdition($gameEdition) + public function setActors($actors) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $gameEdition = self::checkTypes($gameEdition, $types); + $actors = self::checkTypes($actors, $types); - $this->gameEdition = $gameEdition; + $this->actors = $actors; + } + + /** + * @return \OpenActive\Models\SchemaOrg\GameServer|string + */ + public function getGameServer() + { + return $this->gameServer; + } + + /** + * @param \OpenActive\Models\SchemaOrg\GameServer|string $gameServer + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setGameServer($gameServer) + { + $types = [ + "\OpenActive\Models\SchemaOrg\GameServer", + "string", + ]; + + $gameServer = self::checkTypes($gameServer, $types); + + $this->gameServer = $gameServer; } /** * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getCheatCode() + public function getGameTip() { - return $this->cheatCode; + return $this->gameTip; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $cheatCode + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $gameTip * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCheatCode($cheatCode) + public function setGameTip($gameTip) { $types = [ "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $cheatCode = self::checkTypes($cheatCode, $types); + $gameTip = self::checkTypes($gameTip, $types); - $this->cheatCode = $cheatCode; + $this->gameTip = $gameTip; } /** - * @return \OpenActive\Models\SchemaOrg\GameServer|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGameServer() + public function getDirectors() { - return $this->gameServer; + return $this->directors; } /** - * @param \OpenActive\Models\SchemaOrg\GameServer|string $gameServer + * @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 setGameServer($gameServer) + public function setDirectors($directors) { $types = [ - "\OpenActive\Models\SchemaOrg\GameServer", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $gameServer = self::checkTypes($gameServer, $types); + $directors = self::checkTypes($directors, $types); - $this->gameServer = $gameServer; + $this->directors = $directors; } /** * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getGameTip() + public function getCheatCode() { - return $this->gameTip; + return $this->cheatCode; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $gameTip + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $cheatCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGameTip($gameTip) + public function setCheatCode($cheatCode) { $types = [ "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $gameTip = self::checkTypes($gameTip, $types); + $cheatCode = self::checkTypes($cheatCode, $types); - $this->gameTip = $gameTip; + $this->cheatCode = $cheatCode; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getActors() + public function getGameEdition() { - return $this->actors; + return $this->gameEdition; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param string $gameEdition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setGameEdition($gameEdition) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actors = self::checkTypes($actors, $types); + $gameEdition = self::checkTypes($gameEdition, $types); - $this->actors = $actors; + $this->gameEdition = $gameEdition; } /** @@ -355,28 +381,28 @@ public function setPlayMode($playMode) } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGamePlatform() + public function getDirector() { - return $this->gamePlatform; + return $this->director; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform + * @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 setGamePlatform($gamePlatform) + public function setDirector($director) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $gamePlatform = self::checkTypes($gamePlatform, $types); + $director = self::checkTypes($director, $types); - $this->gamePlatform = $gamePlatform; + $this->director = $director; } /** @@ -405,29 +431,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/VideoGameSeries.php b/src/Models/SchemaOrg/VideoGameSeries.php index 16fd6ce6..a9e75442 100644 --- a/src/Models/SchemaOrg/VideoGameSeries.php +++ b/src/Models/SchemaOrg/VideoGameSeries.php @@ -17,759 +17,760 @@ public static function getType() public static function fieldList() { $fields = [ - "season" => "season", - "containsSeason" => "containsSeason", - "director" => "director", "actor" => "actor", + "gamePlatform" => "gamePlatform", "trailer" => "trailer", - "episodes" => "episodes", - "characterAttribute" => "characterAttribute", - "numberOfEpisodes" => "numberOfEpisodes", - "seasons" => "seasons", - "cheatCode" => "cheatCode", - "gameItem" => "gameItem", - "productionCompany" => "productionCompany", "actors" => "actors", - "playMode" => "playMode", - "gamePlatform" => "gamePlatform", + "containsSeason" => "containsSeason", "numberOfSeasons" => "numberOfSeasons", - "musicBy" => "musicBy", - "numberOfPlayers" => "numberOfPlayers", "quest" => "quest", - "gameLocation" => "gameLocation", "episode" => "episode", + "numberOfPlayers" => "numberOfPlayers", "directors" => "directors", + "cheatCode" => "cheatCode", + "seasons" => "seasons", + "gameItem" => "gameItem", + "gameLocation" => "gameLocation", + "season" => "season", + "productionCompany" => "productionCompany", + "characterAttribute" => "characterAttribute", + "playMode" => "playMode", + "director" => "director", + "numberOfEpisodes" => "numberOfEpisodes", + "musicBy" => "musicBy", + "episodes" => "episodes", ]; return array_merge(parent::fieldList(), $fields); } /** - * A season in a media series. + * 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|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string */ - protected $season; + protected $actor; /** - * A season that is part of the media series. + * The electronic systems used to play video games. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $containsSeason; + protected $gamePlatform; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $director; + protected $trailer; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc. 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 season that is part of the media series. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $trailer; + protected $containsSeason; /** - * An episode of a TV/radio series or season. + * The number of seasons in this series. * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var int|null */ - protected $episodes; + protected $numberOfSeasons; /** - * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage). + * The task that a player-controlled character, or group of characters may complete in order to gain a reward. * * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $characterAttribute; + protected $quest; /** - * The number of episodes in this season or series. + * An episode of a TV, radio or game media within a series or season. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $numberOfEpisodes; + protected $episode; /** - * A season in a media series. + * Indicate how many people can play this game (minimum, maximum, or range). * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $seasons; + protected $numberOfPlayers; /** - * Cheat codes to the game. + * 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\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $cheatCode; + protected $directors; /** - * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character. + * Cheat codes to the game. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $gameItem; + protected $cheatCode; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * A season in a media series. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $productionCompany; + protected $seasons; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * An 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\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $actors; + protected $gameItem; /** - * Indicates whether this game is multi-player, co-op or single-player. The game can be marked as multi-player, co-op and single-player at the same time. + * Real or fictional location of the game (or part of game). * * - * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place */ - protected $playMode; + protected $gameLocation; /** - * The electronic systems used to play video games. + * A season in a media series. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason */ - protected $gamePlatform; + protected $season; /** - * The number of seasons in this series. + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $numberOfSeasons; + protected $productionCompany; /** - * The composer of the soundtrack. + * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage). * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $musicBy; + protected $characterAttribute; /** - * Indicate how many people can play this game (minimum, maximum, or range). + * Indicates whether this game is multi-player, co-op or single-player. The game can be marked as multi-player, co-op and single-player at the same time. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null */ - protected $numberOfPlayers; + protected $playMode; /** - * The task that a player-controlled character, or group of characters may complete in order to gain a reward. + * 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\Thing|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $quest; + protected $director; /** - * Real or fictional location of the game (or part of game). + * The number of episodes in this season or series. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var int|null */ - protected $gameLocation; + protected $numberOfEpisodes; /** - * An episode of a tv, radio or game media within a series or season. + * The composer of the soundtrack. * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string */ - protected $episode; + 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. + * An episode of a TV/radio series or season. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $directors; + protected $episodes; /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string */ - public function getSeason() + public function getActor() { - return $this->season; + return $this->actor; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @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 setSeason($season) + public function setActor($actor) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\PerformingGroup", "string", - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", ]; - $season = self::checkTypes($season, $types); + $actor = self::checkTypes($actor, $types); - $this->season = $season; + $this->actor = $actor; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getContainsSeason() + public function getGamePlatform() { - return $this->containsSeason; + return $this->gamePlatform; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason + * @param \OpenActive\Models\SchemaOrg\Thing|string $gamePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContainsSeason($containsSeason) + public function setGamePlatform($gamePlatform) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $containsSeason = self::checkTypes($containsSeason, $types); + $gamePlatform = self::checkTypes($gamePlatform, $types); - $this->containsSeason = $containsSeason; + $this->gamePlatform = $gamePlatform; } /** - * @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 */ - 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\CreativeWorkSeason|string */ - public function getTrailer() + public function getContainsSeason() { - return $this->trailer; + return $this->containsSeason; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setContainsSeason($containsSeason) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $containsSeason = self::checkTypes($containsSeason, $types); - $this->trailer = $trailer; + $this->containsSeason = $containsSeason; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return int|null */ - public function getEpisodes() + public function getNumberOfSeasons() { - return $this->episodes; + return $this->numberOfSeasons; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes + * @param int|null $numberOfSeasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisodes($episodes) + public function setNumberOfSeasons($numberOfSeasons) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", - "string", + "int", + "null", ]; - $episodes = self::checkTypes($episodes, $types); + $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); - $this->episodes = $episodes; + $this->numberOfSeasons = $numberOfSeasons; } /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getCharacterAttribute() + public function getQuest() { - return $this->characterAttribute; + return $this->quest; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $characterAttribute + * @param \OpenActive\Models\SchemaOrg\Thing|string $quest * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCharacterAttribute($characterAttribute) + public function setQuest($quest) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $characterAttribute = self::checkTypes($characterAttribute, $types); + $quest = self::checkTypes($quest, $types); - $this->characterAttribute = $characterAttribute; + $this->quest = $quest; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getNumberOfEpisodes() + public function getEpisode() { - return $this->numberOfEpisodes; + return $this->episode; } /** - * @param int|null $numberOfEpisodes + * @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 setNumberOfEpisodes($numberOfEpisodes) + public function setEpisode($episode) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Episode", + "string", ]; - $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); + $episode = self::checkTypes($episode, $types); - $this->numberOfEpisodes = $numberOfEpisodes; + $this->episode = $episode; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSeasons() + public function getNumberOfPlayers() { - return $this->seasons; + return $this->numberOfPlayers; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeasons($seasons) + public function setNumberOfPlayers($numberOfPlayers) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $seasons = self::checkTypes($seasons, $types); + $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); - $this->seasons = $seasons; + $this->numberOfPlayers = $numberOfPlayers; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getCheatCode() + public function getDirectors() { - return $this->cheatCode; + return $this->directors; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $cheatCode + * @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 setCheatCode($cheatCode) + public function setDirectors($directors) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $cheatCode = self::checkTypes($cheatCode, $types); + $directors = self::checkTypes($directors, $types); - $this->cheatCode = $cheatCode; + $this->directors = $directors; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getGameItem() + public function getCheatCode() { - return $this->gameItem; + return $this->cheatCode; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $cheatCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGameItem($gameItem) + public function setCheatCode($cheatCode) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $gameItem = self::checkTypes($gameItem, $types); + $cheatCode = self::checkTypes($cheatCode, $types); - $this->gameItem = $gameItem; + $this->cheatCode = $cheatCode; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getProductionCompany() + public function getSeasons() { - return $this->productionCompany; + return $this->seasons; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionCompany($productionCompany) + public function setSeasons($seasons) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $seasons = self::checkTypes($seasons, $types); - $this->productionCompany = $productionCompany; + $this->seasons = $seasons; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getActors() + public function getGameItem() { - return $this->actors; + return $this->gameItem; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @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 setActors($actors) + public function setGameItem($gameItem) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $actors = self::checkTypes($actors, $types); + $gameItem = self::checkTypes($gameItem, $types); - $this->actors = $actors; + $this->gameItem = $gameItem; } /** - * @return \OpenActive\Enums\SchemaOrg\GamePlayMode|null + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place */ - public function getPlayMode() + public function getGameLocation() { - return $this->playMode; + return $this->gameLocation; } /** - * @param \OpenActive\Enums\SchemaOrg\GamePlayMode|null $playMode + * @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 setPlayMode($playMode) + public function setGameLocation($gameLocation) { $types = [ - "\OpenActive\Enums\SchemaOrg\GamePlayMode", - "null", + "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Place", ]; - $playMode = self::checkTypes($playMode, $types); + $gameLocation = self::checkTypes($gameLocation, $types); - $this->playMode = $playMode; + $this->gameLocation = $gameLocation; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason */ - public function getGamePlatform() + public function getSeason() { - return $this->gamePlatform; + return $this->season; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform + * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGamePlatform($gamePlatform) + public function setSeason($season) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", ]; - $gamePlatform = self::checkTypes($gamePlatform, $types); + $season = self::checkTypes($season, $types); - $this->gamePlatform = $gamePlatform; + $this->season = $season; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getNumberOfSeasons() + public function getProductionCompany() { - return $this->numberOfSeasons; + return $this->productionCompany; } /** - * @param int|null $numberOfSeasons + * @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 setNumberOfSeasons($numberOfSeasons) + public function setProductionCompany($productionCompany) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->numberOfSeasons = $numberOfSeasons; + $this->productionCompany = $productionCompany; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getMusicBy() + public function getCharacterAttribute() { - return $this->musicBy; + return $this->characterAttribute; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @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 setMusicBy($musicBy) + public function setCharacterAttribute($characterAttribute) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $characterAttribute = self::checkTypes($characterAttribute, $types); - $this->musicBy = $musicBy; + $this->characterAttribute = $characterAttribute; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\GamePlayMode|null */ - public function getNumberOfPlayers() + public function getPlayMode() { - return $this->numberOfPlayers; + return $this->playMode; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers + * @param \OpenActive\Enums\SchemaOrg\GamePlayMode|null $playMode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfPlayers($numberOfPlayers) + public function setPlayMode($playMode) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "\OpenActive\Enums\SchemaOrg\GamePlayMode", + "null", ]; - $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); + $playMode = self::checkTypes($playMode, $types); - $this->numberOfPlayers = $numberOfPlayers; + $this->playMode = $playMode; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getQuest() + public function getDirector() { - return $this->quest; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $quest + * @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 setQuest($quest) + public function setDirector($director) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $quest = self::checkTypes($quest, $types); + $director = self::checkTypes($director, $types); - $this->quest = $quest; + $this->director = $director; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return int|null */ - public function getGameLocation() + public function getNumberOfEpisodes() { - return $this->gameLocation; + return $this->numberOfEpisodes; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation + * @param int|null $numberOfEpisodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGameLocation($gameLocation) + public function setNumberOfEpisodes($numberOfEpisodes) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", + "int", + "null", ]; - $gameLocation = self::checkTypes($gameLocation, $types); + $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); - $this->gameLocation = $gameLocation; + $this->numberOfEpisodes = $numberOfEpisodes; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string */ - public function getEpisode() + public function getMusicBy() { - return $this->episode; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @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 setEpisode($episode) + public function setMusicBy($musicBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\MusicGroup", "string", ]; - $episode = self::checkTypes($episode, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->episode = $episode; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getDirectors() + public function getEpisodes() { - return $this->directors; + return $this->episodes; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @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 setDirectors($directors) + public function setEpisodes($episodes) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $directors = self::checkTypes($directors, $types); + $episodes = self::checkTypes($episodes, $types); - $this->directors = $directors; + $this->episodes = $episodes; } } diff --git a/src/Models/SchemaOrg/VideoObject.php b/src/Models/SchemaOrg/VideoObject.php index 0b78c4c5..55467313 100644 --- a/src/Models/SchemaOrg/VideoObject.php +++ b/src/Models/SchemaOrg/VideoObject.php @@ -17,69 +17,52 @@ public static function getType() public static function fieldList() { $fields = [ - "embeddedTextCaption" => "embeddedTextCaption", - "director" => "director", "actor" => "actor", - "caption" => "caption", - "thumbnail" => "thumbnail", + "actors" => "actors", "transcript" => "transcript", + "directors" => "directors", "videoQuality" => "videoQuality", "videoFrameSize" => "videoFrameSize", - "actors" => "actors", + "director" => "director", + "caption" => "caption", "musicBy" => "musicBy", - "directors" => "directors", + "embeddedTextCaption" => "embeddedTextCaption", ]; return array_merge(parent::fieldList(), $fields); } /** - * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. - * - * - * @var string - */ - protected $embeddedTextCaption; - - /** - * 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 - */ - protected $director; - - /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string */ protected $actor; /** - * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. + * 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 string|\OpenActive\Models\SchemaOrg\MediaObject + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $caption; + protected $actors; /** - * Thumbnail image for an image or video. + * If this MediaObject is an AudioObject or VideoObject, the transcript of that object. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var string */ - protected $thumbnail; + protected $transcript; /** - * If this MediaObject is an AudioObject or VideoObject, the transcript of that object. + * 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 string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $transcript; + protected $directors; /** * The quality of the video. @@ -98,80 +81,39 @@ public static function fieldList() { protected $videoFrameSize; /** - * 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. + * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $musicBy; + protected $caption; /** - * 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 - */ - protected $directors; - - /** - * @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. - */ - public function setEmbeddedTextCaption($embeddedTextCaption) - { - $types = [ - "string", - ]; - - $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - - $this->embeddedTextCaption = $embeddedTextCaption; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string */ - public function getDirector() - { - return $this->director; - } + protected $musicBy; /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director - * @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 setDirector($director) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "string", - ]; - - $director = self::checkTypes($director, $types); - - $this->director = $director; - } + protected $embeddedTextCaption; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\PerformingGroup|string */ public function getActor() { @@ -179,7 +121,7 @@ public function getActor() } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @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. */ @@ -187,6 +129,7 @@ public function setActor($actor) { $types = [ "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\PerformingGroup", "string", ]; @@ -196,77 +139,77 @@ public function setActor($actor) } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getCaption() + public function getActors() { - return $this->caption; + return $this->actors; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption + * @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 setCaption($caption) + public function setActors($actors) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $caption = self::checkTypes($caption, $types); + $actors = self::checkTypes($actors, $types); - $this->caption = $caption; + $this->actors = $actors; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return string */ - public function getThumbnail() + public function getTranscript() { - return $this->thumbnail; + return $this->transcript; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail + * @param string $transcript * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setThumbnail($thumbnail) + public function setTranscript($transcript) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $thumbnail = self::checkTypes($thumbnail, $types); + $transcript = self::checkTypes($transcript, $types); - $this->thumbnail = $thumbnail; + $this->transcript = $transcript; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getTranscript() + public function getDirectors() { - return $this->transcript; + return $this->directors; } /** - * @param string $transcript + * @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 setTranscript($transcript) + public function setDirectors($directors) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $transcript = self::checkTypes($transcript, $types); + $directors = self::checkTypes($directors, $types); - $this->transcript = $transcript; + $this->directors = $directors; } /** @@ -320,26 +263,51 @@ public function setVideoFrameSize($videoFrameSize) /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getActors() + public function getDirector() { - return $this->actors; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setDirector($director) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actors = self::checkTypes($actors, $types); + $director = self::checkTypes($director, $types); - $this->actors = $actors; + $this->director = $director; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MediaObject|string + */ + public function getCaption() + { + return $this->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 = [ + "\OpenActive\Models\SchemaOrg\MediaObject", + "string", + ]; + + $caption = self::checkTypes($caption, $types); + + $this->caption = $caption; } /** @@ -369,28 +337,27 @@ public function setMusicBy($musicBy) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getDirectors() + public function getEmbeddedTextCaption() { - return $this->directors; + return $this->embeddedTextCaption; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @param string $embeddedTextCaption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirectors($directors) + public function setEmbeddedTextCaption($embeddedTextCaption) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $directors = self::checkTypes($directors, $types); + $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - $this->directors = $directors; + $this->embeddedTextCaption = $embeddedTextCaption; } } diff --git a/src/Models/SchemaOrg/VisualArtwork.php b/src/Models/SchemaOrg/VisualArtwork.php index 43135cf8..1ec8a750 100644 --- a/src/Models/SchemaOrg/VisualArtwork.php +++ b/src/Models/SchemaOrg/VisualArtwork.php @@ -17,31 +17,32 @@ public static function getType() public static function fieldList() { $fields = [ - "width" => "width", - "letterer" => "letterer", - "height" => "height", "surface" => "surface", - "colorist" => "colorist", + "letterer" => "letterer", "inker" => "inker", - "artform" => "artform", - "artworkSurface" => "artworkSurface", + "artMedium" => "artMedium", + "colorist" => "colorist", "artEdition" => "artEdition", - "depth" => "depth", - "penciler" => "penciler", + "artworkSurface" => "artworkSurface", "artist" => "artist", - "artMedium" => "artMedium", + "height" => "height", + "artform" => "artform", + "width" => "width", + "penciler" => "penciler", + "weight" => "weight", + "depth" => "depth", ]; return array_merge(parent::fieldList(), $fields); } /** - * The width of the item. + * A material used as a surface in some artwork, e.g. Canvas, Paper, Wood, Board, etc. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @var string */ - protected $width; + protected $surface; /** * The individual who adds lettering, including speech balloons and sound effects, to artwork. @@ -52,20 +53,20 @@ public static function fieldList() { protected $letterer; /** - * The height of the item. + * The individual who traces over the pencil drawings in ink after pencils are complete. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $height; + protected $inker; /** - * A material used as a surface in some artwork, e.g. Canvas, Paper, Wood, Board, etc. + * The material used. (E.g. Oil, Watercolour, Acrylic, Linoprint, Marble, Cyanotype, Digital, Lithograph, DryPoint, Intaglio, Pastel, Woodcut, Pencil, Mixed Media, etc.) * * * @var string */ - protected $surface; + protected $artMedium; /** * The individual who adds color to inked drawings. @@ -76,44 +77,54 @@ public static function fieldList() { protected $colorist; /** - * The individual who traces over the pencil drawings in ink after pencils are complete. + * The number of copies when multiple copies of a piece of artwork are produced - e.g. for a limited edition of 20 prints, 'artEdition' refers to the total number of copies (in this example "20"). * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string|int|null */ - protected $inker; + protected $artEdition; /** - * e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc. + * The supporting materials for the artwork, e.g. Canvas, Paper, Wood, Board, etc. * * * @var string */ - protected $artform; + protected $artworkSurface; /** - * The supporting materials for the artwork, e.g. Canvas, Paper, Wood, Board, etc. + * 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 string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $artworkSurface; + protected $artist; /** - * The number of copies when multiple copies of a piece of artwork are produced - e.g. for a limited edition of 20 prints, 'artEdition' refers to the total number of copies (in this example "20"). + * The height of the item. * * - * @var string|int|null + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $artEdition; + protected $height; /** - * The depth of the item. + * e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc. + * + * + * @var string + */ + protected $artform; + + /** + * The width of the item. * * * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $depth; + protected $width; /** * The individual who draws the primary narrative artwork. @@ -124,47 +135,43 @@ public static function fieldList() { protected $penciler; /** - * The primary artist for a work - * in a medium other than pencils or digital line art--for example, if the - * primary artwork is done in watercolors or digital paints. + * The weight of the product or person. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $artist; + protected $weight; /** - * The material used. (e.g. Oil, Watercolour, Acrylic, Linoprint, Marble, Cyanotype, Digital, Lithograph, DryPoint, Intaglio, Pastel, Woodcut, Pencil, Mixed Media, etc.) + * The depth of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string */ - protected $artMedium; + protected $depth; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @return string */ - public function getWidth() + public function getSurface() { - return $this->width; + return $this->surface; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width + * @param string $surface * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWidth($width) + public function setSurface($surface) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\Distance", "string", ]; - $width = self::checkTypes($width, $types); + $surface = self::checkTypes($surface, $types); - $this->width = $width; + $this->surface = $surface; } /** @@ -193,53 +200,52 @@ public function setLetterer($letterer) } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getHeight() + public function getInker() { - return $this->height; + return $this->inker; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @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 setHeight($height) + public function setInker($inker) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $height = self::checkTypes($height, $types); + $inker = self::checkTypes($inker, $types); - $this->height = $height; + $this->inker = $inker; } /** * @return string */ - public function getSurface() + public function getArtMedium() { - return $this->surface; + return $this->artMedium; } /** - * @param string $surface + * @param string $artMedium * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSurface($surface) + public function setArtMedium($artMedium) { $types = [ "string", ]; - $surface = self::checkTypes($surface, $types); + $artMedium = self::checkTypes($artMedium, $types); - $this->surface = $surface; + $this->artMedium = $artMedium; } /** @@ -268,118 +274,144 @@ public function setColorist($colorist) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string|int|null */ - public function getInker() + public function getArtEdition() { - return $this->inker; + return $this->artEdition; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $inker + * @param string|int|null $artEdition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInker($inker) + public function setArtEdition($artEdition) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", + "int", + "null", ]; - $inker = self::checkTypes($inker, $types); + $artEdition = self::checkTypes($artEdition, $types); - $this->inker = $inker; + $this->artEdition = $artEdition; } /** * @return string */ - public function getArtform() + public function getArtworkSurface() { - return $this->artform; + return $this->artworkSurface; } /** - * @param string $artform + * @param string $artworkSurface * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArtform($artform) + public function setArtworkSurface($artworkSurface) { $types = [ "string", ]; - $artform = self::checkTypes($artform, $types); + $artworkSurface = self::checkTypes($artworkSurface, $types); - $this->artform = $artform; + $this->artworkSurface = $artworkSurface; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getArtworkSurface() + public function getArtist() { - return $this->artworkSurface; + return $this->artist; } /** - * @param string $artworkSurface + * @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 setArtworkSurface($artworkSurface) + public function setArtist($artist) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $artworkSurface = self::checkTypes($artworkSurface, $types); + $artist = self::checkTypes($artist, $types); - $this->artworkSurface = $artworkSurface; + $this->artist = $artist; } /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getArtEdition() + public function getHeight() { - return $this->artEdition; + return $this->height; } /** - * @param string|int|null $artEdition + * @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 setArtEdition($artEdition) + public function setHeight($height) { $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "int", - "null", ]; - $artEdition = self::checkTypes($artEdition, $types); + $height = self::checkTypes($height, $types); - $this->artEdition = $artEdition; + $this->height = $height; + } + + /** + * @return string + */ + public function getArtform() + { + return $this->artform; + } + + /** + * @param string $artform + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setArtform($artform) + { + $types = [ + "string", + ]; + + $artform = self::checkTypes($artform, $types); + + $this->artform = $artform; } /** * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getDepth() + public function getWidth() { - return $this->depth; + return $this->width; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth + * @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 setDepth($depth) + public function setWidth($width) { $types = [ "\OpenActive\Models\SchemaOrg\Distance", @@ -387,9 +419,9 @@ public function setDepth($depth) "string", ]; - $depth = self::checkTypes($depth, $types); + $width = self::checkTypes($width, $types); - $this->depth = $depth; + $this->width = $width; } /** @@ -418,52 +450,54 @@ public function setPenciler($penciler) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getArtist() + public function getWeight() { - return $this->artist; + return $this->weight; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $artist + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArtist($artist) + public function setWeight($weight) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $artist = self::checkTypes($artist, $types); + $weight = self::checkTypes($weight, $types); - $this->artist = $artist; + $this->weight = $weight; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string */ - public function getArtMedium() + public function getDepth() { - return $this->artMedium; + return $this->depth; } /** - * @param string $artMedium + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $depth * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArtMedium($artMedium) + public function setDepth($depth) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Distance", "string", ]; - $artMedium = self::checkTypes($artMedium, $types); + $depth = self::checkTypes($depth, $types); - $this->artMedium = $artMedium; + $this->depth = $depth; } } diff --git a/src/Models/SchemaOrg/WebPage.php b/src/Models/SchemaOrg/WebPage.php index 5a3ac4b1..91e96931 100644 --- a/src/Models/SchemaOrg/WebPage.php +++ b/src/Models/SchemaOrg/WebPage.php @@ -17,44 +17,44 @@ public static function getType() public static function fieldList() { $fields = [ + "relatedLink" => "relatedLink", + "breadcrumb" => "breadcrumb", + "reviewedBy" => "reviewedBy", + "significantLink" => "significantLink", "lastReviewed" => "lastReviewed", - "specialty" => "specialty", "primaryImageOfPage" => "primaryImageOfPage", - "significantLink" => "significantLink", - "reviewedBy" => "reviewedBy", + "significantLinks" => "significantLinks", + "specialty" => "specialty", "mainContentOfPage" => "mainContentOfPage", - "relatedLink" => "relatedLink", "speakable" => "speakable", - "breadcrumb" => "breadcrumb", - "significantLinks" => "significantLinks", ]; return array_merge(parent::fieldList(), $fields); } /** - * Date on which the content on this web page was last reviewed for accuracy and/or completeness. + * A link related to this web page, for example to other related web pages. * * - * @var Date|null + * @var string */ - protected $lastReviewed; + protected $relatedLink; /** - * One of the domain specialities to which this web page's content applies. + * A set of links that can help a user understand and navigate a website hierarchy. * * - * @var \OpenActive\Enums\SchemaOrg\Specialty|null + * @var \OpenActive\Models\SchemaOrg\BreadcrumbList|string */ - protected $specialty; + protected $breadcrumb; /** - * Indicates the main image on the page. + * People or organizations that have reviewed the content on this web page for accuracy and/or completeness. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $primaryImageOfPage; + protected $reviewedBy; /** * One of the more significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. @@ -65,28 +65,44 @@ public static function fieldList() { protected $significantLink; /** - * People or organizations that have reviewed the content on this web page for accuracy and/or completeness. + * Date on which the content on this web page was last reviewed for accuracy and/or completeness. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var Date|null */ - protected $reviewedBy; + protected $lastReviewed; /** - * Indicates if this web page element is the main subject of the page. + * Indicates the main image on the page. * * - * @var \OpenActive\Models\SchemaOrg\WebPageElement|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $mainContentOfPage; + protected $primaryImageOfPage; /** - * A link related to this web page, for example to other related web pages. + * The most significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. * * * @var string */ - protected $relatedLink; + protected $significantLinks; + + /** + * One of the domain specialities to which this web page's content applies. + * + * + * @var \OpenActive\Enums\SchemaOrg\Specialty|null + */ + protected $specialty; + + /** + * Indicates if this web page element is the main subject of the page. + * + * + * @var \OpenActive\Models\SchemaOrg\WebPageElement|string + */ + protected $mainContentOfPage; /** * 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. @@ -95,7 +111,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. * @@ -110,94 +126,78 @@ public static function fieldList() { protected $speakable; /** - * A set of links that can help a user understand and navigate a website hierarchy. - * - * - * @var \OpenActive\Models\SchemaOrg\BreadcrumbList|string - */ - protected $breadcrumb; - - /** - * The most significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. - * - * - * @var string - */ - protected $significantLinks; - - /** - * @return Date|null + * @return string */ - public function getLastReviewed() + public function getRelatedLink() { - return $this->lastReviewed; + return $this->relatedLink; } /** - * @param Date|null $lastReviewed + * @param string $relatedLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLastReviewed($lastReviewed) + public function setRelatedLink($relatedLink) { $types = [ - "Date", - "null", + "string", ]; - $lastReviewed = self::checkTypes($lastReviewed, $types); + $relatedLink = self::checkTypes($relatedLink, $types); - $this->lastReviewed = $lastReviewed; + $this->relatedLink = $relatedLink; } /** - * @return \OpenActive\Enums\SchemaOrg\Specialty|null + * @return \OpenActive\Models\SchemaOrg\BreadcrumbList|string */ - public function getSpecialty() + public function getBreadcrumb() { - return $this->specialty; + return $this->breadcrumb; } /** - * @param \OpenActive\Enums\SchemaOrg\Specialty|null $specialty + * @param \OpenActive\Models\SchemaOrg\BreadcrumbList|string $breadcrumb * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpecialty($specialty) + public function setBreadcrumb($breadcrumb) { $types = [ - "\OpenActive\Enums\SchemaOrg\Specialty", - "null", + "\OpenActive\Models\SchemaOrg\BreadcrumbList", + "string", ]; - $specialty = self::checkTypes($specialty, $types); + $breadcrumb = self::checkTypes($breadcrumb, $types); - $this->specialty = $specialty; + $this->breadcrumb = $breadcrumb; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getPrimaryImageOfPage() + public function getReviewedBy() { - return $this->primaryImageOfPage; + return $this->reviewedBy; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $primaryImageOfPage + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $reviewedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrimaryImageOfPage($primaryImageOfPage) + public function setReviewedBy($reviewedBy) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $primaryImageOfPage = self::checkTypes($primaryImageOfPage, $types); + $reviewedBy = self::checkTypes($reviewedBy, $types); - $this->primaryImageOfPage = $primaryImageOfPage; + $this->reviewedBy = $reviewedBy; } /** @@ -225,152 +225,152 @@ public function setSignificantLink($significantLink) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return Date|null */ - public function getReviewedBy() + public function getLastReviewed() { - return $this->reviewedBy; + return $this->lastReviewed; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $reviewedBy + * @param Date|null $lastReviewed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewedBy($reviewedBy) + public function setLastReviewed($lastReviewed) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "null", ]; - $reviewedBy = self::checkTypes($reviewedBy, $types); + $lastReviewed = self::checkTypes($lastReviewed, $types); - $this->reviewedBy = $reviewedBy; + $this->lastReviewed = $lastReviewed; } /** - * @return \OpenActive\Models\SchemaOrg\WebPageElement|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getMainContentOfPage() + public function getPrimaryImageOfPage() { - return $this->mainContentOfPage; + return $this->primaryImageOfPage; } /** - * @param \OpenActive\Models\SchemaOrg\WebPageElement|string $mainContentOfPage + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $primaryImageOfPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMainContentOfPage($mainContentOfPage) + public function setPrimaryImageOfPage($primaryImageOfPage) { $types = [ - "\OpenActive\Models\SchemaOrg\WebPageElement", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $mainContentOfPage = self::checkTypes($mainContentOfPage, $types); + $primaryImageOfPage = self::checkTypes($primaryImageOfPage, $types); - $this->mainContentOfPage = $mainContentOfPage; + $this->primaryImageOfPage = $primaryImageOfPage; } /** * @return string */ - public function getRelatedLink() + public function getSignificantLinks() { - return $this->relatedLink; + return $this->significantLinks; } /** - * @param string $relatedLink + * @param string $significantLinks * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedLink($relatedLink) + public function setSignificantLinks($significantLinks) { $types = [ "string", ]; - $relatedLink = self::checkTypes($relatedLink, $types); + $significantLinks = self::checkTypes($significantLinks, $types); - $this->relatedLink = $relatedLink; + $this->significantLinks = $significantLinks; } /** - * @return string|\OpenActive\Models\SchemaOrg\SpeakableSpecification + * @return \OpenActive\Enums\SchemaOrg\Specialty|null */ - public function getSpeakable() + public function getSpecialty() { - return $this->speakable; + return $this->specialty; } /** - * @param string|\OpenActive\Models\SchemaOrg\SpeakableSpecification $speakable + * @param \OpenActive\Enums\SchemaOrg\Specialty|null $specialty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpeakable($speakable) + public function setSpecialty($specialty) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\SpeakableSpecification", + "\OpenActive\Enums\SchemaOrg\Specialty", + "null", ]; - $speakable = self::checkTypes($speakable, $types); + $specialty = self::checkTypes($specialty, $types); - $this->speakable = $speakable; + $this->specialty = $specialty; } /** - * @return \OpenActive\Models\SchemaOrg\BreadcrumbList|string + * @return \OpenActive\Models\SchemaOrg\WebPageElement|string */ - public function getBreadcrumb() + public function getMainContentOfPage() { - return $this->breadcrumb; + return $this->mainContentOfPage; } /** - * @param \OpenActive\Models\SchemaOrg\BreadcrumbList|string $breadcrumb + * @param \OpenActive\Models\SchemaOrg\WebPageElement|string $mainContentOfPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBreadcrumb($breadcrumb) + public function setMainContentOfPage($mainContentOfPage) { $types = [ - "\OpenActive\Models\SchemaOrg\BreadcrumbList", + "\OpenActive\Models\SchemaOrg\WebPageElement", "string", ]; - $breadcrumb = self::checkTypes($breadcrumb, $types); + $mainContentOfPage = self::checkTypes($mainContentOfPage, $types); - $this->breadcrumb = $breadcrumb; + $this->mainContentOfPage = $mainContentOfPage; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\SpeakableSpecification */ - public function getSignificantLinks() + public function getSpeakable() { - return $this->significantLinks; + return $this->speakable; } /** - * @param string $significantLinks + * @param string|\OpenActive\Models\SchemaOrg\SpeakableSpecification $speakable * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSignificantLinks($significantLinks) + public function setSpeakable($speakable) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\SpeakableSpecification", ]; - $significantLinks = self::checkTypes($significantLinks, $types); + $speakable = self::checkTypes($speakable, $types); - $this->significantLinks = $significantLinks; + $this->speakable = $speakable; } } diff --git a/src/Models/SchemaOrg/WriteAction.php b/src/Models/SchemaOrg/WriteAction.php index 36aaa059..09ac07d7 100644 --- a/src/Models/SchemaOrg/WriteAction.php +++ b/src/Models/SchemaOrg/WriteAction.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "inLanguage" => "inLanguage", "language" => "language", + "inLanguage" => "inLanguage", ]; return array_merge(parent::fieldList(), $fields); } /** - * 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 instrument. The language used on this action. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\Language|string */ - protected $inLanguage; + protected $language; /** - * A sub property of instrument. The language used on this action. + * 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\Language|string */ - protected $language; + protected $inLanguage; /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getInLanguage() + public function getLanguage() { - return $this->inLanguage; + return $this->language; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @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 setInLanguage($inLanguage) + public function setLanguage($language) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\Language", + "string", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $language = self::checkTypes($language, $types); - $this->inLanguage = $inLanguage; + $this->language = $language; } /** * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getLanguage() + public function getInLanguage() { - return $this->language; + return $this->inLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $language + * @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 setLanguage($language) + public function setInLanguage($inLanguage) { $types = [ "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $language = self::checkTypes($language, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->language = $language; + $this->inLanguage = $inLanguage; } }