diff --git a/src/Enums/PropertyEnumeration.php b/src/Enums/PropertyEnumeration.php index 5c24a90a..8621abdc 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,8 @@ 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 AggregateElement = \OpenActive\Enums\PropertyEnumeration\AggregateElement::class; const AggregateRating = \OpenActive\Enums\PropertyEnumeration\AggregateRating::class; const Aircraft = \OpenActive\Enums\PropertyEnumeration\Aircraft::class; const Album = \OpenActive\Enums\PropertyEnumeration\Album::class; @@ -193,6 +196,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,8 +215,10 @@ 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 AuthorizedRepresentative = \OpenActive\Enums\PropertyEnumeration\AuthorizedRepresentative::class; const Availability = \OpenActive\Enums\PropertyEnumeration\Availability::class; const AvailabilityEnds = \OpenActive\Enums\PropertyEnumeration\AvailabilityEnds::class; const AvailabilityStarts = \OpenActive\Enums\PropertyEnumeration\AvailabilityStarts::class; @@ -306,13 +312,18 @@ class PropertyEnumeration const Catalog = \OpenActive\Enums\PropertyEnumeration\Catalog::class; const CatalogNumber = \OpenActive\Enums\PropertyEnumeration\CatalogNumber::class; const Category = \OpenActive\Enums\PropertyEnumeration\Category::class; + const Cause = \OpenActive\Enums\PropertyEnumeration\Cause::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,11 +351,13 @@ 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; const CommentText = \OpenActive\Enums\PropertyEnumeration\CommentText::class; const CommentTime = \OpenActive\Enums\PropertyEnumeration\CommentTime::class; + const CompanyRegistration = \OpenActive\Enums\PropertyEnumeration\CompanyRegistration::class; const CompetencyRequired = \OpenActive\Enums\PropertyEnumeration\CompetencyRequired::class; const Competitor = \OpenActive\Enums\PropertyEnumeration\Competitor::class; const Composer = \OpenActive\Enums\PropertyEnumeration\Composer::class; @@ -352,7 +365,8 @@ 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 ConsumerNotice = \OpenActive\Enums\PropertyEnumeration\ConsumerNotice::class; const ContactOption = \OpenActive\Enums\PropertyEnumeration\ContactOption::class; const ContactPoint = \OpenActive\Enums\PropertyEnumeration\ContactPoint::class; const ContactPoints = \OpenActive\Enums\PropertyEnumeration\ContactPoints::class; @@ -390,6 +404,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; @@ -423,6 +438,7 @@ class PropertyEnumeration const CvdNumTotBeds = \OpenActive\Enums\PropertyEnumeration\CvdNumTotBeds::class; const CvdNumVent = \OpenActive\Enums\PropertyEnumeration\CvdNumVent::class; const CvdNumVentUse = \OpenActive\Enums\PropertyEnumeration\CvdNumVentUse::class; + const Data = \OpenActive\Enums\PropertyEnumeration\Data::class; const DataFeedElement = \OpenActive\Enums\PropertyEnumeration\DataFeedElement::class; const Dataset = \OpenActive\Enums\PropertyEnumeration\Dataset::class; const DatasetTimeInterval = \OpenActive\Enums\PropertyEnumeration\DatasetTimeInterval::class; @@ -464,6 +480,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; @@ -475,6 +492,7 @@ class PropertyEnumeration const DiscussionUrl = \OpenActive\Enums\PropertyEnumeration\DiscussionUrl::class; const DiseasePreventionInfo = \OpenActive\Enums\PropertyEnumeration\DiseasePreventionInfo::class; const DiseaseSpreadStatistics = \OpenActive\Enums\PropertyEnumeration\DiseaseSpreadStatistics::class; + const DisplayLocation = \OpenActive\Enums\PropertyEnumeration\DisplayLocation::class; const DissolutionDate = \OpenActive\Enums\PropertyEnumeration\DissolutionDate::class; const Distance = \OpenActive\Enums\PropertyEnumeration\Distance::class; const DistinguishingSign = \OpenActive\Enums\PropertyEnumeration\DistinguishingSign::class; @@ -524,6 +542,7 @@ class PropertyEnumeration const EligibleQuantity = \OpenActive\Enums\PropertyEnumeration\EligibleQuantity::class; const EligibleRegion = \OpenActive\Enums\PropertyEnumeration\EligibleRegion::class; const EligibleTransactionVolume = \OpenActive\Enums\PropertyEnumeration\EligibleTransactionVolume::class; + const EligibleWithSupplier = \OpenActive\Enums\PropertyEnumeration\EligibleWithSupplier::class; const Email = \OpenActive\Enums\PropertyEnumeration\Email::class; const EmbedUrl = \OpenActive\Enums\PropertyEnumeration\EmbedUrl::class; const EmbeddedTextCaption = \OpenActive\Enums\PropertyEnumeration\EmbeddedTextCaption::class; @@ -556,6 +575,7 @@ class PropertyEnumeration const Episodes = \OpenActive\Enums\PropertyEnumeration\Episodes::class; const Equal = \OpenActive\Enums\PropertyEnumeration\Equal::class; const Error = \OpenActive\Enums\PropertyEnumeration\Error::class; + const ErrorCode = \OpenActive\Enums\PropertyEnumeration\ErrorCode::class; const EstimatedCost = \OpenActive\Enums\PropertyEnumeration\EstimatedCost::class; const EstimatedFlightDuration = \OpenActive\Enums\PropertyEnumeration\EstimatedFlightDuration::class; const EstimatedSalary = \OpenActive\Enums\PropertyEnumeration\EstimatedSalary::class; @@ -586,6 +606,7 @@ class PropertyEnumeration const ExpertConsiderations = \OpenActive\Enums\PropertyEnumeration\ExpertConsiderations::class; const Expires = \OpenActive\Enums\PropertyEnumeration\Expires::class; const ExpressedIn = \OpenActive\Enums\PropertyEnumeration\ExpressedIn::class; + const ExtendedAddress = \OpenActive\Enums\PropertyEnumeration\ExtendedAddress::class; const FamilyName = \OpenActive\Enums\PropertyEnumeration\FamilyName::class; const FatContent = \OpenActive\Enums\PropertyEnumeration\FatContent::class; const FaxNumber = \OpenActive\Enums\PropertyEnumeration\FaxNumber::class; @@ -620,6 +641,7 @@ class PropertyEnumeration const FuelConsumption = \OpenActive\Enums\PropertyEnumeration\FuelConsumption::class; const FuelEfficiency = \OpenActive\Enums\PropertyEnumeration\FuelEfficiency::class; const FuelType = \OpenActive\Enums\PropertyEnumeration\FuelType::class; + const FulfillmentType = \OpenActive\Enums\PropertyEnumeration\FulfillmentType::class; const FunctionalClass = \OpenActive\Enums\PropertyEnumeration\FunctionalClass::class; const FundedItem = \OpenActive\Enums\PropertyEnumeration\FundedItem::class; const Funder = \OpenActive\Enums\PropertyEnumeration\Funder::class; @@ -670,18 +692,22 @@ 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; const HasDefinedTerm = \OpenActive\Enums\PropertyEnumeration\HasDefinedTerm::class; const HasDeliveryMethod = \OpenActive\Enums\PropertyEnumeration\HasDeliveryMethod::class; const HasDigitalDocumentPermission = \OpenActive\Enums\PropertyEnumeration\HasDigitalDocumentPermission::class; + const HasDigitalProductPassport = \OpenActive\Enums\PropertyEnumeration\HasDigitalProductPassport::class; 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; @@ -691,7 +717,15 @@ class PropertyEnumeration const HasOfferCatalog = \OpenActive\Enums\PropertyEnumeration\HasOfferCatalog::class; const HasPOS = \OpenActive\Enums\PropertyEnumeration\HasPOS::class; const HasPart = \OpenActive\Enums\PropertyEnumeration\HasPart::class; + const HasParticipationOffer = \OpenActive\Enums\PropertyEnumeration\HasParticipationOffer::class; + const HasProductReturnPolicy = \OpenActive\Enums\PropertyEnumeration\HasProductReturnPolicy::class; const HasRepresentation = \OpenActive\Enums\PropertyEnumeration\HasRepresentation::class; + const HasShippingService = \OpenActive\Enums\PropertyEnumeration\HasShippingService::class; + const HasSponsorshipOffer = \OpenActive\Enums\PropertyEnumeration\HasSponsorshipOffer::class; + const HasStore = \OpenActive\Enums\PropertyEnumeration\HasStore::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; @@ -729,6 +763,7 @@ class PropertyEnumeration const Illustrator = \OpenActive\Enums\PropertyEnumeration\Illustrator::class; const Image = \OpenActive\Enums\PropertyEnumeration\Image::class; const ImagingTechnique = \OpenActive\Enums\PropertyEnumeration\ImagingTechnique::class; + const Importer = \OpenActive\Enums\PropertyEnumeration\Importer::class; const InAlbum = \OpenActive\Enums\PropertyEnumeration\InAlbum::class; const InBroadcastLineup = \OpenActive\Enums\PropertyEnumeration\InBroadcastLineup::class; const InChI = \OpenActive\Enums\PropertyEnumeration\InChI::class; @@ -740,8 +775,12 @@ class PropertyEnumeration const InProductGroupWithID = \OpenActive\Enums\PropertyEnumeration\InProductGroupWithID::class; const InStoreReturnsOffered = \OpenActive\Enums\PropertyEnumeration\InStoreReturnsOffered::class; const InSupportOf = \OpenActive\Enums\PropertyEnumeration\InSupportOf::class; + const IncentiveAmount = \OpenActive\Enums\PropertyEnumeration\IncentiveAmount::class; const IncentiveCompensation = \OpenActive\Enums\PropertyEnumeration\IncentiveCompensation::class; + const IncentiveStatus = \OpenActive\Enums\PropertyEnumeration\IncentiveStatus::class; + const IncentiveType = \OpenActive\Enums\PropertyEnumeration\IncentiveType::class; const Incentives = \OpenActive\Enums\PropertyEnumeration\Incentives::class; + const IncentivizedItem = \OpenActive\Enums\PropertyEnumeration\IncentivizedItem::class; const IncludedComposition = \OpenActive\Enums\PropertyEnumeration\IncludedComposition::class; const IncludedDataCatalog = \OpenActive\Enums\PropertyEnumeration\IncludedDataCatalog::class; const IncludedInDataCatalog = \OpenActive\Enums\PropertyEnumeration\IncludedInDataCatalog::class; @@ -751,6 +790,7 @@ class PropertyEnumeration const IncludesHealthPlanFormulary = \OpenActive\Enums\PropertyEnumeration\IncludesHealthPlanFormulary::class; const IncludesHealthPlanNetwork = \OpenActive\Enums\PropertyEnumeration\IncludesHealthPlanNetwork::class; const IncludesObject = \OpenActive\Enums\PropertyEnumeration\IncludesObject::class; + const IncomeLimit = \OpenActive\Enums\PropertyEnumeration\IncomeLimit::class; const IncreasesRiskOf = \OpenActive\Enums\PropertyEnumeration\IncreasesRiskOf::class; const Industry = \OpenActive\Enums\PropertyEnumeration\Industry::class; const IneligibleRegion = \OpenActive\Enums\PropertyEnumeration\IneligibleRegion::class; @@ -786,6 +826,7 @@ class PropertyEnumeration const IsInvolvedInBiologicalProcess = \OpenActive\Enums\PropertyEnumeration\IsInvolvedInBiologicalProcess::class; const IsLiveBroadcast = \OpenActive\Enums\PropertyEnumeration\IsLiveBroadcast::class; const IsLocatedInSubcellularLocation = \OpenActive\Enums\PropertyEnumeration\IsLocatedInSubcellularLocation::class; + const IsOftenBoughtWith = \OpenActive\Enums\PropertyEnumeration\IsOftenBoughtWith::class; const IsPartOf = \OpenActive\Enums\PropertyEnumeration\IsPartOf::class; const IsPartOfBioChemEntity = \OpenActive\Enums\PropertyEnumeration\IsPartOfBioChemEntity::class; const IsPlanForApartment = \OpenActive\Enums\PropertyEnumeration\IsPlanForApartment::class; @@ -793,6 +834,8 @@ class PropertyEnumeration const IsRelatedTo = \OpenActive\Enums\PropertyEnumeration\IsRelatedTo::class; const IsResizable = \OpenActive\Enums\PropertyEnumeration\IsResizable::class; const IsSimilarTo = \OpenActive\Enums\PropertyEnumeration\IsSimilarTo::class; + const IsStoreOn = \OpenActive\Enums\PropertyEnumeration\IsStoreOn::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; @@ -813,11 +856,13 @@ class PropertyEnumeration const ItemListOrder = \OpenActive\Enums\PropertyEnumeration\ItemListOrder::class; const ItemLocation = \OpenActive\Enums\PropertyEnumeration\ItemLocation::class; const ItemOffered = \OpenActive\Enums\PropertyEnumeration\ItemOffered::class; + const ItemPopularity = \OpenActive\Enums\PropertyEnumeration\ItemPopularity::class; const ItemReviewed = \OpenActive\Enums\PropertyEnumeration\ItemReviewed::class; const ItemShipped = \OpenActive\Enums\PropertyEnumeration\ItemShipped::class; const Itinerary = \OpenActive\Enums\PropertyEnumeration\Itinerary::class; const IupacName = \OpenActive\Enums\PropertyEnumeration\IupacName::class; const JobBenefits = \OpenActive\Enums\PropertyEnumeration\JobBenefits::class; + const JobDuration = \OpenActive\Enums\PropertyEnumeration\JobDuration::class; const JobImmediateStart = \OpenActive\Enums\PropertyEnumeration\JobImmediateStart::class; const JobLocation = \OpenActive\Enums\PropertyEnumeration\JobLocation::class; const JobLocationType = \OpenActive\Enums\PropertyEnumeration\JobLocationType::class; @@ -837,18 +882,27 @@ class PropertyEnumeration const LayoutImage = \OpenActive\Enums\PropertyEnumeration\LayoutImage::class; const LearningResourceType = \OpenActive\Enums\PropertyEnumeration\LearningResourceType::class; const LeaseLength = \OpenActive\Enums\PropertyEnumeration\LeaseLength::class; + const LegalAddress = \OpenActive\Enums\PropertyEnumeration\LegalAddress::class; const LegalName = \OpenActive\Enums\PropertyEnumeration\LegalName::class; + const LegalRepresentative = \OpenActive\Enums\PropertyEnumeration\LegalRepresentative::class; const LegalStatus = \OpenActive\Enums\PropertyEnumeration\LegalStatus::class; + const LegislationAmends = \OpenActive\Enums\PropertyEnumeration\LegislationAmends::class; const LegislationApplies = \OpenActive\Enums\PropertyEnumeration\LegislationApplies::class; const LegislationChanges = \OpenActive\Enums\PropertyEnumeration\LegislationChanges::class; + const LegislationCommences = \OpenActive\Enums\PropertyEnumeration\LegislationCommences::class; const LegislationConsolidates = \OpenActive\Enums\PropertyEnumeration\LegislationConsolidates::class; + const LegislationCorrects = \OpenActive\Enums\PropertyEnumeration\LegislationCorrects::class; + const LegislationCountersignedBy = \OpenActive\Enums\PropertyEnumeration\LegislationCountersignedBy::class; const LegislationDate = \OpenActive\Enums\PropertyEnumeration\LegislationDate::class; + const LegislationDateOfApplicability = \OpenActive\Enums\PropertyEnumeration\LegislationDateOfApplicability::class; const LegislationDateVersion = \OpenActive\Enums\PropertyEnumeration\LegislationDateVersion::class; + const LegislationEnsuresImplementationOf = \OpenActive\Enums\PropertyEnumeration\LegislationEnsuresImplementationOf::class; const LegislationIdentifier = \OpenActive\Enums\PropertyEnumeration\LegislationIdentifier::class; const LegislationJurisdiction = \OpenActive\Enums\PropertyEnumeration\LegislationJurisdiction::class; const LegislationLegalForce = \OpenActive\Enums\PropertyEnumeration\LegislationLegalForce::class; const LegislationLegalValue = \OpenActive\Enums\PropertyEnumeration\LegislationLegalValue::class; const LegislationPassedBy = \OpenActive\Enums\PropertyEnumeration\LegislationPassedBy::class; + const LegislationRepeals = \OpenActive\Enums\PropertyEnumeration\LegislationRepeals::class; const LegislationResponsible = \OpenActive\Enums\PropertyEnumeration\LegislationResponsible::class; const LegislationTransposes = \OpenActive\Enums\PropertyEnumeration\LegislationTransposes::class; const LegislationType = \OpenActive\Enums\PropertyEnumeration\LegislationType::class; @@ -858,6 +912,7 @@ class PropertyEnumeration const LesserOrEqual = \OpenActive\Enums\PropertyEnumeration\LesserOrEqual::class; const Letterer = \OpenActive\Enums\PropertyEnumeration\Letterer::class; const License = \OpenActive\Enums\PropertyEnumeration\License::class; + const LifeEvent = \OpenActive\Enums\PropertyEnumeration\LifeEvent::class; const Line = \OpenActive\Enums\PropertyEnumeration\Line::class; const LinkRelationship = \OpenActive\Enums\PropertyEnumeration\LinkRelationship::class; const LiveBlogUpdate = \OpenActive\Enums\PropertyEnumeration\LiveBlogUpdate::class; @@ -900,7 +955,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; @@ -926,8 +983,10 @@ class PropertyEnumeration const MileageFromOdometer = \OpenActive\Enums\PropertyEnumeration\MileageFromOdometer::class; const MinPrice = \OpenActive\Enums\PropertyEnumeration\MinPrice::class; const MinValue = \OpenActive\Enums\PropertyEnumeration\MinValue::class; + const MinimumOrderValue = \OpenActive\Enums\PropertyEnumeration\MinimumOrderValue::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; @@ -965,6 +1024,7 @@ class PropertyEnumeration const NumAdults = \OpenActive\Enums\PropertyEnumeration\NumAdults::class; const NumChildren = \OpenActive\Enums\PropertyEnumeration\NumChildren::class; const NumConstraints = \OpenActive\Enums\PropertyEnumeration\NumConstraints::class; + const NumItems = \OpenActive\Enums\PropertyEnumeration\NumItems::class; const NumTracks = \OpenActive\Enums\PropertyEnumeration\NumTracks::class; const NumberOfAccommodationUnits = \OpenActive\Enums\PropertyEnumeration\NumberOfAccommodationUnits::class; const NumberOfAirbags = \OpenActive\Enums\PropertyEnumeration\NumberOfAirbags::class; @@ -990,8 +1050,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; @@ -1011,8 +1072,10 @@ class PropertyEnumeration const OrderItemNumber = \OpenActive\Enums\PropertyEnumeration\OrderItemNumber::class; const OrderItemStatus = \OpenActive\Enums\PropertyEnumeration\OrderItemStatus::class; const OrderNumber = \OpenActive\Enums\PropertyEnumeration\OrderNumber::class; + const OrderPercentage = \OpenActive\Enums\PropertyEnumeration\OrderPercentage::class; const OrderQuantity = \OpenActive\Enums\PropertyEnumeration\OrderQuantity::class; const OrderStatus = \OpenActive\Enums\PropertyEnumeration\OrderStatus::class; + const OrderValue = \OpenActive\Enums\PropertyEnumeration\OrderValue::class; const OrderedItem = \OpenActive\Enums\PropertyEnumeration\OrderedItem::class; const Organizer = \OpenActive\Enums\PropertyEnumeration\Organizer::class; const OriginAddress = \OpenActive\Enums\PropertyEnumeration\OriginAddress::class; @@ -1022,6 +1085,7 @@ class PropertyEnumeration const Overdosage = \OpenActive\Enums\PropertyEnumeration\Overdosage::class; const OwnedFrom = \OpenActive\Enums\PropertyEnumeration\OwnedFrom::class; const OwnedThrough = \OpenActive\Enums\PropertyEnumeration\OwnedThrough::class; + const Owner = \OpenActive\Enums\PropertyEnumeration\Owner::class; const OwnershipFundingInfo = \OpenActive\Enums\PropertyEnumeration\OwnershipFundingInfo::class; const Owns = \OpenActive\Enums\PropertyEnumeration\Owns::class; const PageEnd = \OpenActive\Enums\PropertyEnumeration\PageEnd::class; @@ -1053,6 +1117,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 +1159,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; @@ -1126,16 +1192,20 @@ class PropertyEnumeration const Produces = \OpenActive\Enums\PropertyEnumeration\Produces::class; const ProductGroupID = \OpenActive\Enums\PropertyEnumeration\ProductGroupID::class; const ProductID = \OpenActive\Enums\PropertyEnumeration\ProductID::class; + const ProductReturnDays = \OpenActive\Enums\PropertyEnumeration\ProductReturnDays::class; + const ProductReturnLink = \OpenActive\Enums\PropertyEnumeration\ProductReturnLink::class; const ProductSupported = \OpenActive\Enums\PropertyEnumeration\ProductSupported::class; 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; const ProgramType = \OpenActive\Enums\PropertyEnumeration\ProgramType::class; const ProgrammingLanguage = \OpenActive\Enums\PropertyEnumeration\ProgrammingLanguage::class; const ProgrammingModel = \OpenActive\Enums\PropertyEnumeration\ProgrammingModel::class; + const Pronouns = \OpenActive\Enums\PropertyEnumeration\Pronouns::class; const PropertyID = \OpenActive\Enums\PropertyEnumeration\PropertyID::class; const ProprietaryName = \OpenActive\Enums\PropertyEnumeration\ProprietaryName::class; const ProteinContent = \OpenActive\Enums\PropertyEnumeration\ProteinContent::class; @@ -1153,7 +1223,10 @@ class PropertyEnumeration const PublisherImprint = \OpenActive\Enums\PropertyEnumeration\PublisherImprint::class; const PublishingPrinciples = \OpenActive\Enums\PropertyEnumeration\PublishingPrinciples::class; const PurchaseDate = \OpenActive\Enums\PropertyEnumeration\PurchaseDate::class; + const PurchasePriceLimit = \OpenActive\Enums\PropertyEnumeration\PurchasePriceLimit::class; + const PurchaseType = \OpenActive\Enums\PropertyEnumeration\PurchaseType::class; const Qualifications = \OpenActive\Enums\PropertyEnumeration\Qualifications::class; + const QualifiedExpense = \OpenActive\Enums\PropertyEnumeration\QualifiedExpense::class; const QuarantineGuidelines = \OpenActive\Enums\PropertyEnumeration\QuarantineGuidelines::class; const Query = \OpenActive\Enums\PropertyEnumeration\Query::class; const Quest = \OpenActive\Enums\PropertyEnumeration\Quest::class; @@ -1182,6 +1255,8 @@ class PropertyEnumeration const RecordedIn = \OpenActive\Enums\PropertyEnumeration\RecordedIn::class; const RecordingOf = \OpenActive\Enums\PropertyEnumeration\RecordingOf::class; const RecourseLoan = \OpenActive\Enums\PropertyEnumeration\RecourseLoan::class; + const RecycledContentPercentage = \OpenActive\Enums\PropertyEnumeration\RecycledContentPercentage::class; + const Referee = \OpenActive\Enums\PropertyEnumeration\Referee::class; const ReferenceQuantity = \OpenActive\Enums\PropertyEnumeration\ReferenceQuantity::class; const ReferencesOrder = \OpenActive\Enums\PropertyEnumeration\ReferencesOrder::class; const RefundType = \OpenActive\Enums\PropertyEnumeration\RefundType::class; @@ -1268,6 +1343,7 @@ class PropertyEnumeration const SdPublisher = \OpenActive\Enums\PropertyEnumeration\SdPublisher::class; const Season = \OpenActive\Enums\PropertyEnumeration\Season::class; const SeasonNumber = \OpenActive\Enums\PropertyEnumeration\SeasonNumber::class; + const SeasonalOverride = \OpenActive\Enums\PropertyEnumeration\SeasonalOverride::class; const Seasons = \OpenActive\Enums\PropertyEnumeration\Seasons::class; const SeatNumber = \OpenActive\Enums\PropertyEnumeration\SeatNumber::class; const SeatRow = \OpenActive\Enums\PropertyEnumeration\SeatRow::class; @@ -1299,9 +1375,11 @@ class PropertyEnumeration const ServingSize = \OpenActive\Enums\PropertyEnumeration\ServingSize::class; const Sha256 = \OpenActive\Enums\PropertyEnumeration\Sha256::class; const SharedContent = \OpenActive\Enums\PropertyEnumeration\SharedContent::class; + const ShippingConditions = \OpenActive\Enums\PropertyEnumeration\ShippingConditions::class; 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; @@ -1324,6 +1402,7 @@ class PropertyEnumeration const SoftwareHelp = \OpenActive\Enums\PropertyEnumeration\SoftwareHelp::class; const SoftwareRequirements = \OpenActive\Enums\PropertyEnumeration\SoftwareRequirements::class; const SoftwareVersion = \OpenActive\Enums\PropertyEnumeration\SoftwareVersion::class; + const Source = \OpenActive\Enums\PropertyEnumeration\Source::class; const SourceOrganization = \OpenActive\Enums\PropertyEnumeration\SourceOrganization::class; const SourcedFrom = \OpenActive\Enums\PropertyEnumeration\SourcedFrom::class; const Spatial = \OpenActive\Enums\PropertyEnumeration\Spatial::class; @@ -1332,6 +1411,7 @@ class PropertyEnumeration const SpecialCommitments = \OpenActive\Enums\PropertyEnumeration\SpecialCommitments::class; const SpecialOpeningHoursSpecification = \OpenActive\Enums\PropertyEnumeration\SpecialOpeningHoursSpecification::class; const Specialty = \OpenActive\Enums\PropertyEnumeration\Specialty::class; + const Specification = \OpenActive\Enums\PropertyEnumeration\Specification::class; const SpeechToTextMarkup = \OpenActive\Enums\PropertyEnumeration\SpeechToTextMarkup::class; const Speed = \OpenActive\Enums\PropertyEnumeration\Speed::class; const SpokenByCharacter = \OpenActive\Enums\PropertyEnumeration\SpokenByCharacter::class; @@ -1347,6 +1427,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; @@ -1370,6 +1451,7 @@ class PropertyEnumeration const SubTest = \OpenActive\Enums\PropertyEnumeration\SubTest::class; const SubTrip = \OpenActive\Enums\PropertyEnumeration\SubTrip::class; const SubjectOf = \OpenActive\Enums\PropertyEnumeration\SubjectOf::class; + const SubstanceOfConcern = \OpenActive\Enums\PropertyEnumeration\SubstanceOfConcern::class; const SubtitleLanguage = \OpenActive\Enums\PropertyEnumeration\SubtitleLanguage::class; const SuccessorOf = \OpenActive\Enums\PropertyEnumeration\SuccessorOf::class; const SugarContent = \OpenActive\Enums\PropertyEnumeration\SugarContent::class; @@ -1386,6 +1468,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; @@ -1416,6 +1499,7 @@ class PropertyEnumeration const TimeOfDay = \OpenActive\Enums\PropertyEnumeration\TimeOfDay::class; const TimeRequired = \OpenActive\Enums\PropertyEnumeration\TimeRequired::class; const TimeToComplete = \OpenActive\Enums\PropertyEnumeration\TimeToComplete::class; + const Timestamp = \OpenActive\Enums\PropertyEnumeration\Timestamp::class; const TissueSample = \OpenActive\Enums\PropertyEnumeration\TissueSample::class; const Title = \OpenActive\Enums\PropertyEnumeration\Title::class; const TitleEIDR = \OpenActive\Enums\PropertyEnumeration\TitleEIDR::class; @@ -1426,6 +1510,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 +1536,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 +1551,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,12 +1559,14 @@ 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; const ValidUntil = \OpenActive\Enums\PropertyEnumeration\ValidUntil::class; const Value = \OpenActive\Enums\PropertyEnumeration\Value::class; const ValueAddedTaxIncluded = \OpenActive\Enums\PropertyEnumeration\ValueAddedTaxIncluded::class; + const ValueGroup = \OpenActive\Enums\PropertyEnumeration\ValueGroup::class; const ValueMaxLength = \OpenActive\Enums\PropertyEnumeration\ValueMaxLength::class; const ValueMinLength = \OpenActive\Enums\PropertyEnumeration\ValueMinLength::class; const ValueName = \OpenActive\Enums\PropertyEnumeration\ValueName::class; @@ -1512,6 +1601,7 @@ class PropertyEnumeration const WebCheckinTime = \OpenActive\Enums\PropertyEnumeration\WebCheckinTime::class; const WebFeed = \OpenActive\Enums\PropertyEnumeration\WebFeed::class; const Weight = \OpenActive\Enums\PropertyEnumeration\Weight::class; + const WeightPercentage = \OpenActive\Enums\PropertyEnumeration\WeightPercentage::class; const WeightTotal = \OpenActive\Enums\PropertyEnumeration\WeightTotal::class; const Wheelbase = \OpenActive\Enums\PropertyEnumeration\Wheelbase::class; const Width = \OpenActive\Enums\PropertyEnumeration\Width::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 @@ + "beta:formattedDescription", "video" => "beta:video", "formalCriteriaMet" => "beta:formalCriteriaMet", + "dateVerified" => "beta:dateVerified", ]; return array_merge(parent::fieldList(), $fields); @@ -231,6 +232,17 @@ public static function fieldList() { */ protected $formalCriteriaMet; + /** + * [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.] + * The date on which the details of this organization were last verified as correct by the publisher. Unlike `schema:dateModified`, this changes when the details are confirmed, even if nothing in them has changed. + * + * If you are using this property, please join the discussion at proposal [#313](https://github.com/openactive/modelling-opportunity-data/issues/313). + * + * + * @var Date|null + */ + protected $dateVerified; + /** * @return string|int|\OpenActive\Models\OA\PropertyValue|\OpenActive\Models\OA\PropertyValue[]|null */ @@ -670,4 +682,29 @@ public function setFormalCriteriaMet($formalCriteriaMet) $this->formalCriteriaMet = $formalCriteriaMet; } + /** + * @return Date|null + */ + public function getDateVerified() + { + return $this->dateVerified; + } + + /** + * @param Date|null $dateVerified + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDateVerified($dateVerified) + { + $types = [ + "Date", + "null", + ]; + + $dateVerified = self::checkTypes($dateVerified, $types); + + $this->dateVerified = $dateVerified; + } + } diff --git a/src/Models/OA/PartialSchedule.php b/src/Models/OA/PartialSchedule.php index 8240830b..c5c04a2c 100644 --- a/src/Models/OA/PartialSchedule.php +++ b/src/Models/OA/PartialSchedule.php @@ -3,7 +3,7 @@ namespace OpenActive\Models\OA; /** - * This type is derived from https://pending.schema.org/Schedule. + * This type is derived from https://schema.org/Schedule, which means that any of this type's properties within schema.org may also be used. * */ class PartialSchedule extends \OpenActive\Models\OA\Schedule diff --git a/src/Models/OA/Place.php b/src/Models/OA/Place.php index e792e05e..729628f0 100644 --- a/src/Models/OA/Place.php +++ b/src/Models/OA/Place.php @@ -152,14 +152,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[] 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/Schedule.php b/src/Models/OA/Schedule.php index 0f1f24b2..a76f6ff8 100644 --- a/src/Models/OA/Schedule.php +++ b/src/Models/OA/Schedule.php @@ -3,10 +3,10 @@ namespace OpenActive\Models\OA; /** - * This type is derived from https://pending.schema.org/Schedule. + * This type is derived from https://schema.org/Schedule, which means that any of this type's properties within schema.org may also be used. * */ -class Schedule extends \OpenActive\BaseModel +class Schedule extends \OpenActive\Models\SchemaOrg\Schedule { /** * @return string[]|null diff --git a/src/Models/OA/VirtualLocation.php b/src/Models/OA/VirtualLocation.php index 1443a54d..e20f36f9 100644 --- a/src/Models/OA/VirtualLocation.php +++ b/src/Models/OA/VirtualLocation.php @@ -3,10 +3,10 @@ namespace OpenActive\Models\OA; /** - * This type is derived from https://pending.schema.org/VirtualLocation. + * This type is derived from https://schema.org/VirtualLocation, which means that any of this type's properties within schema.org may also be used. * */ -class VirtualLocation extends \OpenActive\BaseModel +class VirtualLocation extends \OpenActive\Models\SchemaOrg\VirtualLocation { /** * @return string[]|null diff --git a/src/Models/OA/WebAPI.php b/src/Models/OA/WebAPI.php index 9ffb1dc4..2b0b1a01 100644 --- a/src/Models/OA/WebAPI.php +++ b/src/Models/OA/WebAPI.php @@ -6,10 +6,10 @@ * * EARLY RELEASE NOTICE: This class represents a draft that is designed to inform the OpenActive specification work with implementation feedback. IT IS SUBJECT TO CHANGE, as the [Dataset API Discovery specification](https://openactive.io/dataset-api-discovery/EditorsDraft/) evolves. * - * This type is derived from https://pending.schema.org/WebAPI. + * This type is derived from https://schema.org/WebAPI, which means that any of this type's properties within schema.org may also be used. * */ -class WebAPI extends \OpenActive\BaseModel +class WebAPI extends \OpenActive\Models\SchemaOrg\WebAPI { /** * @return string[]|null @@ -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..8fbeb089 100644 --- a/src/Models/SchemaOrg/APIReference.php +++ b/src/Models/SchemaOrg/APIReference.php @@ -18,17 +18,17 @@ public static function getType() public static function fieldList() { $fields = [ "assembly" => "assembly", - "targetPlatform" => "targetPlatform", + "assemblyVersion" => "assemblyVersion", "executableLibraryName" => "executableLibraryName", "programmingModel" => "programmingModel", - "assemblyVersion" => "assemblyVersion", + "targetPlatform" => "targetPlatform", ]; return array_merge(parent::fieldList(), $fields); } /** - * Library file name e.g., mscorlib.dll, system.web.dll. + * Library file name, e.g., mscorlib.dll, system.web.dll. * * * @var string @@ -36,15 +36,15 @@ public static function fieldList() { protected $assembly; /** - * Type of app development: phone, Metro style, desktop, XBox, etc. + * Associated product/technology version. E.g., .NET Framework 4.5. * * * @var string */ - protected $targetPlatform; + protected $assemblyVersion; /** - * Library file name e.g., mscorlib.dll, system.web.dll. + * Library file name, e.g., mscorlib.dll, system.web.dll. * * * @var string @@ -60,12 +60,12 @@ public static function fieldList() { protected $programmingModel; /** - * Associated product/technology version. e.g., .NET Framework 4.5. + * Type of app development: phone, Metro style, desktop, XBox, etc. * * * @var string */ - protected $assemblyVersion; + protected $targetPlatform; /** * @return string @@ -94,25 +94,25 @@ public function setAssembly($assembly) /** * @return string */ - public function getTargetPlatform() + public function getAssemblyVersion() { - return $this->targetPlatform; + return $this->assemblyVersion; } /** - * @param string $targetPlatform + * @param string $assemblyVersion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTargetPlatform($targetPlatform) + public function setAssemblyVersion($assemblyVersion) { $types = [ "string", ]; - $targetPlatform = self::checkTypes($targetPlatform, $types); + $assemblyVersion = self::checkTypes($assemblyVersion, $types); - $this->targetPlatform = $targetPlatform; + $this->assemblyVersion = $assemblyVersion; } /** @@ -166,25 +166,25 @@ public function setProgrammingModel($programmingModel) /** * @return string */ - public function getAssemblyVersion() + public function getTargetPlatform() { - return $this->assemblyVersion; + return $this->targetPlatform; } /** - * @param string $assemblyVersion + * @param string $targetPlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssemblyVersion($assemblyVersion) + public function setTargetPlatform($targetPlatform) { $types = [ "string", ]; - $assemblyVersion = self::checkTypes($assemblyVersion, $types); + $targetPlatform = self::checkTypes($targetPlatform, $types); - $this->assemblyVersion = $assemblyVersion; + $this->targetPlatform = $targetPlatform; } } diff --git a/src/Models/SchemaOrg/Accommodation.php b/src/Models/SchemaOrg/Accommodation.php index f94a1485..fe5667aa 100644 --- a/src/Models/SchemaOrg/Accommodation.php +++ b/src/Models/SchemaOrg/Accommodation.php @@ -17,91 +17,94 @@ public static function getType() public static function fieldList() { $fields = [ - "floorLevel" => "floorLevel", - "numberOfBathroomsTotal" => "numberOfBathroomsTotal", - "numberOfRooms" => "numberOfRooms", - "leaseLength" => "leaseLength", - "yearBuilt" => "yearBuilt", "accommodationCategory" => "accommodationCategory", + "accommodationFloorPlan" => "accommodationFloorPlan", "amenityFeature" => "amenityFeature", - "tourBookingPage" => "tourBookingPage", - "numberOfBedrooms" => "numberOfBedrooms", - "numberOfPartialBathrooms" => "numberOfPartialBathrooms", + "bed" => "bed", + "floorLevel" => "floorLevel", "floorSize" => "floorSize", - "accommodationFloorPlan" => "accommodationFloorPlan", + "leaseLength" => "leaseLength", + "numberOfBathroomsTotal" => "numberOfBathroomsTotal", + "numberOfBedrooms" => "numberOfBedrooms", "numberOfFullBathrooms" => "numberOfFullBathrooms", + "numberOfPartialBathrooms" => "numberOfPartialBathrooms", + "numberOfRooms" => "numberOfRooms", + "occupancy" => "occupancy", "permittedUsage" => "permittedUsage", "petsAllowed" => "petsAllowed", + "tourBookingPage" => "tourBookingPage", + "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. + * 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]]. + * A floorplan of some [[Accommodation]]. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\FloorPlan|string */ - protected $numberOfBathroomsTotal; + protected $accommodationFloorPlan; /** - * 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. + * 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\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - protected $numberOfRooms; + protected $amenityFeature; /** - * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. + * 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|DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\BedDetails|\OpenActive\Models\SchemaOrg\BedType|string */ - protected $leaseLength; + protected $bed; /** - * The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). + * 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 Number|null + * @var string */ - protected $yearBuilt; + protected $floorLevel; /** - * 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). + * 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 string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $accommodationCategory; + protected $floorSize; /** - * An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs. + * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. * * - * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $amenityFeature; + protected $leaseLength; /** - * 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]]. @@ -112,37 +115,38 @@ public static function fieldList() { protected $numberOfBedrooms; /** - * 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 + * 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\QuantitativeValue|string + * @var Number|null */ - protected $floorSize; + protected $numberOfPartialBathrooms; /** - * A floorplan of some [[Accommodation]]. + * 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\FloorPlan|string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $accommodationFloorPlan; + protected $numberOfRooms; /** - * 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 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 Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfFullBathrooms; + protected $occupancy; /** * Indications regarding the permitted usage of the accommodation. @@ -160,205 +164,221 @@ public static function fieldList() { */ protected $petsAllowed; + /** + * 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; + + /** + * The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). + * + * + * @var Number|null + */ + protected $yearBuilt; + /** * @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 \OpenActive\Models\SchemaOrg\FloorPlan|string */ - public function getNumberOfBathroomsTotal() + public function getAccommodationFloorPlan() { - return $this->numberOfBathroomsTotal; + return $this->accommodationFloorPlan; } /** - * @param int|null $numberOfBathroomsTotal + * @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 setNumberOfBathroomsTotal($numberOfBathroomsTotal) + public function setAccommodationFloorPlan($accommodationFloorPlan) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\FloorPlan", + "string", ]; - $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types); + $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types); - $this->numberOfBathroomsTotal = $numberOfBathroomsTotal; + $this->accommodationFloorPlan = $accommodationFloorPlan; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - public function getNumberOfRooms() + public function getAmenityFeature() { - return $this->numberOfRooms; + return $this->amenityFeature; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms + * @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 setNumberOfRooms($numberOfRooms) + public function setAmenityFeature($amenityFeature) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", "string", - "Number", - "null", ]; - $numberOfRooms = self::checkTypes($numberOfRooms, $types); + $amenityFeature = self::checkTypes($amenityFeature, $types); - $this->numberOfRooms = $numberOfRooms; + $this->amenityFeature = $amenityFeature; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\BedDetails|\OpenActive\Models\SchemaOrg\BedType|string */ - public function getLeaseLength() + public function getBed() { - return $this->leaseLength; + return $this->bed; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength + * @param \OpenActive\Models\SchemaOrg\BedDetails|\OpenActive\Models\SchemaOrg\BedType|string $bed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLeaseLength($leaseLength) + public function setBed($bed) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "DateInterval", + "\OpenActive\Models\SchemaOrg\BedDetails", + "\OpenActive\Models\SchemaOrg\BedType", "string", - "null", ]; - $leaseLength = self::checkTypes($leaseLength, $types); + $bed = self::checkTypes($bed, $types); - $this->leaseLength = $leaseLength; + $this->bed = $bed; } /** - * @return Number|null + * @return string */ - public function getYearBuilt() + public function getFloorLevel() { - return $this->yearBuilt; + return $this->floorLevel; } /** - * @param Number|null $yearBuilt + * @param string $floorLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setYearBuilt($yearBuilt) + public function setFloorLevel($floorLevel) { $types = [ - "Number", - "null", + "string", ]; - $yearBuilt = self::checkTypes($yearBuilt, $types); + $floorLevel = self::checkTypes($floorLevel, $types); - $this->yearBuilt = $yearBuilt; + $this->floorLevel = $floorLevel; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getAccommodationCategory() + public function getFloorSize() { - return $this->accommodationCategory; + return $this->floorSize; } /** - * @param string $accommodationCategory + * @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 setAccommodationCategory($accommodationCategory) + public function setFloorSize($floorSize) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $accommodationCategory = self::checkTypes($accommodationCategory, $types); + $floorSize = self::checkTypes($floorSize, $types); - $this->accommodationCategory = $accommodationCategory; + $this->floorSize = $floorSize; } /** - * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getAmenityFeature() + public function getLeaseLength() { - return $this->amenityFeature; + return $this->leaseLength; } /** - * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature + * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $leaseLength * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAmenityFeature($amenityFeature) + public function setLeaseLength($leaseLength) { $types = [ - "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $amenityFeature = self::checkTypes($amenityFeature, $types); + $leaseLength = self::checkTypes($leaseLength, $types); - $this->amenityFeature = $amenityFeature; + $this->leaseLength = $leaseLength; } /** - * @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; } /** @@ -391,101 +411,103 @@ public function setNumberOfBedrooms($numberOfBedrooms) /** * @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 Number|null */ - public function getFloorSize() + public function getNumberOfPartialBathrooms() { - return $this->floorSize; + return $this->numberOfPartialBathrooms; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize + * @param Number|null $numberOfPartialBathrooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFloorSize($floorSize) + public function setNumberOfPartialBathrooms($numberOfPartialBathrooms) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Number", + "null", ]; - $floorSize = self::checkTypes($floorSize, $types); + $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types); - $this->floorSize = $floorSize; + $this->numberOfPartialBathrooms = $numberOfPartialBathrooms; } /** - * @return \OpenActive\Models\SchemaOrg\FloorPlan|string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getAccommodationFloorPlan() + public function getNumberOfRooms() { - return $this->accommodationFloorPlan; + return $this->numberOfRooms; } /** - * @param \OpenActive\Models\SchemaOrg\FloorPlan|string $accommodationFloorPlan + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfRooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccommodationFloorPlan($accommodationFloorPlan) + public function setNumberOfRooms($numberOfRooms) { $types = [ - "\OpenActive\Models\SchemaOrg\FloorPlan", + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types); + $numberOfRooms = self::checkTypes($numberOfRooms, $types); - $this->accommodationFloorPlan = $accommodationFloorPlan; + $this->numberOfRooms = $numberOfRooms; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfFullBathrooms() + public function getOccupancy() { - return $this->numberOfFullBathrooms; + return $this->occupancy; } /** - * @param Number|null $numberOfFullBathrooms + * @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 setNumberOfFullBathrooms($numberOfFullBathrooms) + public function setOccupancy($occupancy) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types); + $occupancy = self::checkTypes($occupancy, $types); - $this->numberOfFullBathrooms = $numberOfFullBathrooms; + $this->occupancy = $occupancy; } /** @@ -538,4 +560,53 @@ public function setPetsAllowed($petsAllowed) $this->petsAllowed = $petsAllowed; } + /** + * @return string + */ + public function getTourBookingPage() + { + return $this->tourBookingPage; + } + + /** + * @param string $tourBookingPage + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTourBookingPage($tourBookingPage) + { + $types = [ + "string", + ]; + + $tourBookingPage = self::checkTypes($tourBookingPage, $types); + + $this->tourBookingPage = $tourBookingPage; + } + + /** + * @return Number|null + */ + public function getYearBuilt() + { + return $this->yearBuilt; + } + + /** + * @param Number|null $yearBuilt + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setYearBuilt($yearBuilt) + { + $types = [ + "Number", + "null", + ]; + + $yearBuilt = self::checkTypes($yearBuilt, $types); + + $this->yearBuilt = $yearBuilt; + } + } diff --git a/src/Models/SchemaOrg/Action.php b/src/Models/SchemaOrg/Action.php index 88a8db68..39bd7413 100644 --- a/src/Models/SchemaOrg/Action.php +++ b/src/Models/SchemaOrg/Action.php @@ -17,73 +17,82 @@ public static function getType() public static function fieldList() { $fields = [ - "agent" => "agent", - "startTime" => "startTime", + "actionProcess" => "actionProcess", "actionStatus" => "actionStatus", - "provider" => "provider", - "result" => "result", + "agent" => "agent", + "endTime" => "endTime", + "error" => "error", + "instrument" => "instrument", "location" => "location", "object" => "object", - "target" => "target", - "endTime" => "endTime", "participant" => "participant", - "instrument" => "instrument", - "error" => "error", + "provider" => "provider", + "result" => "result", + "startTime" => "startTime", + "target" => "target", ]; 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. + * Indicates the current disposition of the Action. * * - * @var DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\ActionStatusType|string */ - protected $startTime; + protected $actionStatus; /** - * Indicates the current disposition of the Action. + * The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book. * * - * @var \OpenActive\Models\SchemaOrg\ActionStatusType|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $actionStatus; + protected $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. + * 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\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var DateTime|string|null */ - protected $provider; + protected $endTime; /** - * The result produced in the action. e.g. John wrote *a book*. + * For failed actions, more information on the cause of the failure. Consider using the Error type. * * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $result; + protected $error; + + /** + * The object that helped the agent perform the action. E.g. John wrote a book with *a pen*. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|string + */ + protected $instrument; /** * 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 \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation */ 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*. + * 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 @@ -91,175 +100,199 @@ public static function fieldList() { protected $object; /** - * Indicates a target EntryPoint for an Action. + * Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*. * * - * @var \OpenActive\Models\SchemaOrg\EntryPoint|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $target; + protected $participant; /** - * 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 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|string|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $endTime; + protected $provider; /** - * Other co-agents that participated in the action indirectly. e.g. John wrote a book with *Steve*. + * The result produced in the action. E.g. John wrote *a book*. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $participant; + protected $result; /** - * The object that helped the agent perform the action. e.g. John wrote a book with *a pen*. + * 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\Thing|string + * @var DateTime|string|null */ - protected $instrument; + protected $startTime; /** - * For failed actions, more information on the cause of the failure. + * Indicates a target EntryPoint, or url, for an Action. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\EntryPoint|string */ - protected $error; + protected $target; /** - * @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\ActionStatusType|string */ - public function getStartTime() + public function getActionStatus() { - return $this->startTime; + return $this->actionStatus; } /** - * @param DateTime|string|null $startTime + * @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 setStartTime($startTime) + public function setActionStatus($actionStatus) { $types = [ - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\ActionStatusType", + "string", ]; - $startTime = self::checkTypes($startTime, $types); + $actionStatus = self::checkTypes($actionStatus, $types); - $this->startTime = $startTime; + $this->actionStatus = $actionStatus; } /** - * @return \OpenActive\Models\SchemaOrg\ActionStatusType|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getActionStatus() + public function getAgent() { - return $this->actionStatus; + return $this->agent; } /** - * @param \OpenActive\Models\SchemaOrg\ActionStatusType|string $actionStatus + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $agent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActionStatus($actionStatus) + public function setAgent($agent) { $types = [ - "\OpenActive\Models\SchemaOrg\ActionStatusType", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actionStatus = self::checkTypes($actionStatus, $types); + $agent = self::checkTypes($agent, $types); - $this->actionStatus = $actionStatus; + $this->agent = $agent; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return DateTime|string|null */ - public function getProvider() + public function getEndTime() { - return $this->provider; + return $this->endTime; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param DateTime|string|null $endTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setEndTime($endTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "DateTime", + "Time", + "null", + ]; + + $endTime = self::checkTypes($endTime, $types); + + $this->endTime = $endTime; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getError() + { + return $this->error; + } + + /** + * @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 setError($error) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $provider = self::checkTypes($provider, $types); + $error = self::checkTypes($error, $types); - $this->provider = $provider; + $this->error = $error; } /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getResult() + public function getInstrument() { - return $this->result; + return $this->instrument; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $result + * @param \OpenActive\Models\SchemaOrg\Thing|string $instrument * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setResult($result) + public function setInstrument($instrument) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $result = self::checkTypes($result, $types); + $instrument = self::checkTypes($instrument, $types); - $this->result = $result; + $this->instrument = $instrument; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation */ public function getLocation() { @@ -267,16 +300,16 @@ public function getLocation() } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation $location * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setLocation($location) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\PostalAddress", "string", - "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; @@ -311,130 +344,131 @@ public function setObject($object) } /** - * @return \OpenActive\Models\SchemaOrg\EntryPoint|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getTarget() + public function getParticipant() { - return $this->target; + return $this->participant; } /** - * @param \OpenActive\Models\SchemaOrg\EntryPoint|string $target + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $participant * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTarget($target) + public function setParticipant($participant) { $types = [ - "\OpenActive\Models\SchemaOrg\EntryPoint", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $target = self::checkTypes($target, $types); + $participant = self::checkTypes($participant, $types); - $this->target = $target; + $this->participant = $participant; } /** - * @return DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getEndTime() + public function getProvider() { - return $this->endTime; + return $this->provider; } /** - * @param DateTime|string|null $endTime + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndTime($endTime) + public function setProvider($provider) { $types = [ - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $endTime = self::checkTypes($endTime, $types); + $provider = self::checkTypes($provider, $types); - $this->endTime = $endTime; + $this->provider = $provider; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getParticipant() + public function getResult() { - return $this->participant; + return $this->result; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $participant + * @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 setParticipant($participant) + public function setResult($result) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $participant = self::checkTypes($participant, $types); + $result = self::checkTypes($result, $types); - $this->participant = $participant; + $this->result = $result; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return DateTime|string|null */ - public function getInstrument() + public function getStartTime() { - return $this->instrument; + return $this->startTime; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $instrument + * @param DateTime|string|null $startTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInstrument($instrument) + public function setStartTime($startTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", - "string", + "DateTime", + "Time", + "null", ]; - $instrument = self::checkTypes($instrument, $types); + $startTime = self::checkTypes($startTime, $types); - $this->instrument = $instrument; + $this->startTime = $startTime; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\EntryPoint|string */ - public function getError() + public function getTarget() { - return $this->error; + return $this->target; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $error + * @param \OpenActive\Models\SchemaOrg\EntryPoint|string $target * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setError($error) + public function setTarget($target) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\EntryPoint", "string", ]; - $error = self::checkTypes($error, $types); + $target = self::checkTypes($target, $types); - $this->error = $error; + $this->target = $target; } } diff --git a/src/Models/SchemaOrg/ActionAccessSpecification.php b/src/Models/SchemaOrg/ActionAccessSpecification.php index 168e3daf..7a9d86eb 100644 --- a/src/Models/SchemaOrg/ActionAccessSpecification.php +++ b/src/Models/SchemaOrg/ActionAccessSpecification.php @@ -17,260 +17,260 @@ public static function getType() public static function fieldList() { $fields = [ - "expectsAcceptanceOf" => "expectsAcceptanceOf", + "availabilityEnds" => "availabilityEnds", + "availabilityStarts" => "availabilityStarts", "category" => "category", + "eligibleRegion" => "eligibleRegion", + "expectsAcceptanceOf" => "expectsAcceptanceOf", "ineligibleRegion" => "ineligibleRegion", "requiresSubscription" => "requiresSubscription", - "availabilityEnds" => "availabilityEnds", - "eligibleRegion" => "eligibleRegion", - "availabilityStarts" => "availabilityStarts", ]; return array_merge(parent::fieldList(), $fields); } /** - * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. + * The end 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 $availabilityEnds; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * The beginning of the availability of the product or service included in the offer. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var Date|DateTime|string|null */ - protected $category; + protected $availabilityStarts; /** - * 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 category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @var \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ - protected $ineligibleRegion; + protected $category; /** - * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no'). + * The 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\MediaSubscription|bool|string|null + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - protected $requiresSubscription; + protected $eligibleRegion; /** - * The end of the availability of the product or service included in the offer. + * 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 Date|DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $availabilityEnds; + protected $expectsAcceptanceOf; /** - * 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 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\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - protected $eligibleRegion; + protected $ineligibleRegion; /** - * The beginning 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 $availabilityStarts; + protected $requiresSubscription; /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return Date|DateTime|string|null */ - public function getExpectsAcceptanceOf() + public function getAvailabilityEnds() { - return $this->expectsAcceptanceOf; + return $this->availabilityEnds; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf + * @param Date|DateTime|string|null $availabilityEnds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpectsAcceptanceOf($expectsAcceptanceOf) + public function setAvailabilityEnds($availabilityEnds) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "string", + "Date", + "DateTime", + "Time", + "null", ]; - $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types); + $availabilityEnds = self::checkTypes($availabilityEnds, $types); - $this->expectsAcceptanceOf = $expectsAcceptanceOf; + $this->availabilityEnds = $availabilityEnds; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return Date|DateTime|string|null */ - public function getCategory() + public function getAvailabilityStarts() { - return $this->category; + return $this->availabilityStarts; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param Date|DateTime|string|null $availabilityStarts * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setAvailabilityStarts($availabilityStarts) { $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", + "Date", + "DateTime", + "Time", "null", ]; - $category = self::checkTypes($category, $types); + $availabilityStarts = self::checkTypes($availabilityStarts, $types); - $this->category = $category; + $this->availabilityStarts = $availabilityStarts; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @return \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ - public function getIneligibleRegion() + public function getCategory() { - return $this->ineligibleRegion; + return $this->category; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion + * @param \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null $category * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIneligibleRegion($ineligibleRegion) + public function setCategory($category) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", "string", - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Thing", + "null", ]; - $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); + $category = self::checkTypes($category, $types); - $this->ineligibleRegion = $ineligibleRegion; + $this->category = $category; } /** - * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getRequiresSubscription() + public function getEligibleRegion() { - return $this->requiresSubscription; + return $this->eligibleRegion; } /** - * @param \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null $requiresSubscription + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $eligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiresSubscription($requiresSubscription) + public function setEligibleRegion($eligibleRegion) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaSubscription", - "bool", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", "string", - "null", ]; - $requiresSubscription = self::checkTypes($requiresSubscription, $types); + $eligibleRegion = self::checkTypes($eligibleRegion, $types); - $this->requiresSubscription = $requiresSubscription; + $this->eligibleRegion = $eligibleRegion; } /** - * @return Date|DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getAvailabilityEnds() + public function getExpectsAcceptanceOf() { - return $this->availabilityEnds; + return $this->expectsAcceptanceOf; } /** - * @param Date|DateTime|string|null $availabilityEnds + * @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 setAvailabilityEnds($availabilityEnds) + public function setExpectsAcceptanceOf($expectsAcceptanceOf) { $types = [ - "Date", - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\Offer", + "string", ]; - $availabilityEnds = self::checkTypes($availabilityEnds, $types); + $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types); - $this->availabilityEnds = $availabilityEnds; + $this->expectsAcceptanceOf = $expectsAcceptanceOf; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getEligibleRegion() + public function getIneligibleRegion() { - return $this->eligibleRegion; + return $this->ineligibleRegion; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $ineligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleRegion($eligibleRegion) + public function setIneligibleRegion($ineligibleRegion) { $types = [ "\OpenActive\Models\SchemaOrg\GeoShape", - "string", "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $eligibleRegion = self::checkTypes($eligibleRegion, $types); + $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - $this->eligibleRegion = $eligibleRegion; + $this->ineligibleRegion = $ineligibleRegion; } /** - * @return Date|DateTime|string|null + * @return bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null */ - public function getAvailabilityStarts() + public function getRequiresSubscription() { - return $this->availabilityStarts; + return $this->requiresSubscription; } /** - * @param Date|DateTime|string|null $availabilityStarts + * @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 setAvailabilityStarts($availabilityStarts) + public function setRequiresSubscription($requiresSubscription) { $types = [ - "Date", - "DateTime", - "Time", + "bool", + "\OpenActive\Models\SchemaOrg\MediaSubscription", + "string", "null", ]; - $availabilityStarts = self::checkTypes($availabilityStarts, $types); + $requiresSubscription = self::checkTypes($requiresSubscription, $types); - $this->availabilityStarts = $availabilityStarts; + $this->requiresSubscription = $requiresSubscription; } } diff --git a/src/Models/SchemaOrg/AggregateOffer.php b/src/Models/SchemaOrg/AggregateOffer.php index 6fca86b3..9dcf2e40 100644 --- a/src/Models/SchemaOrg/AggregateOffer.php +++ b/src/Models/SchemaOrg/AggregateOffer.php @@ -18,16 +18,16 @@ public static function getType() public static function fieldList() { $fields = [ "highPrice" => "highPrice", - "offers" => "offers", "lowPrice" => "lowPrice", "offerCount" => "offerCount", + "offers" => "offers", ]; return array_merge(parent::fieldList(), $fields); } /** - * 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 highest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * * @var string|Number|null @@ -35,16 +35,7 @@ public static function fieldList() { protected $highPrice; /** - * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. - * - * - * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string - */ - protected $offers; - - /** - * The lowest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * The 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 @@ -59,6 +50,15 @@ public static function fieldList() { */ protected $offerCount; + /** + * 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\Demand|\OpenActive\Models\SchemaOrg\Offer|string + */ + protected $offers; + /** * @return string|Number|null */ @@ -85,32 +85,6 @@ public function setHighPrice($highPrice) $this->highPrice = $highPrice; } - /** - * @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", - ]; - - $offers = self::checkTypes($offers, $types); - - $this->offers = $offers; - } - /** * @return string|Number|null */ @@ -162,4 +136,30 @@ public function setOfferCount($offerCount) $this->offerCount = $offerCount; } + /** + * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string + */ + public function getOffers() + { + return $this->offers; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|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\Demand", + "\OpenActive\Models\SchemaOrg\Offer", + "string", + ]; + + $offers = self::checkTypes($offers, $types); + + $this->offers = $offers; + } + } diff --git a/src/Models/SchemaOrg/AggregateRating.php b/src/Models/SchemaOrg/AggregateRating.php index 67100854..d39076bf 100644 --- a/src/Models/SchemaOrg/AggregateRating.php +++ b/src/Models/SchemaOrg/AggregateRating.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "itemReviewed" => "itemReviewed", - "reviewCount" => "reviewCount", "ratingCount" => "ratingCount", + "reviewCount" => "reviewCount", ]; return array_merge(parent::fieldList(), $fields); @@ -34,20 +34,20 @@ public static function fieldList() { protected $itemReviewed; /** - * The count of total number of reviews. + * The count of total number of ratings. * * * @var int|null */ - protected $reviewCount; + protected $ratingCount; /** - * The count of total number of ratings. + * The count of total number of reviews. * * * @var int|null */ - protected $ratingCount; + protected $reviewCount; /** * @return \OpenActive\Models\SchemaOrg\Thing|string @@ -77,51 +77,51 @@ public function setItemReviewed($itemReviewed) /** * @return int|null */ - public function getReviewCount() + public function getRatingCount() { - return $this->reviewCount; + return $this->ratingCount; } /** - * @param int|null $reviewCount + * @param int|null $ratingCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewCount($reviewCount) + public function setRatingCount($ratingCount) { $types = [ "int", "null", ]; - $reviewCount = self::checkTypes($reviewCount, $types); + $ratingCount = self::checkTypes($ratingCount, $types); - $this->reviewCount = $reviewCount; + $this->ratingCount = $ratingCount; } /** * @return int|null */ - public function getRatingCount() + public function getReviewCount() { - return $this->ratingCount; + return $this->reviewCount; } /** - * @param int|null $ratingCount + * @param int|null $reviewCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRatingCount($ratingCount) + public function setReviewCount($reviewCount) { $types = [ "int", "null", ]; - $ratingCount = self::checkTypes($ratingCount, $types); + $reviewCount = self::checkTypes($reviewCount, $types); - $this->ratingCount = $ratingCount; + $this->reviewCount = $reviewCount; } } 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/AnatomicalStructure.php b/src/Models/SchemaOrg/AnatomicalStructure.php index 7151ee2f..3bd29876 100644 --- a/src/Models/SchemaOrg/AnatomicalStructure.php +++ b/src/Models/SchemaOrg/AnatomicalStructure.php @@ -17,58 +17,58 @@ public static function getType() public static function fieldList() { $fields = [ + "associatedPathophysiology" => "associatedPathophysiology", "bodyLocation" => "bodyLocation", "connectedTo" => "connectedTo", - "partOfSystem" => "partOfSystem", - "relatedTherapy" => "relatedTherapy", "diagram" => "diagram", + "partOfSystem" => "partOfSystem", "relatedCondition" => "relatedCondition", + "relatedTherapy" => "relatedTherapy", "subStructure" => "subStructure", - "associatedPathophysiology" => "associatedPathophysiology", ]; return array_merge(parent::fieldList(), $fields); } /** - * Location in the body of the anatomical structure. + * 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 */ - protected $bodyLocation; + protected $associatedPathophysiology; /** - * Other anatomical structures to which this structure is connected. + * Location in the body of the anatomical structure. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var string */ - protected $connectedTo; + protected $bodyLocation; /** - * The anatomical or organ system that this structure is part of. + * Other anatomical structures to which this structure is connected. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $partOfSystem; + protected $connectedTo; /** - * A medical therapy related to this anatomy. + * An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $relatedTherapy; + protected $diagram; /** - * An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures. + * The anatomical or organ system that this structure is part of. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - protected $diagram; + protected $partOfSystem; /** * A medical condition associated with this anatomy. @@ -79,143 +79,142 @@ public static function fieldList() { protected $relatedCondition; /** - * Component (sub-)structure(s) that comprise this anatomical structure. + * A medical therapy related to this anatomy. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - protected $subStructure; + protected $relatedTherapy; /** - * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. + * Component (sub-)structure(s) that comprise this anatomical structure. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $associatedPathophysiology; + protected $subStructure; /** * @return string */ - public function getBodyLocation() + public function getAssociatedPathophysiology() { - return $this->bodyLocation; + return $this->associatedPathophysiology; } /** - * @param string $bodyLocation + * @param string $associatedPathophysiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBodyLocation($bodyLocation) + public function setAssociatedPathophysiology($associatedPathophysiology) { $types = [ "string", ]; - $bodyLocation = self::checkTypes($bodyLocation, $types); + $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); - $this->bodyLocation = $bodyLocation; + $this->associatedPathophysiology = $associatedPathophysiology; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return string */ - public function getConnectedTo() + public function getBodyLocation() { - return $this->connectedTo; + return $this->bodyLocation; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $connectedTo + * @param string $bodyLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setConnectedTo($connectedTo) + public function setBodyLocation($bodyLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $connectedTo = self::checkTypes($connectedTo, $types); + $bodyLocation = self::checkTypes($bodyLocation, $types); - $this->connectedTo = $connectedTo; + $this->bodyLocation = $bodyLocation; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getPartOfSystem() + public function getConnectedTo() { - return $this->partOfSystem; + return $this->connectedTo; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|string $partOfSystem + * @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 setPartOfSystem($partOfSystem) + public function setConnectedTo($connectedTo) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $partOfSystem = self::checkTypes($partOfSystem, $types); + $connectedTo = self::checkTypes($connectedTo, $types); - $this->partOfSystem = $partOfSystem; + $this->connectedTo = $connectedTo; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getRelatedTherapy() + public function getDiagram() { - return $this->relatedTherapy; + return $this->diagram; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $diagram * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedTherapy($relatedTherapy) + public function setDiagram($diagram) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $relatedTherapy = self::checkTypes($relatedTherapy, $types); + $diagram = self::checkTypes($diagram, $types); - $this->relatedTherapy = $relatedTherapy; + $this->diagram = $diagram; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - public function getDiagram() + public function getPartOfSystem() { - return $this->diagram; + return $this->partOfSystem; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $diagram + * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|string $partOfSystem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiagram($diagram) + public function setPartOfSystem($partOfSystem) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; - $diagram = self::checkTypes($diagram, $types); + $partOfSystem = self::checkTypes($partOfSystem, $types); - $this->diagram = $diagram; + $this->partOfSystem = $partOfSystem; } /** @@ -244,52 +243,53 @@ public function setRelatedCondition($relatedCondition) } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getSubStructure() + public function getRelatedTherapy() { - return $this->subStructure; + return $this->relatedTherapy; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $subStructure + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubStructure($subStructure) + public function setRelatedTherapy($relatedTherapy) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $subStructure = self::checkTypes($subStructure, $types); + $relatedTherapy = self::checkTypes($relatedTherapy, $types); - $this->subStructure = $subStructure; + $this->relatedTherapy = $relatedTherapy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getAssociatedPathophysiology() + public function getSubStructure() { - return $this->associatedPathophysiology; + return $this->subStructure; } /** - * @param string $associatedPathophysiology + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $subStructure * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedPathophysiology($associatedPathophysiology) + public function setSubStructure($subStructure) { $types = [ + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); + $subStructure = self::checkTypes($subStructure, $types); - $this->associatedPathophysiology = $associatedPathophysiology; + $this->subStructure = $subStructure; } } diff --git a/src/Models/SchemaOrg/AnatomicalSystem.php b/src/Models/SchemaOrg/AnatomicalSystem.php index 3c5f3391..7316b25e 100644 --- a/src/Models/SchemaOrg/AnatomicalSystem.php +++ b/src/Models/SchemaOrg/AnatomicalSystem.php @@ -17,23 +17,31 @@ public static function getType() public static function fieldList() { $fields = [ - "relatedTherapy" => "relatedTherapy", - "relatedCondition" => "relatedCondition", - "relatedStructure" => "relatedStructure", "associatedPathophysiology" => "associatedPathophysiology", "comprisedOf" => "comprisedOf", + "relatedCondition" => "relatedCondition", + "relatedStructure" => "relatedStructure", + "relatedTherapy" => "relatedTherapy", ]; return array_merge(parent::fieldList(), $fields); } /** - * A medical therapy related to this anatomy. + * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var string */ - protected $relatedTherapy; + protected $associatedPathophysiology; + + /** + * 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; /** * A medical condition associated with this anatomy. @@ -52,44 +60,61 @@ public static function fieldList() { protected $relatedStructure; /** - * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. + * A medical therapy related to this anatomy. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - protected $associatedPathophysiology; + protected $relatedTherapy; /** - * 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 + * @return string */ - protected $comprisedOf; + public function getAssociatedPathophysiology() + { + return $this->associatedPathophysiology; + } /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @param string $associatedPathophysiology + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function getRelatedTherapy() + public function setAssociatedPathophysiology($associatedPathophysiology) { - return $this->relatedTherapy; + $types = [ + "string", + ]; + + $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); + + $this->associatedPathophysiology = $associatedPathophysiology; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string + */ + public function getComprisedOf() + { + return $this->comprisedOf; + } + + /** + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $comprisedOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedTherapy($relatedTherapy) + public function setComprisedOf($comprisedOf) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; - $relatedTherapy = self::checkTypes($relatedTherapy, $types); + $comprisedOf = self::checkTypes($comprisedOf, $types); - $this->relatedTherapy = $relatedTherapy; + $this->comprisedOf = $comprisedOf; } /** @@ -143,53 +168,28 @@ public function setRelatedStructure($relatedStructure) } /** - * @return string - */ - public function getAssociatedPathophysiology() - { - return $this->associatedPathophysiology; - } - - /** - * @param string $associatedPathophysiology - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setAssociatedPathophysiology($associatedPathophysiology) - { - $types = [ - "string", - ]; - - $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); - - $this->associatedPathophysiology = $associatedPathophysiology; - } - - /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getComprisedOf() + public function getRelatedTherapy() { - return $this->comprisedOf; + return $this->relatedTherapy; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $comprisedOf + * @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 setComprisedOf($comprisedOf) + public function setRelatedTherapy($relatedTherapy) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", + "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $comprisedOf = self::checkTypes($comprisedOf, $types); + $relatedTherapy = self::checkTypes($relatedTherapy, $types); - $this->comprisedOf = $comprisedOf; + $this->relatedTherapy = $relatedTherapy; } } diff --git a/src/Models/SchemaOrg/Answer.php b/src/Models/SchemaOrg/Answer.php index a188ef02..aa11f4b6 100644 --- a/src/Models/SchemaOrg/Answer.php +++ b/src/Models/SchemaOrg/Answer.php @@ -18,6 +18,7 @@ public static function getType() public static function fieldList() { $fields = [ "answerExplanation" => "answerExplanation", + "parentItem" => "parentItem", ]; return array_merge(parent::fieldList(), $fields); @@ -27,12 +28,20 @@ public static function fieldList() { * 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 + * 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|\OpenActive\Models\SchemaOrg\CreativeWork|string + */ + protected $parentItem; + + /** + * @return \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\WebContent|string */ public function getAnswerExplanation() { @@ -40,15 +49,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", ]; @@ -57,4 +66,30 @@ public function setAnswerExplanation($answerExplanation) $this->answerExplanation = $answerExplanation; } + /** + * @return \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\CreativeWork|string + */ + public function getParentItem() + { + return $this->parentItem; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\CreativeWork|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\Comment", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", + ]; + + $parentItem = self::checkTypes($parentItem, $types); + + $this->parentItem = $parentItem; + } + } diff --git a/src/Models/SchemaOrg/Apartment.php b/src/Models/SchemaOrg/Apartment.php index 89cfe3f1..e030b88f 100644 --- a/src/Models/SchemaOrg/Apartment.php +++ b/src/Models/SchemaOrg/Apartment.php @@ -29,13 +29,13 @@ public static function fieldList() { * 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|Number|null + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ protected $numberOfRooms; /** * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). - * Typical unit code(s): C62 for person + * Typical unit code(s): C62 for person. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string @@ -43,7 +43,7 @@ public static function fieldList() { protected $occupancy; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ public function getNumberOfRooms() { @@ -51,16 +51,16 @@ public function getNumberOfRooms() } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfRooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setNumberOfRooms($numberOfRooms) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", "null", ]; diff --git a/src/Models/SchemaOrg/ApartmentComplex.php b/src/Models/SchemaOrg/ApartmentComplex.php index 840b9180..65cbac64 100644 --- a/src/Models/SchemaOrg/ApartmentComplex.php +++ b/src/Models/SchemaOrg/ApartmentComplex.php @@ -19,9 +19,9 @@ public static function fieldList() { $fields = [ "numberOfAccommodationUnits" => "numberOfAccommodationUnits", "numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits", - "tourBookingPage" => "tourBookingPage", "numberOfBedrooms" => "numberOfBedrooms", "petsAllowed" => "petsAllowed", + "tourBookingPage" => "tourBookingPage", ]; return array_merge(parent::fieldList(), $fields); @@ -43,14 +43,6 @@ public static function fieldList() { */ protected $numberOfAvailableAccommodationUnits; - /** - * 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; - /** * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]]. * @@ -67,6 +59,14 @@ public static function fieldList() { */ protected $petsAllowed; + /** + * 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; + /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ @@ -117,30 +117,6 @@ public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommo $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits; } - /** - * @return string - */ - public function getTourBookingPage() - { - return $this->tourBookingPage; - } - - /** - * @param string $tourBookingPage - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setTourBookingPage($tourBookingPage) - { - $types = [ - "string", - ]; - - $tourBookingPage = self::checkTypes($tourBookingPage, $types); - - $this->tourBookingPage = $tourBookingPage; - } - /** * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ @@ -194,4 +170,28 @@ public function setPetsAllowed($petsAllowed) $this->petsAllowed = $petsAllowed; } + /** + * @return string + */ + public function getTourBookingPage() + { + return $this->tourBookingPage; + } + + /** + * @param string $tourBookingPage + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTourBookingPage($tourBookingPage) + { + $types = [ + "string", + ]; + + $tourBookingPage = self::checkTypes($tourBookingPage, $types); + + $this->tourBookingPage = $tourBookingPage; + } + } diff --git a/src/Models/SchemaOrg/ArchiveComponent.php b/src/Models/SchemaOrg/ArchiveComponent.php index 3aa0360c..1ec887b7 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 \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string */ protected $itemLocation; @@ -66,7 +66,7 @@ public function setHoldingArchive($holdingArchive) } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string */ public function getItemLocation() { @@ -74,7 +74,7 @@ public function getItemLocation() } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $itemLocation + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string $itemLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -82,8 +82,8 @@ public function setItemLocation($itemLocation) { $types = [ "\OpenActive\Models\SchemaOrg\Place", - "string", "\OpenActive\Models\SchemaOrg\PostalAddress", + "string", ]; $itemLocation = self::checkTypes($itemLocation, $types); diff --git a/src/Models/SchemaOrg/Artery.php b/src/Models/SchemaOrg/Artery.php index 31bd6c37..d38df343 100644 --- a/src/Models/SchemaOrg/Artery.php +++ b/src/Models/SchemaOrg/Artery.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "supplyTo" => "supplyTo", "arterialBranch" => "arterialBranch", + "supplyTo" => "supplyTo", ]; return array_merge(parent::fieldList(), $fields); } /** - * The area to which the artery supplies blood. + * The branches that comprise the arterial structure. * * * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $supplyTo; + protected $arterialBranch; /** - * The branches that comprise the arterial structure. + * The area to which the artery supplies blood. * * * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $arterialBranch; + protected $supplyTo; /** * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getSupplyTo() + public function getArterialBranch() { - return $this->supplyTo; + return $this->arterialBranch; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $supplyTo + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $arterialBranch * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupplyTo($supplyTo) + public function setArterialBranch($arterialBranch) { $types = [ "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $supplyTo = self::checkTypes($supplyTo, $types); + $arterialBranch = self::checkTypes($arterialBranch, $types); - $this->supplyTo = $supplyTo; + $this->arterialBranch = $arterialBranch; } /** * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getArterialBranch() + public function getSupplyTo() { - return $this->arterialBranch; + return $this->supplyTo; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $arterialBranch + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $supplyTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArterialBranch($arterialBranch) + public function setSupplyTo($supplyTo) { $types = [ "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $arterialBranch = self::checkTypes($arterialBranch, $types); + $supplyTo = self::checkTypes($supplyTo, $types); - $this->arterialBranch = $arterialBranch; + $this->supplyTo = $supplyTo; } } diff --git a/src/Models/SchemaOrg/Article.php b/src/Models/SchemaOrg/Article.php index 7191721f..ee587ed9 100644 --- a/src/Models/SchemaOrg/Article.php +++ b/src/Models/SchemaOrg/Article.php @@ -17,26 +17,26 @@ public static function getType() public static function fieldList() { $fields = [ - "pageStart" => "pageStart", + "articleBody" => "articleBody", "articleSection" => "articleSection", - "pageEnd" => "pageEnd", "backstory" => "backstory", - "wordCount" => "wordCount", - "articleBody" => "articleBody", - "speakable" => "speakable", + "pageEnd" => "pageEnd", + "pageStart" => "pageStart", "pagination" => "pagination", + "speakable" => "speakable", + "wordCount" => "wordCount", ]; return array_merge(parent::fieldList(), $fields); } /** - * The page on which the work starts; for example "135" or "xiii". + * The actual body of the article. * * - * @var string|int|null + * @var string */ - protected $pageStart; + protected $articleBody; /** * Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc. @@ -47,36 +47,36 @@ public static function fieldList() { protected $articleSection; /** - * 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 page on which the work ends; for example "138" or "xvi". * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var string|int|null */ - protected $backstory; + protected $pageEnd; /** - * The number of words in the text of the Article. + * The page on which the work starts; for example "135" or "xiii". * * - * @var int|null + * @var string|int|null */ - protected $wordCount; + protected $pageStart; /** - * The actual body of the article. + * 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 $articleBody; + protected $pagination; /** * 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. * @@ -95,42 +95,40 @@ public static function fieldList() { * * * - * @var string|\OpenActive\Models\SchemaOrg\SpeakableSpecification + * @var \OpenActive\Models\SchemaOrg\SpeakableSpecification|string */ 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". + * The number of words in the text of the CreativeWork such as an Article, Book, etc. * * - * @var string + * @var int|null */ - protected $pagination; + protected $wordCount; /** - * @return string|int|null + * @return string */ - public function getPageStart() + public function getArticleBody() { - return $this->pageStart; + return $this->articleBody; } /** - * @param string|int|null $pageStart + * @param string $articleBody * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageStart($pageStart) + public function setArticleBody($articleBody) { $types = [ "string", - "int", - "null", ]; - $pageStart = self::checkTypes($pageStart, $types); + $articleBody = self::checkTypes($articleBody, $types); - $this->pageStart = $pageStart; + $this->articleBody = $articleBody; } /** @@ -158,107 +156,108 @@ public function setArticleSection($articleSection) } /** - * @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|int|null */ - public function getBackstory() + public function getPageEnd() { - return $this->backstory; + return $this->pageEnd; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $backstory + * @param string|int|null $pageEnd * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBackstory($backstory) + public function setPageEnd($pageEnd) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "int", + "null", ]; - $backstory = self::checkTypes($backstory, $types); + $pageEnd = self::checkTypes($pageEnd, $types); - $this->backstory = $backstory; + $this->pageEnd = $pageEnd; } /** - * @return int|null + * @return string|int|null */ - public function getWordCount() + public function getPageStart() { - return $this->wordCount; + return $this->pageStart; } /** - * @param int|null $wordCount + * @param string|int|null $pageStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWordCount($wordCount) + public function setPageStart($pageStart) { $types = [ + "string", "int", "null", ]; - $wordCount = self::checkTypes($wordCount, $types); + $pageStart = self::checkTypes($pageStart, $types); - $this->wordCount = $wordCount; + $this->pageStart = $pageStart; } /** * @return string */ - public function getArticleBody() + public function getPagination() { - return $this->articleBody; + return $this->pagination; } /** - * @param string $articleBody + * @param string $pagination * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArticleBody($articleBody) + public function setPagination($pagination) { $types = [ "string", ]; - $articleBody = self::checkTypes($articleBody, $types); + $pagination = self::checkTypes($pagination, $types); - $this->articleBody = $articleBody; + $this->pagination = $pagination; } /** - * @return string|\OpenActive\Models\SchemaOrg\SpeakableSpecification + * @return \OpenActive\Models\SchemaOrg\SpeakableSpecification|string */ public function getSpeakable() { @@ -266,15 +265,15 @@ public function getSpeakable() } /** - * @param string|\OpenActive\Models\SchemaOrg\SpeakableSpecification $speakable + * @param \OpenActive\Models\SchemaOrg\SpeakableSpecification|string $speakable * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSpeakable($speakable) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\SpeakableSpecification", + "string", ]; $speakable = self::checkTypes($speakable, $types); @@ -283,27 +282,28 @@ public function setSpeakable($speakable) } /** - * @return string + * @return int|null */ - public function getPagination() + public function getWordCount() { - return $this->pagination; + return $this->wordCount; } /** - * @param string $pagination + * @param int|null $wordCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPagination($pagination) + public function setWordCount($wordCount) { $types = [ - "string", + "int", + "null", ]; - $pagination = self::checkTypes($pagination, $types); + $wordCount = self::checkTypes($wordCount, $types); - $this->pagination = $pagination; + $this->wordCount = $wordCount; } } diff --git a/src/Models/SchemaOrg/AudioObject.php b/src/Models/SchemaOrg/AudioObject.php index 6c0af6a0..82826266 100644 --- a/src/Models/SchemaOrg/AudioObject.php +++ b/src/Models/SchemaOrg/AudioObject.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "embeddedTextCaption" => "embeddedTextCaption", "caption" => "caption", + "embeddedTextCaption" => "embeddedTextCaption", "transcript" => "transcript", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. + * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $embeddedTextCaption; + protected $caption; /** - * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. + * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. * * - * @var string|\OpenActive\Models\SchemaOrg\MediaObject + * @var string */ - protected $caption; + protected $embeddedTextCaption; /** * If this MediaObject is an AudioObject or VideoObject, the transcript of that object. @@ -50,52 +50,52 @@ public static function fieldList() { protected $transcript; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getEmbeddedTextCaption() + public function getCaption() { - return $this->embeddedTextCaption; + return $this->caption; } /** - * @param string $embeddedTextCaption + * @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 setEmbeddedTextCaption($embeddedTextCaption) + public function setCaption($caption) { $types = [ + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); + $caption = self::checkTypes($caption, $types); - $this->embeddedTextCaption = $embeddedTextCaption; + $this->caption = $caption; } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return string */ - public function getCaption() + public function getEmbeddedTextCaption() { - return $this->caption; + return $this->embeddedTextCaption; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption + * @param string $embeddedTextCaption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCaption($caption) + public function setEmbeddedTextCaption($embeddedTextCaption) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $caption = self::checkTypes($caption, $types); + $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - $this->caption = $caption; + $this->embeddedTextCaption = $embeddedTextCaption; } /** diff --git a/src/Models/SchemaOrg/Audiobook.php b/src/Models/SchemaOrg/Audiobook.php index 86bdf5c8..b723bfa6 100644 --- a/src/Models/SchemaOrg/Audiobook.php +++ b/src/Models/SchemaOrg/Audiobook.php @@ -17,78 +17,79 @@ public static function getType() public static function fieldList() { $fields = [ - "readBy" => "readBy", "duration" => "duration", + "readBy" => "readBy", ]; return array_merge(parent::fieldList(), $fields); } /** - * A person who reads (performs) the audiobook. + * 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|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $readBy; + protected $duration; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * A person who reads (performs) the audiobook. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $duration; + protected $readBy; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getReadBy() + public function getDuration() { - return $this->readBy; + return $this->duration; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $readBy + * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReadBy($readBy) + public function setDuration($duration) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $readBy = self::checkTypes($readBy, $types); + $duration = self::checkTypes($duration, $types); - $this->readBy = $readBy; + $this->duration = $duration; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDuration() + public function getReadBy() { - return $this->duration; + return $this->readBy; } /** - * @param DateInterval|string|null $duration + * @param \OpenActive\Models\SchemaOrg\Person|string $readBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setReadBy($readBy) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $duration = self::checkTypes($duration, $types); + $readBy = self::checkTypes($readBy, $types); - $this->duration = $duration; + $this->readBy = $readBy; } } diff --git a/src/Models/SchemaOrg/AuthenticateAction.php b/src/Models/SchemaOrg/AuthenticateAction.php new file mode 100644 index 00000000..e39a3dcf --- /dev/null +++ b/src/Models/SchemaOrg/AuthenticateAction.php @@ -0,0 +1,25 @@ + "bankAccountType", "accountMinimumInflow" => "accountMinimumInflow", "accountOverdraftLimit" => "accountOverdraftLimit", + "bankAccountType" => "bankAccountType", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The type of a bank account. - * - * - * @var string - */ - protected $bankAccountType; - /** * A minimum amount that has to be paid in every month. * @@ -50,28 +42,12 @@ public static function fieldList() { protected $accountOverdraftLimit; /** - * @return string - */ - public function getBankAccountType() - { - return $this->bankAccountType; - } - - /** - * @param string $bankAccountType - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The type of a bank account. + * + * + * @var string */ - public function setBankAccountType($bankAccountType) - { - $types = [ - "string", - ]; - - $bankAccountType = self::checkTypes($bankAccountType, $types); - - $this->bankAccountType = $bankAccountType; - } + protected $bankAccountType; /** * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string @@ -123,4 +99,28 @@ public function setAccountOverdraftLimit($accountOverdraftLimit) $this->accountOverdraftLimit = $accountOverdraftLimit; } + /** + * @return string + */ + public function getBankAccountType() + { + return $this->bankAccountType; + } + + /** + * @param string $bankAccountType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setBankAccountType($bankAccountType) + { + $types = [ + "string", + ]; + + $bankAccountType = self::checkTypes($bankAccountType, $types); + + $this->bankAccountType = $bankAccountType; + } + } diff --git a/src/Models/SchemaOrg/BedDetails.php b/src/Models/SchemaOrg/BedDetails.php index 3b00a07d..8db468f1 100644 --- a/src/Models/SchemaOrg/BedDetails.php +++ b/src/Models/SchemaOrg/BedDetails.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "typeOfBed" => "typeOfBed", "numberOfBeds" => "numberOfBeds", + "typeOfBed" => "typeOfBed", ]; return array_merge(parent::fieldList(), $fields); } /** - * The type of bed to which the BedDetail refers, i.e. the type of bed available in the quantity indicated by quantity. + * The quantity of the given bed type available in the HotelRoom, Suite, House, or Apartment. * * - * @var \OpenActive\Models\SchemaOrg\BedType|string + * @var Number|null */ - protected $typeOfBed; + protected $numberOfBeds; /** - * The quantity of the given bed type available in the HotelRoom, Suite, House, or Apartment. + * The type of bed to which the BedDetail refers, i.e. the type of bed available in the quantity indicated by quantity. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\BedType|string */ - protected $numberOfBeds; + protected $typeOfBed; /** - * @return \OpenActive\Models\SchemaOrg\BedType|string + * @return Number|null */ - public function getTypeOfBed() + public function getNumberOfBeds() { - return $this->typeOfBed; + return $this->numberOfBeds; } /** - * @param \OpenActive\Models\SchemaOrg\BedType|string $typeOfBed + * @param Number|null $numberOfBeds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypeOfBed($typeOfBed) + public function setNumberOfBeds($numberOfBeds) { $types = [ - "\OpenActive\Models\SchemaOrg\BedType", - "string", + "Number", + "null", ]; - $typeOfBed = self::checkTypes($typeOfBed, $types); + $numberOfBeds = self::checkTypes($numberOfBeds, $types); - $this->typeOfBed = $typeOfBed; + $this->numberOfBeds = $numberOfBeds; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\BedType|string */ - public function getNumberOfBeds() + public function getTypeOfBed() { - return $this->numberOfBeds; + return $this->typeOfBed; } /** - * @param Number|null $numberOfBeds + * @param \OpenActive\Models\SchemaOrg\BedType|string $typeOfBed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfBeds($numberOfBeds) + public function setTypeOfBed($typeOfBed) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\BedType", + "string", ]; - $numberOfBeds = self::checkTypes($numberOfBeds, $types); + $typeOfBed = self::checkTypes($typeOfBed, $types); - $this->numberOfBeds = $numberOfBeds; + $this->typeOfBed = $typeOfBed; } } diff --git a/src/Models/SchemaOrg/BioChemEntity.php b/src/Models/SchemaOrg/BioChemEntity.php index c73b1a54..cbecb479 100644 --- a/src/Models/SchemaOrg/BioChemEntity.php +++ b/src/Models/SchemaOrg/BioChemEntity.php @@ -17,456 +17,456 @@ public static function getType() public static function fieldList() { $fields = [ - "funding" => "funding", - "isEncodedByBioChemEntity" => "isEncodedByBioChemEntity", - "isPartOfBioChemEntity" => "isPartOfBioChemEntity", - "taxonomicRange" => "taxonomicRange", - "isInvolvedInBiologicalProcess" => "isInvolvedInBiologicalProcess", - "isLocatedInSubcellularLocation" => "isLocatedInSubcellularLocation", "associatedDisease" => "associatedDisease", - "hasMolecularFunction" => "hasMolecularFunction", - "hasBioChemEntityPart" => "hasBioChemEntityPart", "bioChemInteraction" => "bioChemInteraction", - "hasRepresentation" => "hasRepresentation", "bioChemSimilarity" => "bioChemSimilarity", "biologicalRole" => "biologicalRole", + "funding" => "funding", + "hasBioChemEntityPart" => "hasBioChemEntityPart", + "hasMolecularFunction" => "hasMolecularFunction", + "hasRepresentation" => "hasRepresentation", + "isEncodedByBioChemEntity" => "isEncodedByBioChemEntity", + "isInvolvedInBiologicalProcess" => "isInvolvedInBiologicalProcess", + "isLocatedInSubcellularLocation" => "isLocatedInSubcellularLocation", + "isPartOfBioChemEntity" => "isPartOfBioChemEntity", + "taxonomicRange" => "taxonomicRange", ]; return array_merge(parent::fieldList(), $fields); } /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * 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\Grant|string + * @var \OpenActive\Models\SchemaOrg\MedicalCondition|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $funding; + protected $associatedDisease; /** - * Another BioChemEntity encoding by this one. + * A BioChemEntity that is known to interact with this item. * * - * @var \OpenActive\Models\SchemaOrg\Gene|string + * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - protected $isEncodedByBioChemEntity; + protected $bioChemInteraction; /** - * Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity. + * A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms. * * * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - protected $isPartOfBioChemEntity; + protected $bioChemSimilarity; /** - * The taxonomic grouping of the organism that expresses, encodes, or in someway related to the BioChemEntity. + * A role played by the BioChemEntity within a biological context. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $taxonomicRange; + protected $biologicalRole; /** - * Biological process this BioChemEntity is involved in; please use PropertyValue if you want to include any evidence. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $isInvolvedInBiologicalProcess; + protected $funding; /** - * Subcellular location where this BioChemEntity is located; 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|\OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - protected $isLocatedInSubcellularLocation; + protected $hasBioChemEntityPart; /** - * 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. + * Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence. * * - * @var string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $associatedDisease; + protected $hasMolecularFunction; /** - * 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 \OpenActive\Models\SchemaOrg\PropertyValue|string */ - 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. + * Biological process this BioChemEntity is involved in; please use PropertyValue if you want to include any evidence. * * - * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $bioChemInteraction; + protected $isInvolvedInBiologicalProcess; /** - * A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image. + * Subcellular location where this BioChemEntity is located; please use PropertyValue if you want to include any evidence. * * - * @var string|\OpenActive\Models\SchemaOrg\PropertyValue + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $hasRepresentation; + protected $isLocatedInSubcellularLocation; /** - * A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms. + * Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity. * * * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - protected $bioChemSimilarity; + protected $isPartOfBioChemEntity; /** - * A role played by the BioChemEntity within a biological context. + * The taxonomic grouping of the organism that expresses, encodes, or in some way related to the BioChemEntity. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon|string */ - protected $biologicalRole; + protected $taxonomicRange; /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return \OpenActive\Models\SchemaOrg\MedicalCondition|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getFunding() + public function getAssociatedDisease() { - return $this->funding; + return $this->associatedDisease; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @param \OpenActive\Models\SchemaOrg\MedicalCondition|\OpenActive\Models\SchemaOrg\PropertyValue|string $associatedDisease * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunding($funding) + public function setAssociatedDisease($associatedDisease) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", + "\OpenActive\Models\SchemaOrg\MedicalCondition", + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; - $funding = self::checkTypes($funding, $types); + $associatedDisease = self::checkTypes($associatedDisease, $types); - $this->funding = $funding; + $this->associatedDisease = $associatedDisease; } /** - * @return \OpenActive\Models\SchemaOrg\Gene|string + * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - public function getIsEncodedByBioChemEntity() + public function getBioChemInteraction() { - return $this->isEncodedByBioChemEntity; + return $this->bioChemInteraction; } /** - * @param \OpenActive\Models\SchemaOrg\Gene|string $isEncodedByBioChemEntity + * @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 setIsEncodedByBioChemEntity($isEncodedByBioChemEntity) + public function setBioChemInteraction($bioChemInteraction) { $types = [ - "\OpenActive\Models\SchemaOrg\Gene", + "\OpenActive\Models\SchemaOrg\BioChemEntity", "string", ]; - $isEncodedByBioChemEntity = self::checkTypes($isEncodedByBioChemEntity, $types); + $bioChemInteraction = self::checkTypes($bioChemInteraction, $types); - $this->isEncodedByBioChemEntity = $isEncodedByBioChemEntity; + $this->bioChemInteraction = $bioChemInteraction; } /** * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - public function getIsPartOfBioChemEntity() + public function getBioChemSimilarity() { - return $this->isPartOfBioChemEntity; + return $this->bioChemSimilarity; } /** - * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $isPartOfBioChemEntity + * @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 setIsPartOfBioChemEntity($isPartOfBioChemEntity) + public function setBioChemSimilarity($bioChemSimilarity) { $types = [ "\OpenActive\Models\SchemaOrg\BioChemEntity", "string", ]; - $isPartOfBioChemEntity = self::checkTypes($isPartOfBioChemEntity, $types); + $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types); - $this->isPartOfBioChemEntity = $isPartOfBioChemEntity; + $this->bioChemSimilarity = $bioChemSimilarity; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getTaxonomicRange() + public function getBiologicalRole() { - return $this->taxonomicRange; + return $this->biologicalRole; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon $taxonomicRange + * @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 setTaxonomicRange($taxonomicRange) + public function setBiologicalRole($biologicalRole) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", - "\OpenActive\Models\SchemaOrg\Taxon", + "string", ]; - $taxonomicRange = self::checkTypes($taxonomicRange, $types); + $biologicalRole = self::checkTypes($biologicalRole, $types); - $this->taxonomicRange = $taxonomicRange; + $this->biologicalRole = $biologicalRole; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - public function getIsInvolvedInBiologicalProcess() + public function getFunding() { - return $this->isInvolvedInBiologicalProcess; + return $this->funding; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm $isInvolvedInBiologicalProcess + * @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 setIsInvolvedInBiologicalProcess($isInvolvedInBiologicalProcess) + public function setFunding($funding) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\Grant", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $isInvolvedInBiologicalProcess = self::checkTypes($isInvolvedInBiologicalProcess, $types); + $funding = self::checkTypes($funding, $types); - $this->isInvolvedInBiologicalProcess = $isInvolvedInBiologicalProcess; + $this->funding = $funding; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - public function getIsLocatedInSubcellularLocation() + public function getHasBioChemEntityPart() { - return $this->isLocatedInSubcellularLocation; + return $this->hasBioChemEntityPart; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $isLocatedInSubcellularLocation + * @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 setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocation) + public function setHasBioChemEntityPart($hasBioChemEntityPart) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\BioChemEntity", "string", ]; - $isLocatedInSubcellularLocation = self::checkTypes($isLocatedInSubcellularLocation, $types); + $hasBioChemEntityPart = self::checkTypes($hasBioChemEntityPart, $types); - $this->isLocatedInSubcellularLocation = $isLocatedInSubcellularLocation; + $this->hasBioChemEntityPart = $hasBioChemEntityPart; } /** - * @return string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getAssociatedDisease() + public function getHasMolecularFunction() { - return $this->associatedDisease; + return $this->hasMolecularFunction; } /** - * @param string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition $associatedDisease + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $hasMolecularFunction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedDisease($associatedDisease) + public function setHasMolecularFunction($hasMolecularFunction) { $types = [ - "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "\OpenActive\Models\SchemaOrg\PropertyValue", - "\OpenActive\Models\SchemaOrg\MedicalCondition", + "string", ]; - $associatedDisease = self::checkTypes($associatedDisease, $types); + $hasMolecularFunction = self::checkTypes($hasMolecularFunction, $types); - $this->associatedDisease = $associatedDisease; + $this->hasMolecularFunction = $hasMolecularFunction; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getHasMolecularFunction() + public function getHasRepresentation() { - return $this->hasMolecularFunction; + return $this->hasRepresentation; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $hasMolecularFunction + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $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", ]; - $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 \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getBioChemInteraction() + public function getIsInvolvedInBiologicalProcess() { - return $this->bioChemInteraction; + return $this->isInvolvedInBiologicalProcess; } /** - * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemInteraction + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $isInvolvedInBiologicalProcess * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBioChemInteraction($bioChemInteraction) + public function setIsInvolvedInBiologicalProcess($isInvolvedInBiologicalProcess) { $types = [ - "\OpenActive\Models\SchemaOrg\BioChemEntity", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; - $bioChemInteraction = self::checkTypes($bioChemInteraction, $types); + $isInvolvedInBiologicalProcess = self::checkTypes($isInvolvedInBiologicalProcess, $types); - $this->bioChemInteraction = $bioChemInteraction; + $this->isInvolvedInBiologicalProcess = $isInvolvedInBiologicalProcess; } /** - * @return string|\OpenActive\Models\SchemaOrg\PropertyValue + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getHasRepresentation() + public function getIsLocatedInSubcellularLocation() { - return $this->hasRepresentation; + return $this->isLocatedInSubcellularLocation; } /** - * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $hasRepresentation + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $isLocatedInSubcellularLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasRepresentation($hasRepresentation) + public function setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocation) { $types = [ - "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", ]; - $hasRepresentation = self::checkTypes($hasRepresentation, $types); + $isLocatedInSubcellularLocation = self::checkTypes($isLocatedInSubcellularLocation, $types); - $this->hasRepresentation = $hasRepresentation; + $this->isLocatedInSubcellularLocation = $isLocatedInSubcellularLocation; } /** * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - public function getBioChemSimilarity() + public function getIsPartOfBioChemEntity() { - return $this->bioChemSimilarity; + return $this->isPartOfBioChemEntity; } /** - * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemSimilarity + * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $isPartOfBioChemEntity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBioChemSimilarity($bioChemSimilarity) + public function setIsPartOfBioChemEntity($isPartOfBioChemEntity) { $types = [ "\OpenActive\Models\SchemaOrg\BioChemEntity", "string", ]; - $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types); + $isPartOfBioChemEntity = self::checkTypes($isPartOfBioChemEntity, $types); - $this->bioChemSimilarity = $bioChemSimilarity; + $this->isPartOfBioChemEntity = $isPartOfBioChemEntity; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon|string */ - public function getBiologicalRole() + public function getTaxonomicRange() { - return $this->biologicalRole; + return $this->taxonomicRange; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $biologicalRole + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon|string $taxonomicRange * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBiologicalRole($biologicalRole) + public function setTaxonomicRange($taxonomicRange) { $types = [ "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Taxon", "string", ]; - $biologicalRole = self::checkTypes($biologicalRole, $types); + $taxonomicRange = self::checkTypes($taxonomicRange, $types); - $this->biologicalRole = $biologicalRole; + $this->taxonomicRange = $taxonomicRange; } } diff --git a/src/Models/SchemaOrg/Blog.php b/src/Models/SchemaOrg/Blog.php index 723f2dad..3240c659 100644 --- a/src/Models/SchemaOrg/Blog.php +++ b/src/Models/SchemaOrg/Blog.php @@ -17,110 +17,110 @@ public static function getType() public static function fieldList() { $fields = [ + "blogPost" => "blogPost", "blogPosts" => "blogPosts", "issn" => "issn", - "blogPost" => "blogPost", ]; 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. + * 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 string + * @var \OpenActive\Models\SchemaOrg\BlogPosting|string */ - protected $issn; + protected $blogPosts; /** - * A posting that is part of this blog. + * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication. * * - * @var \OpenActive\Models\SchemaOrg\BlogPosting|string + * @var string */ - protected $blogPost; + protected $issn; /** * @return \OpenActive\Models\SchemaOrg\BlogPosting|string */ - 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; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\BlogPosting|string */ - public function getIssn() + public function getBlogPosts() { - return $this->issn; + return $this->blogPosts; } /** - * @param string $issn + * @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 setIssn($issn) + public function setBlogPosts($blogPosts) { $types = [ + "\OpenActive\Models\SchemaOrg\BlogPosting", "string", ]; - $issn = self::checkTypes($issn, $types); + $blogPosts = self::checkTypes($blogPosts, $types); - $this->issn = $issn; + $this->blogPosts = $blogPosts; } /** - * @return \OpenActive\Models\SchemaOrg\BlogPosting|string + * @return string */ - public function getBlogPost() + public function getIssn() { - return $this->blogPost; + return $this->issn; } /** - * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPost + * @param string $issn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBlogPost($blogPost) + public function setIssn($issn) { $types = [ - "\OpenActive\Models\SchemaOrg\BlogPosting", "string", ]; - $blogPost = self::checkTypes($blogPost, $types); + $issn = self::checkTypes($issn, $types); - $this->blogPost = $blogPost; + $this->issn = $issn; } } diff --git a/src/Models/SchemaOrg/Book.php b/src/Models/SchemaOrg/Book.php index e1fc9cfc..32a0a7e4 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", "bookEdition" => "bookEdition", + "bookFormat" => "bookFormat", + "illustrator" => "illustrator", + "isbn" => "isbn", + "numberOfPages" => "numberOfPages", ]; return array_merge(parent::fieldList(), $fields); } /** - * The ISBN of the book. + * Indicates whether the book is an abridged edition. * * - * @var string + * @var bool|null */ - protected $isbn; + protected $abridged; /** - * The illustrator of the book. + * The edition of the book. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $illustrator; + protected $bookEdition; /** - * The number of pages in the book. + * The format of the book. * * - * @var int|null + * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null */ - protected $numberOfPages; + protected $bookFormat; /** - * Indicates whether the book is an abridged edition. + * The illustrator of the book. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $abridged; + protected $illustrator; /** - * The format of the book. + * The ISBN of the book. * * - * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null + * @var string */ - protected $bookFormat; + protected $isbn; /** - * The edition of the book. + * The number of pages in the book. * * - * @var string + * @var int|null */ - protected $bookEdition; + protected $numberOfPages; /** - * @return string + * @return bool|null */ - public function getIsbn() + public function getAbridged() { - return $this->isbn; + return $this->abridged; } /** - * @param string $isbn + * @param bool|null $abridged * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsbn($isbn) + public function setAbridged($abridged) { $types = [ - "string", + "bool", + "null", ]; - $isbn = self::checkTypes($isbn, $types); + $abridged = self::checkTypes($abridged, $types); - $this->isbn = $isbn; + $this->abridged = $abridged; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getIllustrator() + public function getBookEdition() { - return $this->illustrator; + return $this->bookEdition; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $illustrator + * @param string $bookEdition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIllustrator($illustrator) + public function setBookEdition($bookEdition) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $illustrator = self::checkTypes($illustrator, $types); + $bookEdition = self::checkTypes($bookEdition, $types); - $this->illustrator = $illustrator; + $this->bookEdition = $bookEdition; } /** - * @return int|null + * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null */ - public function getNumberOfPages() + public function getBookFormat() { - return $this->numberOfPages; + return $this->bookFormat; } /** - * @param int|null $numberOfPages + * @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 setNumberOfPages($numberOfPages) + public function setBookFormat($bookFormat) { $types = [ - "int", + "\OpenActive\Enums\SchemaOrg\BookFormatType", "null", ]; - $numberOfPages = self::checkTypes($numberOfPages, $types); + $bookFormat = self::checkTypes($bookFormat, $types); - $this->numberOfPages = $numberOfPages; + $this->bookFormat = $bookFormat; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getAbridged() + public function getIllustrator() { - return $this->abridged; + return $this->illustrator; } /** - * @param bool|null $abridged + * @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 setAbridged($abridged) + public function setIllustrator($illustrator) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $abridged = self::checkTypes($abridged, $types); + $illustrator = self::checkTypes($illustrator, $types); - $this->abridged = $abridged; + $this->illustrator = $illustrator; } /** - * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null + * @return string */ - public function getBookFormat() + public function getIsbn() { - return $this->bookFormat; + return $this->isbn; } /** - * @param \OpenActive\Enums\SchemaOrg\BookFormatType|null $bookFormat + * @param string $isbn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBookFormat($bookFormat) + public function setIsbn($isbn) { $types = [ - "\OpenActive\Enums\SchemaOrg\BookFormatType", - "null", + "string", ]; - $bookFormat = self::checkTypes($bookFormat, $types); + $isbn = self::checkTypes($isbn, $types); - $this->bookFormat = $bookFormat; + $this->isbn = $isbn; } /** - * @return string + * @return int|null */ - public function getBookEdition() + public function getNumberOfPages() { - return $this->bookEdition; + return $this->numberOfPages; } /** - * @param string $bookEdition + * @param int|null $numberOfPages * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBookEdition($bookEdition) + public function setNumberOfPages($numberOfPages) { $types = [ - "string", + "int", + "null", ]; - $bookEdition = self::checkTypes($bookEdition, $types); + $numberOfPages = self::checkTypes($numberOfPages, $types); - $this->bookEdition = $bookEdition; + $this->numberOfPages = $numberOfPages; } } diff --git a/src/Models/SchemaOrg/BorrowAction.php b/src/Models/SchemaOrg/BorrowAction.php index 5378aa96..fc904892 100644 --- a/src/Models/SchemaOrg/BorrowAction.php +++ b/src/Models/SchemaOrg/BorrowAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * A sub property of participant. The person that lends the object being borrowed. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $lender; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getLender() { @@ -40,15 +40,15 @@ public function getLender() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $lender + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $lender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setLender($lender) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/Brand.php b/src/Models/SchemaOrg/Brand.php index ccca908c..df85fba2 100644 --- a/src/Models/SchemaOrg/Brand.php +++ b/src/Models/SchemaOrg/Brand.php @@ -17,144 +17,144 @@ public static function getType() public static function fieldList() { $fields = [ - "review" => "review", "aggregateRating" => "aggregateRating", - "slogan" => "slogan", "logo" => "logo", + "review" => "review", + "slogan" => "slogan", ]; return array_merge(parent::fieldList(), $fields); } /** - * A review of the item. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $review; + protected $aggregateRating; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * An associated logo. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $aggregateRating; + protected $logo; /** - * A slogan or motto associated with the item. + * A review of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $slogan; + protected $review; /** - * An associated logo. + * A slogan or motto associated with the item. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var string */ - protected $logo; + protected $slogan; /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getReview() + public function getAggregateRating() { - return $this->review; + return $this->aggregateRating; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @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 setReview($review) + public function setAggregateRating($aggregateRating) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $review = self::checkTypes($review, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->review = $review; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getAggregateRating() + public function getLogo() { - return $this->aggregateRating; + return $this->logo; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setLogo($logo) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $logo = self::checkTypes($logo, $types); - $this->aggregateRating = $aggregateRating; + $this->logo = $logo; } /** - * @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 string|\OpenActive\Models\SchemaOrg\ImageObject + * @return string */ - public function getLogo() + public function getSlogan() { - return $this->logo; + return $this->slogan; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLogo($logo) + public function setSlogan($slogan) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $slogan = self::checkTypes($slogan, $types); - $this->logo = $logo; + $this->slogan = $slogan; } } diff --git a/src/Models/SchemaOrg/BroadcastChannel.php b/src/Models/SchemaOrg/BroadcastChannel.php index 54888ffb..9a4c960f 100644 --- a/src/Models/SchemaOrg/BroadcastChannel.php +++ b/src/Models/SchemaOrg/BroadcastChannel.php @@ -17,27 +17,27 @@ public static function getType() public static function fieldList() { $fields = [ - "genre" => "genre", - "broadcastFrequency" => "broadcastFrequency", - "providesBroadcastService" => "providesBroadcastService", "broadcastChannelId" => "broadcastChannelId", - "inBroadcastLineup" => "inBroadcastLineup", + "broadcastFrequency" => "broadcastFrequency", "broadcastServiceTier" => "broadcastServiceTier", + "genre" => "genre", + "inBroadcastLineup" => "inBroadcastLineup", + "providesBroadcastService" => "providesBroadcastService", ]; return array_merge(parent::fieldList(), $fields); } /** - * Genre of the creative work, broadcast channel or group. + * The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number. * * * @var string */ - protected $genre; + protected $broadcastChannelId; /** - * 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 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\BroadcastFrequencySpecification|string @@ -45,20 +45,20 @@ public static function fieldList() { protected $broadcastFrequency; /** - * The BroadcastService offered on this channel. + * The type of service required to have access to the channel (e.g. Standard or Premium). * * - * @var \OpenActive\Models\SchemaOrg\BroadcastService|string + * @var string */ - protected $providesBroadcastService; + protected $broadcastServiceTier; /** - * The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number. + * Genre of the creative work, broadcast channel or group. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $broadcastChannelId; + protected $genre; /** * The CableOrSatelliteService offering the channel. @@ -69,35 +69,35 @@ public static function fieldList() { protected $inBroadcastLineup; /** - * The type of service required to have access to the channel (e.g. Standard or Premium). + * The BroadcastService offered on this channel. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\BroadcastService|string */ - protected $broadcastServiceTier; + protected $providesBroadcastService; /** * @return string */ - public function getGenre() + public function getBroadcastChannelId() { - return $this->genre; + return $this->broadcastChannelId; } /** - * @param string $genre + * @param string $broadcastChannelId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGenre($genre) + public function setBroadcastChannelId($broadcastChannelId) { $types = [ "string", ]; - $genre = self::checkTypes($genre, $types); + $broadcastChannelId = self::checkTypes($broadcastChannelId, $types); - $this->genre = $genre; + $this->broadcastChannelId = $broadcastChannelId; } /** @@ -126,52 +126,52 @@ public function setBroadcastFrequency($broadcastFrequency) } /** - * @return \OpenActive\Models\SchemaOrg\BroadcastService|string + * @return string */ - public function getProvidesBroadcastService() + public function getBroadcastServiceTier() { - return $this->providesBroadcastService; + return $this->broadcastServiceTier; } /** - * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $providesBroadcastService + * @param string $broadcastServiceTier * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvidesBroadcastService($providesBroadcastService) + public function setBroadcastServiceTier($broadcastServiceTier) { $types = [ - "\OpenActive\Models\SchemaOrg\BroadcastService", "string", ]; - $providesBroadcastService = self::checkTypes($providesBroadcastService, $types); + $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types); - $this->providesBroadcastService = $providesBroadcastService; + $this->broadcastServiceTier = $broadcastServiceTier; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getBroadcastChannelId() + public function getGenre() { - return $this->broadcastChannelId; + return $this->genre; } /** - * @param string $broadcastChannelId + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $genre * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastChannelId($broadcastChannelId) + public function setGenre($genre) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $broadcastChannelId = self::checkTypes($broadcastChannelId, $types); + $genre = self::checkTypes($genre, $types); - $this->broadcastChannelId = $broadcastChannelId; + $this->genre = $genre; } /** @@ -200,27 +200,28 @@ public function setInBroadcastLineup($inBroadcastLineup) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\BroadcastService|string */ - public function getBroadcastServiceTier() + public function getProvidesBroadcastService() { - return $this->broadcastServiceTier; + return $this->providesBroadcastService; } /** - * @param string $broadcastServiceTier + * @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 setBroadcastServiceTier($broadcastServiceTier) + public function setProvidesBroadcastService($providesBroadcastService) { $types = [ + "\OpenActive\Models\SchemaOrg\BroadcastService", "string", ]; - $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types); + $providesBroadcastService = self::checkTypes($providesBroadcastService, $types); - $this->broadcastServiceTier = $broadcastServiceTier; + $this->providesBroadcastService = $providesBroadcastService; } } diff --git a/src/Models/SchemaOrg/BroadcastEvent.php b/src/Models/SchemaOrg/BroadcastEvent.php index 43106fc0..c9c62787 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", + "subtitleLanguage" => "subtitleLanguage", + "videoFormat" => "videoFormat", ]; 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). + * The event being broadcast such as a sporting event or awards ceremony. * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $subtitleLanguage; + protected $broadcastOfEvent; /** - * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). + * True if the broadcast is of a live event. * * - * @var string + * @var bool|null */ - protected $videoFormat; + protected $isLiveBroadcast; /** - * The event being broadcast such as a sporting event or awards ceremony. + * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Language|string */ - protected $broadcastOfEvent; + protected $subtitleLanguage; /** - * True if the broadcast is of a live event. + * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). * * - * @var bool|null + * @var string */ - protected $isLiveBroadcast; + protected $videoFormat; /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getSubtitleLanguage() + public function getBroadcastOfEvent() { - return $this->subtitleLanguage; + return $this->broadcastOfEvent; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage + * @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 setSubtitleLanguage($subtitleLanguage) + public function setBroadcastOfEvent($broadcastOfEvent) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); + $broadcastOfEvent = self::checkTypes($broadcastOfEvent, $types); - $this->subtitleLanguage = $subtitleLanguage; + $this->broadcastOfEvent = $broadcastOfEvent; } /** - * @return string + * @return bool|null */ - public function getVideoFormat() + public function getIsLiveBroadcast() { - return $this->videoFormat; + return $this->isLiveBroadcast; } /** - * @param string $videoFormat + * @param bool|null $isLiveBroadcast * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVideoFormat($videoFormat) + public function setIsLiveBroadcast($isLiveBroadcast) { $types = [ - "string", + "bool", + "null", ]; - $videoFormat = self::checkTypes($videoFormat, $types); + $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types); - $this->videoFormat = $videoFormat; + $this->isLiveBroadcast = $isLiveBroadcast; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getBroadcastOfEvent() + public function getSubtitleLanguage() { - return $this->broadcastOfEvent; + return $this->subtitleLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $broadcastOfEvent + * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastOfEvent($broadcastOfEvent) + public function setSubtitleLanguage($subtitleLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $broadcastOfEvent = self::checkTypes($broadcastOfEvent, $types); + $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); - $this->broadcastOfEvent = $broadcastOfEvent; + $this->subtitleLanguage = $subtitleLanguage; } /** - * @return bool|null + * @return string */ - public function getIsLiveBroadcast() + public function getVideoFormat() { - return $this->isLiveBroadcast; + return $this->videoFormat; } /** - * @param bool|null $isLiveBroadcast + * @param string $videoFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsLiveBroadcast($isLiveBroadcast) + public function setVideoFormat($videoFormat) { $types = [ - "bool", - "null", + "string", ]; - $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types); + $videoFormat = self::checkTypes($videoFormat, $types); - $this->isLiveBroadcast = $isLiveBroadcast; + $this->videoFormat = $videoFormat; } } diff --git a/src/Models/SchemaOrg/BroadcastFrequencySpecification.php b/src/Models/SchemaOrg/BroadcastFrequencySpecification.php index fab6a903..41993947 100644 --- a/src/Models/SchemaOrg/BroadcastFrequencySpecification.php +++ b/src/Models/SchemaOrg/BroadcastFrequencySpecification.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "broadcastSubChannel" => "broadcastSubChannel", - "broadcastSignalModulation" => "broadcastSignalModulation", "broadcastFrequencyValue" => "broadcastFrequencyValue", + "broadcastSignalModulation" => "broadcastSignalModulation", + "broadcastSubChannel" => "broadcastSubChannel", ]; return array_merge(parent::fieldList(), $fields); } /** - * The subchannel used for the broadcast. + * The frequency in MHz for a particular broadcast. * * - * @var string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $broadcastSubChannel; + protected $broadcastFrequencyValue; /** * The modulation (e.g. FM, AM, etc) used by a particular broadcast service. @@ -42,35 +42,38 @@ public static function fieldList() { protected $broadcastSignalModulation; /** - * The frequency in MHz for a particular broadcast. + * The subchannel used for the broadcast. * * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var string */ - protected $broadcastFrequencyValue; + protected $broadcastSubChannel; /** - * @return string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getBroadcastSubChannel() + public function getBroadcastFrequencyValue() { - return $this->broadcastSubChannel; + return $this->broadcastFrequencyValue; } /** - * @param string $broadcastSubChannel + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $broadcastFrequencyValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastSubChannel($broadcastSubChannel) + public function setBroadcastFrequencyValue($broadcastFrequencyValue) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $broadcastSubChannel = self::checkTypes($broadcastSubChannel, $types); + $broadcastFrequencyValue = self::checkTypes($broadcastFrequencyValue, $types); - $this->broadcastSubChannel = $broadcastSubChannel; + $this->broadcastFrequencyValue = $broadcastFrequencyValue; } /** @@ -100,30 +103,27 @@ public function setBroadcastSignalModulation($broadcastSignalModulation) } /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return string */ - public function getBroadcastFrequencyValue() + public function getBroadcastSubChannel() { - return $this->broadcastFrequencyValue; + return $this->broadcastSubChannel; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $broadcastFrequencyValue + * @param string $broadcastSubChannel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastFrequencyValue($broadcastFrequencyValue) + public function setBroadcastSubChannel($broadcastSubChannel) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $broadcastFrequencyValue = self::checkTypes($broadcastFrequencyValue, $types); + $broadcastSubChannel = self::checkTypes($broadcastSubChannel, $types); - $this->broadcastFrequencyValue = $broadcastFrequencyValue; + $this->broadcastSubChannel = $broadcastSubChannel; } } diff --git a/src/Models/SchemaOrg/BroadcastService.php b/src/Models/SchemaOrg/BroadcastService.php index df992ffd..0dd98743 100644 --- a/src/Models/SchemaOrg/BroadcastService.php +++ b/src/Models/SchemaOrg/BroadcastService.php @@ -17,29 +17,37 @@ public static function getType() public static function fieldList() { $fields = [ - "parentService" => "parentService", + "area" => "area", + "broadcastAffiliateOf" => "broadcastAffiliateOf", "broadcastDisplayName" => "broadcastDisplayName", - "videoFormat" => "videoFormat", - "broadcastTimezone" => "broadcastTimezone", "broadcastFrequency" => "broadcastFrequency", + "broadcastTimezone" => "broadcastTimezone", + "broadcaster" => "broadcaster", "callSign" => "callSign", - "inLanguage" => "inLanguage", "hasBroadcastChannel" => "hasBroadcastChannel", - "broadcaster" => "broadcaster", - "broadcastAffiliateOf" => "broadcastAffiliateOf", - "area" => "area", + "inLanguage" => "inLanguage", + "parentService" => "parentService", + "videoFormat" => "videoFormat", ]; 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 area within which users can expect to reach the broadcast service. * * - * @var \OpenActive\Models\SchemaOrg\BroadcastService|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $parentService; + protected $area; + + /** + * The media network(s) whose content is broadcast on this station. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|string + */ + protected $broadcastAffiliateOf; /** * The name displayed in the channel guide. For many US affiliates, it is the network name. @@ -50,15 +58,15 @@ public static function fieldList() { protected $broadcastDisplayName; /** - * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). + * The frequency used for over-the-air broadcasts. Numeric values or simple ranges, e.g. 87-99. In addition a shortcut idiom is supported for frequencies of AM and FM radio channels, e.g. "87 FM". * * - * @var string + * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string */ - protected $videoFormat; + protected $broadcastFrequency; /** - * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts + * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts. * * * @var string @@ -66,12 +74,12 @@ public static function fieldList() { protected $broadcastTimezone; /** - * 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 organization owning or operating the broadcast service. * * - * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $broadcastFrequency; + protected $broadcaster; /** * 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. @@ -81,14 +89,6 @@ public static function fieldList() { */ protected $callSign; - /** - * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. - * - * - * @var string|\OpenActive\Models\SchemaOrg\Language - */ - protected $inLanguage; - /** * A broadcast channel of a broadcast service. * @@ -98,52 +98,77 @@ public static function fieldList() { protected $hasBroadcastChannel; /** - * The organization owning or operating 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\Organization|string + * @var \OpenActive\Models\SchemaOrg\Language|string */ - protected $broadcaster; + protected $inLanguage; /** - * The media network(s) whose content is broadcast on this station. + * A broadcast service to which the broadcast service may belong to such as regional variations of a national channel. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\BroadcastService|string */ - protected $broadcastAffiliateOf; + protected $parentService; /** - * The area within which users can expect to reach the broadcast service. + * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $area; + protected $videoFormat; /** - * @return \OpenActive\Models\SchemaOrg\BroadcastService|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getParentService() + public function getArea() { - return $this->parentService; + return $this->area; } /** - * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $parentService + * @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 setParentService($parentService) + public function setArea($area) { $types = [ - "\OpenActive\Models\SchemaOrg\BroadcastService", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $parentService = self::checkTypes($parentService, $types); + $area = self::checkTypes($area, $types); - $this->parentService = $parentService; + $this->area = $area; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|string + */ + public function getBroadcastAffiliateOf() + { + return $this->broadcastAffiliateOf; + } + + /** + * @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 setBroadcastAffiliateOf($broadcastAffiliateOf) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; + + $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types); + + $this->broadcastAffiliateOf = $broadcastAffiliateOf; } /** @@ -171,27 +196,28 @@ public function setBroadcastDisplayName($broadcastDisplayName) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string */ - public function getVideoFormat() + public function getBroadcastFrequency() { - return $this->videoFormat; + return $this->broadcastFrequency; } /** - * @param string $videoFormat + * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVideoFormat($videoFormat) + public function setBroadcastFrequency($broadcastFrequency) { $types = [ + "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification", "string", ]; - $videoFormat = self::checkTypes($videoFormat, $types); + $broadcastFrequency = self::checkTypes($broadcastFrequency, $types); - $this->videoFormat = $videoFormat; + $this->broadcastFrequency = $broadcastFrequency; } /** @@ -219,28 +245,28 @@ public function setBroadcastTimezone($broadcastTimezone) } /** - * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getBroadcastFrequency() + public function getBroadcaster() { - return $this->broadcastFrequency; + return $this->broadcaster; } /** - * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency + * @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 setBroadcastFrequency($broadcastFrequency) + public function setBroadcaster($broadcaster) { $types = [ - "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $broadcastFrequency = self::checkTypes($broadcastFrequency, $types); + $broadcaster = self::checkTypes($broadcaster, $types); - $this->broadcastFrequency = $broadcastFrequency; + $this->broadcaster = $broadcaster; } /** @@ -267,31 +293,6 @@ public function setCallSign($callSign) $this->callSign = $callSign; } - /** - * @return string|\OpenActive\Models\SchemaOrg\Language - */ - public function getInLanguage() - { - return $this->inLanguage; - } - - /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setInLanguage($inLanguage) - { - $types = [ - "string", - "\OpenActive\Models\SchemaOrg\Language", - ]; - - $inLanguage = self::checkTypes($inLanguage, $types); - - $this->inLanguage = $inLanguage; - } - /** * @return \OpenActive\Models\SchemaOrg\BroadcastChannel|string */ @@ -318,78 +319,77 @@ public function setHasBroadcastChannel($hasBroadcastChannel) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getBroadcaster() + public function getInLanguage() { - return $this->broadcaster; + return $this->inLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcaster + * @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 setBroadcaster($broadcaster) + public function setInLanguage($inLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $broadcaster = self::checkTypes($broadcaster, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->broadcaster = $broadcaster; + $this->inLanguage = $inLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\BroadcastService|string */ - public function getBroadcastAffiliateOf() + public function getParentService() { - return $this->broadcastAffiliateOf; + return $this->parentService; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcastAffiliateOf + * @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 setBroadcastAffiliateOf($broadcastAffiliateOf) + public function setParentService($parentService) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\BroadcastService", "string", ]; - $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types); + $parentService = self::checkTypes($parentService, $types); - $this->broadcastAffiliateOf = $broadcastAffiliateOf; + $this->parentService = $parentService; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getArea() + public function getVideoFormat() { - return $this->area; + return $this->videoFormat; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $area + * @param string $videoFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArea($area) + public function setVideoFormat($videoFormat) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $area = self::checkTypes($area, $types); + $videoFormat = self::checkTypes($videoFormat, $types); - $this->area = $area; + $this->videoFormat = $videoFormat; } } diff --git a/src/Models/SchemaOrg/BusOrCoach.php b/src/Models/SchemaOrg/BusOrCoach.php index 925b3a0a..64fd6286 100644 --- a/src/Models/SchemaOrg/BusOrCoach.php +++ b/src/Models/SchemaOrg/BusOrCoach.php @@ -17,76 +17,76 @@ public static function getType() public static function fieldList() { $fields = [ - "roofLoad" => "roofLoad", "acrissCode" => "acrissCode", + "roofLoad" => "roofLoad", ]; return array_merge(parent::fieldList(), $fields); } /** - * The permitted total weight of cargo and installations (e.g. a roof rack) on top of the 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. + * The ACRISS Car Classification Code is a code used by many car rental companies, for classifying vehicles. ACRISS stands for Association of Car Rental Industry Systems and Standards. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $roofLoad; + protected $acrissCode; /** - * The ACRISS Car Classification Code is a code used by many car rental companies, for classifying vehicles. ACRISS stands for Association of Car Rental Industry Systems and Standards. + * The permitted total weight of cargo and installations (e.g. a roof rack) on top of the 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 string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $acrissCode; + protected $roofLoad; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getRoofLoad() + public function getAcrissCode() { - return $this->roofLoad; + return $this->acrissCode; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $roofLoad + * @param string $acrissCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRoofLoad($roofLoad) + public function setAcrissCode($acrissCode) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $roofLoad = self::checkTypes($roofLoad, $types); + $acrissCode = self::checkTypes($acrissCode, $types); - $this->roofLoad = $roofLoad; + $this->acrissCode = $acrissCode; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getAcrissCode() + public function getRoofLoad() { - return $this->acrissCode; + return $this->roofLoad; } /** - * @param string $acrissCode + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $roofLoad * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcrissCode($acrissCode) + public function setRoofLoad($roofLoad) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $acrissCode = self::checkTypes($acrissCode, $types); + $roofLoad = self::checkTypes($roofLoad, $types); - $this->acrissCode = $acrissCode; + $this->roofLoad = $roofLoad; } } diff --git a/src/Models/SchemaOrg/BusTrip.php b/src/Models/SchemaOrg/BusTrip.php index ff0e89cc..dd921807 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", - "busName" => "busName", "arrivalBusStop" => "arrivalBusStop", + "busName" => "busName", "busNumber" => "busNumber", + "departureBusStop" => "departureBusStop", ]; return array_merge(parent::fieldList(), $fields); } /** - * The stop or station from which the bus departs. + * The stop or station from which the bus arrives. * * - * @var \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string + * @var \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string */ - protected $departureBusStop; + protected $arrivalBusStop; /** * The name of the bus (e.g. Bolt Express). @@ -43,45 +43,45 @@ public static function fieldList() { protected $busName; /** - * The stop or station from which the bus arrives. + * The unique identifier for the bus. * * - * @var \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string + * @var string */ - protected $arrivalBusStop; + protected $busNumber; /** - * 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 \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string */ - public function getDepartureBusStop() + public function getArrivalBusStop() { - return $this->departureBusStop; + return $this->arrivalBusStop; } /** - * @param \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string $departureBusStop + * @param \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string $arrivalBusStop * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureBusStop($departureBusStop) + public function setArrivalBusStop($arrivalBusStop) { $types = [ - "\OpenActive\Models\SchemaOrg\BusStop", "\OpenActive\Models\SchemaOrg\BusStation", + "\OpenActive\Models\SchemaOrg\BusStop", "string", ]; - $departureBusStop = self::checkTypes($departureBusStop, $types); + $arrivalBusStop = self::checkTypes($arrivalBusStop, $types); - $this->departureBusStop = $departureBusStop; + $this->arrivalBusStop = $arrivalBusStop; } /** @@ -109,53 +109,53 @@ public function setBusName($busName) } /** - * @return \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string + * @return string */ - public function getArrivalBusStop() + public function getBusNumber() { - return $this->arrivalBusStop; + return $this->busNumber; } /** - * @param \OpenActive\Models\SchemaOrg\BusStation|\OpenActive\Models\SchemaOrg\BusStop|string $arrivalBusStop + * @param string $busNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalBusStop($arrivalBusStop) + public function setBusNumber($busNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\BusStation", - "\OpenActive\Models\SchemaOrg\BusStop", "string", ]; - $arrivalBusStop = self::checkTypes($arrivalBusStop, $types); + $busNumber = self::checkTypes($busNumber, $types); - $this->arrivalBusStop = $arrivalBusStop; + $this->busNumber = $busNumber; } /** - * @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..39cc9449 100644 --- a/src/Models/SchemaOrg/BusinessAudience.php +++ b/src/Models/SchemaOrg/BusinessAudience.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "yearlyRevenue" => "yearlyRevenue", "numberOfEmployees" => "numberOfEmployees", + "yearlyRevenue" => "yearlyRevenue", "yearsInOperation" => "yearsInOperation", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * The size of the business in annual revenue. + * The number of employees in an organization, e.g. business. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $yearlyRevenue; + protected $numberOfEmployees; /** - * The number of employees in an organization e.g. business. + * The size of the business in annual revenue. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfEmployees; + protected $yearlyRevenue; /** * The age of the business. @@ -52,51 +52,51 @@ public static function fieldList() { /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getYearlyRevenue() + public function getNumberOfEmployees() { - return $this->yearlyRevenue; + return $this->numberOfEmployees; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $yearlyRevenue + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setYearlyRevenue($yearlyRevenue) + public function setNumberOfEmployees($numberOfEmployees) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $yearlyRevenue = self::checkTypes($yearlyRevenue, $types); + $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); - $this->yearlyRevenue = $yearlyRevenue; + $this->numberOfEmployees = $numberOfEmployees; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfEmployees() + public function getYearlyRevenue() { - return $this->numberOfEmployees; + return $this->yearlyRevenue; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $yearlyRevenue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfEmployees($numberOfEmployees) + public function setYearlyRevenue($yearlyRevenue) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); + $yearlyRevenue = self::checkTypes($yearlyRevenue, $types); - $this->numberOfEmployees = $numberOfEmployees; + $this->yearlyRevenue = $yearlyRevenue; } /** diff --git a/src/Models/SchemaOrg/BuyAction.php b/src/Models/SchemaOrg/BuyAction.php index 35beaa40..c8b5ee92 100644 --- a/src/Models/SchemaOrg/BuyAction.php +++ b/src/Models/SchemaOrg/BuyAction.php @@ -17,77 +17,78 @@ 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. + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * - * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $warrantyPromise; + protected $seller; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * 'vendor' is an earlier term for 'seller'. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $seller; + protected $vendor; /** - * 'vendor' is an earlier term for 'seller'. + * 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 $vendor; + protected $warrantyPromise; /** - * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getWarrantyPromise() + public function getSeller() { - return $this->warrantyPromise; + return $this->seller; } /** - * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarrantyPromise($warrantyPromise) + public function setSeller($seller) { $types = [ - "\OpenActive\Models\SchemaOrg\WarrantyPromise", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $warrantyPromise = self::checkTypes($warrantyPromise, $types); + $seller = self::checkTypes($seller, $types); - $this->warrantyPromise = $warrantyPromise; + $this->seller = $seller; } /** * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSeller() + public function getVendor() { - return $this->seller; + return $this->vendor; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $vendor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeller($seller) + public function setVendor($vendor) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", @@ -95,35 +96,34 @@ public function setSeller($seller) "string", ]; - $seller = self::checkTypes($seller, $types); + $vendor = self::checkTypes($vendor, $types); - $this->seller = $seller; + $this->vendor = $vendor; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - public function getVendor() + public function getWarrantyPromise() { - return $this->vendor; + return $this->warrantyPromise; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $vendor + * @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 setVendor($vendor) + public function setWarrantyPromise($warrantyPromise) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\WarrantyPromise", "string", ]; - $vendor = self::checkTypes($vendor, $types); + $warrantyPromise = self::checkTypes($warrantyPromise, $types); - $this->vendor = $vendor; + $this->warrantyPromise = $warrantyPromise; } } diff --git a/src/Models/SchemaOrg/CDCPMDRecord.php b/src/Models/SchemaOrg/CDCPMDRecord.php index 824f6aca..656977f4 100644 --- a/src/Models/SchemaOrg/CDCPMDRecord.php +++ b/src/Models/SchemaOrg/CDCPMDRecord.php @@ -17,99 +17,99 @@ public static function getType() public static function fieldList() { $fields = [ + "cvdCollectionDate" => "cvdCollectionDate", + "cvdFacilityCounty" => "cvdFacilityCounty", + "cvdFacilityId" => "cvdFacilityId", + "cvdNumBeds" => "cvdNumBeds", "cvdNumBedsOcc" => "cvdNumBedsOcc", - "cvdNumICUBedsOcc" => "cvdNumICUBedsOcc", - "cvdNumVent" => "cvdNumVent", "cvdNumC19Died" => "cvdNumC19Died", - "cvdNumTotBeds" => "cvdNumTotBeds", - "cvdFacilityCounty" => "cvdFacilityCounty", - "cvdNumICUBeds" => "cvdNumICUBeds", - "cvdCollectionDate" => "cvdCollectionDate", "cvdNumC19HOPats" => "cvdNumC19HOPats", + "cvdNumC19HospPats" => "cvdNumC19HospPats", + "cvdNumC19MechVentPats" => "cvdNumC19MechVentPats", "cvdNumC19OFMechVentPats" => "cvdNumC19OFMechVentPats", - "cvdFacilityId" => "cvdFacilityId", + "cvdNumC19OverflowPats" => "cvdNumC19OverflowPats", + "cvdNumICUBeds" => "cvdNumICUBeds", + "cvdNumICUBedsOcc" => "cvdNumICUBedsOcc", + "cvdNumTotBeds" => "cvdNumTotBeds", + "cvdNumVent" => "cvdNumVent", "cvdNumVentUse" => "cvdNumVentUse", - "cvdNumBeds" => "cvdNumBeds", - "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. + * collectiondate - Date for which patient counts are reported. * * - * @var Number|null + * @var DateTime|string|null */ - protected $cvdNumBedsOcc; + protected $cvdCollectionDate; /** - * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied. + * 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 $cvdNumICUBedsOcc; + protected $cvdFacilityCounty; /** - * numvent - MECHANICAL VENTILATORS: Total number of ventilators available. + * Identifier of the NHSN facility that this data record applies to. Use [[cvdFacilityCounty]] to indicate the county. To provide other details, [[healthcareReportingData]] can be used on a [[Hospital]] entry. * * - * @var Number|null + * @var string */ - protected $cvdNumVent; + protected $cvdFacilityId; /** - * numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital, ED, or any overflow location. + * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients. * * * @var Number|null */ - protected $cvdNumC19Died; + protected $cvdNumBeds; /** - * 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. + * numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds that are occupied. * * * @var Number|null */ - protected $cvdNumTotBeds; + protected $cvdNumBedsOcc; /** - * 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. + * numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital, ED, or any overflow location. * * - * @var string + * @var Number|null */ - protected $cvdFacilityCounty; + protected $cvdNumC19Died; /** - * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds. + * 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 $cvdNumICUBeds; + protected $cvdNumC19HOPats; /** - * 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. + * 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 $cvdNumC19HOPats; + protected $cvdNumC19MechVentPats; /** * 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. @@ -120,284 +120,283 @@ public static function fieldList() { protected $cvdNumC19OFMechVentPats; /** - * 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. + * numc19overflowpats - ED/OVERFLOW: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed. * * - * @var string + * @var Number|null */ - protected $cvdFacilityId; + protected $cvdNumC19OverflowPats; /** - * numventuse - MECHANICAL VENTILATORS IN USE: Total number of ventilators in use. + * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds. * * * @var Number|null */ - protected $cvdNumVentUse; + protected $cvdNumICUBeds; /** - * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients. + * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied. * * * @var Number|null */ - protected $cvdNumBeds; + protected $cvdNumICUBedsOcc; /** - * 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. + * 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 $cvdNumC19MechVentPats; + protected $cvdNumTotBeds; /** - * Publication date of an online listing. + * numvent - MECHANICAL VENTILATORS: Total number of ventilators available. * * - * @var Date|DateTime|null + * @var Number|null */ - protected $datePosted; + protected $cvdNumVent; /** - * numc19overflowpats - ED/OVERFLOW: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed. + * numventuse - MECHANICAL VENTILATORS IN USE: Total number of ventilators in use. * * * @var Number|null */ - protected $cvdNumC19OverflowPats; + protected $cvdNumVentUse; /** - * numc19hosppats - HOSPITALIZED: Patients currently hospitalized in an inpatient care location who have suspected or confirmed COVID-19. + * Publication date of an online listing. * * - * @var Number|null + * @var Date|DateTime|null */ - protected $cvdNumC19HospPats; + protected $datePosted; /** - * @return Number|null + * @return DateTime|string|null */ - public function getCvdNumBedsOcc() + public function getCvdCollectionDate() { - return $this->cvdNumBedsOcc; + return $this->cvdCollectionDate; } /** - * @param Number|null $cvdNumBedsOcc + * @param DateTime|string|null $cvdCollectionDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumBedsOcc($cvdNumBedsOcc) + public function setCvdCollectionDate($cvdCollectionDate) { $types = [ - "Number", + "DateTime", + "string", "null", ]; - $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types); + $cvdCollectionDate = self::checkTypes($cvdCollectionDate, $types); - $this->cvdNumBedsOcc = $cvdNumBedsOcc; + $this->cvdCollectionDate = $cvdCollectionDate; } /** - * @return Number|null + * @return string */ - public function getCvdNumICUBedsOcc() + public function getCvdFacilityCounty() { - return $this->cvdNumICUBedsOcc; + return $this->cvdFacilityCounty; } /** - * @param Number|null $cvdNumICUBedsOcc + * @param string $cvdFacilityCounty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc) + public function setCvdFacilityCounty($cvdFacilityCounty) { $types = [ - "Number", - "null", + "string", ]; - $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types); + $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types); - $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc; + $this->cvdFacilityCounty = $cvdFacilityCounty; } /** - * @return Number|null + * @return string */ - public function getCvdNumVent() + public function getCvdFacilityId() { - return $this->cvdNumVent; + return $this->cvdFacilityId; } /** - * @param Number|null $cvdNumVent + * @param string $cvdFacilityId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumVent($cvdNumVent) + public function setCvdFacilityId($cvdFacilityId) { $types = [ - "Number", - "null", + "string", ]; - $cvdNumVent = self::checkTypes($cvdNumVent, $types); + $cvdFacilityId = self::checkTypes($cvdFacilityId, $types); - $this->cvdNumVent = $cvdNumVent; + $this->cvdFacilityId = $cvdFacilityId; } /** * @return Number|null */ - public function getCvdNumC19Died() + public function getCvdNumBeds() { - return $this->cvdNumC19Died; + return $this->cvdNumBeds; } /** - * @param Number|null $cvdNumC19Died + * @param Number|null $cvdNumBeds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19Died($cvdNumC19Died) + public function setCvdNumBeds($cvdNumBeds) { $types = [ "Number", "null", ]; - $cvdNumC19Died = self::checkTypes($cvdNumC19Died, $types); + $cvdNumBeds = self::checkTypes($cvdNumBeds, $types); - $this->cvdNumC19Died = $cvdNumC19Died; + $this->cvdNumBeds = $cvdNumBeds; } /** * @return Number|null */ - public function getCvdNumTotBeds() + public function getCvdNumBedsOcc() { - return $this->cvdNumTotBeds; + return $this->cvdNumBedsOcc; } /** - * @param Number|null $cvdNumTotBeds + * @param Number|null $cvdNumBedsOcc * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumTotBeds($cvdNumTotBeds) + public function setCvdNumBedsOcc($cvdNumBedsOcc) { $types = [ "Number", "null", ]; - $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types); + $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types); - $this->cvdNumTotBeds = $cvdNumTotBeds; + $this->cvdNumBedsOcc = $cvdNumBedsOcc; } /** - * @return string + * @return Number|null */ - public function getCvdFacilityCounty() + public function getCvdNumC19Died() { - return $this->cvdFacilityCounty; + return $this->cvdNumC19Died; } /** - * @param string $cvdFacilityCounty + * @param Number|null $cvdNumC19Died * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdFacilityCounty($cvdFacilityCounty) + public function setCvdNumC19Died($cvdNumC19Died) { $types = [ - "string", + "Number", + "null", ]; - $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types); + $cvdNumC19Died = self::checkTypes($cvdNumC19Died, $types); - $this->cvdFacilityCounty = $cvdFacilityCounty; + $this->cvdNumC19Died = $cvdNumC19Died; } /** * @return Number|null */ - public function getCvdNumICUBeds() + public function getCvdNumC19HOPats() { - return $this->cvdNumICUBeds; + return $this->cvdNumC19HOPats; } /** - * @param Number|null $cvdNumICUBeds + * @param Number|null $cvdNumC19HOPats * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumICUBeds($cvdNumICUBeds) + public function setCvdNumC19HOPats($cvdNumC19HOPats) { $types = [ "Number", "null", ]; - $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types); + $cvdNumC19HOPats = self::checkTypes($cvdNumC19HOPats, $types); - $this->cvdNumICUBeds = $cvdNumICUBeds; + $this->cvdNumC19HOPats = $cvdNumC19HOPats; } /** - * @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 getCvdNumC19MechVentPats() { - return $this->cvdNumC19HOPats; + return $this->cvdNumC19MechVentPats; } /** - * @param Number|null $cvdNumC19HOPats + * @param Number|null $cvdNumC19MechVentPats * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19HOPats($cvdNumC19HOPats) + public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats) { $types = [ "Number", "null", ]; - $cvdNumC19HOPats = self::checkTypes($cvdNumC19HOPats, $types); + $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types); - $this->cvdNumC19HOPats = $cvdNumC19HOPats; + $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats; } /** @@ -426,178 +425,179 @@ public function setCvdNumC19OFMechVentPats($cvdNumC19OFMechVentPats) } /** - * @return string + * @return Number|null */ - public function getCvdFacilityId() + public function getCvdNumC19OverflowPats() { - return $this->cvdFacilityId; + return $this->cvdNumC19OverflowPats; } /** - * @param string $cvdFacilityId + * @param Number|null $cvdNumC19OverflowPats * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdFacilityId($cvdFacilityId) + public function setCvdNumC19OverflowPats($cvdNumC19OverflowPats) { $types = [ - "string", + "Number", + "null", ]; - $cvdFacilityId = self::checkTypes($cvdFacilityId, $types); + $cvdNumC19OverflowPats = self::checkTypes($cvdNumC19OverflowPats, $types); - $this->cvdFacilityId = $cvdFacilityId; + $this->cvdNumC19OverflowPats = $cvdNumC19OverflowPats; } /** * @return Number|null */ - public function getCvdNumVentUse() + public function getCvdNumICUBeds() { - return $this->cvdNumVentUse; + return $this->cvdNumICUBeds; } /** - * @param Number|null $cvdNumVentUse + * @param Number|null $cvdNumICUBeds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumVentUse($cvdNumVentUse) + public function setCvdNumICUBeds($cvdNumICUBeds) { $types = [ "Number", "null", ]; - $cvdNumVentUse = self::checkTypes($cvdNumVentUse, $types); + $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types); - $this->cvdNumVentUse = $cvdNumVentUse; + $this->cvdNumICUBeds = $cvdNumICUBeds; } /** * @return Number|null */ - public function getCvdNumBeds() + public function getCvdNumICUBedsOcc() { - return $this->cvdNumBeds; + return $this->cvdNumICUBedsOcc; } /** - * @param Number|null $cvdNumBeds + * @param Number|null $cvdNumICUBedsOcc * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumBeds($cvdNumBeds) + public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc) { $types = [ "Number", "null", ]; - $cvdNumBeds = self::checkTypes($cvdNumBeds, $types); + $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types); - $this->cvdNumBeds = $cvdNumBeds; + $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc; } /** * @return Number|null */ - public function getCvdNumC19MechVentPats() + public function getCvdNumTotBeds() { - return $this->cvdNumC19MechVentPats; + return $this->cvdNumTotBeds; } /** - * @param Number|null $cvdNumC19MechVentPats + * @param Number|null $cvdNumTotBeds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats) + public function setCvdNumTotBeds($cvdNumTotBeds) { $types = [ "Number", "null", ]; - $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types); + $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types); - $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats; + $this->cvdNumTotBeds = $cvdNumTotBeds; } /** - * @return Date|DateTime|null + * @return Number|null */ - public function getDatePosted() + public function getCvdNumVent() { - return $this->datePosted; + return $this->cvdNumVent; } /** - * @param Date|DateTime|null $datePosted + * @param Number|null $cvdNumVent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePosted($datePosted) + public function setCvdNumVent($cvdNumVent) { $types = [ - "Date", - "DateTime", + "Number", "null", ]; - $datePosted = self::checkTypes($datePosted, $types); + $cvdNumVent = self::checkTypes($cvdNumVent, $types); - $this->datePosted = $datePosted; + $this->cvdNumVent = $cvdNumVent; } /** * @return Number|null */ - public function getCvdNumC19OverflowPats() + public function getCvdNumVentUse() { - return $this->cvdNumC19OverflowPats; + return $this->cvdNumVentUse; } /** - * @param Number|null $cvdNumC19OverflowPats + * @param Number|null $cvdNumVentUse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19OverflowPats($cvdNumC19OverflowPats) + public function setCvdNumVentUse($cvdNumVentUse) { $types = [ "Number", "null", ]; - $cvdNumC19OverflowPats = self::checkTypes($cvdNumC19OverflowPats, $types); + $cvdNumVentUse = self::checkTypes($cvdNumVentUse, $types); - $this->cvdNumC19OverflowPats = $cvdNumC19OverflowPats; + $this->cvdNumVentUse = $cvdNumVentUse; } /** - * @return Number|null + * @return Date|DateTime|null */ - public function getCvdNumC19HospPats() + public function getDatePosted() { - return $this->cvdNumC19HospPats; + return $this->datePosted; } /** - * @param Number|null $cvdNumC19HospPats + * @param Date|DateTime|null $datePosted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19HospPats($cvdNumC19HospPats) + public function setDatePosted($datePosted) { $types = [ - "Number", + "Date", + "DateTime", "null", ]; - $cvdNumC19HospPats = self::checkTypes($cvdNumC19HospPats, $types); + $datePosted = self::checkTypes($datePosted, $types); - $this->cvdNumC19HospPats = $cvdNumC19HospPats; + $this->datePosted = $datePosted; } } diff --git a/src/Models/SchemaOrg/Campground.php b/src/Models/SchemaOrg/Campground.php index 1aec6fea..ce9b8e5b 100644 --- a/src/Models/SchemaOrg/Campground.php +++ b/src/Models/SchemaOrg/Campground.php @@ -5,7 +5,7 @@ /** * */ -class Campground extends \OpenActive\Models\SchemaOrg\LodgingBusiness +class Campground extends \OpenActive\Models\SchemaOrg\CivicStructure { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/Car.php b/src/Models/SchemaOrg/Car.php index b3b105f2..4eda86ee 100644 --- a/src/Models/SchemaOrg/Car.php +++ b/src/Models/SchemaOrg/Car.php @@ -17,76 +17,76 @@ public static function getType() public static function fieldList() { $fields = [ - "roofLoad" => "roofLoad", "acrissCode" => "acrissCode", + "roofLoad" => "roofLoad", ]; return array_merge(parent::fieldList(), $fields); } /** - * The permitted total weight of cargo and installations (e.g. a roof rack) on top of the 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. + * The ACRISS Car Classification Code is a code used by many car rental companies, for classifying vehicles. ACRISS stands for Association of Car Rental Industry Systems and Standards. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $roofLoad; + protected $acrissCode; /** - * The ACRISS Car Classification Code is a code used by many car rental companies, for classifying vehicles. ACRISS stands for Association of Car Rental Industry Systems and Standards. + * The permitted total weight of cargo and installations (e.g. a roof rack) on top of the 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 string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $acrissCode; + protected $roofLoad; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getRoofLoad() + public function getAcrissCode() { - return $this->roofLoad; + return $this->acrissCode; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $roofLoad + * @param string $acrissCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRoofLoad($roofLoad) + public function setAcrissCode($acrissCode) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $roofLoad = self::checkTypes($roofLoad, $types); + $acrissCode = self::checkTypes($acrissCode, $types); - $this->roofLoad = $roofLoad; + $this->acrissCode = $acrissCode; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getAcrissCode() + public function getRoofLoad() { - return $this->acrissCode; + return $this->roofLoad; } /** - * @param string $acrissCode + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $roofLoad * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcrissCode($acrissCode) + public function setRoofLoad($roofLoad) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $acrissCode = self::checkTypes($acrissCode, $types); + $roofLoad = self::checkTypes($roofLoad, $types); - $this->acrissCode = $acrissCode; + $this->roofLoad = $roofLoad; } } diff --git a/src/Models/SchemaOrg/Certification.php b/src/Models/SchemaOrg/Certification.php new file mode 100644 index 00000000..21a5e064 --- /dev/null +++ b/src/Models/SchemaOrg/Certification.php @@ -0,0 +1,437 @@ + "about", + "auditDate" => "auditDate", + "certificationIdentification" => "certificationIdentification", + "certificationRating" => "certificationRating", + "certificationStatus" => "certificationStatus", + "datePublished" => "datePublished", + "expires" => "expires", + "hasMeasurement" => "hasMeasurement", + "issuedBy" => "issuedBy", + "logo" => "logo", + "validFrom" => "validFrom", + "validIn" => "validIn", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * The subject matter of an object. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|string + */ + protected $about; + + /** + * Date when a certification was last audited. See also [gs1:certificationAuditDate](https://www.gs1.org/voc/certificationAuditDate). + * + * + * @var Date|DateTime|null + */ + protected $auditDate; + + /** + * 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 \OpenActive\Models\SchemaOrg\DefinedTerm|string + */ + 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; + + /** + * 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; + + /** + * Date of first publication or broadcast. For example the date a [[CreativeWork]] was broadcast or a [[Certification]] was issued. + * + * + * @var Date|DateTime|null + */ + protected $datePublished; + + /** + * Date 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; + + /** + * 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 organization issuing the item, for example a [[Permit]], [[Ticket]], or [[Certification]]. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|string + */ + protected $issuedBy; + + /** + * An associated logo. + * + * + * @var \OpenActive\Models\SchemaOrg\ImageObject|string + */ + protected $logo; + + /** + * The date when the item becomes valid. + * + * + * @var Date|DateTime|null + */ + protected $validFrom; + + /** + * The geographic area where the item is valid. Applies for example to a [[Permit]], a [[Certification]], or an [[EducationalOccupationalCredential]]. + * + * + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string + */ + protected $validIn; + + /** + * @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 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\DefinedTerm|string + */ + public function getCertificationIdentification() + { + return $this->certificationIdentification; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $certificationIdentification + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCertificationIdentification($certificationIdentification) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", + ]; + + $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 \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 Date|DateTime|null + */ + public function getDatePublished() + { + return $this->datePublished; + } + + /** + * @param Date|DateTime|null $datePublished + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDatePublished($datePublished) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $datePublished = self::checkTypes($datePublished, $types); + + $this->datePublished = $datePublished; + } + + /** + * @return Date|DateTime|null + */ + public function getExpires() + { + return $this->expires; + } + + /** + * @param Date|DateTime|null $expires + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setExpires($expires) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $expires = self::checkTypes($expires, $types); + + $this->expires = $expires; + } + + /** + * @return \OpenActive\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\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 \OpenActive\Models\SchemaOrg\ImageObject|string + */ + public function getLogo() + { + return $this->logo; + } + + /** + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setLogo($logo) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ImageObject", + "string", + ]; + + $logo = self::checkTypes($logo, $types); + + $this->logo = $logo; + } + + /** + * @return Date|DateTime|null + */ + public function getValidFrom() + { + return $this->validFrom; + } + + /** + * @param Date|DateTime|null $validFrom + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValidFrom($validFrom) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $validFrom = self::checkTypes($validFrom, $types); + + $this->validFrom = $validFrom; + } + + /** + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + */ + public function getValidIn() + { + return $this->validIn; + } + + /** + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $validIn + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValidIn($validIn) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "string", + ]; + + $validIn = self::checkTypes($validIn, $types); + + $this->validIn = $validIn; + } + +} diff --git a/src/Models/SchemaOrg/Chapter.php b/src/Models/SchemaOrg/Chapter.php index f0e6159a..6a645d9a 100644 --- a/src/Models/SchemaOrg/Chapter.php +++ b/src/Models/SchemaOrg/Chapter.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "pageStart" => "pageStart", "pageEnd" => "pageEnd", + "pageStart" => "pageStart", "pagination" => "pagination", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * The page on which the work starts; for example "135" or "xiii". + * The page on which the work ends; for example "138" or "xvi". * * * @var string|int|null */ - protected $pageStart; + protected $pageEnd; /** - * 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; /** * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". @@ -52,17 +52,17 @@ public static function fieldList() { /** * @return string|int|null */ - public function getPageStart() + public function getPageEnd() { - return $this->pageStart; + return $this->pageEnd; } /** - * @param string|int|null $pageStart + * @param string|int|null $pageEnd * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageStart($pageStart) + public function setPageEnd($pageEnd) { $types = [ "string", @@ -70,25 +70,25 @@ public function setPageStart($pageStart) "null", ]; - $pageStart = self::checkTypes($pageStart, $types); + $pageEnd = self::checkTypes($pageEnd, $types); - $this->pageStart = $pageStart; + $this->pageEnd = $pageEnd; } /** * @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", @@ -96,9 +96,9 @@ public function setPageEnd($pageEnd) "null", ]; - $pageEnd = self::checkTypes($pageEnd, $types); + $pageStart = self::checkTypes($pageStart, $types); - $this->pageEnd = $pageEnd; + $this->pageStart = $pageStart; } /** diff --git a/src/Models/SchemaOrg/ChemicalSubstance.php b/src/Models/SchemaOrg/ChemicalSubstance.php index 4000ad52..14a45149 100644 --- a/src/Models/SchemaOrg/ChemicalSubstance.php +++ b/src/Models/SchemaOrg/ChemicalSubstance.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "chemicalComposition" => "chemicalComposition", - "potentialUse" => "potentialUse", "chemicalRole" => "chemicalRole", + "potentialUse" => "potentialUse", ]; return array_merge(parent::fieldList(), $fields); @@ -34,20 +34,20 @@ public static function fieldList() { protected $chemicalComposition; /** - * Intended use of the BioChemEntity by humans. + * A role played by the BioChemEntity within a chemical context. * * * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $potentialUse; + protected $chemicalRole; /** - * A role played by the BioChemEntity within a chemical context. + * Intended use of the BioChemEntity by humans. * * * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $chemicalRole; + protected $potentialUse; /** * @return string @@ -76,51 +76,51 @@ public function setChemicalComposition($chemicalComposition) /** * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getPotentialUse() + public function getChemicalRole() { - return $this->potentialUse; + return $this->chemicalRole; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $potentialUse + * @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 setPotentialUse($potentialUse) + public function setChemicalRole($chemicalRole) { $types = [ "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $potentialUse = self::checkTypes($potentialUse, $types); + $chemicalRole = self::checkTypes($chemicalRole, $types); - $this->potentialUse = $potentialUse; + $this->chemicalRole = $chemicalRole; } /** * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getChemicalRole() + public function getPotentialUse() { - return $this->chemicalRole; + return $this->potentialUse; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $chemicalRole + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $potentialUse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setChemicalRole($chemicalRole) + public function setPotentialUse($potentialUse) { $types = [ "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $chemicalRole = self::checkTypes($chemicalRole, $types); + $potentialUse = self::checkTypes($potentialUse, $types); - $this->chemicalRole = $chemicalRole; + $this->potentialUse = $potentialUse; } } diff --git a/src/Models/SchemaOrg/ChooseAction.php b/src/Models/SchemaOrg/ChooseAction.php index d1c71ddd..955ca7a3 100644 --- a/src/Models/SchemaOrg/ChooseAction.php +++ b/src/Models/SchemaOrg/ChooseAction.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "option" => "option", "actionOption" => "actionOption", + "option" => "option", ]; return array_merge(parent::fieldList(), $fields); @@ -30,64 +30,64 @@ public static function fieldList() { * * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $option; + protected $actionOption; /** * A sub property of object. The options subject to this action. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $actionOption; + protected $option; /** * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getOption() + public function getActionOption() { - return $this->option; + return $this->actionOption; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $option + * @param string|\OpenActive\Models\SchemaOrg\Thing $actionOption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOption($option) + public function setActionOption($actionOption) { $types = [ "string", "\OpenActive\Models\SchemaOrg\Thing", ]; - $option = self::checkTypes($option, $types); + $actionOption = self::checkTypes($actionOption, $types); - $this->option = $option; + $this->actionOption = $actionOption; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getActionOption() + public function getOption() { - return $this->actionOption; + return $this->option; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $actionOption + * @param string|\OpenActive\Models\SchemaOrg\Thing $option * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActionOption($actionOption) + public function setOption($option) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $actionOption = self::checkTypes($actionOption, $types); + $option = self::checkTypes($option, $types); - $this->actionOption = $actionOption; + $this->option = $option; } } diff --git a/src/Models/SchemaOrg/Claim.php b/src/Models/SchemaOrg/Claim.php index a56747c9..55d5403e 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 = [ + "appearance" => "appearance", "claimInterpreter" => "claimInterpreter", "firstAppearance" => "firstAppearance", - "appearance" => "appearance", ]; return array_merge(parent::fieldList(), $fields); } /** - * For a [[Claim]] interpreted from [[MediaObject]] content - * sed to indicate a claim contained, implied or refined from the content of a [[MediaObject]]. + * Indicates an occurrence of a [[Claim]] in some [[CreativeWork]]. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $claimInterpreter; + protected $appearance; /** - * Indicates the first known occurence of a [[Claim]] in some [[CreativeWork]]. + * For a [[Claim]] interpreted from [[MediaObject]] content, the [[interpretedAsClaim]] property can be used to indicate a claim contained, implied or refined from the content of a [[MediaObject]]. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $firstAppearance; + protected $claimInterpreter; /** - * Indicates an occurence of a [[Claim]] in some [[CreativeWork]]. + * Indicates the first known occurrence of a [[Claim]] in some [[CreativeWork]]. * * * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $appearance; + protected $firstAppearance; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getClaimInterpreter() + public function getAppearance() { - return $this->claimInterpreter; + return $this->appearance; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $claimInterpreter + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $appearance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setClaimInterpreter($claimInterpreter) + public function setAppearance($appearance) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $claimInterpreter = self::checkTypes($claimInterpreter, $types); + $appearance = self::checkTypes($appearance, $types); - $this->claimInterpreter = $claimInterpreter; + $this->appearance = $appearance; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getFirstAppearance() + public function getClaimInterpreter() { - return $this->firstAppearance; + return $this->claimInterpreter; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $firstAppearance + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $claimInterpreter * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFirstAppearance($firstAppearance) + public function setClaimInterpreter($claimInterpreter) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $firstAppearance = self::checkTypes($firstAppearance, $types); + $claimInterpreter = self::checkTypes($claimInterpreter, $types); - $this->firstAppearance = $firstAppearance; + $this->claimInterpreter = $claimInterpreter; } /** * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getAppearance() + public function getFirstAppearance() { - return $this->appearance; + return $this->firstAppearance; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $appearance + * @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 setAppearance($appearance) + public function setFirstAppearance($firstAppearance) { $types = [ "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $appearance = self::checkTypes($appearance, $types); + $firstAppearance = self::checkTypes($firstAppearance, $types); - $this->appearance = $appearance; + $this->firstAppearance = $firstAppearance; } } diff --git a/src/Models/SchemaOrg/Class.php b/src/Models/SchemaOrg/Class.php index bfafaeae..04fa65a6 100644 --- a/src/Models/SchemaOrg/Class.php +++ b/src/Models/SchemaOrg/Class.php @@ -27,12 +27,12 @@ public static function fieldList() { * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|\OpenActive\Enums\PropertyEnumeration|null */ protected $supersededBy; /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|\OpenActive\Enums\PropertyEnumeration|null */ public function getSupersededBy() { @@ -40,15 +40,15 @@ public function getSupersededBy() } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy + * @param \OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSupersededBy($supersededBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", "\OpenActive\Models\SchemaOrg\Class", + "\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..1df6ded9 100644 --- a/src/Models/SchemaOrg/Clip.php +++ b/src/Models/SchemaOrg/Clip.php @@ -17,40 +17,48 @@ 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", + "clipNumber" => "clipNumber", + "director" => "director", "directors" => "directors", + "endOffset" => "endOffset", + "musicBy" => "musicBy", + "partOfEpisode" => "partOfEpisode", + "partOfSeason" => "partOfSeason", + "partOfSeries" => "partOfSeries", + "startOffset" => "startOffset", ]; 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\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $startOffset; + protected $actor; /** - * The end time of the clip expressed as the number of seconds from the beginning of the work. + * 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 Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $endOffset; + protected $actors; /** - * 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. + * Position of the clip within an ordered group of clips. + * + * + * @var string|int|null + */ + protected $clipNumber; + + /** + * 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 @@ -58,36 +66,36 @@ public static function fieldList() { 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. + * 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 episode to which this clip belongs. + * The end time of the clip expressed as the number of seconds from the beginning of the work. * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null */ - protected $partOfEpisode; + protected $endOffset; /** - * Position of the clip within an ordered group of clips. + * The composer of the soundtrack. * * - * @var string|int|null + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $clipNumber; + protected $musicBy; /** - * The series to which this episode or season belongs. + * The episode to which this clip belongs. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $partOfSeries; + protected $partOfEpisode; /** * The season to which this episode belongs. @@ -98,81 +106,96 @@ public static function fieldList() { protected $partOfSeason; /** - * 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 series to which this episode or season belongs. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - protected $actors; + protected $partOfSeries; /** - * The composer of the soundtrack. + * The start time of the clip expressed as the number of seconds from the beginning of the work. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null */ - protected $musicBy; + protected $startOffset; /** - * 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\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $directors; + public function getActor() + { + return $this->actor; + } /** - * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null + * @param \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string $actor + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function getStartOffset() + public function setActor($actor) { - return $this->startOffset; + $types = [ + "\OpenActive\Models\SchemaOrg\PerformingGroup", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $actor = self::checkTypes($actor, $types); + + $this->actor = $actor; } /** - * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset + * @return \OpenActive\Models\SchemaOrg\Person|string + */ + public function getActors() + { + return $this->actors; + } + + /** + * @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 setStartOffset($startOffset) + public function setActors($actors) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\HyperTocEntry", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $startOffset = self::checkTypes($startOffset, $types); + $actors = self::checkTypes($actors, $types); - $this->startOffset = $startOffset; + $this->actors = $actors; } /** - * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null + * @return string|int|null */ - public function getEndOffset() + public function getClipNumber() { - return $this->endOffset; + return $this->clipNumber; } /** - * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $endOffset + * @param string|int|null $clipNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndOffset($endOffset) + public function setClipNumber($clipNumber) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\HyperTocEntry", "string", + "int", "null", ]; - $endOffset = self::checkTypes($endOffset, $types); + $clipNumber = self::checkTypes($clipNumber, $types); - $this->endOffset = $endOffset; + $this->clipNumber = $clipNumber; } /** @@ -203,102 +226,104 @@ public function setDirector($director) /** * @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\Episode|string + * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null */ - public function getPartOfEpisode() + public function getEndOffset() { - return $this->partOfEpisode; + return $this->endOffset; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $partOfEpisode + * @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 setPartOfEpisode($partOfEpisode) + public function setEndOffset($endOffset) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\HyperTocEntry", "string", + "Number", + "null", ]; - $partOfEpisode = self::checkTypes($partOfEpisode, $types); + $endOffset = self::checkTypes($endOffset, $types); - $this->partOfEpisode = $partOfEpisode; + $this->endOffset = $endOffset; } /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getClipNumber() + public function getMusicBy() { - return $this->clipNumber; + return $this->musicBy; } /** - * @param string|int|null $clipNumber + * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setClipNumber($clipNumber) + public function setMusicBy($musicBy) { $types = [ + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", - "int", - "null", ]; - $clipNumber = self::checkTypes($clipNumber, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->clipNumber = $clipNumber; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getPartOfSeries() + public function getPartOfEpisode() { - return $this->partOfSeries; + return $this->partOfEpisode; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries + * @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 setPartOfSeries($partOfSeries) + public function setPartOfEpisode($partOfEpisode) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $partOfSeries = self::checkTypes($partOfSeries, $types); + $partOfEpisode = self::checkTypes($partOfEpisode, $types); - $this->partOfSeries = $partOfSeries; + $this->partOfEpisode = $partOfEpisode; } /** @@ -327,79 +352,55 @@ public function setPartOfSeason($partOfSeason) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string - */ - public function getActors() - { - return $this->actors; - } - - /** - * @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 setActors($actors) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "string", - ]; - - $actors = self::checkTypes($actors, $types); - - $this->actors = $actors; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - public function getMusicBy() + public function getPartOfSeries() { - return $this->musicBy; + return $this->partOfSeries; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @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 setMusicBy($musicBy) + public function setPartOfSeries($partOfSeries) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $partOfSeries = self::checkTypes($partOfSeries, $types); - $this->musicBy = $musicBy; + $this->partOfSeries = $partOfSeries; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null */ - public function getDirectors() + public function getStartOffset() { - return $this->directors; + return $this->startOffset; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @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 setDirectors($directors) + public function setStartOffset($startOffset) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\HyperTocEntry", "string", + "Number", + "null", ]; - $directors = self::checkTypes($directors, $types); + $startOffset = self::checkTypes($startOffset, $types); - $this->directors = $directors; + $this->startOffset = $startOffset; } } diff --git a/src/Models/SchemaOrg/ComicIssue.php b/src/Models/SchemaOrg/ComicIssue.php index ffd3a40f..9f0820fa 100644 --- a/src/Models/SchemaOrg/ComicIssue.php +++ b/src/Models/SchemaOrg/ComicIssue.php @@ -17,24 +17,26 @@ public static function getType() public static function fieldList() { $fields = [ - "letterer" => "letterer", + "artist" => "artist", "colorist" => "colorist", - "variantCover" => "variantCover", "inker" => "inker", + "letterer" => "letterer", "penciler" => "penciler", - "artist" => "artist", + "variantCover" => "variantCover", ]; return array_merge(parent::fieldList(), $fields); } /** - * The individual who adds lettering, including speech balloons and sound effects, to artwork. + * 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 $letterer; + protected $artist; /** * The individual who adds color to inked drawings. @@ -45,22 +47,20 @@ public static function fieldList() { protected $colorist; /** - * 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 traces over the pencil drawings in ink after pencils are complete. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $variantCover; + protected $inker; /** - * The individual who traces over the pencil drawings in ink after pencils are complete. + * The individual who adds lettering, including speech balloons and sound effects, to artwork. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $inker; + protected $letterer; /** * The individual who draws the primary narrative artwork. @@ -71,38 +71,38 @@ 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 */ - public function getLetterer() + public function getArtist() { - return $this->letterer; + return $this->artist; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $letterer + * @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 setLetterer($letterer) + public function setArtist($artist) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $letterer = self::checkTypes($letterer, $types); + $artist = self::checkTypes($artist, $types); - $this->letterer = $letterer; + $this->artist = $artist; } /** @@ -131,52 +131,53 @@ public function setColorist($colorist) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getVariantCover() + public function getInker() { - return $this->variantCover; + return $this->inker; } /** - * @param string $variantCover + * @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 setVariantCover($variantCover) + public function setInker($inker) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $variantCover = self::checkTypes($variantCover, $types); + $inker = self::checkTypes($inker, $types); - $this->variantCover = $variantCover; + $this->inker = $inker; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getInker() + public function getLetterer() { - return $this->inker; + return $this->letterer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $inker + * @param \OpenActive\Models\SchemaOrg\Person|string $letterer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInker($inker) + public function setLetterer($letterer) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $inker = self::checkTypes($inker, $types); + $letterer = self::checkTypes($letterer, $types); - $this->inker = $inker; + $this->letterer = $letterer; } /** @@ -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..5ae4e4f0 100644 --- a/src/Models/SchemaOrg/ComicStory.php +++ b/src/Models/SchemaOrg/ComicStory.php @@ -17,23 +17,25 @@ public static function getType() public static function fieldList() { $fields = [ - "letterer" => "letterer", + "artist" => "artist", "colorist" => "colorist", "inker" => "inker", + "letterer" => "letterer", "penciler" => "penciler", - "artist" => "artist", ]; return array_merge(parent::fieldList(), $fields); } /** - * The individual who adds lettering, including speech balloons and sound effects, to artwork. + * 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 $letterer; + protected $artist; /** * The individual who adds color to inked drawings. @@ -52,46 +54,44 @@ public static function fieldList() { protected $inker; /** - * The individual who draws the primary narrative artwork. + * The individual who adds lettering, including speech balloons and sound effects, to artwork. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $penciler; + protected $letterer; /** - * The primary artist for a work - * in a medium other than pencils or digital line art--for example, if the - * primary artwork is done in watercolors or digital paints. + * The individual who draws the primary narrative artwork. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $artist; + protected $penciler; /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getLetterer() + public function getArtist() { - return $this->letterer; + return $this->artist; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $letterer + * @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 setLetterer($letterer) + public function setArtist($artist) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $letterer = self::checkTypes($letterer, $types); + $artist = self::checkTypes($artist, $types); - $this->letterer = $letterer; + $this->artist = $artist; } /** @@ -147,51 +147,51 @@ public function setInker($inker) /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getPenciler() + public function getLetterer() { - return $this->penciler; + return $this->letterer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $penciler + * @param \OpenActive\Models\SchemaOrg\Person|string $letterer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPenciler($penciler) + public function setLetterer($letterer) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $penciler = self::checkTypes($penciler, $types); + $letterer = self::checkTypes($letterer, $types); - $this->penciler = $penciler; + $this->letterer = $letterer; } /** * @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..61cf929d 100644 --- a/src/Models/SchemaOrg/Comment.php +++ b/src/Models/SchemaOrg/Comment.php @@ -17,8 +17,9 @@ public static function getType() public static function fieldList() { $fields = [ - "parentItem" => "parentItem", "downvoteCount" => "downvoteCount", + "parentItem" => "parentItem", + "sharedContent" => "sharedContent", "upvoteCount" => "upvoteCount", ]; @@ -26,20 +27,28 @@ public static function fieldList() { } /** - * The parent of a question, answer or item in general. + * The number of downvotes this question, answer or comment has received from the community. + * + * + * @var int|null + */ + protected $downvoteCount; + + /** + * 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\Comment|\OpenActive\Models\SchemaOrg\CreativeWork|string */ protected $parentItem; /** - * The number of downvotes this question, answer or comment has received from the community. + * A CreativeWork such as an image, video, or audio clip shared as part of this posting. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $downvoteCount; + protected $sharedContent; /** * The number of upvotes this question, answer or comment has received from the community. @@ -50,7 +59,32 @@ public static function fieldList() { protected $upvoteCount; /** - * @return \OpenActive\Models\SchemaOrg\Comment|string + * @return int|null + */ + public function getDownvoteCount() + { + return $this->downvoteCount; + } + + /** + * @param int|null $downvoteCount + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDownvoteCount($downvoteCount) + { + $types = [ + "int", + "null", + ]; + + $downvoteCount = self::checkTypes($downvoteCount, $types); + + $this->downvoteCount = $downvoteCount; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\CreativeWork|string */ public function getParentItem() { @@ -58,7 +92,7 @@ public function getParentItem() } /** - * @param \OpenActive\Models\SchemaOrg\Comment|string $parentItem + * @param \OpenActive\Models\SchemaOrg\Comment|\OpenActive\Models\SchemaOrg\CreativeWork|string $parentItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -66,6 +100,7 @@ public function setParentItem($parentItem) { $types = [ "\OpenActive\Models\SchemaOrg\Comment", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; @@ -75,28 +110,28 @@ public function setParentItem($parentItem) } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getDownvoteCount() + public function getSharedContent() { - return $this->downvoteCount; + return $this->sharedContent; } /** - * @param int|null $downvoteCount + * @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 setDownvoteCount($downvoteCount) + public function setSharedContent($sharedContent) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", ]; - $downvoteCount = self::checkTypes($downvoteCount, $types); + $sharedContent = self::checkTypes($sharedContent, $types); - $this->downvoteCount = $downvoteCount; + $this->sharedContent = $sharedContent; } /** diff --git a/src/Models/SchemaOrg/CommunicateAction.php b/src/Models/SchemaOrg/CommunicateAction.php index 91f19d19..4f1ee0a0 100644 --- a/src/Models/SchemaOrg/CommunicateAction.php +++ b/src/Models/SchemaOrg/CommunicateAction.php @@ -17,28 +17,28 @@ public static function getType() public static function fieldList() { $fields = [ - "recipient" => "recipient", + "about" => "about", "inLanguage" => "inLanguage", "language" => "language", - "about" => "about", + "recipient" => "recipient", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of participant. The participant who is at the receiving end of the action. + * The subject matter of an object. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $recipient; + protected $about; /** * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\Language|string */ protected $inLanguage; @@ -51,43 +51,40 @@ public static function fieldList() { protected $language; /** - * The subject matter of the content. + * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $about; + protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getRecipient() + public function getAbout() { - return $this->recipient; + return $this->about; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Thing|string $about * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipient($recipient) + public function setAbout($about) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $recipient = self::checkTypes($recipient, $types); + $about = self::checkTypes($about, $types); - $this->recipient = $recipient; + $this->about = $about; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\Language|string */ public function getInLanguage() { @@ -95,15 +92,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); @@ -137,28 +134,31 @@ public function setLanguage($language) } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAbout() + public function getRecipient() { - return $this->about; + return $this->recipient; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $about + * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAbout($about) + public function setRecipient($recipient) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $about = self::checkTypes($about, $types); + $recipient = self::checkTypes($recipient, $types); - $this->about = $about; + $this->recipient = $recipient; } } diff --git a/src/Models/SchemaOrg/CompoundPriceSpecification.php b/src/Models/SchemaOrg/CompoundPriceSpecification.php index a2905419..a4db0896 100644 --- a/src/Models/SchemaOrg/CompoundPriceSpecification.php +++ b/src/Models/SchemaOrg/CompoundPriceSpecification.php @@ -28,12 +28,12 @@ public static function fieldList() { * This property links to all [[UnitPriceSpecification]] nodes that apply in parallel for the [[CompoundPriceSpecification]] node. * * - * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ protected $priceComponent; /** - * 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. + * 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, a UN/EDIFACT 5387 code, or as a free form text string for price types that are not already predefined in PriceTypeEnumeration. * * * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null @@ -41,7 +41,7 @@ public static function fieldList() { protected $priceType; /** - * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ public function getPriceComponent() { @@ -49,14 +49,14 @@ public function getPriceComponent() } /** - * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $priceComponent + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceComponent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setPriceComponent($priceComponent) { $types = [ - "\OpenActive\Models\SchemaOrg\UnitPriceSpecification", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; diff --git a/src/Models/SchemaOrg/ConferenceEvent.php b/src/Models/SchemaOrg/ConferenceEvent.php new file mode 100644 index 00000000..bd4e8368 --- /dev/null +++ b/src/Models/SchemaOrg/ConferenceEvent.php @@ -0,0 +1,25 @@ + "constraintProperty", + "numConstraints" => "numConstraints", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * 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; + + /** + * 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; + + /** + * @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; + } + + /** + * @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; + } + +} diff --git a/src/Models/SchemaOrg/ConsumeAction.php b/src/Models/SchemaOrg/ConsumeAction.php index d13f0fa1..b0a94b5b 100644 --- a/src/Models/SchemaOrg/ConsumeAction.php +++ b/src/Models/SchemaOrg/ConsumeAction.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "expectsAcceptanceOf" => "expectsAcceptanceOf", "actionAccessibilityRequirement" => "actionAccessibilityRequirement", + "expectsAcceptanceOf" => "expectsAcceptanceOf", ]; return array_merge(parent::fieldList(), $fields); } /** - * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. + * 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\Offer|string + * @var \OpenActive\Models\SchemaOrg\ActionAccessSpecification|string */ - protected $expectsAcceptanceOf; + protected $actionAccessibilityRequirement; /** - * 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. + * 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\ActionAccessSpecification|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $actionAccessibilityRequirement; + protected $expectsAcceptanceOf; /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Models\SchemaOrg\ActionAccessSpecification|string */ - public function getExpectsAcceptanceOf() + public function getActionAccessibilityRequirement() { - return $this->expectsAcceptanceOf; + return $this->actionAccessibilityRequirement; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf + * @param \OpenActive\Models\SchemaOrg\ActionAccessSpecification|string $actionAccessibilityRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpectsAcceptanceOf($expectsAcceptanceOf) + public function setActionAccessibilityRequirement($actionAccessibilityRequirement) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\ActionAccessSpecification", "string", ]; - $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types); + $actionAccessibilityRequirement = self::checkTypes($actionAccessibilityRequirement, $types); - $this->expectsAcceptanceOf = $expectsAcceptanceOf; + $this->actionAccessibilityRequirement = $actionAccessibilityRequirement; } /** - * @return \OpenActive\Models\SchemaOrg\ActionAccessSpecification|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getActionAccessibilityRequirement() + public function getExpectsAcceptanceOf() { - return $this->actionAccessibilityRequirement; + return $this->expectsAcceptanceOf; } /** - * @param \OpenActive\Models\SchemaOrg\ActionAccessSpecification|string $actionAccessibilityRequirement + * @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 setActionAccessibilityRequirement($actionAccessibilityRequirement) + public function setExpectsAcceptanceOf($expectsAcceptanceOf) { $types = [ - "\OpenActive\Models\SchemaOrg\ActionAccessSpecification", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $actionAccessibilityRequirement = self::checkTypes($actionAccessibilityRequirement, $types); + $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types); - $this->actionAccessibilityRequirement = $actionAccessibilityRequirement; + $this->expectsAcceptanceOf = $expectsAcceptanceOf; } } diff --git a/src/Models/SchemaOrg/ContactPoint.php b/src/Models/SchemaOrg/ContactPoint.php index 8541bcfa..962e526f 100644 --- a/src/Models/SchemaOrg/ContactPoint.php +++ b/src/Models/SchemaOrg/ContactPoint.php @@ -17,44 +17,36 @@ public static function getType() public static function fieldList() { $fields = [ - "telephone" => "telephone", - "hoursAvailable" => "hoursAvailable", - "email" => "email", - "contactOption" => "contactOption", - "availableLanguage" => "availableLanguage", - "serviceArea" => "serviceArea", "areaServed" => "areaServed", + "availableLanguage" => "availableLanguage", + "contactOption" => "contactOption", "contactType" => "contactType", - "productSupported" => "productSupported", + "email" => "email", "faxNumber" => "faxNumber", + "hoursAvailable" => "hoursAvailable", + "productSupported" => "productSupported", + "serviceArea" => "serviceArea", + "telephone" => "telephone", ]; return array_merge(parent::fieldList(), $fields); } /** - * The telephone number. - * - * - * @var string - */ - protected $telephone; - - /** - * The hours during which this service or contact is available. + * The geographic area where a service or offered item is provided. * * - * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - protected $hoursAvailable; + protected $areaServed; /** - * Email address. + * 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 \OpenActive\Models\SchemaOrg\Language|string */ - protected $email; + protected $availableLanguage; /** * An option available on this contact point (e.g. a toll-free number or support for hearing-impaired callers). @@ -65,124 +57,111 @@ public static function fieldList() { protected $contactOption; /** - * 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 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|\OpenActive\Models\SchemaOrg\Language + * @var string */ - protected $availableLanguage; + protected $contactType; /** - * The geographic area where the service is provided. + * Email address. * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $serviceArea; + protected $email; /** - * The geographic area where a service or offered item is provided. + * The fax number. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var string */ - protected $areaServed; + protected $faxNumber; /** - * 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 hours during which this service or contact is available. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - protected $contactType; + protected $hoursAvailable; /** * 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|\OpenActive\Models\SchemaOrg\Product + * @var \OpenActive\Models\SchemaOrg\Product|string */ protected $productSupported; /** - * The fax number. + * The geographic area where the service is provided. * * - * @var string - */ - protected $faxNumber; - - /** - * @return string + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getTelephone() - { - return $this->telephone; - } + protected $serviceArea; /** - * @param string $telephone - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The telephone number. + * + * + * @var string */ - public function setTelephone($telephone) - { - $types = [ - "string", - ]; - - $telephone = self::checkTypes($telephone, $types); - - $this->telephone = $telephone; - } + protected $telephone; /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getHoursAvailable() + public function getAreaServed() { - return $this->hoursAvailable; + return $this->areaServed; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $areaServed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHoursAvailable($hoursAvailable) + public function setAreaServed($areaServed) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $hoursAvailable = self::checkTypes($hoursAvailable, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->hoursAvailable = $hoursAvailable; + $this->areaServed = $areaServed; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getEmail() + public function getAvailableLanguage() { - return $this->email; + return $this->availableLanguage; } /** - * @param string $email + * @param \OpenActive\Models\SchemaOrg\Language|string $availableLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmail($email) + public function setAvailableLanguage($availableLanguage) { $types = [ + "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $email = self::checkTypes($email, $types); + $availableLanguage = self::checkTypes($availableLanguage, $types); - $this->email = $email; + $this->availableLanguage = $availableLanguage; } /** @@ -211,110 +190,104 @@ public function setContactOption($contactOption) } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return string */ - public function getAvailableLanguage() + public function getContactType() { - return $this->availableLanguage; + return $this->contactType; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage + * @param string $contactType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableLanguage($availableLanguage) + public function setContactType($contactType) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $availableLanguage = self::checkTypes($availableLanguage, $types); + $contactType = self::checkTypes($contactType, $types); - $this->availableLanguage = $availableLanguage; + $this->contactType = $contactType; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getServiceArea() + public function getEmail() { - return $this->serviceArea; + return $this->email; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea + * @param string $email * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceArea($serviceArea) + public function setEmail($email) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $serviceArea = self::checkTypes($serviceArea, $types); + $email = self::checkTypes($email, $types); - $this->serviceArea = $serviceArea; + $this->email = $email; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return string */ - public function getAreaServed() + public function getFaxNumber() { - return $this->areaServed; + return $this->faxNumber; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setFaxNumber($faxNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $areaServed = self::checkTypes($areaServed, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->areaServed = $areaServed; + $this->faxNumber = $faxNumber; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - public function getContactType() + public function getHoursAvailable() { - return $this->contactType; + return $this->hoursAvailable; } /** - * @param string $contactType + * @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 setContactType($contactType) + public function setHoursAvailable($hoursAvailable) { $types = [ + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $contactType = self::checkTypes($contactType, $types); + $hoursAvailable = self::checkTypes($hoursAvailable, $types); - $this->contactType = $contactType; + $this->hoursAvailable = $hoursAvailable; } /** - * @return string|\OpenActive\Models\SchemaOrg\Product + * @return \OpenActive\Models\SchemaOrg\Product|string */ public function getProductSupported() { @@ -322,15 +295,15 @@ public function getProductSupported() } /** - * @param string|\OpenActive\Models\SchemaOrg\Product $productSupported + * @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 setProductSupported($productSupported) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\Product", + "string", ]; $productSupported = self::checkTypes($productSupported, $types); @@ -338,28 +311,55 @@ public function setProductSupported($productSupported) $this->productSupported = $productSupported; } + /** + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string + */ + public function getServiceArea() + { + return $this->serviceArea; + } + + /** + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $serviceArea + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setServiceArea($serviceArea) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", + "string", + ]; + + $serviceArea = self::checkTypes($serviceArea, $types); + + $this->serviceArea = $serviceArea; + } + /** * @return string */ - public function getFaxNumber() + public function getTelephone() { - return $this->faxNumber; + return $this->telephone; } /** - * @param string $faxNumber + * @param string $telephone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFaxNumber($faxNumber) + public function setTelephone($telephone) { $types = [ "string", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $telephone = self::checkTypes($telephone, $types); - $this->faxNumber = $faxNumber; + $this->telephone = $telephone; } } diff --git a/src/Models/SchemaOrg/CookAction.php b/src/Models/SchemaOrg/CookAction.php index 0c80482f..0c65ef98 100644 --- a/src/Models/SchemaOrg/CookAction.php +++ b/src/Models/SchemaOrg/CookAction.php @@ -17,27 +17,19 @@ 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. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string + * @var \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string */ protected $foodEstablishment; @@ -50,32 +42,15 @@ 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 + * @return \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string */ public function getFoodEstablishment() { @@ -83,15 +58,15 @@ public function getFoodEstablishment() } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string $foodEstablishment + * @param \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string $foodEstablishment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setFoodEstablishment($foodEstablishment) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\FoodEstablishment", + "\OpenActive\Models\SchemaOrg\Place", "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/Cooperative.php b/src/Models/SchemaOrg/Cooperative.php new file mode 100644 index 00000000..2901ecb9 --- /dev/null +++ b/src/Models/SchemaOrg/Cooperative.php @@ -0,0 +1,25 @@ + "availableLanguage", + "courseCode" => "courseCode", "coursePrerequisites" => "coursePrerequisites", "educationalCredentialAwarded" => "educationalCredentialAwarded", + "financialAidEligible" => "financialAidEligible", + "hasCourseInstance" => "hasCourseInstance", "numberOfCredits" => "numberOfCredits", "occupationalCredentialAwarded" => "occupationalCredentialAwarded", - "courseCode" => "courseCode", - "hasCourseInstance" => "hasCourseInstance", + "syllabusSections" => "syllabusSections", + "totalHistoricalEnrollment" => "totalHistoricalEnrollment", ]; return array_merge(parent::fieldList(), $fields); } + /** + * 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\Language|string + */ + protected $availableLanguage; + + /** + * The identifier for the [[Course]] used by the course [[provider]] (e.g. CS101 or 6.001). + * + * + * @var string + */ + protected $courseCode; + /** * 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; @@ -40,10 +60,26 @@ public static function fieldList() { * 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\EducationalOccupationalCredential + * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ protected $educationalCredentialAwarded; + /** + * A financial aid type or program which students may use to pay for tuition or fees associated with the program. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + */ + protected $financialAidEligible; + + /** + * An offering of the course at a specific time and place or through specific media or mode of study or to a specific section of students. + * + * + * @var \OpenActive\Models\SchemaOrg\CourseInstance|string + */ + protected $hasCourseInstance; + /** * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram. * @@ -61,23 +97,72 @@ public static function fieldList() { protected $occupationalCredentialAwarded; /** - * The identifier for the [[Course]] used by the course [[provider]] (e.g. CS101 or 6.001). + * Indicates (typically several) Syllabus entities that lay out what each section of the overall course will cover. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Syllabus|string */ - protected $courseCode; + protected $syllabusSections; /** - * 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. + * The total number of students that have enrolled in the history of the course. * * - * @var \OpenActive\Models\SchemaOrg\CourseInstance|string + * @var int|null */ - protected $hasCourseInstance; + protected $totalHistoricalEnrollment; + + /** + * @return \OpenActive\Models\SchemaOrg\Language|string + */ + public function getAvailableLanguage() + { + return $this->availableLanguage; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Language|string $availableLanguage + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAvailableLanguage($availableLanguage) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Language", + "string", + ]; + + $availableLanguage = self::checkTypes($availableLanguage, $types); + + $this->availableLanguage = $availableLanguage; + } /** - * @return string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course + * @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 \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|string */ public function getCoursePrerequisites() { @@ -85,16 +170,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,7 +188,7 @@ public function setCoursePrerequisites($coursePrerequisites) } /** - * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential + * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ public function getEducationalCredentialAwarded() { @@ -111,15 +196,15 @@ public function getEducationalCredentialAwarded() } /** - * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationalCredentialAwarded * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setEducationalCredentialAwarded($educationalCredentialAwarded) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "string", ]; $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types); @@ -127,6 +212,56 @@ public function setEducationalCredentialAwarded($educationalCredentialAwarded) $this->educationalCredentialAwarded = $educationalCredentialAwarded; } + /** + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + */ + public function getFinancialAidEligible() + { + return $this->financialAidEligible; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $financialAidEligible + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setFinancialAidEligible($financialAidEligible) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", + ]; + + $financialAidEligible = self::checkTypes($financialAidEligible, $types); + + $this->financialAidEligible = $financialAidEligible; + } + + /** + * @return \OpenActive\Models\SchemaOrg\CourseInstance|string + */ + public function getHasCourseInstance() + { + return $this->hasCourseInstance; + } + + /** + * @param \OpenActive\Models\SchemaOrg\CourseInstance|string $hasCourseInstance + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHasCourseInstance($hasCourseInstance) + { + $types = [ + "\OpenActive\Models\SchemaOrg\CourseInstance", + "string", + ]; + + $hasCourseInstance = self::checkTypes($hasCourseInstance, $types); + + $this->hasCourseInstance = $hasCourseInstance; + } + /** * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ @@ -180,52 +315,53 @@ public function setOccupationalCredentialAwarded($occupationalCredentialAwarded) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Syllabus|string */ - public function getCourseCode() + public function getSyllabusSections() { - return $this->courseCode; + return $this->syllabusSections; } /** - * @param string $courseCode + * @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 setCourseCode($courseCode) + public function setSyllabusSections($syllabusSections) { $types = [ + "\OpenActive\Models\SchemaOrg\Syllabus", "string", ]; - $courseCode = self::checkTypes($courseCode, $types); + $syllabusSections = self::checkTypes($syllabusSections, $types); - $this->courseCode = $courseCode; + $this->syllabusSections = $syllabusSections; } /** - * @return \OpenActive\Models\SchemaOrg\CourseInstance|string + * @return int|null */ - public function getHasCourseInstance() + public function getTotalHistoricalEnrollment() { - return $this->hasCourseInstance; + return $this->totalHistoricalEnrollment; } /** - * @param \OpenActive\Models\SchemaOrg\CourseInstance|string $hasCourseInstance + * @param int|null $totalHistoricalEnrollment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasCourseInstance($hasCourseInstance) + public function setTotalHistoricalEnrollment($totalHistoricalEnrollment) { $types = [ - "\OpenActive\Models\SchemaOrg\CourseInstance", - "string", + "int", + "null", ]; - $hasCourseInstance = self::checkTypes($hasCourseInstance, $types); + $totalHistoricalEnrollment = self::checkTypes($totalHistoricalEnrollment, $types); - $this->hasCourseInstance = $hasCourseInstance; + $this->totalHistoricalEnrollment = $totalHistoricalEnrollment; } } diff --git a/src/Models/SchemaOrg/CourseInstance.php b/src/Models/SchemaOrg/CourseInstance.php index 5f6f9db7..e6819ce5 100644 --- a/src/Models/SchemaOrg/CourseInstance.php +++ b/src/Models/SchemaOrg/CourseInstance.php @@ -17,21 +17,30 @@ public static function getType() public static function fieldList() { $fields = [ - "instructor" => "instructor", - "courseWorkload" => "courseWorkload", "courseMode" => "courseMode", + "courseSchedule" => "courseSchedule", + "courseWorkload" => "courseWorkload", + "instructor" => "instructor", ]; return array_merge(parent::fieldList(), $fields); } /** - * A person assigned to instruct or provide instructional assistance for the [[CourseInstance]]. + * 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 \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $instructor; + protected $courseMode; + + /** + * Represents the length and pace of a course, expressed as a [[Schedule]]. + * + * + * @var \OpenActive\Models\SchemaOrg\Schedule|string + */ + protected $courseSchedule; /** * 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". @@ -42,36 +51,60 @@ public static function fieldList() { protected $courseWorkload; /** - * The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or as a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous ). + * A person assigned to instruct or provide instructional assistance for the [[CourseInstance]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $courseMode; + protected $instructor; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getInstructor() + public function getCourseMode() { - return $this->instructor; + return $this->courseMode; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $instructor + * @param string $courseMode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInstructor($instructor) + public function setCourseMode($courseMode) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $instructor = self::checkTypes($instructor, $types); + $courseMode = self::checkTypes($courseMode, $types); - $this->instructor = $instructor; + $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; } /** @@ -99,27 +132,28 @@ public function setCourseWorkload($courseWorkload) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getCourseMode() + public function getInstructor() { - return $this->courseMode; + return $this->instructor; } /** - * @param string $courseMode + * @param \OpenActive\Models\SchemaOrg\Person|string $instructor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCourseMode($courseMode) + public function setInstructor($instructor) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $courseMode = self::checkTypes($courseMode, $types); + $instructor = self::checkTypes($instructor, $types); - $this->courseMode = $courseMode; + $this->instructor = $instructor; } } diff --git a/src/Models/SchemaOrg/CreativeWork.php b/src/Models/SchemaOrg/CreativeWork.php index bf378797..761a2088 100644 --- a/src/Models/SchemaOrg/CreativeWork.php +++ b/src/Models/SchemaOrg/CreativeWork.php @@ -17,457 +17,557 @@ public static function getType() public static function fieldList() { $fields = [ - "teaches" => "teaches", - "educationalLevel" => "educationalLevel", + "about" => "about", "abstract" => "abstract", - "creativeWorkStatus" => "creativeWorkStatus", - "expires" => "expires", - "contentReferenceTime" => "contentReferenceTime", - "material" => "material", - "review" => "review", - "fileFormat" => "fileFormat", - "text" => "text", - "translator" => "translator", - "award" => "award", + "accessMode" => "accessMode", + "accessModeSufficient" => "accessModeSufficient", + "accessibilityAPI" => "accessibilityAPI", + "accessibilityControl" => "accessibilityControl", + "accessibilityFeature" => "accessibilityFeature", + "accessibilityHazard" => "accessibilityHazard", + "accessibilitySummary" => "accessibilitySummary", + "accountablePerson" => "accountablePerson", + "acquireLicensePage" => "acquireLicensePage", + "aggregateRating" => "aggregateRating", + "alternativeHeadline" => "alternativeHeadline", + "archivedAt" => "archivedAt", "assesses" => "assesses", + "associatedMedia" => "associatedMedia", + "audience" => "audience", + "audio" => "audio", + "author" => "author", + "award" => "award", + "awards" => "awards", + "character" => "character", + "citation" => "citation", + "comment" => "comment", + "commentCount" => "commentCount", + "conditionsOfAccess" => "conditionsOfAccess", + "contentLocation" => "contentLocation", + "contentRating" => "contentRating", + "contentReferenceTime" => "contentReferenceTime", + "contributor" => "contributor", + "copyrightHolder" => "copyrightHolder", "copyrightNotice" => "copyrightNotice", - "schemaVersion" => "schemaVersion", + "copyrightYear" => "copyrightYear", + "correction" => "correction", "countryOfOrigin" => "countryOfOrigin", - "pattern" => "pattern", - "accountablePerson" => "accountablePerson", - "funding" => "funding", + "creativeWorkStatus" => "creativeWorkStatus", + "creator" => "creator", + "creditText" => "creditText", + "dateCreated" => "dateCreated", + "dateModified" => "dateModified", + "datePublished" => "datePublished", + "digitalSourceType" => "digitalSourceType", + "discussionUrl" => "discussionUrl", + "displayLocation" => "displayLocation", + "editEIDR" => "editEIDR", + "editor" => "editor", + "educationalAlignment" => "educationalAlignment", + "educationalLevel" => "educationalLevel", "educationalUse" => "educationalUse", + "encoding" => "encoding", + "encodingFormat" => "encodingFormat", + "encodings" => "encodings", + "exampleOfWork" => "exampleOfWork", + "expires" => "expires", + "fileFormat" => "fileFormat", + "funder" => "funder", + "funding" => "funding", "genre" => "genre", + "hasPart" => "hasPart", + "headline" => "headline", + "inLanguage" => "inLanguage", + "interactionStatistic" => "interactionStatistic", + "interactivityType" => "interactivityType", + "interpretedAsClaim" => "interpretedAsClaim", + "isAccessibleForFree" => "isAccessibleForFree", + "isBasedOn" => "isBasedOn", + "isBasedOnUrl" => "isBasedOnUrl", + "isFamilyFriendly" => "isFamilyFriendly", + "isPartOf" => "isPartOf", "keywords" => "keywords", - "position" => "position", - "accessibilityHazard" => "accessibilityHazard", - "alternativeHeadline" => "alternativeHeadline", - "audience" => "audience", - "offers" => "offers", + "learningResourceType" => "learningResourceType", + "license" => "license", "locationCreated" => "locationCreated", - "associatedMedia" => "associatedMedia", - "materialExtent" => "materialExtent", "mainEntity" => "mainEntity", - "copyrightHolder" => "copyrightHolder", - "awards" => "awards", - "contentLocation" => "contentLocation", - "sdDatePublished" => "sdDatePublished", + "maintainer" => "maintainer", + "material" => "material", + "materialExtent" => "materialExtent", + "mentions" => "mentions", + "offers" => "offers", + "pattern" => "pattern", + "position" => "position", "producer" => "producer", - "spatial" => "spatial", - "publisher" => "publisher", - "sourceOrganization" => "sourceOrganization", - "character" => "character", - "funder" => "funder", - "exampleOfWork" => "exampleOfWork", - "usageInfo" => "usageInfo", "provider" => "provider", - "sdPublisher" => "sdPublisher", - "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", + "publisher" => "publisher", + "publisherImprint" => "publisherImprint", "publishingPrinciples" => "publishingPrinciples", - "discussionUrl" => "discussionUrl", - "releasedEvent" => "releasedEvent", - "dateCreated" => "dateCreated", - "workTranslation" => "workTranslation", - "editor" => "editor", - "creditText" => "creditText", "recordedAt" => "recordedAt", - "editEIDR" => "editEIDR", - "author" => "author", - "dateModified" => "dateModified", - "sponsor" => "sponsor", - "accessibilitySummary" => "accessibilitySummary", - "encodingFormat" => "encodingFormat", - "maintainer" => "maintainer", - "educationalAlignment" => "educationalAlignment", - "acquireLicensePage" => "acquireLicensePage", - "isAccessibleForFree" => "isAccessibleForFree", - "datePublished" => "datePublished", - "spatialCoverage" => "spatialCoverage", + "releasedEvent" => "releasedEvent", + "review" => "review", + "reviews" => "reviews", + "schemaVersion" => "schemaVersion", + "sdDatePublished" => "sdDatePublished", "sdLicense" => "sdLicense", - "conditionsOfAccess" => "conditionsOfAccess", - "correction" => "correction", - "contentRating" => "contentRating", + "sdPublisher" => "sdPublisher", "size" => "size", - "isPartOf" => "isPartOf", + "sourceOrganization" => "sourceOrganization", + "spatial" => "spatial", + "spatialCoverage" => "spatialCoverage", + "sponsor" => "sponsor", + "teaches" => "teaches", "temporal" => "temporal", + "temporalCoverage" => "temporalCoverage", + "text" => "text", + "thumbnail" => "thumbnail", "thumbnailUrl" => "thumbnailUrl", - "inLanguage" => "inLanguage", - "license" => "license", - "creator" => "creator", - "reviews" => "reviews", - "about" => "about", - "isFamilyFriendly" => "isFamilyFriendly", - "headline" => "headline", - "accessibilityAPI" => "accessibilityAPI", - "publisherImprint" => "publisherImprint", - "isBasedOnUrl" => "isBasedOnUrl", - "encodings" => "encodings", - "interpretedAsClaim" => "interpretedAsClaim", - "accessibilityControl" => "accessibilityControl", - "citation" => "citation", + "timeRequired" => "timeRequired", + "translationOfWork" => "translationOfWork", + "translator" => "translator", + "typicalAgeRange" => "typicalAgeRange", + "usageInfo" => "usageInfo", "version" => "version", - "archivedAt" => "archivedAt", - "learningResourceType" => "learningResourceType", - "encoding" => "encoding", - "audio" => "audio", - "mentions" => "mentions", - "accessModeSufficient" => "accessModeSufficient", - "hasPart" => "hasPart", - "temporalCoverage" => "temporalCoverage", - "contributor" => "contributor", "video" => "video", + "wordCount" => "wordCount", + "workExample" => "workExample", + "workTranslation" => "workTranslation", ]; 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 subject matter of an object. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $teaches; + protected $about; /** - * 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. + * An abstract is a short description that summarizes a [[CreativeWork]]. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var string */ - protected $educationalLevel; + protected $abstract; /** - * An abstract is a short description that summarizes a [[CreativeWork]]. + * The human sensory perceptual system or cognitive faculty through which a person may process or perceive the intellectual content of a resource, not including any adaptations of the content (e.g., text alternatives for images). Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary). * * * @var string */ - protected $abstract; + protected $accessMode; /** - * 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 list of single or combined access modes that are sufficient to understand all the intellectual content of a resource, including any adaptations. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary). * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\ItemList|string */ - protected $creativeWorkStatus; + protected $accessModeSufficient; /** - * 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. + * 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 Date|null + * @var string */ - protected $expires; + protected $accessibilityAPI; /** - * The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event. + * 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 DateTime|null + * @var string */ - protected $contentReferenceTime; + protected $accessibilityControl; /** - * A material that something is made from, e.g. leather, wool, cotton, paper. + * 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\Product + * @var string */ - protected $material; + protected $accessibilityFeature; /** - * A review of the item. + * 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\Review|string + * @var string */ - protected $review; + protected $accessibilityHazard; /** - * 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. + * 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 string */ - protected $fileFormat; + protected $accessibilitySummary; /** - * The textual content of this CreativeWork. + * Specifies the Person that is legally accountable for the CreativeWork. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $text; + protected $accountablePerson; /** - * 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. + * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $translator; + protected $acquireLicensePage; /** - * An award won by or for this item. + * The overall rating, based on a collection of reviews or ratings, of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + */ + protected $aggregateRating; + + /** + * A secondary title of the CreativeWork. * * * @var string */ - protected $award; + protected $alternativeHeadline; + + /** + * 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 string|\OpenActive\Models\SchemaOrg\WebPage + */ + protected $archivedAt; /** * 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 $assesses; /** - * Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work. + * A media object that encodes this CreativeWork. This property is a synonym for encoding. + * + * + * @var \OpenActive\Models\SchemaOrg\MediaObject|string + */ + protected $associatedMedia; + + /** + * An intended audience, i.e. a group for whom something was created. + * + * + * @var \OpenActive\Models\SchemaOrg\Audience|string + */ + protected $audience; + + /** + * An embedded audio object. + * + * + * @var \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\MusicRecording|string + */ + protected $audio; + + /** + * 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\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $author; + + /** + * An award won by or for this item. * * * @var string */ - protected $copyrightNotice; + protected $award; /** - * 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. + * Awards won by or for this item. * * * @var string */ - protected $schemaVersion; + protected $awards; /** - * 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. + * Fictional person connected with a creative work. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $countryOfOrigin; + protected $character; /** - * 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 citation or reference to another creative work, such as another publication, web page, scholarly article, etc. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $pattern; + protected $citation; /** - * Specifies the Person that is legally accountable for the CreativeWork. + * Comments, typically from users. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Comment|string */ - protected $accountablePerson; + protected $comment; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere. * * - * @var \OpenActive\Models\SchemaOrg\Grant|string + * @var int|null + */ + protected $commentCount; + + /** + * Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language.\n\nFor example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". + * + * + * @var string + */ + protected $conditionsOfAccess; + + /** + * The location depicted or described in the content. For example, the location in a photograph or painting. + * + * + * @var \OpenActive\Models\SchemaOrg\Place|string + */ + protected $contentLocation; + + /** + * Official rating of a piece of content—for example, 'MPAA PG-13'. + * + * + * @var \OpenActive\Models\SchemaOrg\Rating|string + */ + protected $contentRating; + + /** + * The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event. + * + * + * @var DateTime|null + */ + protected $contentReferenceTime; + + /** + * A secondary contributor to the CreativeWork or Event. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $funding; + protected $contributor; /** - * The purpose of a work in the context of education; for example, 'assignment', 'group work'. + * The party holding the legal copyright to the CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $educationalUse; + protected $copyrightHolder; /** - * Genre of the creative work, broadcast channel or group. + * Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work. * * * @var string */ - protected $genre; + protected $copyrightNotice; /** - * 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 year during which the claimed copyright for the CreativeWork was first asserted. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var Number|null */ - protected $keywords; + protected $copyrightYear; /** - * The position of an item in a series or sequence of items. + * Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document. * * - * @var string|int|null + * @var \OpenActive\Models\SchemaOrg\CorrectionComment|string */ - protected $position; + protected $correction; /** - * 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). + * 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 string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $accessibilityHazard; + protected $countryOfOrigin; /** - * A secondary title of the CreativeWork. + * 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 + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $alternativeHeadline; + protected $creativeWorkStatus; /** - * An intended audience, i.e. a group for whom something was created. + * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $audience; + protected $creator; /** - * 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. + * The date on which the CreativeWork was created or the item was added to a DataFeed. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var Date|DateTime|null */ - protected $locationCreated; + protected $dateCreated; /** - * A media object that encodes this CreativeWork. This property is a synonym for encoding. + * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed. * * - * @var \OpenActive\Models\SchemaOrg\MediaObject|string + * @var Date|DateTime|null */ - protected $associatedMedia; + protected $dateModified; /** - * [object Object] + * Date of first publication or broadcast. For example the date a [[CreativeWork]] was broadcast or a [[Certification]] was issued. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Date|DateTime|null */ - protected $materialExtent; + protected $datePublished; /** - * Indicates the primary entity described in some page or other CreativeWork. + * Indicates an IPTCDigitalSourceEnumeration code indicating the nature of the digital source(s) for some [[CreativeWork]]. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string */ - protected $mainEntity; + protected $digitalSourceType; /** - * 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. + * The location at which an item can be viewed or experienced in-person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $awards; + protected $displayLocation; /** - * The location depicted or described in the content. For example, the location in a photograph or painting. + * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television. + * + * For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3". + * + * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. + * * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $contentLocation; + protected $editEIDR; /** - * Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]] + * Specifies the Person who edited the CreativeWork. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $sdDatePublished; + protected $editor; /** - * The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.). + * 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\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string */ - protected $producer; + protected $educationalAlignment; /** - * The "spatial" property can be used in cases when more specific properties - * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate. + * 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\Place|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $spatial; + protected $educationalLevel; /** - * The publisher of the creative work. + * The purpose of a work in the context of education; for example, 'assignment', 'group work'. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $publisher; + protected $educationalUse; /** - * The Organization on whose behalf the creator was working. + * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $sourceOrganization; + protected $encoding; /** - * Fictional person connected with a creative work. + * 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\Person|string + * @var string */ - protected $character; + protected $encodingFormat; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * A media object that encodes this CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $funder; + protected $encodings; /** * A creative work that this work is an example/instance/realization/derivation of. @@ -478,497 +578,485 @@ public static function fieldList() { protected $exampleOfWork; /** - * The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options. - * - * This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses. + * 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\CreativeWork|string + * @var Date|DateTime|null */ - protected $usageInfo; + protected $expires; /** - * 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. + * 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 \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $provider; + protected $fileFormat; /** - * Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The - * [[sdPublisher]] property helps make such practices more explicit. + * A person or organization that supports (sponsors) something through some kind of financial contribution. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $sdPublisher; + protected $funder; /** - * Comments, typically from users. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Models\SchemaOrg\Comment|string + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $comment; + protected $funding; /** - * 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). + * Genre of the creative work, broadcast channel or group. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $accessibilityFeature; + protected $genre; /** - * A publication event associated with the item. + * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense). * * - * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $publication; + protected $hasPart; /** - * The work that this work has been translated from. e.g. 物种起源 is a translationOf “On the Origin of Species” + * Headline of the article. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string */ - protected $translationOfWork; + protected $headline; /** - * The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'. + * 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 $interactivityType; + protected $inLanguage; /** - * The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere. + * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - protected $commentCount; + protected $interactionStatistic; /** - * 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). + * The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'. * * * @var string */ - protected $accessMode; + protected $interactivityType; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * 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\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\Claim|string */ - protected $aggregateRating; + protected $interpretedAsClaim; /** - * Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. 'PT30M', 'PT1H25M'. + * A flag to signal that the item, event, or place is accessible for free. * * - * @var DateInterval|string|null + * @var bool|null */ - protected $timeRequired; + protected $isAccessibleForFree; /** - * The typical expected age range, e.g. '7-9', '11-'. + * 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 $typicalAgeRange; + protected $isBasedOn; /** - * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html. * * - * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string */ - protected $interactionStatistic; + protected $isBasedOnUrl; /** - * The year during which the claimed copyright for the CreativeWork was first asserted. + * Indicates whether this content is family friendly. * * - * @var Number|null + * @var bool|null */ - protected $copyrightYear; + protected $isFamilyFriendly; /** - * A resource from which this work is derived or from which it is a modification or adaption. + * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $isBasedOn; + protected $isPartOf; /** - * Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook. + * 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\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $workExample; + protected $keywords; /** - * 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 predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $publishingPrinciples; + protected $learningResourceType; /** - * A link to the page containing the comments of the CreativeWork. + * A license document that applies to this content, typically indicated by URL. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $discussionUrl; + protected $license; /** - * The place and time the release was issued, expressed as a PublicationEvent. + * The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $releasedEvent; + protected $locationCreated; /** - * The date on which the CreativeWork was created or the item was added to a DataFeed. + * Indicates the primary entity described in some page or other CreativeWork. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $dateCreated; + protected $mainEntity; /** - * 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. + * 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 \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $workTranslation; + protected $maintainer; /** - * Specifies the Person who edited the CreativeWork. + * A material that something is made from, e.g. leather, wool, cotton, paper. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Product|string */ - protected $editor; + protected $material; /** - * Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work. + * [object Object] * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $creditText; + protected $materialExtent; /** - * The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event. + * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $recordedAt; + protected $mentions; /** - * 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. - * + * 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\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ - protected $editEIDR; + protected $offers; /** - * 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. + * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $author; + protected $pattern; /** - * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed. + * The position of an item in a series or sequence of items. * * - * @var Date|DateTime|null + * @var string|int|null */ - protected $dateModified; + protected $position; /** - * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event. + * The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.). * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $sponsor; + protected $producer; /** - * 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." + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $accessibilitySummary; + protected $provider; /** - * 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. + * A publication event associated with the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string */ - protected $encodingFormat; + protected $publication; /** - * 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 publisher of the article in question. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $maintainer; + protected $publisher; /** - * 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 publishing division which published the comic. * * - * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $educationalAlignment; + protected $publisherImprint; /** - * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item. + * The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]]. + * + * While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. + * * * * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $acquireLicensePage; + protected $publishingPrinciples; /** - * A flag to signal that the item, event, or place is accessible for free. + * The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $isAccessibleForFree; + protected $recordedAt; /** - * Date of first broadcast/publication. + * The place and time the release was issued, expressed as a PublicationEvent. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string */ - protected $datePublished; + protected $releasedEvent; /** - * 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. + * A review of the item. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $spatialCoverage; + protected $review; /** - * A license document that applies to this structured data, typically indicated by URL. + * Review of the item. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $sdLicense; + protected $reviews; /** - * 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 ". + * 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 string */ - protected $conditionsOfAccess; - - /** - * Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document. - * - * - * @var string|\OpenActive\Models\SchemaOrg\CorrectionComment - */ - protected $correction; + protected $schemaVersion; /** - * Official rating of a piece of content—for example,'MPAA PG-13'. + * Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]. * * - * @var string|\OpenActive\Models\SchemaOrg\Rating + * @var Date|null */ - protected $contentRating; + protected $sdDatePublished; /** - * 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. + * A license document that applies to this structured data, typically indicated by URL. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $size; + protected $sdLicense; /** - * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of. + * Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The + * [[sdPublisher]] property helps make such practices more explicit. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $isPartOf; + protected $sdPublisher; /** - * 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 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 DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string */ - protected $temporal; + protected $size; /** - * A thumbnail image relevant to the Thing. + * The Organization on whose behalf the creator was working. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $thumbnailUrl; + protected $sourceOrganization; /** - * 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 "spatial" property can be used in cases when more specific properties + * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $inLanguage; + protected $spatial; /** - * A license document that applies to this content, typically indicated by URL. + * 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 string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $license; + protected $spatialCoverage; /** - * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. + * 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 */ - protected $creator; + protected $sponsor; /** - * Review of the item. + * 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\Review|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $reviews; + protected $teaches; /** - * The subject matter of the content. + * 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 \OpenActive\Models\SchemaOrg\Thing|string + * @var DateTime|string|null */ - protected $about; + protected $temporal; /** - * Indicates whether this content is family friendly. + * 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 bool|null + * @var DateTime|string|null */ - protected $isFamilyFriendly; + protected $temporalCoverage; /** - * Headline of the article. + * The textual content of this CreativeWork. * * * @var string */ - protected $headline; + protected $text; /** - * 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). + * Thumbnail image for an image or video. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $accessibilityAPI; + protected $thumbnail; /** - * The publishing division which published the comic. + * A thumbnail image relevant to the Thing. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $publisherImprint; + protected $thumbnailUrl; /** - * 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. + * Approximate or typical time it usually takes to work with or through the content of this work for the typical or target audience. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product + * @var DateInterval|string|null */ - protected $isBasedOnUrl; + protected $timeRequired; /** - * A media object that encodes this CreativeWork. + * The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”. * * - * @var \OpenActive\Models\SchemaOrg\MediaObject|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $encodings; + protected $translationOfWork; /** - * 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]]. + * 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\Claim|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $interpretedAsClaim; + protected $translator; /** - * 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 typical expected age range, e.g. '7-9', '11-'. * * * @var string */ - protected $accessibilityControl; + protected $typicalAgeRange; /** - * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc. + * 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\CreativeWork|string */ - protected $citation; + protected $usageInfo; /** * The version of the CreativeWork embodied by a specified resource. @@ -979,1850 +1067,1895 @@ public static function fieldList() { protected $version; /** - * 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. + * An embedded video object. * * - * @var \OpenActive\Models\SchemaOrg\WebPage|string + * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $archivedAt; + protected $video; /** - * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. + * The number of words in the text of the CreativeWork such as an Article, Book, etc. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var int|null */ - protected $learningResourceType; + protected $wordCount; /** - * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia. + * Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book. * * - * @var \OpenActive\Models\SchemaOrg\MediaObject|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $encoding; + protected $workExample; /** - * An embedded audio object. + * 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\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $audio; + protected $workTranslation; /** - * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept. - * - * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @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 */ - protected $mentions; + public function getAbstract() + { + return $this->abstract; + } /** - * 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 + * @param string $abstract + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $accessModeSufficient; + public function setAbstract($abstract) + { + $types = [ + "string", + ]; + + $abstract = self::checkTypes($abstract, $types); + + $this->abstract = $abstract; + } /** - * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense). - * - * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - protected $hasPart; + public function getAccessMode() + { + return $this->accessMode; + } /** - * The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In - * the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content e.g. ScholarlyArticle, Book, TVSeries or TVEpisode may indicate their temporalCoverage in broader terms - textually or via well-known URL. - * Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". - * - * Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated. - * - * - * @var DateTime|string|null + * @param string $accessMode + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $temporalCoverage; + public function setAccessMode($accessMode) + { + $types = [ + "string", + ]; + + $accessMode = self::checkTypes($accessMode, $types); + + $this->accessMode = $accessMode; + } /** - * A secondary contributor to the CreativeWork or Event. - * - * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\ItemList|string */ - protected $contributor; + public function getAccessModeSufficient() + { + return $this->accessModeSufficient; + } /** - * An embedded video object. - * - * - * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string + * @param \OpenActive\Models\SchemaOrg\ItemList|string $accessModeSufficient + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $video; + public function setAccessModeSufficient($accessModeSufficient) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ItemList", + "string", + ]; + + $accessModeSufficient = self::checkTypes($accessModeSufficient, $types); + + $this->accessModeSufficient = $accessModeSufficient; + } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string */ - public function getTeaches() + public function getAccessibilityAPI() { - return $this->teaches; + return $this->accessibilityAPI; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches + * @param string $accessibilityAPI * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTeaches($teaches) + public function setAccessibilityAPI($accessibilityAPI) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $teaches = self::checkTypes($teaches, $types); + $accessibilityAPI = self::checkTypes($accessibilityAPI, $types); - $this->teaches = $teaches; + $this->accessibilityAPI = $accessibilityAPI; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return string */ - public function getEducationalLevel() + public function getAccessibilityControl() { - return $this->educationalLevel; + return $this->accessibilityControl; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel + * @param string $accessibilityControl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalLevel($educationalLevel) + public function setAccessibilityControl($accessibilityControl) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $educationalLevel = self::checkTypes($educationalLevel, $types); + $accessibilityControl = self::checkTypes($accessibilityControl, $types); - $this->educationalLevel = $educationalLevel; + $this->accessibilityControl = $accessibilityControl; } /** * @return string */ - public function getAbstract() + public function getAccessibilityFeature() { - return $this->abstract; + return $this->accessibilityFeature; } /** - * @param string $abstract + * @param string $accessibilityFeature * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAbstract($abstract) + public function setAccessibilityFeature($accessibilityFeature) { $types = [ "string", ]; - $abstract = self::checkTypes($abstract, $types); + $accessibilityFeature = self::checkTypes($accessibilityFeature, $types); - $this->abstract = $abstract; + $this->accessibilityFeature = $accessibilityFeature; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return string */ - public function getCreativeWorkStatus() + public function getAccessibilityHazard() { - return $this->creativeWorkStatus; + return $this->accessibilityHazard; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $creativeWorkStatus + * @param string $accessibilityHazard * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCreativeWorkStatus($creativeWorkStatus) + public function setAccessibilityHazard($accessibilityHazard) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types); + $accessibilityHazard = self::checkTypes($accessibilityHazard, $types); - $this->creativeWorkStatus = $creativeWorkStatus; + $this->accessibilityHazard = $accessibilityHazard; } /** - * @return Date|null + * @return string */ - public function getExpires() + public function getAccessibilitySummary() { - return $this->expires; + return $this->accessibilitySummary; } /** - * @param Date|null $expires + * @param string $accessibilitySummary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpires($expires) + public function setAccessibilitySummary($accessibilitySummary) { $types = [ - "Date", - "null", + "string", ]; - $expires = self::checkTypes($expires, $types); + $accessibilitySummary = self::checkTypes($accessibilitySummary, $types); - $this->expires = $expires; + $this->accessibilitySummary = $accessibilitySummary; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getContentReferenceTime() + public function getAccountablePerson() { - return $this->contentReferenceTime; + return $this->accountablePerson; } /** - * @param DateTime|null $contentReferenceTime + * @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 setContentReferenceTime($contentReferenceTime) + public function setAccountablePerson($accountablePerson) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $contentReferenceTime = self::checkTypes($contentReferenceTime, $types); + $accountablePerson = self::checkTypes($accountablePerson, $types); - $this->contentReferenceTime = $contentReferenceTime; + $this->accountablePerson = $accountablePerson; } /** - * @return string|\OpenActive\Models\SchemaOrg\Product + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getMaterial() + public function getAcquireLicensePage() { - return $this->material; + return $this->acquireLicensePage; } /** - * @param string|\OpenActive\Models\SchemaOrg\Product $material + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $acquireLicensePage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaterial($material) + public function setAcquireLicensePage($acquireLicensePage) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", - "\OpenActive\Models\SchemaOrg\Product", ]; - $material = self::checkTypes($material, $types); + $acquireLicensePage = self::checkTypes($acquireLicensePage, $types); - $this->material = $material; + $this->acquireLicensePage = $acquireLicensePage; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getReview() + public function getAggregateRating() { - return $this->review; + return $this->aggregateRating; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @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 setReview($review) + public function setAggregateRating($aggregateRating) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $review = self::checkTypes($review, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->review = $review; + $this->aggregateRating = $aggregateRating; } /** * @return string */ - public function getFileFormat() + public function getAlternativeHeadline() { - return $this->fileFormat; + return $this->alternativeHeadline; } /** - * @param string $fileFormat + * @param string $alternativeHeadline * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFileFormat($fileFormat) + public function setAlternativeHeadline($alternativeHeadline) { $types = [ "string", ]; - $fileFormat = self::checkTypes($fileFormat, $types); + $alternativeHeadline = self::checkTypes($alternativeHeadline, $types); - $this->fileFormat = $fileFormat; + $this->alternativeHeadline = $alternativeHeadline; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\WebPage */ - public function getText() + public function getArchivedAt() { - return $this->text; + return $this->archivedAt; } /** - * @param string $text + * @param string|\OpenActive\Models\SchemaOrg\WebPage $archivedAt * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setText($text) + public function setArchivedAt($archivedAt) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\WebPage", ]; - $text = self::checkTypes($text, $types); + $archivedAt = self::checkTypes($archivedAt, $types); - $this->text = $text; + $this->archivedAt = $archivedAt; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getTranslator() + public function getAssesses() { - return $this->translator; + return $this->assesses; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator + * @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 setTranslator($translator) + public function setAssesses($assesses) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $translator = self::checkTypes($translator, $types); + $assesses = self::checkTypes($assesses, $types); - $this->translator = $translator; + $this->assesses = $assesses; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getAward() + public function getAssociatedMedia() { - return $this->award; + return $this->associatedMedia; } /** - * @param string $award + * @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 setAward($award) + public function setAssociatedMedia($associatedMedia) { $types = [ + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $award = self::checkTypes($award, $types); + $associatedMedia = self::checkTypes($associatedMedia, $types); - $this->award = $award; + $this->associatedMedia = $associatedMedia; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getAssesses() + public function getAudience() { - return $this->assesses; + return $this->audience; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses + * @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 setAssesses($assesses) + public function setAudience($audience) { $types = [ + "\OpenActive\Models\SchemaOrg\Audience", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $assesses = self::checkTypes($assesses, $types); + $audience = self::checkTypes($audience, $types); - $this->assesses = $assesses; + $this->audience = $audience; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\MusicRecording|string */ - public function getCopyrightNotice() + public function getAudio() { - return $this->copyrightNotice; + return $this->audio; } /** - * @param string $copyrightNotice + * @param \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\MusicRecording|string $audio * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCopyrightNotice($copyrightNotice) + public function setAudio($audio) { $types = [ + "\OpenActive\Models\SchemaOrg\AudioObject", + "\OpenActive\Models\SchemaOrg\Clip", + "\OpenActive\Models\SchemaOrg\MusicRecording", "string", ]; - $copyrightNotice = self::checkTypes($copyrightNotice, $types); + $audio = self::checkTypes($audio, $types); - $this->copyrightNotice = $copyrightNotice; + $this->audio = $audio; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSchemaVersion() + public function getAuthor() { - return $this->schemaVersion; + return $this->author; } /** - * @param string $schemaVersion + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $author * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSchemaVersion($schemaVersion) + public function setAuthor($author) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $schemaVersion = self::checkTypes($schemaVersion, $types); + $author = self::checkTypes($author, $types); - $this->schemaVersion = $schemaVersion; + $this->author = $author; } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string */ - public function getCountryOfOrigin() + public function getAward() { - return $this->countryOfOrigin; + return $this->award; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfOrigin($countryOfOrigin) + public function setAward($award) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $award = self::checkTypes($award, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->award = $award; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string */ - public function getPattern() + public function getAwards() { - return $this->pattern; + return $this->awards; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPattern($pattern) + public function setAwards($awards) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $pattern = self::checkTypes($pattern, $types); + $awards = self::checkTypes($awards, $types); - $this->pattern = $pattern; + $this->awards = $awards; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getAccountablePerson() + public function getCharacter() { - return $this->accountablePerson; + return $this->character; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $accountablePerson + * @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 setAccountablePerson($accountablePerson) + public function setCharacter($character) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $accountablePerson = self::checkTypes($accountablePerson, $types); + $character = self::checkTypes($character, $types); - $this->accountablePerson = $accountablePerson; + $this->character = $character; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getFunding() + public function getCitation() { - return $this->funding; + return $this->citation; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @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 setFunding($funding) + public function setCitation($citation) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $funding = self::checkTypes($funding, $types); + $citation = self::checkTypes($citation, $types); - $this->funding = $funding; + $this->citation = $citation; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\Comment|string */ - public function getEducationalUse() + public function getComment() { - return $this->educationalUse; + return $this->comment; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse + * @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 setEducationalUse($educationalUse) + public function setComment($comment) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Comment", "string", ]; - $educationalUse = self::checkTypes($educationalUse, $types); + $comment = self::checkTypes($comment, $types); - $this->educationalUse = $educationalUse; + $this->comment = $comment; } /** - * @return string + * @return int|null */ - public function getGenre() + public function getCommentCount() { - return $this->genre; + return $this->commentCount; } /** - * @param string $genre + * @param int|null $commentCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGenre($genre) + public function setCommentCount($commentCount) { $types = [ - "string", + "int", + "null", ]; - $genre = self::checkTypes($genre, $types); + $commentCount = self::checkTypes($commentCount, $types); - $this->genre = $genre; + $this->commentCount = $commentCount; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string */ - public function getKeywords() + public function getConditionsOfAccess() { - return $this->keywords; + return $this->conditionsOfAccess; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param string $conditionsOfAccess * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setConditionsOfAccess($conditionsOfAccess) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types); - $this->keywords = $keywords; + $this->conditionsOfAccess = $conditionsOfAccess; } /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getPosition() + public function getContentLocation() { - return $this->position; + return $this->contentLocation; } /** - * @param string|int|null $position + * @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 setPosition($position) + public function setContentLocation($contentLocation) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", - "int", - "null", ]; - $position = self::checkTypes($position, $types); + $contentLocation = self::checkTypes($contentLocation, $types); - $this->position = $position; + $this->contentLocation = $contentLocation; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Rating|string */ - public function getAccessibilityHazard() + public function getContentRating() { - return $this->accessibilityHazard; + return $this->contentRating; } /** - * @param string $accessibilityHazard + * @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 setAccessibilityHazard($accessibilityHazard) + public function setContentRating($contentRating) { $types = [ + "\OpenActive\Models\SchemaOrg\Rating", "string", ]; - $accessibilityHazard = self::checkTypes($accessibilityHazard, $types); + $contentRating = self::checkTypes($contentRating, $types); - $this->accessibilityHazard = $accessibilityHazard; + $this->contentRating = $contentRating; } /** - * @return string + * @return DateTime|null */ - public function getAlternativeHeadline() + public function getContentReferenceTime() { - return $this->alternativeHeadline; + return $this->contentReferenceTime; } /** - * @param string $alternativeHeadline + * @param DateTime|null $contentReferenceTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlternativeHeadline($alternativeHeadline) + public function setContentReferenceTime($contentReferenceTime) { $types = [ - "string", + "DateTime", + "null", ]; - $alternativeHeadline = self::checkTypes($alternativeHeadline, $types); + $contentReferenceTime = self::checkTypes($contentReferenceTime, $types); - $this->alternativeHeadline = $alternativeHeadline; + $this->contentReferenceTime = $contentReferenceTime; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAudience() + public function getContributor() { - return $this->audience; + return $this->contributor; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @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 setAudience($audience) + public function setContributor($contributor) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $audience = self::checkTypes($audience, $types); + $contributor = self::checkTypes($contributor, $types); - $this->audience = $audience; + $this->contributor = $contributor; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getOffers() + public function getCopyrightHolder() { - return $this->offers; + return $this->copyrightHolder; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $copyrightHolder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setCopyrightHolder($copyrightHolder) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $offers = self::checkTypes($offers, $types); + $copyrightHolder = self::checkTypes($copyrightHolder, $types); - $this->offers = $offers; + $this->copyrightHolder = $copyrightHolder; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getLocationCreated() + public function getCopyrightNotice() { - return $this->locationCreated; + return $this->copyrightNotice; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $locationCreated + * @param string $copyrightNotice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLocationCreated($locationCreated) + public function setCopyrightNotice($copyrightNotice) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $locationCreated = self::checkTypes($locationCreated, $types); + $copyrightNotice = self::checkTypes($copyrightNotice, $types); - $this->locationCreated = $locationCreated; + $this->copyrightNotice = $copyrightNotice; } /** - * @return \OpenActive\Models\SchemaOrg\MediaObject|string + * @return Number|null */ - public function getAssociatedMedia() + public function getCopyrightYear() { - return $this->associatedMedia; + return $this->copyrightYear; } /** - * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia + * @param Number|null $copyrightYear * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedMedia($associatedMedia) + public function setCopyrightYear($copyrightYear) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaObject", - "string", + "Number", + "null", ]; - $associatedMedia = self::checkTypes($associatedMedia, $types); + $copyrightYear = self::checkTypes($copyrightYear, $types); - $this->associatedMedia = $associatedMedia; + $this->copyrightYear = $copyrightYear; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\CorrectionComment|string */ - public function getMaterialExtent() + public function getCorrection() { - return $this->materialExtent; + return $this->correction; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $materialExtent + * @param \OpenActive\Models\SchemaOrg\CorrectionComment|string $correction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaterialExtent($materialExtent) + public function setCorrection($correction) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\CorrectionComment", "string", ]; - $materialExtent = self::checkTypes($materialExtent, $types); + $correction = self::checkTypes($correction, $types); - $this->materialExtent = $materialExtent; + $this->correction = $correction; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getMainEntity() + public function getCountryOfOrigin() { - return $this->mainEntity; + return $this->countryOfOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $mainEntity + * @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 setMainEntity($mainEntity) + public function setCountryOfOrigin($countryOfOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $mainEntity = self::checkTypes($mainEntity, $types); + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); - $this->mainEntity = $mainEntity; + $this->countryOfOrigin = $countryOfOrigin; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getCopyrightHolder() + public function getCreativeWorkStatus() { - return $this->copyrightHolder; + return $this->creativeWorkStatus; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $copyrightHolder + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $creativeWorkStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCopyrightHolder($copyrightHolder) + public function setCreativeWorkStatus($creativeWorkStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $copyrightHolder = self::checkTypes($copyrightHolder, $types); + $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types); - $this->copyrightHolder = $copyrightHolder; + $this->creativeWorkStatus = $creativeWorkStatus; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAwards() + public function getCreator() { - return $this->awards; + return $this->creator; } /** - * @param string $awards + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setCreator($creator) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $awards = self::checkTypes($awards, $types); + $creator = self::checkTypes($creator, $types); - $this->awards = $awards; + $this->creator = $creator; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getContentLocation() + public function getCreditText() { - return $this->contentLocation; + return $this->creditText; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $contentLocation + * @param string $creditText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContentLocation($contentLocation) + public function setCreditText($creditText) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $contentLocation = self::checkTypes($contentLocation, $types); + $creditText = self::checkTypes($creditText, $types); - $this->contentLocation = $contentLocation; + $this->creditText = $creditText; } /** - * @return Date|null + * @return Date|DateTime|null */ - public function getSdDatePublished() + public function getDateCreated() { - return $this->sdDatePublished; + return $this->dateCreated; } /** - * @param Date|null $sdDatePublished + * @param Date|DateTime|null $dateCreated * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSdDatePublished($sdDatePublished) + public function setDateCreated($dateCreated) { $types = [ "Date", + "DateTime", "null", ]; - $sdDatePublished = self::checkTypes($sdDatePublished, $types); + $dateCreated = self::checkTypes($dateCreated, $types); - $this->sdDatePublished = $sdDatePublished; + $this->dateCreated = $dateCreated; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return Date|DateTime|null */ - public function getProducer() + public function getDateModified() { - return $this->producer; + return $this->dateModified; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $producer + * @param Date|DateTime|null $dateModified * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProducer($producer) + public function setDateModified($dateModified) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "DateTime", + "null", ]; - $producer = self::checkTypes($producer, $types); + $dateModified = self::checkTypes($dateModified, $types); - $this->producer = $producer; + $this->dateModified = $dateModified; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return Date|DateTime|null */ - public function getSpatial() + public function getDatePublished() { - return $this->spatial; + return $this->datePublished; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $spatial + * @param Date|DateTime|null $datePublished * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpatial($spatial) + public function setDatePublished($datePublished) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", + "Date", + "DateTime", + "null", ]; - $spatial = self::checkTypes($spatial, $types); + $datePublished = self::checkTypes($datePublished, $types); - $this->spatial = $spatial; + $this->datePublished = $datePublished; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string */ - public function getPublisher() + public function getDigitalSourceType() { - return $this->publisher; + return $this->digitalSourceType; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $publisher + * @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 setPublisher($publisher) + public function setDigitalSourceType($digitalSourceType) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration", "string", ]; - $publisher = self::checkTypes($publisher, $types); + $digitalSourceType = self::checkTypes($digitalSourceType, $types); - $this->publisher = $publisher; + $this->digitalSourceType = $digitalSourceType; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getSourceOrganization() + public function getDiscussionUrl() { - return $this->sourceOrganization; + return $this->discussionUrl; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $sourceOrganization + * @param string $discussionUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSourceOrganization($sourceOrganization) + public function setDiscussionUrl($discussionUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $sourceOrganization = self::checkTypes($sourceOrganization, $types); + $discussionUrl = self::checkTypes($discussionUrl, $types); - $this->sourceOrganization = $sourceOrganization; + $this->discussionUrl = $discussionUrl; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getCharacter() + public function getDisplayLocation() { - return $this->character; + return $this->displayLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $character + * @param \OpenActive\Models\SchemaOrg\Place|string $displayLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCharacter($character) + public function setDisplayLocation($displayLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $character = self::checkTypes($character, $types); + $displayLocation = self::checkTypes($displayLocation, $types); - $this->character = $character; + $this->displayLocation = $displayLocation; } /** - * @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\Person|string */ - public function getExampleOfWork() + public function getEditor() { - return $this->exampleOfWork; + return $this->editor; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $exampleOfWork + * @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 setExampleOfWork($exampleOfWork) + public function setEditor($editor) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $exampleOfWork = self::checkTypes($exampleOfWork, $types); + $editor = self::checkTypes($editor, $types); - $this->exampleOfWork = $exampleOfWork; + $this->editor = $editor; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string */ - public function getUsageInfo() + public function getEducationalAlignment() { - return $this->usageInfo; + return $this->educationalAlignment; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $usageInfo + * @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 setUsageInfo($usageInfo) + public function setEducationalAlignment($educationalAlignment) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\AlignmentObject", "string", ]; - $usageInfo = self::checkTypes($usageInfo, $types); + $educationalAlignment = self::checkTypes($educationalAlignment, $types); - $this->usageInfo = $usageInfo; + $this->educationalAlignment = $educationalAlignment; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getProvider() + public function getEducationalLevel() { - return $this->provider; + return $this->educationalLevel; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setEducationalLevel($educationalLevel) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $provider = self::checkTypes($provider, $types); + $educationalLevel = self::checkTypes($educationalLevel, $types); - $this->provider = $provider; + $this->educationalLevel = $educationalLevel; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getSdPublisher() + public function getEducationalUse() { - return $this->sdPublisher; + return $this->educationalUse; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sdPublisher + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSdPublisher($sdPublisher) + public function setEducationalUse($educationalUse) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $sdPublisher = self::checkTypes($sdPublisher, $types); + $educationalUse = self::checkTypes($educationalUse, $types); - $this->sdPublisher = $sdPublisher; + $this->educationalUse = $educationalUse; } /** - * @return \OpenActive\Models\SchemaOrg\Comment|string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getComment() + public function getEncoding() { - return $this->comment; + return $this->encoding; } /** - * @param \OpenActive\Models\SchemaOrg\Comment|string $comment + * @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 setComment($comment) + public function setEncoding($encoding) { $types = [ - "\OpenActive\Models\SchemaOrg\Comment", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $comment = self::checkTypes($comment, $types); + $encoding = self::checkTypes($encoding, $types); - $this->comment = $comment; + $this->encoding = $encoding; } /** * @return string */ - public function getAccessibilityFeature() + public function getEncodingFormat() { - return $this->accessibilityFeature; + return $this->encodingFormat; } /** - * @param string $accessibilityFeature + * @param string $encodingFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessibilityFeature($accessibilityFeature) + public function setEncodingFormat($encodingFormat) { $types = [ "string", ]; - $accessibilityFeature = self::checkTypes($accessibilityFeature, $types); + $encodingFormat = self::checkTypes($encodingFormat, $types); - $this->accessibilityFeature = $accessibilityFeature; + $this->encodingFormat = $encodingFormat; } /** - * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getPublication() + public function getEncodings() { - return $this->publication; + return $this->encodings; } /** - * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $publication + * @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 setPublication($publication) + public function setEncodings($encodings) { $types = [ - "\OpenActive\Models\SchemaOrg\PublicationEvent", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $publication = self::checkTypes($publication, $types); + $encodings = self::checkTypes($encodings, $types); - $this->publication = $publication; + $this->encodings = $encodings; } /** * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getTranslationOfWork() + public function getExampleOfWork() { - return $this->translationOfWork; + return $this->exampleOfWork; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $translationOfWork + * @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 setTranslationOfWork($translationOfWork) + public function setExampleOfWork($exampleOfWork) { $types = [ "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $translationOfWork = self::checkTypes($translationOfWork, $types); + $exampleOfWork = self::checkTypes($exampleOfWork, $types); - $this->translationOfWork = $translationOfWork; + $this->exampleOfWork = $exampleOfWork; } /** - * @return string + * @return Date|DateTime|null */ - public function getInteractivityType() + public function getExpires() { - return $this->interactivityType; + return $this->expires; } /** - * @param string $interactivityType + * @param Date|DateTime|null $expires * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractivityType($interactivityType) + public function setExpires($expires) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $interactivityType = self::checkTypes($interactivityType, $types); + $expires = self::checkTypes($expires, $types); - $this->interactivityType = $interactivityType; + $this->expires = $expires; } /** - * @return int|null + * @return string */ - public function getCommentCount() + public function getFileFormat() { - return $this->commentCount; + return $this->fileFormat; } /** - * @param int|null $commentCount + * @param string $fileFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCommentCount($commentCount) + public function setFileFormat($fileFormat) { $types = [ - "int", - "null", + "string", ]; - $commentCount = self::checkTypes($commentCount, $types); + $fileFormat = self::checkTypes($fileFormat, $types); - $this->commentCount = $commentCount; + $this->fileFormat = $fileFormat; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAccessMode() + public function getFunder() { - return $this->accessMode; + return $this->funder; } /** - * @param string $accessMode + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessMode($accessMode) + public function setFunder($funder) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $accessMode = self::checkTypes($accessMode, $types); + $funder = self::checkTypes($funder, $types); - $this->accessMode = $accessMode; + $this->funder = $funder; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - public function getAggregateRating() + public function getFunding() { - return $this->aggregateRating; + return $this->funding; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @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 setAggregateRating($aggregateRating) + public function setFunding($funding) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", + "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $funding = self::checkTypes($funding, $types); - $this->aggregateRating = $aggregateRating; + $this->funding = $funding; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getTimeRequired() + public function getGenre() { - return $this->timeRequired; + return $this->genre; } /** - * @param DateInterval|string|null $timeRequired + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $genre * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTimeRequired($timeRequired) + public function setGenre($genre) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", - "null", ]; - $timeRequired = self::checkTypes($timeRequired, $types); + $genre = self::checkTypes($genre, $types); - $this->timeRequired = $timeRequired; + $this->genre = $genre; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getTypicalAgeRange() + public function getHasPart() { - return $this->typicalAgeRange; + return $this->hasPart; } /** - * @param string $typicalAgeRange + * @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 setTypicalAgeRange($typicalAgeRange) + public function setHasPart($hasPart) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $typicalAgeRange = self::checkTypes($typicalAgeRange, $types); + $hasPart = self::checkTypes($hasPart, $types); - $this->typicalAgeRange = $typicalAgeRange; + $this->hasPart = $hasPart; } /** - * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @return string */ - public function getInteractionStatistic() + public function getHeadline() { - return $this->interactionStatistic; + return $this->headline; } /** - * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic + * @param string $headline * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionStatistic($interactionStatistic) + public function setHeadline($headline) { $types = [ - "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $interactionStatistic = self::checkTypes($interactionStatistic, $types); + $headline = self::checkTypes($headline, $types); - $this->interactionStatistic = $interactionStatistic; + $this->headline = $headline; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getCopyrightYear() + public function getInLanguage() { - return $this->copyrightYear; + return $this->inLanguage; } /** - * @param Number|null $copyrightYear + * @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 setCopyrightYear($copyrightYear) + public function setInLanguage($inLanguage) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\Language", + "string", ]; - $copyrightYear = self::checkTypes($copyrightYear, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->copyrightYear = $copyrightYear; + $this->inLanguage = $inLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getIsBasedOn() + public function getInteractionStatistic() { - return $this->isBasedOn; + return $this->interactionStatistic; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product $isBasedOn + * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsBasedOn($isBasedOn) + public function setInteractionStatistic($interactionStatistic) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", - "\OpenActive\Models\SchemaOrg\Product", ]; - $isBasedOn = self::checkTypes($isBasedOn, $types); + $interactionStatistic = self::checkTypes($interactionStatistic, $types); - $this->isBasedOn = $isBasedOn; + $this->interactionStatistic = $interactionStatistic; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getWorkExample() + public function getInteractivityType() { - return $this->workExample; + return $this->interactivityType; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workExample + * @param string $interactivityType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkExample($workExample) + public function setInteractivityType($interactivityType) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $workExample = self::checkTypes($workExample, $types); + $interactivityType = self::checkTypes($interactivityType, $types); - $this->workExample = $workExample; + $this->interactivityType = $interactivityType; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\Claim|string */ - public function getPublishingPrinciples() + public function getInterpretedAsClaim() { - return $this->publishingPrinciples; + return $this->interpretedAsClaim; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples + * @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 setPublishingPrinciples($publishingPrinciples) + public function setInterpretedAsClaim($interpretedAsClaim) { $types = [ + "\OpenActive\Models\SchemaOrg\Claim", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); + $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types); - $this->publishingPrinciples = $publishingPrinciples; + $this->interpretedAsClaim = $interpretedAsClaim; } /** - * @return string + * @return bool|null */ - public function getDiscussionUrl() + public function getIsAccessibleForFree() { - return $this->discussionUrl; + return $this->isAccessibleForFree; } /** - * @param string $discussionUrl + * @param bool|null $isAccessibleForFree * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscussionUrl($discussionUrl) + public function setIsAccessibleForFree($isAccessibleForFree) { $types = [ - "string", + "bool", + "null", ]; - $discussionUrl = self::checkTypes($discussionUrl, $types); + $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); - $this->discussionUrl = $discussionUrl; + $this->isAccessibleForFree = $isAccessibleForFree; } /** - * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string */ - public function getReleasedEvent() + public function getIsBasedOn() { - return $this->releasedEvent; + return $this->isBasedOn; } /** - * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $releasedEvent + * @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 setReleasedEvent($releasedEvent) + public function setIsBasedOn($isBasedOn) { $types = [ - "\OpenActive\Models\SchemaOrg\PublicationEvent", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $releasedEvent = self::checkTypes($releasedEvent, $types); + $isBasedOn = self::checkTypes($isBasedOn, $types); - $this->releasedEvent = $releasedEvent; + $this->isBasedOn = $isBasedOn; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string */ - public function getDateCreated() + public function getIsBasedOnUrl() { - return $this->dateCreated; + return $this->isBasedOnUrl; } /** - * @param Date|DateTime|null $dateCreated + * @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 setDateCreated($dateCreated) + public function setIsBasedOnUrl($isBasedOnUrl) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Product", + "string", ]; - $dateCreated = self::checkTypes($dateCreated, $types); + $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types); - $this->dateCreated = $dateCreated; + $this->isBasedOnUrl = $isBasedOnUrl; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return bool|null */ - public function getWorkTranslation() + public function getIsFamilyFriendly() { - return $this->workTranslation; + return $this->isFamilyFriendly; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workTranslation + * @param bool|null $isFamilyFriendly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkTranslation($workTranslation) + public function setIsFamilyFriendly($isFamilyFriendly) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", - "string", + "bool", + "null", ]; - $workTranslation = self::checkTypes($workTranslation, $types); + $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); - $this->workTranslation = $workTranslation; + $this->isFamilyFriendly = $isFamilyFriendly; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getEditor() + public function getIsPartOf() { - return $this->editor; + return $this->isPartOf; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $editor + * @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 setEditor($editor) + public function setIsPartOf($isPartOf) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $editor = self::checkTypes($editor, $types); + $isPartOf = self::checkTypes($isPartOf, $types); - $this->editor = $editor; + $this->isPartOf = $isPartOf; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getCreditText() + public function getKeywords() { - return $this->creditText; + return $this->keywords; } /** - * @param string $creditText + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCreditText($creditText) + public function setKeywords($keywords) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $creditText = self::checkTypes($creditText, $types); + $keywords = self::checkTypes($keywords, $types); - $this->creditText = $creditText; + $this->keywords = $keywords; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getRecordedAt() + public function getLearningResourceType() { - return $this->recordedAt; + return $this->learningResourceType; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $recordedAt + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecordedAt($recordedAt) + public function setLearningResourceType($learningResourceType) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $recordedAt = self::checkTypes($recordedAt, $types); + $learningResourceType = self::checkTypes($learningResourceType, $types); - $this->recordedAt = $recordedAt; + $this->learningResourceType = $learningResourceType; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getEditEIDR() + public function getLicense() { - return $this->editEIDR; + return $this->license; } /** - * @param string $editEIDR + * @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 setEditEIDR($editEIDR) + public function setLicense($license) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $editEIDR = self::checkTypes($editEIDR, $types); + $license = self::checkTypes($license, $types); - $this->editEIDR = $editEIDR; + $this->license = $license; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getAuthor() + public function getLocationCreated() { - return $this->author; + return $this->locationCreated; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $author + * @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 setAuthor($author) + public function setLocationCreated($locationCreated) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $author = self::checkTypes($author, $types); + $locationCreated = self::checkTypes($locationCreated, $types); - $this->author = $author; + $this->locationCreated = $locationCreated; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getDateModified() + public function getMainEntity() { - return $this->dateModified; + return $this->mainEntity; } /** - * @param Date|DateTime|null $dateModified + * @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 setDateModified($dateModified) + public function setMainEntity($mainEntity) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Thing", + "string", ]; - $dateModified = self::checkTypes($dateModified, $types); + $mainEntity = self::checkTypes($mainEntity, $types); - $this->dateModified = $dateModified; + $this->mainEntity = $mainEntity; } /** * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSponsor() + public function getMaintainer() { - return $this->sponsor; + return $this->maintainer; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $maintainer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSponsor($sponsor) + public function setMaintainer($maintainer) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", @@ -2830,1040 +2963,1045 @@ public function setSponsor($sponsor) "string", ]; - $sponsor = self::checkTypes($sponsor, $types); + $maintainer = self::checkTypes($maintainer, $types); - $this->sponsor = $sponsor; + $this->maintainer = $maintainer; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getAccessibilitySummary() + public function getMaterial() { - return $this->accessibilitySummary; + return $this->material; } /** - * @param string $accessibilitySummary + * @param \OpenActive\Models\SchemaOrg\Product|string $material * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessibilitySummary($accessibilitySummary) + public function setMaterial($material) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $accessibilitySummary = self::checkTypes($accessibilitySummary, $types); + $material = self::checkTypes($material, $types); - $this->accessibilitySummary = $accessibilitySummary; + $this->material = $material; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEncodingFormat() + public function getMaterialExtent() { - return $this->encodingFormat; + return $this->materialExtent; } /** - * @param string $encodingFormat + * @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 setEncodingFormat($encodingFormat) + public function setMaterialExtent($materialExtent) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $encodingFormat = self::checkTypes($encodingFormat, $types); + $materialExtent = self::checkTypes($materialExtent, $types); - $this->encodingFormat = $encodingFormat; + $this->materialExtent = $materialExtent; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getMaintainer() + public function getMentions() { - return $this->maintainer; + return $this->mentions; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $maintainer + * @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 setMaintainer($maintainer) + public function setMentions($mentions) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $maintainer = self::checkTypes($maintainer, $types); + $mentions = self::checkTypes($mentions, $types); - $this->maintainer = $maintainer; + $this->mentions = $mentions; } /** - * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string + * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ - public function getEducationalAlignment() + public function getOffers() { - return $this->educationalAlignment; + return $this->offers; } /** - * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment + * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalAlignment($educationalAlignment) + public function setOffers($offers) { $types = [ - "\OpenActive\Models\SchemaOrg\AlignmentObject", + "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $educationalAlignment = self::checkTypes($educationalAlignment, $types); + $offers = self::checkTypes($offers, $types); - $this->educationalAlignment = $educationalAlignment; + $this->offers = $offers; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getAcquireLicensePage() + public function getPattern() { - return $this->acquireLicensePage; + return $this->pattern; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $acquireLicensePage + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcquireLicensePage($acquireLicensePage) + public function setPattern($pattern) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $acquireLicensePage = self::checkTypes($acquireLicensePage, $types); + $pattern = self::checkTypes($pattern, $types); - $this->acquireLicensePage = $acquireLicensePage; + $this->pattern = $pattern; } /** - * @return bool|null + * @return string|int|null */ - public function getIsAccessibleForFree() + public function getPosition() { - return $this->isAccessibleForFree; + return $this->position; } /** - * @param bool|null $isAccessibleForFree + * @param string|int|null $position * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsAccessibleForFree($isAccessibleForFree) + public function setPosition($position) { $types = [ - "bool", + "string", + "int", "null", ]; - $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); + $position = self::checkTypes($position, $types); - $this->isAccessibleForFree = $isAccessibleForFree; + $this->position = $position; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getDatePublished() + public function getProducer() { - return $this->datePublished; + return $this->producer; } /** - * @param Date|DateTime|null $datePublished + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $producer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePublished($datePublished) + public function setProducer($producer) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $datePublished = self::checkTypes($datePublished, $types); + $producer = self::checkTypes($producer, $types); - $this->datePublished = $datePublished; + $this->producer = $producer; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSpatialCoverage() + public function getProvider() { - return $this->spatialCoverage; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $spatialCoverage + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpatialCoverage($spatialCoverage) + public function setProvider($provider) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $spatialCoverage = self::checkTypes($spatialCoverage, $types); + $provider = self::checkTypes($provider, $types); - $this->spatialCoverage = $spatialCoverage; + $this->provider = $provider; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string */ - public function getSdLicense() + public function getPublication() { - return $this->sdLicense; + return $this->publication; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $sdLicense + * @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 setSdLicense($sdLicense) + public function setPublication($publication) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\PublicationEvent", "string", ]; - $sdLicense = self::checkTypes($sdLicense, $types); + $publication = self::checkTypes($publication, $types); - $this->sdLicense = $sdLicense; + $this->publication = $publication; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getConditionsOfAccess() + public function getPublisher() { - return $this->conditionsOfAccess; + return $this->publisher; } /** - * @param string $conditionsOfAccess + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $publisher * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setConditionsOfAccess($conditionsOfAccess) + public function setPublisher($publisher) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types); + $publisher = self::checkTypes($publisher, $types); - $this->conditionsOfAccess = $conditionsOfAccess; + $this->publisher = $publisher; } /** - * @return string|\OpenActive\Models\SchemaOrg\CorrectionComment + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getCorrection() + public function getPublisherImprint() { - return $this->correction; + return $this->publisherImprint; } /** - * @param string|\OpenActive\Models\SchemaOrg\CorrectionComment $correction + * @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 setCorrection($correction) + public function setPublisherImprint($publisherImprint) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", - "\OpenActive\Models\SchemaOrg\CorrectionComment", ]; - $correction = self::checkTypes($correction, $types); + $publisherImprint = self::checkTypes($publisherImprint, $types); - $this->correction = $correction; + $this->publisherImprint = $publisherImprint; } /** - * @return string|\OpenActive\Models\SchemaOrg\Rating + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getContentRating() + public function getPublishingPrinciples() { - return $this->contentRating; + return $this->publishingPrinciples; } /** - * @param string|\OpenActive\Models\SchemaOrg\Rating $contentRating + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $publishingPrinciples * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContentRating($contentRating) + public function setPublishingPrinciples($publishingPrinciples) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", - "\OpenActive\Models\SchemaOrg\Rating", ]; - $contentRating = self::checkTypes($contentRating, $types); + $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); - $this->contentRating = $contentRating; + $this->publishingPrinciples = $publishingPrinciples; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getSize() + public function getRecordedAt() { - return $this->size; + return $this->recordedAt; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification $size + * @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 setSize($size) + public function setRecordedAt($recordedAt) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Event", "string", - "\OpenActive\Models\SchemaOrg\SizeSpecification", ]; - $size = self::checkTypes($size, $types); + $recordedAt = self::checkTypes($recordedAt, $types); - $this->size = $size; + $this->recordedAt = $recordedAt; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string */ - public function getIsPartOf() + public function getReleasedEvent() { - return $this->isPartOf; + return $this->releasedEvent; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $isPartOf + * @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 setIsPartOf($isPartOf) + public function setReleasedEvent($releasedEvent) { $types = [ + "\OpenActive\Models\SchemaOrg\PublicationEvent", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $isPartOf = self::checkTypes($isPartOf, $types); + $releasedEvent = self::checkTypes($releasedEvent, $types); - $this->isPartOf = $isPartOf; + $this->releasedEvent = $releasedEvent; } /** - * @return DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getTemporal() + public function getReview() { - return $this->temporal; + return $this->review; } /** - * @param DateTime|string|null $temporal + * @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 setTemporal($temporal) + public function setReview($review) { $types = [ - "DateTime", + "\OpenActive\Models\SchemaOrg\Review", "string", - "null", ]; - $temporal = self::checkTypes($temporal, $types); + $review = self::checkTypes($review, $types); - $this->temporal = $temporal; + $this->review = $review; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getThumbnailUrl() + public function getReviews() { - return $this->thumbnailUrl; + return $this->reviews; } /** - * @param string $thumbnailUrl + * @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 setThumbnailUrl($thumbnailUrl) + public function setReviews($reviews) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $thumbnailUrl = self::checkTypes($thumbnailUrl, $types); + $reviews = self::checkTypes($reviews, $types); - $this->thumbnailUrl = $thumbnailUrl; + $this->reviews = $reviews; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return string */ - public function getInLanguage() + public function getSchemaVersion() { - return $this->inLanguage; + return $this->schemaVersion; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @param string $schemaVersion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInLanguage($inLanguage) + public function setSchemaVersion($schemaVersion) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $schemaVersion = self::checkTypes($schemaVersion, $types); - $this->inLanguage = $inLanguage; + $this->schemaVersion = $schemaVersion; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return Date|null */ - public function getLicense() + public function getSdDatePublished() { - return $this->license; + return $this->sdDatePublished; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $license + * @param Date|null $sdDatePublished * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLicense($license) + public function setSdDatePublished($sdDatePublished) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "Date", + "null", ]; - $license = self::checkTypes($license, $types); + $sdDatePublished = self::checkTypes($sdDatePublished, $types); - $this->license = $license; + $this->sdDatePublished = $sdDatePublished; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getCreator() + public function getSdLicense() { - return $this->creator; + return $this->sdLicense; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creator + * @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 setCreator($creator) + public function setSdLicense($sdLicense) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $creator = self::checkTypes($creator, $types); + $sdLicense = self::checkTypes($sdLicense, $types); - $this->creator = $creator; + $this->sdLicense = $sdLicense; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getReviews() + public function getSdPublisher() { - return $this->reviews; + return $this->sdPublisher; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sdPublisher * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviews($reviews) + public function setSdPublisher($sdPublisher) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $sdPublisher = self::checkTypes($sdPublisher, $types); - $this->reviews = $reviews; + $this->sdPublisher = $sdPublisher; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string */ - public function getAbout() + public function getSize() { - return $this->about; + return $this->size; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $about + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string $size * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAbout($about) + public function setSize($size) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\SizeSpecification", "string", ]; - $about = self::checkTypes($about, $types); + $size = self::checkTypes($size, $types); - $this->about = $about; + $this->size = $size; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getIsFamilyFriendly() + public function getSourceOrganization() { - return $this->isFamilyFriendly; + return $this->sourceOrganization; } /** - * @param bool|null $isFamilyFriendly + * @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 setIsFamilyFriendly($isFamilyFriendly) + public function setSourceOrganization($sourceOrganization) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); + $sourceOrganization = self::checkTypes($sourceOrganization, $types); - $this->isFamilyFriendly = $isFamilyFriendly; + $this->sourceOrganization = $sourceOrganization; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getHeadline() + public function getSpatial() { - return $this->headline; + return $this->spatial; } /** - * @param string $headline + * @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 setHeadline($headline) + public function setSpatial($spatial) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $headline = self::checkTypes($headline, $types); + $spatial = self::checkTypes($spatial, $types); - $this->headline = $headline; + $this->spatial = $spatial; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getAccessibilityAPI() + public function getSpatialCoverage() { - return $this->accessibilityAPI; + return $this->spatialCoverage; } /** - * @param string $accessibilityAPI + * @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 setAccessibilityAPI($accessibilityAPI) + public function setSpatialCoverage($spatialCoverage) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $accessibilityAPI = self::checkTypes($accessibilityAPI, $types); + $spatialCoverage = self::checkTypes($spatialCoverage, $types); - $this->accessibilityAPI = $accessibilityAPI; + $this->spatialCoverage = $spatialCoverage; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPublisherImprint() + public function getSponsor() { - return $this->publisherImprint; + return $this->sponsor; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $publisherImprint + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublisherImprint($publisherImprint) + public function setSponsor($sponsor) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $publisherImprint = self::checkTypes($publisherImprint, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->publisherImprint = $publisherImprint; + $this->sponsor = $sponsor; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getIsBasedOnUrl() + public function getTeaches() { - return $this->isBasedOnUrl; + return $this->teaches; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product $isBasedOnUrl + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsBasedOnUrl($isBasedOnUrl) + public function setTeaches($teaches) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", - "\OpenActive\Models\SchemaOrg\Product", ]; - $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types); + $teaches = self::checkTypes($teaches, $types); - $this->isBasedOnUrl = $isBasedOnUrl; + $this->teaches = $teaches; } /** - * @return \OpenActive\Models\SchemaOrg\MediaObject|string + * @return DateTime|string|null */ - public function getEncodings() + public function getTemporal() { - return $this->encodings; + return $this->temporal; } /** - * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encodings + * @param DateTime|string|null $temporal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEncodings($encodings) + public function setTemporal($temporal) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaObject", + "DateTime", "string", + "null", ]; - $encodings = self::checkTypes($encodings, $types); + $temporal = self::checkTypes($temporal, $types); - $this->encodings = $encodings; + $this->temporal = $temporal; } /** - * @return \OpenActive\Models\SchemaOrg\Claim|string + * @return DateTime|string|null */ - public function getInterpretedAsClaim() + public function getTemporalCoverage() { - return $this->interpretedAsClaim; + return $this->temporalCoverage; } /** - * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim + * @param DateTime|string|null $temporalCoverage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInterpretedAsClaim($interpretedAsClaim) + public function setTemporalCoverage($temporalCoverage) { $types = [ - "\OpenActive\Models\SchemaOrg\Claim", + "DateTime", "string", + "null", ]; - $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types); + $temporalCoverage = self::checkTypes($temporalCoverage, $types); - $this->interpretedAsClaim = $interpretedAsClaim; + $this->temporalCoverage = $temporalCoverage; } /** * @return string */ - public function getAccessibilityControl() + public function getText() { - return $this->accessibilityControl; + return $this->text; } /** - * @param string $accessibilityControl + * @param string $text * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessibilityControl($accessibilityControl) + public function setText($text) { $types = [ "string", ]; - $accessibilityControl = self::checkTypes($accessibilityControl, $types); + $text = self::checkTypes($text, $types); - $this->accessibilityControl = $accessibilityControl; + $this->text = $text; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getCitation() + public function getThumbnail() { - return $this->citation; + return $this->thumbnail; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $citation + * @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 setCitation($citation) + public function setThumbnail($thumbnail) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $citation = self::checkTypes($citation, $types); + $thumbnail = self::checkTypes($thumbnail, $types); - $this->citation = $citation; + $this->thumbnail = $thumbnail; } /** - * @return string|Number|null + * @return string */ - public function getVersion() + public function getThumbnailUrl() { - return $this->version; + return $this->thumbnailUrl; } /** - * @param string|Number|null $version + * @param string $thumbnailUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVersion($version) + public function setThumbnailUrl($thumbnailUrl) { $types = [ "string", - "Number", - "null", ]; - $version = self::checkTypes($version, $types); + $thumbnailUrl = self::checkTypes($thumbnailUrl, $types); - $this->version = $version; + $this->thumbnailUrl = $thumbnailUrl; } /** - * @return \OpenActive\Models\SchemaOrg\WebPage|string + * @return DateInterval|string|null */ - public function getArchivedAt() + public function getTimeRequired() { - return $this->archivedAt; + return $this->timeRequired; } /** - * @param \OpenActive\Models\SchemaOrg\WebPage|string $archivedAt + * @param DateInterval|string|null $timeRequired * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArchivedAt($archivedAt) + public function setTimeRequired($timeRequired) { $types = [ - "\OpenActive\Models\SchemaOrg\WebPage", + "DateInterval", "string", + "null", ]; - $archivedAt = self::checkTypes($archivedAt, $types); + $timeRequired = self::checkTypes($timeRequired, $types); - $this->archivedAt = $archivedAt; + $this->timeRequired = $timeRequired; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getLearningResourceType() + public function getTranslationOfWork() { - return $this->learningResourceType; + return $this->translationOfWork; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType + * @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 setLearningResourceType($learningResourceType) + public function setTranslationOfWork($translationOfWork) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $learningResourceType = self::checkTypes($learningResourceType, $types); + $translationOfWork = self::checkTypes($translationOfWork, $types); - $this->learningResourceType = $learningResourceType; + $this->translationOfWork = $translationOfWork; } /** - * @return \OpenActive\Models\SchemaOrg\MediaObject|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getEncoding() + public function getTranslator() { - return $this->encoding; + return $this->translator; } /** - * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encoding + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $translator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEncoding($encoding) + public function setTranslator($translator) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaObject", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $encoding = self::checkTypes($encoding, $types); + $translator = self::checkTypes($translator, $types); - $this->encoding = $encoding; + $this->translator = $translator; } /** - * @return \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string + * @return string */ - public function getAudio() + public function getTypicalAgeRange() { - return $this->audio; + return $this->typicalAgeRange; } /** - * @param \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string $audio + * @param string $typicalAgeRange * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudio($audio) + public function setTypicalAgeRange($typicalAgeRange) { $types = [ - "\OpenActive\Models\SchemaOrg\AudioObject", - "\OpenActive\Models\SchemaOrg\MusicRecording", - "\OpenActive\Models\SchemaOrg\Clip", "string", ]; - $audio = self::checkTypes($audio, $types); + $typicalAgeRange = self::checkTypes($typicalAgeRange, $types); - $this->audio = $audio; + $this->typicalAgeRange = $typicalAgeRange; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getMentions() + public function getUsageInfo() { - return $this->mentions; + return $this->usageInfo; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $mentions + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $usageInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMentions($mentions) + public function setUsageInfo($usageInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $mentions = self::checkTypes($mentions, $types); + $usageInfo = self::checkTypes($usageInfo, $types); - $this->mentions = $mentions; + $this->usageInfo = $usageInfo; } /** - * @return \OpenActive\Models\SchemaOrg\ItemList|string + * @return string|Number|null */ - public function getAccessModeSufficient() + public function getVersion() { - return $this->accessModeSufficient; + return $this->version; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|string $accessModeSufficient + * @param string|Number|null $version * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessModeSufficient($accessModeSufficient) + public function setVersion($version) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", "string", + "Number", + "null", ]; - $accessModeSufficient = self::checkTypes($accessModeSufficient, $types); + $version = self::checkTypes($version, $types); - $this->accessModeSufficient = $accessModeSufficient; + $this->version = $version; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getHasPart() + public function getVideo() { - return $this->hasPart; + return $this->video; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $hasPart + * @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 setHasPart($hasPart) + public function setVideo($video) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Clip", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $hasPart = self::checkTypes($hasPart, $types); + $video = self::checkTypes($video, $types); - $this->hasPart = $hasPart; + $this->video = $video; } /** - * @return DateTime|string|null + * @return int|null */ - public function getTemporalCoverage() + public function getWordCount() { - return $this->temporalCoverage; + return $this->wordCount; } /** - * @param DateTime|string|null $temporalCoverage + * @param int|null $wordCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTemporalCoverage($temporalCoverage) + public function setWordCount($wordCount) { $types = [ - "DateTime", - "string", + "int", "null", ]; - $temporalCoverage = self::checkTypes($temporalCoverage, $types); + $wordCount = self::checkTypes($wordCount, $types); - $this->temporalCoverage = $temporalCoverage; + $this->wordCount = $wordCount; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getContributor() + public function getWorkExample() { - return $this->contributor; + return $this->workExample; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor + * @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 setContributor($contributor) + public function setWorkExample($workExample) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $contributor = self::checkTypes($contributor, $types); + $workExample = self::checkTypes($workExample, $types); - $this->contributor = $contributor; + $this->workExample = $workExample; } /** - * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getVideo() + public function getWorkTranslation() { - return $this->video; + return $this->workTranslation; } /** - * @param \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string $video + * @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 setVideo($video) + public function setWorkTranslation($workTranslation) { $types = [ - "\OpenActive\Models\SchemaOrg\Clip", - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $video = self::checkTypes($video, $types); + $workTranslation = self::checkTypes($workTranslation, $types); - $this->video = $video; + $this->workTranslation = $workTranslation; } } diff --git a/src/Models/SchemaOrg/CreativeWorkSeason.php b/src/Models/SchemaOrg/CreativeWorkSeason.php index e094eb1e..679f903e 100644 --- a/src/Models/SchemaOrg/CreativeWorkSeason.php +++ b/src/Models/SchemaOrg/CreativeWorkSeason.php @@ -17,32 +17,32 @@ public static function getType() public static function fieldList() { $fields = [ - "startDate" => "startDate", - "director" => "director", "actor" => "actor", - "trailer" => "trailer", + "director" => "director", "endDate" => "endDate", + "episode" => "episode", "episodes" => "episodes", "numberOfEpisodes" => "numberOfEpisodes", "partOfSeries" => "partOfSeries", "productionCompany" => "productionCompany", "seasonNumber" => "seasonNumber", - "episode" => "episode", + "startDate" => "startDate", + "trailer" => "trailer", ]; 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\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|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. + * 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 @@ -50,28 +50,20 @@ public static function fieldList() { 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 - */ - protected $actor; - - /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var Date|DateTime|null */ - protected $trailer; + protected $endDate; /** - * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * An episode of a TV, radio or game media within a series or season. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $endDate; + protected $episode; /** * An episode of a TV/radio series or season. @@ -98,7 +90,7 @@ public static function fieldList() { protected $partOfSeries; /** - * 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 @@ -114,37 +106,45 @@ public static function fieldList() { protected $seasonNumber; /** - * An episode of a tv, radio or game media within a series or season. + * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var Date|DateTime|null */ - protected $episode; + protected $startDate; /** - * @return Date|DateTime|null + * The trailer of a movie or TV/radio series, season, episode, etc. + * + * + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getStartDate() + protected $trailer; + + /** + * @return \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getActor() { - return $this->startDate; + return $this->actor; } /** - * @param Date|DateTime|null $startDate + * @param \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|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\PerformingGroup", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $startDate = self::checkTypes($startDate, $types); + $actor = self::checkTypes($actor, $types); - $this->startDate = $startDate; + $this->actor = $actor; } /** @@ -173,79 +173,54 @@ public function setDirector($director) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return Date|DateTime|null */ - public function getActor() + public function getEndDate() { - return $this->actor; + return $this->endDate; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setEndDate($endDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "DateTime", + "null", ]; - $actor = self::checkTypes($actor, $types); + $endDate = self::checkTypes($endDate, $types); - $this->actor = $actor; + $this->endDate = $endDate; } /** - * @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); - - $this->trailer = $trailer; - } - - /** - * @return Date|DateTime|null - */ - public function getEndDate() - { - return $this->endDate; - } - - /** - * @param Date|DateTime|null $endDate - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setEndDate($endDate) - { - $types = [ - "Date", - "DateTime", - "null", - ]; - - $endDate = self::checkTypes($endDate, $types); + $episode = self::checkTypes($episode, $types); - $this->endDate = $endDate; + $this->episode = $episode; } /** @@ -375,28 +350,54 @@ public function setSeasonNumber($seasonNumber) } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return Date|DateTime|null */ - public function getEpisode() + public function getStartDate() { - return $this->episode; + return $this->startDate; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisode($episode) + public function setStartDate($startDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "Date", + "DateTime", + "null", + ]; + + $startDate = self::checkTypes($startDate, $types); + + $this->startDate = $startDate; + } + + /** + * @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 setTrailer($trailer) + { + $types = [ + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $episode = self::checkTypes($episode, $types); + $trailer = self::checkTypes($trailer, $types); - $this->episode = $episode; + $this->trailer = $trailer; } } diff --git a/src/Models/SchemaOrg/CreativeWorkSeries.php b/src/Models/SchemaOrg/CreativeWorkSeries.php index 42570c15..e4dd6373 100644 --- a/src/Models/SchemaOrg/CreativeWorkSeries.php +++ b/src/Models/SchemaOrg/CreativeWorkSeries.php @@ -17,22 +17,14 @@ public static function getType() public static function fieldList() { $fields = [ - "startDate" => "startDate", "endDate" => "endDate", "issn" => "issn", + "startDate" => "startDate", ]; 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)). - * - * - * @var Date|DateTime|null - */ - protected $startDate; - /** * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * @@ -50,30 +42,12 @@ public static function fieldList() { protected $issn; /** - * @return Date|DateTime|null - */ - public function getStartDate() - { - return $this->startDate; - } - - /** - * @param Date|DateTime|null $startDate - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * + * + * @var Date|DateTime|null */ - public function setStartDate($startDate) - { - $types = [ - "Date", - "DateTime", - "null", - ]; - - $startDate = self::checkTypes($startDate, $types); - - $this->startDate = $startDate; - } + protected $startDate; /** * @return Date|DateTime|null @@ -125,4 +99,30 @@ public function setIssn($issn) $this->issn = $issn; } + /** + * @return Date|DateTime|null + */ + public function getStartDate() + { + return $this->startDate; + } + + /** + * @param Date|DateTime|null $startDate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setStartDate($startDate) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $startDate = self::checkTypes($startDate, $types); + + $this->startDate = $startDate; + } + } diff --git a/src/Models/SchemaOrg/Credential.php b/src/Models/SchemaOrg/Credential.php new file mode 100644 index 00000000..0f6f450e --- /dev/null +++ b/src/Models/SchemaOrg/Credential.php @@ -0,0 +1,162 @@ + "credentialCategory", + "recognizedBy" => "recognizedBy", + "validFor" => "validFor", + "validIn" => "validIn", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * The category or type of credential being described, for example "degree”, “certificate”, “badge”, or more specific term. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + */ + 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; + + /** + * The duration of validity of a permit or similar thing. + * + * + * @var DateInterval|string|null + */ + protected $validFor; + + /** + * 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; + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + */ + public function getCredentialCategory() + { + return $this->credentialCategory; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $credentialCategory + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCredentialCategory($credentialCategory) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", + ]; + + $credentialCategory = self::checkTypes($credentialCategory, $types); + + $this->credentialCategory = $credentialCategory; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|string + */ + public function getRecognizedBy() + { + return $this->recognizedBy; + } + + /** + * @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 setRecognizedBy($recognizedBy) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; + + $recognizedBy = self::checkTypes($recognizedBy, $types); + + $this->recognizedBy = $recognizedBy; + } + + /** + * @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\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; + } + +} 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/Quantity.php b/src/Models/SchemaOrg/DENonprofitType.php similarity index 75% rename from src/Models/SchemaOrg/Quantity.php rename to src/Models/SchemaOrg/DENonprofitType.php index 3759c46a..52caa3ca 100644 --- a/src/Models/SchemaOrg/Quantity.php +++ b/src/Models/SchemaOrg/DENonprofitType.php @@ -5,14 +5,14 @@ /** * */ -class Quantity extends \OpenActive\Models\SchemaOrg\Intangible +class DENonprofitType extends \OpenActive\BaseModel { /** * @return string[]|null */ public static function getType() { - return "schema:Quantity"; + return "schema:DENonprofitType"; } public static function fieldList() { diff --git a/src/Models/SchemaOrg/DataCatalog.php b/src/Models/SchemaOrg/DataCatalog.php index 5f598c9d..ad626cf5 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 \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|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 [[MeasurementMethodEnum]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|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 \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null + */ + public function getMeasurementMethod() + { + return $this->measurementMethod; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|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 = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", "string", + "null", ]; - $measurementTechnique = self::checkTypes($measurementTechnique, $types); + $measurementMethod = self::checkTypes($measurementMethod, $types); - $this->measurementTechnique = $measurementTechnique; + $this->measurementMethod = $measurementMethod; } /** - * @return \OpenActive\Models\SchemaOrg\Dataset|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null */ - public function getDataset() + public function getMeasurementTechnique() { - return $this->dataset; + return $this->measurementTechnique; } /** - * @param \OpenActive\Models\SchemaOrg\Dataset|string $dataset + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|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", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", "string", + "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..9321a5f8 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 \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|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 [[MeasurementMethodEnum]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null */ protected $measurementTechnique; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null + */ + public function getMeasurementMethod() + { + return $this->measurementMethod; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null $measurementMethod + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementMethod($measurementMethod) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "string", + "null", + ]; + + $measurementMethod = self::checkTypes($measurementMethod, $types); + + $this->measurementMethod = $measurementMethod; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null */ public function getMeasurementTechnique() { @@ -48,14 +82,17 @@ public function getMeasurementTechnique() } /** - * @param string $measurementTechnique + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null $measurementTechnique * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setMeasurementTechnique($measurementTechnique) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", "string", + "null", ]; $measurementTechnique = self::checkTypes($measurementTechnique, $types); diff --git a/src/Models/SchemaOrg/DataFeed.php b/src/Models/SchemaOrg/DataFeed.php index 15d9af55..f745f2eb 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\DataFeedItem|string|\OpenActive\Models\SchemaOrg\Thing */ protected $dataFeedElement; /** - * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\DataFeedItem|string + * @return \OpenActive\Models\SchemaOrg\DataFeedItem|string|\OpenActive\Models\SchemaOrg\Thing */ public function getDataFeedElement() { @@ -40,16 +40,16 @@ public function getDataFeedElement() } /** - * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\DataFeedItem|string $dataFeedElement + * @param \OpenActive\Models\SchemaOrg\DataFeedItem|string|\OpenActive\Models\SchemaOrg\Thing $dataFeedElement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setDataFeedElement($dataFeedElement) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", "\OpenActive\Models\SchemaOrg\DataFeedItem", "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; $dataFeedElement = self::checkTypes($dataFeedElement, $types); diff --git a/src/Models/SchemaOrg/DataFeedItem.php b/src/Models/SchemaOrg/DataFeedItem.php index 6cd37b9f..1dacce25 100644 --- a/src/Models/SchemaOrg/DataFeedItem.php +++ b/src/Models/SchemaOrg/DataFeedItem.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "dateDeleted" => "dateDeleted", "dateCreated" => "dateCreated", + "dateDeleted" => "dateDeleted", "dateModified" => "dateModified", "item" => "item", ]; @@ -27,20 +27,20 @@ public static function fieldList() { } /** - * The datetime the item was removed from the DataFeed. + * The date on which the CreativeWork was created or the item was added to a DataFeed. * * * @var Date|DateTime|null */ - protected $dateDeleted; + protected $dateCreated; /** - * The date on which the CreativeWork was created or the item was added to a DataFeed. + * The datetime the item was removed from the DataFeed. * * * @var Date|DateTime|null */ - protected $dateCreated; + protected $dateDeleted; /** * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed. @@ -51,7 +51,7 @@ public static function fieldList() { protected $dateModified; /** - * 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 @@ -61,17 +61,17 @@ public static function fieldList() { /** * @return Date|DateTime|null */ - public function getDateDeleted() + public function getDateCreated() { - return $this->dateDeleted; + return $this->dateCreated; } /** - * @param Date|DateTime|null $dateDeleted + * @param Date|DateTime|null $dateCreated * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateDeleted($dateDeleted) + public function setDateCreated($dateCreated) { $types = [ "Date", @@ -79,25 +79,25 @@ public function setDateDeleted($dateDeleted) "null", ]; - $dateDeleted = self::checkTypes($dateDeleted, $types); + $dateCreated = self::checkTypes($dateCreated, $types); - $this->dateDeleted = $dateDeleted; + $this->dateCreated = $dateCreated; } /** * @return Date|DateTime|null */ - public function getDateCreated() + public function getDateDeleted() { - return $this->dateCreated; + return $this->dateDeleted; } /** - * @param Date|DateTime|null $dateCreated + * @param Date|DateTime|null $dateDeleted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateCreated($dateCreated) + public function setDateDeleted($dateDeleted) { $types = [ "Date", @@ -105,9 +105,9 @@ public function setDateCreated($dateCreated) "null", ]; - $dateCreated = self::checkTypes($dateCreated, $types); + $dateDeleted = self::checkTypes($dateDeleted, $types); - $this->dateCreated = $dateCreated; + $this->dateDeleted = $dateDeleted; } /** diff --git a/src/Models/SchemaOrg/Dataset.php b/src/Models/SchemaOrg/Dataset.php index 0419a3de..e56aad8a 100644 --- a/src/Models/SchemaOrg/Dataset.php +++ b/src/Models/SchemaOrg/Dataset.php @@ -18,13 +18,14 @@ public static function getType() public static function fieldList() { $fields = [ "catalog" => "catalog", - "includedDataCatalog" => "includedDataCatalog", - "variableMeasured" => "variableMeasured", - "measurementTechnique" => "measurementTechnique", "datasetTimeInterval" => "datasetTimeInterval", "distribution" => "distribution", - "issn" => "issn", + "includedDataCatalog" => "includedDataCatalog", "includedInDataCatalog" => "includedInDataCatalog", + "issn" => "issn", + "measurementMethod" => "measurementMethod", + "measurementTechnique" => "measurementTechnique", + "variableMeasured" => "variableMeasured", ]; return array_merge(parent::fieldList(), $fields); @@ -39,68 +40,74 @@ public static function fieldList() { protected $catalog; /** - * A data catalog which contains this dataset (this property was previously 'catalog', preferred name is now 'includedInDataCatalog'). + * The range of temporal applicability of a dataset, e.g. for a 2011 census dataset, the year 2011 (in ISO 8601 time interval format). * * - * @var \OpenActive\Models\SchemaOrg\DataCatalog|string + * @var DateTime|null */ - protected $includedDataCatalog; + protected $datasetTimeInterval; /** - * 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 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\PropertyValue|string + * @var \OpenActive\Models\SchemaOrg\DataDownload|string */ - protected $variableMeasured; + protected $distribution; /** - * 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 (this property was previously 'catalog', preferred name is now 'includedInDataCatalog'). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DataCatalog|string */ - protected $measurementTechnique; + protected $includedDataCatalog; /** - * The range of temporal applicability of a dataset, e.g. for a 2011 census dataset, the year 2011 (in ISO 8601 time interval format). + * A data catalog which contains this dataset. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\DataCatalog|string */ - protected $datasetTimeInterval; + protected $includedInDataCatalog; /** - * A downloadable form of this dataset, at a specific location, in a specific format. + * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication. * * - * @var \OpenActive\Models\SchemaOrg\DataDownload|string + * @var string */ - protected $distribution; + protected $issn; /** - * 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 subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null */ - protected $issn; + protected $measurementMethod; /** - * A data catalog which contains this dataset. + * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable. + * + * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery. + * + * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". + * + * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMethodEnum]]. * * - * @var \OpenActive\Models\SchemaOrg\DataCatalog|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null */ - protected $includedInDataCatalog; + protected $measurementTechnique; + + /** + * 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\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|null + */ + protected $variableMeasured; /** * @return \OpenActive\Models\SchemaOrg\DataCatalog|string @@ -128,176 +135,209 @@ public function setCatalog($catalog) } /** - * @return \OpenActive\Models\SchemaOrg\DataCatalog|string + * @return DateTime|null */ - public function getIncludedDataCatalog() + public function getDatasetTimeInterval() { - return $this->includedDataCatalog; + return $this->datasetTimeInterval; } /** - * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $includedDataCatalog + * @param DateTime|null $datasetTimeInterval * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludedDataCatalog($includedDataCatalog) + public function setDatasetTimeInterval($datasetTimeInterval) { $types = [ - "\OpenActive\Models\SchemaOrg\DataCatalog", + "DateTime", + "null", + ]; + + $datasetTimeInterval = self::checkTypes($datasetTimeInterval, $types); + + $this->datasetTimeInterval = $datasetTimeInterval; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DataDownload|string + */ + public function getDistribution() + { + return $this->distribution; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DataDownload|string $distribution + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDistribution($distribution) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DataDownload", "string", ]; - $includedDataCatalog = self::checkTypes($includedDataCatalog, $types); + $distribution = self::checkTypes($distribution, $types); - $this->includedDataCatalog = $includedDataCatalog; + $this->distribution = $distribution; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return \OpenActive\Models\SchemaOrg\DataCatalog|string */ - public function getVariableMeasured() + public function getIncludedDataCatalog() { - return $this->variableMeasured; + return $this->includedDataCatalog; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $variableMeasured + * @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 setVariableMeasured($variableMeasured) + public function setIncludedDataCatalog($includedDataCatalog) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\DataCatalog", "string", ]; - $variableMeasured = self::checkTypes($variableMeasured, $types); + $includedDataCatalog = self::checkTypes($includedDataCatalog, $types); - $this->variableMeasured = $variableMeasured; + $this->includedDataCatalog = $includedDataCatalog; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DataCatalog|string */ - public function getMeasurementTechnique() + public function getIncludedInDataCatalog() { - return $this->measurementTechnique; + return $this->includedInDataCatalog; } /** - * @param string $measurementTechnique + * @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 setMeasurementTechnique($measurementTechnique) + public function setIncludedInDataCatalog($includedInDataCatalog) { $types = [ + "\OpenActive\Models\SchemaOrg\DataCatalog", "string", ]; - $measurementTechnique = self::checkTypes($measurementTechnique, $types); + $includedInDataCatalog = self::checkTypes($includedInDataCatalog, $types); - $this->measurementTechnique = $measurementTechnique; + $this->includedInDataCatalog = $includedInDataCatalog; } /** - * @return DateTime|null + * @return string */ - public function getDatasetTimeInterval() + public function getIssn() { - return $this->datasetTimeInterval; + return $this->issn; } /** - * @param DateTime|null $datasetTimeInterval + * @param string $issn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatasetTimeInterval($datasetTimeInterval) + public function setIssn($issn) { $types = [ - "DateTime", - "null", + "string", ]; - $datasetTimeInterval = self::checkTypes($datasetTimeInterval, $types); + $issn = self::checkTypes($issn, $types); - $this->datasetTimeInterval = $datasetTimeInterval; + $this->issn = $issn; } /** - * @return \OpenActive\Models\SchemaOrg\DataDownload|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null */ - public function getDistribution() + public function getMeasurementMethod() { - return $this->distribution; + return $this->measurementMethod; } /** - * @param \OpenActive\Models\SchemaOrg\DataDownload|string $distribution + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null $measurementMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDistribution($distribution) + public function setMeasurementMethod($measurementMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\DataDownload", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", "string", + "null", ]; - $distribution = self::checkTypes($distribution, $types); + $measurementMethod = self::checkTypes($measurementMethod, $types); - $this->distribution = $distribution; + $this->measurementMethod = $measurementMethod; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null */ - public function getIssn() + public function getMeasurementTechnique() { - return $this->issn; + return $this->measurementTechnique; } /** - * @param string $issn + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null $measurementTechnique * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIssn($issn) + public function setMeasurementTechnique($measurementTechnique) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", "string", + "null", ]; - $issn = self::checkTypes($issn, $types); + $measurementTechnique = self::checkTypes($measurementTechnique, $types); - $this->issn = $issn; + $this->measurementTechnique = $measurementTechnique; } /** - * @return \OpenActive\Models\SchemaOrg\DataCatalog|string + * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|null */ - public function getIncludedInDataCatalog() + public function getVariableMeasured() { - return $this->includedInDataCatalog; + return $this->variableMeasured; } /** - * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $includedInDataCatalog + * @param \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|null $variableMeasured * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludedInDataCatalog($includedInDataCatalog) + public function setVariableMeasured($variableMeasured) { $types = [ - "\OpenActive\Models\SchemaOrg\DataCatalog", + "\OpenActive\Enums\PropertyEnumeration", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\StatisticalVariable", "string", + "null", ]; - $includedInDataCatalog = self::checkTypes($includedInDataCatalog, $types); + $variableMeasured = self::checkTypes($variableMeasured, $types); - $this->includedInDataCatalog = $includedInDataCatalog; + $this->variableMeasured = $variableMeasured; } } diff --git a/src/Models/SchemaOrg/DatedMoneySpecification.php b/src/Models/SchemaOrg/DatedMoneySpecification.php index 4c29ff17..f838202c 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", + "currency" => "currency", + "endDate" => "endDate", + "startDate" => "startDate", ]; 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 amount of money. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - protected $startDate; + protected $amount; /** - * The end 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 $endDate; + 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 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 $currency; + protected $endDate; /** - * The amount of money. + * The start 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 $startDate; /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - public function getStartDate() + public function getAmount() { - return $this->startDate; + return $this->amount; } /** - * @param Date|DateTime|null $startDate + * @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 setStartDate($startDate) + public function setAmount($amount) { $types = [ - "Date", - "DateTime", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", + "Number", "null", ]; - $startDate = self::checkTypes($startDate, $types); + $amount = self::checkTypes($amount, $types); - $this->startDate = $startDate; + $this->amount = $amount; } /** - * @return Date|DateTime|null + * @return string */ - public function getEndDate() + public function getCurrency() { - return $this->endDate; + return $this->currency; } /** - * @param Date|DateTime|null $endDate + * @param string $currency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndDate($endDate) + public function setCurrency($currency) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $endDate = self::checkTypes($endDate, $types); + $currency = self::checkTypes($currency, $types); - $this->endDate = $endDate; + $this->currency = $currency; } /** - * @return string + * @return Date|DateTime|null */ - public function getCurrency() + public function getEndDate() { - return $this->currency; + return $this->endDate; } /** - * @param string $currency + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCurrency($currency) + public function setEndDate($endDate) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $currency = self::checkTypes($currency, $types); + $endDate = self::checkTypes($endDate, $types); - $this->currency = $currency; + $this->endDate = $endDate; } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return Date|DateTime|null */ - public function getAmount() + public function getStartDate() { - return $this->amount; + return $this->startDate; } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAmount($amount) + public function setStartDate($startDate) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "Date", + "DateTime", "null", ]; - $amount = self::checkTypes($amount, $types); + $startDate = self::checkTypes($startDate, $types); - $this->amount = $amount; + $this->startDate = $startDate; } } diff --git a/src/Models/SchemaOrg/DeclarationOfConformity.php b/src/Models/SchemaOrg/DeclarationOfConformity.php new file mode 100644 index 00000000..a7bbab52 --- /dev/null +++ b/src/Models/SchemaOrg/DeclarationOfConformity.php @@ -0,0 +1,25 @@ + "addressCountry", "addressRegion" => "addressRegion", - "postalCodeRange" => "postalCodeRange", - "postalCodePrefix" => "postalCodePrefix", "postalCode" => "postalCode", + "postalCodePrefix" => "postalCodePrefix", + "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 @@ -36,20 +36,20 @@ public static function fieldList() { 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 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) such as the Province in Italy or Region in Germany. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ protected $addressRegion; /** - * A defined range of postal codes. + * The postal code. For example, 94043. * * - * @var \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string + * @var string */ - protected $postalCodeRange; + protected $postalCode; /** * A defined range of postal codes indicated by a common textual prefix. Used for non-numeric systems such as UK. @@ -60,12 +60,12 @@ 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 @@ -93,7 +93,7 @@ public function setAddressCountry($addressCountry) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ public function getAddressRegion() { @@ -101,13 +101,14 @@ public function getAddressRegion() } /** - * @param string $addressRegion + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $addressRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAddressRegion($addressRegion) { $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", ]; @@ -117,28 +118,27 @@ public function setAddressRegion($addressRegion) } /** - * @return \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string + * @return string */ - public function getPostalCodeRange() + public function getPostalCode() { - return $this->postalCodeRange; + return $this->postalCode; } /** - * @param \OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification|string $postalCodeRange + * @param string $postalCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCodeRange($postalCodeRange) + public function setPostalCode($postalCode) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalCodeRangeSpecification", "string", ]; - $postalCodeRange = self::checkTypes($postalCodeRange, $types); + $postalCode = self::checkTypes($postalCode, $types); - $this->postalCodeRange = $postalCodeRange; + $this->postalCode = $postalCode; } /** @@ -166,27 +166,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..20921d51 100644 --- a/src/Models/SchemaOrg/DefinedTerm.php +++ b/src/Models/SchemaOrg/DefinedTerm.php @@ -17,55 +17,65 @@ public static function getType() public static function fieldList() { $fields = [ - "termCode" => "termCode", + "about" => "about", "inDefinedTermSet" => "inDefinedTermSet", + "termCode" => "termCode", ]; return array_merge(parent::fieldList(), $fields); } /** - * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]] + * The subject matter of an object. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $termCode; + protected $about; /** * A [[DefinedTermSet]] that contains this term. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTermSet + * @var \OpenActive\Models\SchemaOrg\DefinedTermSet|string */ protected $inDefinedTermSet; /** - * @return string + * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]]. + * + * + * @var string */ - public function getTermCode() + protected $termCode; + + /** + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getAbout() { - return $this->termCode; + return $this->about; } /** - * @param string $termCode + * @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 setTermCode($termCode) + public function setAbout($about) { $types = [ + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $termCode = self::checkTypes($termCode, $types); + $about = self::checkTypes($about, $types); - $this->termCode = $termCode; + $this->about = $about; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTermSet + * @return \OpenActive\Models\SchemaOrg\DefinedTermSet|string */ public function getInDefinedTermSet() { @@ -73,15 +83,15 @@ public function getInDefinedTermSet() } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTermSet $inDefinedTermSet + * @param \OpenActive\Models\SchemaOrg\DefinedTermSet|string $inDefinedTermSet * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setInDefinedTermSet($inDefinedTermSet) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTermSet", + "string", ]; $inDefinedTermSet = self::checkTypes($inDefinedTermSet, $types); @@ -89,4 +99,28 @@ public function setInDefinedTermSet($inDefinedTermSet) $this->inDefinedTermSet = $inDefinedTermSet; } + /** + * @return string + */ + public function getTermCode() + { + return $this->termCode; + } + + /** + * @param string $termCode + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTermCode($termCode) + { + $types = [ + "string", + ]; + + $termCode = self::checkTypes($termCode, $types); + + $this->termCode = $termCode; + } + } diff --git a/src/Models/SchemaOrg/DefinedTermSet.php b/src/Models/SchemaOrg/DefinedTermSet.php index ecc4fd76..94d5d43e 100644 --- a/src/Models/SchemaOrg/DefinedTermSet.php +++ b/src/Models/SchemaOrg/DefinedTermSet.php @@ -17,12 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ + "about" => "about", "hasDefinedTerm" => "hasDefinedTerm", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The subject matter of an object. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|string + */ + protected $about; + /** * A Defined Term contained in this term set. * @@ -31,6 +40,31 @@ public static function fieldList() { */ protected $hasDefinedTerm; + /** + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getAbout() + { + return $this->about; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Thing|string $about + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAbout($about) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Thing", + "string", + ]; + + $about = self::checkTypes($about, $types); + + $this->about = $about; + } + /** * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ diff --git a/src/Models/SchemaOrg/DeliveryChargeSpecification.php b/src/Models/SchemaOrg/DeliveryChargeSpecification.php index fa5ca7f7..535ddab4 100644 --- a/src/Models/SchemaOrg/DeliveryChargeSpecification.php +++ b/src/Models/SchemaOrg/DeliveryChargeSpecification.php @@ -17,151 +17,151 @@ public static function getType() public static function fieldList() { $fields = [ - "ineligibleRegion" => "ineligibleRegion", - "eligibleRegion" => "eligibleRegion", - "areaServed" => "areaServed", "appliesToDeliveryMethod" => "appliesToDeliveryMethod", + "areaServed" => "areaServed", + "eligibleRegion" => "eligibleRegion", + "ineligibleRegion" => "ineligibleRegion", ]; return array_merge(parent::fieldList(), $fields); } /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. - * + * The delivery method(s) to which the delivery charge or payment charge specification applies. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $ineligibleRegion; + protected $appliesToDeliveryMethod; /** - * 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 \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - 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|\OpenActive\Models\SchemaOrg\Place|string */ - protected $areaServed; + protected $eligibleRegion; /** - * The delivery method(s) to which the delivery charge or payment charge specification applies. + * 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\Enums\SchemaOrg\DeliveryMethod|null + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - protected $appliesToDeliveryMethod; + protected $ineligibleRegion; /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getIneligibleRegion() + public function getAppliesToDeliveryMethod() { - return $this->ineligibleRegion; + return $this->appliesToDeliveryMethod; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion + * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $appliesToDeliveryMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIneligibleRegion($ineligibleRegion) + public function setAppliesToDeliveryMethod($appliesToDeliveryMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", ]; - $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); + $appliesToDeliveryMethod = self::checkTypes($appliesToDeliveryMethod, $types); - $this->ineligibleRegion = $ineligibleRegion; + $this->appliesToDeliveryMethod = $appliesToDeliveryMethod; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getEligibleRegion() + public function getAreaServed() { - return $this->eligibleRegion; + return $this->areaServed; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $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\AdministrativeArea", "\OpenActive\Models\SchemaOrg\GeoShape", - "string", "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $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|\OpenActive\Models\SchemaOrg\Place|string */ - 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|\OpenActive\Models\SchemaOrg\Place|string $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", + "string", ]; - $areaServed = self::checkTypes($areaServed, $types); + $eligibleRegion = self::checkTypes($eligibleRegion, $types); - $this->areaServed = $areaServed; + $this->eligibleRegion = $eligibleRegion; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getAppliesToDeliveryMethod() + public function getIneligibleRegion() { - return $this->appliesToDeliveryMethod; + return $this->ineligibleRegion; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $appliesToDeliveryMethod + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $ineligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAppliesToDeliveryMethod($appliesToDeliveryMethod) + public function setIneligibleRegion($ineligibleRegion) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $appliesToDeliveryMethod = self::checkTypes($appliesToDeliveryMethod, $types); + $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - $this->appliesToDeliveryMethod = $appliesToDeliveryMethod; + $this->ineligibleRegion = $ineligibleRegion; } } diff --git a/src/Models/SchemaOrg/DeliveryEvent.php b/src/Models/SchemaOrg/DeliveryEvent.php index 2bb6ddc0..0bcbe147 100644 --- a/src/Models/SchemaOrg/DeliveryEvent.php +++ b/src/Models/SchemaOrg/DeliveryEvent.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "accessCode" => "accessCode", + "availableFrom" => "availableFrom", "availableThrough" => "availableThrough", "hasDeliveryMethod" => "hasDeliveryMethod", - "availableFrom" => "availableFrom", ]; return array_merge(parent::fieldList(), $fields); @@ -35,28 +35,28 @@ public static function fieldList() { protected $accessCode; /** - * 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. + * After this date, the item will no longer be available for pickup. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var DateTime|null */ - protected $hasDeliveryMethod; + protected $availableThrough; /** - * When the item is available for pickup from the store, locker, etc. + * Method used for delivery or shipping. * * - * @var DateTime|null + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $availableFrom; + protected $hasDeliveryMethod; /** * @return string @@ -85,76 +85,76 @@ public function setAccessCode($accessCode) /** * @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; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return DateTime|null */ - public function getHasDeliveryMethod() + public function getAvailableThrough() { - return $this->hasDeliveryMethod; + return $this->availableThrough; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $hasDeliveryMethod + * @param DateTime|null $availableThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasDeliveryMethod($hasDeliveryMethod) + public function setAvailableThrough($availableThrough) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "DateTime", "null", ]; - $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types); + $availableThrough = self::checkTypes($availableThrough, $types); - $this->hasDeliveryMethod = $hasDeliveryMethod; + $this->availableThrough = $availableThrough; } /** - * @return DateTime|null + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getAvailableFrom() + public function getHasDeliveryMethod() { - return $this->availableFrom; + return $this->hasDeliveryMethod; } /** - * @param DateTime|null $availableFrom + * @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 setAvailableFrom($availableFrom) + public function setHasDeliveryMethod($hasDeliveryMethod) { $types = [ - "DateTime", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", "null", ]; - $availableFrom = self::checkTypes($availableFrom, $types); + $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types); - $this->availableFrom = $availableFrom; + $this->hasDeliveryMethod = $hasDeliveryMethod; } } diff --git a/src/Models/SchemaOrg/DeliveryTimeSettings.php b/src/Models/SchemaOrg/DeliveryTimeSettings.php index 3347721e..a94bd5a9 100644 --- a/src/Models/SchemaOrg/DeliveryTimeSettings.php +++ b/src/Models/SchemaOrg/DeliveryTimeSettings.php @@ -17,144 +17,144 @@ public static function getType() public static function fieldList() { $fields = [ + "deliveryTime" => "deliveryTime", + "isUnlabelledFallback" => "isUnlabelledFallback", "shippingDestination" => "shippingDestination", "transitTimeLabel" => "transitTimeLabel", - "isUnlabelledFallback" => "isUnlabelledFallback", - "deliveryTime" => "deliveryTime", ]; return array_merge(parent::fieldList(), $fields); } /** - * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges. + * The total delay between the receipt of the order and the goods reaching the final customer. * * - * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string */ - protected $shippingDestination; + protected $deliveryTime; /** - * 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. + * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - protected $isUnlabelledFallback; + protected $shippingDestination; /** - * The total delay between the receipt of the order and the goods reaching the final customer. + * Label to match an [[OfferShippingDetails]] with a [[DeliveryTimeSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). * * - * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + * @var string */ - protected $deliveryTime; + protected $transitTimeLabel; /** - * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string */ - public function getShippingDestination() + public function getDeliveryTime() { - return $this->shippingDestination; + return $this->deliveryTime; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingDestination + * @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 setShippingDestination($shippingDestination) + public function setDeliveryTime($deliveryTime) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedRegion", + "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime", "string", ]; - $shippingDestination = self::checkTypes($shippingDestination, $types); + $deliveryTime = self::checkTypes($deliveryTime, $types); - $this->shippingDestination = $shippingDestination; + $this->deliveryTime = $deliveryTime; } /** - * @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 \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - public function getIsUnlabelledFallback() + public function getShippingDestination() { - return $this->isUnlabelledFallback; + return $this->shippingDestination; } /** - * @param bool|null $isUnlabelledFallback + * @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 setIsUnlabelledFallback($isUnlabelledFallback) + public function setShippingDestination($shippingDestination) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\DefinedRegion", + "string", ]; - $isUnlabelledFallback = self::checkTypes($isUnlabelledFallback, $types); + $shippingDestination = self::checkTypes($shippingDestination, $types); - $this->isUnlabelledFallback = $isUnlabelledFallback; + $this->shippingDestination = $shippingDestination; } /** - * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + * @return string */ - public function getDeliveryTime() + public function getTransitTimeLabel() { - return $this->deliveryTime; + return $this->transitTimeLabel; } /** - * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime + * @param string $transitTimeLabel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeliveryTime($deliveryTime) + public function setTransitTimeLabel($transitTimeLabel) { $types = [ - "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime", "string", ]; - $deliveryTime = self::checkTypes($deliveryTime, $types); + $transitTimeLabel = self::checkTypes($transitTimeLabel, $types); - $this->deliveryTime = $deliveryTime; + $this->transitTimeLabel = $transitTimeLabel; } } diff --git a/src/Models/SchemaOrg/Demand.php b/src/Models/SchemaOrg/Demand.php index 81f794fd..f755277e 100644 --- a/src/Models/SchemaOrg/Demand.php +++ b/src/Models/SchemaOrg/Demand.php @@ -17,1145 +17,1186 @@ public static function getType() public static function fieldList() { $fields = [ - "gtin12" => "gtin12", - "itemOffered" => "itemOffered", - "mpn" => "mpn", - "includesObject" => "includesObject", - "businessFunction" => "businessFunction", - "itemCondition" => "itemCondition", - "gtin" => "gtin", - "eligibleQuantity" => "eligibleQuantity", "acceptedPaymentMethod" => "acceptedPaymentMethod", - "warranty" => "warranty", - "seller" => "seller", - "ineligibleRegion" => "ineligibleRegion", - "deliveryLeadTime" => "deliveryLeadTime", - "availableDeliveryMethod" => "availableDeliveryMethod", - "validFrom" => "validFrom", - "availabilityEnds" => "availabilityEnds", - "eligibleRegion" => "eligibleRegion", - "gtin8" => "gtin8", - "inventoryLevel" => "inventoryLevel", - "sku" => "sku", "advanceBookingRequirement" => "advanceBookingRequirement", - "gtin14" => "gtin14", - "eligibleTransactionVolume" => "eligibleTransactionVolume", "areaServed" => "areaServed", - "eligibleCustomerType" => "eligibleCustomerType", + "asin" => "asin", "availability" => "availability", - "gtin13" => "gtin13", - "validThrough" => "validThrough", - "priceSpecification" => "priceSpecification", + "availabilityEnds" => "availabilityEnds", "availabilityStarts" => "availabilityStarts", - "eligibleDuration" => "eligibleDuration", "availableAtOrFrom" => "availableAtOrFrom", + "availableDeliveryMethod" => "availableDeliveryMethod", + "businessFunction" => "businessFunction", + "deliveryLeadTime" => "deliveryLeadTime", + "eligibleCustomerType" => "eligibleCustomerType", + "eligibleDuration" => "eligibleDuration", + "eligibleQuantity" => "eligibleQuantity", + "eligibleRegion" => "eligibleRegion", + "eligibleTransactionVolume" => "eligibleTransactionVolume", + "gtin" => "gtin", + "gtin12" => "gtin12", + "gtin13" => "gtin13", + "gtin14" => "gtin14", + "gtin8" => "gtin8", + "includesObject" => "includesObject", + "ineligibleRegion" => "ineligibleRegion", + "inventoryLevel" => "inventoryLevel", + "itemCondition" => "itemCondition", + "itemOffered" => "itemOffered", + "mpn" => "mpn", + "priceSpecification" => "priceSpecification", + "seller" => "seller", "serialNumber" => "serialNumber", + "sku" => "sku", + "validFrom" => "validFrom", + "validThrough" => "validThrough", + "warranty" => "warranty", ]; return array_merge(parent::fieldList(), $fields); } /** - * The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * The payment method(s) that are accepted in general by an organization, or for some specific demand or offer. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\PaymentMethod|string */ - protected $gtin12; + protected $acceptedPaymentMethod; /** - * 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 amount of time that is required between accepting the offer and the actual usage of the resource or service. * * - * @var \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $itemOffered; + protected $advanceBookingRequirement; /** - * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. + * The geographic area where a service or offered item is provided. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - protected $mpn; + protected $areaServed; /** - * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]]. + * 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\TypeAndQuantityNode|string + * @var string */ - protected $includesObject; + protected $asin; /** - * 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 availability of this item—for example In stock, Out of stock, Pre-order, etc. * * - * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null + * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null */ - protected $businessFunction; + protected $availability; /** - * 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 end of the availability of the product or service included in the offer. * * - * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @var Date|DateTime|string|null */ - protected $itemCondition; + protected $availabilityEnds; /** - * 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 beginning of the availability of the product or service included in the offer. * * - * @var string + * @var Date|DateTime|string|null */ - protected $gtin; + protected $availabilityStarts; /** - * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity. + * The place(s) from which the offer can be obtained (e.g. store locations). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $eligibleQuantity; + protected $availableAtOrFrom; /** - * The payment method(s) accepted by seller for this offer. + * The delivery method(s) available for this offer. * * - * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $acceptedPaymentMethod; + protected $availableDeliveryMethod; /** - * The warranty promise(s) 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 \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - protected $warranty; + protected $businessFunction; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * 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\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $seller; + protected $deliveryLeadTime; /** - * 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 type(s) of customers for which the given offer is valid. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null */ - protected $ineligibleRegion; + protected $eligibleCustomerType; /** - * 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 duration for which the given offer is valid. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $deliveryLeadTime; + protected $eligibleDuration; /** - * The delivery method(s) available for this offer. + * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $availableDeliveryMethod; + protected $eligibleQuantity; /** - * The date when the item becomes valid. + * 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 Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - protected $validFrom; + protected $eligibleRegion; /** - * The end of the availability of the product or service included in the offer. + * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount. * * - * @var Date|DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $availabilityEnds; + protected $eligibleTransactionVolume; /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]]. - * + * 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\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var string */ - protected $eligibleRegion; + protected $gtin; /** - * 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. + * 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 string */ - protected $gtin8; + protected $gtin12; /** - * The current approximate inventory level for the item or items. + * 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|string + * @var string */ - protected $inventoryLevel; + protected $gtin13; /** - * 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-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 */ - protected $sku; + protected $gtin14; /** - * The amount of time that is required between accepting the offer and the actual usage of the resource or service. + * 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\QuantitativeValue|string + * @var string */ - protected $advanceBookingRequirement; + protected $gtin8; /** - * 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. + * 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 $gtin14; + protected $includesObject; /** - * 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 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\PriceSpecification|string + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - protected $eligibleTransactionVolume; + protected $ineligibleRegion; /** - * The geographic area where a service or offered item is provided. + * The current approximate inventory level for the item or items. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $areaServed; + protected $inventoryLevel; /** - * 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. + * 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\ItemAvailability|null + * @var \OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Trip|string */ - protected $availability; + protected $itemOffered; /** - * 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 Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. * * * @var string */ - protected $gtin13; + protected $mpn; /** - * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. + * One or more detailed price specifications, indicating the unit price and delivery or payment charges. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $validThrough; + protected $priceSpecification; /** - * One or more detailed price specifications, indicating the unit price and delivery or payment charges. + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $priceSpecification; + protected $seller; /** - * The beginning of the availability of the product or service included in the offer. + * The serial number or any alphanumeric identifier of a particular product. When attached to an offer, it is a shortcut for the serial number of the product included in the offer. * * - * @var Date|DateTime|string|null + * @var string */ - protected $availabilityStarts; + protected $serialNumber; /** - * The duration for which the given offer is valid. + * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $eligibleDuration; + protected $sku; /** - * The place(s) from which the offer can be obtained (e.g. store locations). + * The date when the item becomes valid. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var Date|DateTime|null */ - protected $availableAtOrFrom; + protected $validFrom; /** - * 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 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 $serialNumber; + protected $validThrough; /** - * @return string + * The warranty promise(s) included in the offer. + * + * + * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - public function getGtin12() + protected $warranty; + + /** + * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\PaymentMethod|string + */ + public function getAcceptedPaymentMethod() { - return $this->gtin12; + return $this->acceptedPaymentMethod; } /** - * @param string $gtin12 + * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\PaymentMethod|string $acceptedPaymentMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin12($gtin12) + public function setAcceptedPaymentMethod($acceptedPaymentMethod) { $types = [ + "\OpenActive\Models\SchemaOrg\LoanOrCredit", + "\OpenActive\Models\SchemaOrg\PaymentMethod", "string", ]; - $gtin12 = self::checkTypes($gtin12, $types); + $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); - $this->gtin12 = $gtin12; + $this->acceptedPaymentMethod = $acceptedPaymentMethod; } /** - * @return \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getItemOffered() + public function getAdvanceBookingRequirement() { - return $this->itemOffered; + return $this->advanceBookingRequirement; } /** - * @param \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string $itemOffered + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemOffered($itemOffered) + public function setAdvanceBookingRequirement($advanceBookingRequirement) { $types = [ - "\OpenActive\Models\SchemaOrg\Trip", - "\OpenActive\Models\SchemaOrg\Event", - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\AggregateOffer", - "\OpenActive\Models\SchemaOrg\CreativeWork", - "\OpenActive\Models\SchemaOrg\MenuItem", - "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types); + + $this->advanceBookingRequirement = $advanceBookingRequirement; + } + + /** + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string + */ + public function getAreaServed() + { + return $this->areaServed; + } + + /** + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $areaServed + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAreaServed($areaServed) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $itemOffered = self::checkTypes($itemOffered, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->itemOffered = $itemOffered; + $this->areaServed = $areaServed; } /** * @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\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 Date|DateTime|string|null */ - public function getBusinessFunction() + public function getAvailabilityEnds() { - return $this->businessFunction; + return $this->availabilityEnds; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction + * @param Date|DateTime|string|null $availabilityEnds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBusinessFunction($businessFunction) + public function setAvailabilityEnds($availabilityEnds) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessFunction", + "Date", + "DateTime", + "Time", "null", ]; - $businessFunction = self::checkTypes($businessFunction, $types); + $availabilityEnds = self::checkTypes($availabilityEnds, $types); - $this->businessFunction = $businessFunction; + $this->availabilityEnds = $availabilityEnds; } /** - * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @return Date|DateTime|string|null */ - public function getItemCondition() + public function getAvailabilityStarts() { - return $this->itemCondition; + return $this->availabilityStarts; } /** - * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition + * @param Date|DateTime|string|null $availabilityStarts * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemCondition($itemCondition) + public function setAvailabilityStarts($availabilityStarts) { $types = [ - "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "Date", + "DateTime", + "Time", "null", ]; - $itemCondition = self::checkTypes($itemCondition, $types); + $availabilityStarts = self::checkTypes($availabilityStarts, $types); - $this->itemCondition = $itemCondition; + $this->availabilityStarts = $availabilityStarts; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getGtin() + public function getAvailableAtOrFrom() { - return $this->gtin; + return $this->availableAtOrFrom; } /** - * @param string $gtin + * @param \OpenActive\Models\SchemaOrg\Place|string $availableAtOrFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin($gtin) + public function setAvailableAtOrFrom($availableAtOrFrom) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $gtin = self::checkTypes($gtin, $types); + $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types); - $this->gtin = $gtin; + $this->availableAtOrFrom = $availableAtOrFrom; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getEligibleQuantity() + public function getAvailableDeliveryMethod() { - return $this->eligibleQuantity; + return $this->availableDeliveryMethod; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity + * @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 setEligibleQuantity($eligibleQuantity) + public function setAvailableDeliveryMethod($availableDeliveryMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", ]; - $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); + $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); - $this->eligibleQuantity = $eligibleQuantity; + $this->availableDeliveryMethod = $availableDeliveryMethod; } /** - * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null + * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - public function getAcceptedPaymentMethod() + public function getBusinessFunction() { - return $this->acceptedPaymentMethod; + return $this->businessFunction; } /** - * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod + * @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 setAcceptedPaymentMethod($acceptedPaymentMethod) + public function setBusinessFunction($businessFunction) { $types = [ - "\OpenActive\Models\SchemaOrg\LoanOrCredit", - "\OpenActive\Enums\SchemaOrg\PaymentMethod", - "string", + "\OpenActive\Enums\SchemaOrg\BusinessFunction", "null", ]; - $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); + $businessFunction = self::checkTypes($businessFunction, $types); - $this->acceptedPaymentMethod = $acceptedPaymentMethod; + $this->businessFunction = $businessFunction; } /** - * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getWarranty() + public function getDeliveryLeadTime() { - return $this->warranty; + return $this->deliveryLeadTime; } /** - * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty + * @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 setWarranty($warranty) + public function setDeliveryLeadTime($deliveryLeadTime) { $types = [ - "\OpenActive\Models\SchemaOrg\WarrantyPromise", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $warranty = self::checkTypes($warranty, $types); + $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); - $this->warranty = $warranty; + $this->deliveryLeadTime = $deliveryLeadTime; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null */ - public function getSeller() + public function getEligibleCustomerType() { - return $this->seller; + return $this->eligibleCustomerType; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @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 setSeller($seller) + public function setEligibleCustomerType($eligibleCustomerType) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "\OpenActive\Enums\SchemaOrg\BusinessEntityType", + "null", ]; - $seller = self::checkTypes($seller, $types); + $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types); - $this->seller = $seller; + $this->eligibleCustomerType = $eligibleCustomerType; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getIneligibleRegion() + public function getEligibleDuration() { - return $this->ineligibleRegion; + return $this->eligibleDuration; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion + * @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 setIneligibleRegion($ineligibleRegion) + public function setEligibleDuration($eligibleDuration) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); + $eligibleDuration = self::checkTypes($eligibleDuration, $types); - $this->ineligibleRegion = $ineligibleRegion; + $this->eligibleDuration = $eligibleDuration; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getDeliveryLeadTime() + public function getEligibleQuantity() { - return $this->deliveryLeadTime; + return $this->eligibleQuantity; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime + * @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 setDeliveryLeadTime($deliveryLeadTime) + public function setEligibleQuantity($eligibleQuantity) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); + $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); - $this->deliveryLeadTime = $deliveryLeadTime; + $this->eligibleQuantity = $eligibleQuantity; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getAvailableDeliveryMethod() + public function getEligibleRegion() { - return $this->availableDeliveryMethod; + return $this->eligibleRegion; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $eligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableDeliveryMethod($availableDeliveryMethod) + public function setEligibleRegion($eligibleRegion) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); + $eligibleRegion = self::checkTypes($eligibleRegion, $types); - $this->availableDeliveryMethod = $availableDeliveryMethod; + $this->eligibleRegion = $eligibleRegion; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getValidFrom() + public function getEligibleTransactionVolume() { - return $this->validFrom; + return $this->eligibleTransactionVolume; } /** - * @param Date|DateTime|null $validFrom + * @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 setValidFrom($validFrom) + public function setEligibleTransactionVolume($eligibleTransactionVolume) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", ]; - $validFrom = self::checkTypes($validFrom, $types); + $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); - $this->validFrom = $validFrom; + $this->eligibleTransactionVolume = $eligibleTransactionVolume; } /** - * @return Date|DateTime|string|null + * @return string */ - public function getAvailabilityEnds() + public function getGtin() { - return $this->availabilityEnds; + return $this->gtin; } /** - * @param Date|DateTime|string|null $availabilityEnds + * @param string $gtin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailabilityEnds($availabilityEnds) + public function setGtin($gtin) { $types = [ - "Date", - "DateTime", - "Time", - "null", + "string", ]; - $availabilityEnds = self::checkTypes($availabilityEnds, $types); + $gtin = self::checkTypes($gtin, $types); - $this->availabilityEnds = $availabilityEnds; + $this->gtin = $gtin; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return string */ - public function getEligibleRegion() + public function getGtin12() { - return $this->eligibleRegion; + return $this->gtin12; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion + * @param string $gtin12 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleRegion($eligibleRegion) + public function setGtin12($gtin12) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $eligibleRegion = self::checkTypes($eligibleRegion, $types); + $gtin12 = self::checkTypes($gtin12, $types); - $this->eligibleRegion = $eligibleRegion; + $this->gtin12 = $gtin12; } /** * @return string */ - public function getGtin8() + public function getGtin13() { - return $this->gtin8; + return $this->gtin13; } /** - * @param string $gtin8 + * @param string $gtin13 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin8($gtin8) + public function setGtin13($gtin13) { $types = [ "string", ]; - $gtin8 = self::checkTypes($gtin8, $types); + $gtin13 = self::checkTypes($gtin13, $types); - $this->gtin8 = $gtin8; + $this->gtin13 = $gtin13; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getInventoryLevel() + public function getGtin14() { - return $this->inventoryLevel; + return $this->gtin14; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel + * @param string $gtin14 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInventoryLevel($inventoryLevel) + public function setGtin14($gtin14) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $inventoryLevel = self::checkTypes($inventoryLevel, $types); + $gtin14 = self::checkTypes($gtin14, $types); - $this->inventoryLevel = $inventoryLevel; + $this->gtin14 = $gtin14; } /** * @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 \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string */ - public function getAdvanceBookingRequirement() + public function getIncludesObject() { - return $this->advanceBookingRequirement; + return $this->includesObject; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement + * @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 setAdvanceBookingRequirement($advanceBookingRequirement) + public function setIncludesObject($includesObject) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode", "string", ]; - $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types); + $includesObject = self::checkTypes($includesObject, $types); - $this->advanceBookingRequirement = $advanceBookingRequirement; + $this->includesObject = $includesObject; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGtin14() + public function getIneligibleRegion() { - return $this->gtin14; + return $this->ineligibleRegion; } /** - * @param string $gtin14 + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $ineligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin14($gtin14) + public function setIneligibleRegion($ineligibleRegion) { $types = [ + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $gtin14 = self::checkTypes($gtin14, $types); + $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - $this->gtin14 = $gtin14; + $this->ineligibleRegion = $ineligibleRegion; } /** - * @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\OfferItemCondition|null */ - public function getAreaServed() + public function getItemCondition() { - return $this->areaServed; + return $this->itemCondition; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @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 setAreaServed($areaServed) + public function setItemCondition($itemCondition) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", - "string", - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "null", ]; - $areaServed = self::checkTypes($areaServed, $types); + $itemCondition = self::checkTypes($itemCondition, $types); - $this->areaServed = $areaServed; + $this->itemCondition = $itemCondition; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + * @return \OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Trip|string */ - public function getEligibleCustomerType() + public function getItemOffered() { - return $this->eligibleCustomerType; + return $this->itemOffered; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType + * @param \OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Trip|string $itemOffered * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleCustomerType($eligibleCustomerType) + public function setItemOffered($itemOffered) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessEntityType", - "null", + "\OpenActive\Models\SchemaOrg\AggregateOffer", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\MenuItem", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\Trip", + "string", ]; - $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types); + $itemOffered = self::checkTypes($itemOffered, $types); - $this->eligibleCustomerType = $eligibleCustomerType; + $this->itemOffered = $itemOffered; } /** - * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null + * @return string */ - public function getAvailability() + public function getMpn() { - return $this->availability; + return $this->mpn; } /** - * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability + * @param string $mpn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailability($availability) + public function setMpn($mpn) { $types = [ - "\OpenActive\Enums\SchemaOrg\ItemAvailability", - "null", + "string", ]; - $availability = self::checkTypes($availability, $types); + $mpn = self::checkTypes($mpn, $types); - $this->availability = $availability; + $this->mpn = $mpn; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getGtin13() + public function getPriceSpecification() { - return $this->gtin13; + return $this->priceSpecification; } /** - * @param string $gtin13 + * @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 setGtin13($gtin13) + public function setPriceSpecification($priceSpecification) { $types = [ + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $gtin13 = self::checkTypes($gtin13, $types); + $priceSpecification = self::checkTypes($priceSpecification, $types); - $this->gtin13 = $gtin13; + $this->priceSpecification = $priceSpecification; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getValidThrough() + public function getSeller() { - return $this->validThrough; + return $this->seller; } /** - * @param Date|DateTime|null $validThrough + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidThrough($validThrough) + public function setSeller($seller) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $validThrough = self::checkTypes($validThrough, $types); + $seller = self::checkTypes($seller, $types); - $this->validThrough = $validThrough; + $this->seller = $seller; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return string */ - public function getPriceSpecification() + public function getSerialNumber() { - return $this->priceSpecification; + return $this->serialNumber; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification + * @param string $serialNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceSpecification($priceSpecification) + public function setSerialNumber($serialNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $priceSpecification = self::checkTypes($priceSpecification, $types); + $serialNumber = self::checkTypes($serialNumber, $types); - $this->priceSpecification = $priceSpecification; + $this->serialNumber = $serialNumber; } /** - * @return Date|DateTime|string|null + * @return string */ - public function getAvailabilityStarts() + public function getSku() { - return $this->availabilityStarts; + return $this->sku; } /** - * @param Date|DateTime|string|null $availabilityStarts + * @param string $sku * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailabilityStarts($availabilityStarts) + public function setSku($sku) { $types = [ - "Date", - "DateTime", - "Time", - "null", + "string", ]; - $availabilityStarts = self::checkTypes($availabilityStarts, $types); + $sku = self::checkTypes($sku, $types); - $this->availabilityStarts = $availabilityStarts; + $this->sku = $sku; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Date|DateTime|null */ - public function getEligibleDuration() + public function getValidFrom() { - return $this->eligibleDuration; + return $this->validFrom; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleDuration + * @param Date|DateTime|null $validFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleDuration($eligibleDuration) + public function setValidFrom($validFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Date", + "DateTime", + "null", ]; - $eligibleDuration = self::checkTypes($eligibleDuration, $types); + $validFrom = self::checkTypes($validFrom, $types); - $this->eligibleDuration = $eligibleDuration; + $this->validFrom = $validFrom; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return Date|DateTime|null */ - public function getAvailableAtOrFrom() + public function getValidThrough() { - return $this->availableAtOrFrom; + return $this->validThrough; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $availableAtOrFrom + * @param Date|DateTime|null $validThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableAtOrFrom($availableAtOrFrom) + public function setValidThrough($validThrough) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", + "Date", + "DateTime", + "null", ]; - $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types); + $validThrough = self::checkTypes($validThrough, $types); - $this->availableAtOrFrom = $availableAtOrFrom; + $this->validThrough = $validThrough; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - public function getSerialNumber() + public function getWarranty() { - return $this->serialNumber; + return $this->warranty; } /** - * @param string $serialNumber + * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSerialNumber($serialNumber) + public function setWarranty($warranty) { $types = [ + "\OpenActive\Models\SchemaOrg\WarrantyPromise", "string", ]; - $serialNumber = self::checkTypes($serialNumber, $types); + $warranty = self::checkTypes($warranty, $types); - $this->serialNumber = $serialNumber; + $this->warranty = $warranty; } } diff --git a/src/Models/SchemaOrg/Dentist.php b/src/Models/SchemaOrg/Dentist.php index bf1c01cb..c137790d 100644 --- a/src/Models/SchemaOrg/Dentist.php +++ b/src/Models/SchemaOrg/Dentist.php @@ -5,7 +5,7 @@ /** * */ -class Dentist extends \OpenActive\Models\SchemaOrg\MedicalOrganization +class Dentist extends \OpenActive\Models\SchemaOrg\LocalBusiness { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/DepositAccount.php b/src/Models/SchemaOrg/DepositAccount.php index 20cc5638..7ac033b1 100644 --- a/src/Models/SchemaOrg/DepositAccount.php +++ b/src/Models/SchemaOrg/DepositAccount.php @@ -5,7 +5,7 @@ /** * */ -class DepositAccount extends \OpenActive\Models\SchemaOrg\InvestmentOrDeposit +class DepositAccount extends \OpenActive\Models\SchemaOrg\BankAccount { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/Diet.php b/src/Models/SchemaOrg/Diet.php index 52d35b52..1cfca782 100644 --- a/src/Models/SchemaOrg/Diet.php +++ b/src/Models/SchemaOrg/Diet.php @@ -5,7 +5,7 @@ /** * */ -class Diet extends \OpenActive\Models\SchemaOrg\LifestyleModification +class Diet extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -17,176 +17,176 @@ public static function getType() public static function fieldList() { $fields = [ + "dietFeatures" => "dietFeatures", + "endorsers" => "endorsers", "expertConsiderations" => "expertConsiderations", - "risks" => "risks", "physiologicalBenefits" => "physiologicalBenefits", - "endorsers" => "endorsers", - "dietFeatures" => "dietFeatures", + "risks" => "risks", ]; return array_merge(parent::fieldList(), $fields); } /** - * Medical expert advice related 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 $expertConsiderations; + protected $dietFeatures; /** - * Specific physiologic risks associated to the diet plan. + * People or organizations that endorse the plan. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $risks; + protected $endorsers; /** - * Specific physiologic benefits associated to the plan. + * Medical expert advice related to the plan. * * * @var string */ - protected $physiologicalBenefits; + protected $expertConsiderations; /** - * People or organizations that endorse the plan. + * Specific physiologic 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 */ - public function getExpertConsiderations() + public function getDietFeatures() { - return $this->expertConsiderations; + return $this->dietFeatures; } /** - * @param string $expertConsiderations + * @param string $dietFeatures * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpertConsiderations($expertConsiderations) + public function setDietFeatures($dietFeatures) { $types = [ "string", ]; - $expertConsiderations = self::checkTypes($expertConsiderations, $types); + $dietFeatures = self::checkTypes($dietFeatures, $types); - $this->expertConsiderations = $expertConsiderations; + $this->dietFeatures = $dietFeatures; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getRisks() + public function getEndorsers() { - return $this->risks; + return $this->endorsers; } /** - * @param string $risks + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|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\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $risks = self::checkTypes($risks, $types); + $endorsers = self::checkTypes($endorsers, $types); - $this->risks = $risks; + $this->endorsers = $endorsers; } /** * @return string */ - public function getPhysiologicalBenefits() + public function getExpertConsiderations() { - return $this->physiologicalBenefits; + return $this->expertConsiderations; } /** - * @param string $physiologicalBenefits + * @param string $expertConsiderations * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPhysiologicalBenefits($physiologicalBenefits) + public function setExpertConsiderations($expertConsiderations) { $types = [ "string", ]; - $physiologicalBenefits = self::checkTypes($physiologicalBenefits, $types); + $expertConsiderations = self::checkTypes($expertConsiderations, $types); - $this->physiologicalBenefits = $physiologicalBenefits; + $this->expertConsiderations = $expertConsiderations; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getEndorsers() + public function 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..2b0583c5 100644 --- a/src/Models/SchemaOrg/DietarySupplement.php +++ b/src/Models/SchemaOrg/DietarySupplement.php @@ -5,7 +5,7 @@ /** * */ -class DietarySupplement extends \OpenActive\Models\SchemaOrg\Substance +class DietarySupplement extends \OpenActive\Models\SchemaOrg\Product { /** * @return string[]|null @@ -17,54 +17,45 @@ public static function getType() public static function fieldList() { $fields = [ - "targetPopulation" => "targetPopulation", - "recommendedIntake" => "recommendedIntake", + "activeIngredient" => "activeIngredient", + "isProprietary" => "isProprietary", "legalStatus" => "legalStatus", - "mechanismOfAction" => "mechanismOfAction", "maximumIntake" => "maximumIntake", - "activeIngredient" => "activeIngredient", - "proprietaryName" => "proprietaryName", + "mechanismOfAction" => "mechanismOfAction", "nonProprietaryName" => "nonProprietaryName", - "manufacturer" => "manufacturer", - "isProprietary" => "isProprietary", + "proprietaryName" => "proprietaryName", + "recommendedIntake" => "recommendedIntake", "safetyConsideration" => "safetyConsideration", + "targetPopulation" => "targetPopulation", ]; return array_merge(parent::fieldList(), $fields); } /** - * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'. + * An active ingredient, typically chemical compounds and/or biologic substances. * * * @var string */ - protected $targetPopulation; + protected $activeIngredient; /** - * Recommended intake of this supplement for a given population as defined by a specific recommending authority. + * True if this item's name is a proprietary/brand name (vs. generic name). * * - * @var \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string + * @var bool|null */ - protected $recommendedIntake; + protected $isProprietary; /** * 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; - /** - * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect. - * - * - * @var string - */ - protected $mechanismOfAction; - /** * Recommended intake of this supplement for a given population as defined by a specific recommending authority. * @@ -74,104 +65,104 @@ public static function fieldList() { protected $maximumIntake; /** - * An active ingredient, typically chemical compounds and/or biologic substances. + * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect. * * * @var string */ - protected $activeIngredient; + protected $mechanismOfAction; /** - * Proprietary name given to the diet plan, typically by its originator or creator. + * The generic name of this drug or supplement. * * * @var string */ - protected $proprietaryName; + protected $nonProprietaryName; /** - * 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\RecommendedDoseSchedule|string */ - protected $manufacturer; + protected $recommendedIntake; /** - * True if this item's name is a proprietary/brand name (vs. generic name). + * 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 bool|null + * @var string */ - protected $isProprietary; + protected $safetyConsideration; /** - * 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. + * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'. * * * @var string */ - protected $safetyConsideration; + protected $targetPopulation; /** * @return string */ - public function getTargetPopulation() + public function getActiveIngredient() { - return $this->targetPopulation; + return $this->activeIngredient; } /** - * @param string $targetPopulation + * @param string $activeIngredient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTargetPopulation($targetPopulation) + public function setActiveIngredient($activeIngredient) { $types = [ "string", ]; - $targetPopulation = self::checkTypes($targetPopulation, $types); + $activeIngredient = self::checkTypes($activeIngredient, $types); - $this->targetPopulation = $targetPopulation; + $this->activeIngredient = $activeIngredient; } /** - * @return \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string + * @return bool|null */ - public function getRecommendedIntake() + public function getIsProprietary() { - return $this->recommendedIntake; + return $this->isProprietary; } /** - * @param \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string $recommendedIntake + * @param bool|null $isProprietary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecommendedIntake($recommendedIntake) + public function setIsProprietary($isProprietary) { $types = [ - "\OpenActive\Models\SchemaOrg\RecommendedDoseSchedule", - "string", + "bool", + "null", ]; - $recommendedIntake = self::checkTypes($recommendedIntake, $types); + $isProprietary = self::checkTypes($isProprietary, $types); - $this->recommendedIntake = $recommendedIntake; + $this->isProprietary = $isProprietary; } /** - * @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() { @@ -179,7 +170,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. */ @@ -187,8 +178,8 @@ public function setLegalStatus($legalStatus) { $types = [ "\OpenActive\Models\SchemaOrg\DrugLegalStatus", - "string", "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", + "string", "null", ]; @@ -197,30 +188,6 @@ public function setLegalStatus($legalStatus) $this->legalStatus = $legalStatus; } - /** - * @return string - */ - public function getMechanismOfAction() - { - return $this->mechanismOfAction; - } - - /** - * @param string $mechanismOfAction - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setMechanismOfAction($mechanismOfAction) - { - $types = [ - "string", - ]; - - $mechanismOfAction = self::checkTypes($mechanismOfAction, $types); - - $this->mechanismOfAction = $mechanismOfAction; - } - /** * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string */ @@ -249,147 +216,146 @@ public function setMaximumIntake($maximumIntake) /** * @return string */ - public function getActiveIngredient() + public function getMechanismOfAction() { - return $this->activeIngredient; + return $this->mechanismOfAction; } /** - * @param string $activeIngredient + * @param string $mechanismOfAction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActiveIngredient($activeIngredient) + public function setMechanismOfAction($mechanismOfAction) { $types = [ "string", ]; - $activeIngredient = self::checkTypes($activeIngredient, $types); + $mechanismOfAction = self::checkTypes($mechanismOfAction, $types); - $this->activeIngredient = $activeIngredient; + $this->mechanismOfAction = $mechanismOfAction; } /** * @return string */ - public function getProprietaryName() + public function getNonProprietaryName() { - return $this->proprietaryName; + return $this->nonProprietaryName; } /** - * @param string $proprietaryName + * @param string $nonProprietaryName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProprietaryName($proprietaryName) + public function setNonProprietaryName($nonProprietaryName) { $types = [ "string", ]; - $proprietaryName = self::checkTypes($proprietaryName, $types); + $nonProprietaryName = self::checkTypes($nonProprietaryName, $types); - $this->proprietaryName = $proprietaryName; + $this->nonProprietaryName = $nonProprietaryName; } /** * @return string */ - public function getNonProprietaryName() + public function getProprietaryName() { - return $this->nonProprietaryName; + return $this->proprietaryName; } /** - * @param string $nonProprietaryName + * @param string $proprietaryName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNonProprietaryName($nonProprietaryName) + public function setProprietaryName($proprietaryName) { $types = [ "string", ]; - $nonProprietaryName = self::checkTypes($nonProprietaryName, $types); + $proprietaryName = self::checkTypes($proprietaryName, $types); - $this->nonProprietaryName = $nonProprietaryName; + $this->proprietaryName = $proprietaryName; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string */ - public function getManufacturer() + public function getRecommendedIntake() { - return $this->manufacturer; + return $this->recommendedIntake; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer + * @param \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string $recommendedIntake * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setManufacturer($manufacturer) + public function setRecommendedIntake($recommendedIntake) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\RecommendedDoseSchedule", "string", ]; - $manufacturer = self::checkTypes($manufacturer, $types); + $recommendedIntake = self::checkTypes($recommendedIntake, $types); - $this->manufacturer = $manufacturer; + $this->recommendedIntake = $recommendedIntake; } /** - * @return bool|null + * @return string */ - public function getIsProprietary() + public function getSafetyConsideration() { - return $this->isProprietary; + return $this->safetyConsideration; } /** - * @param bool|null $isProprietary + * @param string $safetyConsideration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsProprietary($isProprietary) + public function setSafetyConsideration($safetyConsideration) { $types = [ - "bool", - "null", + "string", ]; - $isProprietary = self::checkTypes($isProprietary, $types); + $safetyConsideration = self::checkTypes($safetyConsideration, $types); - $this->isProprietary = $isProprietary; + $this->safetyConsideration = $safetyConsideration; } /** * @return string */ - public function getSafetyConsideration() + public function getTargetPopulation() { - return $this->safetyConsideration; + return $this->targetPopulation; } /** - * @param string $safetyConsideration + * @param string $targetPopulation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSafetyConsideration($safetyConsideration) + public function setTargetPopulation($targetPopulation) { $types = [ "string", ]; - $safetyConsideration = self::checkTypes($safetyConsideration, $types); + $targetPopulation = self::checkTypes($targetPopulation, $types); - $this->safetyConsideration = $safetyConsideration; + $this->targetPopulation = $targetPopulation; } } diff --git a/src/Models/SchemaOrg/DigitalDocumentPermission.php b/src/Models/SchemaOrg/DigitalDocumentPermission.php index 894e5b04..257ed503 100644 --- a/src/Models/SchemaOrg/DigitalDocumentPermission.php +++ b/src/Models/SchemaOrg/DigitalDocumentPermission.php @@ -28,7 +28,7 @@ public static function fieldList() { * The person, organization, contact point, or audience that has been granted this permission. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $grantee; @@ -41,7 +41,7 @@ public static function fieldList() { protected $permissionType; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getGrantee() { @@ -49,17 +49,17 @@ public function getGrantee() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $grantee + * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $grantee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setGrantee($grantee) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/DigitalProductPassport.php b/src/Models/SchemaOrg/DigitalProductPassport.php new file mode 100644 index 00000000..dc35873a --- /dev/null +++ b/src/Models/SchemaOrg/DigitalProductPassport.php @@ -0,0 +1,25 @@ + "price", + "priceCurrency" => "priceCurrency", + "priceSpecification" => "priceSpecification", "recipient" => "recipient", ]; 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; + + /** + * 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; + + /** + * One or more detailed price specifications, indicating the unit price and delivery or payment charges. + * + * + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + */ + protected $priceSpecification; + /** * 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\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @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 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; + } + + /** + * @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 \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getRecipient() { @@ -40,17 +143,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|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\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/DoseSchedule.php b/src/Models/SchemaOrg/DoseSchedule.php index cd5742d8..0eb5d110 100644 --- a/src/Models/SchemaOrg/DoseSchedule.php +++ b/src/Models/SchemaOrg/DoseSchedule.php @@ -17,143 +17,143 @@ public static function getType() public static function fieldList() { $fields = [ - "targetPopulation" => "targetPopulation", - "frequency" => "frequency", "doseUnit" => "doseUnit", "doseValue" => "doseValue", + "frequency" => "frequency", + "targetPopulation" => "targetPopulation", ]; return array_merge(parent::fieldList(), $fields); } /** - * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'. + * The unit of the dose, e.g. 'mg'. * * * @var string */ - protected $targetPopulation; + protected $doseUnit; /** - * How often the dose is taken, e.g. 'daily'. + * The value of the dose, e.g. 500. * * - * @var string + * @var Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - protected $frequency; + protected $doseValue; /** - * The unit of the dose, e.g. 'mg'. + * How often the dose is taken, e.g. 'daily'. * * * @var string */ - protected $doseUnit; + protected $frequency; /** - * The value of the dose, e.g. 500. + * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'. * * - * @var Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var string */ - protected $doseValue; + protected $targetPopulation; /** * @return string */ - public function getTargetPopulation() + public function getDoseUnit() { - return $this->targetPopulation; + return $this->doseUnit; } /** - * @param string $targetPopulation + * @param string $doseUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTargetPopulation($targetPopulation) + public function setDoseUnit($doseUnit) { $types = [ "string", ]; - $targetPopulation = self::checkTypes($targetPopulation, $types); + $doseUnit = self::checkTypes($doseUnit, $types); - $this->targetPopulation = $targetPopulation; + $this->doseUnit = $doseUnit; } /** - * @return string + * @return Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - public function getFrequency() + public function getDoseValue() { - return $this->frequency; + return $this->doseValue; } /** - * @param string $frequency + * @param Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $doseValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFrequency($frequency) + public function setDoseValue($doseValue) { $types = [ - "string", + "Number", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "null", ]; - $frequency = self::checkTypes($frequency, $types); + $doseValue = self::checkTypes($doseValue, $types); - $this->frequency = $frequency; + $this->doseValue = $doseValue; } /** * @return string */ - public function getDoseUnit() + public function getFrequency() { - return $this->doseUnit; + return $this->frequency; } /** - * @param string $doseUnit + * @param string $frequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoseUnit($doseUnit) + public function setFrequency($frequency) { $types = [ "string", ]; - $doseUnit = self::checkTypes($doseUnit, $types); + $frequency = self::checkTypes($frequency, $types); - $this->doseUnit = $doseUnit; + $this->frequency = $frequency; } /** - * @return Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return string */ - public function getDoseValue() + public function getTargetPopulation() { - return $this->doseValue; + return $this->targetPopulation; } /** - * @param Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $doseValue + * @param string $targetPopulation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoseValue($doseValue) + public function setTargetPopulation($targetPopulation) { $types = [ - "Number", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "null", + "string", ]; - $doseValue = self::checkTypes($doseValue, $types); + $targetPopulation = self::checkTypes($targetPopulation, $types); - $this->doseValue = $doseValue; + $this->targetPopulation = $targetPopulation; } } diff --git a/src/Models/SchemaOrg/Drug.php b/src/Models/SchemaOrg/Drug.php index b48cecd6..4787b94f 100644 --- a/src/Models/SchemaOrg/Drug.php +++ b/src/Models/SchemaOrg/Drug.php @@ -5,7 +5,7 @@ /** * */ -class Drug extends \OpenActive\Models\SchemaOrg\Substance +class Drug extends \OpenActive\Models\SchemaOrg\Product { /** * @return string[]|null @@ -17,97 +17,96 @@ public static function getType() public static function fieldList() { $fields = [ - "pregnancyCategory" => "pregnancyCategory", - "overdosage" => "overdosage", - "legalStatus" => "legalStatus", - "mechanismOfAction" => "mechanismOfAction", - "clinicalPharmacology" => "clinicalPharmacology", - "rxcui" => "rxcui", - "interactingDrug" => "interactingDrug", - "dosageForm" => "dosageForm", - "labelDetails" => "labelDetails", - "maximumIntake" => "maximumIntake", "activeIngredient" => "activeIngredient", - "relatedDrug" => "relatedDrug", "administrationRoute" => "administrationRoute", + "alcoholWarning" => "alcoholWarning", + "availableStrength" => "availableStrength", + "breastfeedingWarning" => "breastfeedingWarning", + "clincalPharmacology" => "clincalPharmacology", + "clinicalPharmacology" => "clinicalPharmacology", + "dosageForm" => "dosageForm", + "doseSchedule" => "doseSchedule", + "drugClass" => "drugClass", "drugUnit" => "drugUnit", "foodWarning" => "foodWarning", - "warning" => "warning", - "prescriptionStatus" => "prescriptionStatus", - "proprietaryName" => "proprietaryName", - "drugClass" => "drugClass", - "prescribingInfo" => "prescribingInfo", "includedInHealthInsurancePlan" => "includedInHealthInsurancePlan", - "nonProprietaryName" => "nonProprietaryName", - "manufacturer" => "manufacturer", - "isProprietary" => "isProprietary", - "clincalPharmacology" => "clincalPharmacology", + "interactingDrug" => "interactingDrug", "isAvailableGenerically" => "isAvailableGenerically", - "breastfeedingWarning" => "breastfeedingWarning", + "isProprietary" => "isProprietary", + "labelDetails" => "labelDetails", + "legalStatus" => "legalStatus", + "maximumIntake" => "maximumIntake", + "mechanismOfAction" => "mechanismOfAction", + "nonProprietaryName" => "nonProprietaryName", + "overdosage" => "overdosage", + "pregnancyCategory" => "pregnancyCategory", "pregnancyWarning" => "pregnancyWarning", - "alcoholWarning" => "alcoholWarning", - "doseSchedule" => "doseSchedule", - "availableStrength" => "availableStrength", + "prescribingInfo" => "prescribingInfo", + "prescriptionStatus" => "prescriptionStatus", + "proprietaryName" => "proprietaryName", + "relatedDrug" => "relatedDrug", + "rxcui" => "rxcui", + "warning" => "warning", ]; return array_merge(parent::fieldList(), $fields); } /** - * Pregnancy category of this drug. + * An active ingredient, typically chemical compounds and/or biologic substances. * * - * @var \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string + * @var string */ - protected $pregnancyCategory; + protected $activeIngredient; /** - * Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response. + * A route by which this drug may be administered, e.g. 'oral'. * * * @var string */ - protected $overdosage; + protected $administrationRoute; /** - * The drug or supplement's legal status, including any controlled substance schedules that apply. + * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug. * * - * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null + * @var string */ - protected $legalStatus; + protected $alcoholWarning; /** - * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect. + * An available dosage strength for the drug. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DrugStrength|string */ - protected $mechanismOfAction; + protected $availableStrength; /** - * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD). + * Any precaution, guidance, contraindication, etc. related to this drug's use by breastfeeding mothers. * * * @var string */ - protected $clinicalPharmacology; + protected $breastfeedingWarning; /** - * The RxCUI drug identifier from RXNORM. + * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD). * * * @var string */ - protected $rxcui; + protected $clincalPharmacology; /** - * 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. + * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD). * * - * @var \OpenActive\Models\SchemaOrg\Drug|string + * @var string */ - protected $interactingDrug; + protected $clinicalPharmacology; /** * A dosage form in which this drug/supplement is available, e.g. 'tablet', 'suspension', 'injection'. @@ -118,108 +117,100 @@ public static function fieldList() { protected $dosageForm; /** - * Link to the drug's label details. + * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string */ - protected $labelDetails; + protected $doseSchedule; /** - * Recommended intake of this supplement for a given population as defined by a specific recommending authority. + * The class of drug this belongs to (e.g., statins). * * - * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string + * @var \OpenActive\Models\SchemaOrg\DrugClass|string */ - protected $maximumIntake; + protected $drugClass; /** - * An active ingredient, typically chemical compounds and/or biologic substances. + * The unit in which the drug is measured, e.g. '5 mg tablet'. * * * @var string */ - protected $activeIngredient; - - /** - * Any other drug related to this one, for example commonly-prescribed alternatives. - * - * - * @var \OpenActive\Models\SchemaOrg\Drug|string - */ - protected $relatedDrug; + protected $drugUnit; /** - * A route by which this drug may be administered, e.g. 'oral'. + * Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug. * * * @var string */ - protected $administrationRoute; + protected $foodWarning; /** - * The unit in which the drug is measured, e.g. '5 mg tablet'. + * The insurance plans that cover this drug. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string */ - protected $drugUnit; + protected $includedInHealthInsurancePlan; /** - * 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). + * True if the drug is available in a generic form (regardless of name). * * - * @var string + * @var bool|null */ - protected $warning; + protected $isAvailableGenerically; /** - * Indicates the status of drug prescription eg. local catalogs classifications or whether the drug is available by prescription or over-the-counter, etc. + * True if this item's name is a proprietary/brand name (vs. generic name). * * - * @var \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string + * @var bool|null */ - protected $prescriptionStatus; + protected $isProprietary; /** - * Proprietary name given to the diet plan, typically by its originator or creator. + * Link to the drug's label details. * * * @var string */ - protected $proprietaryName; + protected $labelDetails; /** - * The class of drug this belongs to (e.g., statins). + * The drug or supplement's legal status, including any controlled substance schedules that apply. * * - * @var \OpenActive\Models\SchemaOrg\DrugClass|string + * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null */ - protected $drugClass; + protected $legalStatus; /** - * Link to prescribing information for the drug. + * 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 $prescribingInfo; + protected $maximumIntake; /** - * The insurance plans that cover this drug. + * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect. * * - * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string + * @var string */ - protected $includedInHealthInsurancePlan; + protected $mechanismOfAction; /** * The generic name of this drug or supplement. @@ -230,248 +221,244 @@ public static function fieldList() { protected $nonProprietaryName; /** - * The manufacturer of the product. + * Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $manufacturer; + protected $overdosage; /** - * True if this item's name is a proprietary/brand name (vs. generic name). + * Pregnancy category of this drug. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string */ - protected $isProprietary; + protected $pregnancyCategory; /** - * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD). + * Any precaution, guidance, contraindication, etc. related to this drug's use during pregnancy. * * * @var string */ - protected $clincalPharmacology; + protected $pregnancyWarning; /** - * True if the drug is available in a generic form (regardless of name). + * Link to prescribing information for the drug. * * - * @var bool|null + * @var string */ - protected $isAvailableGenerically; + protected $prescribingInfo; /** - * Any precaution, guidance, contraindication, etc. related to this drug's use by breastfeeding mothers. + * 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 $breastfeedingWarning; + protected $prescriptionStatus; /** - * Any precaution, guidance, contraindication, etc. related to this drug's use during pregnancy. + * Proprietary name given to the diet plan, typically by its originator or creator. * * * @var string */ - protected $pregnancyWarning; + protected $proprietaryName; /** - * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug. + * Any other drug related to this one, for example commonly-prescribed alternatives. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Drug|string */ - protected $alcoholWarning; + protected $relatedDrug; /** - * 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. + * Any FDA or other warnings about the drug (text or URL). * * - * @var \OpenActive\Models\SchemaOrg\DrugStrength|string + * @var string */ - protected $availableStrength; + protected $warning; /** - * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string + * @return string */ - public function getPregnancyCategory() + public function getActiveIngredient() { - return $this->pregnancyCategory; + return $this->activeIngredient; } /** - * @param \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string $pregnancyCategory + * @param string $activeIngredient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPregnancyCategory($pregnancyCategory) + public function setActiveIngredient($activeIngredient) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory", "string", ]; - $pregnancyCategory = self::checkTypes($pregnancyCategory, $types); + $activeIngredient = self::checkTypes($activeIngredient, $types); - $this->pregnancyCategory = $pregnancyCategory; + $this->activeIngredient = $activeIngredient; } /** * @return string */ - public function getOverdosage() + public function getAdministrationRoute() { - return $this->overdosage; + return $this->administrationRoute; } /** - * @param string $overdosage + * @param string $administrationRoute * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOverdosage($overdosage) + public function setAdministrationRoute($administrationRoute) { $types = [ "string", ]; - $overdosage = self::checkTypes($overdosage, $types); + $administrationRoute = self::checkTypes($administrationRoute, $types); - $this->overdosage = $overdosage; + $this->administrationRoute = $administrationRoute; } /** - * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null + * @return string */ - public function getLegalStatus() + public function getAlcoholWarning() { - return $this->legalStatus; + return $this->alcoholWarning; } /** - * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus + * @param string $alcoholWarning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegalStatus($legalStatus) + public function setAlcoholWarning($alcoholWarning) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugLegalStatus", "string", - "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", - "null", ]; - $legalStatus = self::checkTypes($legalStatus, $types); + $alcoholWarning = self::checkTypes($alcoholWarning, $types); - $this->legalStatus = $legalStatus; + $this->alcoholWarning = $alcoholWarning; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DrugStrength|string */ - public function getMechanismOfAction() + public function getAvailableStrength() { - return $this->mechanismOfAction; + return $this->availableStrength; } /** - * @param string $mechanismOfAction + * @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 setMechanismOfAction($mechanismOfAction) + public function setAvailableStrength($availableStrength) { $types = [ + "\OpenActive\Models\SchemaOrg\DrugStrength", "string", ]; - $mechanismOfAction = self::checkTypes($mechanismOfAction, $types); + $availableStrength = self::checkTypes($availableStrength, $types); - $this->mechanismOfAction = $mechanismOfAction; + $this->availableStrength = $availableStrength; } /** * @return string */ - public function getClinicalPharmacology() + public function getBreastfeedingWarning() { - return $this->clinicalPharmacology; + return $this->breastfeedingWarning; } /** - * @param string $clinicalPharmacology + * @param string $breastfeedingWarning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setClinicalPharmacology($clinicalPharmacology) + public function setBreastfeedingWarning($breastfeedingWarning) { $types = [ "string", ]; - $clinicalPharmacology = self::checkTypes($clinicalPharmacology, $types); + $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types); - $this->clinicalPharmacology = $clinicalPharmacology; + $this->breastfeedingWarning = $breastfeedingWarning; } /** * @return string */ - public function getRxcui() + public function getClincalPharmacology() { - return $this->rxcui; + return $this->clincalPharmacology; } /** - * @param string $rxcui + * @param string $clincalPharmacology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRxcui($rxcui) + public function setClincalPharmacology($clincalPharmacology) { $types = [ "string", ]; - $rxcui = self::checkTypes($rxcui, $types); + $clincalPharmacology = self::checkTypes($clincalPharmacology, $types); - $this->rxcui = $rxcui; + $this->clincalPharmacology = $clincalPharmacology; } /** - * @return \OpenActive\Models\SchemaOrg\Drug|string + * @return string */ - public function getInteractingDrug() + public function getClinicalPharmacology() { - return $this->interactingDrug; + return $this->clinicalPharmacology; } /** - * @param \OpenActive\Models\SchemaOrg\Drug|string $interactingDrug + * @param string $clinicalPharmacology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractingDrug($interactingDrug) + public function setClinicalPharmacology($clinicalPharmacology) { $types = [ - "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $interactingDrug = self::checkTypes($interactingDrug, $types); + $clinicalPharmacology = self::checkTypes($clinicalPharmacology, $types); - $this->interactingDrug = $interactingDrug; + $this->clinicalPharmacology = $clinicalPharmacology; } /** @@ -499,320 +486,301 @@ public function setDosageForm($dosageForm) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string */ - public function getLabelDetails() + public function getDoseSchedule() { - return $this->labelDetails; + return $this->doseSchedule; } /** - * @param string $labelDetails + * @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 setLabelDetails($labelDetails) + public function setDoseSchedule($doseSchedule) { $types = [ + "\OpenActive\Models\SchemaOrg\DoseSchedule", "string", ]; - $labelDetails = self::checkTypes($labelDetails, $types); + $doseSchedule = self::checkTypes($doseSchedule, $types); - $this->labelDetails = $labelDetails; + $this->doseSchedule = $doseSchedule; } /** - * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string + * @return \OpenActive\Models\SchemaOrg\DrugClass|string */ - public function getMaximumIntake() + public function getDrugClass() { - return $this->maximumIntake; + return $this->drugClass; } /** - * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake + * @param \OpenActive\Models\SchemaOrg\DrugClass|string $drugClass * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumIntake($maximumIntake) + public function setDrugClass($drugClass) { $types = [ - "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule", + "\OpenActive\Models\SchemaOrg\DrugClass", "string", ]; - $maximumIntake = self::checkTypes($maximumIntake, $types); + $drugClass = self::checkTypes($drugClass, $types); - $this->maximumIntake = $maximumIntake; + $this->drugClass = $drugClass; } /** * @return string */ - public function getActiveIngredient() - { - return $this->activeIngredient; - } - - /** - * @param string $activeIngredient - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setActiveIngredient($activeIngredient) - { - $types = [ - "string", - ]; - - $activeIngredient = self::checkTypes($activeIngredient, $types); - - $this->activeIngredient = $activeIngredient; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Drug|string - */ - public function getRelatedDrug() + public function getDrugUnit() { - return $this->relatedDrug; + return $this->drugUnit; } /** - * @param \OpenActive\Models\SchemaOrg\Drug|string $relatedDrug + * @param string $drugUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedDrug($relatedDrug) + public function setDrugUnit($drugUnit) { $types = [ - "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $relatedDrug = self::checkTypes($relatedDrug, $types); + $drugUnit = self::checkTypes($drugUnit, $types); - $this->relatedDrug = $relatedDrug; + $this->drugUnit = $drugUnit; } /** * @return string */ - public function getAdministrationRoute() + public function getFoodWarning() { - return $this->administrationRoute; + return $this->foodWarning; } /** - * @param string $administrationRoute + * @param string $foodWarning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdministrationRoute($administrationRoute) + public function setFoodWarning($foodWarning) { $types = [ "string", ]; - $administrationRoute = self::checkTypes($administrationRoute, $types); + $foodWarning = self::checkTypes($foodWarning, $types); - $this->administrationRoute = $administrationRoute; + $this->foodWarning = $foodWarning; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string */ - public function getDrugUnit() + public function getIncludedInHealthInsurancePlan() { - return $this->drugUnit; + return $this->includedInHealthInsurancePlan; } /** - * @param string $drugUnit + * @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 setDrugUnit($drugUnit) + public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan) { $types = [ + "\OpenActive\Models\SchemaOrg\HealthInsurancePlan", "string", ]; - $drugUnit = self::checkTypes($drugUnit, $types); + $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types); - $this->drugUnit = $drugUnit; + $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Drug|string */ - public function getFoodWarning() + public function getInteractingDrug() { - return $this->foodWarning; + return $this->interactingDrug; } /** - * @param string $foodWarning + * @param \OpenActive\Models\SchemaOrg\Drug|string $interactingDrug * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFoodWarning($foodWarning) + public function setInteractingDrug($interactingDrug) { $types = [ + "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $foodWarning = self::checkTypes($foodWarning, $types); + $interactingDrug = self::checkTypes($interactingDrug, $types); - $this->foodWarning = $foodWarning; + $this->interactingDrug = $interactingDrug; } /** - * @return string + * @return bool|null */ - public function getWarning() + public function getIsAvailableGenerically() { - return $this->warning; + return $this->isAvailableGenerically; } /** - * @param string $warning + * @param bool|null $isAvailableGenerically * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarning($warning) + public function setIsAvailableGenerically($isAvailableGenerically) { $types = [ - "string", + "bool", + "null", ]; - $warning = self::checkTypes($warning, $types); + $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types); - $this->warning = $warning; + $this->isAvailableGenerically = $isAvailableGenerically; } /** - * @return \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string + * @return bool|null */ - public function getPrescriptionStatus() + public function getIsProprietary() { - return $this->prescriptionStatus; + return $this->isProprietary; } /** - * @param \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string $prescriptionStatus + * @param bool|null $isProprietary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrescriptionStatus($prescriptionStatus) + public function setIsProprietary($isProprietary) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus", - "string", + "bool", + "null", ]; - $prescriptionStatus = self::checkTypes($prescriptionStatus, $types); + $isProprietary = self::checkTypes($isProprietary, $types); - $this->prescriptionStatus = $prescriptionStatus; + $this->isProprietary = $isProprietary; } /** * @return string */ - public function getProprietaryName() + public function getLabelDetails() { - return $this->proprietaryName; + return $this->labelDetails; } /** - * @param string $proprietaryName + * @param string $labelDetails * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProprietaryName($proprietaryName) + public function setLabelDetails($labelDetails) { $types = [ "string", ]; - $proprietaryName = self::checkTypes($proprietaryName, $types); + $labelDetails = self::checkTypes($labelDetails, $types); - $this->proprietaryName = $proprietaryName; + $this->labelDetails = $labelDetails; } /** - * @return \OpenActive\Models\SchemaOrg\DrugClass|string + * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null */ - public function getDrugClass() + public function getLegalStatus() { - return $this->drugClass; + return $this->legalStatus; } /** - * @param \OpenActive\Models\SchemaOrg\DrugClass|string $drugClass + * @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 setDrugClass($drugClass) + public function setLegalStatus($legalStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugClass", + "\OpenActive\Models\SchemaOrg\DrugLegalStatus", + "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", "string", + "null", ]; - $drugClass = self::checkTypes($drugClass, $types); + $legalStatus = self::checkTypes($legalStatus, $types); - $this->drugClass = $drugClass; + $this->legalStatus = $legalStatus; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string */ - public function getPrescribingInfo() + public function getMaximumIntake() { - return $this->prescribingInfo; + return $this->maximumIntake; } /** - * @param string $prescribingInfo + * @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 setPrescribingInfo($prescribingInfo) + public function setMaximumIntake($maximumIntake) { $types = [ + "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule", "string", ]; - $prescribingInfo = self::checkTypes($prescribingInfo, $types); + $maximumIntake = self::checkTypes($maximumIntake, $types); - $this->prescribingInfo = $prescribingInfo; + $this->maximumIntake = $maximumIntake; } /** - * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string + * @return string */ - public function getIncludedInHealthInsurancePlan() + public function getMechanismOfAction() { - return $this->includedInHealthInsurancePlan; + return $this->mechanismOfAction; } /** - * @param \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string $includedInHealthInsurancePlan + * @param string $mechanismOfAction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan) + public function setMechanismOfAction($mechanismOfAction) { $types = [ - "\OpenActive\Models\SchemaOrg\HealthInsurancePlan", "string", ]; - $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types); + $mechanismOfAction = self::checkTypes($mechanismOfAction, $types); - $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan; + $this->mechanismOfAction = $mechanismOfAction; } /** @@ -840,224 +808,222 @@ public function setNonProprietaryName($nonProprietaryName) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getManufacturer() + public function getOverdosage() { - return $this->manufacturer; + return $this->overdosage; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer + * @param string $overdosage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setManufacturer($manufacturer) + public function setOverdosage($overdosage) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $manufacturer = self::checkTypes($manufacturer, $types); + $overdosage = self::checkTypes($overdosage, $types); - $this->manufacturer = $manufacturer; + $this->overdosage = $overdosage; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string */ - public function getIsProprietary() + public function getPregnancyCategory() { - return $this->isProprietary; + return $this->pregnancyCategory; } /** - * @param bool|null $isProprietary + * @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 setIsProprietary($isProprietary) + public function setPregnancyCategory($pregnancyCategory) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory", + "string", ]; - $isProprietary = self::checkTypes($isProprietary, $types); + $pregnancyCategory = self::checkTypes($pregnancyCategory, $types); - $this->isProprietary = $isProprietary; + $this->pregnancyCategory = $pregnancyCategory; } /** * @return string */ - public function getClincalPharmacology() + public function getPregnancyWarning() { - return $this->clincalPharmacology; + return $this->pregnancyWarning; } /** - * @param string $clincalPharmacology + * @param string $pregnancyWarning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setClincalPharmacology($clincalPharmacology) + public function setPregnancyWarning($pregnancyWarning) { $types = [ "string", ]; - $clincalPharmacology = self::checkTypes($clincalPharmacology, $types); + $pregnancyWarning = self::checkTypes($pregnancyWarning, $types); - $this->clincalPharmacology = $clincalPharmacology; + $this->pregnancyWarning = $pregnancyWarning; } /** - * @return bool|null + * @return string */ - public function getIsAvailableGenerically() + public function getPrescribingInfo() { - return $this->isAvailableGenerically; + return $this->prescribingInfo; } /** - * @param bool|null $isAvailableGenerically + * @param string $prescribingInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsAvailableGenerically($isAvailableGenerically) + public function setPrescribingInfo($prescribingInfo) { $types = [ - "bool", - "null", + "string", ]; - $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types); + $prescribingInfo = self::checkTypes($prescribingInfo, $types); - $this->isAvailableGenerically = $isAvailableGenerically; + $this->prescribingInfo = $prescribingInfo; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string */ - public function getBreastfeedingWarning() + public function getPrescriptionStatus() { - return $this->breastfeedingWarning; + return $this->prescriptionStatus; } /** - * @param string $breastfeedingWarning + * @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 setBreastfeedingWarning($breastfeedingWarning) + public function setPrescriptionStatus($prescriptionStatus) { $types = [ + "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus", "string", ]; - $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types); + $prescriptionStatus = self::checkTypes($prescriptionStatus, $types); - $this->breastfeedingWarning = $breastfeedingWarning; + $this->prescriptionStatus = $prescriptionStatus; } /** * @return string */ - public function getPregnancyWarning() + public function getProprietaryName() { - return $this->pregnancyWarning; + return $this->proprietaryName; } /** - * @param string $pregnancyWarning + * @param string $proprietaryName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPregnancyWarning($pregnancyWarning) + public function setProprietaryName($proprietaryName) { $types = [ "string", ]; - $pregnancyWarning = self::checkTypes($pregnancyWarning, $types); + $proprietaryName = self::checkTypes($proprietaryName, $types); - $this->pregnancyWarning = $pregnancyWarning; + $this->proprietaryName = $proprietaryName; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Drug|string */ - public function getAlcoholWarning() + public function getRelatedDrug() { - return $this->alcoholWarning; + return $this->relatedDrug; } /** - * @param string $alcoholWarning + * @param \OpenActive\Models\SchemaOrg\Drug|string $relatedDrug * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlcoholWarning($alcoholWarning) + public function setRelatedDrug($relatedDrug) { $types = [ + "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $alcoholWarning = self::checkTypes($alcoholWarning, $types); + $relatedDrug = self::checkTypes($relatedDrug, $types); - $this->alcoholWarning = $alcoholWarning; + $this->relatedDrug = $relatedDrug; } /** - * @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 string */ - public function getAvailableStrength() + public function getWarning() { - return $this->availableStrength; + return $this->warning; } /** - * @param \OpenActive\Models\SchemaOrg\DrugStrength|string $availableStrength + * @param string $warning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableStrength($availableStrength) + public function setWarning($warning) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugStrength", "string", ]; - $availableStrength = self::checkTypes($availableStrength, $types); + $warning = self::checkTypes($warning, $types); - $this->availableStrength = $availableStrength; + $this->warning = $warning; } } diff --git a/src/Models/SchemaOrg/DrugCost.php b/src/Models/SchemaOrg/DrugCost.php index 2db962a3..1e633692 100644 --- a/src/Models/SchemaOrg/DrugCost.php +++ b/src/Models/SchemaOrg/DrugCost.php @@ -18,11 +18,11 @@ public static function getType() public static function fieldList() { $fields = [ "applicableLocation" => "applicableLocation", - "costPerUnit" => "costPerUnit", "costCategory" => "costCategory", - "drugUnit" => "drugUnit", "costCurrency" => "costCurrency", "costOrigin" => "costOrigin", + "costPerUnit" => "costPerUnit", + "drugUnit" => "drugUnit", ]; return array_merge(parent::fieldList(), $fields); @@ -37,44 +37,44 @@ public static function fieldList() { protected $applicableLocation; /** - * The cost per unit of the drug. + * The category of cost, such as wholesale, retail, reimbursement cap, etc. * * - * @var string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var \OpenActive\Models\SchemaOrg\DrugCostCategory|string */ - protected $costPerUnit; + protected $costCategory; /** - * The category of cost, such as wholesale, retail, reimbursement cap, etc. + * The currency (in 3-letter) of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217. * * - * @var \OpenActive\Models\SchemaOrg\DrugCostCategory|string + * @var string */ - protected $costCategory; + protected $costCurrency; /** - * The unit in which the drug is measured, e.g. '5 mg tablet'. + * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'. * * * @var string */ - protected $drugUnit; + protected $costOrigin; /** - * The currency (in 3-letter of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217. + * The cost per unit of the drug. * * - * @var string + * @var Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $costCurrency; + protected $costPerUnit; /** - * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'. + * The unit in which the drug is measured, e.g. '5 mg tablet'. * * * @var string */ - protected $costOrigin; + protected $drugUnit; /** * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string @@ -102,127 +102,127 @@ public function setApplicableLocation($applicableLocation) } /** - * @return string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return \OpenActive\Models\SchemaOrg\DrugCostCategory|string */ - public function getCostPerUnit() + public function getCostCategory() { - return $this->costPerUnit; + return $this->costCategory; } /** - * @param string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $costPerUnit + * @param \OpenActive\Models\SchemaOrg\DrugCostCategory|string $costCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCostPerUnit($costPerUnit) + public function setCostCategory($costCategory) { $types = [ + "\OpenActive\Models\SchemaOrg\DrugCostCategory", "string", - "Number", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "null", ]; - $costPerUnit = self::checkTypes($costPerUnit, $types); + $costCategory = self::checkTypes($costCategory, $types); - $this->costPerUnit = $costPerUnit; + $this->costCategory = $costCategory; } /** - * @return \OpenActive\Models\SchemaOrg\DrugCostCategory|string + * @return string */ - public function getCostCategory() + public function getCostCurrency() { - return $this->costCategory; + return $this->costCurrency; } /** - * @param \OpenActive\Models\SchemaOrg\DrugCostCategory|string $costCategory + * @param string $costCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCostCategory($costCategory) + public function setCostCurrency($costCurrency) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugCostCategory", "string", ]; - $costCategory = self::checkTypes($costCategory, $types); + $costCurrency = self::checkTypes($costCurrency, $types); - $this->costCategory = $costCategory; + $this->costCurrency = $costCurrency; } /** * @return string */ - public function getDrugUnit() + public function getCostOrigin() { - return $this->drugUnit; + return $this->costOrigin; } /** - * @param string $drugUnit + * @param string $costOrigin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDrugUnit($drugUnit) + public function setCostOrigin($costOrigin) { $types = [ "string", ]; - $drugUnit = self::checkTypes($drugUnit, $types); + $costOrigin = self::checkTypes($costOrigin, $types); - $this->drugUnit = $drugUnit; + $this->costOrigin = $costOrigin; } /** - * @return string + * @return Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getCostCurrency() + public function getCostPerUnit() { - return $this->costCurrency; + return $this->costPerUnit; } /** - * @param string $costCurrency + * @param Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $costPerUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCostCurrency($costCurrency) + public function setCostPerUnit($costPerUnit) { $types = [ + "Number", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $costCurrency = self::checkTypes($costCurrency, $types); + $costPerUnit = self::checkTypes($costPerUnit, $types); - $this->costCurrency = $costCurrency; + $this->costPerUnit = $costPerUnit; } /** * @return string */ - public function getCostOrigin() + public function getDrugUnit() { - return $this->costOrigin; + return $this->drugUnit; } /** - * @param string $costOrigin + * @param string $drugUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCostOrigin($costOrigin) + public function setDrugUnit($drugUnit) { $types = [ "string", ]; - $costOrigin = self::checkTypes($costOrigin, $types); + $drugUnit = self::checkTypes($drugUnit, $types); - $this->costOrigin = $costOrigin; + $this->drugUnit = $drugUnit; } } diff --git a/src/Models/SchemaOrg/DrugStrength.php b/src/Models/SchemaOrg/DrugStrength.php index a5eaf983..6e28fa15 100644 --- a/src/Models/SchemaOrg/DrugStrength.php +++ b/src/Models/SchemaOrg/DrugStrength.php @@ -17,10 +17,10 @@ public static function getType() public static function fieldList() { $fields = [ + "activeIngredient" => "activeIngredient", "availableIn" => "availableIn", - "strengthUnit" => "strengthUnit", "maximumIntake" => "maximumIntake", - "activeIngredient" => "activeIngredient", + "strengthUnit" => "strengthUnit", "strengthValue" => "strengthValue", ]; @@ -28,20 +28,20 @@ public static function fieldList() { } /** - * The location in which the strength is available. + * An active ingredient, typically chemical compounds and/or biologic substances. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @var string */ - protected $availableIn; + protected $activeIngredient; /** - * The units of an active ingredient's strength, e.g. mg. + * The location in which the strength is available. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - protected $strengthUnit; + protected $availableIn; /** * Recommended intake of this supplement for a given population as defined by a specific recommending authority. @@ -52,12 +52,12 @@ public static function fieldList() { protected $maximumIntake; /** - * An active ingredient, typically chemical compounds and/or biologic substances. + * The units of an active ingredient's strength, e.g. mg. * * * @var string */ - protected $activeIngredient; + protected $strengthUnit; /** * The value of an active ingredient's strength, e.g. 325. @@ -68,52 +68,52 @@ public static function fieldList() { protected $strengthValue; /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @return string */ - public function getAvailableIn() + public function getActiveIngredient() { - return $this->availableIn; + return $this->activeIngredient; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $availableIn + * @param string $activeIngredient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableIn($availableIn) + public function setActiveIngredient($activeIngredient) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", ]; - $availableIn = self::checkTypes($availableIn, $types); + $activeIngredient = self::checkTypes($activeIngredient, $types); - $this->availableIn = $availableIn; + $this->activeIngredient = $activeIngredient; } /** - * @return string + * @return \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; } /** @@ -144,25 +144,25 @@ public function setMaximumIntake($maximumIntake) /** * @return string */ - public function getActiveIngredient() + public function getStrengthUnit() { - return $this->activeIngredient; + return $this->strengthUnit; } /** - * @param string $activeIngredient + * @param string $strengthUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActiveIngredient($activeIngredient) + public function setStrengthUnit($strengthUnit) { $types = [ "string", ]; - $activeIngredient = self::checkTypes($activeIngredient, $types); + $strengthUnit = self::checkTypes($strengthUnit, $types); - $this->activeIngredient = $activeIngredient; + $this->strengthUnit = $strengthUnit; } /** diff --git a/src/Models/SchemaOrg/Duration.php b/src/Models/SchemaOrg/Duration.php index 260eaa6d..4d34890e 100644 --- a/src/Models/SchemaOrg/Duration.php +++ b/src/Models/SchemaOrg/Duration.php @@ -5,7 +5,7 @@ /** * */ -class Duration extends \OpenActive\Models\SchemaOrg\Quantity +class Duration extends \OpenActive\BaseModel { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/EducationEvent.php b/src/Models/SchemaOrg/EducationEvent.php index 5c799d1e..6f426a69 100644 --- a/src/Models/SchemaOrg/EducationEvent.php +++ b/src/Models/SchemaOrg/EducationEvent.php @@ -17,65 +17,65 @@ public static function getType() public static function fieldList() { $fields = [ - "teaches" => "teaches", - "educationalLevel" => "educationalLevel", "assesses" => "assesses", + "educationalLevel" => "educationalLevel", + "teaches" => "teaches", ]; return array_merge(parent::fieldList(), $fields); } /** - * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. + * The item being described is intended to assess the competency or learning outcome defined by the referenced term. * * * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $teaches; + protected $assesses; /** * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ protected $educationalLevel; /** - * The item being described is intended to assess the competency or learning outcome defined by the referenced term. + * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $assesses; + protected $teaches; /** * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getTeaches() + public function getAssesses() { - return $this->teaches; + return $this->assesses; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches + * @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 setTeaches($teaches) + public function setAssesses($assesses) { $types = [ "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $teaches = self::checkTypes($teaches, $types); + $assesses = self::checkTypes($assesses, $types); - $this->teaches = $teaches; + $this->assesses = $assesses; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ public function getEducationalLevel() { @@ -83,15 +83,15 @@ public function getEducationalLevel() } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setEducationalLevel($educationalLevel) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; $educationalLevel = self::checkTypes($educationalLevel, $types); @@ -100,28 +100,28 @@ public function setEducationalLevel($educationalLevel) } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getAssesses() + public function getTeaches() { - return $this->assesses; + return $this->teaches; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssesses($assesses) + public function setTeaches($teaches) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $assesses = self::checkTypes($assesses, $types); + $teaches = self::checkTypes($teaches, $types); - $this->assesses = $assesses; + $this->teaches = $teaches; } } diff --git a/src/Models/SchemaOrg/EducationalOccupationalCredential.php b/src/Models/SchemaOrg/EducationalOccupationalCredential.php index fc10910a..3f17850c 100644 --- a/src/Models/SchemaOrg/EducationalOccupationalCredential.php +++ b/src/Models/SchemaOrg/EducationalOccupationalCredential.php @@ -5,7 +5,7 @@ /** * */ -class EducationalOccupationalCredential extends \OpenActive\Models\SchemaOrg\CreativeWork +class EducationalOccupationalCredential extends \OpenActive\Models\SchemaOrg\Credential { /** * @return string[]|null @@ -17,168 +17,31 @@ public static function getType() public static function fieldList() { $fields = [ - "validFor" => "validFor", - "educationalLevel" => "educationalLevel", - "credentialCategory" => "credentialCategory", - "recognizedBy" => "recognizedBy", "competencyRequired" => "competencyRequired", - "validIn" => "validIn", + "educationalLevel" => "educationalLevel", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The duration of validity of a permit or similar thing. - * - * - * @var DateInterval|string|null - */ - protected $validFor; - - /** - * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. - * - * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm - */ - protected $educationalLevel; - - /** - * The category or type of credential being described, for example "degree”, “certificate”, “badge”, or more specific term. - * - * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm - */ - 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. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ protected $competencyRequired; /** - * The geographic area where a permit or similar thing is valid. + * 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\AdministrativeArea|string - */ - protected $validIn; - - /** - * @return DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - 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 string|\OpenActive\Models\SchemaOrg\DefinedTerm - */ - public function getEducationalLevel() - { - return $this->educationalLevel; - } - - /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setEducationalLevel($educationalLevel) - { - $types = [ - "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", - ]; - - $educationalLevel = self::checkTypes($educationalLevel, $types); - - $this->educationalLevel = $educationalLevel; - } - - /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm - */ - public function getCredentialCategory() - { - return $this->credentialCategory; - } - - /** - * @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 setCredentialCategory($credentialCategory) - { - $types = [ - "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", - ]; - - $credentialCategory = self::checkTypes($credentialCategory, $types); - - $this->credentialCategory = $credentialCategory; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Organization|string - */ - public function getRecognizedBy() - { - return $this->recognizedBy; - } - - /** - * @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 setRecognizedBy($recognizedBy) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "string", - ]; - - $recognizedBy = self::checkTypes($recognizedBy, $types); - - $this->recognizedBy = $recognizedBy; - } + protected $educationalLevel; /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ public function getCompetencyRequired() { @@ -186,15 +49,15 @@ public function getCompetencyRequired() } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $competencyRequired + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $competencyRequired * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setCompetencyRequired($competencyRequired) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; $competencyRequired = self::checkTypes($competencyRequired, $types); @@ -203,28 +66,28 @@ public function setCompetencyRequired($competencyRequired) } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getValidIn() + public function getEducationalLevel() { - return $this->validIn; + return $this->educationalLevel; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $validIn + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidIn($validIn) + public function setEducationalLevel($educationalLevel) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $validIn = self::checkTypes($validIn, $types); + $educationalLevel = self::checkTypes($educationalLevel, $types); - $this->validIn = $validIn; + $this->educationalLevel = $educationalLevel; } } diff --git a/src/Models/SchemaOrg/EducationalOccupationalProgram.php b/src/Models/SchemaOrg/EducationalOccupationalProgram.php index 56cf7a09..1c2f78ff 100644 --- a/src/Models/SchemaOrg/EducationalOccupationalProgram.php +++ b/src/Models/SchemaOrg/EducationalOccupationalProgram.php @@ -17,662 +17,685 @@ public static function getType() public static function fieldList() { $fields = [ - "programPrerequisites" => "programPrerequisites", - "hasCourse" => "hasCourse", - "startDate" => "startDate", - "salaryUponCompletion" => "salaryUponCompletion", - "termsPerYear" => "termsPerYear", - "dayOfWeek" => "dayOfWeek", - "offers" => "offers", - "typicalCreditsPerTerm" => "typicalCreditsPerTerm", + "applicationDeadline" => "applicationDeadline", "applicationStartDate" => "applicationStartDate", - "timeOfDay" => "timeOfDay", - "endDate" => "endDate", - "provider" => "provider", - "trainingSalary" => "trainingSalary", + "dayOfWeek" => "dayOfWeek", "educationalCredentialAwarded" => "educationalCredentialAwarded", - "numberOfCredits" => "numberOfCredits", - "timeToComplete" => "timeToComplete", - "occupationalCredentialAwarded" => "occupationalCredentialAwarded", - "termDuration" => "termDuration", "educationalProgramMode" => "educationalProgramMode", - "programType" => "programType", - "maximumEnrollment" => "maximumEnrollment", + "endDate" => "endDate", "financialAidEligible" => "financialAidEligible", - "applicationDeadline" => "applicationDeadline", + "hasCourse" => "hasCourse", + "maximumEnrollment" => "maximumEnrollment", + "numberOfCredits" => "numberOfCredits", "occupationalCategory" => "occupationalCategory", + "occupationalCredentialAwarded" => "occupationalCredentialAwarded", + "offers" => "offers", + "programPrerequisites" => "programPrerequisites", + "programType" => "programType", + "provider" => "provider", + "salaryUponCompletion" => "salaryUponCompletion", + "startDate" => "startDate", + "termDuration" => "termDuration", + "termsPerYear" => "termsPerYear", + "timeOfDay" => "timeOfDay", + "timeToComplete" => "timeToComplete", + "trainingSalary" => "trainingSalary", + "typicalCreditsPerTerm" => "typicalCreditsPerTerm", ]; return array_merge(parent::fieldList(), $fields); } /** - * Prerequisites for enrolling in the program. + * 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 \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var Date|string|null */ - protected $programPrerequisites; + protected $applicationDeadline; /** - * A course or class that is one of the learning opportunities that constitute an educational / occupational program. No information is implied about whether the course is mandatory or optional; no guarantee is implied about whether the course will be available to everyone on the program. + * The date at which the program begins collecting applications for the next enrollment cycle. * * - * @var \OpenActive\Models\SchemaOrg\Course|string + * @var Date|null */ - protected $hasCourse; + protected $applicationStartDate; /** - * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * The day of the week for which these opening hours are valid. * * - * @var Date|DateTime|null + * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null */ - protected $startDate; + protected $dayOfWeek; /** - * The expected salary upon completing the training. + * 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\MonetaryAmountDistribution|string + * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - protected $salaryUponCompletion; + protected $educationalCredentialAwarded; /** - * 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. + * 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 Number|null + * @var string */ - protected $termsPerYear; + protected $educationalProgramMode; /** - * The day of the week for which these opening hours are valid. + * 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|null + * @var Date|DateTime|null */ - protected $dayOfWeek; + protected $endDate; /** - * 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 financial aid type or program which students may use to pay for tuition or fees associated with the program. * * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $offers; + protected $financialAidEligible; /** - * 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. + * A course or class that is one of the learning opportunities that constitute an educational / occupational program. No information is implied about whether the course is mandatory or optional; no guarantee is implied about whether the course will be available to everyone on the program. * * - * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @var \OpenActive\Models\SchemaOrg\Course|string */ - protected $typicalCreditsPerTerm; + protected $hasCourse; /** - * The date at which the program begins collecting applications for the next enrollment cycle. + * The maximum number of students who may be enrolled in the program. * * - * @var Date|null + * @var int|null */ - protected $applicationStartDate; + protected $maximumEnrollment; /** - * The time of day the program normally runs. For example, "evenings". + * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram. * * - * @var string + * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ - protected $timeOfDay; + protected $numberOfCredits; /** - * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * 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 Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\CategoryCode|string */ - protected $endDate; + protected $occupationalCategory; /** - * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. + * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - protected $provider; + protected $occupationalCredentialAwarded; /** - * The estimated salary earned while in the 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\MonetaryAmountDistribution|string + * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ - protected $trainingSalary; + protected $offers; /** - * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program. + * Prerequisites for enrolling in the program. * * - * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential + * @var \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - protected $educationalCredentialAwarded; + protected $programPrerequisites; /** - * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram. + * The type of educational or occupational program. For example, classroom, internship, alternance, etc. * * - * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $numberOfCredits; + protected $programType; /** - * The expected length of time to complete the program if attending full-time. + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $timeToComplete; + protected $provider; /** - * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program. + * The expected salary upon completing the training. * * - * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - protected $occupationalCredentialAwarded; + protected $salaryUponCompletion; /** - * 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 start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var DateInterval|string|null + * @var Date|DateTime|null */ - protected $termDuration; + protected $startDate; /** - * 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 ). + * The amount of time in a term as defined by the institution. A term is a length of time where students take one or more classes. Semesters and quarters are common units for term. * * - * @var string + * @var DateInterval|string|null */ - protected $educationalProgramMode; + protected $termDuration; /** - * The type of educational or occupational program. For example, classroom, internship, alternance, etc.. + * The number of times terms of study are offered per year. Semesters and quarters are common units for term. For example, if the student can only take 2 semesters for the program in one year, then termsPerYear should be 2. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var Number|null */ - protected $programType; + protected $termsPerYear; /** - * The maximum number of students who may be enrolled in the program. + * The time of day the program normally runs. For example, "evenings". * * - * @var int|null + * @var string */ - protected $maximumEnrollment; + protected $timeOfDay; /** - * A financial aid type or program which students may use to pay for tuition or fees associated with the program. + * The expected length of time to complete the program if attending full-time. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var DateInterval|string|null */ - protected $financialAidEligible; + protected $timeToComplete; /** - * The date at which the program stops collecting applications for the next enrollment cycle. + * The estimated salary earned while in the program. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - protected $applicationDeadline; + protected $trainingSalary; /** - * 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 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 \OpenActive\Models\SchemaOrg\CategoryCode|string + * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ - protected $occupationalCategory; + protected $typicalCreditsPerTerm; /** - * @return \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return Date|string|null */ - public function getProgramPrerequisites() + public function getApplicationDeadline() { - return $this->programPrerequisites; + return $this->applicationDeadline; } /** - * @param \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $programPrerequisites + * @param Date|string|null $applicationDeadline * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgramPrerequisites($programPrerequisites) + public function setApplicationDeadline($applicationDeadline) { $types = [ - "\OpenActive\Models\SchemaOrg\AlignmentObject", - "\OpenActive\Models\SchemaOrg\Course", - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "Date", "string", + "null", ]; - $programPrerequisites = self::checkTypes($programPrerequisites, $types); + $applicationDeadline = self::checkTypes($applicationDeadline, $types); - $this->programPrerequisites = $programPrerequisites; + $this->applicationDeadline = $applicationDeadline; } /** - * @return \OpenActive\Models\SchemaOrg\Course|string + * @return Date|null */ - public function getHasCourse() + public function getApplicationStartDate() { - return $this->hasCourse; + return $this->applicationStartDate; } /** - * @param \OpenActive\Models\SchemaOrg\Course|string $hasCourse + * @param Date|null $applicationStartDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasCourse($hasCourse) + public function setApplicationStartDate($applicationStartDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Course", - "string", + "Date", + "null", ]; - $hasCourse = self::checkTypes($hasCourse, $types); + $applicationStartDate = self::checkTypes($applicationStartDate, $types); - $this->hasCourse = $hasCourse; + $this->applicationStartDate = $applicationStartDate; } /** - * @return Date|DateTime|null + * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null */ - public function getStartDate() + public function getDayOfWeek() { - return $this->startDate; + return $this->dayOfWeek; } /** - * @param Date|DateTime|null $startDate + * @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 setStartDate($startDate) + public function setDayOfWeek($dayOfWeek) { $types = [ - "Date", - "DateTime", + "\OpenActive\Enums\SchemaOrg\DayOfWeek", "null", ]; - $startDate = self::checkTypes($startDate, $types); + $dayOfWeek = self::checkTypes($dayOfWeek, $types); - $this->startDate = $startDate; + $this->dayOfWeek = $dayOfWeek; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string + * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - public function getSalaryUponCompletion() + public function getEducationalCredentialAwarded() { - return $this->salaryUponCompletion; + return $this->educationalCredentialAwarded; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $salaryUponCompletion + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationalCredentialAwarded * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSalaryUponCompletion($salaryUponCompletion) + public function setEducationalCredentialAwarded($educationalCredentialAwarded) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", ]; - $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types); + $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types); - $this->salaryUponCompletion = $salaryUponCompletion; + $this->educationalCredentialAwarded = $educationalCredentialAwarded; } /** - * @return Number|null + * @return string */ - public function getTermsPerYear() + public function getEducationalProgramMode() { - return $this->termsPerYear; + return $this->educationalProgramMode; } /** - * @param Number|null $termsPerYear + * @param string $educationalProgramMode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTermsPerYear($termsPerYear) + public function setEducationalProgramMode($educationalProgramMode) { $types = [ - "Number", - "null", + "string", ]; - $termsPerYear = self::checkTypes($termsPerYear, $types); + $educationalProgramMode = self::checkTypes($educationalProgramMode, $types); - $this->termsPerYear = $termsPerYear; + $this->educationalProgramMode = $educationalProgramMode; } /** - * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null + * @return Date|DateTime|null */ - public function getDayOfWeek() + public function getEndDate() { - return $this->dayOfWeek; + return $this->endDate; } /** - * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|null $dayOfWeek + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDayOfWeek($dayOfWeek) + public function setEndDate($endDate) { $types = [ - "\OpenActive\Enums\SchemaOrg\DayOfWeek", + "Date", + "DateTime", "null", ]; - $dayOfWeek = self::checkTypes($dayOfWeek, $types); + $endDate = self::checkTypes($endDate, $types); - $this->dayOfWeek = $dayOfWeek; + $this->endDate = $endDate; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getOffers() + public function getFinancialAidEligible() { - return $this->offers; + return $this->financialAidEligible; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $financialAidEligible * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setFinancialAidEligible($financialAidEligible) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $offers = self::checkTypes($offers, $types); + $financialAidEligible = self::checkTypes($financialAidEligible, $types); - $this->offers = $offers; + $this->financialAidEligible = $financialAidEligible; } /** - * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @return \OpenActive\Models\SchemaOrg\Course|string */ - public function getTypicalCreditsPerTerm() + public function getHasCourse() { - return $this->typicalCreditsPerTerm; + return $this->hasCourse; } /** - * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $typicalCreditsPerTerm + * @param \OpenActive\Models\SchemaOrg\Course|string $hasCourse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypicalCreditsPerTerm($typicalCreditsPerTerm) + public function setHasCourse($hasCourse) { $types = [ - "int", - "\OpenActive\Models\SchemaOrg\StructuredValue", + "\OpenActive\Models\SchemaOrg\Course", "string", + ]; + + $hasCourse = self::checkTypes($hasCourse, $types); + + $this->hasCourse = $hasCourse; + } + + /** + * @return int|null + */ + public function getMaximumEnrollment() + { + return $this->maximumEnrollment; + } + + /** + * @param int|null $maximumEnrollment + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMaximumEnrollment($maximumEnrollment) + { + $types = [ + "int", "null", ]; - $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types); + $maximumEnrollment = self::checkTypes($maximumEnrollment, $types); - $this->typicalCreditsPerTerm = $typicalCreditsPerTerm; + $this->maximumEnrollment = $maximumEnrollment; } /** - * @return Date|null + * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ - public function getApplicationStartDate() + public function getNumberOfCredits() { - return $this->applicationStartDate; + return $this->numberOfCredits; } /** - * @param Date|null $applicationStartDate + * @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 setApplicationStartDate($applicationStartDate) + public function setNumberOfCredits($numberOfCredits) { $types = [ - "Date", + "int", + "\OpenActive\Models\SchemaOrg\StructuredValue", + "string", "null", ]; - $applicationStartDate = self::checkTypes($applicationStartDate, $types); + $numberOfCredits = self::checkTypes($numberOfCredits, $types); - $this->applicationStartDate = $applicationStartDate; + $this->numberOfCredits = $numberOfCredits; } /** - * @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 \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - public function getEndDate() + public function getOccupationalCredentialAwarded() { - return $this->endDate; + return $this->occupationalCredentialAwarded; } /** - * @param Date|DateTime|null $endDate + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndDate($endDate) + public function setOccupationalCredentialAwarded($occupationalCredentialAwarded) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "string", ]; - $endDate = self::checkTypes($endDate, $types); + $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types); - $this->endDate = $endDate; + $this->occupationalCredentialAwarded = $occupationalCredentialAwarded; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ - public function getProvider() + public function getOffers() { - return $this->provider; + return $this->offers; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setOffers($offers) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $provider = self::checkTypes($provider, $types); + $offers = self::checkTypes($offers, $types); - $this->provider = $provider; + $this->offers = $offers; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string + * @return \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - public function getTrainingSalary() + public function getProgramPrerequisites() { - return $this->trainingSalary; + return $this->programPrerequisites; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $trainingSalary + * @param \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $programPrerequisites * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrainingSalary($trainingSalary) + public function setProgramPrerequisites($programPrerequisites) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", + "\OpenActive\Models\SchemaOrg\AlignmentObject", + "\OpenActive\Models\SchemaOrg\Course", + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", ]; - $trainingSalary = self::checkTypes($trainingSalary, $types); + $programPrerequisites = self::checkTypes($programPrerequisites, $types); - $this->trainingSalary = $trainingSalary; + $this->programPrerequisites = $programPrerequisites; } /** - * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getEducationalCredentialAwarded() + public function getProgramType() { - return $this->educationalCredentialAwarded; + return $this->programType; } /** - * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $programType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalCredentialAwarded($educationalCredentialAwarded) + public function setProgramType($programType) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", ]; - $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types); + $programType = self::checkTypes($programType, $types); - $this->educationalCredentialAwarded = $educationalCredentialAwarded; + $this->programType = $programType; } /** - * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getNumberOfCredits() + public function getProvider() { - return $this->numberOfCredits; + return $this->provider; } /** - * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $numberOfCredits + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfCredits($numberOfCredits) + public function setProvider($provider) { $types = [ - "int", - "\OpenActive\Models\SchemaOrg\StructuredValue", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $numberOfCredits = self::checkTypes($numberOfCredits, $types); + $provider = self::checkTypes($provider, $types); - $this->numberOfCredits = $numberOfCredits; + $this->provider = $provider; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - public function getTimeToComplete() + public function getSalaryUponCompletion() { - return $this->timeToComplete; + return $this->salaryUponCompletion; } /** - * @param DateInterval|string|null $timeToComplete + * @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 setTimeToComplete($timeToComplete) + public function setSalaryUponCompletion($salaryUponCompletion) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", "string", - "null", ]; - $timeToComplete = self::checkTypes($timeToComplete, $types); + $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types); - $this->timeToComplete = $timeToComplete; + $this->salaryUponCompletion = $salaryUponCompletion; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return Date|DateTime|null */ - public function getOccupationalCredentialAwarded() + public function getStartDate() { - return $this->occupationalCredentialAwarded; + return $this->startDate; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupationalCredentialAwarded($occupationalCredentialAwarded) + public function setStartDate($startDate) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", - "string", + "Date", + "DateTime", + "null", ]; - $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types); + $startDate = self::checkTypes($startDate, $types); - $this->occupationalCredentialAwarded = $occupationalCredentialAwarded; + $this->startDate = $startDate; } /** @@ -702,152 +725,130 @@ public function setTermDuration($termDuration) } /** - * @return string + * @return Number|null */ - public function getEducationalProgramMode() + public function getTermsPerYear() { - return $this->educationalProgramMode; + return $this->termsPerYear; } /** - * @param string $educationalProgramMode + * @param Number|null $termsPerYear * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalProgramMode($educationalProgramMode) + public function setTermsPerYear($termsPerYear) { $types = [ - "string", + "Number", + "null", ]; - $educationalProgramMode = self::checkTypes($educationalProgramMode, $types); + $termsPerYear = self::checkTypes($termsPerYear, $types); - $this->educationalProgramMode = $educationalProgramMode; + $this->termsPerYear = $termsPerYear; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return string */ - public function getProgramType() + public function getTimeOfDay() { - return $this->programType; + return $this->timeOfDay; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $programType + * @param string $timeOfDay * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgramType($programType) + public function setTimeOfDay($timeOfDay) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $programType = self::checkTypes($programType, $types); + $timeOfDay = self::checkTypes($timeOfDay, $types); - $this->programType = $programType; + $this->timeOfDay = $timeOfDay; } /** - * @return int|null + * @return DateInterval|string|null */ - public function getMaximumEnrollment() + public function getTimeToComplete() { - return $this->maximumEnrollment; + return $this->timeToComplete; } /** - * @param int|null $maximumEnrollment + * @param DateInterval|string|null $timeToComplete * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumEnrollment($maximumEnrollment) + public function setTimeToComplete($timeToComplete) { $types = [ - "int", + "DateInterval", + "string", "null", ]; - $maximumEnrollment = self::checkTypes($maximumEnrollment, $types); + $timeToComplete = self::checkTypes($timeToComplete, $types); - $this->maximumEnrollment = $maximumEnrollment; + $this->timeToComplete = $timeToComplete; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - public function getFinancialAidEligible() + public function getTrainingSalary() { - return $this->financialAidEligible; + return $this->trainingSalary; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $financialAidEligible + * @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 setFinancialAidEligible($financialAidEligible) + public function setTrainingSalary($trainingSalary) { $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", - ]; - - $financialAidEligible = self::checkTypes($financialAidEligible, $types); - - $this->financialAidEligible = $financialAidEligible; - } - - /** - * @return Date|null - */ - public function getApplicationDeadline() - { - return $this->applicationDeadline; - } - - /** - * @param Date|null $applicationDeadline - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setApplicationDeadline($applicationDeadline) - { - $types = [ - "Date", - "null", ]; - $applicationDeadline = self::checkTypes($applicationDeadline, $types); + $trainingSalary = self::checkTypes($trainingSalary, $types); - $this->applicationDeadline = $applicationDeadline; + $this->trainingSalary = $trainingSalary; } /** - * @return \OpenActive\Models\SchemaOrg\CategoryCode|string + * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ - public function getOccupationalCategory() + public function getTypicalCreditsPerTerm() { - return $this->occupationalCategory; + return $this->typicalCreditsPerTerm; } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory + * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $typicalCreditsPerTerm * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupationalCategory($occupationalCategory) + public function setTypicalCreditsPerTerm($typicalCreditsPerTerm) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCode", + "int", + "\OpenActive\Models\SchemaOrg\StructuredValue", "string", + "null", ]; - $occupationalCategory = self::checkTypes($occupationalCategory, $types); + $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types); - $this->occupationalCategory = $occupationalCategory; + $this->typicalCreditsPerTerm = $typicalCreditsPerTerm; } } diff --git a/src/Models/SchemaOrg/EmployeeRole.php b/src/Models/SchemaOrg/EmployeeRole.php index 6740e91d..11c67e1e 100644 --- a/src/Models/SchemaOrg/EmployeeRole.php +++ b/src/Models/SchemaOrg/EmployeeRole.php @@ -17,79 +17,79 @@ public static function getType() public static function fieldList() { $fields = [ - "salaryCurrency" => "salaryCurrency", "baseSalary" => "baseSalary", + "salaryCurrency" => "salaryCurrency", ]; return array_merge(parent::fieldList(), $fields); } /** - * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) ) used for the main salary information in this job posting or for this employee. + * The base salary of the job or of an employee in an EmployeeRole. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - protected $salaryCurrency; + protected $baseSalary; /** - * The base salary of the job or of an employee in an EmployeeRole. + * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)) used for the main salary information in this job posting or for this employee. * * - * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var string */ - protected $baseSalary; + protected $salaryCurrency; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - public function getSalaryCurrency() + public function getBaseSalary() { - return $this->salaryCurrency; + return $this->baseSalary; } /** - * @param string $salaryCurrency + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null $baseSalary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSalaryCurrency($salaryCurrency) + public function setBaseSalary($baseSalary) { $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "Number", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", + "null", ]; - $salaryCurrency = self::checkTypes($salaryCurrency, $types); + $baseSalary = self::checkTypes($baseSalary, $types); - $this->salaryCurrency = $salaryCurrency; + $this->baseSalary = $baseSalary; } /** - * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return string */ - public function getBaseSalary() + public function getSalaryCurrency() { - return $this->baseSalary; + return $this->salaryCurrency; } /** - * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary + * @param string $salaryCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBaseSalary($baseSalary) + public function setSalaryCurrency($salaryCurrency) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\PriceSpecification", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", - "null", ]; - $baseSalary = self::checkTypes($baseSalary, $types); + $salaryCurrency = self::checkTypes($salaryCurrency, $types); - $this->baseSalary = $baseSalary; + $this->salaryCurrency = $salaryCurrency; } } diff --git a/src/Models/SchemaOrg/EndorseAction.php b/src/Models/SchemaOrg/EndorseAction.php index ef4f2ddd..53123cb4 100644 --- a/src/Models/SchemaOrg/EndorseAction.php +++ b/src/Models/SchemaOrg/EndorseAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * A sub property of participant. The person/organization being supported. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $endorsee; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getEndorsee() { @@ -40,15 +40,15 @@ public function getEndorsee() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $endorsee + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $endorsee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setEndorsee($endorsee) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/Energy.php b/src/Models/SchemaOrg/Energy.php index 63a2b974..cd13d15e 100644 --- a/src/Models/SchemaOrg/Energy.php +++ b/src/Models/SchemaOrg/Energy.php @@ -5,7 +5,7 @@ /** * */ -class Energy extends \OpenActive\Models\SchemaOrg\Quantity +class Energy extends \OpenActive\BaseModel { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/EnergyConsumptionDetails.php b/src/Models/SchemaOrg/EnergyConsumptionDetails.php index 0233f6c3..376a10a4 100644 --- a/src/Models/SchemaOrg/EnergyConsumptionDetails.php +++ b/src/Models/SchemaOrg/EnergyConsumptionDetails.php @@ -17,14 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ + "energyEfficiencyScaleMax" => "energyEfficiencyScaleMax", "energyEfficiencyScaleMin" => "energyEfficiencyScaleMin", "hasEnergyEfficiencyCategory" => "hasEnergyEfficiencyCategory", - "energyEfficiencyScaleMax" => "energyEfficiencyScaleMax", ]; return array_merge(parent::fieldList(), $fields); } + /** + * Specifies the most energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++. + * + * + * @var \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string + */ + protected $energyEfficiencyScaleMax; + /** * Specifies the least energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++. * @@ -42,12 +50,29 @@ public static function fieldList() { protected $hasEnergyEfficiencyCategory; /** - * Specifies the most energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++. - * - * - * @var \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string + * @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string */ - protected $energyEfficiencyScaleMax; + public function getEnergyEfficiencyScaleMax() + { + return $this->energyEfficiencyScaleMax; + } + + /** + * @param \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string $energyEfficiencyScaleMax + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setEnergyEfficiencyScaleMax($energyEfficiencyScaleMax) + { + $types = [ + "\OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration", + "string", + ]; + + $energyEfficiencyScaleMax = self::checkTypes($energyEfficiencyScaleMax, $types); + + $this->energyEfficiencyScaleMax = $energyEfficiencyScaleMax; + } /** * @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string @@ -99,29 +124,4 @@ public function setHasEnergyEfficiencyCategory($hasEnergyEfficiencyCategory) $this->hasEnergyEfficiencyCategory = $hasEnergyEfficiencyCategory; } - /** - * @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string - */ - public function getEnergyEfficiencyScaleMax() - { - return $this->energyEfficiencyScaleMax; - } - - /** - * @param \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string $energyEfficiencyScaleMax - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setEnergyEfficiencyScaleMax($energyEfficiencyScaleMax) - { - $types = [ - "\OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration", - "string", - ]; - - $energyEfficiencyScaleMax = self::checkTypes($energyEfficiencyScaleMax, $types); - - $this->energyEfficiencyScaleMax = $energyEfficiencyScaleMax; - } - } diff --git a/src/Models/SchemaOrg/EngineSpecification.php b/src/Models/SchemaOrg/EngineSpecification.php index e534fd48..8e3d2908 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", "engineType" => "engineType", + "fuelType" => "fuelType", + "torque" => "torque", ]; 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 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 string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $fuelType; + protected $engineDisplacement; /** - * The torque (turning force) of the vehicle's engine.\n\nTypical unit code(s): NU for newton metre (N m), F17 for pound-force per foot, or F48 for pound-force per inch\n\n* Note 1: You can link to information about how the given value has been determined (e.g. reference RPM) using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges. + * The power of the vehicle's engine. + * Typical unit code(s): KWT for kilowatt, BHP for brake horsepower, N12 for metric horsepower (PS, with 1 PS = 735,49875 W)\n\n* Note 1: There are many different ways of measuring an engine's power. For an overview, see [http://en.wikipedia.org/wiki/Horsepower#Engine\_power\_test\_codes](http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes).\n* Note 2: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 3: You can use [[minValue]] and [[maxValue]] to indicate ranges. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $torque; + protected $enginePower; /** - * The volume swept by all of the pistons inside the cylinders of an internal combustion engine in a single movement. \n\nTypical unit code(s): CMQ for cubic centimeter, LTR for liters, INQ for cubic inches\n* Note 1: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges. + * The type of engine or engines powering the vehicle. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $engineDisplacement; + protected $engineType; /** - * The power of the vehicle's engine. - * Typical unit code(s): KWT for kilowatt, BHP for brake horsepower, N12 for metric horsepower (PS, with 1 PS = 735,49875 W)\n\n* Note 1: There are many different ways of measuring an engine's power. For an overview, see [http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes](http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes).\n* Note 2: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 3: You can use [[minValue]] and [[maxValue]] to indicate ranges. + * The 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 + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $enginePower; + protected $fuelType; /** - * The type of engine or engines powering the vehicle. + * The torque (turning force) of the vehicle's engine.\n\nTypical unit code(s): NU for newton metre (N m), F17 for pound-force per foot, or F48 for pound-force per inch\n\n* Note 1: You can link to information about how the given value has been determined (e.g. reference RPM) using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $engineType; + protected $torque; /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getFuelType() + public function getEngineDisplacement() { - return $this->fuelType; + return $this->engineDisplacement; } /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $fuelType + * @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 setFuelType($fuelType) + public function setEngineDisplacement($engineDisplacement) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "null", ]; - $fuelType = self::checkTypes($fuelType, $types); + $engineDisplacement = self::checkTypes($engineDisplacement, $types); - $this->fuelType = $fuelType; + $this->engineDisplacement = $engineDisplacement; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getTorque() + public function getEnginePower() { - return $this->torque; + return $this->enginePower; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $torque + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $enginePower * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTorque($torque) + public function setEnginePower($enginePower) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $torque = self::checkTypes($torque, $types); + $enginePower = self::checkTypes($enginePower, $types); - $this->torque = $torque; + $this->enginePower = $enginePower; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getEngineDisplacement() + public function getEngineType() { - return $this->engineDisplacement; + return $this->engineType; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $engineDisplacement + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $engineType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEngineDisplacement($engineDisplacement) + public function setEngineType($engineType) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $engineDisplacement = self::checkTypes($engineDisplacement, $types); + $engineType = self::checkTypes($engineType, $types); - $this->engineDisplacement = $engineDisplacement; + $this->engineType = $engineType; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getEnginePower() + public function getFuelType() { - return $this->enginePower; + return $this->fuelType; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $enginePower + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $fuelType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEnginePower($enginePower) + public function setFuelType($fuelType) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $enginePower = self::checkTypes($enginePower, $types); + $fuelType = self::checkTypes($fuelType, $types); - $this->enginePower = $enginePower; + $this->fuelType = $fuelType; } /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEngineType() + public function getTorque() { - return $this->engineType; + return $this->torque; } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $engineType + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $torque * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEngineType($engineType) + public function setTorque($torque) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $engineType = self::checkTypes($engineType, $types); + $torque = self::checkTypes($torque, $types); - $this->engineType = $engineType; + $this->torque = $torque; } } diff --git a/src/Models/SchemaOrg/EntryPoint.php b/src/Models/SchemaOrg/EntryPoint.php index 90f87fbb..c1f1845c 100644 --- a/src/Models/SchemaOrg/EntryPoint.php +++ b/src/Models/SchemaOrg/EntryPoint.php @@ -18,12 +18,12 @@ public static function getType() public static function fieldList() { $fields = [ "actionApplication" => "actionApplication", - "application" => "application", "actionPlatform" => "actionPlatform", + "application" => "application", + "contentType" => "contentType", + "encodingType" => "encodingType", "httpMethod" => "httpMethod", "urlTemplate" => "urlTemplate", - "encodingType" => "encodingType", - "contentType" => "contentType", ]; return array_merge(parent::fieldList(), $fields); @@ -38,52 +38,52 @@ public static function fieldList() { protected $actionApplication; /** - * 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 $application; + protected $actionPlatform; /** - * 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 $application; /** - * 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 content type(s) for an EntryPoint response. * * * @var string */ - protected $httpMethod; + protected $contentType; /** - * An url template (RFC6570) that will be used to construct the target of the execution of the action. + * The supported encoding type(s) for an EntryPoint request. * * * @var string */ - protected $urlTemplate; + protected $encodingType; /** - * 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 url template (RFC6570) that will be used to construct the target of the execution of the action. * * * @var string */ - protected $contentType; + protected $urlTemplate; /** * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string @@ -111,150 +111,150 @@ public function setActionApplication($actionApplication) } /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @return \OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|string|null */ - public function getApplication() + public function getActionPlatform() { - return $this->application; + return $this->actionPlatform; } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $application + * @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 setApplication($application) + public function setActionPlatform($actionPlatform) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", + "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration", "string", + "null", ]; - $application = self::checkTypes($application, $types); + $actionPlatform = self::checkTypes($actionPlatform, $types); - $this->application = $application; + $this->actionPlatform = $actionPlatform; } /** - * @return string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null + * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - public function getActionPlatform() + public function getApplication() { - return $this->actionPlatform; + return $this->application; } /** - * @param string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null $actionPlatform + * @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 setActionPlatform($actionPlatform) + public function setApplication($application) { $types = [ + "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", - "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration", - "null", ]; - $actionPlatform = self::checkTypes($actionPlatform, $types); + $application = self::checkTypes($application, $types); - $this->actionPlatform = $actionPlatform; + $this->application = $application; } /** * @return string */ - public function getHttpMethod() + public function getContentType() { - return $this->httpMethod; + return $this->contentType; } /** - * @param string $httpMethod + * @param string $contentType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHttpMethod($httpMethod) + public function setContentType($contentType) { $types = [ "string", ]; - $httpMethod = self::checkTypes($httpMethod, $types); + $contentType = self::checkTypes($contentType, $types); - $this->httpMethod = $httpMethod; + $this->contentType = $contentType; } /** * @return string */ - public function getUrlTemplate() + public function getEncodingType() { - return $this->urlTemplate; + return $this->encodingType; } /** - * @param string $urlTemplate + * @param string $encodingType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUrlTemplate($urlTemplate) + public function setEncodingType($encodingType) { $types = [ "string", ]; - $urlTemplate = self::checkTypes($urlTemplate, $types); + $encodingType = self::checkTypes($encodingType, $types); - $this->urlTemplate = $urlTemplate; + $this->encodingType = $encodingType; } /** * @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 */ - public function getContentType() + public function getUrlTemplate() { - return $this->contentType; + return $this->urlTemplate; } /** - * @param string $contentType + * @param string $urlTemplate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContentType($contentType) + public function setUrlTemplate($urlTemplate) { $types = [ "string", ]; - $contentType = self::checkTypes($contentType, $types); + $urlTemplate = self::checkTypes($urlTemplate, $types); - $this->contentType = $contentType; + $this->urlTemplate = $urlTemplate; } } diff --git a/src/Models/SchemaOrg/Enumeration.php b/src/Models/SchemaOrg/Enumeration.php index 62d87fa6..f03ea820 100644 --- a/src/Models/SchemaOrg/Enumeration.php +++ b/src/Models/SchemaOrg/Enumeration.php @@ -27,12 +27,12 @@ public static function fieldList() { * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|\OpenActive\Enums\PropertyEnumeration|null */ protected $supersededBy; /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|\OpenActive\Enums\PropertyEnumeration|null */ public function getSupersededBy() { @@ -40,15 +40,15 @@ public function getSupersededBy() } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy + * @param \OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSupersededBy($supersededBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", "\OpenActive\Models\SchemaOrg\Class", + "\OpenActive\Models\SchemaOrg\Enumeration", "string", "\OpenActive\Enums\PropertyEnumeration", "null", diff --git a/src/Models/SchemaOrg/EnvironmentalProductDeclaration.php b/src/Models/SchemaOrg/EnvironmentalProductDeclaration.php new file mode 100644 index 00000000..632711b8 --- /dev/null +++ b/src/Models/SchemaOrg/EnvironmentalProductDeclaration.php @@ -0,0 +1,25 @@ + "episodeNumber", - "director" => "director", "actor" => "actor", - "trailer" => "trailer", - "partOfSeries" => "partOfSeries", + "actors" => "actors", + "director" => "director", + "directors" => "directors", "duration" => "duration", + "episodeNumber" => "episodeNumber", + "musicBy" => "musicBy", "partOfSeason" => "partOfSeason", + "partOfSeries" => "partOfSeries", "productionCompany" => "productionCompany", - "actors" => "actors", - "musicBy" => "musicBy", - "directors" => "directors", + "trailer" => "trailer", ]; 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\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|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. + * 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 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 $actor; + protected $director; /** - * 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 series to which this episode or season 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\CreativeWorkSeries|string + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $partOfSeries; + protected $duration; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * Position of the episode within an ordered group of episodes. * * - * @var DateInterval|string|null + * @var string|int|null */ - protected $duration; + protected $episodeNumber; /** - * The season to which this episode belongs. + * The composer of the soundtrack. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $partOfSeason; + protected $musicBy; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * The season to which this episode belongs. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $productionCompany; + protected $partOfSeason; /** - * 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 series to which this episode or season belongs. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - protected $actors; + protected $partOfSeries; /** - * The composer of the soundtrack. + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $musicBy; + protected $productionCompany; /** - * 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 trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $directors; + protected $trailer; /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getEpisodeNumber() + public function getActor() { - return $this->episodeNumber; + return $this->actor; } /** - * @param string|int|null $episodeNumber + * @param \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|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\PerformingGroup", + "\OpenActive\Models\SchemaOrg\Person", "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 */ - 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 */ - public function getActor() + public function getDirector() { - return $this->actor; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @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 setActor($actor) + public function setDirector($director) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actor = self::checkTypes($actor, $types); + $director = self::checkTypes($director, $types); - $this->actor = $actor; + $this->director = $director; } /** - * @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; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getPartOfSeries() + public function getDuration() { - return $this->partOfSeries; + return $this->duration; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries + * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfSeries($partOfSeries) + public function setDuration($duration) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $partOfSeries = self::checkTypes($partOfSeries, $types); + $duration = self::checkTypes($duration, $types); - $this->partOfSeries = $partOfSeries; + $this->duration = $duration; } /** - * @return DateInterval|string|null + * @return string|int|null */ - public function getDuration() + public function getEpisodeNumber() { - return $this->duration; + return $this->episodeNumber; } /** - * @param DateInterval|string|null $duration + * @param string|int|null $episodeNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setEpisodeNumber($episodeNumber) { $types = [ - "DateInterval", "string", + "int", "null", ]; - $duration = self::checkTypes($duration, $types); + $episodeNumber = self::checkTypes($episodeNumber, $types); - $this->duration = $duration; + $this->episodeNumber = $episodeNumber; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPartOfSeason() + public function getMusicBy() { - return $this->partOfSeason; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason + * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfSeason($partOfSeason) + public function setMusicBy($musicBy) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $partOfSeason = self::checkTypes($partOfSeason, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->partOfSeason = $partOfSeason; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getProductionCompany() + public function getPartOfSeason() { - return $this->productionCompany; + return $this->partOfSeason; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @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 setProductionCompany($productionCompany) + public function setPartOfSeason($partOfSeason) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $partOfSeason = self::checkTypes($partOfSeason, $types); - $this->productionCompany = $productionCompany; + $this->partOfSeason = $partOfSeason; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - public function getActors() + public function getPartOfSeries() { - return $this->actors; + return $this->partOfSeries; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @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 setActors($actors) + public function setPartOfSeries($partOfSeries) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", "string", ]; - $actors = self::checkTypes($actors, $types); + $partOfSeries = self::checkTypes($partOfSeries, $types); - $this->actors = $actors; + $this->partOfSeries = $partOfSeries; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getMusicBy() + public function getProductionCompany() { - return $this->musicBy; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @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 setMusicBy($musicBy) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->musicBy = $musicBy; + $this->productionCompany = $productionCompany; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getDirectors() + public function getTrailer() { - return $this->directors; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @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 setDirectors($directors) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $directors = self::checkTypes($directors, $types); + $trailer = self::checkTypes($trailer, $types); - $this->directors = $directors; + $this->trailer = $trailer; } } diff --git a/src/Models/SchemaOrg/Error.php b/src/Models/SchemaOrg/Error.php new file mode 100644 index 00000000..b8f6e294 --- /dev/null +++ b/src/Models/SchemaOrg/Error.php @@ -0,0 +1,62 @@ + "errorCode", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * Application or platform dependant error code. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|int|\OpenActive\Enums\SchemaOrg\StatusEnumeration|string|null + */ + protected $errorCode; + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|int|\OpenActive\Enums\SchemaOrg\StatusEnumeration|string|null + */ + public function getErrorCode() + { + return $this->errorCode; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|int|\OpenActive\Enums\SchemaOrg\StatusEnumeration|string|null $errorCode + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setErrorCode($errorCode) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "int", + "\OpenActive\Enums\SchemaOrg\StatusEnumeration", + "string", + "null", + ]; + + $errorCode = self::checkTypes($errorCode, $types); + + $this->errorCode = $errorCode; + } + +} diff --git a/src/Models/SchemaOrg/Event.php b/src/Models/SchemaOrg/Event.php index ece71294..d0b1dadb 100644 --- a/src/Models/SchemaOrg/Event.php +++ b/src/Models/SchemaOrg/Event.php @@ -17,91 +17,101 @@ public static function getType() public static function fieldList() { $fields = [ - "superEvent" => "superEvent", - "eventAttendanceMode" => "eventAttendanceMode", - "review" => "review", - "translator" => "translator", - "startDate" => "startDate", + "about" => "about", + "actor" => "actor", + "aggregateRating" => "aggregateRating", + "attendee" => "attendee", + "attendees" => "attendees", + "audience" => "audience", "composer" => "composer", - "maximumAttendeeCapacity" => "maximumAttendeeCapacity", - "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity", + "contributor" => "contributor", "director" => "director", + "doorTime" => "doorTime", + "duration" => "duration", + "endDate" => "endDate", + "eventAttendanceMode" => "eventAttendanceMode", + "eventSchedule" => "eventSchedule", + "eventStatus" => "eventStatus", + "funder" => "funder", "funding" => "funding", + "hasParticipationOffer" => "hasParticipationOffer", + "hasSponsorshipOffer" => "hasSponsorshipOffer", + "inLanguage" => "inLanguage", + "isAccessibleForFree" => "isAccessibleForFree", "keywords" => "keywords", - "audience" => "audience", + "location" => "location", + "maximumAttendeeCapacity" => "maximumAttendeeCapacity", + "maximumPhysicalAttendeeCapacity" => "maximumPhysicalAttendeeCapacity", + "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity", "offers" => "offers", - "subEvent" => "subEvent", - "actor" => "actor", - "eventStatus" => "eventStatus", - "endDate" => "endDate", - "funder" => "funder", + "organizer" => "organizer", "performer" => "performer", - "aggregateRating" => "aggregateRating", - "typicalAgeRange" => "typicalAgeRange", - "location" => "location", "performers" => "performers", - "duration" => "duration", - "organizer" => "organizer", - "sponsor" => "sponsor", "previousStartDate" => "previousStartDate", - "isAccessibleForFree" => "isAccessibleForFree", + "recordedIn" => "recordedIn", "remainingAttendeeCapacity" => "remainingAttendeeCapacity", + "review" => "review", + "sponsor" => "sponsor", + "startDate" => "startDate", + "subEvent" => "subEvent", "subEvents" => "subEvents", - "workPerformed" => "workPerformed", - "doorTime" => "doorTime", - "inLanguage" => "inLanguage", - "about" => "about", - "recordedIn" => "recordedIn", - "maximumPhysicalAttendeeCapacity" => "maximumPhysicalAttendeeCapacity", - "attendee" => "attendee", + "superEvent" => "superEvent", + "translator" => "translator", + "typicalAgeRange" => "typicalAgeRange", "workFeatured" => "workFeatured", - "eventSchedule" => "eventSchedule", - "contributor" => "contributor", - "attendees" => "attendees", + "workPerformed" => "workPerformed", ]; 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 subject matter of an object. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $superEvent; + protected $about; /** - * The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix. + * 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\Enums\SchemaOrg\EventAttendanceModeEnumeration|null + * @var \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $eventAttendanceMode; + protected $actor; /** - * A review of the item. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $review; + protected $aggregateRating; /** - * 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 person or organization attending the event. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $translator; + protected $attendee; /** - * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * A person attending the event. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $startDate; + protected $attendees; + + /** + * An intended audience, i.e. a group for whom something was created. + * + * + * @var \OpenActive\Models\SchemaOrg\Audience|string + */ + protected $audience; /** * The person or organization who wrote a composition, or who is the composer of a work performed at some event. @@ -112,181 +122,210 @@ public static function fieldList() { protected $composer; /** - * The total number of individuals that may attend an event or venue. + * A secondary contributor to the CreativeWork or Event. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $maximumAttendeeCapacity; + protected $contributor; /** - * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). + * 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 $maximumVirtualAttendeeCapacity; + protected $director; /** - * 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 time admission will commence. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var DateTime|string|null */ - protected $director; + protected $doorTime; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * 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\Grant|string + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $funding; + protected $duration; /** - * 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 end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var Date|DateTime|null */ - protected $keywords; + protected $endDate; /** - * An intended audience, i.e. a group for whom something was created. + * The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null */ - protected $audience; + protected $eventAttendanceMode; /** - * 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. - * + * 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\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var \OpenActive\Models\SchemaOrg\Schedule|string */ - protected $offers; + protected $eventSchedule; /** - * 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. + * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null */ - protected $subEvent; + protected $eventStatus; /** - * 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 person or organization that supports (sponsors) something through some kind of financial contribution. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $actor; + protected $funder; /** - * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $eventStatus; + protected $funding; /** - * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * An offer to participate in the event, for example, Call for Proposals, Call for Speakers, or Call for Performers. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $endDate; + protected $hasParticipationOffer; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * An offer to sponsor the event, for example, Sponsorship Prospectus, Sponsorship Opportunities, or Sponsor Packages. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $funder; + protected $hasSponsorshipOffer; /** - * A performer at the event—for example, a presenter, musician, musical group or actor. + * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Language|string */ - protected $performer; + protected $inLanguage; /** - * 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; /** - * The typical expected age range, e.g. '7-9', '11-'. + * 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 + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $typicalAgeRange; + protected $keywords; /** * 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 \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation */ protected $location; /** - * The main performer or performers of the event—for example, a presenter, musician, or actor. + * The total number of individuals that may attend an event or venue. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var int|null */ - protected $performers; + protected $maximumAttendeeCapacity; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). * * - * @var DateInterval|string|null + * @var int|null */ - protected $duration; + protected $maximumPhysicalAttendeeCapacity; + + /** + * The maximum virtual attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). + * + * + * @var int|null + */ + protected $maximumVirtualAttendeeCapacity; + + /** + * 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\Demand|\OpenActive\Models\SchemaOrg\Offer|string + */ + protected $offers; /** * An organizer of an Event. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $organizer; /** - * 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 performer at the event—for example, a presenter, musician, musical group or actor. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $sponsor; + protected $performer; + + /** + * The main performer or performers of the event—for example, a presenter, musician, or actor. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $performers; /** * 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|null + * @var Date|DateTime|null */ protected $previousStartDate; /** - * A flag to signal that the item, event, or place is accessible for free. + * The CreativeWork that captured all or part of this Event. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $isAccessibleForFree; + protected $recordedIn; /** * The number of attendee places for an event that remain unallocated. @@ -297,68 +336,68 @@ public static function fieldList() { protected $remainingAttendeeCapacity; /** - * Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference. + * A review of the item. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $subEvents; + protected $review; /** - * A work performed in some event, for example a play performed in a TheaterEvent. + * 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\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $workPerformed; + protected $sponsor; /** - * The time admission will commence. + * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var DateTime|string|null + * @var Date|DateTime|null */ - protected $doorTime; + protected $startDate; /** - * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. + * An 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 string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $inLanguage; + protected $subEvent; /** - * The subject matter of the content. + * 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\Thing|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $about; + protected $subEvents; /** - * The CreativeWork that captured all or part of this Event. + * 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 \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $recordedIn; + protected $superEvent; /** - * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). + * 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 int|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $maximumPhysicalAttendeeCapacity; + protected $translator; /** - * A person or organization attending the event. + * The typical expected age range, e.g. '7-9', '11-'. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $attendee; + protected $typicalAgeRange; /** * A work featured in some event, e.g. exhibited in an ExhibitionEvent. @@ -370,159 +409,164 @@ public static function fieldList() { protected $workFeatured; /** - * 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. + * A work performed in some event, for example a play performed in a TheaterEvent. * * - * @var \OpenActive\Models\SchemaOrg\Schedule|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $eventSchedule; + protected $workPerformed; /** - * A secondary contributor to the CreativeWork or Event. - * - * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - protected $contributor; + public function getAbout() + { + return $this->about; + } /** - * A person attending the event. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @param \OpenActive\Models\SchemaOrg\Thing|string $about + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $attendees; + public function setAbout($about) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Thing", + "string", + ]; + + $about = self::checkTypes($about, $types); + + $this->about = $about; + } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSuperEvent() + public function getActor() { - return $this->superEvent; + return $this->actor; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $superEvent + * @param \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string $actor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuperEvent($superEvent) + public function setActor($actor) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\PerformingGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $superEvent = self::checkTypes($superEvent, $types); + $actor = self::checkTypes($actor, $types); - $this->superEvent = $superEvent; + $this->actor = $actor; } /** - * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getEventAttendanceMode() + public function getAggregateRating() { - return $this->eventAttendanceMode; + return $this->aggregateRating; } /** - * @param \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null $eventAttendanceMode + * @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 setEventAttendanceMode($eventAttendanceMode) + public function setAggregateRating($aggregateRating) { $types = [ - "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration", - "null", + "\OpenActive\Models\SchemaOrg\AggregateRating", + "string", ]; - $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->eventAttendanceMode = $eventAttendanceMode; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getReview() + public function getAttendee() { - return $this->review; + return $this->attendee; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $attendee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setAttendee($attendee) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $review = self::checkTypes($review, $types); + $attendee = self::checkTypes($attendee, $types); - $this->review = $review; + $this->attendee = $attendee; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getTranslator() + public function getAttendees() { - return $this->translator; + return $this->attendees; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator + * @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 setTranslator($translator) + public function setAttendees($attendees) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $translator = self::checkTypes($translator, $types); + $attendees = self::checkTypes($attendees, $types); - $this->translator = $translator; + $this->attendees = $attendees; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getStartDate() + public function getAudience() { - return $this->startDate; + return $this->audience; } /** - * @param Date|DateTime|null $startDate + * @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 setStartDate($startDate) + public function setAudience($audience) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Audience", + "string", ]; - $startDate = self::checkTypes($startDate, $types); + $audience = self::checkTypes($audience, $types); - $this->startDate = $startDate; + $this->audience = $audience; } /** @@ -552,502 +596,580 @@ public function setComposer($composer) } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getMaximumAttendeeCapacity() + public function getContributor() { - return $this->maximumAttendeeCapacity; + return $this->contributor; } /** - * @param int|null $maximumAttendeeCapacity + * @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 setMaximumAttendeeCapacity($maximumAttendeeCapacity) + public function setContributor($contributor) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $contributor = self::checkTypes($contributor, $types); + + $this->contributor = $contributor; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Person|string + */ + public function getDirector() + { + return $this->director; + } + + /** + * @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 setDirector($director) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $director = self::checkTypes($director, $types); + + $this->director = $director; + } + + /** + * @return DateTime|string|null + */ + public function getDoorTime() + { + return $this->doorTime; + } + + /** + * @param DateTime|string|null $doorTime + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDoorTime($doorTime) + { + $types = [ + "DateTime", + "Time", + "null", + ]; + + $doorTime = self::checkTypes($doorTime, $types); + + $this->doorTime = $doorTime; + } + + /** + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + */ + public function getDuration() + { + return $this->duration; + } + + /** + * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $duration + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDuration($duration) { $types = [ - "int", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); + $duration = self::checkTypes($duration, $types); - $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; + $this->duration = $duration; } /** - * @return int|null + * @return Date|DateTime|null */ - public function getMaximumVirtualAttendeeCapacity() + public function getEndDate() { - return $this->maximumVirtualAttendeeCapacity; + return $this->endDate; } /** - * @param int|null $maximumVirtualAttendeeCapacity + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity) + public function setEndDate($endDate) { $types = [ - "int", + "Date", + "DateTime", "null", ]; - $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types); + $endDate = self::checkTypes($endDate, $types); - $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity; + $this->endDate = $endDate; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null */ - public function getDirector() + public function getEventAttendanceMode() { - return $this->director; + return $this->eventAttendanceMode; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @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 setDirector($director) + public function setEventAttendanceMode($eventAttendanceMode) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "string", + "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration", + "null", ]; - $director = self::checkTypes($director, $types); + $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types); - $this->director = $director; + $this->eventAttendanceMode = $eventAttendanceMode; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return \OpenActive\Models\SchemaOrg\Schedule|string */ - public function getFunding() + public function getEventSchedule() { - return $this->funding; + return $this->eventSchedule; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @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 setFunding($funding) + public function setEventSchedule($eventSchedule) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", + "\OpenActive\Models\SchemaOrg\Schedule", "string", ]; - $funding = self::checkTypes($funding, $types); + $eventSchedule = self::checkTypes($eventSchedule, $types); - $this->funding = $funding; + $this->eventSchedule = $eventSchedule; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Enums\SchemaOrg\EventStatusType|null */ - public function getKeywords() + public function getEventStatus() { - return $this->keywords; + return $this->eventStatus; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @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 setKeywords($keywords) + public function setEventStatus($eventStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", - "string", + "\OpenActive\Enums\SchemaOrg\EventStatusType", + "null", ]; - $keywords = self::checkTypes($keywords, $types); + $eventStatus = self::checkTypes($eventStatus, $types); - $this->keywords = $keywords; + $this->eventStatus = $eventStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAudience() + public function getFunder() { - return $this->audience; + return $this->funder; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $audience = self::checkTypes($audience, $types); + $funder = self::checkTypes($funder, $types); - $this->audience = $audience; + $this->funder = $funder; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - public function getOffers() + public function getFunding() { - return $this->offers; + return $this->funding; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @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 setOffers($offers) + public function setFunding($funding) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $offers = self::checkTypes($offers, $types); + $funding = self::checkTypes($funding, $types); - $this->offers = $offers; + $this->funding = $funding; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getSubEvent() + public function getHasParticipationOffer() { - return $this->subEvent; + return $this->hasParticipationOffer; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $subEvent + * @param \OpenActive\Models\SchemaOrg\Offer|string $hasParticipationOffer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubEvent($subEvent) + public function setHasParticipationOffer($hasParticipationOffer) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $subEvent = self::checkTypes($subEvent, $types); + $hasParticipationOffer = self::checkTypes($hasParticipationOffer, $types); - $this->subEvent = $subEvent; + $this->hasParticipationOffer = $hasParticipationOffer; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getActor() + public function getHasSponsorshipOffer() { - return $this->actor; + return $this->hasSponsorshipOffer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param \OpenActive\Models\SchemaOrg\Offer|string $hasSponsorshipOffer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setHasSponsorshipOffer($hasSponsorshipOffer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $actor = self::checkTypes($actor, $types); + $hasSponsorshipOffer = self::checkTypes($hasSponsorshipOffer, $types); - $this->actor = $actor; + $this->hasSponsorshipOffer = $hasSponsorshipOffer; } /** - * @return \OpenActive\Enums\SchemaOrg\EventStatusType|null + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getEventStatus() + public function getInLanguage() { - return $this->eventStatus; + return $this->inLanguage; } /** - * @param \OpenActive\Enums\SchemaOrg\EventStatusType|null $eventStatus + * @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 setEventStatus($eventStatus) + public function setInLanguage($inLanguage) { $types = [ - "\OpenActive\Enums\SchemaOrg\EventStatusType", - "null", + "\OpenActive\Models\SchemaOrg\Language", + "string", ]; - $eventStatus = self::checkTypes($eventStatus, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->eventStatus = $eventStatus; + $this->inLanguage = $inLanguage; } /** - * @return Date|DateTime|null + * @return bool|null */ - public function getEndDate() + public function getIsAccessibleForFree() { - return $this->endDate; + return $this->isAccessibleForFree; } /** - * @param Date|DateTime|null $endDate + * @param bool|null $isAccessibleForFree * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndDate($endDate) + public function setIsAccessibleForFree($isAccessibleForFree) { $types = [ - "Date", - "DateTime", + "bool", "null", ]; - $endDate = self::checkTypes($endDate, $types); + $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); - $this->endDate = $endDate; + $this->isAccessibleForFree = $isAccessibleForFree; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getFunder() + public function getKeywords() { - return $this->funder; + return $this->keywords; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunder($funder) + public function setKeywords($keywords) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $funder = self::checkTypes($funder, $types); + $keywords = self::checkTypes($keywords, $types); - $this->funder = $funder; + $this->keywords = $keywords; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation */ - public function getPerformer() + public function getLocation() { - return $this->performer; + return $this->location; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $performer + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation $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", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", + "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $performer = self::checkTypes($performer, $types); + $location = self::checkTypes($location, $types); - $this->performer = $performer; + $this->location = $location; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return int|null */ - public function getAggregateRating() + public function getMaximumAttendeeCapacity() { - return $this->aggregateRating; + return $this->maximumAttendeeCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param int|null $maximumAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setMaximumAttendeeCapacity($maximumAttendeeCapacity) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", - "string", + "int", + "null", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); - $this->aggregateRating = $aggregateRating; + $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; } /** - * @return string + * @return int|null */ - public function getTypicalAgeRange() + public function getMaximumPhysicalAttendeeCapacity() { - return $this->typicalAgeRange; + return $this->maximumPhysicalAttendeeCapacity; } /** - * @param string $typicalAgeRange + * @param int|null $maximumPhysicalAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypicalAgeRange($typicalAgeRange) + public function setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity) { $types = [ - "string", + "int", + "null", ]; - $typicalAgeRange = self::checkTypes($typicalAgeRange, $types); + $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types); - $this->typicalAgeRange = $typicalAgeRange; + $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @return int|null */ - public function getLocation() + public function getMaximumVirtualAttendeeCapacity() { - return $this->location; + return $this->maximumVirtualAttendeeCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @param int|null $maximumVirtualAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLocation($location) + public function setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", - "string", - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\VirtualLocation", + "int", + "null", ]; - $location = self::checkTypes($location, $types); + $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types); - $this->location = $location; + $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ - public function getPerformers() + public function getOffers() { - return $this->performers; + return $this->offers; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $performers + * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPerformers($performers) + public function setOffers($offers) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $performers = self::checkTypes($performers, $types); + $offers = self::checkTypes($offers, $types); - $this->performers = $performers; + $this->offers = $offers; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getDuration() + public function getOrganizer() { - return $this->duration; + return $this->organizer; } /** - * @param DateInterval|string|null $duration + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $organizer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setOrganizer($organizer) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $duration = self::checkTypes($duration, $types); + $organizer = self::checkTypes($organizer, $types); - $this->duration = $duration; + $this->organizer = $organizer; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getOrganizer() + public function getPerformer() { - return $this->organizer; + return $this->performer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $organizer + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $performer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrganizer($organizer) + public function setPerformer($performer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $organizer = self::checkTypes($organizer, $types); + $performer = self::checkTypes($performer, $types); - $this->organizer = $organizer; + $this->performer = $performer; } /** * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSponsor() + public function getPerformers() { - return $this->sponsor; + return $this->performers; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $performers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSponsor($sponsor) + public function setPerformers($performers) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", @@ -1055,13 +1177,13 @@ public function setSponsor($sponsor) "string", ]; - $sponsor = self::checkTypes($sponsor, $types); + $performers = self::checkTypes($performers, $types); - $this->sponsor = $sponsor; + $this->performers = $performers; } /** - * @return Date|null + * @return Date|DateTime|null */ public function getPreviousStartDate() { @@ -1069,7 +1191,7 @@ public function getPreviousStartDate() } /** - * @param Date|null $previousStartDate + * @param Date|DateTime|null $previousStartDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -1077,6 +1199,7 @@ public function setPreviousStartDate($previousStartDate) { $types = [ "Date", + "DateTime", "null", ]; @@ -1086,28 +1209,28 @@ public function setPreviousStartDate($previousStartDate) } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getIsAccessibleForFree() + public function getRecordedIn() { - return $this->isAccessibleForFree; + return $this->recordedIn; } /** - * @param bool|null $isAccessibleForFree + * @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 setIsAccessibleForFree($isAccessibleForFree) + public function setRecordedIn($recordedIn) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", ]; - $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); + $recordedIn = self::checkTypes($recordedIn, $types); - $this->isAccessibleForFree = $isAccessibleForFree; + $this->recordedIn = $recordedIn; } /** @@ -1136,205 +1259,205 @@ public function setRemainingAttendeeCapacity($remainingAttendeeCapacity) } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getSubEvents() + public function getReview() { - return $this->subEvents; + return $this->review; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $subEvents + * @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 setSubEvents($subEvents) + public function setReview($review) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $subEvents = self::checkTypes($subEvents, $types); + $review = self::checkTypes($review, $types); - $this->subEvents = $subEvents; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getWorkPerformed() + public function getSponsor() { - return $this->workPerformed; + return $this->sponsor; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workPerformed + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkPerformed($workPerformed) + public function setSponsor($sponsor) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $workPerformed = self::checkTypes($workPerformed, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->workPerformed = $workPerformed; + $this->sponsor = $sponsor; } /** - * @return DateTime|string|null + * @return Date|DateTime|null */ - public function getDoorTime() + public function getStartDate() { - return $this->doorTime; + return $this->startDate; } /** - * @param DateTime|string|null $doorTime + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoorTime($doorTime) + public function setStartDate($startDate) { $types = [ + "Date", "DateTime", - "Time", "null", ]; - $doorTime = self::checkTypes($doorTime, $types); + $startDate = self::checkTypes($startDate, $types); - $this->doorTime = $doorTime; + $this->startDate = $startDate; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getInLanguage() + public function getSubEvent() { - return $this->inLanguage; + return $this->subEvent; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @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 setInLanguage($inLanguage) + public function setSubEvent($subEvent) { $types = [ + "\OpenActive\Models\SchemaOrg\Event", "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $subEvent = self::checkTypes($subEvent, $types); - $this->inLanguage = $inLanguage; + $this->subEvent = $subEvent; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getAbout() + public function getSubEvents() { - return $this->about; + return $this->subEvents; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $about + * @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 setAbout($about) + public function setSubEvents($subEvents) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $about = self::checkTypes($about, $types); + $subEvents = self::checkTypes($subEvents, $types); - $this->about = $about; + $this->subEvents = $subEvents; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getRecordedIn() + public function getSuperEvent() { - return $this->recordedIn; + return $this->superEvent; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $recordedIn + * @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 setRecordedIn($recordedIn) + public function setSuperEvent($superEvent) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $recordedIn = self::checkTypes($recordedIn, $types); + $superEvent = self::checkTypes($superEvent, $types); - $this->recordedIn = $recordedIn; + $this->superEvent = $superEvent; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getMaximumPhysicalAttendeeCapacity() + public function getTranslator() { - return $this->maximumPhysicalAttendeeCapacity; + return $this->translator; } /** - * @param int|null $maximumPhysicalAttendeeCapacity + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $translator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity) + public function setTranslator($translator) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types); + $translator = self::checkTypes($translator, $types); - $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity; + $this->translator = $translator; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getAttendee() + public function getTypicalAgeRange() { - return $this->attendee; + return $this->typicalAgeRange; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendee + * @param string $typicalAgeRange * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAttendee($attendee) + public function setTypicalAgeRange($typicalAgeRange) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $attendee = self::checkTypes($attendee, $types); + $typicalAgeRange = self::checkTypes($typicalAgeRange, $types); - $this->attendee = $attendee; + $this->typicalAgeRange = $typicalAgeRange; } /** @@ -1363,80 +1486,28 @@ public function setWorkFeatured($workFeatured) } /** - * @return \OpenActive\Models\SchemaOrg\Schedule|string - */ - public function getEventSchedule() - { - return $this->eventSchedule; - } - - /** - * @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 setEventSchedule($eventSchedule) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Schedule", - "string", - ]; - - $eventSchedule = self::checkTypes($eventSchedule, $types); - - $this->eventSchedule = $eventSchedule; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string - */ - public function getContributor() - { - return $this->contributor; - } - - /** - * @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 setContributor($contributor) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", - ]; - - $contributor = self::checkTypes($contributor, $types); - - $this->contributor = $contributor; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getAttendees() + public function getWorkPerformed() { - return $this->attendees; + return $this->workPerformed; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendees + * @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 setAttendees($attendees) + public function setWorkPerformed($workPerformed) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $attendees = self::checkTypes($attendees, $types); + $workPerformed = self::checkTypes($workPerformed, $types); - $this->attendees = $attendees; + $this->workPerformed = $workPerformed; } } 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..03c15429 100644 --- a/src/Models/SchemaOrg/ExchangeRateSpecification.php +++ b/src/Models/SchemaOrg/ExchangeRateSpecification.php @@ -17,14 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ + "currency" => "currency", "currentExchangeRate" => "currentExchangeRate", "exchangeRateSpread" => "exchangeRateSpread", - "currency" => "currency", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". + * + * + * @var string + */ + protected $currency; + /** * The current price of a currency. * @@ -37,17 +45,33 @@ public static function fieldList() { * The difference between the price at which a broker or other intermediary buys and sells foreign currency. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ protected $exchangeRateSpread; /** - * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". - * - * - * @var string + * @return string */ - protected $currency; + public function getCurrency() + { + return $this->currency; + } + + /** + * @param string $currency + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCurrency($currency) + { + $types = [ + "string", + ]; + + $currency = self::checkTypes($currency, $types); + + $this->currency = $currency; + } /** * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string @@ -75,7 +99,7 @@ public function setCurrentExchangeRate($currentExchangeRate) } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ public function getExchangeRateSpread() { @@ -83,16 +107,16 @@ public function getExchangeRateSpread() } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $exchangeRateSpread + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $exchangeRateSpread * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setExchangeRateSpread($exchangeRateSpread) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "Number", "null", ]; @@ -101,28 +125,4 @@ public function setExchangeRateSpread($exchangeRateSpread) $this->exchangeRateSpread = $exchangeRateSpread; } - /** - * @return string - */ - public function getCurrency() - { - return $this->currency; - } - - /** - * @param string $currency - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setCurrency($currency) - { - $types = [ - "string", - ]; - - $currency = self::checkTypes($currency, $types); - - $this->currency = $currency; - } - } diff --git a/src/Models/SchemaOrg/ExerciseAction.php b/src/Models/SchemaOrg/ExerciseAction.php index 77e1786e..ece75ae6 100644 --- a/src/Models/SchemaOrg/ExerciseAction.php +++ b/src/Models/SchemaOrg/ExerciseAction.php @@ -17,32 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ - "sportsTeam" => "sportsTeam", "course" => "course", - "fromLocation" => "fromLocation", "diet" => "diet", - "sportsActivityLocation" => "sportsActivityLocation", "distance" => "distance", + "exerciseCourse" => "exerciseCourse", "exercisePlan" => "exercisePlan", - "sportsEvent" => "sportsEvent", "exerciseRelatedDiet" => "exerciseRelatedDiet", + "exerciseType" => "exerciseType", + "fromLocation" => "fromLocation", "opponent" => "opponent", - "exerciseCourse" => "exerciseCourse", + "sportsActivityLocation" => "sportsActivityLocation", + "sportsEvent" => "sportsEvent", + "sportsTeam" => "sportsTeam", "toLocation" => "toLocation", - "exerciseType" => "exerciseType", ]; return array_merge(parent::fieldList(), $fields); } - /** - * A sub property of participant. The sports team that participated on this action. - * - * - * @var \OpenActive\Models\SchemaOrg\SportsTeam|string - */ - protected $sportsTeam; - /** * A sub property of location. The course where this action was taken. * @@ -51,14 +43,6 @@ public static function fieldList() { */ protected $course; - /** - * A sub property of location. The original location of the object or the agent before the action. - * - * - * @var \OpenActive\Models\SchemaOrg\Place|string - */ - protected $fromLocation; - /** * A sub property of instrument. The diet used in this action. * @@ -67,14 +51,6 @@ public static function fieldList() { */ protected $diet; - /** - * A sub property of location. The sports activity location where this action occurred. - * - * - * @var \OpenActive\Models\SchemaOrg\SportsActivityLocation|string - */ - protected $sportsActivityLocation; - /** * The distance travelled, e.g. exercising or travelling. * @@ -84,20 +60,20 @@ public static function fieldList() { protected $distance; /** - * A sub property of instrument. The exercise plan used on this action. + * A sub property of location. The course where this action was taken. * * - * @var \OpenActive\Models\SchemaOrg\ExercisePlan|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $exercisePlan; + protected $exerciseCourse; /** - * A sub property of location. The sports event where this action occurred. + * A sub property of instrument. The exercise plan used on this action. * * - * @var \OpenActive\Models\SchemaOrg\SportsEvent|string + * @var \OpenActive\Models\SchemaOrg\ExercisePlan|string */ - protected $sportsEvent; + protected $exercisePlan; /** * A sub property of instrument. The diet used in this action. @@ -108,61 +84,60 @@ public static function fieldList() { protected $exerciseRelatedDiet; /** - * A sub property of participant. The opponent on this action. + * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $opponent; + protected $exerciseType; /** - * A sub property of location. The course where this action was taken. + * A sub property of location. The original location of the object or the agent before the action. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $exerciseCourse; + protected $fromLocation; /** - * A sub property of location. The final location of the object or the agent after the action. + * A sub property of participant. The opponent on this action. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $toLocation; + protected $opponent; /** - * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc. + * A sub property of location. The sports activity location where this action occurred. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SportsActivityLocation|string */ - protected $exerciseType; + protected $sportsActivityLocation; /** - * @return \OpenActive\Models\SchemaOrg\SportsTeam|string + * A sub property of location. The sports event where this action occurred. + * + * + * @var \OpenActive\Models\SchemaOrg\SportsEvent|string */ - public function getSportsTeam() - { - return $this->sportsTeam; - } + protected $sportsEvent; /** - * @param \OpenActive\Models\SchemaOrg\SportsTeam|string $sportsTeam - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * A sub property of participant. The sports team that participated on this action. + * + * + * @var \OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function setSportsTeam($sportsTeam) - { - $types = [ - "\OpenActive\Models\SchemaOrg\SportsTeam", - "string", - ]; - - $sportsTeam = self::checkTypes($sportsTeam, $types); + protected $sportsTeam; - $this->sportsTeam = $sportsTeam; - } + /** + * A sub property of location. The final location of the object or the agent after the action. + * + * + * @var \OpenActive\Models\SchemaOrg\Place|string + */ + protected $toLocation; /** * @return \OpenActive\Models\SchemaOrg\Place|string @@ -190,178 +165,177 @@ public function setCourse($course) } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Diet|string */ - public function getFromLocation() + public function getDiet() { - return $this->fromLocation; + return $this->diet; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation + * @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 setFromLocation($fromLocation) + public function setDiet($diet) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Diet", "string", ]; - $fromLocation = self::checkTypes($fromLocation, $types); + $diet = self::checkTypes($diet, $types); - $this->fromLocation = $fromLocation; + $this->diet = $diet; } /** - * @return \OpenActive\Models\SchemaOrg\Diet|string + * @return \OpenActive\Models\SchemaOrg\Distance|string */ - public function getDiet() + public function getDistance() { - return $this->diet; + return $this->distance; } /** - * @param \OpenActive\Models\SchemaOrg\Diet|string $diet + * @param \OpenActive\Models\SchemaOrg\Distance|string $distance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiet($diet) + public function setDistance($distance) { $types = [ - "\OpenActive\Models\SchemaOrg\Diet", + "\OpenActive\Models\SchemaOrg\Distance", "string", ]; - $diet = self::checkTypes($diet, $types); + $distance = self::checkTypes($distance, $types); - $this->diet = $diet; + $this->distance = $distance; } /** - * @return \OpenActive\Models\SchemaOrg\SportsActivityLocation|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getSportsActivityLocation() + public function getExerciseCourse() { - return $this->sportsActivityLocation; + return $this->exerciseCourse; } /** - * @param \OpenActive\Models\SchemaOrg\SportsActivityLocation|string $sportsActivityLocation + * @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 setSportsActivityLocation($sportsActivityLocation) + public function setExerciseCourse($exerciseCourse) { $types = [ - "\OpenActive\Models\SchemaOrg\SportsActivityLocation", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $sportsActivityLocation = self::checkTypes($sportsActivityLocation, $types); + $exerciseCourse = self::checkTypes($exerciseCourse, $types); - $this->sportsActivityLocation = $sportsActivityLocation; + $this->exerciseCourse = $exerciseCourse; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|string + * @return \OpenActive\Models\SchemaOrg\ExercisePlan|string */ - public function getDistance() + public function getExercisePlan() { - return $this->distance; + return $this->exercisePlan; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|string $distance + * @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 setDistance($distance) + public function setExercisePlan($exercisePlan) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\ExercisePlan", "string", ]; - $distance = self::checkTypes($distance, $types); + $exercisePlan = self::checkTypes($exercisePlan, $types); - $this->distance = $distance; + $this->exercisePlan = $exercisePlan; } /** - * @return \OpenActive\Models\SchemaOrg\ExercisePlan|string + * @return \OpenActive\Models\SchemaOrg\Diet|string */ - public function getExercisePlan() + public function getExerciseRelatedDiet() { - return $this->exercisePlan; + return $this->exerciseRelatedDiet; } /** - * @param \OpenActive\Models\SchemaOrg\ExercisePlan|string $exercisePlan + * @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 setExercisePlan($exercisePlan) + public function setExerciseRelatedDiet($exerciseRelatedDiet) { $types = [ - "\OpenActive\Models\SchemaOrg\ExercisePlan", + "\OpenActive\Models\SchemaOrg\Diet", "string", ]; - $exercisePlan = self::checkTypes($exercisePlan, $types); + $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types); - $this->exercisePlan = $exercisePlan; + $this->exerciseRelatedDiet = $exerciseRelatedDiet; } /** - * @return \OpenActive\Models\SchemaOrg\SportsEvent|string + * @return string */ - public function getSportsEvent() + public function getExerciseType() { - return $this->sportsEvent; + return $this->exerciseType; } /** - * @param \OpenActive\Models\SchemaOrg\SportsEvent|string $sportsEvent + * @param string $exerciseType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSportsEvent($sportsEvent) + public function setExerciseType($exerciseType) { $types = [ - "\OpenActive\Models\SchemaOrg\SportsEvent", "string", ]; - $sportsEvent = self::checkTypes($sportsEvent, $types); + $exerciseType = self::checkTypes($exerciseType, $types); - $this->sportsEvent = $sportsEvent; + $this->exerciseType = $exerciseType; } /** - * @return \OpenActive\Models\SchemaOrg\Diet|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getExerciseRelatedDiet() + public function getFromLocation() { - return $this->exerciseRelatedDiet; + return $this->fromLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Diet|string $exerciseRelatedDiet + * @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 setExerciseRelatedDiet($exerciseRelatedDiet) + public function setFromLocation($fromLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Diet", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types); + $fromLocation = self::checkTypes($fromLocation, $types); - $this->exerciseRelatedDiet = $exerciseRelatedDiet; + $this->fromLocation = $fromLocation; } /** @@ -390,77 +364,103 @@ public function setOpponent($opponent) } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\SportsActivityLocation|string */ - public function getExerciseCourse() + public function getSportsActivityLocation() { - return $this->exerciseCourse; + return $this->sportsActivityLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $exerciseCourse + * @param \OpenActive\Models\SchemaOrg\SportsActivityLocation|string $sportsActivityLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExerciseCourse($exerciseCourse) + public function setSportsActivityLocation($sportsActivityLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\SportsActivityLocation", "string", ]; - $exerciseCourse = self::checkTypes($exerciseCourse, $types); + $sportsActivityLocation = self::checkTypes($sportsActivityLocation, $types); - $this->exerciseCourse = $exerciseCourse; + $this->sportsActivityLocation = $sportsActivityLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\SportsEvent|string */ - public function getToLocation() + public function getSportsEvent() { - return $this->toLocation; + return $this->sportsEvent; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation + * @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 setToLocation($toLocation) + public function setSportsEvent($sportsEvent) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\SportsEvent", "string", ]; - $toLocation = self::checkTypes($toLocation, $types); + $sportsEvent = self::checkTypes($sportsEvent, $types); - $this->toLocation = $toLocation; + $this->sportsEvent = $sportsEvent; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function getExerciseType() + public function getSportsTeam() { - return $this->exerciseType; + return $this->sportsTeam; } /** - * @param string $exerciseType + * @param \OpenActive\Models\SchemaOrg\SportsTeam|string $sportsTeam * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExerciseType($exerciseType) + public function setSportsTeam($sportsTeam) { $types = [ + "\OpenActive\Models\SchemaOrg\SportsTeam", "string", ]; - $exerciseType = self::checkTypes($exerciseType, $types); + $sportsTeam = self::checkTypes($sportsTeam, $types); - $this->exerciseType = $exerciseType; + $this->sportsTeam = $sportsTeam; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Place|string + */ + public function getToLocation() + { + return $this->toLocation; + } + + /** + * @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 setToLocation($toLocation) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Place", + "string", + ]; + + $toLocation = self::checkTypes($toLocation, $types); + + $this->toLocation = $toLocation; } } diff --git a/src/Models/SchemaOrg/ExercisePlan.php b/src/Models/SchemaOrg/ExercisePlan.php index df458ebc..806a62bb 100644 --- a/src/Models/SchemaOrg/ExercisePlan.php +++ b/src/Models/SchemaOrg/ExercisePlan.php @@ -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", "exerciseType" => "exerciseType", + "intensity" => "intensity", + "repetitions" => "repetitions", + "restPeriods" => "restPeriods", + "workload" => "workload", ]; return array_merge(parent::fieldList(), $fields); } /** - * Number of times one should repeat the activity. + * Length of time to engage in the activity. * * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $repetitions; + protected $activityDuration; /** - * Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement. + * How often one should engage in the activity. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $intensity; + protected $activityFrequency; /** - * Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure. + * 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|\OpenActive\Models\SchemaOrg\Energy|string + * @var string */ - protected $workload; + protected $additionalVariable; /** - * Length of time to engage in the activity. + * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc. * * - * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var string */ - protected $activityDuration; + protected $exerciseType; /** - * How often one should break from the activity. + * Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement. * * - * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $restPeriods; + protected $intensity; /** - * How often one should engage in the activity. + * Number of times one should repeat the activity. * * - * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $activityFrequency; + protected $repetitions; /** - * 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. + * How often one should break from the activity. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $additionalVariable; + protected $restPeriods; /** - * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc. + * Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Energy|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $exerciseType; + protected $workload; /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getRepetitions() + public function getActivityDuration() { - return $this->repetitions; + return $this->activityDuration; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $repetitions + * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $activityDuration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRepetitions($repetitions) + public function setActivityDuration($activityDuration) { $types = [ - "Number", + "DateInterval", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", "null", ]; - $repetitions = self::checkTypes($repetitions, $types); + $activityDuration = self::checkTypes($activityDuration, $types); - $this->repetitions = $repetitions; + $this->activityDuration = $activityDuration; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getIntensity() + public function getActivityFrequency() { - return $this->intensity; + return $this->activityFrequency; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $intensity + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $activityFrequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIntensity($intensity) + public function setActivityFrequency($activityFrequency) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $intensity = self::checkTypes($intensity, $types); + $activityFrequency = self::checkTypes($activityFrequency, $types); - $this->intensity = $intensity; + $this->activityFrequency = $activityFrequency; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string + * @return string */ - public function getWorkload() + public function getAdditionalVariable() { - return $this->workload; + return $this->additionalVariable; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string $workload + * @param string $additionalVariable * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkload($workload) + public function setAdditionalVariable($additionalVariable) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\Energy", "string", ]; - $workload = self::checkTypes($workload, $types); + $additionalVariable = self::checkTypes($additionalVariable, $types); - $this->workload = $workload; + $this->additionalVariable = $additionalVariable; } /** - * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return string */ - public function getActivityDuration() + public function getExerciseType() { - return $this->activityDuration; + return $this->exerciseType; } /** - * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $activityDuration + * @param string $exerciseType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActivityDuration($activityDuration) + public function setExerciseType($exerciseType) { $types = [ - "DateInterval", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $activityDuration = self::checkTypes($activityDuration, $types); + $exerciseType = self::checkTypes($exerciseType, $types); - $this->activityDuration = $activityDuration; + $this->exerciseType = $exerciseType; } /** - * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getRestPeriods() + public function getIntensity() { - return $this->restPeriods; + return $this->intensity; } /** - * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $restPeriods + * @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 setRestPeriods($restPeriods) + public function setIntensity($intensity) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $restPeriods = self::checkTypes($restPeriods, $types); + $intensity = self::checkTypes($intensity, $types); - $this->restPeriods = $restPeriods; + $this->intensity = $intensity; } /** - * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getActivityFrequency() + public function getRepetitions() { - return $this->activityFrequency; + return $this->repetitions; } /** - * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $activityFrequency + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $repetitions * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActivityFrequency($activityFrequency) + public function setRepetitions($repetitions) { $types = [ - "string", + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + "null", ]; - $activityFrequency = self::checkTypes($activityFrequency, $types); + $repetitions = self::checkTypes($repetitions, $types); - $this->activityFrequency = $activityFrequency; + $this->repetitions = $repetitions; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getAdditionalVariable() + public function getRestPeriods() { - return $this->additionalVariable; + return $this->restPeriods; } /** - * @param string $additionalVariable + * @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 setAdditionalVariable($additionalVariable) + public function setRestPeriods($restPeriods) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $additionalVariable = self::checkTypes($additionalVariable, $types); + $restPeriods = self::checkTypes($restPeriods, $types); - $this->additionalVariable = $additionalVariable; + $this->restPeriods = $restPeriods; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Energy|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getExerciseType() + public function getWorkload() { - return $this->exerciseType; + return $this->workload; } /** - * @param string $exerciseType + * @param \OpenActive\Models\SchemaOrg\Energy|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $workload * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExerciseType($exerciseType) + public function setWorkload($workload) { $types = [ + "\OpenActive\Models\SchemaOrg\Energy", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $exerciseType = self::checkTypes($exerciseType, $types); + $workload = self::checkTypes($workload, $types); - $this->exerciseType = $exerciseType; + $this->workload = $workload; } } diff --git a/src/Models/SchemaOrg/FinancialIncentive.php b/src/Models/SchemaOrg/FinancialIncentive.php new file mode 100644 index 00000000..1839809f --- /dev/null +++ b/src/Models/SchemaOrg/FinancialIncentive.php @@ -0,0 +1,596 @@ + "areaServed", + "eligibleWithSupplier" => "eligibleWithSupplier", + "incentiveAmount" => "incentiveAmount", + "incentiveStatus" => "incentiveStatus", + "incentiveType" => "incentiveType", + "incentivizedItem" => "incentivizedItem", + "incomeLimit" => "incomeLimit", + "provider" => "provider", + "publisher" => "publisher", + "purchasePriceLimit" => "purchasePriceLimit", + "purchaseType" => "purchaseType", + "qualifiedExpense" => "qualifiedExpense", + "validFrom" => "validFrom", + "validThrough" => "validThrough", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * The geographic area where a service or offered item is provided. + * + * + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string + */ + protected $areaServed; + + /** + * The supplier of the incentivized item/service for which the incentive is valid for such as a utility company, merchant, or contractor. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|string + */ + protected $eligibleWithSupplier; + + /** + * Describes the amount that can be redeemed from this incentive. + * + *
[[QuantitativeValue]]: Use this for incentives based on price (either raw amount or percentage-based). For a raw amount example, "You can claim $2,500 - $7,500 from the total cost of installation" would be represented as the following:
+ * { + * "@type": "QuantitativeValue", + * “minValue”: 2500, + * “maxValue”: 7500, + * "unitCode": "USD" + * } + *[[QuantitativeValue]] can also be used for percentage amounts. In such cases, value is used to represent the incentive’s percentage, while maxValue represents a limit (if one exists) to that incentive. The unitCode should be 'P1' and the unitText should be '%', while valueReference should be used for holding the currency type. For example, "You can claim up to 30% of the total cost of installation, up to a maximum of $7,500" would be:
+ * { + * "@type": "QuantitativeValue", + * "value": 30, + * "unitCode": "P1", + * "unitText": "%", + * “maxValue”: 7500, + * “valueReference”: “USD” + * } + *[[UnitPriceSpecification]]: Use this for incentives that are based on amounts rather than price. For example, a net metering rebate that pays $10/kWh, up to $1,000:
+ * { + * "@type": "UnitPriceSpecification", + * "price": 10, + * "priceCurrency": "USD", + * "referenceQuantity": 1, + * "unitCode": "DO3", + * "unitText": "kw/h", + * "maxPrice": 1000, + * "description": "$10 / kwh up to $1000" + * } + *[[LoanOrCredit]]: Use for incentives that are loan based. For example, a loan of $4,000 - $50,000 with a repayment term of 10 years, interest free would look like:
+ * { + * "@type": "LoanOrCredit", + * "loanTerm": { + * "@type":"QuantitativeValue", + * "value":"10", + * "unitCode": "ANN" + * }, + * "amount":[ + * { + * "@type": "QuantitativeValue", + * "Name":"fixed interest rate", + * "value":"0", + * }, + * ], + * "amount":[ + * { + * "@type": "MonetaryAmount", + * "Name":"min loan amount", + * "value":"4000", + * "currency":"CAD" + * }, + * { + * "@type": "MonetaryAmount", + * "Name":"max loan amount", + * "value":"50000", + * "currency":"CAD" + * } + * ], + * } + * + * In summary:DefinedTermSets are used for product and service categories such as the United Nations Standard Products and Services Code:
+ * { + * "@type": "DefinedTerm", + * "inDefinedTermSet": "https://www.unspsc.org/", + * "termCode": "261315XX", + * "name": "Photovoltaic module" + * } + * + *For a specific product or service, use the Product type:
+ * { + * "@type": "Product", + * "name": "Kenmore White 17" Microwave", + * } + * For multiple different incentivized items, use multiple [[DefinedTerm]] or [[Product]]. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Product|string + */ + protected $incentivizedItem; + + /** + * Optional. Income limit for which the incentive is applicable for. + * + *If MonetaryAmount is specified, this should be based on annualized income (e.g. if an incentive is limited to those making <$114,000 annually):
+ * { + * "@type": "MonetaryAmount", + * "maxValue": 114000, + * "currency": "USD", + * } + * + * Use Text for incentives that are limited based on other criteria, for example if an incentive is only available to recipients making 120% of the median poverty income in their area. + * + * + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + */ + protected $incomeLimit; + + /** + * 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\Person|string + */ + protected $provider; + + /** + * The publisher of the article in question. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $publisher; + + /** + * Optional. The maximum price the item can have and still qualify for this offer. + * + * + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + */ + protected $purchasePriceLimit; + + /** + * Optional. The type of purchase the consumer must make in order to qualify for this incentive. + * + * + * @var \OpenActive\Enums\SchemaOrg\PurchaseType|null + */ + protected $purchaseType; + + /** + * Optional. The types of expenses that are covered by the incentive. For example some incentives are only for the goods (tangible items) but the services (labor) are excluded. + * + * + * @var \OpenActive\Enums\SchemaOrg\IncentiveQualifiedExpenseType|null + */ + protected $qualifiedExpense; + + /** + * The date when the item becomes valid. + * + * + * @var Date|DateTime|null + */ + 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 + */ + protected $validThrough; + + /** + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string + */ + public function getAreaServed() + { + return $this->areaServed; + } + + /** + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $areaServed + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAreaServed($areaServed) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", + "string", + ]; + + $areaServed = self::checkTypes($areaServed, $types); + + $this->areaServed = $areaServed; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|string + */ + public function getEligibleWithSupplier() + { + return $this->eligibleWithSupplier; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|string $eligibleWithSupplier + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setEligibleWithSupplier($eligibleWithSupplier) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; + + $eligibleWithSupplier = self::checkTypes($eligibleWithSupplier, $types); + + $this->eligibleWithSupplier = $eligibleWithSupplier; + } + + /** + * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\UnitPriceSpecification|string + */ + public function getIncentiveAmount() + { + return $this->incentiveAmount; + } + + /** + * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $incentiveAmount + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIncentiveAmount($incentiveAmount) + { + $types = [ + "\OpenActive\Models\SchemaOrg\LoanOrCredit", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\UnitPriceSpecification", + "string", + ]; + + $incentiveAmount = self::checkTypes($incentiveAmount, $types); + + $this->incentiveAmount = $incentiveAmount; + } + + /** + * @return \OpenActive\Enums\SchemaOrg\IncentiveStatus|null + */ + public function getIncentiveStatus() + { + return $this->incentiveStatus; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\IncentiveStatus|null $incentiveStatus + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIncentiveStatus($incentiveStatus) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\IncentiveStatus", + "null", + ]; + + $incentiveStatus = self::checkTypes($incentiveStatus, $types); + + $this->incentiveStatus = $incentiveStatus; + } + + /** + * @return \OpenActive\Enums\SchemaOrg\IncentiveType|null + */ + public function getIncentiveType() + { + return $this->incentiveType; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\IncentiveType|null $incentiveType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIncentiveType($incentiveType) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\IncentiveType", + "null", + ]; + + $incentiveType = self::checkTypes($incentiveType, $types); + + $this->incentiveType = $incentiveType; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Product|string + */ + public function getIncentivizedItem() + { + return $this->incentivizedItem; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Product|string $incentivizedItem + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIncentivizedItem($incentivizedItem) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Product", + "string", + ]; + + $incentivizedItem = self::checkTypes($incentivizedItem, $types); + + $this->incentivizedItem = $incentivizedItem; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + */ + public function getIncomeLimit() + { + return $this->incomeLimit; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $incomeLimit + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIncomeLimit($incomeLimit) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", + ]; + + $incomeLimit = self::checkTypes($incomeLimit, $types); + + $this->incomeLimit = $incomeLimit; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getProvider() + { + return $this->provider; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setProvider($provider) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $provider = self::checkTypes($provider, $types); + + $this->provider = $provider; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getPublisher() + { + return $this->publisher; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $publisher + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPublisher($publisher) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $publisher = self::checkTypes($publisher, $types); + + $this->publisher = $publisher; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + */ + public function getPurchasePriceLimit() + { + return $this->purchasePriceLimit; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $purchasePriceLimit + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPurchasePriceLimit($purchasePriceLimit) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", + ]; + + $purchasePriceLimit = self::checkTypes($purchasePriceLimit, $types); + + $this->purchasePriceLimit = $purchasePriceLimit; + } + + /** + * @return \OpenActive\Enums\SchemaOrg\PurchaseType|null + */ + public function getPurchaseType() + { + return $this->purchaseType; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\PurchaseType|null $purchaseType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPurchaseType($purchaseType) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\PurchaseType", + "null", + ]; + + $purchaseType = self::checkTypes($purchaseType, $types); + + $this->purchaseType = $purchaseType; + } + + /** + * @return \OpenActive\Enums\SchemaOrg\IncentiveQualifiedExpenseType|null + */ + public function getQualifiedExpense() + { + return $this->qualifiedExpense; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\IncentiveQualifiedExpenseType|null $qualifiedExpense + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setQualifiedExpense($qualifiedExpense) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\IncentiveQualifiedExpenseType", + "null", + ]; + + $qualifiedExpense = self::checkTypes($qualifiedExpense, $types); + + $this->qualifiedExpense = $qualifiedExpense; + } + + /** + * @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 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/Flight.php b/src/Models/SchemaOrg/Flight.php index 884e8838..076bd643 100644 --- a/src/Models/SchemaOrg/Flight.php +++ b/src/Models/SchemaOrg/Flight.php @@ -17,73 +17,73 @@ public static function getType() public static function fieldList() { $fields = [ - "flightDistance" => "flightDistance", - "webCheckinTime" => "webCheckinTime", "aircraft" => "aircraft", - "seller" => "seller", "arrivalAirport" => "arrivalAirport", + "arrivalGate" => "arrivalGate", "arrivalTerminal" => "arrivalTerminal", + "boardingPolicy" => "boardingPolicy", + "carrier" => "carrier", "departureAirport" => "departureAirport", - "arrivalGate" => "arrivalGate", + "departureGate" => "departureGate", "departureTerminal" => "departureTerminal", - "carrier" => "carrier", "estimatedFlightDuration" => "estimatedFlightDuration", - "departureGate" => "departureGate", + "flightDistance" => "flightDistance", "flightNumber" => "flightNumber", "mealService" => "mealService", - "boardingPolicy" => "boardingPolicy", + "seller" => "seller", + "webCheckinTime" => "webCheckinTime", ]; return array_merge(parent::fieldList(), $fields); } /** - * The distance of the flight. + * The kind of aircraft (e.g., "Boeing 747"). * * - * @var \OpenActive\Models\SchemaOrg\Distance|string + * @var string|\OpenActive\Models\SchemaOrg\Vehicle */ - protected $flightDistance; + protected $aircraft; /** - * The time when a passenger can check into the flight online. + * The airport where the flight terminates. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Airport|string */ - protected $webCheckinTime; + protected $arrivalAirport; /** - * The kind of aircraft (e.g., "Boeing 747"). + * Identifier of the flight's arrival gate. * * - * @var \OpenActive\Models\SchemaOrg\Vehicle|string + * @var string */ - protected $aircraft; + protected $arrivalGate; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * Identifier of the flight's arrival terminal. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $seller; + protected $arrivalTerminal; /** - * The airport where the flight terminates. + * The type of boarding policy used by the airline (e.g. zone-based or group-based). * * - * @var \OpenActive\Models\SchemaOrg\Airport|string + * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null */ - protected $arrivalAirport; + protected $boardingPolicy; /** - * Identifier of the flight's arrival terminal. + * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $arrivalTerminal; + protected $carrier; /** * The airport where the flight originates. @@ -94,12 +94,12 @@ public static function fieldList() { protected $departureAirport; /** - * Identifier of the flight's arrival gate. + * Identifier of the flight's departure gate. * * * @var string */ - protected $arrivalGate; + protected $departureGate; /** * Identifier of the flight's departure terminal. @@ -109,14 +109,6 @@ public static function fieldList() { */ protected $departureTerminal; - /** - * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. - * - * - * @var \OpenActive\Models\SchemaOrg\Organization|string - */ - protected $carrier; - /** * The estimated time the flight will take. * @@ -126,12 +118,12 @@ public static function fieldList() { protected $estimatedFlightDuration; /** - * Identifier of the flight's departure gate. + * The distance of the flight. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Distance|string */ - protected $departureGate; + protected $flightDistance; /** * 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'. @@ -150,161 +142,167 @@ public static function fieldList() { protected $mealService; /** - * The type of boarding policy used by the airline (e.g. zone-based or group-based). + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * - * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $boardingPolicy; + protected $seller; /** - * @return \OpenActive\Models\SchemaOrg\Distance|string + * The time when a passenger can check into the flight online. + * + * + * @var DateTime|null */ - public function getFlightDistance() + protected $webCheckinTime; + + /** + * @return string|\OpenActive\Models\SchemaOrg\Vehicle + */ + public function getAircraft() { - return $this->flightDistance; + return $this->aircraft; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|string $flightDistance + * @param string|\OpenActive\Models\SchemaOrg\Vehicle $aircraft * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFlightDistance($flightDistance) + public function setAircraft($aircraft) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", "string", + "\OpenActive\Models\SchemaOrg\Vehicle", ]; - $flightDistance = self::checkTypes($flightDistance, $types); + $aircraft = self::checkTypes($aircraft, $types); - $this->flightDistance = $flightDistance; + $this->aircraft = $aircraft; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Airport|string */ - public function getWebCheckinTime() + public function getArrivalAirport() { - return $this->webCheckinTime; + return $this->arrivalAirport; } /** - * @param DateTime|null $webCheckinTime + * @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 setWebCheckinTime($webCheckinTime) + public function setArrivalAirport($arrivalAirport) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Airport", + "string", ]; - $webCheckinTime = self::checkTypes($webCheckinTime, $types); + $arrivalAirport = self::checkTypes($arrivalAirport, $types); - $this->webCheckinTime = $webCheckinTime; + $this->arrivalAirport = $arrivalAirport; } /** - * @return \OpenActive\Models\SchemaOrg\Vehicle|string + * @return string */ - public function getAircraft() + public function getArrivalGate() { - return $this->aircraft; + return $this->arrivalGate; } /** - * @param \OpenActive\Models\SchemaOrg\Vehicle|string $aircraft + * @param string $arrivalGate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAircraft($aircraft) + public function setArrivalGate($arrivalGate) { $types = [ - "\OpenActive\Models\SchemaOrg\Vehicle", "string", ]; - $aircraft = self::checkTypes($aircraft, $types); + $arrivalGate = self::checkTypes($arrivalGate, $types); - $this->aircraft = $aircraft; + $this->arrivalGate = $arrivalGate; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getSeller() + public function getArrivalTerminal() { - return $this->seller; + return $this->arrivalTerminal; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @param string $arrivalTerminal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeller($seller) + public function setArrivalTerminal($arrivalTerminal) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $seller = self::checkTypes($seller, $types); + $arrivalTerminal = self::checkTypes($arrivalTerminal, $types); - $this->seller = $seller; + $this->arrivalTerminal = $arrivalTerminal; } /** - * @return \OpenActive\Models\SchemaOrg\Airport|string + * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null */ - public function getArrivalAirport() + public function getBoardingPolicy() { - return $this->arrivalAirport; + return $this->boardingPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Airport|string $arrivalAirport + * @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 setArrivalAirport($arrivalAirport) + public function setBoardingPolicy($boardingPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Airport", - "string", + "\OpenActive\Enums\SchemaOrg\BoardingPolicyType", + "null", ]; - $arrivalAirport = self::checkTypes($arrivalAirport, $types); + $boardingPolicy = self::checkTypes($boardingPolicy, $types); - $this->arrivalAirport = $arrivalAirport; + $this->boardingPolicy = $boardingPolicy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getArrivalTerminal() + public function getCarrier() { - return $this->arrivalTerminal; + return $this->carrier; } /** - * @param string $arrivalTerminal + * @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 setArrivalTerminal($arrivalTerminal) + public function setCarrier($carrier) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $arrivalTerminal = self::checkTypes($arrivalTerminal, $types); + $carrier = self::checkTypes($carrier, $types); - $this->arrivalTerminal = $arrivalTerminal; + $this->carrier = $carrier; } /** @@ -335,25 +333,25 @@ public function setDepartureAirport($departureAirport) /** * @return string */ - public function getArrivalGate() + public function getDepartureGate() { - return $this->arrivalGate; + return $this->departureGate; } /** - * @param string $arrivalGate + * @param string $departureGate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalGate($arrivalGate) + public function setDepartureGate($departureGate) { $types = [ "string", ]; - $arrivalGate = self::checkTypes($arrivalGate, $types); + $departureGate = self::checkTypes($departureGate, $types); - $this->arrivalGate = $arrivalGate; + $this->departureGate = $departureGate; } /** @@ -380,31 +378,6 @@ public function setDepartureTerminal($departureTerminal) $this->departureTerminal = $departureTerminal; } - /** - * @return \OpenActive\Models\SchemaOrg\Organization|string - */ - public function getCarrier() - { - return $this->carrier; - } - - /** - * @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 setCarrier($carrier) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "string", - ]; - - $carrier = self::checkTypes($carrier, $types); - - $this->carrier = $carrier; - } - /** * @return DateInterval|string|null */ @@ -432,27 +405,28 @@ public function setEstimatedFlightDuration($estimatedFlightDuration) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Distance|string */ - public function getDepartureGate() + public function getFlightDistance() { - return $this->departureGate; + return $this->flightDistance; } /** - * @param string $departureGate + * @param \OpenActive\Models\SchemaOrg\Distance|string $flightDistance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureGate($departureGate) + public function setFlightDistance($flightDistance) { $types = [ + "\OpenActive\Models\SchemaOrg\Distance", "string", ]; - $departureGate = self::checkTypes($departureGate, $types); + $flightDistance = self::checkTypes($flightDistance, $types); - $this->departureGate = $departureGate; + $this->flightDistance = $flightDistance; } /** @@ -504,28 +478,54 @@ public function setMealService($mealService) } /** - * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getBoardingPolicy() + public function getSeller() { - return $this->boardingPolicy; + return $this->seller; } /** - * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBoardingPolicy($boardingPolicy) + public function setSeller($seller) { $types = [ - "\OpenActive\Enums\SchemaOrg\BoardingPolicyType", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $seller = self::checkTypes($seller, $types); + + $this->seller = $seller; + } + + /** + * @return DateTime|null + */ + public function getWebCheckinTime() + { + return $this->webCheckinTime; + } + + /** + * @param DateTime|null $webCheckinTime + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setWebCheckinTime($webCheckinTime) + { + $types = [ + "DateTime", "null", ]; - $boardingPolicy = self::checkTypes($boardingPolicy, $types); + $webCheckinTime = self::checkTypes($webCheckinTime, $types); - $this->boardingPolicy = $boardingPolicy; + $this->webCheckinTime = $webCheckinTime; } } diff --git a/src/Models/SchemaOrg/FlightReservation.php b/src/Models/SchemaOrg/FlightReservation.php index 86c2d57b..b149944b 100644 --- a/src/Models/SchemaOrg/FlightReservation.php +++ b/src/Models/SchemaOrg/FlightReservation.php @@ -17,15 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ - "passengerPriorityStatus" => "passengerPriorityStatus", "boardingGroup" => "boardingGroup", - "securityScreening" => "securityScreening", + "passengerPriorityStatus" => "passengerPriorityStatus", "passengerSequenceNumber" => "passengerSequenceNumber", + "securityScreening" => "securityScreening", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The airline-specific indicator of boarding order / preference. + * + * + * @var string + */ + protected $boardingGroup; + /** * The priority status assigned to a passenger for security or boarding (e.g. FastTrack or Priority). * @@ -35,12 +43,12 @@ 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. @@ -51,12 +59,28 @@ public static function fieldList() { protected $securityScreening; /** - * The passenger's sequence number as assigned by the airline. - * - * - * @var string + * @return string */ - protected $passengerSequenceNumber; + public function getBoardingGroup() + { + return $this->boardingGroup; + } + + /** + * @param string $boardingGroup + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setBoardingGroup($boardingGroup) + { + $types = [ + "string", + ]; + + $boardingGroup = self::checkTypes($boardingGroup, $types); + + $this->boardingGroup = $boardingGroup; + } /** * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null @@ -87,25 +111,25 @@ 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; } /** @@ -132,28 +156,4 @@ public function setSecurityScreening($securityScreening) $this->securityScreening = $securityScreening; } - /** - * @return string - */ - public function getPassengerSequenceNumber() - { - return $this->passengerSequenceNumber; - } - - /** - * @param string $passengerSequenceNumber - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setPassengerSequenceNumber($passengerSequenceNumber) - { - $types = [ - "string", - ]; - - $passengerSequenceNumber = self::checkTypes($passengerSequenceNumber, $types); - - $this->passengerSequenceNumber = $passengerSequenceNumber; - } - } diff --git a/src/Models/SchemaOrg/FloorPlan.php b/src/Models/SchemaOrg/FloorPlan.php index 118aa873..cd8a2069 100644 --- a/src/Models/SchemaOrg/FloorPlan.php +++ b/src/Models/SchemaOrg/FloorPlan.php @@ -17,47 +17,55 @@ public static function getType() public static function fieldList() { $fields = [ + "amenityFeature" => "amenityFeature", + "floorSize" => "floorSize", "isPlanForApartment" => "isPlanForApartment", - "numberOfBathroomsTotal" => "numberOfBathroomsTotal", - "numberOfRooms" => "numberOfRooms", + "layoutImage" => "layoutImage", "numberOfAccommodationUnits" => "numberOfAccommodationUnits", "numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits", - "amenityFeature" => "amenityFeature", + "numberOfBathroomsTotal" => "numberOfBathroomsTotal", "numberOfBedrooms" => "numberOfBedrooms", - "numberOfPartialBathrooms" => "numberOfPartialBathrooms", - "floorSize" => "floorSize", "numberOfFullBathrooms" => "numberOfFullBathrooms", + "numberOfPartialBathrooms" => "numberOfPartialBathrooms", + "numberOfRooms" => "numberOfRooms", "petsAllowed" => "petsAllowed", - "layoutImage" => "layoutImage", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates some accommodation that this floor plan describes. + * 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\Accommodation|string + * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - protected $isPlanForApartment; + protected $amenityFeature; /** - * The total integer number of bathrooms in a some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]]. + * The 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 int|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfBathroomsTotal; + protected $floorSize; /** - * 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 some accommodation that this floor plan describes. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\Accommodation|string */ - protected $numberOfRooms; + protected $isPlanForApartment; + + /** + * A schematic image showing the floorplan layout. + * + * + * @var \OpenActive\Models\SchemaOrg\ImageObject|string + */ + protected $layoutImage; /** * 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]]. @@ -76,12 +84,12 @@ public static function fieldList() { protected $numberOfAvailableAccommodationUnits; /** - * 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 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\LocationFeatureSpecification|string + * @var int|null */ - protected $amenityFeature; + protected $numberOfBathroomsTotal; /** * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]]. @@ -92,29 +100,29 @@ public static function fieldList() { protected $numberOfBedrooms; /** - * 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 + * 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\QuantitativeValue|string + * @var Number|null */ - protected $floorSize; + protected $numberOfPartialBathrooms; /** - * 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 Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|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. @@ -125,88 +133,103 @@ public static function fieldList() { protected $petsAllowed; /** - * A schematic image showing the floorplan layout. - * - * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - protected $layoutImage; + public function getAmenityFeature() + { + return $this->amenityFeature; + } /** - * @return \OpenActive\Models\SchemaOrg\Accommodation|string + * @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 getIsPlanForApartment() + public function setAmenityFeature($amenityFeature) { - return $this->isPlanForApartment; + $types = [ + "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", + "string", + ]; + + $amenityFeature = self::checkTypes($amenityFeature, $types); + + $this->amenityFeature = $amenityFeature; } /** - * @param \OpenActive\Models\SchemaOrg\Accommodation|string $isPlanForApartment + * @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 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 \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getNumberOfRooms() + public function getLayoutImage() { - return $this->numberOfRooms; + return $this->layoutImage; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms + * @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 setNumberOfRooms($numberOfRooms) + public function setLayoutImage($layoutImage) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", - "Number", - "null", ]; - $numberOfRooms = self::checkTypes($numberOfRooms, $types); + $layoutImage = self::checkTypes($layoutImage, $types); - $this->numberOfRooms = $numberOfRooms; + $this->layoutImage = $layoutImage; } /** @@ -260,28 +283,28 @@ public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommo } /** - * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string + * @return int|null */ - public function getAmenityFeature() + public function getNumberOfBathroomsTotal() { - return $this->amenityFeature; + return $this->numberOfBathroomsTotal; } /** - * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature + * @param int|null $numberOfBathroomsTotal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAmenityFeature($amenityFeature) + public function setNumberOfBathroomsTotal($numberOfBathroomsTotal) { $types = [ - "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", - "string", + "int", + "null", ]; - $amenityFeature = self::checkTypes($amenityFeature, $types); + $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types); - $this->amenityFeature = $amenityFeature; + $this->numberOfBathroomsTotal = $numberOfBathroomsTotal; } /** @@ -314,76 +337,78 @@ public function setNumberOfBedrooms($numberOfBedrooms) /** * @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 Number|null */ - public function getFloorSize() + public function getNumberOfPartialBathrooms() { - return $this->floorSize; + return $this->numberOfPartialBathrooms; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize + * @param Number|null $numberOfPartialBathrooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFloorSize($floorSize) + public function setNumberOfPartialBathrooms($numberOfPartialBathrooms) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Number", + "null", ]; - $floorSize = self::checkTypes($floorSize, $types); + $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types); - $this->floorSize = $floorSize; + $this->numberOfPartialBathrooms = $numberOfPartialBathrooms; } /** - * @return Number|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getNumberOfFullBathrooms() + public function getNumberOfRooms() { - return $this->numberOfFullBathrooms; + return $this->numberOfRooms; } /** - * @param Number|null $numberOfFullBathrooms + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|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 = [ "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types); + $numberOfRooms = self::checkTypes($numberOfRooms, $types); - $this->numberOfFullBathrooms = $numberOfFullBathrooms; + $this->numberOfRooms = $numberOfRooms; } /** @@ -412,29 +437,4 @@ public function setPetsAllowed($petsAllowed) $this->petsAllowed = $petsAllowed; } - /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string - */ - public function getLayoutImage() - { - return $this->layoutImage; - } - - /** - * @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 setLayoutImage($layoutImage) - { - $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", - "string", - ]; - - $layoutImage = self::checkTypes($layoutImage, $types); - - $this->layoutImage = $layoutImage; - } - } diff --git a/src/Models/SchemaOrg/FoodEstablishment.php b/src/Models/SchemaOrg/FoodEstablishment.php index 554150aa..b51bb6c7 100644 --- a/src/Models/SchemaOrg/FoodEstablishment.php +++ b/src/Models/SchemaOrg/FoodEstablishment.php @@ -17,179 +17,179 @@ public static function getType() public static function fieldList() { $fields = [ - "starRating" => "starRating", - "servesCuisine" => "servesCuisine", "acceptsReservations" => "acceptsReservations", "hasMenu" => "hasMenu", "menu" => "menu", + "servesCuisine" => "servesCuisine", + "starRating" => "starRating", ]; return array_merge(parent::fieldList(), $fields); } /** - * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars). + * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```. * * - * @var \OpenActive\Models\SchemaOrg\Rating|string + * @var bool|string|null */ - protected $starRating; + protected $acceptsReservations; /** - * The cuisine of the restaurant. + * Either the actual menu as a structured representation, as text, or a URL of the menu. * * - * @var string + * @var \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```. + * Either the actual menu as a structured representation, as text, or a URL of the menu. * * - * @var bool|string|null + * @var \OpenActive\Models\SchemaOrg\Menu|string */ - protected $acceptsReservations; + protected $menu; /** - * 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. + * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars). * * - * @var string|\OpenActive\Models\SchemaOrg\Menu + * @var \OpenActive\Models\SchemaOrg\Rating|string */ - protected $menu; + protected $starRating; /** - * @return \OpenActive\Models\SchemaOrg\Rating|string + * @return bool|string|null */ - public function getStarRating() + public function getAcceptsReservations() { - return $this->starRating; + return $this->acceptsReservations; } /** - * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating + * @param bool|string|null $acceptsReservations * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStarRating($starRating) + public function setAcceptsReservations($acceptsReservations) { $types = [ - "\OpenActive\Models\SchemaOrg\Rating", + "bool", "string", + "null", ]; - $starRating = self::checkTypes($starRating, $types); + $acceptsReservations = self::checkTypes($acceptsReservations, $types); - $this->starRating = $starRating; + $this->acceptsReservations = $acceptsReservations; } /** - * @return string + * @return \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\Menu|string */ - public function getAcceptsReservations() + public function getMenu() { - return $this->acceptsReservations; + return $this->menu; } /** - * @param bool|string|null $acceptsReservations + * @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 setAcceptsReservations($acceptsReservations) + public function setMenu($menu) { $types = [ - "bool", + "\OpenActive\Models\SchemaOrg\Menu", "string", - "null", ]; - $acceptsReservations = self::checkTypes($acceptsReservations, $types); + $menu = self::checkTypes($menu, $types); - $this->acceptsReservations = $acceptsReservations; + $this->menu = $menu; } /** - * @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 \OpenActive\Models\SchemaOrg\Rating|string */ - public function getMenu() + public function getStarRating() { - return $this->menu; + return $this->starRating; } /** - * @param string|\OpenActive\Models\SchemaOrg\Menu $menu + * @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 setMenu($menu) + public function setStarRating($starRating) { $types = [ + "\OpenActive\Models\SchemaOrg\Rating", "string", - "\OpenActive\Models\SchemaOrg\Menu", ]; - $menu = self::checkTypes($menu, $types); + $starRating = self::checkTypes($starRating, $types); - $this->menu = $menu; + $this->starRating = $starRating; } } diff --git a/src/Models/SchemaOrg/FoodEstablishmentReservation.php b/src/Models/SchemaOrg/FoodEstablishmentReservation.php index 15f0143c..df3e1b71 100644 --- a/src/Models/SchemaOrg/FoodEstablishmentReservation.php +++ b/src/Models/SchemaOrg/FoodEstablishmentReservation.php @@ -17,14 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ + "endTime" => "endTime", "partySize" => "partySize", "startTime" => "startTime", - "endTime" => "endTime", ]; return array_merge(parent::fieldList(), $fields); } + /** + * 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 $endTime; + /** * Number of people the reservation should accommodate. * @@ -34,7 +42,7 @@ public static function fieldList() { 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 startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * * @var DateTime|string|null @@ -42,12 +50,30 @@ public static function fieldList() { protected $startTime; /** - * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. - * - * - * @var DateTime|string|null + * @return DateTime|string|null */ - protected $endTime; + public function getEndTime() + { + return $this->endTime; + } + + /** + * @param DateTime|string|null $endTime + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setEndTime($endTime) + { + $types = [ + "DateTime", + "Time", + "null", + ]; + + $endTime = self::checkTypes($endTime, $types); + + $this->endTime = $endTime; + } /** * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null @@ -102,30 +128,4 @@ public function setStartTime($startTime) $this->startTime = $startTime; } - /** - * @return DateTime|string|null - */ - public function getEndTime() - { - return $this->endTime; - } - - /** - * @param DateTime|string|null $endTime - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setEndTime($endTime) - { - $types = [ - "DateTime", - "Time", - "null", - ]; - - $endTime = self::checkTypes($endTime, $types); - - $this->endTime = $endTime; - } - } diff --git a/src/Models/SchemaOrg/Game.php b/src/Models/SchemaOrg/Game.php index c575597b..000d95d8 100644 --- a/src/Models/SchemaOrg/Game.php +++ b/src/Models/SchemaOrg/Game.php @@ -19,9 +19,9 @@ public static function fieldList() { $fields = [ "characterAttribute" => "characterAttribute", "gameItem" => "gameItem", + "gameLocation" => "gameLocation", "numberOfPlayers" => "numberOfPlayers", "quest" => "quest", - "gameLocation" => "gameLocation", ]; return array_merge(parent::fieldList(), $fields); @@ -43,6 +43,14 @@ public static function fieldList() { */ protected $gameItem; + /** + * Real or fictional location of the game (or part of game). + * + * + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string + */ + protected $gameLocation; + /** * Indicate how many people can play this game (minimum, maximum, or range). * @@ -59,14 +67,6 @@ public static function fieldList() { */ protected $quest; - /** - * Real or fictional location of the game (or part of game). - * - * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress - */ - protected $gameLocation; - /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ @@ -118,79 +118,79 @@ public function setGameItem($gameItem) } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getNumberOfPlayers() + public function getGameLocation() { - return $this->numberOfPlayers; + return $this->gameLocation; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string $gameLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfPlayers($numberOfPlayers) + public function setGameLocation($gameLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); + $gameLocation = self::checkTypes($gameLocation, $types); - $this->numberOfPlayers = $numberOfPlayers; + $this->gameLocation = $gameLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getQuest() + public function getNumberOfPlayers() { - return $this->quest; + return $this->numberOfPlayers; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $quest + * @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 setQuest($quest) + public function setNumberOfPlayers($numberOfPlayers) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $quest = self::checkTypes($quest, $types); + $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); - $this->quest = $quest; + $this->numberOfPlayers = $numberOfPlayers; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getGameLocation() + public function getQuest() { - return $this->gameLocation; + return $this->quest; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation + * @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 setGameLocation($gameLocation) + public function setQuest($quest) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Thing", "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $gameLocation = self::checkTypes($gameLocation, $types); + $quest = self::checkTypes($quest, $types); - $this->gameLocation = $gameLocation; + $this->quest = $quest; } } diff --git a/src/Models/SchemaOrg/GameServer.php b/src/Models/SchemaOrg/GameServer.php index a673a844..d0f8ab75 100644 --- a/src/Models/SchemaOrg/GameServer.php +++ b/src/Models/SchemaOrg/GameServer.php @@ -17,22 +17,14 @@ public static function getType() public static function fieldList() { $fields = [ - "serverStatus" => "serverStatus", "game" => "game", "playersOnline" => "playersOnline", + "serverStatus" => "serverStatus", ]; return array_merge(parent::fieldList(), $fields); } - /** - * Status of a game server. - * - * - * @var \OpenActive\Models\SchemaOrg\GameServerStatus|string - */ - protected $serverStatus; - /** * Video game which is played on this server. * @@ -50,29 +42,12 @@ public static function fieldList() { protected $playersOnline; /** - * @return \OpenActive\Models\SchemaOrg\GameServerStatus|string - */ - public function getServerStatus() - { - return $this->serverStatus; - } - - /** - * @param \OpenActive\Models\SchemaOrg\GameServerStatus|string $serverStatus - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * Status of a game server. + * + * + * @var \OpenActive\Models\SchemaOrg\GameServerStatus|string */ - public function setServerStatus($serverStatus) - { - $types = [ - "\OpenActive\Models\SchemaOrg\GameServerStatus", - "string", - ]; - - $serverStatus = self::checkTypes($serverStatus, $types); - - $this->serverStatus = $serverStatus; - } + protected $serverStatus; /** * @return \OpenActive\Models\SchemaOrg\VideoGame|string @@ -124,4 +99,29 @@ public function setPlayersOnline($playersOnline) $this->playersOnline = $playersOnline; } + /** + * @return \OpenActive\Models\SchemaOrg\GameServerStatus|string + */ + public function getServerStatus() + { + return $this->serverStatus; + } + + /** + * @param \OpenActive\Models\SchemaOrg\GameServerStatus|string $serverStatus + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setServerStatus($serverStatus) + { + $types = [ + "\OpenActive\Models\SchemaOrg\GameServerStatus", + "string", + ]; + + $serverStatus = self::checkTypes($serverStatus, $types); + + $this->serverStatus = $serverStatus; + } + } diff --git a/src/Models/SchemaOrg/Gene.php b/src/Models/SchemaOrg/Gene.php index 7ecc5fa5..5aa0de4c 100644 --- a/src/Models/SchemaOrg/Gene.php +++ b/src/Models/SchemaOrg/Gene.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "alternativeOf" => "alternativeOf", - "hasBioPolymerSequence" => "hasBioPolymerSequence", "encodesBioChemEntity" => "encodesBioChemEntity", "expressedIn" => "expressedIn", + "hasBioPolymerSequence" => "hasBioPolymerSequence", ]; return array_merge(parent::fieldList(), $fields); @@ -34,14 +34,6 @@ public static function fieldList() { */ protected $alternativeOf; - /** - * A symbolic representation of a BioChemEnity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein. - * - * - * @var string - */ - protected $hasBioPolymerSequence; - /** * Another BioChemEntity encoded by this one. * @@ -54,10 +46,18 @@ public static function fieldList() { * Tissue, organ, biological sample, etc in which activity of this gene has been observed experimentally. For example brain, digestive system. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|string */ protected $expressedIn; + /** + * A symbolic representation of a BioChemEntity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein. + * + * + * @var string + */ + protected $hasBioPolymerSequence; + /** * @return \OpenActive\Models\SchemaOrg\Gene|string */ @@ -84,80 +84,80 @@ public function setAlternativeOf($alternativeOf) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - public function getHasBioPolymerSequence() + public function getEncodesBioChemEntity() { - return $this->hasBioPolymerSequence; + return $this->encodesBioChemEntity; } /** - * @param string $hasBioPolymerSequence + * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $encodesBioChemEntity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasBioPolymerSequence($hasBioPolymerSequence) + public function setEncodesBioChemEntity($encodesBioChemEntity) { $types = [ + "\OpenActive\Models\SchemaOrg\BioChemEntity", "string", ]; - $hasBioPolymerSequence = self::checkTypes($hasBioPolymerSequence, $types); + $encodesBioChemEntity = self::checkTypes($encodesBioChemEntity, $types); - $this->hasBioPolymerSequence = $hasBioPolymerSequence; + $this->encodesBioChemEntity = $encodesBioChemEntity; } /** - * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getEncodesBioChemEntity() + public function getExpressedIn() { - return $this->encodesBioChemEntity; + return $this->expressedIn; } /** - * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $encodesBioChemEntity + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|string $expressedIn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEncodesBioChemEntity($encodesBioChemEntity) + public function setExpressedIn($expressedIn) { $types = [ + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "\OpenActive\Models\SchemaOrg\BioChemEntity", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $encodesBioChemEntity = self::checkTypes($encodesBioChemEntity, $types); + $expressedIn = self::checkTypes($expressedIn, $types); - $this->encodesBioChemEntity = $encodesBioChemEntity; + $this->expressedIn = $expressedIn; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string + * @return string */ - public function getExpressedIn() + public function getHasBioPolymerSequence() { - return $this->expressedIn; + return $this->hasBioPolymerSequence; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $expressedIn + * @param string $hasBioPolymerSequence * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpressedIn($expressedIn) + public function setHasBioPolymerSequence($hasBioPolymerSequence) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", - "\OpenActive\Models\SchemaOrg\BioChemEntity", - "\OpenActive\Models\SchemaOrg\DefinedTerm", - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; - $expressedIn = self::checkTypes($expressedIn, $types); + $hasBioPolymerSequence = self::checkTypes($hasBioPolymerSequence, $types); - $this->expressedIn = $expressedIn; + $this->hasBioPolymerSequence = $hasBioPolymerSequence; } } 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..80f4acee 100644 --- a/src/Models/SchemaOrg/GeoCoordinates.php +++ b/src/Models/SchemaOrg/GeoCoordinates.php @@ -17,179 +17,181 @@ public static function getType() public static function fieldList() { $fields = [ - "addressCountry" => "addressCountry", - "latitude" => "latitude", "address" => "address", - "postalCode" => "postalCode", + "addressCountry" => "addressCountry", "elevation" => "elevation", + "latitude" => "latitude", "longitude" => "longitude", + "postalCode" => "postalCode", ]; 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). + * Physical address of the item. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $addressCountry; + protected $address; /** - * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). + * 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 string|Number|null + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $latitude; + protected $addressCountry; /** - * Physical address of the item. + * 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|\OpenActive\Models\SchemaOrg\PostalAddress + * @var string|Number|null */ - protected $address; + protected $elevation; /** - * The postal code. For example, 94043. + * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). * * - * @var string + * @var string|Number|null */ - protected $postalCode; + 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. + * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). * * * @var string|Number|null */ - protected $elevation; + protected $longitude; /** - * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). + * The postal code. For example, 94043. * * - * @var string|Number|null + * @var string */ - protected $longitude; + protected $postalCode; /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getAddressCountry() + public function getAddress() { - return $this->addressCountry; + return $this->address; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $address * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddressCountry($addressCountry) + public function setAddress($address) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $addressCountry = self::checkTypes($addressCountry, $types); + $address = self::checkTypes($address, $types); - $this->addressCountry = $addressCountry; + $this->address = $address; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getLatitude() + public function getAddressCountry() { - return $this->latitude; + return $this->addressCountry; } /** - * @param string|Number|null $latitude + * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLatitude($latitude) + public function setAddressCountry($addressCountry) { $types = [ + "\OpenActive\Models\SchemaOrg\Country", "string", - "Number", - "null", ]; - $latitude = self::checkTypes($latitude, $types); + $addressCountry = self::checkTypes($addressCountry, $types); - $this->latitude = $latitude; + $this->addressCountry = $addressCountry; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return string|Number|null */ - public function getAddress() + public function getElevation() { - return $this->address; + return $this->elevation; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @param string|Number|null $elevation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddress($address) + public function setElevation($elevation) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", + "Number", + "null", ]; - $address = self::checkTypes($address, $types); + $elevation = self::checkTypes($elevation, $types); - $this->address = $address; + $this->elevation = $elevation; } /** - * @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; } /** * @return string|Number|null */ - public function getElevation() + public function getLongitude() { - return $this->elevation; + return $this->longitude; } /** - * @param string|Number|null $elevation + * @param string|Number|null $longitude * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setElevation($elevation) + public function setLongitude($longitude) { $types = [ "string", @@ -197,35 +199,33 @@ public function setElevation($elevation) "null", ]; - $elevation = self::checkTypes($elevation, $types); + $longitude = self::checkTypes($longitude, $types); - $this->elevation = $elevation; + $this->longitude = $longitude; } /** - * @return string|Number|null + * @return string */ - public function getLongitude() + public function getPostalCode() { - return $this->longitude; + return $this->postalCode; } /** - * @param string|Number|null $longitude + * @param string $postalCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLongitude($longitude) + public function setPostalCode($postalCode) { $types = [ "string", - "Number", - "null", ]; - $longitude = self::checkTypes($longitude, $types); + $postalCode = self::checkTypes($postalCode, $types); - $this->longitude = $longitude; + $this->postalCode = $postalCode; } } diff --git a/src/Models/SchemaOrg/GeoShape.php b/src/Models/SchemaOrg/GeoShape.php index 3a4ebf30..409bbe30 100644 --- a/src/Models/SchemaOrg/GeoShape.php +++ b/src/Models/SchemaOrg/GeoShape.php @@ -17,277 +17,277 @@ public static function getType() public static function fieldList() { $fields = [ + "address" => "address", "addressCountry" => "addressCountry", + "box" => "box", "circle" => "circle", + "elevation" => "elevation", "line" => "line", "polygon" => "polygon", - "address" => "address", "postalCode" => "postalCode", - "elevation" => "elevation", - "box" => "box", ]; 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). + * Physical address of the item. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $addressCountry; + protected $address; /** - * 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. + * 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 string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $circle; + protected $addressCountry; /** - * A line is a point-to-point path consisting of two or more points. A line is expressed as a series of two or more point objects separated by space. + * A box is the area enclosed by the rectangle formed by two points. The first point is the lower corner, the second point is the upper corner. A box is expressed as two points separated by a space character. * * * @var string */ - protected $line; + protected $box; /** - * A polygon is the area enclosed by a point-to-point path for which the starting and ending points are the same. A polygon is expressed as a series of four or more space delimited points where the first and final points are identical. + * A circle is the circular region of a specified radius centered at a specified latitude and longitude. A circle is expressed as a pair followed by a radius in meters. * * * @var string */ - protected $polygon; + protected $circle; /** - * Physical address of the item. + * 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|\OpenActive\Models\SchemaOrg\PostalAddress + * @var string|Number|null */ - protected $address; + protected $elevation; /** - * The postal code. For example, 94043. + * A line is a point-to-point path consisting of two or more points. A line is expressed as a series of two or more point objects separated by space. * * * @var string */ - protected $postalCode; + protected $line; /** - * 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 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|Number|null + * @var string */ - protected $elevation; + protected $polygon; /** - * 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. + * The postal code. For example, 94043. * * * @var string */ - protected $box; + protected $postalCode; /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getAddressCountry() + public function getAddress() { - return $this->addressCountry; + return $this->address; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $address * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddressCountry($addressCountry) + public function setAddress($address) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $addressCountry = self::checkTypes($addressCountry, $types); + $address = self::checkTypes($address, $types); - $this->addressCountry = $addressCountry; + $this->address = $address; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getCircle() + public function getAddressCountry() { - return $this->circle; + return $this->addressCountry; } /** - * @param string $circle + * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCircle($circle) + public function setAddressCountry($addressCountry) { $types = [ + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $circle = self::checkTypes($circle, $types); + $addressCountry = self::checkTypes($addressCountry, $types); - $this->circle = $circle; + $this->addressCountry = $addressCountry; } /** * @return string */ - public function getLine() + public function getBox() { - return $this->line; + return $this->box; } /** - * @param string $line + * @param string $box * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLine($line) + public function setBox($box) { $types = [ "string", ]; - $line = self::checkTypes($line, $types); + $box = self::checkTypes($box, $types); - $this->line = $line; + $this->box = $box; } /** * @return string */ - public function getPolygon() + public function getCircle() { - return $this->polygon; + return $this->circle; } /** - * @param string $polygon + * @param string $circle * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPolygon($polygon) + public function setCircle($circle) { $types = [ "string", ]; - $polygon = self::checkTypes($polygon, $types); + $circle = self::checkTypes($circle, $types); - $this->polygon = $polygon; + $this->circle = $circle; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return string|Number|null */ - public function getAddress() + public function getElevation() { - return $this->address; + return $this->elevation; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @param string|Number|null $elevation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddress($address) + public function setElevation($elevation) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", + "Number", + "null", ]; - $address = self::checkTypes($address, $types); + $elevation = self::checkTypes($elevation, $types); - $this->address = $address; + $this->elevation = $elevation; } /** * @return string */ - public function getPostalCode() + public function getLine() { - return $this->postalCode; + return $this->line; } /** - * @param string $postalCode + * @param string $line * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCode($postalCode) + public function setLine($line) { $types = [ "string", ]; - $postalCode = self::checkTypes($postalCode, $types); + $line = self::checkTypes($line, $types); - $this->postalCode = $postalCode; + $this->line = $line; } /** - * @return string|Number|null + * @return string */ - public function getElevation() + public function getPolygon() { - return $this->elevation; + return $this->polygon; } /** - * @param string|Number|null $elevation + * @param string $polygon * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setElevation($elevation) + public function setPolygon($polygon) { $types = [ "string", - "Number", - "null", ]; - $elevation = self::checkTypes($elevation, $types); + $polygon = self::checkTypes($polygon, $types); - $this->elevation = $elevation; + $this->polygon = $polygon; } /** * @return string */ - public function getBox() + public function getPostalCode() { - return $this->box; + return $this->postalCode; } /** - * @param string $box + * @param string $postalCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBox($box) + public function setPostalCode($postalCode) { $types = [ "string", ]; - $box = self::checkTypes($box, $types); + $postalCode = self::checkTypes($postalCode, $types); - $this->box = $box; + $this->postalCode = $postalCode; } } diff --git a/src/Models/SchemaOrg/GeospatialGeometry.php b/src/Models/SchemaOrg/GeospatialGeometry.php index 41a3ac0f..a327d6be 100644 --- a/src/Models/SchemaOrg/GeospatialGeometry.php +++ b/src/Models/SchemaOrg/GeospatialGeometry.php @@ -18,15 +18,15 @@ 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", + "geoCrosses" => "geoCrosses", "geoDisjoint" => "geoDisjoint", + "geoEquals" => "geoEquals", + "geoIntersects" => "geoIntersects", "geoOverlaps" => "geoOverlaps", + "geoTouches" => "geoTouches", + "geoWithin" => "geoWithin", ]; return array_merge(parent::fieldList(), $fields); @@ -36,84 +36,84 @@ public static function fieldList() { * Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ protected $geoContains; /** - * 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 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 */ - protected $geoIntersects; + protected $geoCoveredBy; /** - * 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 + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|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 + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|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 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\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $geoEquals; + protected $geoDisjoint; /** - * 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 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\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $geoCrosses; + protected $geoEquals; /** - * 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 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 */ - protected $geoCovers; + protected $geoIntersects; /** - * 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 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 + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $geoWithin; + protected $geoOverlaps; /** - * 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) 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 */ - protected $geoDisjoint; + protected $geoTouches; /** - * 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 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 */ - protected $geoOverlaps; + protected $geoWithin; /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ public function getGeoContains() { @@ -121,15 +121,15 @@ public function getGeoContains() } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains + * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoContains * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setGeoContains($geoContains) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; @@ -141,17 +141,17 @@ public function setGeoContains($geoContains) /** * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoIntersects() + public function getGeoCoveredBy() { - return $this->geoIntersects; + return $this->geoCoveredBy; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects + * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCoveredBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoIntersects($geoIntersects) + public function setGeoCoveredBy($geoCoveredBy) { $types = [ "\OpenActive\Models\SchemaOrg\GeospatialGeometry", @@ -159,103 +159,103 @@ public function setGeoIntersects($geoIntersects) "string", ]; - $geoIntersects = self::checkTypes($geoIntersects, $types); + $geoCoveredBy = self::checkTypes($geoCoveredBy, $types); - $this->geoIntersects = $geoIntersects; + $this->geoCoveredBy = $geoCoveredBy; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|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\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|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", "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "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 + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|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\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|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", "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "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 + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoEquals() + public function getGeoDisjoint() { - return $this->geoEquals; + return $this->geoDisjoint; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals + * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoEquals($geoEquals) + public function setGeoDisjoint($geoDisjoint) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geoEquals = self::checkTypes($geoEquals, $types); + $geoDisjoint = self::checkTypes($geoDisjoint, $types); - $this->geoEquals = $geoEquals; + $this->geoDisjoint = $geoDisjoint; } /** * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoCrosses() + public function getGeoEquals() { - return $this->geoCrosses; + return $this->geoEquals; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCrosses + * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoEquals * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoCrosses($geoCrosses) + public function setGeoEquals($geoEquals) { $types = [ "\OpenActive\Models\SchemaOrg\GeospatialGeometry", @@ -263,25 +263,25 @@ public function setGeoCrosses($geoCrosses) "string", ]; - $geoCrosses = self::checkTypes($geoCrosses, $types); + $geoEquals = self::checkTypes($geoEquals, $types); - $this->geoCrosses = $geoCrosses; + $this->geoEquals = $geoEquals; } /** * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoCovers() + public function getGeoIntersects() { - return $this->geoCovers; + return $this->geoIntersects; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers + * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoCovers($geoCovers) + public function setGeoIntersects($geoIntersects) { $types = [ "\OpenActive\Models\SchemaOrg\GeospatialGeometry", @@ -289,51 +289,51 @@ public function setGeoCovers($geoCovers) "string", ]; - $geoCovers = self::checkTypes($geoCovers, $types); + $geoIntersects = self::checkTypes($geoIntersects, $types); - $this->geoCovers = $geoCovers; + $this->geoIntersects = $geoIntersects; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoWithin() + public function getGeoOverlaps() { - return $this->geoWithin; + return $this->geoOverlaps; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin + * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoWithin($geoWithin) + public function setGeoOverlaps($geoOverlaps) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geoWithin = self::checkTypes($geoWithin, $types); + $geoOverlaps = self::checkTypes($geoOverlaps, $types); - $this->geoWithin = $geoWithin; + $this->geoOverlaps = $geoOverlaps; } /** * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoDisjoint() + public function getGeoTouches() { - return $this->geoDisjoint; + return $this->geoTouches; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint + * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoTouches * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoDisjoint($geoDisjoint) + public function setGeoTouches($geoTouches) { $types = [ "\OpenActive\Models\SchemaOrg\GeospatialGeometry", @@ -341,25 +341,25 @@ public function setGeoDisjoint($geoDisjoint) "string", ]; - $geoDisjoint = self::checkTypes($geoDisjoint, $types); + $geoTouches = self::checkTypes($geoTouches, $types); - $this->geoDisjoint = $geoDisjoint; + $this->geoTouches = $geoTouches; } /** * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoOverlaps() + public function getGeoWithin() { - return $this->geoOverlaps; + return $this->geoWithin; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps + * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoWithin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoOverlaps($geoOverlaps) + public function setGeoWithin($geoWithin) { $types = [ "\OpenActive\Models\SchemaOrg\GeospatialGeometry", @@ -367,9 +367,9 @@ public function setGeoOverlaps($geoOverlaps) "string", ]; - $geoOverlaps = self::checkTypes($geoOverlaps, $types); + $geoWithin = self::checkTypes($geoWithin, $types); - $this->geoOverlaps = $geoOverlaps; + $this->geoWithin = $geoWithin; } } diff --git a/src/Models/SchemaOrg/GiveAction.php b/src/Models/SchemaOrg/GiveAction.php index c6617005..ffdfd582 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\Organization|\OpenActive\Models\SchemaOrg\Person|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\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getRecipient() { @@ -40,17 +40,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|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\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/GovernmentService.php b/src/Models/SchemaOrg/GovernmentService.php index 524869a5..7196d4a2 100644 --- a/src/Models/SchemaOrg/GovernmentService.php +++ b/src/Models/SchemaOrg/GovernmentService.php @@ -28,7 +28,7 @@ public static function fieldList() { * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based. * * - * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ protected $jurisdiction; @@ -41,7 +41,7 @@ public static function fieldList() { protected $serviceOperator; /** - * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ public function getJurisdiction() { @@ -49,15 +49,15 @@ public function getJurisdiction() } /** - * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $jurisdiction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setJurisdiction($jurisdiction) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "string", ]; $jurisdiction = self::checkTypes($jurisdiction, $types); diff --git a/src/Models/SchemaOrg/Grant.php b/src/Models/SchemaOrg/Grant.php index bfd1d00e..c2652d97 100644 --- a/src/Models/SchemaOrg/Grant.php +++ b/src/Models/SchemaOrg/Grant.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "funder" => "funder", "fundedItem" => "fundedItem", + "funder" => "funder", "sponsor" => "sponsor", ]; @@ -26,23 +26,23 @@ public static function fieldList() { } /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * Indicates something directly or indirectly funded or sponsored through a [[Grant]]. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Product|string */ - protected $funder; + protected $fundedItem; /** - * Indicates something directly or indirectly funded or sponsored through a [[Grant]]. See also [[ownershipFundingInfo]]. + * A person or organization that supports (sponsors) something through some kind of financial contribution. * * - * @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\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $fundedItem; + protected $funder; /** - * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event. + * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string @@ -50,60 +50,60 @@ public static function fieldList() { protected $sponsor; /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Product|string */ - public function getFunder() + public function getFundedItem() { - return $this->funder; + return $this->fundedItem; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @param \OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Product|string $fundedItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunder($funder) + public function setFundedItem($fundedItem) { $types = [ + "\OpenActive\Models\SchemaOrg\BioChemEntity", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\MedicalEntity", "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $funder = self::checkTypes($funder, $types); + $fundedItem = self::checkTypes($fundedItem, $types); - $this->funder = $funder; + $this->fundedItem = $fundedItem; } /** - * @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\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getFundedItem() + public function getFunder() { - return $this->fundedItem; + return $this->funder; } /** - * @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\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFundedItem($fundedItem) + public function setFunder($funder) { $types = [ - "\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", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $fundedItem = self::checkTypes($fundedItem, $types); + $funder = self::checkTypes($funder, $types); - $this->fundedItem = $fundedItem; + $this->funder = $funder; } /** diff --git a/src/Models/SchemaOrg/Guide.php b/src/Models/SchemaOrg/Guide.php index 80802ffc..6f5c229f 100644 --- a/src/Models/SchemaOrg/Guide.php +++ b/src/Models/SchemaOrg/Guide.php @@ -17,22 +17,59 @@ public static function getType() public static function fieldList() { $fields = [ + "category" => "category", "reviewAspect" => "reviewAspect", ]; 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 \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null + */ + protected $category; + /** * This Review or Rating is relevant to this part or facet of the itemReviewed. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\StructuredValue|string */ protected $reviewAspect; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null + */ + public function getCategory() + { + return $this->category; + } + + /** + * @param \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|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\CategoryCode", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "string", + "\OpenActive\Models\SchemaOrg\Thing", + "null", + ]; + + $category = self::checkTypes($category, $types); + + $this->category = $category; + } + + /** + * @return \OpenActive\Models\SchemaOrg\StructuredValue|string */ public function getReviewAspect() { @@ -40,13 +77,14 @@ public function getReviewAspect() } /** - * @param string $reviewAspect + * @param \OpenActive\Models\SchemaOrg\StructuredValue|string $reviewAspect * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setReviewAspect($reviewAspect) { $types = [ + "\OpenActive\Models\SchemaOrg\StructuredValue", "string", ]; diff --git a/src/Models/SchemaOrg/HealthInsurancePlan.php b/src/Models/SchemaOrg/HealthInsurancePlan.php index 80f8844e..1ab62b18 100644 --- a/src/Models/SchemaOrg/HealthInsurancePlan.php +++ b/src/Models/SchemaOrg/HealthInsurancePlan.php @@ -17,35 +17,35 @@ public static function getType() public static function fieldList() { $fields = [ - "includesHealthPlanFormulary" => "includesHealthPlanFormulary", "benefitsSummaryUrl" => "benefitsSummaryUrl", + "contactPoint" => "contactPoint", "healthPlanDrugOption" => "healthPlanDrugOption", "healthPlanDrugTier" => "healthPlanDrugTier", "healthPlanId" => "healthPlanId", - "contactPoint" => "contactPoint", - "usesHealthPlanIdStandard" => "usesHealthPlanIdStandard", - "includesHealthPlanNetwork" => "includesHealthPlanNetwork", "healthPlanMarketingUrl" => "healthPlanMarketingUrl", + "includesHealthPlanFormulary" => "includesHealthPlanFormulary", + "includesHealthPlanNetwork" => "includesHealthPlanNetwork", + "usesHealthPlanIdStandard" => "usesHealthPlanIdStandard", ]; return array_merge(parent::fieldList(), $fields); } /** - * Formularies covered by this plan. + * The URL that goes directly to the summary of benefits and coverage for the specific standard plan or plan variation. * * - * @var \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string + * @var string */ - protected $includesHealthPlanFormulary; + protected $benefitsSummaryUrl; /** - * The URL that goes directly to the summary of benefits and coverage for the specific standard plan or plan variation. + * A contact point for a person or organization. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $benefitsSummaryUrl; + protected $contactPoint; /** * TODO. @@ -72,20 +72,20 @@ public static function fieldList() { protected $healthPlanId; /** - * A contact point for a person or organization. + * The URL that goes directly to the plan brochure for the specific standard plan or plan variation. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var string */ - protected $contactPoint; + protected $healthPlanMarketingUrl; /** - * The standard for interpreting thePlan ID. The preferred is "HIOS". See the Centers for Medicare & Medicaid Services for more details. + * Formularies covered by this plan. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string */ - protected $usesHealthPlanIdStandard; + protected $includesHealthPlanFormulary; /** * Networks covered by this plan. @@ -96,60 +96,60 @@ public static function fieldList() { protected $includesHealthPlanNetwork; /** - * The URL that goes directly to the plan brochure for the specific standard plan or plan variation. + * The standard for interpreting the Plan ID. The preferred is "HIOS". See the Centers for Medicare & Medicaid Services for more details. * * * @var string */ - protected $healthPlanMarketingUrl; + protected $usesHealthPlanIdStandard; /** - * @return \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string + * @return string */ - public function getIncludesHealthPlanFormulary() + public function getBenefitsSummaryUrl() { - return $this->includesHealthPlanFormulary; + return $this->benefitsSummaryUrl; } /** - * @param \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string $includesHealthPlanFormulary + * @param string $benefitsSummaryUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludesHealthPlanFormulary($includesHealthPlanFormulary) + public function setBenefitsSummaryUrl($benefitsSummaryUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\HealthPlanFormulary", "string", ]; - $includesHealthPlanFormulary = self::checkTypes($includesHealthPlanFormulary, $types); + $benefitsSummaryUrl = self::checkTypes($benefitsSummaryUrl, $types); - $this->includesHealthPlanFormulary = $includesHealthPlanFormulary; + $this->benefitsSummaryUrl = $benefitsSummaryUrl; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getBenefitsSummaryUrl() + public function getContactPoint() { - return $this->benefitsSummaryUrl; + return $this->contactPoint; } /** - * @param string $benefitsSummaryUrl + * @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 setBenefitsSummaryUrl($benefitsSummaryUrl) + public function setContactPoint($contactPoint) { $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $benefitsSummaryUrl = self::checkTypes($benefitsSummaryUrl, $types); + $contactPoint = self::checkTypes($contactPoint, $types); - $this->benefitsSummaryUrl = $benefitsSummaryUrl; + $this->contactPoint = $contactPoint; } /** @@ -225,52 +225,52 @@ public function setHealthPlanId($healthPlanId) } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return string */ - public function getContactPoint() + public function getHealthPlanMarketingUrl() { - return $this->contactPoint; + return $this->healthPlanMarketingUrl; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint + * @param string $healthPlanMarketingUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoint($contactPoint) + public function setHealthPlanMarketingUrl($healthPlanMarketingUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $contactPoint = self::checkTypes($contactPoint, $types); + $healthPlanMarketingUrl = self::checkTypes($healthPlanMarketingUrl, $types); - $this->contactPoint = $contactPoint; + $this->healthPlanMarketingUrl = $healthPlanMarketingUrl; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string */ - public function getUsesHealthPlanIdStandard() + public function getIncludesHealthPlanFormulary() { - return $this->usesHealthPlanIdStandard; + return $this->includesHealthPlanFormulary; } /** - * @param string $usesHealthPlanIdStandard + * @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 setUsesHealthPlanIdStandard($usesHealthPlanIdStandard) + public function setIncludesHealthPlanFormulary($includesHealthPlanFormulary) { $types = [ + "\OpenActive\Models\SchemaOrg\HealthPlanFormulary", "string", ]; - $usesHealthPlanIdStandard = self::checkTypes($usesHealthPlanIdStandard, $types); + $includesHealthPlanFormulary = self::checkTypes($includesHealthPlanFormulary, $types); - $this->usesHealthPlanIdStandard = $usesHealthPlanIdStandard; + $this->includesHealthPlanFormulary = $includesHealthPlanFormulary; } /** @@ -301,25 +301,25 @@ public function setIncludesHealthPlanNetwork($includesHealthPlanNetwork) /** * @return string */ - public function getHealthPlanMarketingUrl() + public function getUsesHealthPlanIdStandard() { - return $this->healthPlanMarketingUrl; + return $this->usesHealthPlanIdStandard; } /** - * @param string $healthPlanMarketingUrl + * @param string $usesHealthPlanIdStandard * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanMarketingUrl($healthPlanMarketingUrl) + public function setUsesHealthPlanIdStandard($usesHealthPlanIdStandard) { $types = [ "string", ]; - $healthPlanMarketingUrl = self::checkTypes($healthPlanMarketingUrl, $types); + $usesHealthPlanIdStandard = self::checkTypes($usesHealthPlanIdStandard, $types); - $this->healthPlanMarketingUrl = $healthPlanMarketingUrl; + $this->usesHealthPlanIdStandard = $usesHealthPlanIdStandard; } } diff --git a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php index f1110c97..39a1c426 100644 --- a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php +++ b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php @@ -17,24 +17,16 @@ public static function getType() public static function fieldList() { $fields = [ - "healthPlanCoinsuranceRate" => "healthPlanCoinsuranceRate", "healthPlanCoinsuranceOption" => "healthPlanCoinsuranceOption", - "healthPlanPharmacyCategory" => "healthPlanPharmacyCategory", + "healthPlanCoinsuranceRate" => "healthPlanCoinsuranceRate", "healthPlanCopay" => "healthPlanCopay", "healthPlanCopayOption" => "healthPlanCopayOption", + "healthPlanPharmacyCategory" => "healthPlanPharmacyCategory", ]; return array_merge(parent::fieldList(), $fields); } - /** - * Whether The rate of coinsurance expressed as a number between 0.0 and 1.0. - * - * - * @var Number|null - */ - protected $healthPlanCoinsuranceRate; - /** * Whether the coinsurance applies before or after deductible, etc. TODO: Is this a closed set? * @@ -44,15 +36,15 @@ public static function fieldList() { protected $healthPlanCoinsuranceOption; /** - * The category or type of pharmacy associated with this cost sharing. + * The rate of coinsurance expressed as a number between 0.0 and 1.0. * * - * @var string + * @var Number|null */ - protected $healthPlanPharmacyCategory; + protected $healthPlanCoinsuranceRate; /** - * Whether The copay amount. + * The copay amount. * * * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string @@ -68,29 +60,12 @@ public static function fieldList() { protected $healthPlanCopayOption; /** - * @return Number|null - */ - public function getHealthPlanCoinsuranceRate() - { - return $this->healthPlanCoinsuranceRate; - } - - /** - * @param Number|null $healthPlanCoinsuranceRate - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The category or type of pharmacy associated with this cost sharing. + * + * + * @var string */ - public function setHealthPlanCoinsuranceRate($healthPlanCoinsuranceRate) - { - $types = [ - "Number", - "null", - ]; - - $healthPlanCoinsuranceRate = self::checkTypes($healthPlanCoinsuranceRate, $types); - - $this->healthPlanCoinsuranceRate = $healthPlanCoinsuranceRate; - } + protected $healthPlanPharmacyCategory; /** * @return string @@ -117,27 +92,28 @@ public function setHealthPlanCoinsuranceOption($healthPlanCoinsuranceOption) } /** - * @return string + * @return Number|null */ - public function getHealthPlanPharmacyCategory() + public function getHealthPlanCoinsuranceRate() { - return $this->healthPlanPharmacyCategory; + return $this->healthPlanCoinsuranceRate; } /** - * @param string $healthPlanPharmacyCategory + * @param Number|null $healthPlanCoinsuranceRate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanPharmacyCategory($healthPlanPharmacyCategory) + public function setHealthPlanCoinsuranceRate($healthPlanCoinsuranceRate) { $types = [ - "string", + "Number", + "null", ]; - $healthPlanPharmacyCategory = self::checkTypes($healthPlanPharmacyCategory, $types); + $healthPlanCoinsuranceRate = self::checkTypes($healthPlanCoinsuranceRate, $types); - $this->healthPlanPharmacyCategory = $healthPlanPharmacyCategory; + $this->healthPlanCoinsuranceRate = $healthPlanCoinsuranceRate; } /** @@ -189,4 +165,28 @@ public function setHealthPlanCopayOption($healthPlanCopayOption) $this->healthPlanCopayOption = $healthPlanCopayOption; } + /** + * @return string + */ + public function getHealthPlanPharmacyCategory() + { + return $this->healthPlanPharmacyCategory; + } + + /** + * @param string $healthPlanPharmacyCategory + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHealthPlanPharmacyCategory($healthPlanPharmacyCategory) + { + $types = [ + "string", + ]; + + $healthPlanPharmacyCategory = self::checkTypes($healthPlanPharmacyCategory, $types); + + $this->healthPlanPharmacyCategory = $healthPlanPharmacyCategory; + } + } diff --git a/src/Models/SchemaOrg/HealthPlanFormulary.php b/src/Models/SchemaOrg/HealthPlanFormulary.php index 52a8bfb6..f9b8a809 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 + * @var bool|\OpenActive\Models\SchemaOrg\HealthPlanCostSharingSpecification|string|null */ - protected $offersPrescriptionByMail; + protected $healthPlanCostSharing; /** * The tier(s) of drugs offered by this formulary or insurance plan. @@ -42,36 +42,38 @@ 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 + * @return bool|\OpenActive\Models\SchemaOrg\HealthPlanCostSharingSpecification|string|null */ - public function getOffersPrescriptionByMail() + public function getHealthPlanCostSharing() { - return $this->offersPrescriptionByMail; + return $this->healthPlanCostSharing; } /** - * @param bool|null $offersPrescriptionByMail + * @param bool|\OpenActive\Models\SchemaOrg\HealthPlanCostSharingSpecification|string|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", + "\OpenActive\Models\SchemaOrg\HealthPlanCostSharingSpecification", + "string", "null", ]; - $offersPrescriptionByMail = self::checkTypes($offersPrescriptionByMail, $types); + $healthPlanCostSharing = self::checkTypes($healthPlanCostSharing, $types); - $this->offersPrescriptionByMail = $offersPrescriptionByMail; + $this->healthPlanCostSharing = $healthPlanCostSharing; } /** @@ -101,26 +103,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..7ea1e247 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|\OpenActive\Models\SchemaOrg\HealthPlanCostSharingSpecification|string|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,54 @@ public static function fieldList() { protected $healthPlanNetworkTier; /** - * @return string + * @return bool|\OpenActive\Models\SchemaOrg\HealthPlanCostSharingSpecification|string|null */ - public function getHealthPlanNetworkId() + public function getHealthPlanCostSharing() { - return $this->healthPlanNetworkId; + return $this->healthPlanCostSharing; } /** - * @param string $healthPlanNetworkId + * @param bool|\OpenActive\Models\SchemaOrg\HealthPlanCostSharingSpecification|string|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 = [ + "bool", + "\OpenActive\Models\SchemaOrg\HealthPlanCostSharingSpecification", "string", + "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..08bb6a0c 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 @@ -29,7 +29,7 @@ public static function fieldList() { * A medical service available from this provider. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var \OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|string */ protected $availableService; @@ -37,7 +37,7 @@ public static function fieldList() { * Indicates data describing a hospital, e.g. a CDC [[CDCPMDRecord]] or as some kind of [[Dataset]]. * * - * @var \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string + * @var \OpenActive\Models\SchemaOrg\CDCPMDRecord|\OpenActive\Models\SchemaOrg\Dataset|string */ protected $healthcareReportingData; @@ -50,7 +50,7 @@ public static function fieldList() { protected $medicalSpecialty; /** - * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return \OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|string */ public function getAvailableService() { @@ -58,15 +58,15 @@ public function getAvailableService() } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService + * @param \OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|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\MedicalProcedure", + "\OpenActive\Models\SchemaOrg\MedicalTest", "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; @@ -77,7 +77,7 @@ public function setAvailableService($availableService) } /** - * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string + * @return \OpenActive\Models\SchemaOrg\CDCPMDRecord|\OpenActive\Models\SchemaOrg\Dataset|string */ public function getHealthcareReportingData() { @@ -85,15 +85,15 @@ public function getHealthcareReportingData() } /** - * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string $healthcareReportingData + * @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 setHealthcareReportingData($healthcareReportingData) { $types = [ - "\OpenActive\Models\SchemaOrg\Dataset", "\OpenActive\Models\SchemaOrg\CDCPMDRecord", + "\OpenActive\Models\SchemaOrg\Dataset", "string", ]; diff --git a/src/Models/SchemaOrg/HotelRoom.php b/src/Models/SchemaOrg/HotelRoom.php index f44e621d..9e4cf618 100644 --- a/src/Models/SchemaOrg/HotelRoom.php +++ b/src/Models/SchemaOrg/HotelRoom.php @@ -29,13 +29,13 @@ public static function fieldList() { * 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\BedDetails|\OpenActive\Models\SchemaOrg\BedType|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 + * Typical unit code(s): C62 for person. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string @@ -43,7 +43,7 @@ public static function fieldList() { protected $occupancy; /** - * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType + * @return \OpenActive\Models\SchemaOrg\BedDetails|\OpenActive\Models\SchemaOrg\BedType|string */ public function getBed() { @@ -51,7 +51,7 @@ public function getBed() } /** - * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed + * @param \OpenActive\Models\SchemaOrg\BedDetails|\OpenActive\Models\SchemaOrg\BedType|string $bed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -59,8 +59,8 @@ public function setBed($bed) { $types = [ "\OpenActive\Models\SchemaOrg\BedDetails", - "string", "\OpenActive\Models\SchemaOrg\BedType", + "string", ]; $bed = self::checkTypes($bed, $types); diff --git a/src/Models/SchemaOrg/House.php b/src/Models/SchemaOrg/House.php index 85e08dad..93b5b52c 100644 --- a/src/Models/SchemaOrg/House.php +++ b/src/Models/SchemaOrg/House.php @@ -28,12 +28,12 @@ public static function fieldList() { * 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|Number|null + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ protected $numberOfRooms; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ public function getNumberOfRooms() { @@ -41,16 +41,16 @@ public function getNumberOfRooms() } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfRooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setNumberOfRooms($numberOfRooms) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", "null", ]; diff --git a/src/Models/SchemaOrg/HowTo.php b/src/Models/SchemaOrg/HowTo.php index 61090b30..7a0fe43e 100644 --- a/src/Models/SchemaOrg/HowTo.php +++ b/src/Models/SchemaOrg/HowTo.php @@ -17,169 +17,171 @@ public static function getType() public static function fieldList() { $fields = [ - "yield" => "yield", "estimatedCost" => "estimatedCost", - "supply" => "supply", - "step" => "step", - "totalTime" => "totalTime", - "tool" => "tool", + "performTime" => "performTime", "prepTime" => "prepTime", + "step" => "step", "steps" => "steps", - "performTime" => "performTime", + "supply" => "supply", + "tool" => "tool", + "totalTime" => "totalTime", + "yield" => "yield", ]; return array_merge(parent::fieldList(), $fields); } /** - * The quantity that results by performing instructions. For example, a paper airplane, 10 personalized candles. + * The estimated cost of the supply or supplies consumed when performing instructions. * * - * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $yield; + protected $estimatedCost; /** - * The estimated cost of the supply or supplies consumed when performing instructions. + * 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 string|\OpenActive\Models\SchemaOrg\MonetaryAmount + * @var DateInterval|string|null */ - protected $estimatedCost; + protected $performTime; /** - * 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 single step item (as HowToStep, text, document, video, etc.) or a HowToSection. * * - * @var \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection|\OpenActive\Models\SchemaOrg\HowToStep|string */ protected $step; /** - * 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). + * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred). * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList|string */ - protected $totalTime; + protected $steps; /** - * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction. + * A sub-property of instrument. A supply consumed when performing instructions or a direction. * * - * @var \OpenActive\Models\SchemaOrg\HowToTool|string + * @var \OpenActive\Models\SchemaOrg\HowToSupply|string */ - protected $tool; + protected $supply; /** - * 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. An object used (but not consumed) when performing instructions or a direction. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\HowToTool|string */ - protected $prepTime; + protected $tool; /** - * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred). + * 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\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @var DateInterval|string|null */ - protected $steps; + protected $totalTime; /** - * 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 \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getYield() + public function getEstimatedCost() { - return $this->yield; + return $this->estimatedCost; } /** - * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $yield + * @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 setYield($yield) + public function setEstimatedCost($estimatedCost) { $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $yield = self::checkTypes($yield, $types); + $estimatedCost = self::checkTypes($estimatedCost, $types); - $this->yield = $yield; + $this->estimatedCost = $estimatedCost; } /** - * @return string|\OpenActive\Models\SchemaOrg\MonetaryAmount + * @return DateInterval|string|null */ - public function getEstimatedCost() + public function getPerformTime() { - return $this->estimatedCost; + return $this->performTime; } /** - * @param string|\OpenActive\Models\SchemaOrg\MonetaryAmount $estimatedCost + * @param DateInterval|string|null $performTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEstimatedCost($estimatedCost) + public function setPerformTime($performTime) { $types = [ + "DateInterval", "string", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "null", ]; - $estimatedCost = self::checkTypes($estimatedCost, $types); + $performTime = self::checkTypes($performTime, $types); - $this->estimatedCost = $estimatedCost; + $this->performTime = $performTime; } /** - * @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 \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection|\OpenActive\Models\SchemaOrg\HowToStep|string */ public function getStep() { @@ -187,17 +189,17 @@ public function getStep() } /** - * @param \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork $step + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection|\OpenActive\Models\SchemaOrg\HowToStep|string $step * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setStep($step) { $types = [ - "\OpenActive\Models\SchemaOrg\HowToStep", + "\OpenActive\Models\SchemaOrg\CreativeWork", "\OpenActive\Models\SchemaOrg\HowToSection", + "\OpenActive\Models\SchemaOrg\HowToStep", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; $step = self::checkTypes($step, $types); @@ -206,132 +208,130 @@ public function setStep($step) } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList|string */ - public function getTotalTime() + public function getSteps() { - return $this->totalTime; + return $this->steps; } /** - * @param DateInterval|string|null $totalTime + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList|string $steps * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalTime($totalTime) + public function setSteps($steps) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\ItemList", "string", - "null", ]; - $totalTime = self::checkTypes($totalTime, $types); + $steps = self::checkTypes($steps, $types); - $this->totalTime = $totalTime; + $this->steps = $steps; } /** - * @return \OpenActive\Models\SchemaOrg\HowToTool|string + * @return \OpenActive\Models\SchemaOrg\HowToSupply|string */ - public function getTool() + public function getSupply() { - return $this->tool; + return $this->supply; } /** - * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool + * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTool($tool) + public function setSupply($supply) { $types = [ - "\OpenActive\Models\SchemaOrg\HowToTool", + "\OpenActive\Models\SchemaOrg\HowToSupply", "string", ]; - $tool = self::checkTypes($tool, $types); + $supply = self::checkTypes($supply, $types); - $this->tool = $tool; + $this->supply = $supply; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\HowToTool|string */ - public function getPrepTime() + public function getTool() { - return $this->prepTime; + return $this->tool; } /** - * @param DateInterval|string|null $prepTime + * @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 setPrepTime($prepTime) + public function setTool($tool) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\HowToTool", "string", - "null", ]; - $prepTime = self::checkTypes($prepTime, $types); + $tool = self::checkTypes($tool, $types); - $this->prepTime = $prepTime; + $this->tool = $tool; } /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @return DateInterval|string|null */ - public function getSteps() + public function getTotalTime() { - return $this->steps; + return $this->totalTime; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string $steps + * @param DateInterval|string|null $totalTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSteps($steps) + public function setTotalTime($totalTime) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "DateInterval", "string", + "null", ]; - $steps = self::checkTypes($steps, $types); + $totalTime = self::checkTypes($totalTime, $types); - $this->steps = $steps; + $this->totalTime = $totalTime; } /** - * @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..c4dcd75e 100644 --- a/src/Models/SchemaOrg/HowToDirection.php +++ b/src/Models/SchemaOrg/HowToDirection.php @@ -5,7 +5,7 @@ /** * */ -class HowToDirection extends \OpenActive\Models\SchemaOrg\ListItem +class HowToDirection extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -18,13 +18,13 @@ public static function getType() public static function fieldList() { $fields = [ "afterMedia" => "afterMedia", - "supply" => "supply", - "duringMedia" => "duringMedia", - "totalTime" => "totalTime", "beforeMedia" => "beforeMedia", - "tool" => "tool", - "prepTime" => "prepTime", + "duringMedia" => "duringMedia", "performTime" => "performTime", + "prepTime" => "prepTime", + "supply" => "supply", + "tool" => "tool", + "totalTime" => "totalTime", ]; return array_merge(parent::fieldList(), $fields); @@ -34,68 +34,68 @@ public static function fieldList() { * A media object representing the circumstances after performing this direction. * * - * @var string|\OpenActive\Models\SchemaOrg\MediaObject + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ protected $afterMedia; /** - * A sub-property of instrument. A supply consumed when performing instructions or a direction. + * A media object representing the circumstances before performing this direction. * * - * @var \OpenActive\Models\SchemaOrg\HowToSupply|string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $supply; + protected $beforeMedia; /** * A media object representing the circumstances while performing this direction. * * - * @var string|\OpenActive\Models\SchemaOrg\MediaObject + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ protected $duringMedia; /** - * 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 length of time it takes to perform instructions or a direction (not including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). * * * @var DateInterval|string|null */ - protected $totalTime; + protected $performTime; /** - * A media object representing the circumstances before performing this 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 string|\OpenActive\Models\SchemaOrg\MediaObject + * @var DateInterval|string|null */ - protected $beforeMedia; + protected $prepTime; /** - * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction. + * A sub-property of instrument. A supply consumed when performing instructions or a direction. * * - * @var \OpenActive\Models\SchemaOrg\HowToTool|string + * @var \OpenActive\Models\SchemaOrg\HowToSupply|string */ - protected $tool; + protected $supply; /** - * 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. An object used (but not consumed) when performing instructions or a direction. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\HowToTool|string */ - protected $prepTime; + protected $tool; /** - * 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 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 DateInterval|string|null */ - protected $performTime; + protected $totalTime; /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ public function getAfterMedia() { @@ -103,15 +103,15 @@ public function getAfterMedia() } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $afterMedia + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $afterMedia * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAfterMedia($afterMedia) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\MediaObject", + "string", ]; $afterMedia = self::checkTypes($afterMedia, $types); @@ -120,32 +120,32 @@ public function setAfterMedia($afterMedia) } /** - * @return \OpenActive\Models\SchemaOrg\HowToSupply|string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getSupply() + public function getBeforeMedia() { - return $this->supply; + return $this->beforeMedia; } /** - * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $beforeMedia * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupply($supply) + public function setBeforeMedia($beforeMedia) { $types = [ - "\OpenActive\Models\SchemaOrg\HowToSupply", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $supply = self::checkTypes($supply, $types); + $beforeMedia = self::checkTypes($beforeMedia, $types); - $this->supply = $supply; + $this->beforeMedia = $beforeMedia; } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ public function getDuringMedia() { @@ -153,15 +153,15 @@ public function getDuringMedia() } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $duringMedia + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $duringMedia * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setDuringMedia($duringMedia) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\MediaObject", + "string", ]; $duringMedia = self::checkTypes($duringMedia, $types); @@ -172,17 +172,17 @@ public function setDuringMedia($duringMedia) /** * @return DateInterval|string|null */ - public function getTotalTime() + public function getPerformTime() { - return $this->totalTime; + return $this->performTime; } /** - * @param DateInterval|string|null $totalTime + * @param DateInterval|string|null $performTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalTime($totalTime) + public function setPerformTime($performTime) { $types = [ "DateInterval", @@ -190,101 +190,101 @@ public function setTotalTime($totalTime) "null", ]; - $totalTime = self::checkTypes($totalTime, $types); + $performTime = self::checkTypes($performTime, $types); - $this->totalTime = $totalTime; + $this->performTime = $performTime; } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return DateInterval|string|null */ - public function getBeforeMedia() + public function getPrepTime() { - return $this->beforeMedia; + return $this->prepTime; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $beforeMedia + * @param DateInterval|string|null $prepTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBeforeMedia($beforeMedia) + public function setPrepTime($prepTime) { $types = [ + "DateInterval", "string", - "\OpenActive\Models\SchemaOrg\MediaObject", + "null", ]; - $beforeMedia = self::checkTypes($beforeMedia, $types); + $prepTime = self::checkTypes($prepTime, $types); - $this->beforeMedia = $beforeMedia; + $this->prepTime = $prepTime; } /** - * @return \OpenActive\Models\SchemaOrg\HowToTool|string + * @return \OpenActive\Models\SchemaOrg\HowToSupply|string */ - public function getTool() + public function getSupply() { - return $this->tool; + return $this->supply; } /** - * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool + * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTool($tool) + public function setSupply($supply) { $types = [ - "\OpenActive\Models\SchemaOrg\HowToTool", + "\OpenActive\Models\SchemaOrg\HowToSupply", "string", ]; - $tool = self::checkTypes($tool, $types); + $supply = self::checkTypes($supply, $types); - $this->tool = $tool; + $this->supply = $supply; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\HowToTool|string */ - public function getPrepTime() + public function getTool() { - return $this->prepTime; + return $this->tool; } /** - * @param DateInterval|string|null $prepTime + * @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 setPrepTime($prepTime) + public function setTool($tool) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\HowToTool", "string", - "null", ]; - $prepTime = self::checkTypes($prepTime, $types); + $tool = self::checkTypes($tool, $types); - $this->prepTime = $prepTime; + $this->tool = $tool; } /** * @return DateInterval|string|null */ - public function getPerformTime() + public function getTotalTime() { - return $this->performTime; + return $this->totalTime; } /** - * @param DateInterval|string|null $performTime + * @param DateInterval|string|null $totalTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPerformTime($performTime) + public function setTotalTime($totalTime) { $types = [ "DateInterval", @@ -292,9 +292,9 @@ public function setPerformTime($performTime) "null", ]; - $performTime = self::checkTypes($performTime, $types); + $totalTime = self::checkTypes($totalTime, $types); - $this->performTime = $performTime; + $this->totalTime = $totalTime; } } diff --git a/src/Models/SchemaOrg/HowToItem.php b/src/Models/SchemaOrg/HowToItem.php index 0792f4f3..6be85763 100644 --- a/src/Models/SchemaOrg/HowToItem.php +++ b/src/Models/SchemaOrg/HowToItem.php @@ -27,12 +27,12 @@ public static function fieldList() { * The required quantity of the item(s). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ protected $requiredQuantity; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ public function getRequiredQuantity() { @@ -40,16 +40,16 @@ public function getRequiredQuantity() } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $requiredQuantity + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $requiredQuantity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRequiredQuantity($requiredQuantity) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", "null", ]; diff --git a/src/Models/SchemaOrg/HowToSection.php b/src/Models/SchemaOrg/HowToSection.php index 7d46ac48..822f2237 100644 --- a/src/Models/SchemaOrg/HowToSection.php +++ b/src/Models/SchemaOrg/HowToSection.php @@ -5,7 +5,7 @@ /** * */ -class HowToSection extends \OpenActive\Models\SchemaOrg\ListItem +class HowToSection extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -27,12 +27,12 @@ public static function fieldList() { * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred). * * - * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList|string */ protected $steps; /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList|string */ public function getSteps() { @@ -40,15 +40,15 @@ public function getSteps() } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string $steps + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList|string $steps * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSteps($steps) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\ItemList", "string", ]; diff --git a/src/Models/SchemaOrg/HowToStep.php b/src/Models/SchemaOrg/HowToStep.php index f3a75a5f..be17f111 100644 --- a/src/Models/SchemaOrg/HowToStep.php +++ b/src/Models/SchemaOrg/HowToStep.php @@ -5,7 +5,7 @@ /** * */ -class HowToStep extends \OpenActive\Models\SchemaOrg\ListItem +class HowToStep extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/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/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", + "embeddedTextCaption" => "embeddedTextCaption", "exifData" => "exifData", + "representativeOfPage" => "representativeOfPage", ]; 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. - * - * - * @var bool|null - */ - protected $representativeOfPage; - /** * 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. + * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var string */ - protected $thumbnail; + protected $embeddedTextCaption; /** * exif data for this object. @@ -68,127 +51,110 @@ public static function fieldList() { 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. + * Indicates whether this image is representative of the content of the page. + * + * + * @var bool|null */ - public function setEmbeddedTextCaption($embeddedTextCaption) - { - $types = [ - "string", - ]; - - $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - - $this->embeddedTextCaption = $embeddedTextCaption; - } + protected $representativeOfPage; /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getRepresentativeOfPage() + public function getCaption() { - return $this->representativeOfPage; + return $this->caption; } /** - * @param bool|null $representativeOfPage + * @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 setRepresentativeOfPage($representativeOfPage) + public function setCaption($caption) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\MediaObject", + "string", ]; - $representativeOfPage = self::checkTypes($representativeOfPage, $types); + $caption = self::checkTypes($caption, $types); - $this->representativeOfPage = $representativeOfPage; + $this->caption = $caption; } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return string */ - public function getCaption() + public function getEmbeddedTextCaption() { - return $this->caption; + return $this->embeddedTextCaption; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption + * @param string $embeddedTextCaption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCaption($caption) + public function setEmbeddedTextCaption($embeddedTextCaption) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $caption = self::checkTypes($caption, $types); + $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - $this->caption = $caption; + $this->embeddedTextCaption = $embeddedTextCaption; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getThumbnail() + public function getExifData() { - return $this->thumbnail; + return $this->exifData; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $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", + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; - $thumbnail = self::checkTypes($thumbnail, $types); + $exifData = self::checkTypes($exifData, $types); - $this->thumbnail = $thumbnail; + $this->exifData = $exifData; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return bool|null */ - public function getExifData() + public function getRepresentativeOfPage() { - return $this->exifData; + return $this->representativeOfPage; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $exifData + * @param bool|null $representativeOfPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExifData($exifData) + public function setRepresentativeOfPage($representativeOfPage) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", - "string", + "bool", + "null", ]; - $exifData = self::checkTypes($exifData, $types); + $representativeOfPage = self::checkTypes($representativeOfPage, $types); - $this->exifData = $exifData; + $this->representativeOfPage = $representativeOfPage; } } 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..9bf5fc20 100644 --- a/src/Models/SchemaOrg/InfectiousDisease.php +++ b/src/Models/SchemaOrg/InfectiousDisease.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "infectiousAgentClass" => "infectiousAgentClass", "infectiousAgent" => "infectiousAgent", + "infectiousAgentClass" => "infectiousAgentClass", "transmissionMethod" => "transmissionMethod", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * The class of infectious agent (bacteria, prion, etc.) that causes the disease. + * The actual infectious agent, such as a specific bacterium. * * - * @var \OpenActive\Models\SchemaOrg\InfectiousAgentClass|string + * @var string */ - protected $infectiousAgentClass; + protected $infectiousAgent; /** - * The actual infectious agent, such as a specific bacterium. + * The class of infectious agent (bacteria, prion, etc.) that causes the disease. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\InfectiousAgentClass|string */ - protected $infectiousAgent; + protected $infectiousAgentClass; /** * How the disease spreads, either as a route or vector, for example 'direct contact', 'Aedes aegypti', etc. @@ -50,52 +50,52 @@ public static function fieldList() { protected $transmissionMethod; /** - * @return \OpenActive\Models\SchemaOrg\InfectiousAgentClass|string + * @return string */ - public function getInfectiousAgentClass() + public function getInfectiousAgent() { - return $this->infectiousAgentClass; + return $this->infectiousAgent; } /** - * @param \OpenActive\Models\SchemaOrg\InfectiousAgentClass|string $infectiousAgentClass + * @param string $infectiousAgent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInfectiousAgentClass($infectiousAgentClass) + public function setInfectiousAgent($infectiousAgent) { $types = [ - "\OpenActive\Models\SchemaOrg\InfectiousAgentClass", "string", ]; - $infectiousAgentClass = self::checkTypes($infectiousAgentClass, $types); + $infectiousAgent = self::checkTypes($infectiousAgent, $types); - $this->infectiousAgentClass = $infectiousAgentClass; + $this->infectiousAgent = $infectiousAgent; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\InfectiousAgentClass|string */ - public function getInfectiousAgent() + public function getInfectiousAgentClass() { - return $this->infectiousAgent; + return $this->infectiousAgentClass; } /** - * @param string $infectiousAgent + * @param \OpenActive\Models\SchemaOrg\InfectiousAgentClass|string $infectiousAgentClass * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInfectiousAgent($infectiousAgent) + public function setInfectiousAgentClass($infectiousAgentClass) { $types = [ + "\OpenActive\Models\SchemaOrg\InfectiousAgentClass", "string", ]; - $infectiousAgent = self::checkTypes($infectiousAgent, $types); + $infectiousAgentClass = self::checkTypes($infectiousAgentClass, $types); - $this->infectiousAgent = $infectiousAgent; + $this->infectiousAgentClass = $infectiousAgentClass; } /** diff --git a/src/Models/SchemaOrg/InstantaneousEvent.php b/src/Models/SchemaOrg/InstantaneousEvent.php new file mode 100644 index 00000000..cdae856d --- /dev/null +++ b/src/Models/SchemaOrg/InstantaneousEvent.php @@ -0,0 +1,127 @@ + "data", + "source" => "source", + "timestamp" => "timestamp", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * Data associated with the event, like for instance a log message. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|string + */ + protected $data; + + /** + * The source or cause of the event. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|string + */ + protected $source; + + /** + * The instant the event occured. + * + * + * @var DateTime|null + */ + protected $timestamp; + + /** + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getData() + { + return $this->data; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Thing|string $data + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setData($data) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Thing", + "string", + ]; + + $data = self::checkTypes($data, $types); + + $this->data = $data; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getSource() + { + return $this->source; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Thing|string $source + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setSource($source) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Thing", + "string", + ]; + + $source = self::checkTypes($source, $types); + + $this->source = $source; + } + + /** + * @return DateTime|null + */ + public function getTimestamp() + { + return $this->timestamp; + } + + /** + * @param DateTime|null $timestamp + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTimestamp($timestamp) + { + $types = [ + "DateTime", + "null", + ]; + + $timestamp = self::checkTypes($timestamp, $types); + + $this->timestamp = $timestamp; + } + +} diff --git a/src/Models/SchemaOrg/InteractionCounter.php b/src/Models/SchemaOrg/InteractionCounter.php index 09f2c22b..5e49c822 100644 --- a/src/Models/SchemaOrg/InteractionCounter.php +++ b/src/Models/SchemaOrg/InteractionCounter.php @@ -17,79 +17,79 @@ public static function getType() public static function fieldList() { $fields = [ + "endTime" => "endTime", + "interactionService" => "interactionService", + "interactionType" => "interactionType", + "location" => "location", "startTime" => "startTime", "userInteractionCount" => "userInteractionCount", - "location" => "location", - "interactionType" => "interactionType", - "interactionService" => "interactionService", - "endTime" => "endTime", ]; 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 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. + * The WebSite or SoftwareApplication where the interactions took place. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string */ - protected $userInteractionCount; + protected $interactionService; /** - * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. + * The Action representing the type of interaction. For up votes, +1s, etc. use [[LikeAction]]. For down votes use [[DislikeAction]]. Otherwise, use the most specific Action. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @var \OpenActive\Models\SchemaOrg\Action|string */ - protected $location; + protected $interactionType; /** - * The Action representing the type of interaction. For up votes, +1s, etc. use [[LikeAction]]. For down votes use [[DislikeAction]]. Otherwise, use the most specific Action. + * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. * * - * @var \OpenActive\Models\SchemaOrg\Action|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation */ - protected $interactionType; + protected $location; /** - * The WebSite or SoftwareApplication where the interactions took place. + * 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\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string + * @var DateTime|string|null */ - protected $interactionService; + protected $startTime; /** - * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. * * - * @var DateTime|string|null + * @var int|null */ - protected $endTime; + protected $userInteractionCount; /** * @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,138 +97,138 @@ public function setStartTime($startTime) "null", ]; - $startTime = self::checkTypes($startTime, $types); + $endTime = self::checkTypes($endTime, $types); - $this->startTime = $startTime; + $this->endTime = $endTime; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string */ - public function getUserInteractionCount() + public function getInteractionService() { - return $this->userInteractionCount; + return $this->interactionService; } /** - * @param int|null $userInteractionCount + * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string $interactionService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUserInteractionCount($userInteractionCount) + public function setInteractionService($interactionService) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\SoftwareApplication", + "\OpenActive\Models\SchemaOrg\WebSite", + "string", ]; - $userInteractionCount = self::checkTypes($userInteractionCount, $types); + $interactionService = self::checkTypes($interactionService, $types); - $this->userInteractionCount = $userInteractionCount; + $this->interactionService = $interactionService; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @return \OpenActive\Models\SchemaOrg\Action|string */ - public function getLocation() + public function getInteractionType() { - return $this->location; + return $this->interactionType; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @param \OpenActive\Models\SchemaOrg\Action|string $interactionType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLocation($location) + public function setInteractionType($interactionType) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Action", "string", - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $location = self::checkTypes($location, $types); + $interactionType = self::checkTypes($interactionType, $types); - $this->location = $location; + $this->interactionType = $interactionType; } /** - * @return \OpenActive\Models\SchemaOrg\Action|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation */ - public function getInteractionType() + public function getLocation() { - return $this->interactionType; + return $this->location; } /** - * @param \OpenActive\Models\SchemaOrg\Action|string $interactionType + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation $location * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionType($interactionType) + public function setLocation($location) { $types = [ - "\OpenActive\Models\SchemaOrg\Action", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", + "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $interactionType = self::checkTypes($interactionType, $types); + $location = self::checkTypes($location, $types); - $this->interactionType = $interactionType; + $this->location = $location; } /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string + * @return DateTime|string|null */ - public function getInteractionService() + public function getStartTime() { - return $this->interactionService; + return $this->startTime; } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string $interactionService + * @param DateTime|string|null $startTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionService($interactionService) + public function setStartTime($startTime) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", - "\OpenActive\Models\SchemaOrg\WebSite", - "string", + "DateTime", + "Time", + "null", ]; - $interactionService = self::checkTypes($interactionService, $types); + $startTime = self::checkTypes($startTime, $types); - $this->interactionService = $interactionService; + $this->startTime = $startTime; } /** - * @return DateTime|string|null + * @return int|null */ - public function getEndTime() + public function getUserInteractionCount() { - return $this->endTime; + return $this->userInteractionCount; } /** - * @param DateTime|string|null $endTime + * @param int|null $userInteractionCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndTime($endTime) + public function setUserInteractionCount($userInteractionCount) { $types = [ - "DateTime", - "Time", + "int", "null", ]; - $endTime = self::checkTypes($endTime, $types); + $userInteractionCount = self::checkTypes($userInteractionCount, $types); - $this->endTime = $endTime; + $this->userInteractionCount = $userInteractionCount; } } 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..7b2f4b4a 100644 --- a/src/Models/SchemaOrg/Invoice.php +++ b/src/Models/SchemaOrg/Invoice.php @@ -17,34 +17,34 @@ public static function getType() public static function fieldList() { $fields = [ - "totalPaymentDue" => "totalPaymentDue", - "billingPeriod" => "billingPeriod", - "referencesOrder" => "referencesOrder", "accountId" => "accountId", + "billingPeriod" => "billingPeriod", + "broker" => "broker", "category" => "category", - "scheduledPaymentDate" => "scheduledPaymentDate", "confirmationNumber" => "confirmationNumber", "customer" => "customer", - "provider" => "provider", "minimumPaymentDue" => "minimumPaymentDue", - "paymentDueDate" => "paymentDueDate", - "broker" => "broker", - "paymentStatus" => "paymentStatus", - "paymentMethodId" => "paymentMethodId", "paymentDue" => "paymentDue", + "paymentDueDate" => "paymentDueDate", "paymentMethod" => "paymentMethod", + "paymentMethodId" => "paymentMethodId", + "paymentStatus" => "paymentStatus", + "provider" => "provider", + "referencesOrder" => "referencesOrder", + "scheduledPaymentDate" => "scheduledPaymentDate", + "totalPaymentDue" => "totalPaymentDue", ]; return array_merge(parent::fieldList(), $fields); } /** - * The total amount due. + * The identifier for the account the payment will be applied to. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var string */ - protected $totalPaymentDue; + protected $accountId; /** * The time interval used to compute the invoice. @@ -55,37 +55,21 @@ public static function fieldList() { protected $billingPeriod; /** - * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice. - * - * - * @var \OpenActive\Models\SchemaOrg\Order|string - */ - protected $referencesOrder; - - /** - * 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. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ protected $category; - /** - * The date the invoice is scheduled to be paid. - * - * - * @var Date|null - */ - protected $scheduledPaymentDate; - /** * A number that confirms the given order or payment has been received. * @@ -103,20 +87,20 @@ public static function fieldList() { protected $customer; /** - * 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 minimum payment required at this time. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $provider; + protected $minimumPaymentDue; /** - * The minimum payment required at this time. + * The date that payment is due. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var DateTime|null */ - protected $minimumPaymentDue; + protected $paymentDue; /** * The date that payment is due. @@ -127,12 +111,20 @@ public static function fieldList() { protected $paymentDueDate; /** - * 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 name of the credit card or other method of payment for the order. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\PaymentMethod|string */ - protected $broker; + protected $paymentMethod; + + /** + * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). + * + * + * @var string + */ + protected $paymentMethodId; /** * The status of payment; whether the invoice has been paid or not. @@ -143,53 +135,59 @@ public static function fieldList() { protected $paymentStatus; /** - * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $paymentMethodId; + protected $provider; /** - * The date that payment is due. + * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Order|string */ - protected $paymentDue; + protected $referencesOrder; /** - * The name of the credit card or other method of payment for the order. + * The date the invoice is scheduled to be paid. * * - * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @var Date|null */ - protected $paymentMethod; + protected $scheduledPaymentDate; /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * The total amount due. + * + * + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getTotalPaymentDue() + protected $totalPaymentDue; + + /** + * @return string + */ + public function getAccountId() { - return $this->totalPaymentDue; + return $this->accountId; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $totalPaymentDue + * @param string $accountId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalPaymentDue($totalPaymentDue) + public function setAccountId($accountId) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $totalPaymentDue = self::checkTypes($totalPaymentDue, $types); + $accountId = self::checkTypes($accountId, $types); - $this->totalPaymentDue = $totalPaymentDue; + $this->accountId = $accountId; } /** @@ -219,56 +217,33 @@ public function setBillingPeriod($billingPeriod) } /** - * @return \OpenActive\Models\SchemaOrg\Order|string - */ - public function getReferencesOrder() - { - return $this->referencesOrder; - } - - /** - * @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 setReferencesOrder($referencesOrder) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Order", - "string", - ]; - - $referencesOrder = self::checkTypes($referencesOrder, $types); - - $this->referencesOrder = $referencesOrder; - } - - /** - * @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\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ public function getCategory() { @@ -276,17 +251,17 @@ public function getCategory() } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|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\Models\SchemaOrg\CategoryCode", "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "string", "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", "null", ]; @@ -295,31 +270,6 @@ public function setCategory($category) $this->category = $category; } - /** - * @return Date|null - */ - public function getScheduledPaymentDate() - { - return $this->scheduledPaymentDate; - } - - /** - * @param Date|null $scheduledPaymentDate - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setScheduledPaymentDate($scheduledPaymentDate) - { - $types = [ - "Date", - "null", - ]; - - $scheduledPaymentDate = self::checkTypes($scheduledPaymentDate, $types); - - $this->scheduledPaymentDate = $scheduledPaymentDate; - } - /** * @return string */ @@ -371,55 +321,54 @@ public function setCustomer($customer) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getProvider() + public function getMinimumPaymentDue() { - return $this->provider; + return $this->minimumPaymentDue; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @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 setProvider($provider) + public function setMinimumPaymentDue($minimumPaymentDue) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $provider = self::checkTypes($provider, $types); + $minimumPaymentDue = self::checkTypes($minimumPaymentDue, $types); - $this->provider = $provider; + $this->minimumPaymentDue = $minimumPaymentDue; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return DateTime|null */ - public function getMinimumPaymentDue() + public function getPaymentDue() { - return $this->minimumPaymentDue; + return $this->paymentDue; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $minimumPaymentDue + * @param DateTime|null $paymentDue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinimumPaymentDue($minimumPaymentDue) + public function setPaymentDue($paymentDue) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "\OpenActive\Models\SchemaOrg\PriceSpecification", - "string", + "DateTime", + "null", ]; - $minimumPaymentDue = self::checkTypes($minimumPaymentDue, $types); + $paymentDue = self::checkTypes($paymentDue, $types); - $this->minimumPaymentDue = $minimumPaymentDue; + $this->paymentDue = $paymentDue; } /** @@ -449,29 +398,52 @@ public function setPaymentDueDate($paymentDueDate) } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\PaymentMethod|string */ - public function getBroker() + public function getPaymentMethod() { - return $this->broker; + return $this->paymentMethod; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker + * @param \OpenActive\Models\SchemaOrg\PaymentMethod|string $paymentMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroker($broker) + public function setPaymentMethod($paymentMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\PaymentMethod", "string", ]; - $broker = self::checkTypes($broker, $types); + $paymentMethod = self::checkTypes($paymentMethod, $types); - $this->broker = $broker; + $this->paymentMethod = $paymentMethod; + } + + /** + * @return string + */ + public function getPaymentMethodId() + { + return $this->paymentMethodId; + } + + /** + * @param string $paymentMethodId + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPaymentMethodId($paymentMethodId) + { + $types = [ + "string", + ]; + + $paymentMethodId = self::checkTypes($paymentMethodId, $types); + + $this->paymentMethodId = $paymentMethodId; } /** @@ -500,77 +472,105 @@ public function setPaymentStatus($paymentStatus) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPaymentMethodId() + public function getProvider() { - return $this->paymentMethodId; + return $this->provider; } /** - * @param string $paymentMethodId + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentMethodId($paymentMethodId) + public function setProvider($provider) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $paymentMethodId = self::checkTypes($paymentMethodId, $types); + $provider = self::checkTypes($provider, $types); - $this->paymentMethodId = $paymentMethodId; + $this->provider = $provider; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Order|string */ - public function getPaymentDue() + public function getReferencesOrder() { - return $this->paymentDue; + return $this->referencesOrder; } /** - * @param DateTime|null $paymentDue + * @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 setPaymentDue($paymentDue) + public function setReferencesOrder($referencesOrder) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Order", + "string", ]; - $paymentDue = self::checkTypes($paymentDue, $types); + $referencesOrder = self::checkTypes($referencesOrder, $types); - $this->paymentDue = $paymentDue; + $this->referencesOrder = $referencesOrder; } /** - * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @return Date|null */ - public function getPaymentMethod() + public function getScheduledPaymentDate() { - return $this->paymentMethod; + return $this->scheduledPaymentDate; } /** - * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod + * @param Date|null $scheduledPaymentDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentMethod($paymentMethod) + public function setScheduledPaymentDate($scheduledPaymentDate) { $types = [ - "\OpenActive\Enums\SchemaOrg\PaymentMethod", + "Date", "null", ]; - $paymentMethod = self::checkTypes($paymentMethod, $types); + $scheduledPaymentDate = self::checkTypes($scheduledPaymentDate, $types); - $this->paymentMethod = $paymentMethod; + $this->scheduledPaymentDate = $scheduledPaymentDate; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + */ + public function getTotalPaymentDue() + { + return $this->totalPaymentDue; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $totalPaymentDue + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTotalPaymentDue($totalPaymentDue) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", + ]; + + $totalPaymentDue = self::checkTypes($totalPaymentDue, $types); + + $this->totalPaymentDue = $totalPaymentDue; } } diff --git a/src/Models/SchemaOrg/ItemList.php b/src/Models/SchemaOrg/ItemList.php index 358f73ce..338be39b 100644 --- a/src/Models/SchemaOrg/ItemList.php +++ b/src/Models/SchemaOrg/ItemList.php @@ -17,27 +17,28 @@ public static function getType() public static function fieldList() { $fields = [ - "numberOfItems" => "numberOfItems", + "aggregateElement" => "aggregateElement", "itemListElement" => "itemListElement", "itemListOrder" => "itemListOrder", + "numberOfItems" => "numberOfItems", ]; return array_merge(parent::fieldList(), $fields); } /** - * The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list. + * Indicates a prototype of the elements in the list that is used to hold aggregate information (ratings, offers, etc.). * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $numberOfItems; + protected $aggregateElement; /** * 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|string|\OpenActive\Models\SchemaOrg\Thing */ protected $itemListElement; @@ -45,37 +46,45 @@ 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; /** - * @return int|null + * The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list. + * + * + * @var int|null */ - public function getNumberOfItems() + protected $numberOfItems; + + /** + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getAggregateElement() { - return $this->numberOfItems; + return $this->aggregateElement; } /** - * @param int|null $numberOfItems + * @param \OpenActive\Models\SchemaOrg\Thing|string $aggregateElement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfItems($numberOfItems) + public function setAggregateElement($aggregateElement) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Thing", + "string", ]; - $numberOfItems = self::checkTypes($numberOfItems, $types); + $aggregateElement = self::checkTypes($aggregateElement, $types); - $this->numberOfItems = $numberOfItems; + $this->aggregateElement = $aggregateElement; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string + * @return \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\Thing */ public function getItemListElement() { @@ -83,16 +92,16 @@ public function getItemListElement() } /** - * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string $itemListElement + * @param \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\Thing $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", "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; $itemListElement = self::checkTypes($itemListElement, $types); @@ -101,7 +110,7 @@ public function setItemListElement($itemListElement) } /** - * @return string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null + * @return \OpenActive\Enums\SchemaOrg\ItemListOrderType|string|null */ public function getItemListOrder() { @@ -109,15 +118,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", ]; @@ -126,4 +135,29 @@ public function setItemListOrder($itemListOrder) $this->itemListOrder = $itemListOrder; } + /** + * @return int|null + */ + public function getNumberOfItems() + { + return $this->numberOfItems; + } + + /** + * @param int|null $numberOfItems + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setNumberOfItems($numberOfItems) + { + $types = [ + "int", + "null", + ]; + + $numberOfItems = self::checkTypes($numberOfItems, $types); + + $this->numberOfItems = $numberOfItems; + } + } diff --git a/src/Models/SchemaOrg/JobPosting.php b/src/Models/SchemaOrg/JobPosting.php index ae041535..62abd8a8 100644 --- a/src/Models/SchemaOrg/JobPosting.php +++ b/src/Models/SchemaOrg/JobPosting.php @@ -18,42 +18,43 @@ public static function getType() public static function fieldList() { $fields = [ "title" => "title", + "applicantLocationRequirements" => "applicantLocationRequirements", + "applicationContact" => "applicationContact", + "baseSalary" => "baseSalary", + "benefits" => "benefits", + "datePosted" => "datePosted", + "directApply" => "directApply", + "educationRequirements" => "educationRequirements", + "eligibilityToWorkRequirement" => "eligibilityToWorkRequirement", "employerOverview" => "employerOverview", + "employmentType" => "employmentType", + "employmentUnit" => "employmentUnit", "estimatedSalary" => "estimatedSalary", - "jobLocationType" => "jobLocationType", - "responsibilities" => "responsibilities", - "jobLocation" => "jobLocation", - "physicalRequirement" => "physicalRequirement", + "experienceInPlaceOfEducation" => "experienceInPlaceOfEducation", + "experienceRequirements" => "experienceRequirements", + "hiringOrganization" => "hiringOrganization", + "incentiveCompensation" => "incentiveCompensation", "incentives" => "incentives", - "directApply" => "directApply", - "sensoryRequirement" => "sensoryRequirement", - "applicantLocationRequirements" => "applicantLocationRequirements", - "workHours" => "workHours", + "industry" => "industry", + "jobBenefits" => "jobBenefits", + "jobDuration" => "jobDuration", + "jobImmediateStart" => "jobImmediateStart", + "jobLocation" => "jobLocation", + "jobLocationType" => "jobLocationType", "jobStartDate" => "jobStartDate", - "employmentType" => "employmentType", - "specialCommitments" => "specialCommitments", - "applicationContact" => "applicationContact", - "incentiveCompensation" => "incentiveCompensation", + "occupationalCategory" => "occupationalCategory", + "physicalRequirement" => "physicalRequirement", + "qualifications" => "qualifications", "relevantOccupation" => "relevantOccupation", - "totalJobOpenings" => "totalJobOpenings", - "experienceRequirements" => "experienceRequirements", - "jobBenefits" => "jobBenefits", + "responsibilities" => "responsibilities", "salaryCurrency" => "salaryCurrency", - "experienceInPlaceOfEducation" => "experienceInPlaceOfEducation", "securityClearanceRequirement" => "securityClearanceRequirement", - "eligibilityToWorkRequirement" => "eligibilityToWorkRequirement", - "educationRequirements" => "educationRequirements", - "benefits" => "benefits", - "industry" => "industry", - "baseSalary" => "baseSalary", - "datePosted" => "datePosted", + "sensoryRequirement" => "sensoryRequirement", "skills" => "skills", - "hiringOrganization" => "hiringOrganization", - "jobImmediateStart" => "jobImmediateStart", + "specialCommitments" => "specialCommitments", + "totalJobOpenings" => "totalJobOpenings", "validThrough" => "validThrough", - "employmentUnit" => "employmentUnit", - "qualifications" => "qualifications", - "occupationalCategory" => "occupationalCategory", + "workHours" => "workHours", ]; return array_merge(parent::fieldList(), $fields); @@ -68,124 +69,124 @@ public static function fieldList() { protected $title; /** - * A description of the employer, career opportunities and work environment for this position. + * 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 $employerOverview; + protected $applicantLocationRequirements; /** - * 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. + * Contact details for further information relevant to this job posting. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $estimatedSalary; + protected $applicationContact; /** - * A description of the job location (e.g TELECOMMUTE for telecommute jobs). + * The base salary of the job or of an employee in an EmployeeRole. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - protected $jobLocationType; + protected $baseSalary; /** - * Responsibilities associated with this role or Occupation. + * Description of benefits associated with the job. * * * @var string */ - protected $responsibilities; + protected $benefits; /** - * A (typically single) geographic location associated with the job position. + * Publication date of an online listing. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var Date|DateTime|null */ - protected $jobLocation; + protected $datePosted; /** - * A description of the types of physical activity associated with the job. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term. + * 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|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var bool|null */ - protected $physicalRequirement; + protected $directApply; /** - * Description of bonus and commission compensation aspects of the job. + * Educational background needed for the position or Occupation. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - protected $incentives; + protected $educationRequirements; /** - * 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. + * The legal requirements such as citizenship, visa and other documentation required for an applicant to this job. * * - * @var bool|null + * @var string */ - protected $directApply; + protected $eligibilityToWorkRequirement; /** - * A description of any sensory requirements and levels necessary to function on the job, including hearing and vision. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term. + * A description of the employer, career opportunities and work environment for this position. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string */ - protected $sensoryRequirement; + protected $employerOverview; /** - * 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. + * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship). * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @var string */ - protected $applicantLocationRequirements; + protected $employmentType; /** - * The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm). + * Indicates the department, unit and/or facility where the employee reports and/or in which the job is to be performed. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $workHours; + protected $employmentUnit; /** - * 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. + * 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 Date|string|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null */ - protected $jobStartDate; + protected $estimatedSalary; /** - * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship). + * 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 string + * @var bool|null */ - protected $employmentType; + protected $experienceInPlaceOfEducation; /** - * Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc. + * Description of skills and experience needed for the position or Occupation. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements|string */ - protected $specialCommitments; + protected $experienceRequirements; /** - * Contact details for further information relevant to this job posting. + * Organization or Person offering the job position. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $applicationContact; + protected $hiringOrganization; /** * Description of bonus and commission compensation aspects of the job. @@ -196,28 +197,20 @@ public static function fieldList() { protected $incentiveCompensation; /** - * The Occupation for the JobPosting. - * - * - * @var \OpenActive\Models\SchemaOrg\Occupation|string - */ - protected $relevantOccupation; - - /** - * The number of positions open for this job posting. Use a positive integer. Do not use if the number of positions is unclear or not known. + * Description of bonus and commission compensation aspects of the job. * * - * @var int|null + * @var string */ - protected $totalJobOpenings; + protected $incentives; /** - * Description of skills and experience needed for the position or Occupation. + * The industry associated with the job position. * * - * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $experienceRequirements; + protected $industry; /** * Description of benefits associated with the job. @@ -228,133 +221,149 @@ public static function fieldList() { protected $jobBenefits; /** - * 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 expected duration of an employment offer as advertised by the employer. Relevant for job postings that have a clearly defined period in mind such as seasonal work, substitutes for maternal leave or any other temporary employment. * * - * @var string + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $salaryCurrency; + protected $jobDuration; /** - * 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. + * An indicator as to whether a position is available for an immediate start. * * * @var bool|null */ - protected $experienceInPlaceOfEducation; + protected $jobImmediateStart; /** - * A description of any security clearance requirements of the job. + * A (typically single) geographic location associated with the job position. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $securityClearanceRequirement; + protected $jobLocation; /** - * The legal requirements such as citizenship, visa and other documentation required for an applicant to this job. + * A description of the job location (e.g. TELECOMMUTE for telecommute jobs). * * * @var string */ - protected $eligibilityToWorkRequirement; + protected $jobLocationType; /** - * Educational background needed for the position or 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 \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var Date|string|null */ - protected $educationRequirements; + protected $jobStartDate; /** - * Description of benefits associated with the 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 $benefits; + protected $occupationalCategory; /** - * The industry associated with the job position. + * 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\DefinedTerm|string */ - protected $industry; + protected $physicalRequirement; /** - * The base salary of the job or of an employee in an EmployeeRole. + * Specific qualifications required for this role or Occupation. * * - * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var \OpenActive\Models\SchemaOrg\Credential|string */ - protected $baseSalary; + protected $qualifications; /** - * Publication date of an online listing. + * The Occupation for the JobPosting. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Occupation|string */ - protected $datePosted; + protected $relevantOccupation; /** - * 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; /** - * Organization offering the job position. + * 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 \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $hiringOrganization; + protected $salaryCurrency; /** - * An indicator as to whether a position is available for an immediate start. + * A description of any security clearance requirements of the job. * * - * @var bool|null + * @var string */ - protected $jobImmediateStart; + protected $securityClearanceRequirement; /** - * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. + * 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 Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $validThrough; + protected $sensoryRequirement; /** - * Indicates the department, unit and/or facility where the employee reports and/or in which the job is to be performed. + * 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\Organization|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $employmentUnit; + protected $skills; /** - * 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 number of positions open for this job posting. Use a positive integer. Do not use if the number of positions is unclear or not known. * * - * @var \OpenActive\Models\SchemaOrg\CategoryCode|string + * @var int|null */ - protected $occupationalCategory; + protected $totalJobOpenings; + + /** + * 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 typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm). + * + * + * @var string + */ + protected $workHours; /** * @return string @@ -380,728 +389,808 @@ public function setTitle($title) $this->title = $title; } + /** + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + */ + public function getApplicantLocationRequirements() + { + return $this->applicantLocationRequirements; + } + + /** + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicantLocationRequirements + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setApplicantLocationRequirements($applicantLocationRequirements) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "string", + ]; + + $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types); + + $this->applicantLocationRequirements = $applicantLocationRequirements; + } + + /** + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + */ + public function getApplicationContact() + { + return $this->applicationContact; + } + + /** + * @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 setApplicationContact($applicationContact) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", + "string", + ]; + + $applicationContact = self::checkTypes($applicationContact, $types); + + $this->applicationContact = $applicationContact; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null + */ + public function getBaseSalary() + { + return $this->baseSalary; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null $baseSalary + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setBaseSalary($baseSalary) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "Number", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", + "null", + ]; + + $baseSalary = self::checkTypes($baseSalary, $types); + + $this->baseSalary = $baseSalary; + } + /** * @return string */ - public function getEmployerOverview() + public function getBenefits() { - return $this->employerOverview; + return $this->benefits; } /** - * @param string $employerOverview + * @param string $benefits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmployerOverview($employerOverview) + public function setBenefits($benefits) { $types = [ "string", ]; - $employerOverview = self::checkTypes($employerOverview, $types); + $benefits = self::checkTypes($benefits, $types); - $this->employerOverview = $employerOverview; + $this->benefits = $benefits; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @return Date|DateTime|null */ - public function getEstimatedSalary() + public function getDatePosted() { - return $this->estimatedSalary; + return $this->datePosted; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary + * @param Date|DateTime|null $datePosted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEstimatedSalary($estimatedSalary) + public function setDatePosted($datePosted) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", - "Number", + "Date", + "DateTime", "null", ]; - $estimatedSalary = self::checkTypes($estimatedSalary, $types); + $datePosted = self::checkTypes($datePosted, $types); - $this->estimatedSalary = $estimatedSalary; + $this->datePosted = $datePosted; } /** - * @return string + * @return bool|null */ - public function getJobLocationType() + public function getDirectApply() { - return $this->jobLocationType; + return $this->directApply; } /** - * @param string $jobLocationType + * @param bool|null $directApply * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobLocationType($jobLocationType) + public function setDirectApply($directApply) { $types = [ - "string", + "bool", + "null", ]; - $jobLocationType = self::checkTypes($jobLocationType, $types); + $directApply = self::checkTypes($directApply, $types); - $this->jobLocationType = $jobLocationType; + $this->directApply = $directApply; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - public function getResponsibilities() + public function getEducationRequirements() { - return $this->responsibilities; + return $this->educationRequirements; } /** - * @param string $responsibilities + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setResponsibilities($responsibilities) + public function setEducationRequirements($educationRequirements) { $types = [ + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", ]; - $responsibilities = self::checkTypes($responsibilities, $types); + $educationRequirements = self::checkTypes($educationRequirements, $types); - $this->responsibilities = $responsibilities; + $this->educationRequirements = $educationRequirements; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getJobLocation() + public function getEligibilityToWorkRequirement() { - return $this->jobLocation; + return $this->eligibilityToWorkRequirement; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $jobLocation + * @param string $eligibilityToWorkRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobLocation($jobLocation) + public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $jobLocation = self::checkTypes($jobLocation, $types); + $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types); - $this->jobLocation = $jobLocation; + $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return string */ - public function getPhysicalRequirement() + public function getEmployerOverview() { - return $this->physicalRequirement; + return $this->employerOverview; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $physicalRequirement + * @param string $employerOverview * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPhysicalRequirement($physicalRequirement) + public function setEmployerOverview($employerOverview) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $physicalRequirement = self::checkTypes($physicalRequirement, $types); + $employerOverview = self::checkTypes($employerOverview, $types); - $this->physicalRequirement = $physicalRequirement; + $this->employerOverview = $employerOverview; } /** * @return string */ - public function getIncentives() + public function getEmploymentType() { - return $this->incentives; + return $this->employmentType; } /** - * @param string $incentives + * @param string $employmentType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncentives($incentives) + public function setEmploymentType($employmentType) { $types = [ "string", ]; - $incentives = self::checkTypes($incentives, $types); + $employmentType = self::checkTypes($employmentType, $types); - $this->incentives = $incentives; + $this->employmentType = $employmentType; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getDirectApply() + public function getEmploymentUnit() { - return $this->directApply; + return $this->employmentUnit; } /** - * @param bool|null $directApply + * @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 setDirectApply($directApply) + public function setEmploymentUnit($employmentUnit) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $directApply = self::checkTypes($directApply, $types); + $employmentUnit = self::checkTypes($employmentUnit, $types); - $this->directApply = $directApply; + $this->employmentUnit = $employmentUnit; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null */ - public function getSensoryRequirement() + public function getEstimatedSalary() { - return $this->sensoryRequirement; + return $this->estimatedSalary; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $sensoryRequirement + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null $estimatedSalary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSensoryRequirement($sensoryRequirement) + public function setEstimatedSalary($estimatedSalary) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", "string", + "Number", + "null", ]; - $sensoryRequirement = self::checkTypes($sensoryRequirement, $types); + $estimatedSalary = self::checkTypes($estimatedSalary, $types); - $this->sensoryRequirement = $sensoryRequirement; + $this->estimatedSalary = $estimatedSalary; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @return bool|null */ - public function getApplicantLocationRequirements() + public function getExperienceInPlaceOfEducation() { - return $this->applicantLocationRequirements; + return $this->experienceInPlaceOfEducation; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicantLocationRequirements + * @param bool|null $experienceInPlaceOfEducation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicantLocationRequirements($applicantLocationRequirements) + public function setExperienceInPlaceOfEducation($experienceInPlaceOfEducation) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "string", + "bool", + "null", ]; - $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types); + $experienceInPlaceOfEducation = self::checkTypes($experienceInPlaceOfEducation, $types); - $this->applicantLocationRequirements = $applicantLocationRequirements; + $this->experienceInPlaceOfEducation = $experienceInPlaceOfEducation; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements|string */ - public function getWorkHours() + public function getExperienceRequirements() { - return $this->workHours; + return $this->experienceRequirements; } /** - * @param string $workHours + * @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 setWorkHours($workHours) + public function setExperienceRequirements($experienceRequirements) { $types = [ + "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements", "string", ]; - $workHours = self::checkTypes($workHours, $types); + $experienceRequirements = self::checkTypes($experienceRequirements, $types); - $this->workHours = $workHours; + $this->experienceRequirements = $experienceRequirements; } /** - * @return Date|string|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getJobStartDate() + public function getHiringOrganization() { - return $this->jobStartDate; + return $this->hiringOrganization; } /** - * @param Date|string|null $jobStartDate + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $hiringOrganization * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobStartDate($jobStartDate) + public function setHiringOrganization($hiringOrganization) { $types = [ - "Date", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $jobStartDate = self::checkTypes($jobStartDate, $types); + $hiringOrganization = self::checkTypes($hiringOrganization, $types); - $this->jobStartDate = $jobStartDate; + $this->hiringOrganization = $hiringOrganization; } /** * @return string */ - public function getEmploymentType() + public function getIncentiveCompensation() { - return $this->employmentType; + return $this->incentiveCompensation; } /** - * @param string $employmentType + * @param string $incentiveCompensation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmploymentType($employmentType) + public function setIncentiveCompensation($incentiveCompensation) { $types = [ "string", ]; - $employmentType = self::checkTypes($employmentType, $types); + $incentiveCompensation = self::checkTypes($incentiveCompensation, $types); - $this->employmentType = $employmentType; + $this->incentiveCompensation = $incentiveCompensation; } /** * @return string */ - public function getSpecialCommitments() + public function getIncentives() { - return $this->specialCommitments; + return $this->incentives; } /** - * @param string $specialCommitments + * @param string $incentives * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpecialCommitments($specialCommitments) + public function setIncentives($incentives) { $types = [ "string", ]; - $specialCommitments = self::checkTypes($specialCommitments, $types); + $incentives = self::checkTypes($incentives, $types); - $this->specialCommitments = $specialCommitments; + $this->incentives = $incentives; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getApplicationContact() + public function getIndustry() { - return $this->applicationContact; + return $this->industry; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $applicationContact + * @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 setApplicationContact($applicationContact) + public function setIndustry($industry) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $applicationContact = self::checkTypes($applicationContact, $types); + $industry = self::checkTypes($industry, $types); - $this->applicationContact = $applicationContact; + $this->industry = $industry; } /** * @return string */ - public function getIncentiveCompensation() + public function getJobBenefits() { - return $this->incentiveCompensation; + return $this->jobBenefits; } /** - * @param string $incentiveCompensation + * @param string $jobBenefits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncentiveCompensation($incentiveCompensation) + public function setJobBenefits($jobBenefits) { $types = [ "string", ]; - $incentiveCompensation = self::checkTypes($incentiveCompensation, $types); + $jobBenefits = self::checkTypes($jobBenefits, $types); - $this->incentiveCompensation = $incentiveCompensation; + $this->jobBenefits = $jobBenefits; } /** - * @return \OpenActive\Models\SchemaOrg\Occupation|string + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getRelevantOccupation() + public function getJobDuration() { - return $this->relevantOccupation; + return $this->jobDuration; } /** - * @param \OpenActive\Models\SchemaOrg\Occupation|string $relevantOccupation + * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $jobDuration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelevantOccupation($relevantOccupation) + public function setJobDuration($jobDuration) { $types = [ - "\OpenActive\Models\SchemaOrg\Occupation", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $relevantOccupation = self::checkTypes($relevantOccupation, $types); + $jobDuration = self::checkTypes($jobDuration, $types); - $this->relevantOccupation = $relevantOccupation; + $this->jobDuration = $jobDuration; } /** - * @return int|null + * @return bool|null */ - public function getTotalJobOpenings() + public function getJobImmediateStart() { - return $this->totalJobOpenings; + return $this->jobImmediateStart; } /** - * @param int|null $totalJobOpenings + * @param bool|null $jobImmediateStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalJobOpenings($totalJobOpenings) + public function setJobImmediateStart($jobImmediateStart) { $types = [ - "int", + "bool", "null", ]; - $totalJobOpenings = self::checkTypes($totalJobOpenings, $types); + $jobImmediateStart = self::checkTypes($jobImmediateStart, $types); - $this->totalJobOpenings = $totalJobOpenings; + $this->jobImmediateStart = $jobImmediateStart; } /** - * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getExperienceRequirements() + public function getJobLocation() { - return $this->experienceRequirements; + return $this->jobLocation; } /** - * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements + * @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 setExperienceRequirements($experienceRequirements) + public function setJobLocation($jobLocation) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", - "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements", ]; - $experienceRequirements = self::checkTypes($experienceRequirements, $types); + $jobLocation = self::checkTypes($jobLocation, $types); - $this->experienceRequirements = $experienceRequirements; + $this->jobLocation = $jobLocation; } /** * @return string */ - public function getJobBenefits() + public function getJobLocationType() { - return $this->jobBenefits; + return $this->jobLocationType; } /** - * @param string $jobBenefits + * @param string $jobLocationType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobBenefits($jobBenefits) + public function setJobLocationType($jobLocationType) { $types = [ "string", ]; - $jobBenefits = self::checkTypes($jobBenefits, $types); + $jobLocationType = self::checkTypes($jobLocationType, $types); - $this->jobBenefits = $jobBenefits; + $this->jobLocationType = $jobLocationType; } /** - * @return string + * @return Date|string|null */ - public function getSalaryCurrency() + public function getJobStartDate() { - return $this->salaryCurrency; + return $this->jobStartDate; } /** - * @param string $salaryCurrency + * @param Date|string|null $jobStartDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSalaryCurrency($salaryCurrency) + public function setJobStartDate($jobStartDate) { $types = [ + "Date", "string", + "null", ]; - $salaryCurrency = self::checkTypes($salaryCurrency, $types); + $jobStartDate = self::checkTypes($jobStartDate, $types); - $this->salaryCurrency = $salaryCurrency; + $this->jobStartDate = $jobStartDate; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\CategoryCode|string */ - public function getExperienceInPlaceOfEducation() + public function getOccupationalCategory() { - return $this->experienceInPlaceOfEducation; + return $this->occupationalCategory; } /** - * @param bool|null $experienceInPlaceOfEducation + * @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 setExperienceInPlaceOfEducation($experienceInPlaceOfEducation) + public function setOccupationalCategory($occupationalCategory) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "string", ]; - $experienceInPlaceOfEducation = self::checkTypes($experienceInPlaceOfEducation, $types); + $occupationalCategory = self::checkTypes($occupationalCategory, $types); - $this->experienceInPlaceOfEducation = $experienceInPlaceOfEducation; + $this->occupationalCategory = $occupationalCategory; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getSecurityClearanceRequirement() + public function getPhysicalRequirement() { - return $this->securityClearanceRequirement; + return $this->physicalRequirement; } /** - * @param string $securityClearanceRequirement + * @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 setSecurityClearanceRequirement($securityClearanceRequirement) + public function setPhysicalRequirement($physicalRequirement) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types); + $physicalRequirement = self::checkTypes($physicalRequirement, $types); - $this->securityClearanceRequirement = $securityClearanceRequirement; + $this->physicalRequirement = $physicalRequirement; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Credential|string */ - public function getEligibilityToWorkRequirement() + public function getQualifications() { - return $this->eligibilityToWorkRequirement; + return $this->qualifications; } /** - * @param string $eligibilityToWorkRequirement + * @param \OpenActive\Models\SchemaOrg\Credential|string $qualifications * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement) + public function setQualifications($qualifications) { $types = [ + "\OpenActive\Models\SchemaOrg\Credential", "string", ]; - $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types); + $qualifications = self::checkTypes($qualifications, $types); - $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement; + $this->qualifications = $qualifications; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return \OpenActive\Models\SchemaOrg\Occupation|string */ - public function getEducationRequirements() + public function getRelevantOccupation() { - return $this->educationRequirements; + return $this->relevantOccupation; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements + * @param \OpenActive\Models\SchemaOrg\Occupation|string $relevantOccupation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationRequirements($educationRequirements) + public function setRelevantOccupation($relevantOccupation) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "\OpenActive\Models\SchemaOrg\Occupation", "string", ]; - $educationRequirements = self::checkTypes($educationRequirements, $types); + $relevantOccupation = self::checkTypes($relevantOccupation, $types); - $this->educationRequirements = $educationRequirements; + $this->relevantOccupation = $relevantOccupation; } /** * @return string */ - public function getBenefits() + public function getResponsibilities() { - return $this->benefits; + return $this->responsibilities; } /** - * @param string $benefits + * @param string $responsibilities * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBenefits($benefits) + public function setResponsibilities($responsibilities) { $types = [ "string", ]; - $benefits = self::checkTypes($benefits, $types); + $responsibilities = self::checkTypes($responsibilities, $types); - $this->benefits = $benefits; + $this->responsibilities = $responsibilities; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string */ - public function getIndustry() + public function getSalaryCurrency() { - return $this->industry; + return $this->salaryCurrency; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $industry + * @param string $salaryCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIndustry($industry) + public function setSalaryCurrency($salaryCurrency) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $industry = self::checkTypes($industry, $types); + $salaryCurrency = self::checkTypes($salaryCurrency, $types); - $this->industry = $industry; + $this->salaryCurrency = $salaryCurrency; } /** - * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return string */ - public function getBaseSalary() + public function getSecurityClearanceRequirement() { - return $this->baseSalary; + return $this->securityClearanceRequirement; } /** - * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary + * @param string $securityClearanceRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBaseSalary($baseSalary) + public function setSecurityClearanceRequirement($securityClearanceRequirement) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\PriceSpecification", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", - "null", ]; - $baseSalary = self::checkTypes($baseSalary, $types); + $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types); - $this->baseSalary = $baseSalary; + $this->securityClearanceRequirement = $securityClearanceRequirement; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getDatePosted() + public function getSensoryRequirement() { - return $this->datePosted; + return $this->sensoryRequirement; } /** - * @param Date|DateTime|null $datePosted + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $sensoryRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePosted($datePosted) + public function setSensoryRequirement($sensoryRequirement) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $datePosted = self::checkTypes($datePosted, $types); + $sensoryRequirement = self::checkTypes($sensoryRequirement, $types); - $this->datePosted = $datePosted; + $this->sensoryRequirement = $sensoryRequirement; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ public function getSkills() { @@ -1109,15 +1198,15 @@ public function getSkills() } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $skills * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSkills($skills) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; $skills = self::checkTypes($skills, $types); @@ -1126,53 +1215,52 @@ public function setSkills($skills) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getHiringOrganization() + public function getSpecialCommitments() { - return $this->hiringOrganization; + return $this->specialCommitments; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $hiringOrganization + * @param string $specialCommitments * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHiringOrganization($hiringOrganization) + public function setSpecialCommitments($specialCommitments) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $hiringOrganization = self::checkTypes($hiringOrganization, $types); + $specialCommitments = self::checkTypes($specialCommitments, $types); - $this->hiringOrganization = $hiringOrganization; + $this->specialCommitments = $specialCommitments; } /** - * @return bool|null + * @return int|null */ - public function getJobImmediateStart() + public function getTotalJobOpenings() { - return $this->jobImmediateStart; + return $this->totalJobOpenings; } /** - * @param bool|null $jobImmediateStart + * @param int|null $totalJobOpenings * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobImmediateStart($jobImmediateStart) + public function setTotalJobOpenings($totalJobOpenings) { $types = [ - "bool", + "int", "null", ]; - $jobImmediateStart = self::checkTypes($jobImmediateStart, $types); + $totalJobOpenings = self::checkTypes($totalJobOpenings, $types); - $this->jobImmediateStart = $jobImmediateStart; + $this->totalJobOpenings = $totalJobOpenings; } /** @@ -1202,78 +1290,27 @@ public function setValidThrough($validThrough) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string - */ - public function getEmploymentUnit() - { - return $this->employmentUnit; - } - - /** - * @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 setEmploymentUnit($employmentUnit) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "string", - ]; - - $employmentUnit = self::checkTypes($employmentUnit, $types); - - $this->employmentUnit = $employmentUnit; - } - - /** - * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential - */ - public function getQualifications() - { - return $this->qualifications; - } - - /** - * @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 setQualifications($qualifications) - { - $types = [ - "string", - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", - ]; - - $qualifications = self::checkTypes($qualifications, $types); - - $this->qualifications = $qualifications; - } - - /** - * @return \OpenActive\Models\SchemaOrg\CategoryCode|string + * @return string */ - public function getOccupationalCategory() + public function getWorkHours() { - return $this->occupationalCategory; + return $this->workHours; } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory + * @param string $workHours * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupationalCategory($occupationalCategory) + public function setWorkHours($workHours) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCode", "string", ]; - $occupationalCategory = self::checkTypes($occupationalCategory, $types); + $workHours = self::checkTypes($workHours, $types); - $this->occupationalCategory = $occupationalCategory; + $this->workHours = $workHours; } } diff --git a/src/Models/SchemaOrg/Joint.php b/src/Models/SchemaOrg/Joint.php index c7958355..0abaaa8a 100644 --- a/src/Models/SchemaOrg/Joint.php +++ b/src/Models/SchemaOrg/Joint.php @@ -17,109 +17,109 @@ public static function getType() public static function fieldList() { $fields = [ - "structuralClass" => "structuralClass", "biomechnicalClass" => "biomechnicalClass", "functionalClass" => "functionalClass", + "structuralClass" => "structuralClass", ]; return array_merge(parent::fieldList(), $fields); } /** - * 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 degree of mobility the joint allows. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - protected $biomechnicalClass; + protected $functionalClass; /** - * The degree of mobility the joint allows. + * The name given to how bone physically connects to each other. * * - * @var string|\OpenActive\Models\SchemaOrg\MedicalEntity + * @var string */ - protected $functionalClass; + protected $structuralClass; /** * @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 + * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - public function getBiomechnicalClass() + public function getFunctionalClass() { - return $this->biomechnicalClass; + return $this->functionalClass; } /** - * @param string $biomechnicalClass + * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $functionalClass * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBiomechnicalClass($biomechnicalClass) + public function setFunctionalClass($functionalClass) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalEntity", "string", ]; - $biomechnicalClass = self::checkTypes($biomechnicalClass, $types); + $functionalClass = self::checkTypes($functionalClass, $types); - $this->biomechnicalClass = $biomechnicalClass; + $this->functionalClass = $functionalClass; } /** - * @return string|\OpenActive\Models\SchemaOrg\MedicalEntity + * @return string */ - public function getFunctionalClass() + public function getStructuralClass() { - return $this->functionalClass; + return $this->structuralClass; } /** - * @param string|\OpenActive\Models\SchemaOrg\MedicalEntity $functionalClass + * @param string $structuralClass * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunctionalClass($functionalClass) + public function setStructuralClass($structuralClass) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\MedicalEntity", ]; - $functionalClass = self::checkTypes($functionalClass, $types); + $structuralClass = self::checkTypes($structuralClass, $types); - $this->functionalClass = $functionalClass; + $this->structuralClass = $structuralClass; } } diff --git a/src/Models/SchemaOrg/LearningResource.php b/src/Models/SchemaOrg/LearningResource.php index c9f5b932..8cb4b26d 100644 --- a/src/Models/SchemaOrg/LearningResource.php +++ b/src/Models/SchemaOrg/LearningResource.php @@ -17,249 +17,249 @@ public static function getType() public static function fieldList() { $fields = [ - "teaches" => "teaches", - "educationalLevel" => "educationalLevel", "assesses" => "assesses", - "educationalUse" => "educationalUse", - "educationalAlignment" => "educationalAlignment", "competencyRequired" => "competencyRequired", + "educationalAlignment" => "educationalAlignment", + "educationalLevel" => "educationalLevel", + "educationalUse" => "educationalUse", "learningResourceType" => "learningResourceType", + "teaches" => "teaches", ]; return array_merge(parent::fieldList(), $fields); } /** - * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. + * The item being described is intended to assess the competency or learning outcome defined by the referenced term. * * * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $teaches; + protected $assesses; /** - * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. + * Knowledge, skill, ability or personal attribute that must be demonstrated by a person or other entity in order to do something such as earn an Educational Occupational Credential or understand a LearningResource. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $educationalLevel; + protected $competencyRequired; /** - * The item being described is intended to assess 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 string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string */ - protected $assesses; + protected $educationalAlignment; /** - * The purpose of a work in the context of education; for example, 'assignment', 'group work'. + * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. * * * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $educationalUse; + protected $educationalLevel; /** - * 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 purpose of a work in the context of education; for example, 'assignment', 'group work'. * * - * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $educationalAlignment; + protected $educationalUse; /** - * 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 predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $competencyRequired; + protected $learningResourceType; /** - * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. + * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. * * * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $learningResourceType; + protected $teaches; /** * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getTeaches() + public function getAssesses() { - return $this->teaches; + return $this->assesses; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches + * @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 setTeaches($teaches) + public function setAssesses($assesses) { $types = [ "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $teaches = self::checkTypes($teaches, $types); + $assesses = self::checkTypes($assesses, $types); - $this->teaches = $teaches; + $this->assesses = $assesses; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getEducationalLevel() + public function getCompetencyRequired() { - return $this->educationalLevel; + return $this->competencyRequired; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $competencyRequired * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalLevel($educationalLevel) + public function setCompetencyRequired($competencyRequired) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $educationalLevel = self::checkTypes($educationalLevel, $types); + $competencyRequired = self::checkTypes($competencyRequired, $types); - $this->educationalLevel = $educationalLevel; + $this->competencyRequired = $competencyRequired; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string */ - public function getAssesses() + public function getEducationalAlignment() { - return $this->assesses; + return $this->educationalAlignment; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses + * @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 setAssesses($assesses) + public function setEducationalAlignment($educationalAlignment) { $types = [ + "\OpenActive\Models\SchemaOrg\AlignmentObject", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $assesses = self::checkTypes($assesses, $types); + $educationalAlignment = self::checkTypes($educationalAlignment, $types); - $this->assesses = $assesses; + $this->educationalAlignment = $educationalAlignment; } /** * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getEducationalUse() + public function getEducationalLevel() { - return $this->educationalUse; + return $this->educationalLevel; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalUse($educationalUse) + public function setEducationalLevel($educationalLevel) { $types = [ "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $educationalUse = self::checkTypes($educationalUse, $types); + $educationalLevel = self::checkTypes($educationalLevel, $types); - $this->educationalUse = $educationalUse; + $this->educationalLevel = $educationalLevel; } /** - * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getEducationalAlignment() + public function getEducationalUse() { - return $this->educationalAlignment; + return $this->educationalUse; } /** - * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalAlignment($educationalAlignment) + public function setEducationalUse($educationalUse) { $types = [ - "\OpenActive\Models\SchemaOrg\AlignmentObject", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $educationalAlignment = self::checkTypes($educationalAlignment, $types); + $educationalUse = self::checkTypes($educationalUse, $types); - $this->educationalAlignment = $educationalAlignment; + $this->educationalUse = $educationalUse; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getCompetencyRequired() + public function getLearningResourceType() { - return $this->competencyRequired; + return $this->learningResourceType; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $competencyRequired + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCompetencyRequired($competencyRequired) + public function setLearningResourceType($learningResourceType) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $competencyRequired = self::checkTypes($competencyRequired, $types); + $learningResourceType = self::checkTypes($learningResourceType, $types); - $this->competencyRequired = $competencyRequired; + $this->learningResourceType = $learningResourceType; } /** * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getLearningResourceType() + public function getTeaches() { - return $this->learningResourceType; + return $this->teaches; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLearningResourceType($learningResourceType) + public function setTeaches($teaches) { $types = [ "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $learningResourceType = self::checkTypes($learningResourceType, $types); + $teaches = self::checkTypes($teaches, $types); - $this->learningResourceType = $learningResourceType; + $this->teaches = $teaches; } } diff --git a/src/Models/SchemaOrg/Legislation.php b/src/Models/SchemaOrg/Legislation.php index 8567e99e..88aa35ee 100644 --- a/src/Models/SchemaOrg/Legislation.php +++ b/src/Models/SchemaOrg/Legislation.php @@ -17,79 +17,134 @@ public static function getType() public static function fieldList() { $fields = [ - "legislationTransposes" => "legislationTransposes", - "legislationLegalForce" => "legislationLegalForce", - "legislationType" => "legislationType", "jurisdiction" => "jurisdiction", - "legislationIdentifier" => "legislationIdentifier", + "legislationAmends" => "legislationAmends", + "legislationApplies" => "legislationApplies", "legislationChanges" => "legislationChanges", - "legislationResponsible" => "legislationResponsible", - "legislationJurisdiction" => "legislationJurisdiction", - "legislationDate" => "legislationDate", - "legislationPassedBy" => "legislationPassedBy", + "legislationCommences" => "legislationCommences", "legislationConsolidates" => "legislationConsolidates", - "legislationApplies" => "legislationApplies", + "legislationCorrects" => "legislationCorrects", + "legislationCountersignedBy" => "legislationCountersignedBy", + "legislationDate" => "legislationDate", + "legislationDateOfApplicability" => "legislationDateOfApplicability", "legislationDateVersion" => "legislationDateVersion", + "legislationEnsuresImplementationOf" => "legislationEnsuresImplementationOf", + "legislationIdentifier" => "legislationIdentifier", + "legislationJurisdiction" => "legislationJurisdiction", + "legislationLegalForce" => "legislationLegalForce", + "legislationPassedBy" => "legislationPassedBy", + "legislationRepeals" => "legislationRepeals", + "legislationResponsible" => "legislationResponsible", + "legislationTransposes" => "legislationTransposes", + "legislationType" => "legislationType", ]; 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. + * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based. + * + * + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string + */ + protected $jurisdiction; + + /** + * Another legislation that this legislation amends, introducing legal changes. * * * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationTransposes; + protected $legislationAmends; /** - * Whether the legislation is currently in force, not in force, or partially in force. + * Indicates that this legislation (or part of a legislation) somehow transfers another legislation in a different legislative context. This is an informative link, and it has no legal value. For legally-binding links of transposition, use the legislationTransposes property. For example an informative consolidated law of a European Union's member state "applies" the consolidated version of the European Directive implemented in it. * * - * @var \OpenActive\Models\SchemaOrg\LegalForceStatus|string + * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationLegalForce; + protected $legislationApplies; /** - * The type of the legislation. Examples of values are "law", "act", "directive", "decree", "regulation", "statutory instrument", "loi organique", "règlement grand-ducal", etc., depending on the country. + * Another legislation that this legislation changes. This encompasses the notions of amendment, replacement, correction, repeal, or other types of change. This may be a direct change (textual or non-textual amendment) or a consequential or indirect change. The property is to be used to express the existence of a change relationship between two acts rather than the existence of a consolidated version of the text that shows the result of the change. For consolidation relationships, use the legislationConsolidates property. * * - * @var \OpenActive\Models\SchemaOrg\CategoryCode|string + * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationType; + protected $legislationChanges; /** - * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based. + * Another legislation that this one sets into force. * * - * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea + * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $jurisdiction; + protected $legislationCommences; /** - * 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 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 string + * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationIdentifier; + protected $legislationConsolidates; /** - * 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. + * Another legislation in which this one introduces textual changes, like correction of spelling mistakes, with no legal impact (for modifications that have legal impact, use legislationAmends). * * * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationChanges; + protected $legislationCorrects; /** - * 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 person or organization that countersigned the legislation. Depending on the legal context, a countersignature can indicate that the signed authority undertakes to assume responsibility for texts emanating from a person who is inviolable and irresponsible, (for example a King, Grand Duc or President), or that the authority is in charge of the implementation of the text. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $legislationResponsible; + protected $legislationCountersignedBy; + + /** + * The date of adoption or signature of the legislation. This is the date at which the text is officially aknowledged to be a legislation, even though it might not even be published or in force. + * + * + * @var Date|null + */ + protected $legislationDate; + + /** + * The date at which the Legislation becomes applicable. This can sometimes be distinct from the date of entry into force : a text may come in force today, and state it will become applicable in 3 months. + * + * + * @var Date|null + */ + protected $legislationDateOfApplicability; + + /** + * 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 Date|null + */ + protected $legislationDateVersion; + + /** + * Indicates that this Legislation ensures the implementation of another Legislation, for example by modifying national legislations so that they do not contradict to an EU regulation or decision. This implies a legal meaning. Transpositions of EU Directive should be captured with legislationTransposes. + * + * + * @var \OpenActive\Models\SchemaOrg\Legislation|string + */ + protected $legislationEnsuresImplementationOf; + + /** + * 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 string + */ + protected $legislationIdentifier; /** * The jurisdiction from which the legislation originates. @@ -100,208 +155,242 @@ public static function fieldList() { protected $legislationJurisdiction; /** - * 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. + * Whether the legislation is currently in force, not in force, or partially in force. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\LegalForceStatus|string */ - protected $legislationDate; + protected $legislationLegalForce; /** - * 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. + * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $legislationPassedBy; /** - * 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. + * Another legislation that this legislation repeals (cancels, abrogates). * * * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationConsolidates; + protected $legislationRepeals; /** - * 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. + * An individual or organization that has some kind of responsibility for the legislation. Typically the ministry who is/was in charge of elaborating the legislation, or the adressee for potential questions about the legislation once it is published. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $legislationResponsible; + + /** + * 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\Legislation|string */ - protected $legislationApplies; + protected $legislationTransposes; /** - * The point-in-time at which the provided description of the legislation is valid (e.g. : when looking at the law on the 2016-04-07 (= dateVersion), I get the consolidation of 2015-04-12 of the "National Insurance Contributions Act 2015") + * The 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 Date|null + * @var \OpenActive\Models\SchemaOrg\CategoryCode|string */ - protected $legislationDateVersion; + protected $legislationType; + + /** + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + */ + public function getJurisdiction() + { + return $this->jurisdiction; + } + + /** + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $jurisdiction + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setJurisdiction($jurisdiction) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "string", + ]; + + $jurisdiction = self::checkTypes($jurisdiction, $types); + + $this->jurisdiction = $jurisdiction; + } /** * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationTransposes() + public function getLegislationAmends() { - return $this->legislationTransposes; + return $this->legislationAmends; } /** - * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationTransposes + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationAmends * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationTransposes($legislationTransposes) + public function setLegislationAmends($legislationAmends) { $types = [ "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationTransposes = self::checkTypes($legislationTransposes, $types); + $legislationAmends = self::checkTypes($legislationAmends, $types); - $this->legislationTransposes = $legislationTransposes; + $this->legislationAmends = $legislationAmends; } /** - * @return \OpenActive\Models\SchemaOrg\LegalForceStatus|string + * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationLegalForce() + public function getLegislationApplies() { - return $this->legislationLegalForce; + return $this->legislationApplies; } /** - * @param \OpenActive\Models\SchemaOrg\LegalForceStatus|string $legislationLegalForce + * @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 setLegislationLegalForce($legislationLegalForce) + public function setLegislationApplies($legislationApplies) { $types = [ - "\OpenActive\Models\SchemaOrg\LegalForceStatus", + "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationLegalForce = self::checkTypes($legislationLegalForce, $types); + $legislationApplies = self::checkTypes($legislationApplies, $types); - $this->legislationLegalForce = $legislationLegalForce; + $this->legislationApplies = $legislationApplies; } /** - * @return \OpenActive\Models\SchemaOrg\CategoryCode|string + * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationType() + public function getLegislationChanges() { - return $this->legislationType; + return $this->legislationChanges; } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $legislationType + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationChanges * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationType($legislationType) + public function setLegislationChanges($legislationChanges) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationType = self::checkTypes($legislationType, $types); + $legislationChanges = self::checkTypes($legislationChanges, $types); - $this->legislationType = $legislationType; + $this->legislationChanges = $legislationChanges; } /** - * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea + * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getJurisdiction() + public function getLegislationCommences() { - return $this->jurisdiction; + return $this->legislationCommences; } /** - * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationCommences * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJurisdiction($jurisdiction) + public function setLegislationCommences($legislationCommences) { $types = [ + "\OpenActive\Models\SchemaOrg\Legislation", "string", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", ]; - $jurisdiction = self::checkTypes($jurisdiction, $types); + $legislationCommences = self::checkTypes($legislationCommences, $types); - $this->jurisdiction = $jurisdiction; + $this->legislationCommences = $legislationCommences; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationIdentifier() + public function getLegislationConsolidates() { - return $this->legislationIdentifier; + return $this->legislationConsolidates; } /** - * @param string $legislationIdentifier + * @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 setLegislationIdentifier($legislationIdentifier) + public function setLegislationConsolidates($legislationConsolidates) { $types = [ + "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationIdentifier = self::checkTypes($legislationIdentifier, $types); + $legislationConsolidates = self::checkTypes($legislationConsolidates, $types); - $this->legislationIdentifier = $legislationIdentifier; + $this->legislationConsolidates = $legislationConsolidates; } /** * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationChanges() + public function getLegislationCorrects() { - return $this->legislationChanges; + return $this->legislationCorrects; } /** - * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationChanges + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationCorrects * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationChanges($legislationChanges) + public function setLegislationCorrects($legislationCorrects) { $types = [ "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationChanges = self::checkTypes($legislationChanges, $types); + $legislationCorrects = self::checkTypes($legislationCorrects, $types); - $this->legislationChanges = $legislationChanges; + $this->legislationCorrects = $legislationCorrects; } /** * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getLegislationResponsible() + public function getLegislationCountersignedBy() { - return $this->legislationResponsible; + return $this->legislationCountersignedBy; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationResponsible + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationCountersignedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationResponsible($legislationResponsible) + public function setLegislationCountersignedBy($legislationCountersignedBy) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", @@ -309,9 +398,133 @@ public function setLegislationResponsible($legislationResponsible) "string", ]; - $legislationResponsible = self::checkTypes($legislationResponsible, $types); + $legislationCountersignedBy = self::checkTypes($legislationCountersignedBy, $types); - $this->legislationResponsible = $legislationResponsible; + $this->legislationCountersignedBy = $legislationCountersignedBy; + } + + /** + * @return Date|null + */ + public function getLegislationDate() + { + return $this->legislationDate; + } + + /** + * @param Date|null $legislationDate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setLegislationDate($legislationDate) + { + $types = [ + "Date", + "null", + ]; + + $legislationDate = self::checkTypes($legislationDate, $types); + + $this->legislationDate = $legislationDate; + } + + /** + * @return Date|null + */ + public function getLegislationDateOfApplicability() + { + return $this->legislationDateOfApplicability; + } + + /** + * @param Date|null $legislationDateOfApplicability + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setLegislationDateOfApplicability($legislationDateOfApplicability) + { + $types = [ + "Date", + "null", + ]; + + $legislationDateOfApplicability = self::checkTypes($legislationDateOfApplicability, $types); + + $this->legislationDateOfApplicability = $legislationDateOfApplicability; + } + + /** + * @return Date|null + */ + public function getLegislationDateVersion() + { + return $this->legislationDateVersion; + } + + /** + * @param Date|null $legislationDateVersion + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setLegislationDateVersion($legislationDateVersion) + { + $types = [ + "Date", + "null", + ]; + + $legislationDateVersion = self::checkTypes($legislationDateVersion, $types); + + $this->legislationDateVersion = $legislationDateVersion; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Legislation|string + */ + public function getLegislationEnsuresImplementationOf() + { + return $this->legislationEnsuresImplementationOf; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationEnsuresImplementationOf + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setLegislationEnsuresImplementationOf($legislationEnsuresImplementationOf) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Legislation", + "string", + ]; + + $legislationEnsuresImplementationOf = self::checkTypes($legislationEnsuresImplementationOf, $types); + + $this->legislationEnsuresImplementationOf = $legislationEnsuresImplementationOf; + } + + /** + * @return string + */ + public function getLegislationIdentifier() + { + return $this->legislationIdentifier; + } + + /** + * @param string $legislationIdentifier + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setLegislationIdentifier($legislationIdentifier) + { + $types = [ + "string", + ]; + + $legislationIdentifier = self::checkTypes($legislationIdentifier, $types); + + $this->legislationIdentifier = $legislationIdentifier; } /** @@ -340,32 +553,32 @@ public function setLegislationJurisdiction($legislationJurisdiction) } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\LegalForceStatus|string */ - public function getLegislationDate() + public function getLegislationLegalForce() { - return $this->legislationDate; + return $this->legislationLegalForce; } /** - * @param Date|null $legislationDate + * @param \OpenActive\Models\SchemaOrg\LegalForceStatus|string $legislationLegalForce * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationDate($legislationDate) + public function setLegislationLegalForce($legislationLegalForce) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\LegalForceStatus", + "string", ]; - $legislationDate = self::checkTypes($legislationDate, $types); + $legislationLegalForce = self::checkTypes($legislationLegalForce, $types); - $this->legislationDate = $legislationDate; + $this->legislationLegalForce = $legislationLegalForce; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getLegislationPassedBy() { @@ -373,15 +586,15 @@ public function getLegislationPassedBy() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $legislationPassedBy + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationPassedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setLegislationPassedBy($legislationPassedBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; @@ -393,76 +606,102 @@ public function setLegislationPassedBy($legislationPassedBy) /** * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationConsolidates() + public function getLegislationRepeals() { - return $this->legislationConsolidates; + return $this->legislationRepeals; } /** - * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationConsolidates + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationRepeals * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationConsolidates($legislationConsolidates) + public function setLegislationRepeals($legislationRepeals) { $types = [ "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationConsolidates = self::checkTypes($legislationConsolidates, $types); + $legislationRepeals = self::checkTypes($legislationRepeals, $types); - $this->legislationConsolidates = $legislationConsolidates; + $this->legislationRepeals = $legislationRepeals; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getLegislationResponsible() + { + return $this->legislationResponsible; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationResponsible + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setLegislationResponsible($legislationResponsible) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $legislationResponsible = self::checkTypes($legislationResponsible, $types); + + $this->legislationResponsible = $legislationResponsible; } /** * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationApplies() + public function getLegislationTransposes() { - return $this->legislationApplies; + return $this->legislationTransposes; } /** - * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationApplies + * @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 setLegislationApplies($legislationApplies) + public function setLegislationTransposes($legislationTransposes) { $types = [ "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationApplies = self::checkTypes($legislationApplies, $types); + $legislationTransposes = self::checkTypes($legislationTransposes, $types); - $this->legislationApplies = $legislationApplies; + $this->legislationTransposes = $legislationTransposes; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\CategoryCode|string */ - public function getLegislationDateVersion() + public function getLegislationType() { - return $this->legislationDateVersion; + return $this->legislationType; } /** - * @param Date|null $legislationDateVersion + * @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 setLegislationDateVersion($legislationDateVersion) + public function setLegislationType($legislationType) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "string", ]; - $legislationDateVersion = self::checkTypes($legislationDateVersion, $types); + $legislationType = self::checkTypes($legislationType, $types); - $this->legislationDateVersion = $legislationDateVersion; + $this->legislationType = $legislationType; } } diff --git a/src/Models/SchemaOrg/LinkRole.php b/src/Models/SchemaOrg/LinkRole.php index 6ad5e287..d460c4a0 100644 --- a/src/Models/SchemaOrg/LinkRole.php +++ b/src/Models/SchemaOrg/LinkRole.php @@ -17,76 +17,76 @@ public static function getType() public static function fieldList() { $fields = [ - "linkRelationship" => "linkRelationship", "inLanguage" => "inLanguage", + "linkRelationship" => "linkRelationship", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates the relationship type of a Web link. + * 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 $linkRelationship; + 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]]. + * Indicates the relationship type of a Web link. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var string */ - protected $inLanguage; + protected $linkRelationship; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getLinkRelationship() + public function getInLanguage() { - return $this->linkRelationship; + return $this->inLanguage; } /** - * @param string $linkRelationship + * @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 setLinkRelationship($linkRelationship) + public function setInLanguage($inLanguage) { $types = [ + "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $linkRelationship = self::checkTypes($linkRelationship, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->linkRelationship = $linkRelationship; + $this->inLanguage = $inLanguage; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return string */ - public function getInLanguage() + public function getLinkRelationship() { - return $this->inLanguage; + return $this->linkRelationship; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @param string $linkRelationship * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInLanguage($inLanguage) + public function setLinkRelationship($linkRelationship) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $linkRelationship = self::checkTypes($linkRelationship, $types); - $this->inLanguage = $inLanguage; + $this->linkRelationship = $linkRelationship; } } diff --git a/src/Models/SchemaOrg/ListItem.php b/src/Models/SchemaOrg/ListItem.php index ac5d7ffd..a1bf2f7f 100644 --- a/src/Models/SchemaOrg/ListItem.php +++ b/src/Models/SchemaOrg/ListItem.php @@ -17,9 +17,9 @@ public static function getType() public static function fieldList() { $fields = [ - "position" => "position", - "nextItem" => "nextItem", "item" => "item", + "nextItem" => "nextItem", + "position" => "position", "previousItem" => "previousItem", ]; @@ -27,12 +27,12 @@ public static function fieldList() { } /** - * The position of an item in a series or sequence of items. + * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists'). * * - * @var string|int|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $position; + protected $item; /** * A link to the ListItem that follows the current one. @@ -43,15 +43,15 @@ public static function fieldList() { protected $nextItem; /** - * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists')’. + * The position of an item in a series or sequence of items. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var string|int|null */ - protected $item; + protected $position; /** - * A link to the ListItem that preceeds the current one. + * A link to the ListItem that precedes the current one. * * * @var \OpenActive\Models\SchemaOrg\ListItem|string @@ -59,29 +59,28 @@ public static function fieldList() { protected $previousItem; /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getPosition() + public function getItem() { - return $this->position; + return $this->item; } /** - * @param string|int|null $position + * @param \OpenActive\Models\SchemaOrg\Thing|string $item * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPosition($position) + public function setItem($item) { $types = [ + "\OpenActive\Models\SchemaOrg\Thing", "string", - "int", - "null", ]; - $position = self::checkTypes($position, $types); + $item = self::checkTypes($item, $types); - $this->position = $position; + $this->item = $item; } /** @@ -110,28 +109,29 @@ public function setNextItem($nextItem) } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return string|int|null */ - public function getItem() + public function getPosition() { - return $this->item; + return $this->position; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $item + * @param string|int|null $position * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItem($item) + public function setPosition($position) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", "string", + "int", + "null", ]; - $item = self::checkTypes($item, $types); + $position = self::checkTypes($position, $types); - $this->item = $item; + $this->position = $position; } /** diff --git a/src/Models/SchemaOrg/LoanOrCredit.php b/src/Models/SchemaOrg/LoanOrCredit.php index 2d6710bb..24775c4e 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", + "amount" => "amount", + "currency" => "currency", + "gracePeriod" => "gracePeriod", + "loanRepaymentForm" => "loanRepaymentForm", + "loanTerm" => "loanTerm", "loanType" => "loanType", "recourseLoan" => "recourseLoan", - "loanTerm" => "loanTerm", - "gracePeriod" => "gracePeriod", + "renegotiableLoan" => "renegotiableLoan", "requiredCollateral" => "requiredCollateral", - "currency" => "currency", - "amount" => "amount", - "loanRepaymentForm" => "loanRepaymentForm", ]; return array_merge(parent::fieldList(), $fields); } /** - * Whether the terms for payment of interest can be renegotiated during the life of the loan. + * The amount of money. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - protected $renegotiableLoan; + protected $amount; /** - * 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 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 bool|null + * @var DateInterval|string|null */ - protected $recourseLoan; + protected $gracePeriod; /** - * The duration of the loan or credit agreement. + * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\RepaymentSpecification|string */ - protected $loanTerm; + protected $loanRepaymentForm; /** - * 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 duration of the loan or credit agreement. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $gracePeriod; + protected $loanTerm; /** - * Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.) + * The type of a loan or credit. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var string */ - protected $requiredCollateral; + protected $loanType; /** - * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The only way you get the money back in the event of default is the security. Recourse is where you still have the opportunity to go back to the borrower for the rest of the money. * * - * @var string + * @var bool|null */ - protected $currency; + protected $recourseLoan; /** - * The amount of money. + * Whether the terms for payment of interest can be renegotiated during the life of the loan. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var bool|null */ - protected $amount; + protected $renegotiableLoan; /** - * 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 string|\OpenActive\Models\SchemaOrg\Thing */ - protected $loanRepaymentForm; + protected $requiredCollateral; /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - public function getRenegotiableLoan() + public function getAmount() { - return $this->renegotiableLoan; + return $this->amount; } /** - * @param bool|null $renegotiableLoan + * @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 setRenegotiableLoan($renegotiableLoan) + public function setAmount($amount) { $types = [ - "bool", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", + "Number", "null", ]; - $renegotiableLoan = self::checkTypes($renegotiableLoan, $types); + $amount = self::checkTypes($amount, $types); - $this->renegotiableLoan = $renegotiableLoan; + $this->amount = $amount; } /** * @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 DateInterval|string|null */ - public function getRecourseLoan() + public function getGracePeriod() { - return $this->recourseLoan; + return $this->gracePeriod; } /** - * @param bool|null $recourseLoan + * @param DateInterval|string|null $gracePeriod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecourseLoan($recourseLoan) + public function setGracePeriod($gracePeriod) { $types = [ - "bool", + "DateInterval", + "string", "null", ]; - $recourseLoan = self::checkTypes($recourseLoan, $types); + $gracePeriod = self::checkTypes($gracePeriod, $types); - $this->recourseLoan = $recourseLoan; + $this->gracePeriod = $gracePeriod; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\RepaymentSpecification|string */ - public function getLoanTerm() + public function getLoanRepaymentForm() { - return $this->loanTerm; + return $this->loanRepaymentForm; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $loanTerm + * @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 setLoanTerm($loanTerm) + public function setLoanRepaymentForm($loanRepaymentForm) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\RepaymentSpecification", "string", ]; - $loanTerm = self::checkTypes($loanTerm, $types); + $loanRepaymentForm = self::checkTypes($loanRepaymentForm, $types); - $this->loanTerm = $loanTerm; + $this->loanRepaymentForm = $loanRepaymentForm; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getGracePeriod() + public function getLoanTerm() { - return $this->gracePeriod; + return $this->loanTerm; } /** - * @param DateInterval|string|null $gracePeriod + * @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 setGracePeriod($gracePeriod) + public function setLoanTerm($loanTerm) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $gracePeriod = self::checkTypes($gracePeriod, $types); + $loanTerm = self::checkTypes($loanTerm, $types); - $this->gracePeriod = $gracePeriod; + $this->loanTerm = $loanTerm; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return string */ - public function getRequiredCollateral() + public function getLoanType() { - return $this->requiredCollateral; + return $this->loanType; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $requiredCollateral + * @param string $loanType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiredCollateral($requiredCollateral) + public function setLoanType($loanType) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $requiredCollateral = self::checkTypes($requiredCollateral, $types); + $loanType = self::checkTypes($loanType, $types); - $this->requiredCollateral = $requiredCollateral; + $this->loanType = $loanType; } /** - * @return string + * @return bool|null */ - public function getCurrency() + public function getRecourseLoan() { - return $this->currency; + return $this->recourseLoan; } /** - * @param string $currency + * @param bool|null $recourseLoan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCurrency($currency) + public function setRecourseLoan($recourseLoan) { $types = [ - "string", + "bool", + "null", ]; - $currency = self::checkTypes($currency, $types); + $recourseLoan = self::checkTypes($recourseLoan, $types); - $this->currency = $currency; + $this->recourseLoan = $recourseLoan; } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return bool|null */ - public function getAmount() + public function getRenegotiableLoan() { - return $this->amount; + return $this->renegotiableLoan; } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount + * @param bool|null $renegotiableLoan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAmount($amount) + public function setRenegotiableLoan($renegotiableLoan) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "bool", "null", ]; - $amount = self::checkTypes($amount, $types); + $renegotiableLoan = self::checkTypes($renegotiableLoan, $types); - $this->amount = $amount; + $this->renegotiableLoan = $renegotiableLoan; } /** - * @return \OpenActive\Models\SchemaOrg\RepaymentSpecification|string + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getLoanRepaymentForm() + public function getRequiredCollateral() { - return $this->loanRepaymentForm; + return $this->requiredCollateral; } /** - * @param \OpenActive\Models\SchemaOrg\RepaymentSpecification|string $loanRepaymentForm + * @param string|\OpenActive\Models\SchemaOrg\Thing $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", "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $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..37206654 100644 --- a/src/Models/SchemaOrg/LocalBusiness.php +++ b/src/Models/SchemaOrg/LocalBusiness.php @@ -18,17 +18,18 @@ public static function getType() public static function fieldList() { $fields = [ "branchOf" => "branchOf", + "currenciesAccepted" => "currenciesAccepted", + "floorLevel" => "floorLevel", "openingHours" => "openingHours", - "priceRange" => "priceRange", "paymentAccepted" => "paymentAccepted", - "currenciesAccepted" => "currenciesAccepted", + "priceRange" => "priceRange", ]; return array_merge(parent::fieldList(), $fields); } /** - * The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical)[[branch]]. + * The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]]. * * * @var \OpenActive\Models\SchemaOrg\Organization|string @@ -36,20 +37,29 @@ public static function fieldList() { protected $branchOf; /** - * The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.\n\n* Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```.\n* Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. \n* Here is an example:<time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.\n* If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>.
+ * 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
*/
- protected $openingHours;
+ protected $currenciesAccepted;
/**
- * The price range of the business, for example ```$$$```.
+ * The floor level for an [[Accommodation]] in a multi-storey building. Since counting
+ * systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.
*
*
* @var string
*/
- protected $priceRange;
+ protected $floorLevel;
+
+ /**
+ * The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.\n\n* Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```.\n* Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. \n* Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.\n* If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>.
+ *
+ *
+ * @var string
+ */
+ protected $openingHours;
/**
* Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
@@ -60,12 +70,12 @@ public static function fieldList() {
protected $paymentAccepted;
/**
- * 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 price range of the business, for example ```$$$```.
*
*
* @var string
*/
- protected $currenciesAccepted;
+ protected $priceRange;
/**
* @return \OpenActive\Models\SchemaOrg\Organization|string
@@ -95,49 +105,73 @@ public function setBranchOf($branchOf)
/**
* @return string
*/
- public function getOpeningHours()
+ public function getCurrenciesAccepted()
{
- return $this->openingHours;
+ return $this->currenciesAccepted;
}
/**
- * @param string $openingHours
+ * @param string $currenciesAccepted
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOpeningHours($openingHours)
+ public function setCurrenciesAccepted($currenciesAccepted)
{
$types = [
"string",
];
- $openingHours = self::checkTypes($openingHours, $types);
+ $currenciesAccepted = self::checkTypes($currenciesAccepted, $types);
- $this->openingHours = $openingHours;
+ $this->currenciesAccepted = $currenciesAccepted;
}
/**
* @return string
*/
- public function getPriceRange()
+ public function getFloorLevel()
{
- return $this->priceRange;
+ return $this->floorLevel;
}
/**
- * @param string $priceRange
+ * @param string $floorLevel
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPriceRange($priceRange)
+ public function setFloorLevel($floorLevel)
{
$types = [
"string",
];
- $priceRange = self::checkTypes($priceRange, $types);
+ $floorLevel = self::checkTypes($floorLevel, $types);
- $this->priceRange = $priceRange;
+ $this->floorLevel = $floorLevel;
+ }
+
+ /**
+ * @return string
+ */
+ public function getOpeningHours()
+ {
+ return $this->openingHours;
+ }
+
+ /**
+ * @param string $openingHours
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setOpeningHours($openingHours)
+ {
+ $types = [
+ "string",
+ ];
+
+ $openingHours = self::checkTypes($openingHours, $types);
+
+ $this->openingHours = $openingHours;
}
/**
@@ -167,25 +201,25 @@ public function setPaymentAccepted($paymentAccepted)
/**
* @return string
*/
- public function getCurrenciesAccepted()
+ public function getPriceRange()
{
- return $this->currenciesAccepted;
+ return $this->priceRange;
}
/**
- * @param string $currenciesAccepted
+ * @param string $priceRange
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCurrenciesAccepted($currenciesAccepted)
+ public function setPriceRange($priceRange)
{
$types = [
"string",
];
- $currenciesAccepted = self::checkTypes($currenciesAccepted, $types);
+ $priceRange = self::checkTypes($priceRange, $types);
- $this->currenciesAccepted = $currenciesAccepted;
+ $this->priceRange = $priceRange;
}
}
diff --git a/src/Models/SchemaOrg/LodgingBusiness.php b/src/Models/SchemaOrg/LodgingBusiness.php
index af55db3b..f9b45a83 100644
--- a/src/Models/SchemaOrg/LodgingBusiness.php
+++ b/src/Models/SchemaOrg/LodgingBusiness.php
@@ -17,27 +17,26 @@ public static function getType()
public static function fieldList() {
$fields = [
- "numberOfRooms" => "numberOfRooms",
- "audience" => "audience",
- "starRating" => "starRating",
"amenityFeature" => "amenityFeature",
+ "audience" => "audience",
"availableLanguage" => "availableLanguage",
- "checkoutTime" => "checkoutTime",
"checkinTime" => "checkinTime",
+ "checkoutTime" => "checkoutTime",
+ "numberOfRooms" => "numberOfRooms",
"petsAllowed" => "petsAllowed",
+ "starRating" => "starRating",
];
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.
+ * 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\QuantitativeValue|string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
*/
- protected $numberOfRooms;
+ protected $amenityFeature;
/**
* An intended audience, i.e. a group for whom something was created.
@@ -48,28 +47,20 @@ public static function fieldList() {
protected $audience;
/**
- * 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\Rating|string
- */
- protected $starRating;
-
- /**
- * 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 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\LocationFeatureSpecification|string
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- protected $amenityFeature;
+ protected $availableLanguage;
/**
- * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]
+ * The earliest someone may check into a lodging establishment.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Language
+ * @var DateTime|string|null
*/
- protected $availableLanguage;
+ protected $checkinTime;
/**
* The latest someone may check out of a lodging establishment.
@@ -80,12 +71,13 @@ public static function fieldList() {
protected $checkoutTime;
/**
- * The earliest someone may check into a lodging establishment.
+ * 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 DateTime|string|null
+ * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $checkinTime;
+ protected $numberOfRooms;
/**
* Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.
@@ -96,30 +88,36 @@ public static function fieldList() {
protected $petsAllowed;
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null
+ * 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\Rating|string
*/
- public function getNumberOfRooms()
+ protected $starRating;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ */
+ public function getAmenityFeature()
{
- return $this->numberOfRooms;
+ return $this->amenityFeature;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms
+ * @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 setNumberOfRooms($numberOfRooms)
+ public function setAmenityFeature($amenityFeature)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
"string",
- "Number",
- "null",
];
- $numberOfRooms = self::checkTypes($numberOfRooms, $types);
+ $amenityFeature = self::checkTypes($amenityFeature, $types);
- $this->numberOfRooms = $numberOfRooms;
+ $this->amenityFeature = $amenityFeature;
}
/**
@@ -148,78 +146,54 @@ public function setAudience($audience)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Rating|string
- */
- public function getStarRating()
- {
- return $this->starRating;
- }
-
- /**
- * @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 setStarRating($starRating)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\Rating",
- "string",
- ];
-
- $starRating = self::checkTypes($starRating, $types);
-
- $this->starRating = $starRating;
- }
-
- /**
- * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getAmenityFeature()
+ public function getAvailableLanguage()
{
- return $this->amenityFeature;
+ return $this->availableLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature
+ * @param \OpenActive\Models\SchemaOrg\Language|string $availableLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmenityFeature($amenityFeature)
+ public function setAvailableLanguage($availableLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $amenityFeature = self::checkTypes($amenityFeature, $types);
+ $availableLanguage = self::checkTypes($availableLanguage, $types);
- $this->amenityFeature = $amenityFeature;
+ $this->availableLanguage = $availableLanguage;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Language
+ * @return DateTime|string|null
*/
- public function getAvailableLanguage()
+ public function getCheckinTime()
{
- return $this->availableLanguage;
+ return $this->checkinTime;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage
+ * @param DateTime|string|null $checkinTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAvailableLanguage($availableLanguage)
+ public function setCheckinTime($checkinTime)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\Language",
+ "DateTime",
+ "Time",
+ "null",
];
- $availableLanguage = self::checkTypes($availableLanguage, $types);
+ $checkinTime = self::checkTypes($checkinTime, $types);
- $this->availableLanguage = $availableLanguage;
+ $this->checkinTime = $checkinTime;
}
/**
@@ -249,29 +223,30 @@ public function setCheckoutTime($checkoutTime)
}
/**
- * @return DateTime|string|null
+ * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getCheckinTime()
+ public function getNumberOfRooms()
{
- return $this->checkinTime;
+ return $this->numberOfRooms;
}
/**
- * @param DateTime|string|null $checkinTime
+ * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfRooms
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCheckinTime($checkinTime)
+ public function setNumberOfRooms($numberOfRooms)
{
$types = [
- "DateTime",
- "Time",
+ "Number",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
"null",
];
- $checkinTime = self::checkTypes($checkinTime, $types);
+ $numberOfRooms = self::checkTypes($numberOfRooms, $types);
- $this->checkinTime = $checkinTime;
+ $this->numberOfRooms = $numberOfRooms;
}
/**
@@ -300,4 +275,29 @@ public function setPetsAllowed($petsAllowed)
$this->petsAllowed = $petsAllowed;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Rating|string
+ */
+ public function getStarRating()
+ {
+ return $this->starRating;
+ }
+
+ /**
+ * @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 setStarRating($starRating)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Rating",
+ "string",
+ ];
+
+ $starRating = self::checkTypes($starRating, $types);
+
+ $this->starRating = $starRating;
+ }
+
}
diff --git a/src/Models/SchemaOrg/LodgingReservation.php b/src/Models/SchemaOrg/LodgingReservation.php
index bd520b20..77e403ed 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 = [
- "lodgingUnitType" => "lodgingUnitType",
- "lodgingUnitDescription" => "lodgingUnitDescription",
+ "checkinTime" => "checkinTime",
"checkoutTime" => "checkoutTime",
+ "lodgingUnitDescription" => "lodgingUnitDescription",
+ "lodgingUnitType" => "lodgingUnitType",
"numAdults" => "numAdults",
- "checkinTime" => "checkinTime",
"numChildren" => "numChildren",
];
@@ -29,12 +29,20 @@ public static function fieldList() {
}
/**
- * Textual description of the unit type (including suite vs. room, size of bed, etc.).
+ * The earliest someone may check into a lodging establishment.
*
*
- * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @var DateTime|string|null
*/
- protected $lodgingUnitType;
+ protected $checkinTime;
+
+ /**
+ * The latest someone may check out of a lodging establishment.
+ *
+ *
+ * @var DateTime|string|null
+ */
+ protected $checkoutTime;
/**
* A full description of the lodging unit.
@@ -45,12 +53,12 @@ public static function fieldList() {
protected $lodgingUnitDescription;
/**
- * The latest someone may check out of a lodging establishment.
+ * Textual description of the unit type (including suite vs. room, size of bed, etc.).
*
*
- * @var DateTime|string|null
+ * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- protected $checkoutTime;
+ protected $lodgingUnitType;
/**
* The number of adults staying in the unit.
@@ -60,14 +68,6 @@ public static function fieldList() {
*/
protected $numAdults;
- /**
- * The earliest someone may check into a lodging establishment.
- *
- *
- * @var DateTime|string|null
- */
- protected $checkinTime;
-
/**
* The number of children staying in the unit.
*
@@ -77,29 +77,55 @@ public static function fieldList() {
protected $numChildren;
/**
- * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
+ * @return DateTime|string|null
*/
- public function getLodgingUnitType()
+ public function getCheckinTime()
{
- return $this->lodgingUnitType;
+ return $this->checkinTime;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $lodgingUnitType
+ * @param DateTime|string|null $checkinTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLodgingUnitType($lodgingUnitType)
+ public function setCheckinTime($checkinTime)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\QualitativeValue",
- "string",
+ "DateTime",
+ "Time",
"null",
];
- $lodgingUnitType = self::checkTypes($lodgingUnitType, $types);
+ $checkinTime = self::checkTypes($checkinTime, $types);
- $this->lodgingUnitType = $lodgingUnitType;
+ $this->checkinTime = $checkinTime;
+ }
+
+ /**
+ * @return DateTime|string|null
+ */
+ public function getCheckoutTime()
+ {
+ return $this->checkoutTime;
+ }
+
+ /**
+ * @param DateTime|string|null $checkoutTime
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCheckoutTime($checkoutTime)
+ {
+ $types = [
+ "DateTime",
+ "Time",
+ "null",
+ ];
+
+ $checkoutTime = self::checkTypes($checkoutTime, $types);
+
+ $this->checkoutTime = $checkoutTime;
}
/**
@@ -127,29 +153,29 @@ public function setLodgingUnitDescription($lodgingUnitDescription)
}
/**
- * @return DateTime|string|null
+ * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null
*/
- public function getCheckoutTime()
+ public function getLodgingUnitType()
{
- return $this->checkoutTime;
+ return $this->lodgingUnitType;
}
/**
- * @param DateTime|string|null $checkoutTime
+ * @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 setCheckoutTime($checkoutTime)
+ public function setLodgingUnitType($lodgingUnitType)
{
$types = [
- "DateTime",
- "Time",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "string",
"null",
];
- $checkoutTime = self::checkTypes($checkoutTime, $types);
+ $lodgingUnitType = self::checkTypes($lodgingUnitType, $types);
- $this->checkoutTime = $checkoutTime;
+ $this->lodgingUnitType = $lodgingUnitType;
}
/**
@@ -179,32 +205,6 @@ public function setNumAdults($numAdults)
$this->numAdults = $numAdults;
}
- /**
- * @return DateTime|string|null
- */
- public function getCheckinTime()
- {
- return $this->checkinTime;
- }
-
- /**
- * @param DateTime|string|null $checkinTime
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setCheckinTime($checkinTime)
- {
- $types = [
- "DateTime",
- "Time",
- "null",
- ];
-
- $checkinTime = self::checkTypes($checkinTime, $types);
-
- $this->checkinTime = $checkinTime;
- }
-
/**
* @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
diff --git a/src/Models/SchemaOrg/LoginAction.php b/src/Models/SchemaOrg/LoginAction.php
new file mode 100644
index 00000000..dbb116c5
--- /dev/null
+++ b/src/Models/SchemaOrg/LoginAction.php
@@ -0,0 +1,25 @@
+ "runsTo",
- "regionDrained" => "regionDrained",
"originatesFrom" => "originatesFrom",
+ "regionDrained" => "regionDrained",
+ "runsTo" => "runsTo",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The vasculature the lymphatic structure runs, or efferents, to.
+ * The vasculature the lymphatic structure originates, or afferents, from.
*
*
* @var \OpenActive\Models\SchemaOrg\Vessel|string
*/
- protected $runsTo;
+ protected $originatesFrom;
/**
* The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
protected $regionDrained;
/**
- * The vasculature the lymphatic structure originates, or afferents, from.
+ * The vasculature the lymphatic structure runs, or efferents, to.
*
*
* @var \OpenActive\Models\SchemaOrg\Vessel|string
*/
- protected $originatesFrom;
+ protected $runsTo;
/**
* @return \OpenActive\Models\SchemaOrg\Vessel|string
*/
- public function getRunsTo()
+ public function getOriginatesFrom()
{
- return $this->runsTo;
+ return $this->originatesFrom;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $runsTo
+ * @param \OpenActive\Models\SchemaOrg\Vessel|string $originatesFrom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRunsTo($runsTo)
+ public function setOriginatesFrom($originatesFrom)
{
$types = [
"\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $runsTo = self::checkTypes($runsTo, $types);
+ $originatesFrom = self::checkTypes($originatesFrom, $types);
- $this->runsTo = $runsTo;
+ $this->originatesFrom = $originatesFrom;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string
*/
public function getRegionDrained()
{
@@ -83,15 +83,15 @@ public function getRegionDrained()
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $regionDrained
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setRegionDrained($regionDrained)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
"string",
];
@@ -103,26 +103,26 @@ public function setRegionDrained($regionDrained)
/**
* @return \OpenActive\Models\SchemaOrg\Vessel|string
*/
- public function getOriginatesFrom()
+ public function getRunsTo()
{
- return $this->originatesFrom;
+ return $this->runsTo;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $originatesFrom
+ * @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 setOriginatesFrom($originatesFrom)
+ public function setRunsTo($runsTo)
{
$types = [
"\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $originatesFrom = self::checkTypes($originatesFrom, $types);
+ $runsTo = self::checkTypes($runsTo, $types);
- $this->originatesFrom = $originatesFrom;
+ $this->runsTo = $runsTo;
}
}
diff --git a/src/Models/SchemaOrg/Mass.php b/src/Models/SchemaOrg/Mass.php
index 444a73ca..a365a288 100644
--- a/src/Models/SchemaOrg/Mass.php
+++ b/src/Models/SchemaOrg/Mass.php
@@ -5,7 +5,7 @@
/**
*
*/
-class Mass extends \OpenActive\Models\SchemaOrg\Quantity
+class Mass extends \OpenActive\BaseModel
{
/**
* @return string[]|null
diff --git a/src/Models/SchemaOrg/MediaObject.php b/src/Models/SchemaOrg/MediaObject.php
index 959cbe73..28b28cdd 100644
--- a/src/Models/SchemaOrg/MediaObject.php
+++ b/src/Models/SchemaOrg/MediaObject.php
@@ -17,695 +17,697 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "associatedArticle" => "associatedArticle",
+ "bitrate" => "bitrate",
"contentSize" => "contentSize",
"contentUrl" => "contentUrl",
- "width" => "width",
- "height" => "height",
- "regionsAllowed" => "regionsAllowed",
- "startTime" => "startTime",
- "associatedArticle" => "associatedArticle",
- "ineligibleRegion" => "ineligibleRegion",
- "requiresSubscription" => "requiresSubscription",
- "playerType" => "playerType",
- "encodesCreativeWork" => "encodesCreativeWork",
"duration" => "duration",
- "encodingFormat" => "encodingFormat",
- "uploadDate" => "uploadDate",
"embedUrl" => "embedUrl",
- "bitrate" => "bitrate",
+ "encodesCreativeWork" => "encodesCreativeWork",
+ "encodingFormat" => "encodingFormat",
"endTime" => "endTime",
+ "height" => "height",
+ "ineligibleRegion" => "ineligibleRegion",
+ "interpretedAsClaim" => "interpretedAsClaim",
+ "playerType" => "playerType",
"productionCompany" => "productionCompany",
+ "regionsAllowed" => "regionsAllowed",
+ "requiresSubscription" => "requiresSubscription",
"sha256" => "sha256",
- "interpretedAsClaim" => "interpretedAsClaim",
+ "startTime" => "startTime",
+ "uploadDate" => "uploadDate",
+ "width" => "width",
];
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.
+ * The bitrate of the media object.
*
*
* @var string
*/
- protected $contentUrl;
+ protected $bitrate;
/**
- * The width of the item.
+ * File size in (mega/kilo)bytes.
*
*
- * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @var string
*/
- protected $width;
+ protected $contentSize;
/**
- * The height of the item.
+ * Actual bytes of the media object, for example the image file or video file.
*
*
- * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $height;
+ protected $contentUrl;
/**
- * 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 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\Place|string
+ * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $regionsAllowed;
+ protected $duration;
/**
- * 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.
+ * 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 DateTime|string|null
+ * @var string
*/
- protected $startTime;
+ protected $embedUrl;
/**
- * A NewsArticle associated with the Media Object.
+ * The CreativeWork encoded by this media object.
*
*
- * @var \OpenActive\Models\SchemaOrg\NewsArticle|string
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $associatedArticle;
+ protected $encodesCreativeWork;
/**
- * 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]].
- *
+ * 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\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var string
*/
- protected $ineligibleRegion;
+ protected $encodingFormat;
/**
- * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no').
+ * The 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\MediaSubscription|bool|string|null
+ * @var DateTime|string|null
*/
- protected $requiresSubscription;
+ protected $endTime;
/**
- * Player type required—for example, Flash or Silverlight.
+ * The height of the item.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $playerType;
+ protected $height;
/**
- * The CreativeWork encoded by this media object.
+ * 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\CreativeWork|string
+ * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $encodesCreativeWork;
+ protected $ineligibleRegion;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * 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 DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\Claim|string
*/
- protected $duration;
+ protected $interpretedAsClaim;
/**
- * 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.
+ * Player type required—for example, Flash or Silverlight.
*
*
* @var string
*/
- protected $encodingFormat;
+ protected $playerType;
/**
- * Date when this media object was uploaded to this site.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $uploadDate;
+ protected $productionCompany;
/**
- * 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 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 $embedUrl;
+ protected $regionsAllowed;
/**
- * The bitrate of the media object.
+ * 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 string
+ * @var bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- protected $bitrate;
+ protected $requiresSubscription;
/**
- * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
+ * The [SHA-2](https://en.wikipedia.org/wiki/SHA-2) SHA256 hash of the content of the item. For example, a zero-length input has value 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'.
*
*
- * @var DateTime|string|null
+ * @var string
*/
- protected $endTime;
+ protected $sha256;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * The 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\Organization|string
+ * @var DateTime|string|null
*/
- protected $productionCompany;
+ protected $startTime;
/**
- * 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'
+ * Date (including time if available) when this media object was uploaded to this site.
*
*
- * @var string
+ * @var Date|DateTime|null
*/
- protected $sha256;
+ protected $uploadDate;
/**
- * 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 width of the item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Claim|string
+ * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $interpretedAsClaim;
+ protected $width;
/**
- * @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 getBitrate()
{
- return $this->contentUrl;
+ return $this->bitrate;
}
/**
- * @param string $contentUrl
+ * @param string $bitrate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setContentUrl($contentUrl)
+ public function setBitrate($bitrate)
{
$types = [
"string",
];
- $contentUrl = self::checkTypes($contentUrl, $types);
+ $bitrate = self::checkTypes($bitrate, $types);
- $this->contentUrl = $contentUrl;
+ $this->bitrate = $bitrate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string
+ * @return string
*/
- public function getWidth()
+ public function getContentSize()
{
- return $this->width;
+ return $this->contentSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width
+ * @param string $contentSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setWidth($width)
+ public function setContentSize($contentSize)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
- "\OpenActive\Models\SchemaOrg\Distance",
"string",
];
- $width = self::checkTypes($width, $types);
+ $contentSize = self::checkTypes($contentSize, $types);
- $this->width = $width;
+ $this->contentSize = $contentSize;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getHeight()
+ public function getContentUrl()
{
- return $this->height;
+ return $this->contentUrl;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height
+ * @param string $contentUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHeight($height)
+ public function setContentUrl($contentUrl)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Distance",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $height = self::checkTypes($height, $types);
+ $contentUrl = self::checkTypes($contentUrl, $types);
- $this->height = $height;
+ $this->contentUrl = $contentUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string
+ * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getRegionsAllowed()
+ public function getDuration()
{
- return $this->regionsAllowed;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string $regionsAllowed
+ * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRegionsAllowed($regionsAllowed)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
+ "DateInterval",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "null",
];
- $regionsAllowed = self::checkTypes($regionsAllowed, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->regionsAllowed = $regionsAllowed;
+ $this->duration = $duration;
}
/**
- * @return DateTime|string|null
+ * @return string
*/
- public function getStartTime()
+ public function getEmbedUrl()
{
- return $this->startTime;
+ return $this->embedUrl;
}
/**
- * @param DateTime|string|null $startTime
+ * @param string $embedUrl
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartTime($startTime)
+ public function setEmbedUrl($embedUrl)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "string",
];
- $startTime = self::checkTypes($startTime, $types);
+ $embedUrl = self::checkTypes($embedUrl, $types);
- $this->startTime = $startTime;
+ $this->embedUrl = $embedUrl;
}
/**
- * @return \OpenActive\Models\SchemaOrg\NewsArticle|string
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getAssociatedArticle()
+ public function getEncodesCreativeWork()
{
- return $this->associatedArticle;
+ return $this->encodesCreativeWork;
}
/**
- * @param \OpenActive\Models\SchemaOrg\NewsArticle|string $associatedArticle
+ * @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 setAssociatedArticle($associatedArticle)
+ public function setEncodesCreativeWork($encodesCreativeWork)
{
$types = [
- "\OpenActive\Models\SchemaOrg\NewsArticle",
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $associatedArticle = self::checkTypes($associatedArticle, $types);
+ $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types);
- $this->associatedArticle = $associatedArticle;
+ $this->encodesCreativeWork = $encodesCreativeWork;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @return string
*/
- public function getIneligibleRegion()
+ public function getEncodingFormat()
{
- return $this->ineligibleRegion;
+ return $this->encodingFormat;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion
+ * @param string $encodingFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIneligibleRegion($ineligibleRegion)
+ public function setEncodingFormat($encodingFormat)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Place",
"string",
- "\OpenActive\Models\SchemaOrg\GeoShape",
];
- $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
+ $encodingFormat = self::checkTypes($encodingFormat, $types);
- $this->ineligibleRegion = $ineligibleRegion;
+ $this->encodingFormat = $encodingFormat;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null
+ * @return DateTime|string|null
*/
- public function getRequiresSubscription()
+ public function getEndTime()
{
- return $this->requiresSubscription;
+ return $this->endTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null $requiresSubscription
+ * @param DateTime|string|null $endTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRequiresSubscription($requiresSubscription)
+ public function setEndTime($endTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MediaSubscription",
- "bool",
- "string",
+ "DateTime",
+ "Time",
"null",
];
- $requiresSubscription = self::checkTypes($requiresSubscription, $types);
+ $endTime = self::checkTypes($endTime, $types);
- $this->requiresSubscription = $requiresSubscription;
+ $this->endTime = $endTime;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getPlayerType()
+ public function getHeight()
{
- return $this->playerType;
+ return $this->height;
}
/**
- * @param string $playerType
+ * @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 setPlayerType($playerType)
+ public function setHeight($height)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $playerType = self::checkTypes($playerType, $types);
+ $height = self::checkTypes($height, $types);
- $this->playerType = $playerType;
+ $this->height = $height;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string
*/
- public function getEncodesCreativeWork()
+ public function getIneligibleRegion()
{
- return $this->encodesCreativeWork;
+ return $this->ineligibleRegion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $encodesCreativeWork
+ * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string $ineligibleRegion
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodesCreativeWork($encodesCreativeWork)
+ public function setIneligibleRegion($ineligibleRegion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "\OpenActive\Models\SchemaOrg\GeoShape",
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types);
+ $ineligibleRegion = self::checkTypes($ineligibleRegion, $types);
- $this->encodesCreativeWork = $encodesCreativeWork;
+ $this->ineligibleRegion = $ineligibleRegion;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\Claim|string
*/
- public function getDuration()
+ public function getInterpretedAsClaim()
{
- return $this->duration;
+ return $this->interpretedAsClaim;
}
/**
- * @param DateInterval|string|null $duration
+ * @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 setDuration($duration)
+ public function setInterpretedAsClaim($interpretedAsClaim)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\Claim",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
- $this->duration = $duration;
+ $this->interpretedAsClaim = $interpretedAsClaim;
}
/**
* @return string
*/
- public function getEncodingFormat()
+ public function getPlayerType()
{
- return $this->encodingFormat;
+ return $this->playerType;
}
/**
- * @param string $encodingFormat
+ * @param string $playerType
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEncodingFormat($encodingFormat)
+ public function setPlayerType($playerType)
{
$types = [
"string",
];
- $encodingFormat = self::checkTypes($encodingFormat, $types);
+ $playerType = self::checkTypes($playerType, $types);
- $this->encodingFormat = $encodingFormat;
+ $this->playerType = $playerType;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getUploadDate()
+ public function getProductionCompany()
{
- return $this->uploadDate;
+ return $this->productionCompany;
}
/**
- * @param Date|null $uploadDate
+ * @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 setUploadDate($uploadDate)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "string",
];
- $uploadDate = self::checkTypes($uploadDate, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->uploadDate = $uploadDate;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Place|string
*/
- public function getEmbedUrl()
+ public function getRegionsAllowed()
{
- return $this->embedUrl;
+ return $this->regionsAllowed;
}
/**
- * @param string $embedUrl
+ * @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 setEmbedUrl($embedUrl)
+ public function setRegionsAllowed($regionsAllowed)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Place",
"string",
];
- $embedUrl = self::checkTypes($embedUrl, $types);
+ $regionsAllowed = self::checkTypes($regionsAllowed, $types);
- $this->embedUrl = $embedUrl;
+ $this->regionsAllowed = $regionsAllowed;
}
/**
- * @return string
+ * @return bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null
*/
- public function getBitrate()
+ public function getRequiresSubscription()
{
- return $this->bitrate;
+ return $this->requiresSubscription;
}
/**
- * @param string $bitrate
+ * @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 setBitrate($bitrate)
+ public function setRequiresSubscription($requiresSubscription)
{
$types = [
+ "bool",
+ "\OpenActive\Models\SchemaOrg\MediaSubscription",
"string",
+ "null",
];
- $bitrate = self::checkTypes($bitrate, $types);
+ $requiresSubscription = self::checkTypes($requiresSubscription, $types);
- $this->bitrate = $bitrate;
+ $this->requiresSubscription = $requiresSubscription;
}
/**
- * @return DateTime|string|null
+ * @return string
*/
- public function getEndTime()
+ public function getSha256()
{
- return $this->endTime;
+ return $this->sha256;
}
/**
- * @param DateTime|string|null $endTime
+ * @param string $sha256
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEndTime($endTime)
+ public function setSha256($sha256)
{
$types = [
- "DateTime",
- "Time",
- "null",
+ "string",
];
- $endTime = self::checkTypes($endTime, $types);
+ $sha256 = self::checkTypes($sha256, $types);
- $this->endTime = $endTime;
+ $this->sha256 = $sha256;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return DateTime|string|null
*/
- public function getProductionCompany()
+ public function getStartTime()
{
- return $this->productionCompany;
+ return $this->startTime;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @param DateTime|string|null $startTime
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProductionCompany($productionCompany)
+ public function setStartTime($startTime)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "DateTime",
+ "Time",
+ "null",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $startTime = self::checkTypes($startTime, $types);
- $this->productionCompany = $productionCompany;
+ $this->startTime = $startTime;
}
/**
- * @return string
+ * @return Date|DateTime|null
*/
- public function getSha256()
+ public function getUploadDate()
{
- return $this->sha256;
+ return $this->uploadDate;
}
/**
- * @param string $sha256
+ * @param Date|DateTime|null $uploadDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSha256($sha256)
+ public function setUploadDate($uploadDate)
{
$types = [
- "string",
+ "Date",
+ "DateTime",
+ "null",
];
- $sha256 = self::checkTypes($sha256, $types);
+ $uploadDate = self::checkTypes($uploadDate, $types);
- $this->sha256 = $sha256;
+ $this->uploadDate = $uploadDate;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Claim|string
+ * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getInterpretedAsClaim()
+ public function getWidth()
{
- return $this->interpretedAsClaim;
+ return $this->width;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim
+ * @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 setInterpretedAsClaim($interpretedAsClaim)
+ public function setWidth($width)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Claim",
+ "\OpenActive\Models\SchemaOrg\Distance",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types);
+ $width = self::checkTypes($width, $types);
- $this->interpretedAsClaim = $interpretedAsClaim;
+ $this->width = $width;
}
}
diff --git a/src/Models/SchemaOrg/MediaReview.php b/src/Models/SchemaOrg/MediaReview.php
index f0f371ee..fb5425fc 100644
--- a/src/Models/SchemaOrg/MediaReview.php
+++ b/src/Models/SchemaOrg/MediaReview.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "originalMediaContextDescription" => "originalMediaContextDescription",
"mediaAuthenticityCategory" => "mediaAuthenticityCategory",
+ "originalMediaContextDescription" => "originalMediaContextDescription",
"originalMediaLink" => "originalMediaLink",
];
@@ -26,80 +26,80 @@ public static function fieldList() {
}
/**
- * Describes, in a [[MediaReview]] when dealing with [[DecontextualizedContent]], background information that can contribute to better interpretation of the [[MediaObject]].
+ * Indicates a MediaManipulationRatingEnumeration classification of a media object (in the context of how it was published or shared).
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\MediaManipulationRatingEnumeration|null
*/
- protected $originalMediaContextDescription;
+ protected $mediaAuthenticityCategory;
/**
- * Indicates a MediaManipulationRatingEnumeration classification of a media object (in the context of how it was published or shared).
+ * Describes, in a [[MediaReview]] when dealing with [[DecontextualizedContent]], background information that can contribute to better interpretation of the [[MediaObject]].
*
*
- * @var \OpenActive\Enums\SchemaOrg\MediaManipulationRatingEnumeration|null
+ * @var string
*/
- protected $mediaAuthenticityCategory;
+ protected $originalMediaContextDescription;
/**
* 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
+ * @var \OpenActive\Models\SchemaOrg\MediaObject|string|\OpenActive\Models\SchemaOrg\WebPage
*/
protected $originalMediaLink;
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\MediaManipulationRatingEnumeration|null
*/
- public function getOriginalMediaContextDescription()
+ public function getMediaAuthenticityCategory()
{
- return $this->originalMediaContextDescription;
+ return $this->mediaAuthenticityCategory;
}
/**
- * @param string $originalMediaContextDescription
+ * @param \OpenActive\Enums\SchemaOrg\MediaManipulationRatingEnumeration|null $mediaAuthenticityCategory
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOriginalMediaContextDescription($originalMediaContextDescription)
+ public function setMediaAuthenticityCategory($mediaAuthenticityCategory)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\MediaManipulationRatingEnumeration",
+ "null",
];
- $originalMediaContextDescription = self::checkTypes($originalMediaContextDescription, $types);
+ $mediaAuthenticityCategory = self::checkTypes($mediaAuthenticityCategory, $types);
- $this->originalMediaContextDescription = $originalMediaContextDescription;
+ $this->mediaAuthenticityCategory = $mediaAuthenticityCategory;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\MediaManipulationRatingEnumeration|null
+ * @return string
*/
- public function getMediaAuthenticityCategory()
+ public function getOriginalMediaContextDescription()
{
- return $this->mediaAuthenticityCategory;
+ return $this->originalMediaContextDescription;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MediaManipulationRatingEnumeration|null $mediaAuthenticityCategory
+ * @param string $originalMediaContextDescription
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMediaAuthenticityCategory($mediaAuthenticityCategory)
+ public function setOriginalMediaContextDescription($originalMediaContextDescription)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MediaManipulationRatingEnumeration",
- "null",
+ "string",
];
- $mediaAuthenticityCategory = self::checkTypes($mediaAuthenticityCategory, $types);
+ $originalMediaContextDescription = self::checkTypes($originalMediaContextDescription, $types);
- $this->mediaAuthenticityCategory = $mediaAuthenticityCategory;
+ $this->originalMediaContextDescription = $originalMediaContextDescription;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage
+ * @return \OpenActive\Models\SchemaOrg\MediaObject|string|\OpenActive\Models\SchemaOrg\WebPage
*/
public function getOriginalMediaLink()
{
@@ -107,15 +107,15 @@ public function getOriginalMediaLink()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage $originalMediaLink
+ * @param \OpenActive\Models\SchemaOrg\MediaObject|string|\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",
+ "string",
"\OpenActive\Models\SchemaOrg\WebPage",
];
diff --git a/src/Models/SchemaOrg/MediaSubscription.php b/src/Models/SchemaOrg/MediaSubscription.php
index d0219893..83527aab 100644
--- a/src/Models/SchemaOrg/MediaSubscription.php
+++ b/src/Models/SchemaOrg/MediaSubscription.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "expectsAcceptanceOf" => "expectsAcceptanceOf",
"authenticator" => "authenticator",
+ "expectsAcceptanceOf" => "expectsAcceptanceOf",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.
+ * The Organization responsible for authenticating the user's subscription. For example, many media apps require a cable/satellite provider to authenticate your subscription before playing media.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $expectsAcceptanceOf;
+ protected $authenticator;
/**
- * The Organization responsible for authenticating the user's subscription. For example, many media apps require a cable/satellite provider to authenticate your subscription before playing media.
+ * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $authenticator;
+ protected $expectsAcceptanceOf;
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getExpectsAcceptanceOf()
+ public function getAuthenticator()
{
- return $this->expectsAcceptanceOf;
+ return $this->authenticator;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf
+ * @param \OpenActive\Models\SchemaOrg\Organization|string $authenticator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpectsAcceptanceOf($expectsAcceptanceOf)
+ public function setAuthenticator($authenticator)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types);
+ $authenticator = self::checkTypes($authenticator, $types);
- $this->expectsAcceptanceOf = $expectsAcceptanceOf;
+ $this->authenticator = $authenticator;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getAuthenticator()
+ public function getExpectsAcceptanceOf()
{
- return $this->authenticator;
+ return $this->expectsAcceptanceOf;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $authenticator
+ * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAuthenticator($authenticator)
+ public function setExpectsAcceptanceOf($expectsAcceptanceOf)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Offer",
"string",
];
- $authenticator = self::checkTypes($authenticator, $types);
+ $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types);
- $this->authenticator = $authenticator;
+ $this->expectsAcceptanceOf = $expectsAcceptanceOf;
}
}
diff --git a/src/Models/SchemaOrg/MedicalClinic.php b/src/Models/SchemaOrg/MedicalClinic.php
index 9a1a5e33..5dd568f0 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
@@ -28,7 +28,7 @@ public static function fieldList() {
* A medical service available from this provider.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
protected $availableService;
@@ -41,7 +41,7 @@ public static function fieldList() {
protected $medicalSpecialty;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
public function getAvailableService()
{
@@ -49,15 +49,15 @@ public function getAvailableService()
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService
+ * @param \OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalTherapy|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\MedicalProcedure",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
diff --git a/src/Models/SchemaOrg/MedicalCode.php b/src/Models/SchemaOrg/MedicalCode.php
index 6a82a1c9..8d0d2be4 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
diff --git a/src/Models/SchemaOrg/MedicalCondition.php b/src/Models/SchemaOrg/MedicalCondition.php
index 3c751533..4a813756 100644
--- a/src/Models/SchemaOrg/MedicalCondition.php
+++ b/src/Models/SchemaOrg/MedicalCondition.php
@@ -17,74 +17,83 @@ public static function getType()
public static function fieldList() {
$fields = [
- "possibleComplication" => "possibleComplication",
- "naturalProgression" => "naturalProgression",
- "primaryPrevention" => "primaryPrevention",
- "status" => "status",
+ "associatedAnatomy" => "associatedAnatomy",
+ "cause" => "cause",
"differentialDiagnosis" => "differentialDiagnosis",
- "stage" => "stage",
- "pathophysiology" => "pathophysiology",
"drug" => "drug",
- "secondaryPrevention" => "secondaryPrevention",
- "associatedAnatomy" => "associatedAnatomy",
- "signOrSymptom" => "signOrSymptom",
- "typicalTest" => "typicalTest",
"epidemiology" => "epidemiology",
- "riskFactor" => "riskFactor",
"expectedPrognosis" => "expectedPrognosis",
+ "naturalProgression" => "naturalProgression",
+ "pathophysiology" => "pathophysiology",
+ "possibleComplication" => "possibleComplication",
"possibleTreatment" => "possibleTreatment",
+ "primaryPrevention" => "primaryPrevention",
+ "riskFactor" => "riskFactor",
+ "secondaryPrevention" => "secondaryPrevention",
+ "signOrSymptom" => "signOrSymptom",
+ "stage" => "stage",
+ "status" => "status",
+ "typicalTest" => "typicalTest",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A possible unexpected and unfavorable evolution of a medical condition. Complications may include worsening of the signs or symptoms of the disease, extension of the condition to other organ systems, etc.
+ * The anatomy of the underlying organ system or structures associated with this entity.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
*/
- protected $possibleComplication;
+ protected $associatedAnatomy;
/**
- * The expected progression of the condition if it is not treated and allowed to progress naturally.
+ * The cause of a medical condition.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCause|string
*/
- protected $naturalProgression;
+ protected $cause;
/**
- * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.
+ * 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 $primaryPrevention;
+ protected $differentialDiagnosis;
/**
- * The status of the study (enumerated).
+ * Specifying a drug or medicine used in a medication procedure.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var \OpenActive\Models\SchemaOrg\Drug|string
*/
- protected $status;
+ protected $drug;
/**
- * One of a set of differential diagnoses for the condition. Specifically, a closely-related or competing diagnosis typically considered later in the cognitive process whereby this medical condition is distinguished from others most likely responsible for a similar collection of signs and symptoms to reach the most parsimonious diagnosis or diagnoses in a patient.
+ * The characteristics of associated patients, such as age, gender, race etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\DDxElement|string
+ * @var string
*/
- protected $differentialDiagnosis;
+ protected $epidemiology;
/**
- * The stage of the condition, if applicable.
+ * The likely outcome in either the short term or long term of the medical condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
+ * @var string
*/
- protected $stage;
+ protected $expectedPrognosis;
+
+ /**
+ * The expected progression of the condition if it is not treated and allowed to progress naturally.
+ *
+ *
+ * @var string
+ */
+ protected $naturalProgression;
/**
* Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.
@@ -95,225 +104,249 @@ public static function fieldList() {
protected $pathophysiology;
/**
- * Specifying a drug or medicine used in a medication procedure.
+ * A possible unexpected and unfavorable evolution of a medical condition. Complications may include worsening of the signs or symptoms of the disease, extension of the condition to other organ systems, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Drug|string
+ * @var string
*/
- protected $drug;
+ protected $possibleComplication;
/**
- * A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition.
+ * A possible treatment to address this condition, sign or symptom.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\Drug|\OpenActive\Models\SchemaOrg\DrugClass|\OpenActive\Models\SchemaOrg\LifestyleModification|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $secondaryPrevention;
+ protected $possibleTreatment;
/**
- * The anatomy of the underlying organ system or structures associated with this entity.
+ * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.
*
*
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $associatedAnatomy;
+ protected $primaryPrevention;
/**
- * A sign or symptom of this condition. Signs are objective or physically observable manifestations of the medical condition while symptoms are the subjective experience of the medical condition.
+ * 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\MedicalSignOrSymptom|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
*/
- protected $signOrSymptom;
+ protected $riskFactor;
/**
- * A medical test typically performed given this condition.
+ * A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @var \OpenActive\Models\SchemaOrg\Drug|\OpenActive\Models\SchemaOrg\DrugClass|\OpenActive\Models\SchemaOrg\LifestyleModification|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- protected $typicalTest;
+ protected $secondaryPrevention;
/**
- * The characteristics of associated patients, such as age, gender, race etc.
+ * A sign or symptom of this condition. Signs are objective or physically observable manifestations of the medical condition while symptoms are the subjective experience of the medical condition.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
*/
- protected $epidemiology;
+ protected $signOrSymptom;
/**
- * A modifiable or non-modifiable factor that increases the risk of a patient contracting this condition, e.g. age, coexisting condition.
+ * The stage of the condition, if applicable.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
*/
- protected $riskFactor;
+ protected $stage;
/**
- * The likely outcome in either the short term or long term of the medical condition.
+ * The status of the study (enumerated).
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- protected $expectedPrognosis;
+ protected $status;
/**
- * A possible treatment to address this condition, sign or symptom.
+ * A medical test typically performed given this condition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- protected $possibleTreatment;
+ protected $typicalTest;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
*/
- public function getPossibleComplication()
+ public function getAssociatedAnatomy()
{
- return $this->possibleComplication;
+ return $this->associatedAnatomy;
}
/**
- * @param string $possibleComplication
+ * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $associatedAnatomy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPossibleComplication($possibleComplication)
+ public function setAssociatedAnatomy($associatedAnatomy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
+ "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
+ "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
"string",
];
- $possibleComplication = self::checkTypes($possibleComplication, $types);
+ $associatedAnatomy = self::checkTypes($associatedAnatomy, $types);
- $this->possibleComplication = $possibleComplication;
+ $this->associatedAnatomy = $associatedAnatomy;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalCause|string
*/
- public function getNaturalProgression()
+ public function getCause()
{
- return $this->naturalProgression;
+ return $this->cause;
}
/**
- * @param string $naturalProgression
+ * @param \OpenActive\Models\SchemaOrg\MedicalCause|string $cause
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNaturalProgression($naturalProgression)
+ public function setCause($cause)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalCause",
"string",
];
- $naturalProgression = self::checkTypes($naturalProgression, $types);
+ $cause = self::checkTypes($cause, $types);
- $this->naturalProgression = $naturalProgression;
+ $this->cause = $cause;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\DDxElement|string
*/
- public function getPrimaryPrevention()
+ public function getDifferentialDiagnosis()
{
- return $this->primaryPrevention;
+ return $this->differentialDiagnosis;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $primaryPrevention
+ * @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 setPrimaryPrevention($primaryPrevention)
+ public function setDifferentialDiagnosis($differentialDiagnosis)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\DDxElement",
"string",
];
- $primaryPrevention = self::checkTypes($primaryPrevention, $types);
+ $differentialDiagnosis = self::checkTypes($differentialDiagnosis, $types);
- $this->primaryPrevention = $primaryPrevention;
+ $this->differentialDiagnosis = $differentialDiagnosis;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return \OpenActive\Models\SchemaOrg\Drug|string
*/
- public function getStatus()
+ public function getDrug()
{
- return $this->status;
+ return $this->drug;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param \OpenActive\Models\SchemaOrg\Drug|string $drug
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStatus($status)
+ public function setDrug($drug)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Drug",
"string",
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
- "null",
];
- $status = self::checkTypes($status, $types);
+ $drug = self::checkTypes($drug, $types);
- $this->status = $status;
+ $this->drug = $drug;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DDxElement|string
+ * @return string
*/
- public function getDifferentialDiagnosis()
+ public function getEpidemiology()
{
- return $this->differentialDiagnosis;
+ return $this->epidemiology;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DDxElement|string $differentialDiagnosis
+ * @param string $epidemiology
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDifferentialDiagnosis($differentialDiagnosis)
+ public function setEpidemiology($epidemiology)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DDxElement",
"string",
];
- $differentialDiagnosis = self::checkTypes($differentialDiagnosis, $types);
+ $epidemiology = self::checkTypes($epidemiology, $types);
- $this->differentialDiagnosis = $differentialDiagnosis;
+ $this->epidemiology = $epidemiology;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
+ * @return string
*/
- public function getStage()
+ public function getExpectedPrognosis()
{
- return $this->stage;
+ return $this->expectedPrognosis;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalConditionStage|string $stage
+ * @param string $expectedPrognosis
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStage($stage)
+ public function setExpectedPrognosis($expectedPrognosis)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalConditionStage",
"string",
];
- $stage = self::checkTypes($stage, $types);
+ $expectedPrognosis = self::checkTypes($expectedPrognosis, $types);
- $this->stage = $stage;
+ $this->expectedPrognosis = $expectedPrognosis;
+ }
+
+ /**
+ * @return string
+ */
+ public function getNaturalProgression()
+ {
+ return $this->naturalProgression;
+ }
+
+ /**
+ * @param string $naturalProgression
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setNaturalProgression($naturalProgression)
+ {
+ $types = [
+ "string",
+ ];
+
+ $naturalProgression = self::checkTypes($naturalProgression, $types);
+
+ $this->naturalProgression = $naturalProgression;
}
/**
@@ -341,228 +374,235 @@ public function setPathophysiology($pathophysiology)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Drug|string
+ * @return string
*/
- public function getDrug()
+ public function getPossibleComplication()
{
- return $this->drug;
+ return $this->possibleComplication;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Drug|string $drug
+ * @param string $possibleComplication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDrug($drug)
+ public function setPossibleComplication($possibleComplication)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Drug",
"string",
];
- $drug = self::checkTypes($drug, $types);
+ $possibleComplication = self::checkTypes($possibleComplication, $types);
- $this->drug = $drug;
+ $this->possibleComplication = $possibleComplication;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\Drug|\OpenActive\Models\SchemaOrg\DrugClass|\OpenActive\Models\SchemaOrg\LifestyleModification|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getSecondaryPrevention()
+ public function getPossibleTreatment()
{
- return $this->secondaryPrevention;
+ return $this->possibleTreatment;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $secondaryPrevention
+ * @param \OpenActive\Models\SchemaOrg\Drug|\OpenActive\Models\SchemaOrg\DrugClass|\OpenActive\Models\SchemaOrg\LifestyleModification|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSecondaryPrevention($secondaryPrevention)
+ public function setPossibleTreatment($possibleTreatment)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\DrugClass",
+ "\OpenActive\Models\SchemaOrg\LifestyleModification",
"\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $secondaryPrevention = self::checkTypes($secondaryPrevention, $types);
+ $possibleTreatment = self::checkTypes($possibleTreatment, $types);
- $this->secondaryPrevention = $secondaryPrevention;
+ $this->possibleTreatment = $possibleTreatment;
}
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getAssociatedAnatomy()
+ public function getPrimaryPrevention()
{
- return $this->associatedAnatomy;
+ return $this->primaryPrevention;
}
/**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $associatedAnatomy
+ * @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 setAssociatedAnatomy($associatedAnatomy)
+ public function setPrimaryPrevention($primaryPrevention)
{
$types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "\OpenActive\Models\SchemaOrg\AnatomicalSystem",
- "\OpenActive\Models\SchemaOrg\SuperficialAnatomy",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $associatedAnatomy = self::checkTypes($associatedAnatomy, $types);
+ $primaryPrevention = self::checkTypes($primaryPrevention, $types);
- $this->associatedAnatomy = $associatedAnatomy;
+ $this->primaryPrevention = $primaryPrevention;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
*/
- public function getSignOrSymptom()
+ public function getRiskFactor()
{
- return $this->signOrSymptom;
+ return $this->riskFactor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $signOrSymptom
+ * @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 setSignOrSymptom($signOrSymptom)
+ public function setRiskFactor($riskFactor)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom",
+ "\OpenActive\Models\SchemaOrg\MedicalRiskFactor",
"string",
];
- $signOrSymptom = self::checkTypes($signOrSymptom, $types);
+ $riskFactor = self::checkTypes($riskFactor, $types);
- $this->signOrSymptom = $signOrSymptom;
+ $this->riskFactor = $riskFactor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @return \OpenActive\Models\SchemaOrg\Drug|\OpenActive\Models\SchemaOrg\DrugClass|\OpenActive\Models\SchemaOrg\LifestyleModification|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
- public function getTypicalTest()
+ public function getSecondaryPrevention()
{
- return $this->typicalTest;
+ return $this->secondaryPrevention;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $typicalTest
+ * @param \OpenActive\Models\SchemaOrg\Drug|\OpenActive\Models\SchemaOrg\DrugClass|\OpenActive\Models\SchemaOrg\LifestyleModification|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $secondaryPrevention
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTypicalTest($typicalTest)
+ public function setSecondaryPrevention($secondaryPrevention)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
+ "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\DrugClass",
+ "\OpenActive\Models\SchemaOrg\LifestyleModification",
+ "\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
- $typicalTest = self::checkTypes($typicalTest, $types);
+ $secondaryPrevention = self::checkTypes($secondaryPrevention, $types);
- $this->typicalTest = $typicalTest;
+ $this->secondaryPrevention = $secondaryPrevention;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string
*/
- public function getEpidemiology()
+ public function getSignOrSymptom()
{
- return $this->epidemiology;
+ return $this->signOrSymptom;
}
/**
- * @param string $epidemiology
+ * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $signOrSymptom
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setEpidemiology($epidemiology)
+ public function setSignOrSymptom($signOrSymptom)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom",
"string",
];
- $epidemiology = self::checkTypes($epidemiology, $types);
+ $signOrSymptom = self::checkTypes($signOrSymptom, $types);
- $this->epidemiology = $epidemiology;
+ $this->signOrSymptom = $signOrSymptom;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalConditionStage|string
*/
- public function getRiskFactor()
+ public function getStage()
{
- return $this->riskFactor;
+ return $this->stage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string $riskFactor
+ * @param \OpenActive\Models\SchemaOrg\MedicalConditionStage|string $stage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRiskFactor($riskFactor)
+ public function setStage($stage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalRiskFactor",
+ "\OpenActive\Models\SchemaOrg\MedicalConditionStage",
"string",
];
- $riskFactor = self::checkTypes($riskFactor, $types);
+ $stage = self::checkTypes($stage, $types);
- $this->riskFactor = $riskFactor;
+ $this->stage = $stage;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- public function getExpectedPrognosis()
+ public function getStatus()
{
- return $this->expectedPrognosis;
+ return $this->status;
}
/**
- * @param string $expectedPrognosis
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setExpectedPrognosis($expectedPrognosis)
+ public function setStatus($status)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
"string",
+ "null",
];
- $expectedPrognosis = self::checkTypes($expectedPrognosis, $types);
+ $status = self::checkTypes($status, $types);
- $this->expectedPrognosis = $expectedPrognosis;
+ $this->status = $status;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- public function getPossibleTreatment()
+ public function getTypicalTest()
{
- return $this->possibleTreatment;
+ return $this->typicalTest;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment
+ * @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 setPossibleTreatment($possibleTreatment)
+ public function setTypicalTest($typicalTest)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTherapy",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"string",
];
- $possibleTreatment = self::checkTypes($possibleTreatment, $types);
+ $typicalTest = self::checkTypes($typicalTest, $types);
- $this->possibleTreatment = $possibleTreatment;
+ $this->typicalTest = $typicalTest;
}
}
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..b7cd2934 100644
--- a/src/Models/SchemaOrg/MedicalDevice.php
+++ b/src/Models/SchemaOrg/MedicalDevice.php
@@ -18,18 +18,18 @@ public static function getType()
public static function fieldList() {
$fields = [
"adverseOutcome" => "adverseOutcome",
- "preOp" => "preOp",
- "seriousAdverseOutcome" => "seriousAdverseOutcome",
+ "contraindication" => "contraindication",
"postOp" => "postOp",
+ "preOp" => "preOp",
"procedure" => "procedure",
- "contraindication" => "contraindication",
+ "seriousAdverseOutcome" => "seriousAdverseOutcome",
];
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 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
@@ -37,28 +37,28 @@ public static function fieldList() {
protected $adverseOutcome;
/**
- * A description of the workup, testing, and other preparations required before implanting this device.
+ * A contraindication for this therapy.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalContraindication|string
*/
- protected $preOp;
+ 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.
+ * A description of the postoperative procedures, care, and/or followups for this device.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var string
*/
- protected $seriousAdverseOutcome;
+ protected $postOp;
/**
- * A description of the postoperative procedures, care, and/or followups for this device.
+ * A description of the workup, testing, and other preparations required before implanting this device.
*
*
* @var string
*/
- protected $postOp;
+ protected $preOp;
/**
* A description of the procedure involved in setting up, using, and/or installing the device.
@@ -69,12 +69,12 @@ public static function fieldList() {
protected $procedure;
/**
- * A contraindication for this therapy.
+ * 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|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $contraindication;
+ protected $seriousAdverseOutcome;
/**
* @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
@@ -102,76 +102,76 @@ public function setAdverseOutcome($adverseOutcome)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalContraindication|string
*/
- public function getPreOp()
+ public function getContraindication()
{
- return $this->preOp;
+ return $this->contraindication;
}
/**
- * @param string $preOp
+ * @param \OpenActive\Models\SchemaOrg\MedicalContraindication|string $contraindication
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPreOp($preOp)
+ public function setContraindication($contraindication)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalContraindication",
"string",
];
- $preOp = self::checkTypes($preOp, $types);
+ $contraindication = self::checkTypes($contraindication, $types);
- $this->preOp = $preOp;
+ $this->contraindication = $contraindication;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return string
*/
- public function getSeriousAdverseOutcome()
+ public function getPostOp()
{
- return $this->seriousAdverseOutcome;
+ return $this->postOp;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $seriousAdverseOutcome
+ * @param string $postOp
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSeriousAdverseOutcome($seriousAdverseOutcome)
+ public function setPostOp($postOp)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $seriousAdverseOutcome = self::checkTypes($seriousAdverseOutcome, $types);
+ $postOp = self::checkTypes($postOp, $types);
- $this->seriousAdverseOutcome = $seriousAdverseOutcome;
+ $this->postOp = $postOp;
}
/**
* @return string
*/
- public function getPostOp()
+ public function getPreOp()
{
- return $this->postOp;
+ return $this->preOp;
}
/**
- * @param string $postOp
+ * @param string $preOp
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPostOp($postOp)
+ public function setPreOp($preOp)
{
$types = [
"string",
];
- $postOp = self::checkTypes($postOp, $types);
+ $preOp = self::checkTypes($preOp, $types);
- $this->postOp = $postOp;
+ $this->preOp = $preOp;
}
/**
@@ -199,28 +199,28 @@ public function setProcedure($procedure)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getContraindication()
+ public function getSeriousAdverseOutcome()
{
- return $this->contraindication;
+ return $this->seriousAdverseOutcome;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication
+ * @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 setContraindication($contraindication)
+ public function setSeriousAdverseOutcome($seriousAdverseOutcome)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
- "\OpenActive\Models\SchemaOrg\MedicalContraindication",
];
- $contraindication = self::checkTypes($contraindication, $types);
+ $seriousAdverseOutcome = self::checkTypes($seriousAdverseOutcome, $types);
- $this->contraindication = $contraindication;
+ $this->seriousAdverseOutcome = $seriousAdverseOutcome;
}
}
diff --git a/src/Models/SchemaOrg/MedicalEntity.php b/src/Models/SchemaOrg/MedicalEntity.php
index 3d730b94..1e1b8a96 100644
--- a/src/Models/SchemaOrg/MedicalEntity.php
+++ b/src/Models/SchemaOrg/MedicalEntity.php
@@ -17,26 +17,26 @@ public static function getType()
public static function fieldList() {
$fields = [
- "legalStatus" => "legalStatus",
- "funding" => "funding",
- "study" => "study",
"code" => "code",
+ "funding" => "funding",
"guideline" => "guideline",
- "recognizingAuthority" => "recognizingAuthority",
+ "legalStatus" => "legalStatus",
"medicineSystem" => "medicineSystem",
+ "recognizingAuthority" => "recognizingAuthority",
"relevantSpecialty" => "relevantSpecialty",
+ "study" => "study",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The drug or supplement's legal status, including any controlled substance schedules that apply.
+ * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalCode|string
*/
- protected $legalStatus;
+ protected $code;
/**
* A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].
@@ -47,28 +47,28 @@ public static function fieldList() {
protected $funding;
/**
- * A medical study or trial related to this entity.
+ * A medical guideline related to this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalStudy|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalGuideline|string
*/
- protected $study;
+ protected $guideline;
/**
- * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.
+ * The drug or supplement's legal status, including any controlled substance schedules that apply.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalCode|string
+ * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- protected $code;
+ protected $legalStatus;
/**
- * 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.
@@ -79,46 +79,44 @@ public static function fieldList() {
protected $recognizingAuthority;
/**
- * The system of medicine that includes this MedicalEntity, for example 'evidence-based', 'homeopathic', 'chiropractic', etc.
+ * If applicable, a medical specialty in which this entity is relevant.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicineSystem|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- protected $medicineSystem;
+ protected $relevantSpecialty;
/**
- * If applicable, a medical specialty in which this entity is relevant.
+ * A medical study or trial related to this entity.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalStudy|string
*/
- protected $relevantSpecialty;
+ protected $study;
/**
- * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalCode|string
*/
- public function getLegalStatus()
+ public function getCode()
{
- return $this->legalStatus;
+ return $this->code;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus
+ * @param \OpenActive\Models\SchemaOrg\MedicalCode|string $code
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLegalStatus($legalStatus)
+ public function setCode($code)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Models\SchemaOrg\MedicalCode",
"string",
- "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
- "null",
];
- $legalStatus = self::checkTypes($legalStatus, $types);
+ $code = self::checkTypes($code, $types);
- $this->legalStatus = $legalStatus;
+ $this->code = $code;
}
/**
@@ -147,78 +145,80 @@ public function setFunding($funding)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalGuideline|string
*/
- public function getStudy()
+ public function getGuideline()
{
- return $this->study;
+ return $this->guideline;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalStudy|string $study
+ * @param \OpenActive\Models\SchemaOrg\MedicalGuideline|string $guideline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStudy($study)
+ public function setGuideline($guideline)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalStudy",
+ "\OpenActive\Models\SchemaOrg\MedicalGuideline",
"string",
];
- $study = self::checkTypes($study, $types);
+ $guideline = self::checkTypes($guideline, $types);
- $this->study = $study;
+ $this->guideline = $guideline;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalCode|string
+ * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
- public function getCode()
+ public function getLegalStatus()
{
- return $this->code;
+ return $this->legalStatus;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCode|string $code
+ * @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 setCode($code)
+ public function setLegalStatus($legalStatus)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalCode",
+ "\OpenActive\Models\SchemaOrg\DrugLegalStatus",
+ "\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
"string",
+ "null",
];
- $code = self::checkTypes($code, $types);
+ $legalStatus = self::checkTypes($legalStatus, $types);
- $this->code = $code;
+ $this->legalStatus = $legalStatus;
}
/**
- * @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;
}
/**
@@ -247,53 +247,53 @@ public function setRecognizingAuthority($recognizingAuthority)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicineSystem|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
*/
- public function getMedicineSystem()
+ public function getRelevantSpecialty()
{
- return $this->medicineSystem;
+ return $this->relevantSpecialty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicineSystem|string $medicineSystem
+ * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $relevantSpecialty
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMedicineSystem($medicineSystem)
+ public function setRelevantSpecialty($relevantSpecialty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicineSystem",
+ "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
"string",
];
- $medicineSystem = self::checkTypes($medicineSystem, $types);
+ $relevantSpecialty = self::checkTypes($relevantSpecialty, $types);
- $this->medicineSystem = $medicineSystem;
+ $this->relevantSpecialty = $relevantSpecialty;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string
*/
- public function getRelevantSpecialty()
+ public function getStudy()
{
- return $this->relevantSpecialty;
+ return $this->study;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $relevantSpecialty
+ * @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 setRelevantSpecialty($relevantSpecialty)
+ public function setStudy($study)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalSpecialty",
+ "\OpenActive\Models\SchemaOrg\MedicalStudy",
"string",
];
- $relevantSpecialty = self::checkTypes($relevantSpecialty, $types);
+ $study = self::checkTypes($study, $types);
- $this->relevantSpecialty = $relevantSpecialty;
+ $this->study = $study;
}
}
diff --git a/src/Models/SchemaOrg/MedicalGuideline.php b/src/Models/SchemaOrg/MedicalGuideline.php
index 63d3aa89..265d2de6 100644
--- a/src/Models/SchemaOrg/MedicalGuideline.php
+++ b/src/Models/SchemaOrg/MedicalGuideline.php
@@ -19,8 +19,8 @@ public static function fieldList() {
$fields = [
"evidenceLevel" => "evidenceLevel",
"evidenceOrigin" => "evidenceOrigin",
- "guidelineSubject" => "guidelineSubject",
"guidelineDate" => "guidelineDate",
+ "guidelineSubject" => "guidelineSubject",
];
return array_merge(parent::fieldList(), $fields);
@@ -43,20 +43,20 @@ public static function fieldList() {
protected $evidenceOrigin;
/**
- * The medical conditions, treatments, etc. that are the subject of the guideline.
+ * Date on which this guideline's recommendation was made.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var Date|null
*/
- protected $guidelineSubject;
+ protected $guidelineDate;
/**
- * Date on which this guideline's recommendation was made.
+ * The medical conditions, treatments, etc. that are the subject of the guideline.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $guidelineDate;
+ protected $guidelineSubject;
/**
* @return \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string
@@ -108,53 +108,53 @@ public function setEvidenceOrigin($evidenceOrigin)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return Date|null
*/
- public function getGuidelineSubject()
+ public function getGuidelineDate()
{
- return $this->guidelineSubject;
+ return $this->guidelineDate;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $guidelineSubject
+ * @param Date|null $guidelineDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGuidelineSubject($guidelineSubject)
+ public function setGuidelineDate($guidelineDate)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
- "string",
+ "Date",
+ "null",
];
- $guidelineSubject = self::checkTypes($guidelineSubject, $types);
+ $guidelineDate = self::checkTypes($guidelineDate, $types);
- $this->guidelineSubject = $guidelineSubject;
+ $this->guidelineDate = $guidelineDate;
}
/**
- * @return Date|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getGuidelineDate()
+ public function getGuidelineSubject()
{
- return $this->guidelineDate;
+ return $this->guidelineSubject;
}
/**
- * @param Date|null $guidelineDate
+ * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $guidelineSubject
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setGuidelineDate($guidelineDate)
+ public function setGuidelineSubject($guidelineSubject)
{
$types = [
- "Date",
- "null",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
+ "string",
];
- $guidelineDate = self::checkTypes($guidelineDate, $types);
+ $guidelineSubject = self::checkTypes($guidelineSubject, $types);
- $this->guidelineDate = $guidelineDate;
+ $this->guidelineSubject = $guidelineSubject;
}
}
diff --git a/src/Models/SchemaOrg/MedicalOrganization.php b/src/Models/SchemaOrg/MedicalOrganization.php
index f726aab1..277f4aba 100644
--- a/src/Models/SchemaOrg/MedicalOrganization.php
+++ b/src/Models/SchemaOrg/MedicalOrganization.php
@@ -17,8 +17,8 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isAcceptingNewPatients" => "isAcceptingNewPatients",
"healthPlanNetworkId" => "healthPlanNetworkId",
+ "isAcceptingNewPatients" => "isAcceptingNewPatients",
"medicalSpecialty" => "medicalSpecialty",
];
@@ -26,20 +26,20 @@ public static function fieldList() {
}
/**
- * Whether the provider is accepting new patients.
+ * Name or unique ID of network. (Networks are often reused across different insurance plans.)
*
*
- * @var bool|null
+ * @var string
*/
- protected $isAcceptingNewPatients;
+ protected $healthPlanNetworkId;
/**
- * Name or unique ID of network. (Networks are often reused across different insurance plans).
+ * Whether the provider is accepting new patients.
*
*
- * @var string
+ * @var bool|null
*/
- protected $healthPlanNetworkId;
+ protected $isAcceptingNewPatients;
/**
* A medical specialty of the provider.
@@ -50,52 +50,52 @@ public static function fieldList() {
protected $medicalSpecialty;
/**
- * @return bool|null
+ * @return string
*/
- public function getIsAcceptingNewPatients()
+ public function getHealthPlanNetworkId()
{
- return $this->isAcceptingNewPatients;
+ return $this->healthPlanNetworkId;
}
/**
- * @param bool|null $isAcceptingNewPatients
+ * @param string $healthPlanNetworkId
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsAcceptingNewPatients($isAcceptingNewPatients)
+ public function setHealthPlanNetworkId($healthPlanNetworkId)
{
$types = [
- "bool",
- "null",
+ "string",
];
- $isAcceptingNewPatients = self::checkTypes($isAcceptingNewPatients, $types);
+ $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types);
- $this->isAcceptingNewPatients = $isAcceptingNewPatients;
+ $this->healthPlanNetworkId = $healthPlanNetworkId;
}
/**
- * @return string
+ * @return bool|null
*/
- public function getHealthPlanNetworkId()
+ public function getIsAcceptingNewPatients()
{
- return $this->healthPlanNetworkId;
+ return $this->isAcceptingNewPatients;
}
/**
- * @param string $healthPlanNetworkId
+ * @param bool|null $isAcceptingNewPatients
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setHealthPlanNetworkId($healthPlanNetworkId)
+ public function setIsAcceptingNewPatients($isAcceptingNewPatients)
{
$types = [
- "string",
+ "bool",
+ "null",
];
- $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types);
+ $isAcceptingNewPatients = self::checkTypes($isAcceptingNewPatients, $types);
- $this->healthPlanNetworkId = $healthPlanNetworkId;
+ $this->isAcceptingNewPatients = $isAcceptingNewPatients;
}
/**
diff --git a/src/Models/SchemaOrg/MedicalProcedure.php b/src/Models/SchemaOrg/MedicalProcedure.php
index e92c5117..2aebd8f8 100644
--- a/src/Models/SchemaOrg/MedicalProcedure.php
+++ b/src/Models/SchemaOrg/MedicalProcedure.php
@@ -17,212 +17,212 @@ public static function getType()
public static function fieldList() {
$fields = [
- "procedureType" => "procedureType",
- "preparation" => "preparation",
"bodyLocation" => "bodyLocation",
- "status" => "status",
- "howPerformed" => "howPerformed",
"followup" => "followup",
+ "howPerformed" => "howPerformed",
+ "preparation" => "preparation",
+ "procedureType" => "procedureType",
+ "status" => "status",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The type of procedure, for example Surgical, Noninvasive, or Percutaneous.
+ * Location in the body of the anatomical structure.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
+ * @var string
*/
- protected $procedureType;
+ protected $bodyLocation;
/**
- * Typical preparation that a patient must undergo before having the procedure performed.
+ * Typical or recommended followup care after the procedure is performed.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var string
*/
- protected $preparation;
+ protected $followup;
/**
- * Location in the body of the anatomical structure.
+ * How the procedure is performed.
*
*
* @var string
*/
- protected $bodyLocation;
+ protected $howPerformed;
/**
- * The status of the study (enumerated).
+ * Typical preparation that a patient must undergo before having the procedure performed.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $status;
+ protected $preparation;
/**
- * How the procedure is performed.
+ * The type of procedure, for example Surgical, Noninvasive, or Percutaneous.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
*/
- protected $howPerformed;
+ protected $procedureType;
/**
- * Typical or recommended followup care after the procedure is performed.
+ * The status of the study (enumerated).
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- protected $followup;
+ protected $status;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
+ * @return string
*/
- public function getProcedureType()
+ public function getBodyLocation()
{
- return $this->procedureType;
+ return $this->bodyLocation;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalProcedureType|string $procedureType
+ * @param string $bodyLocation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setProcedureType($procedureType)
+ public function setBodyLocation($bodyLocation)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalProcedureType",
"string",
];
- $procedureType = self::checkTypes($procedureType, $types);
+ $bodyLocation = self::checkTypes($bodyLocation, $types);
- $this->procedureType = $procedureType;
+ $this->bodyLocation = $bodyLocation;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return string
*/
- public function getPreparation()
+ public function getFollowup()
{
- return $this->preparation;
+ return $this->followup;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $preparation
+ * @param string $followup
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPreparation($preparation)
+ public function setFollowup($followup)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $preparation = self::checkTypes($preparation, $types);
+ $followup = self::checkTypes($followup, $types);
- $this->preparation = $preparation;
+ $this->followup = $followup;
}
/**
* @return string
*/
- public function getBodyLocation()
+ public function getHowPerformed()
{
- return $this->bodyLocation;
+ return $this->howPerformed;
}
/**
- * @param string $bodyLocation
+ * @param string $howPerformed
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setBodyLocation($bodyLocation)
+ public function setHowPerformed($howPerformed)
{
$types = [
"string",
];
- $bodyLocation = self::checkTypes($bodyLocation, $types);
+ $howPerformed = self::checkTypes($howPerformed, $types);
- $this->bodyLocation = $bodyLocation;
+ $this->howPerformed = $howPerformed;
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getStatus()
+ public function getPreparation()
{
- return $this->status;
+ return $this->preparation;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $preparation
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStatus($status)
+ public function setPreparation($preparation)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
- "null",
];
- $status = self::checkTypes($status, $types);
+ $preparation = self::checkTypes($preparation, $types);
- $this->status = $status;
+ $this->preparation = $preparation;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MedicalProcedureType|string
*/
- public function getHowPerformed()
+ public function getProcedureType()
{
- return $this->howPerformed;
+ return $this->procedureType;
}
/**
- * @param string $howPerformed
+ * @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 setHowPerformed($howPerformed)
+ public function setProcedureType($procedureType)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MedicalProcedureType",
"string",
];
- $howPerformed = self::checkTypes($howPerformed, $types);
+ $procedureType = self::checkTypes($procedureType, $types);
- $this->howPerformed = $howPerformed;
+ $this->procedureType = $procedureType;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- public function getFollowup()
+ public function getStatus()
{
- return $this->followup;
+ return $this->status;
}
/**
- * @param string $followup
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setFollowup($followup)
+ public function setStatus($status)
{
$types = [
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
"string",
+ "null",
];
- $followup = self::checkTypes($followup, $types);
+ $status = self::checkTypes($status, $types);
- $this->followup = $followup;
+ $this->status = $status;
}
}
diff --git a/src/Models/SchemaOrg/MedicalSign.php b/src/Models/SchemaOrg/MedicalSign.php
index cb6ceebf..3842b425 100644
--- a/src/Models/SchemaOrg/MedicalSign.php
+++ b/src/Models/SchemaOrg/MedicalSign.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "identifyingTest" => "identifyingTest",
"identifyingExam" => "identifyingExam",
+ "identifyingTest" => "identifyingTest",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A diagnostic test that can identify this sign.
+ * A physical examination that can identify this sign.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @var \OpenActive\Models\SchemaOrg\PhysicalExam|string
*/
- protected $identifyingTest;
+ protected $identifyingExam;
/**
- * A physical examination that can identify this sign.
+ * A diagnostic test that can identify this sign.
*
*
- * @var \OpenActive\Models\SchemaOrg\PhysicalExam|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- protected $identifyingExam;
+ protected $identifyingTest;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
+ * @return \OpenActive\Models\SchemaOrg\PhysicalExam|string
*/
- public function getIdentifyingTest()
+ public function getIdentifyingExam()
{
- return $this->identifyingTest;
+ return $this->identifyingExam;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $identifyingTest
+ * @param \OpenActive\Models\SchemaOrg\PhysicalExam|string $identifyingExam
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIdentifyingTest($identifyingTest)
+ public function setIdentifyingExam($identifyingExam)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalTest",
+ "\OpenActive\Models\SchemaOrg\PhysicalExam",
"string",
];
- $identifyingTest = self::checkTypes($identifyingTest, $types);
+ $identifyingExam = self::checkTypes($identifyingExam, $types);
- $this->identifyingTest = $identifyingTest;
+ $this->identifyingExam = $identifyingExam;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PhysicalExam|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalTest|string
*/
- public function getIdentifyingExam()
+ public function getIdentifyingTest()
{
- return $this->identifyingExam;
+ return $this->identifyingTest;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PhysicalExam|string $identifyingExam
+ * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $identifyingTest
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIdentifyingExam($identifyingExam)
+ public function setIdentifyingTest($identifyingTest)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PhysicalExam",
+ "\OpenActive\Models\SchemaOrg\MedicalTest",
"string",
];
- $identifyingExam = self::checkTypes($identifyingExam, $types);
+ $identifyingTest = self::checkTypes($identifyingTest, $types);
- $this->identifyingExam = $identifyingExam;
+ $this->identifyingTest = $identifyingTest;
}
}
diff --git a/src/Models/SchemaOrg/MedicalSignOrSymptom.php b/src/Models/SchemaOrg/MedicalSignOrSymptom.php
index 3ce026e5..7742423c 100644
--- a/src/Models/SchemaOrg/MedicalSignOrSymptom.php
+++ b/src/Models/SchemaOrg/MedicalSignOrSymptom.php
@@ -27,12 +27,12 @@ public static function fieldList() {
* A possible treatment to address this condition, sign or symptom.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @var \OpenActive\Models\SchemaOrg\Drug|\OpenActive\Models\SchemaOrg\DrugClass|\OpenActive\Models\SchemaOrg\LifestyleModification|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
protected $possibleTreatment;
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
+ * @return \OpenActive\Models\SchemaOrg\Drug|\OpenActive\Models\SchemaOrg\DrugClass|\OpenActive\Models\SchemaOrg\LifestyleModification|\OpenActive\Models\SchemaOrg\MedicalTherapy|string
*/
public function getPossibleTreatment()
{
@@ -40,13 +40,16 @@ public function getPossibleTreatment()
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment
+ * @param \OpenActive\Models\SchemaOrg\Drug|\OpenActive\Models\SchemaOrg\DrugClass|\OpenActive\Models\SchemaOrg\LifestyleModification|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setPossibleTreatment($possibleTreatment)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Drug",
+ "\OpenActive\Models\SchemaOrg\DrugClass",
+ "\OpenActive\Models\SchemaOrg\LifestyleModification",
"\OpenActive\Models\SchemaOrg\MedicalTherapy",
"string",
];
diff --git a/src/Models/SchemaOrg/MedicalStudy.php b/src/Models/SchemaOrg/MedicalStudy.php
index 080b8780..b00bdb98 100644
--- a/src/Models/SchemaOrg/MedicalStudy.php
+++ b/src/Models/SchemaOrg/MedicalStudy.php
@@ -18,10 +18,10 @@ public static function getType()
public static function fieldList() {
$fields = [
"healthCondition" => "healthCondition",
+ "sponsor" => "sponsor",
"status" => "status",
- "studySubject" => "studySubject",
"studyLocation" => "studyLocation",
- "sponsor" => "sponsor",
+ "studySubject" => "studySubject",
];
return array_merge(parent::fieldList(), $fields);
@@ -36,20 +36,20 @@ public static function fieldList() {
protected $healthCondition;
/**
- * The status of the study (enumerated).
+ * 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\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $status;
+ protected $sponsor;
/**
- * A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.
+ * The status of the study (enumerated).
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @var \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- protected $studySubject;
+ protected $status;
/**
* The location in which the study is taking/took place.
@@ -60,12 +60,12 @@ 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 subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- protected $sponsor;
+ protected $studySubject;
/**
* @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
@@ -93,55 +93,56 @@ public function setHealthCondition($healthCondition)
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getStatus()
+ public function getSponsor()
{
- return $this->status;
+ return $this->sponsor;
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStatus($status)
+ public function setSponsor($sponsor)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "\OpenActive\Enums\SchemaOrg\EventStatusType",
- "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
- "null",
];
- $status = self::checkTypes($status, $types);
+ $sponsor = self::checkTypes($sponsor, $types);
- $this->status = $status;
+ $this->sponsor = $sponsor;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
+ * @return \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null
*/
- public function getStudySubject()
+ public function getStatus()
{
- return $this->studySubject;
+ return $this->status;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $studySubject
+ * @param \OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|string|null $status
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStudySubject($studySubject)
+ public function setStatus($status)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalEntity",
+ "\OpenActive\Enums\SchemaOrg\EventStatusType",
+ "\OpenActive\Models\SchemaOrg\MedicalStudyStatus",
"string",
+ "null",
];
- $studySubject = self::checkTypes($studySubject, $types);
+ $status = self::checkTypes($status, $types);
- $this->studySubject = $studySubject;
+ $this->status = $status;
}
/**
@@ -170,29 +171,28 @@ public function setStudyLocation($studyLocation)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string
*/
- public function getSponsor()
+ public function getStudySubject()
{
- return $this->sponsor;
+ return $this->studySubject;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor
+ * @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 setSponsor($sponsor)
+ public function setStudySubject($studySubject)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MedicalEntity",
"string",
];
- $sponsor = self::checkTypes($sponsor, $types);
+ $studySubject = self::checkTypes($studySubject, $types);
- $this->sponsor = $sponsor;
+ $this->studySubject = $studySubject;
}
}
diff --git a/src/Models/SchemaOrg/MedicalTest.php b/src/Models/SchemaOrg/MedicalTest.php
index 76a74b88..f0d1f20d 100644
--- a/src/Models/SchemaOrg/MedicalTest.php
+++ b/src/Models/SchemaOrg/MedicalTest.php
@@ -17,24 +17,16 @@ public static function getType()
public static function fieldList() {
$fields = [
- "usedToDiagnose" => "usedToDiagnose",
"affectedBy" => "affectedBy",
"normalRange" => "normalRange",
"signDetected" => "signDetected",
+ "usedToDiagnose" => "usedToDiagnose",
"usesDevice" => "usesDevice",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * A condition the test is used to diagnose.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
- */
- protected $usedToDiagnose;
-
/**
* Drugs that affect the test's results.
*
@@ -47,7 +39,7 @@ public static function fieldList() {
* Range of acceptable values for a typical patient, when applicable.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
protected $normalRange;
@@ -60,37 +52,20 @@ public static function fieldList() {
protected $signDetected;
/**
- * Device used to perform the test.
+ * A condition the test is used to diagnose.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalDevice|string
- */
- protected $usesDevice;
-
- /**
- * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string
*/
- public function getUsedToDiagnose()
- {
- return $this->usedToDiagnose;
- }
+ protected $usedToDiagnose;
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $usedToDiagnose
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * Device used to perform the test.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MedicalDevice|string
*/
- public function setUsedToDiagnose($usedToDiagnose)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\MedicalCondition",
- "string",
- ];
-
- $usedToDiagnose = self::checkTypes($usedToDiagnose, $types);
-
- $this->usedToDiagnose = $usedToDiagnose;
- }
+ protected $usesDevice;
/**
* @return \OpenActive\Models\SchemaOrg\Drug|string
@@ -118,7 +93,7 @@ public function setAffectedBy($affectedBy)
}
/**
- * @return string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\MedicalEnumeration|string|null
*/
public function getNormalRange()
{
@@ -126,15 +101,15 @@ public function getNormalRange()
}
/**
- * @param string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $normalRange
+ * @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 setNormalRange($normalRange)
{
$types = [
- "string",
"\OpenActive\Enums\SchemaOrg\MedicalEnumeration",
+ "string",
"null",
];
@@ -168,6 +143,31 @@ public function setSignDetected($signDetected)
$this->signDetected = $signDetected;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string
+ */
+ public function getUsedToDiagnose()
+ {
+ return $this->usedToDiagnose;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $usedToDiagnose
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setUsedToDiagnose($usedToDiagnose)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MedicalCondition",
+ "string",
+ ];
+
+ $usedToDiagnose = self::checkTypes($usedToDiagnose, $types);
+
+ $this->usedToDiagnose = $usedToDiagnose;
+ }
+
/**
* @return \OpenActive\Models\SchemaOrg\MedicalDevice|string
*/
diff --git a/src/Models/SchemaOrg/MedicalTherapy.php b/src/Models/SchemaOrg/MedicalTherapy.php
index 74a5c5cb..0d21d045 100644
--- a/src/Models/SchemaOrg/MedicalTherapy.php
+++ b/src/Models/SchemaOrg/MedicalTherapy.php
@@ -17,14 +17,22 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "contraindication" => "contraindication",
"duplicateTherapy" => "duplicateTherapy",
"seriousAdverseOutcome" => "seriousAdverseOutcome",
- "contraindication" => "contraindication",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * A contraindication for this therapy.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MedicalContraindication|string
+ */
+ protected $contraindication;
+
/**
* A therapy that duplicates or overlaps this one.
*
@@ -42,12 +50,29 @@ public static function fieldList() {
protected $seriousAdverseOutcome;
/**
- * A contraindication for this therapy.
- *
- *
- * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication
+ * @return \OpenActive\Models\SchemaOrg\MedicalContraindication|string
*/
- protected $contraindication;
+ public function getContraindication()
+ {
+ return $this->contraindication;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\MedicalContraindication|string $contraindication
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setContraindication($contraindication)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MedicalContraindication",
+ "string",
+ ];
+
+ $contraindication = self::checkTypes($contraindication, $types);
+
+ $this->contraindication = $contraindication;
+ }
/**
* @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string
@@ -99,29 +124,4 @@ public function setSeriousAdverseOutcome($seriousAdverseOutcome)
$this->seriousAdverseOutcome = $seriousAdverseOutcome;
}
- /**
- * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication
- */
- public function getContraindication()
- {
- return $this->contraindication;
- }
-
- /**
- * @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 setContraindication($contraindication)
- {
- $types = [
- "string",
- "\OpenActive\Models\SchemaOrg\MedicalContraindication",
- ];
-
- $contraindication = self::checkTypes($contraindication, $types);
-
- $this->contraindication = $contraindication;
- }
-
}
diff --git a/src/Models/SchemaOrg/MedicalWebPage.php b/src/Models/SchemaOrg/MedicalWebPage.php
index ae5b9502..80a11499 100644
--- a/src/Models/SchemaOrg/MedicalWebPage.php
+++ b/src/Models/SchemaOrg/MedicalWebPage.php
@@ -36,7 +36,7 @@ public static function fieldList() {
* Medical audience for page.
*
*
- * @var \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string
+ * @var \OpenActive\Models\SchemaOrg\MedicalAudience|\OpenActive\Models\SchemaOrg\MedicalAudienceType|string
*/
protected $medicalAudience;
@@ -65,7 +65,7 @@ public function setAspect($aspect)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string
+ * @return \OpenActive\Models\SchemaOrg\MedicalAudience|\OpenActive\Models\SchemaOrg\MedicalAudienceType|string
*/
public function getMedicalAudience()
{
@@ -73,15 +73,15 @@ public function getMedicalAudience()
}
/**
- * @param \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string $medicalAudience
+ * @param \OpenActive\Models\SchemaOrg\MedicalAudience|\OpenActive\Models\SchemaOrg\MedicalAudienceType|string $medicalAudience
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setMedicalAudience($medicalAudience)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MedicalAudienceType",
"\OpenActive\Models\SchemaOrg\MedicalAudience",
+ "\OpenActive\Models\SchemaOrg\MedicalAudienceType",
"string",
];
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..08593427
--- /dev/null
+++ b/src/Models/SchemaOrg/MemberProgramTier.php
@@ -0,0 +1,165 @@
+ "hasTierBenefit",
+ "hasTierRequirement" => "hasTierRequirement",
+ "isTierOf" => "isTierOf",
+ "membershipPointsEarned" => "membershipPointsEarned",
+ ];
+
+ return array_merge(parent::fieldList(), $fields);
+ }
+
+ /**
+ * A member benefit for a particular tier of a loyalty program.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\TierBenefitEnumeration|null
+ */
+ protected $hasTierBenefit;
+
+ /**
+ * 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\MonetaryAmount|string|\OpenActive\Models\SchemaOrg\UnitPriceSpecification
+ */
+ protected $hasTierRequirement;
+
+ /**
+ * The member program this tier is a part of.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MemberProgram|string
+ */
+ protected $isTierOf;
+
+ /**
+ * 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;
+
+ /**
+ * @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\CreditCard|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|\OpenActive\Models\SchemaOrg\UnitPriceSpecification
+ */
+ public function getHasTierRequirement()
+ {
+ return $this->hasTierRequirement;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\CreditCard|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|\OpenActive\Models\SchemaOrg\UnitPriceSpecification $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\MonetaryAmount",
+ "string",
+ "\OpenActive\Models\SchemaOrg\UnitPriceSpecification",
+ ];
+
+ $hasTierRequirement = self::checkTypes($hasTierRequirement, $types);
+
+ $this->hasTierRequirement = $hasTierRequirement;
+ }
+
+ /**
+ * @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;
+ }
+
+ /**
+ * @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;
+ }
+
+}
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..4eb900e1 100644
--- a/src/Models/SchemaOrg/MenuItem.php
+++ b/src/Models/SchemaOrg/MenuItem.php
@@ -18,9 +18,9 @@ public static function getType()
public static function fieldList() {
$fields = [
"menuAddOn" => "menuAddOn",
+ "nutrition" => "nutrition",
"offers" => "offers",
"suitableForDiet" => "suitableForDiet",
- "nutrition" => "nutrition",
];
return array_merge(parent::fieldList(), $fields);
@@ -35,29 +35,29 @@ public static function fieldList() {
protected $menuAddOn;
/**
- * 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.
- *
+ * Nutrition information about the recipe or menu item.
*
*
- * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string
*/
- protected $offers;
+ protected $nutrition;
/**
- * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc.
+ * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.
+ *
*
*
- * @var \OpenActive\Enums\SchemaOrg\RestrictedDiet|null
+ * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $suitableForDiet;
+ protected $offers;
/**
- * Nutrition information about the recipe or 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\NutritionInformation|string
+ * @var \OpenActive\Models\SchemaOrg\Diet|\OpenActive\Enums\SchemaOrg\RestrictedDiet|string|null
*/
- protected $nutrition;
+ protected $suitableForDiet;
/**
* @return \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string
@@ -86,79 +86,81 @@ public function setMenuAddOn($menuAddOn)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string
+ * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string
*/
- public function getOffers()
+ public function getNutrition()
{
- return $this->offers;
+ return $this->nutrition;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers
+ * @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 setOffers($offers)
+ public function setNutrition($nutrition)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Offer",
- "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\NutritionInformation",
"string",
];
- $offers = self::checkTypes($offers, $types);
+ $nutrition = self::checkTypes($nutrition, $types);
- $this->offers = $offers;
+ $this->nutrition = $nutrition;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null
+ * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string
*/
- public function getSuitableForDiet()
+ public function getOffers()
{
- return $this->suitableForDiet;
+ return $this->offers;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet
+ * @param \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string $offers
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSuitableForDiet($suitableForDiet)
+ public function setOffers($offers)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\RestrictedDiet",
- "null",
+ "\OpenActive\Models\SchemaOrg\Demand",
+ "\OpenActive\Models\SchemaOrg\Offer",
+ "string",
];
- $suitableForDiet = self::checkTypes($suitableForDiet, $types);
+ $offers = self::checkTypes($offers, $types);
- $this->suitableForDiet = $suitableForDiet;
+ $this->offers = $offers;
}
/**
- * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string
+ * @return \OpenActive\Models\SchemaOrg\Diet|\OpenActive\Enums\SchemaOrg\RestrictedDiet|string|null
*/
- public function getNutrition()
+ public function getSuitableForDiet()
{
- return $this->nutrition;
+ return $this->suitableForDiet;
}
/**
- * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition
+ * @param \OpenActive\Models\SchemaOrg\Diet|\OpenActive\Enums\SchemaOrg\RestrictedDiet|string|null $suitableForDiet
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setNutrition($nutrition)
+ public function setSuitableForDiet($suitableForDiet)
{
$types = [
- "\OpenActive\Models\SchemaOrg\NutritionInformation",
+ "\OpenActive\Models\SchemaOrg\Diet",
+ "\OpenActive\Enums\SchemaOrg\RestrictedDiet",
"string",
+ "null",
];
- $nutrition = self::checkTypes($nutrition, $types);
+ $suitableForDiet = self::checkTypes($suitableForDiet, $types);
- $this->nutrition = $nutrition;
+ $this->suitableForDiet = $suitableForDiet;
}
}
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..65e9ef1e 100644
--- a/src/Models/SchemaOrg/MerchantReturnPolicy.php
+++ b/src/Models/SchemaOrg/MerchantReturnPolicy.php
@@ -17,82 +17,76 @@ public static function getType()
public static function fieldList() {
$fields = [
- "returnPolicyCategory" => "returnPolicyCategory",
- "returnPolicyCountry" => "returnPolicyCountry",
- "merchantReturnLink" => "merchantReturnLink",
- "restockingFee" => "restockingFee",
- "itemDefectReturnShippingFeesAmount" => "itemDefectReturnShippingFeesAmount",
- "itemDefectReturnFees" => "itemDefectReturnFees",
+ "additionalProperty" => "additionalProperty",
+ "applicableCountry" => "applicableCountry",
+ "customerRemorseReturnFees" => "customerRemorseReturnFees",
+ "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource",
+ "customerRemorseReturnShippingFeesAmount" => "customerRemorseReturnShippingFeesAmount",
"inStoreReturnsOffered" => "inStoreReturnsOffered",
"itemCondition" => "itemCondition",
+ "itemDefectReturnFees" => "itemDefectReturnFees",
"itemDefectReturnLabelSource" => "itemDefectReturnLabelSource",
- "returnLabelSource" => "returnLabelSource",
- "customerRemorseReturnShippingFeesAmount" => "customerRemorseReturnShippingFeesAmount",
- "refundType" => "refundType",
- "returnShippingFeesAmount" => "returnShippingFeesAmount",
+ "itemDefectReturnShippingFeesAmount" => "itemDefectReturnShippingFeesAmount",
"merchantReturnDays" => "merchantReturnDays",
+ "merchantReturnLink" => "merchantReturnLink",
+ "refundType" => "refundType",
+ "restockingFee" => "restockingFee",
+ "returnFees" => "returnFees",
+ "returnLabelSource" => "returnLabelSource",
"returnMethod" => "returnMethod",
- "additionalProperty" => "additionalProperty",
- "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource",
- "customerRemorseReturnFees" => "customerRemorseReturnFees",
+ "returnPolicyCategory" => "returnPolicyCategory",
+ "returnPolicyCountry" => "returnPolicyCountry",
"returnPolicySeasonalOverride" => "returnPolicySeasonalOverride",
- "applicableCountry" => "applicableCountry",
- "returnFees" => "returnFees",
+ "returnShippingFeesAmount" => "returnShippingFeesAmount",
+ "validForMemberTier" => "validForMemberTier",
];
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.
+ * A country where a particular merchant return policy applies to, for example the two-letter ISO 3166-1 alpha-2 country code.
*
*
* @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $returnPolicyCountry;
+ protected $applicableCountry;
/**
- * Specifies a Web page or service by URL, for product returns.
+ * The type of return fees if the product is returned due to customer remorse.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $merchantReturnLink;
+ protected $customerRemorseReturnFees;
/**
- * Use [[MonetaryAmount]] to specify a fixed restocking fee for product returns, or use [[Number]] to specify a percentage of the product price paid by the customer.
+ * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned due to customer remorse.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- protected $restockingFee;
+ protected $customerRemorseReturnLabelSource;
/**
- * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]].
+ * The amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]].
*
*
* @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $itemDefectReturnShippingFeesAmount;
-
- /**
- * The type of return fees for returns of defect products.
- *
- *
- * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
- */
- protected $itemDefectReturnFees;
+ protected $customerRemorseReturnShippingFeesAmount;
/**
- * Are in-store returns offered? (for more advanced return methods use the [[returnMethod]] property)
+ * Are in-store returns offered? (For more advanced return methods use the [[returnMethod]] property.)
*
*
* @var bool|null
@@ -107,6 +101,14 @@ public static function fieldList() {
*/
protected $itemCondition;
+ /**
+ * The type of return fees for returns of defect products.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ */
+ protected $itemDefectReturnFees;
+
/**
* The method (from an enumeration) by which the customer obtains a return shipping label for a defect product.
*
@@ -116,20 +118,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.
+ * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]].
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $returnLabelSource;
+ protected $itemDefectReturnShippingFeesAmount;
/**
- * The amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]].
+ * 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\Models\SchemaOrg\MonetaryAmount|string
+ * @var Date|DateTime|int|null
*/
- protected $customerRemorseReturnShippingFeesAmount;
+ protected $merchantReturnDays;
+
+ /**
+ * Specifies a Web page or service by URL, for product returns.
+ *
+ *
+ * @var string
+ */
+ protected $merchantReturnLink;
/**
* A refund type, from an enumerated list.
@@ -140,53 +150,52 @@ public static function fieldList() {
protected $refundType;
/**
- * Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]].
+ * 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\Models\SchemaOrg\MonetaryAmount|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $returnShippingFeesAmount;
+ protected $restockingFee;
/**
- * 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]].
+ * The type of return fees for purchased products (for any return reason).
*
*
- * @var Date|DateTime|int|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- protected $merchantReturnDays;
+ protected $returnFees;
/**
- * The type of return method offered, specified from an enumeration.
+ * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned for any reason.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- protected $returnMethod;
+ protected $returnLabelSource;
/**
- * A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism.
- *
+ * The type of return method offered, specified from an enumeration.
*
*
- * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
*/
- protected $additionalProperty;
+ protected $returnMethod;
/**
- * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned due to customer remorse.
+ * Specifies an applicable return policy (from an enumeration).
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
*/
- protected $customerRemorseReturnLabelSource;
+ protected $returnPolicyCategory;
/**
- * The type of return fees if the product is returned due to customer remorse.
+ * The country where the product has to be sent to for returns, for example "Ireland" using the [[name]] property of [[Country]]. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). Note that this can be different from the country where the product was originally shipped from or sent to.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $customerRemorseReturnFees;
+ protected $returnPolicyCountry;
/**
* Seasonal override of a return policy.
@@ -197,220 +206,219 @@ public static function fieldList() {
protected $returnPolicySeasonalOverride;
/**
- * A country where a particular merchant return policy applies to, for example the two-letter ISO 3166-1 alpha-2 country code.
+ * Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]].
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Country
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $applicableCountry;
+ protected $returnShippingFeesAmount;
/**
- * The type of return fees for purchased products (for any return reason)
+ * The membership program tier(s) an Offer (or a PriceSpecification, OfferShippingDetails, or MerchantReturnPolicy under an Offer) is valid for.
*
*
- * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|string
*/
- protected $returnFees;
+ protected $validForMemberTier;
/**
- * @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
*/
- public function getReturnPolicyCountry()
+ public function getApplicableCountry()
{
- return $this->returnPolicyCountry;
+ return $this->applicableCountry;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $returnPolicyCountry
+ * @param \OpenActive\Models\SchemaOrg\Country|string $applicableCountry
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnPolicyCountry($returnPolicyCountry)
+ public function setApplicableCountry($applicableCountry)
{
$types = [
"\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types);
+ $applicableCountry = self::checkTypes($applicableCountry, $types);
- $this->returnPolicyCountry = $returnPolicyCountry;
+ $this->applicableCountry = $applicableCountry;
}
/**
- * @return string
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getMerchantReturnLink()
+ public function getCustomerRemorseReturnFees()
{
- return $this->merchantReturnLink;
+ return $this->customerRemorseReturnFees;
}
/**
- * @param string $merchantReturnLink
+ * @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 setMerchantReturnLink($merchantReturnLink)
+ public function setCustomerRemorseReturnFees($customerRemorseReturnFees)
{
$types = [
- "string",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "null",
];
- $merchantReturnLink = self::checkTypes($merchantReturnLink, $types);
+ $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types);
- $this->merchantReturnLink = $merchantReturnLink;
+ $this->customerRemorseReturnFees = $customerRemorseReturnFees;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- public function getRestockingFee()
+ public function getCustomerRemorseReturnLabelSource()
{
- return $this->restockingFee;
+ return $this->customerRemorseReturnLabelSource;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $restockingFee
+ * @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 setRestockingFee($restockingFee)
+ public function setCustomerRemorseReturnLabelSource($customerRemorseReturnLabelSource)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
- "Number",
+ "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
"null",
];
- $restockingFee = self::checkTypes($restockingFee, $types);
+ $customerRemorseReturnLabelSource = self::checkTypes($customerRemorseReturnLabelSource, $types);
- $this->restockingFee = $restockingFee;
+ $this->customerRemorseReturnLabelSource = $customerRemorseReturnLabelSource;
}
/**
* @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getItemDefectReturnShippingFeesAmount()
+ public function getCustomerRemorseReturnShippingFeesAmount()
{
- return $this->itemDefectReturnShippingFeesAmount;
+ return $this->customerRemorseReturnShippingFeesAmount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $itemDefectReturnShippingFeesAmount
+ * @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 setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount)
+ public function setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount)
{
$types = [
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types);
+ $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types);
- $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount;
+ $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return bool|null
*/
- public function getItemDefectReturnFees()
+ public function getInStoreReturnsOffered()
{
- return $this->itemDefectReturnFees;
+ return $this->inStoreReturnsOffered;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $itemDefectReturnFees
+ * @param bool|null $inStoreReturnsOffered
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setItemDefectReturnFees($itemDefectReturnFees)
+ public function setInStoreReturnsOffered($inStoreReturnsOffered)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "bool",
"null",
];
- $itemDefectReturnFees = self::checkTypes($itemDefectReturnFees, $types);
+ $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types);
- $this->itemDefectReturnFees = $itemDefectReturnFees;
+ $this->inStoreReturnsOffered = $inStoreReturnsOffered;
}
/**
- * @return bool|null
+ * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
*/
- public function getInStoreReturnsOffered()
+ public function getItemCondition()
{
- return $this->inStoreReturnsOffered;
+ return $this->itemCondition;
}
/**
- * @param bool|null $inStoreReturnsOffered
+ * @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 setInStoreReturnsOffered($inStoreReturnsOffered)
+ public function setItemCondition($itemCondition)
{
$types = [
- "bool",
+ "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
"null",
];
- $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types);
+ $itemCondition = self::checkTypes($itemCondition, $types);
- $this->inStoreReturnsOffered = $inStoreReturnsOffered;
+ $this->itemCondition = $itemCondition;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getItemCondition()
+ public function getItemDefectReturnFees()
{
- return $this->itemCondition;
+ return $this->itemDefectReturnFees;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition
+ * @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 setItemCondition($itemCondition)
+ public function setItemDefectReturnFees($itemDefectReturnFees)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\OfferItemCondition",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
"null",
];
- $itemCondition = self::checkTypes($itemCondition, $types);
+ $itemDefectReturnFees = self::checkTypes($itemDefectReturnFees, $types);
- $this->itemCondition = $itemCondition;
+ $this->itemDefectReturnFees = $itemDefectReturnFees;
}
/**
@@ -439,53 +447,79 @@ public function setItemDefectReturnLabelSource($itemDefectReturnLabelSource)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getReturnLabelSource()
+ public function getItemDefectReturnShippingFeesAmount()
{
- return $this->returnLabelSource;
+ return $this->itemDefectReturnShippingFeesAmount;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $returnLabelSource
+ * @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 setReturnLabelSource($returnLabelSource)
+ public function setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
+ ];
+
+ $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types);
+
+ $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount;
+ }
+
+ /**
+ * @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",
];
- $returnLabelSource = self::checkTypes($returnLabelSource, $types);
+ $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
- $this->returnLabelSource = $returnLabelSource;
+ $this->merchantReturnDays = $merchantReturnDays;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return string
*/
- public function getCustomerRemorseReturnShippingFeesAmount()
+ public function getMerchantReturnLink()
{
- return $this->customerRemorseReturnShippingFeesAmount;
+ return $this->merchantReturnLink;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $customerRemorseReturnShippingFeesAmount
+ * @param string $merchantReturnLink
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount)
+ public function setMerchantReturnLink($merchantReturnLink)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
];
- $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types);
+ $merchantReturnLink = self::checkTypes($merchantReturnLink, $types);
- $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount;
+ $this->merchantReturnLink = $merchantReturnLink;
}
/**
@@ -514,155 +548,155 @@ public function setRefundType($refundType)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getReturnShippingFeesAmount()
+ public function getRestockingFee()
{
- return $this->returnShippingFeesAmount;
+ return $this->restockingFee;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $returnShippingFeesAmount
+ * @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 setReturnShippingFeesAmount($returnShippingFeesAmount)
+ public function setRestockingFee($restockingFee)
{
$types = [
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
+ "null",
];
- $returnShippingFeesAmount = self::checkTypes($returnShippingFeesAmount, $types);
+ $restockingFee = self::checkTypes($restockingFee, $types);
- $this->returnShippingFeesAmount = $returnShippingFeesAmount;
+ $this->restockingFee = $restockingFee;
}
/**
- * @return Date|DateTime|int|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getMerchantReturnDays()
+ public function getReturnFees()
{
- return $this->merchantReturnDays;
+ return $this->returnFees;
}
/**
- * @param Date|DateTime|int|null $merchantReturnDays
+ * @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 setMerchantReturnDays($merchantReturnDays)
+ public function setReturnFees($returnFees)
{
$types = [
- "Date",
- "DateTime",
- "int",
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
"null",
];
- $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
+ $returnFees = self::checkTypes($returnFees, $types);
- $this->merchantReturnDays = $merchantReturnDays;
+ $this->returnFees = $returnFees;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
*/
- public function getReturnMethod()
+ public function getReturnLabelSource()
{
- return $this->returnMethod;
+ return $this->returnLabelSource;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null $returnMethod
+ * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $returnLabelSource
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnMethod($returnMethod)
+ public function setReturnLabelSource($returnLabelSource)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration",
+ "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
"null",
];
- $returnMethod = self::checkTypes($returnMethod, $types);
+ $returnLabelSource = self::checkTypes($returnLabelSource, $types);
- $this->returnMethod = $returnMethod;
+ $this->returnLabelSource = $returnLabelSource;
}
/**
- * @return \OpenActive\Models\SchemaOrg\PropertyValue|string
+ * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
*/
- public function getAdditionalProperty()
+ public function getReturnMethod()
{
- return $this->additionalProperty;
+ return $this->returnMethod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty
+ * @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 setAdditionalProperty($additionalProperty)
+ public function setReturnMethod($returnMethod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\PropertyValue",
- "string",
+ "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration",
+ "null",
];
- $additionalProperty = self::checkTypes($additionalProperty, $types);
+ $returnMethod = self::checkTypes($returnMethod, $types);
- $this->additionalProperty = $additionalProperty;
+ $this->returnMethod = $returnMethod;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null
+ * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
*/
- public function getCustomerRemorseReturnLabelSource()
+ public function getReturnPolicyCategory()
{
- return $this->customerRemorseReturnLabelSource;
+ return $this->returnPolicyCategory;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $customerRemorseReturnLabelSource
+ * @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 setCustomerRemorseReturnLabelSource($customerRemorseReturnLabelSource)
+ public function setReturnPolicyCategory($returnPolicyCategory)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration",
+ "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
"null",
];
- $customerRemorseReturnLabelSource = self::checkTypes($customerRemorseReturnLabelSource, $types);
+ $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
- $this->customerRemorseReturnLabelSource = $customerRemorseReturnLabelSource;
+ $this->returnPolicyCategory = $returnPolicyCategory;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getCustomerRemorseReturnFees()
+ public function getReturnPolicyCountry()
{
- return $this->customerRemorseReturnFees;
+ return $this->returnPolicyCountry;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $customerRemorseReturnFees
+ * @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 setCustomerRemorseReturnFees($customerRemorseReturnFees)
+ public function setReturnPolicyCountry($returnPolicyCountry)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\Country",
+ "string",
];
- $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types);
+ $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types);
- $this->customerRemorseReturnFees = $customerRemorseReturnFees;
+ $this->returnPolicyCountry = $returnPolicyCountry;
}
/**
@@ -691,53 +725,53 @@ public function setReturnPolicySeasonalOverride($returnPolicySeasonalOverride)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Country
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getApplicableCountry()
+ public function getReturnShippingFeesAmount()
{
- return $this->applicableCountry;
+ return $this->returnShippingFeesAmount;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Country $applicableCountry
+ * @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 setApplicableCountry($applicableCountry)
+ public function setReturnShippingFeesAmount($returnShippingFeesAmount)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
- "\OpenActive\Models\SchemaOrg\Country",
];
- $applicableCountry = self::checkTypes($applicableCountry, $types);
+ $returnShippingFeesAmount = self::checkTypes($returnShippingFeesAmount, $types);
- $this->applicableCountry = $applicableCountry;
+ $this->returnShippingFeesAmount = $returnShippingFeesAmount;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|string
*/
- public function getReturnFees()
+ public function getValidForMemberTier()
{
- return $this->returnFees;
+ return $this->validForMemberTier;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $returnFees
+ * @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 setReturnFees($returnFees)
+ public function setValidForMemberTier($validForMemberTier)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
- "null",
+ "\OpenActive\Models\SchemaOrg\MemberProgramTier",
+ "string",
];
- $returnFees = self::checkTypes($returnFees, $types);
+ $validForMemberTier = self::checkTypes($validForMemberTier, $types);
- $this->returnFees = $returnFees;
+ $this->validForMemberTier = $validForMemberTier;
}
}
diff --git a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
index 042d983d..dbd5009a 100644
--- a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
+++ b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php
@@ -17,149 +17,321 @@ public static function getType()
public static function fieldList() {
$fields = [
- "returnPolicyCategory" => "returnPolicyCategory",
- "startDate" => "startDate",
"endDate" => "endDate",
"merchantReturnDays" => "merchantReturnDays",
+ "refundType" => "refundType",
+ "restockingFee" => "restockingFee",
+ "returnFees" => "returnFees",
+ "returnMethod" => "returnMethod",
+ "returnPolicyCategory" => "returnPolicyCategory",
+ "returnShippingFeesAmount" => "returnShippingFeesAmount",
+ "startDate" => "startDate",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Specifies an applicable return policy (from an enumeration).
+ * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
*
*
- * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ * @var Date|DateTime|null
*/
- protected $returnPolicyCategory;
+ protected $endDate;
/**
- * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * 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|null
+ * @var Date|DateTime|int|null
*/
- protected $startDate;
+ protected $merchantReturnDays;
/**
- * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).
+ * A refund type, from an enumerated list.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
*/
- protected $endDate;
+ protected $refundType;
/**
- * Specifies either a fixed return date or the number of days (from the delivery date) that a product can be returned. Used when the [[returnPolicyCategory]] property is specified as [[MerchantReturnFiniteReturnWindow]].
+ * 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
+ * The type of return fees for purchased products (for any return reason).
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
*/
- public function getReturnPolicyCategory()
+ protected $returnFees;
+
+ /**
+ * The type of return method offered, specified from an enumeration.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null
+ */
+ protected $returnMethod;
+
+ /**
+ * Specifies an applicable return policy (from an enumeration).
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null
+ */
+ protected $returnPolicyCategory;
+
+ /**
+ * 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)).
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $startDate;
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getEndDate()
{
- return $this->returnPolicyCategory;
+ return $this->endDate;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory
+ * @param Date|DateTime|null $endDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReturnPolicyCategory($returnPolicyCategory)
+ public function setEndDate($endDate)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration",
+ "Date",
+ "DateTime",
"null",
];
- $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types);
+ $endDate = self::checkTypes($endDate, $types);
- $this->returnPolicyCategory = $returnPolicyCategory;
+ $this->endDate = $endDate;
}
/**
- * @return Date|DateTime|null
+ * @return Date|DateTime|int|null
*/
- public function getStartDate()
+ public function getMerchantReturnDays()
{
- return $this->startDate;
+ return $this->merchantReturnDays;
}
/**
- * @param Date|DateTime|null $startDate
+ * @param Date|DateTime|int|null $merchantReturnDays
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setStartDate($startDate)
+ public function setMerchantReturnDays($merchantReturnDays)
{
$types = [
"Date",
"DateTime",
+ "int",
"null",
];
- $startDate = self::checkTypes($startDate, $types);
+ $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
- $this->startDate = $startDate;
+ $this->merchantReturnDays = $merchantReturnDays;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null
*/
- public function getEndDate()
+ public function getRefundType()
{
- return $this->endDate;
+ return $this->refundType;
}
/**
- * @param Date|DateTime|null $endDate
+ * @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 setEndDate($endDate)
+ public function setRefundType($refundType)
{
$types = [
- "Date",
- "DateTime",
+ "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration",
"null",
];
- $endDate = self::checkTypes($endDate, $types);
+ $refundType = self::checkTypes($refundType, $types);
- $this->endDate = $endDate;
+ $this->refundType = $refundType;
}
/**
- * @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 = [
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
+ "Number",
+ "null",
+ ];
+
+ $restockingFee = self::checkTypes($restockingFee, $types);
+
+ $this->restockingFee = $restockingFee;
+ }
+
+ /**
+ * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null
+ */
+ public function getReturnFees()
+ {
+ return $this->returnFees;
+ }
+
+ /**
+ * @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 setReturnFees($returnFees)
+ {
+ $types = [
+ "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration",
+ "null",
+ ];
+
+ $returnFees = self::checkTypes($returnFees, $types);
+
+ $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\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 \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;
+ }
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+
+ /**
+ * @param Date|DateTime|null $startDate
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setStartDate($startDate)
{
$types = [
"Date",
"DateTime",
- "int",
"null",
];
- $merchantReturnDays = self::checkTypes($merchantReturnDays, $types);
+ $startDate = self::checkTypes($startDate, $types);
- $this->merchantReturnDays = $merchantReturnDays;
+ $this->startDate = $startDate;
}
}
diff --git a/src/Models/SchemaOrg/Message.php b/src/Models/SchemaOrg/Message.php
index 6803a9a6..dea86bb8 100644
--- a/src/Models/SchemaOrg/Message.php
+++ b/src/Models/SchemaOrg/Message.php
@@ -18,14 +18,14 @@ public static function getType()
public static function fieldList() {
$fields = [
"bccRecipient" => "bccRecipient",
- "recipient" => "recipient",
- "dateReceived" => "dateReceived",
"ccRecipient" => "ccRecipient",
- "messageAttachment" => "messageAttachment",
- "toRecipient" => "toRecipient",
- "dateSent" => "dateSent",
"dateRead" => "dateRead",
+ "dateReceived" => "dateReceived",
+ "dateSent" => "dateSent",
+ "messageAttachment" => "messageAttachment",
+ "recipient" => "recipient",
"sender" => "sender",
+ "toRecipient" => "toRecipient",
];
return array_merge(parent::fieldList(), $fields);
@@ -35,17 +35,25 @@ public static function fieldList() {
* A sub property of recipient. The recipient blind copied on a message.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $bccRecipient;
/**
- * A sub property of participant. The participant who is at the receiving end of the action.
+ * A sub property of recipient. The recipient copied on a message.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $recipient;
+ protected $ccRecipient;
+
+ /**
+ * The date/time at which the message has been read by the recipient if a single recipient exists.
+ *
+ *
+ * @var Date|DateTime|null
+ */
+ protected $dateRead;
/**
* The date/time the message was received if a single recipient exists.
@@ -56,12 +64,12 @@ public static function fieldList() {
protected $dateReceived;
/**
- * A sub property of recipient. The recipient copied on a message.
+ * The date/time at which the message was sent.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @var DateTime|null
*/
- protected $ccRecipient;
+ protected $dateSent;
/**
* A CreativeWork attached to the message.
@@ -72,39 +80,31 @@ public static function fieldList() {
protected $messageAttachment;
/**
- * 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
- */
- protected $toRecipient;
-
- /**
- * The date/time at which the message was sent.
+ * A sub property of participant. The participant who is at the receiving end of the action.
*
*
- * @var DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $dateSent;
+ protected $recipient;
/**
- * The date/time at which the message has been read by the recipient if a single recipient exists.
+ * A sub property of participant. The participant who is at the sending end of the action.
*
*
- * @var Date|DateTime|null
+ * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $dateRead;
+ protected $sender;
/**
- * A sub property of participant. The participant who is at the sending end of the action.
+ * A sub property of recipient. The recipient who was directly sent the message.
*
*
- * @var \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\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $sender;
+ protected $toRecipient;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getBccRecipient()
{
@@ -112,16 +112,16 @@ public function getBccRecipient()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $bccRecipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $bccRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setBccRecipient($bccRecipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
@@ -131,31 +131,56 @@ public function setBccRecipient($bccRecipient)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getRecipient()
+ public function getCcRecipient()
{
- return $this->recipient;
+ return $this->ccRecipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient
+ * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $ccRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecipient($recipient)
+ public function setCcRecipient($ccRecipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Audience",
"\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $recipient = self::checkTypes($recipient, $types);
+ $ccRecipient = self::checkTypes($ccRecipient, $types);
- $this->recipient = $recipient;
+ $this->ccRecipient = $ccRecipient;
+ }
+
+ /**
+ * @return Date|DateTime|null
+ */
+ public function getDateRead()
+ {
+ return $this->dateRead;
+ }
+
+ /**
+ * @param Date|DateTime|null $dateRead
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setDateRead($dateRead)
+ {
+ $types = [
+ "Date",
+ "DateTime",
+ "null",
+ ];
+
+ $dateRead = self::checkTypes($dateRead, $types);
+
+ $this->dateRead = $dateRead;
}
/**
@@ -184,30 +209,28 @@ public function setDateReceived($dateReceived)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string
+ * @return DateTime|null
*/
- public function getCcRecipient()
+ public function getDateSent()
{
- return $this->ccRecipient;
+ return $this->dateSent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string $ccRecipient
+ * @param DateTime|null $dateSent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCcRecipient($ccRecipient)
+ public function setDateSent($dateSent)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "string",
+ "DateTime",
+ "null",
];
- $ccRecipient = self::checkTypes($ccRecipient, $types);
+ $dateSent = self::checkTypes($dateSent, $types);
- $this->ccRecipient = $ccRecipient;
+ $this->dateSent = $dateSent;
}
/**
@@ -236,109 +259,86 @@ public function setMessageAttachment($messageAttachment)
}
/**
- * @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\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getToRecipient()
+ public function getRecipient()
{
- return $this->toRecipient;
+ return $this->recipient;
}
/**
- * @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\Organization|\OpenActive\Models\SchemaOrg\Person|string $recipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setToRecipient($toRecipient)
+ public function setRecipient($recipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\ContactPoint",
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $toRecipient = self::checkTypes($toRecipient, $types);
-
- $this->toRecipient = $toRecipient;
- }
-
- /**
- * @return DateTime|null
- */
- public function getDateSent()
- {
- return $this->dateSent;
- }
-
- /**
- * @param DateTime|null $dateSent
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setDateSent($dateSent)
- {
- $types = [
- "DateTime",
- "null",
- ];
-
- $dateSent = self::checkTypes($dateSent, $types);
+ $recipient = self::checkTypes($recipient, $types);
- $this->dateSent = $dateSent;
+ $this->recipient = $recipient;
}
/**
- * @return Date|DateTime|null
+ * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDateRead()
+ public function getSender()
{
- return $this->dateRead;
+ return $this->sender;
}
/**
- * @param Date|DateTime|null $dateRead
+ * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sender
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDateRead($dateRead)
+ public function setSender($sender)
{
$types = [
- "Date",
- "DateTime",
- "null",
+ "\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $dateRead = self::checkTypes($dateRead, $types);
+ $sender = self::checkTypes($sender, $types);
- $this->dateRead = $dateRead;
+ $this->sender = $sender;
}
/**
- * @return \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\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSender()
+ public function getToRecipient()
{
- return $this->sender;
+ return $this->toRecipient;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $sender
+ * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $toRecipient
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSender($sender)
+ public function setToRecipient($toRecipient)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\Audience",
+ "\OpenActive\Models\SchemaOrg\ContactPoint",
"\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $sender = self::checkTypes($sender, $types);
+ $toRecipient = self::checkTypes($toRecipient, $types);
- $this->sender = $sender;
+ $this->toRecipient = $toRecipient;
}
}
diff --git a/src/Models/SchemaOrg/MolecularEntity.php b/src/Models/SchemaOrg/MolecularEntity.php
index 4a7fb865..e3283dec 100644
--- a/src/Models/SchemaOrg/MolecularEntity.php
+++ b/src/Models/SchemaOrg/MolecularEntity.php
@@ -17,14 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "chemicalRole" => "chemicalRole",
+ "inChI" => "inChI",
"inChIKey" => "inChIKey",
"iupacName" => "iupacName",
- "monoisotopicMolecularWeight" => "monoisotopicMolecularWeight",
"molecularFormula" => "molecularFormula",
- "potentialUse" => "potentialUse",
- "chemicalRole" => "chemicalRole",
"molecularWeight" => "molecularWeight",
- "inChI" => "inChI",
+ "monoisotopicMolecularWeight" => "monoisotopicMolecularWeight",
+ "potentialUse" => "potentialUse",
"smiles" => "smiles",
];
@@ -32,68 +32,68 @@ public static function fieldList() {
}
/**
- * InChIKey is a hashed version of the full InChI (using the SHA-256 algorithm).
+ * A role played by the BioChemEntity within a chemical context.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $inChIKey;
+ protected $chemicalRole;
/**
- * Systematic method of naming chemical compounds as recommended by the International Union of Pure and Applied Chemistry (IUPAC).
+ * Non-proprietary identifier for molecular entity that can be used in printed and electronic data sources thus enabling easier linking of diverse data compilations.
*
*
* @var string
*/
- protected $iupacName;
+ protected $inChI;
/**
- * 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>.
+ * InChIKey is a hashed version of the full InChI (using the SHA-256 algorithm).
*
*
- * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @var string
*/
- protected $monoisotopicMolecularWeight;
+ protected $inChIKey;
/**
- * The empirical formula is the simplest whole number ratio of all the atoms in a molecule.
+ * Systematic method of naming chemical compounds as recommended by the International Union of Pure and Applied Chemistry (IUPAC).
*
*
* @var string
*/
- protected $molecularFormula;
+ protected $iupacName;
/**
- * Intended use of the BioChemEntity by humans.
+ * The empirical formula is the simplest whole number ratio of all the atoms in a molecule.
*
*
- * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @var string
*/
- protected $potentialUse;
+ protected $molecularFormula;
/**
- * A role played by the BioChemEntity within a chemical context.
+ * 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\DefinedTerm|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $chemicalRole;
+ protected $molecularWeight;
/**
- * 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>.
+ * 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
*/
- protected $molecularWeight;
+ protected $monoisotopicMolecularWeight;
/**
- * Non-proprietary identifier for molecular entity that can be used in printed and electronic data sources thus enabling easier linking of diverse data compilations.
+ * Intended use of the BioChemEntity by humans.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $inChI;
+ protected $potentialUse;
/**
* 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.
@@ -104,199 +104,199 @@ public static function fieldList() {
protected $smiles;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getInChIKey()
+ public function getChemicalRole()
{
- return $this->inChIKey;
+ return $this->chemicalRole;
}
/**
- * @param string $inChIKey
+ * @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 setInChIKey($inChIKey)
+ public function setChemicalRole($chemicalRole)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $inChIKey = self::checkTypes($inChIKey, $types);
+ $chemicalRole = self::checkTypes($chemicalRole, $types);
- $this->inChIKey = $inChIKey;
+ $this->chemicalRole = $chemicalRole;
}
/**
* @return string
*/
- public function getIupacName()
+ public function getInChI()
{
- return $this->iupacName;
+ return $this->inChI;
}
/**
- * @param string $iupacName
+ * @param string $inChI
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIupacName($iupacName)
+ public function setInChI($inChI)
{
$types = [
"string",
];
- $iupacName = self::checkTypes($iupacName, $types);
+ $inChI = self::checkTypes($inChI, $types);
- $this->iupacName = $iupacName;
+ $this->inChI = $inChI;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue
+ * @return string
*/
- public function getMonoisotopicMolecularWeight()
+ public function getInChIKey()
{
- return $this->monoisotopicMolecularWeight;
+ return $this->inChIKey;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $monoisotopicMolecularWeight
+ * @param string $inChIKey
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight)
+ public function setInChIKey($inChIKey)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
];
- $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types);
+ $inChIKey = self::checkTypes($inChIKey, $types);
- $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight;
+ $this->inChIKey = $inChIKey;
}
/**
* @return string
*/
- public function getMolecularFormula()
+ public function getIupacName()
{
- return $this->molecularFormula;
+ return $this->iupacName;
}
/**
- * @param string $molecularFormula
+ * @param string $iupacName
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMolecularFormula($molecularFormula)
+ public function setIupacName($iupacName)
{
$types = [
"string",
];
- $molecularFormula = self::checkTypes($molecularFormula, $types);
+ $iupacName = self::checkTypes($iupacName, $types);
- $this->molecularFormula = $molecularFormula;
+ $this->iupacName = $iupacName;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return string
*/
- public function getPotentialUse()
+ public function getMolecularFormula()
{
- return $this->potentialUse;
+ return $this->molecularFormula;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $potentialUse
+ * @param string $molecularFormula
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPotentialUse($potentialUse)
+ public function setMolecularFormula($molecularFormula)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $potentialUse = self::checkTypes($potentialUse, $types);
+ $molecularFormula = self::checkTypes($molecularFormula, $types);
- $this->potentialUse = $potentialUse;
+ $this->molecularFormula = $molecularFormula;
}
/**
- * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getChemicalRole()
+ public function getMolecularWeight()
{
- return $this->chemicalRole;
+ return $this->molecularWeight;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $chemicalRole
+ * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $molecularWeight
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setChemicalRole($chemicalRole)
+ public function setMolecularWeight($molecularWeight)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $chemicalRole = self::checkTypes($chemicalRole, $types);
+ $molecularWeight = self::checkTypes($molecularWeight, $types);
- $this->chemicalRole = $chemicalRole;
+ $this->molecularWeight = $molecularWeight;
}
/**
* @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getMolecularWeight()
+ public function getMonoisotopicMolecularWeight()
{
- return $this->molecularWeight;
+ return $this->monoisotopicMolecularWeight;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $molecularWeight
+ * @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 setMolecularWeight($molecularWeight)
+ public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight)
{
$types = [
"\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $molecularWeight = self::checkTypes($molecularWeight, $types);
+ $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types);
- $this->molecularWeight = $molecularWeight;
+ $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getInChI()
+ public function getPotentialUse()
{
- return $this->inChI;
+ return $this->potentialUse;
}
/**
- * @param string $inChI
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $potentialUse
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInChI($inChI)
+ public function setPotentialUse($potentialUse)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $inChI = self::checkTypes($inChI, $types);
+ $potentialUse = self::checkTypes($potentialUse, $types);
- $this->inChI = $inChI;
+ $this->potentialUse = $potentialUse;
}
/**
diff --git a/src/Models/SchemaOrg/MonetaryAmount.php b/src/Models/SchemaOrg/MonetaryAmount.php
index 016e1527..111895f1 100644
--- a/src/Models/SchemaOrg/MonetaryAmount.php
+++ b/src/Models/SchemaOrg/MonetaryAmount.php
@@ -17,17 +17,25 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "currency" => "currency",
"maxValue" => "maxValue",
"minValue" => "minValue",
"validFrom" => "validFrom",
- "value" => "value",
- "currency" => "currency",
"validThrough" => "validThrough",
+ "value" => "value",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".
+ *
+ *
+ * @var string
+ */
+ protected $currency;
+
/**
* The upper value of some characteristic or property.
*
@@ -53,28 +61,44 @@ public static function fieldList() {
protected $validFrom;
/**
- * The value of the quantitative value or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text;', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.
+ * The 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', 'StructuredValue' or 'QualitativeValue'.\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|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|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.
- *
- *
- * @var Date|DateTime|null
+ * @return string
*/
- protected $validThrough;
+ public function getCurrency()
+ {
+ return $this->currency;
+ }
+
+ /**
+ * @param string $currency
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setCurrency($currency)
+ {
+ $types = [
+ "string",
+ ];
+
+ $currency = self::checkTypes($currency, $types);
+
+ $this->currency = $currency;
+ }
/**
* @return Number|null
@@ -153,81 +177,58 @@ public function setValidFrom($validFrom)
}
/**
- * @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|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|null
*/
- public function getCurrency()
+ public function getValue()
{
- return $this->currency;
+ return $this->value;
}
/**
- * @param string $currency
+ * @param bool|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|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",
+ "Number",
+ "\OpenActive\Enums\SchemaOrg\QualitativeValue",
+ "\OpenActive\Models\SchemaOrg\StructuredValue",
"string",
- ];
-
- $currency = self::checkTypes($currency, $types);
-
- $this->currency = $currency;
- }
-
- /**
- * @return Date|DateTime|null
- */
- public function getValidThrough()
- {
- return $this->validThrough;
- }
-
- /**
- * @param Date|DateTime|null $validThrough
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setValidThrough($validThrough)
- {
- $types = [
- "Date",
- "DateTime",
"null",
];
- $validThrough = self::checkTypes($validThrough, $types);
+ $value = self::checkTypes($value, $types);
- $this->validThrough = $validThrough;
+ $this->value = $value;
}
}
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..4d35526f 100644
--- a/src/Models/SchemaOrg/MonetaryGrant.php
+++ b/src/Models/SchemaOrg/MonetaryGrant.php
@@ -17,80 +17,80 @@ public static function getType()
public static function fieldList() {
$fields = [
- "funder" => "funder",
"amount" => "amount",
+ "funder" => "funder",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A person or organization that supports (sponsors) something through some kind of financial contribution.
+ * The amount of money.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $funder;
+ protected $amount;
/**
- * The amount of money.
+ * A person or organization that supports (sponsors) something through some kind of financial contribution.
*
*
- * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $amount;
+ protected $funder;
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getFunder()
+ public function getAmount()
{
- return $this->funder;
+ return $this->amount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
+ * @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 setFunder($funder)
+ public function setAmount($amount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
+ "null",
];
- $funder = self::checkTypes($funder, $types);
+ $amount = self::checkTypes($amount, $types);
- $this->funder = $funder;
+ $this->amount = $amount;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getAmount()
+ public function getFunder()
{
- return $this->amount;
+ return $this->funder;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmount($amount)
+ public function setFunder($funder)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "null",
];
- $amount = self::checkTypes($amount, $types);
+ $funder = self::checkTypes($funder, $types);
- $this->amount = $amount;
+ $this->funder = $funder;
}
}
diff --git a/src/Models/SchemaOrg/MoneyTransfer.php b/src/Models/SchemaOrg/MoneyTransfer.php
index 840cab16..e517b39f 100644
--- a/src/Models/SchemaOrg/MoneyTransfer.php
+++ b/src/Models/SchemaOrg/MoneyTransfer.php
@@ -17,79 +17,79 @@ public static function getType()
public static function fieldList() {
$fields = [
- "beneficiaryBank" => "beneficiaryBank",
"amount" => "amount",
+ "beneficiaryBank" => "beneficiaryBank",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A bank or bank’s branch, financial institution or international financial institution operating the beneficiary’s bank account or releasing funds for the beneficiary.
+ * The amount of money.
*
*
- * @var \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- protected $beneficiaryBank;
+ protected $amount;
/**
- * The amount of money.
+ * 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 Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @var \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string
*/
- protected $amount;
+ protected $beneficiaryBank;
/**
- * @return \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
*/
- public function getBeneficiaryBank()
+ public function getAmount()
{
- return $this->beneficiaryBank;
+ return $this->amount;
}
/**
- * @param \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string $beneficiaryBank
+ * @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 setBeneficiaryBank($beneficiaryBank)
+ public function setAmount($amount)
{
$types = [
- "\OpenActive\Models\SchemaOrg\BankOrCreditUnion",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
"string",
+ "Number",
+ "null",
];
- $beneficiaryBank = self::checkTypes($beneficiaryBank, $types);
+ $amount = self::checkTypes($amount, $types);
- $this->beneficiaryBank = $beneficiaryBank;
+ $this->amount = $amount;
}
/**
- * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null
+ * @return \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string
*/
- public function getAmount()
+ public function getBeneficiaryBank()
{
- return $this->amount;
+ return $this->beneficiaryBank;
}
/**
- * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount
+ * @param \OpenActive\Models\SchemaOrg\BankOrCreditUnion|string $beneficiaryBank
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAmount($amount)
+ public function setBeneficiaryBank($beneficiaryBank)
{
$types = [
- "Number",
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\BankOrCreditUnion",
"string",
- "null",
];
- $amount = self::checkTypes($amount, $types);
+ $beneficiaryBank = self::checkTypes($beneficiaryBank, $types);
- $this->amount = $amount;
+ $this->beneficiaryBank = $beneficiaryBank;
}
}
diff --git a/src/Models/SchemaOrg/MortgageLoan.php b/src/Models/SchemaOrg/MortgageLoan.php
index ced7eb4d..cd7c3768 100644
--- a/src/Models/SchemaOrg/MortgageLoan.php
+++ b/src/Models/SchemaOrg/MortgageLoan.php
@@ -17,77 +17,77 @@ public static function getType()
public static function fieldList() {
$fields = [
- "loanMortgageMandateAmount" => "loanMortgageMandateAmount",
"domiciledMortgage" => "domiciledMortgage",
+ "loanMortgageMandateAmount" => "loanMortgageMandateAmount",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Amount of mortgage mandate that can be converted into a proper mortgage at a later stage.
+ * Whether borrower is a resident of the jurisdiction where the property is located.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @var bool|null
*/
- protected $loanMortgageMandateAmount;
+ protected $domiciledMortgage;
/**
- * Whether borrower is a resident of the jurisdiction where the property is located.
+ * Amount of mortgage mandate that can be converted into a proper mortgage at a later stage.
*
*
- * @var bool|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- protected $domiciledMortgage;
+ protected $loanMortgageMandateAmount;
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
+ * @return bool|null
*/
- public function getLoanMortgageMandateAmount()
+ public function getDomiciledMortgage()
{
- return $this->loanMortgageMandateAmount;
+ return $this->domiciledMortgage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $loanMortgageMandateAmount
+ * @param bool|null $domiciledMortgage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setLoanMortgageMandateAmount($loanMortgageMandateAmount)
+ public function setDomiciledMortgage($domiciledMortgage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmount",
- "string",
+ "bool",
+ "null",
];
- $loanMortgageMandateAmount = self::checkTypes($loanMortgageMandateAmount, $types);
+ $domiciledMortgage = self::checkTypes($domiciledMortgage, $types);
- $this->loanMortgageMandateAmount = $loanMortgageMandateAmount;
+ $this->domiciledMortgage = $domiciledMortgage;
}
/**
- * @return bool|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string
*/
- public function getDomiciledMortgage()
+ public function getLoanMortgageMandateAmount()
{
- return $this->domiciledMortgage;
+ return $this->loanMortgageMandateAmount;
}
/**
- * @param bool|null $domiciledMortgage
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $loanMortgageMandateAmount
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDomiciledMortgage($domiciledMortgage)
+ public function setLoanMortgageMandateAmount($loanMortgageMandateAmount)
{
$types = [
- "bool",
- "null",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "string",
];
- $domiciledMortgage = self::checkTypes($domiciledMortgage, $types);
+ $loanMortgageMandateAmount = self::checkTypes($loanMortgageMandateAmount, $types);
- $this->domiciledMortgage = $domiciledMortgage;
+ $this->loanMortgageMandateAmount = $loanMortgageMandateAmount;
}
}
diff --git a/src/Models/SchemaOrg/Movie.php b/src/Models/SchemaOrg/Movie.php
index c86efcb6..6f2d3f33 100644
--- a/src/Models/SchemaOrg/Movie.php
+++ b/src/Models/SchemaOrg/Movie.php
@@ -17,89 +17,84 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "actor" => "actor",
+ "actors" => "actors",
"countryOfOrigin" => "countryOfOrigin",
"director" => "director",
- "titleEIDR" => "titleEIDR",
- "subtitleLanguage" => "subtitleLanguage",
- "actor" => "actor",
- "trailer" => "trailer",
+ "directors" => "directors",
"duration" => "duration",
- "productionCompany" => "productionCompany",
- "actors" => "actors",
"musicBy" => "musicBy",
- "directors" => "directors",
+ "productionCompany" => "productionCompany",
+ "subtitleLanguage" => "subtitleLanguage",
+ "titleEIDR" => "titleEIDR",
+ "trailer" => "trailer",
];
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\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|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.
+ * 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 [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]].
+ * The country of origin of something, including products as well as creative works such as movie and TV content.
*
- * 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.
+ * 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 string
+ * @var \OpenActive\Models\SchemaOrg\Country|string
*/
- protected $titleEIDR;
+ protected $countryOfOrigin;
/**
- * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
+ * 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\Language|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $subtitleLanguage;
+ 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.
+ * 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.
+ * 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\VideoObject|string
+ * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $trailer;
+ protected $duration;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The composer of the soundtrack.
*
*
- * @var DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $duration;
+ protected $musicBy;
/**
- * 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
@@ -107,202 +102,211 @@ 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.
+ * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\Language|string
*/
- protected $actors;
+ protected $subtitleLanguage;
/**
- * The composer of the soundtrack.
+ * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television.
+ *
+ * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]].
+ *
+ * Since schema.org types like [[Movie]], [[TVEpisode]], [[TVSeason]], and [[TVSeries]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description.
+ *
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var string
*/
- protected $musicBy;
+ protected $titleEIDR;
/**
- * 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 trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $directors;
+ protected $trailer;
/**
- * @return \OpenActive\Models\SchemaOrg\Country|string
+ * @return \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getCountryOfOrigin()
+ public function getActor()
{
- return $this->countryOfOrigin;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin
+ * @param \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|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\PerformingGroup",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->countryOfOrigin = $countryOfOrigin;
+ $this->actor = $actor;
}
/**
* @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 string
+ * @return \OpenActive\Models\SchemaOrg\Country|string
*/
- public function getTitleEIDR()
+ public function getCountryOfOrigin()
{
- return $this->titleEIDR;
+ return $this->countryOfOrigin;
}
/**
- * @param string $titleEIDR
+ * @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 setTitleEIDR($titleEIDR)
+ public function setCountryOfOrigin($countryOfOrigin)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Country",
"string",
];
- $titleEIDR = self::checkTypes($titleEIDR, $types);
+ $countryOfOrigin = self::checkTypes($countryOfOrigin, $types);
- $this->titleEIDR = $titleEIDR;
+ $this->countryOfOrigin = $countryOfOrigin;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Language|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getSubtitleLanguage()
+ public function getDirector()
{
- return $this->subtitleLanguage;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage
+ * @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 setSubtitleLanguage($subtitleLanguage)
+ public function setDirector($director)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Language",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
+ $director = self::checkTypes($director, $types);
- $this->subtitleLanguage = $subtitleLanguage;
+ $this->director = $director;
}
/**
* @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 DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getTrailer()
+ public function getDuration()
{
- return $this->trailer;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTrailer($trailer)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "DateInterval",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "null",
];
- $trailer = self::checkTypes($trailer, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->trailer = $trailer;
+ $this->duration = $duration;
}
/**
- * @return DateInterval|string|null
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDuration()
+ public function getMusicBy()
{
- return $this->duration;
+ return $this->musicBy;
}
/**
- * @param DateInterval|string|null $duration
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setMusicBy($musicBy)
{
$types = [
- "DateInterval",
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->duration = $duration;
+ $this->musicBy = $musicBy;
}
/**
@@ -331,79 +335,77 @@ public function setProductionCompany($productionCompany)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\Language|string
*/
- public function getActors()
+ public function getSubtitleLanguage()
{
- return $this->actors;
+ return $this->subtitleLanguage;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActors($actors)
+ public function setSubtitleLanguage($subtitleLanguage)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\Language",
"string",
];
- $actors = self::checkTypes($actors, $types);
+ $subtitleLanguage = self::checkTypes($subtitleLanguage, $types);
- $this->actors = $actors;
+ $this->subtitleLanguage = $subtitleLanguage;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return string
*/
- public function getMusicBy()
+ public function getTitleEIDR()
{
- return $this->musicBy;
+ return $this->titleEIDR;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
+ * @param string $titleEIDR
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicBy($musicBy)
+ public function setTitleEIDR($titleEIDR)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
"string",
];
- $musicBy = self::checkTypes($musicBy, $types);
+ $titleEIDR = self::checkTypes($titleEIDR, $types);
- $this->musicBy = $musicBy;
+ $this->titleEIDR = $titleEIDR;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getDirectors()
+ public function getTrailer()
{
- return $this->directors;
+ return $this->trailer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setTrailer($trailer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->directors = $directors;
+ $this->trailer = $trailer;
}
}
diff --git a/src/Models/SchemaOrg/MovieSeries.php b/src/Models/SchemaOrg/MovieSeries.php
index e262dec2..1571bb71 100644
--- a/src/Models/SchemaOrg/MovieSeries.php
+++ b/src/Models/SchemaOrg/MovieSeries.php
@@ -17,248 +17,249 @@ public static function getType()
public static function fieldList() {
$fields = [
- "director" => "director",
"actor" => "actor",
- "trailer" => "trailer",
- "productionCompany" => "productionCompany",
"actors" => "actors",
- "musicBy" => "musicBy",
+ "director" => "director",
"directors" => "directors",
+ "musicBy" => "musicBy",
+ "productionCompany" => "productionCompany",
+ "trailer" => "trailer",
];
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\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $director;
+ protected $actor;
/**
- * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.
+ * 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 gaming etc. content, or of an event. 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 $director;
/**
- * The production company or studio responsible for the item e.g. series, video game, episode etc.
+ * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $productionCompany;
+ protected $directors;
/**
- * 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 composer of the soundtrack.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $actors;
+ protected $musicBy;
/**
- * The composer of the soundtrack.
+ * The production company or studio responsible for the item, e.g. series, video game, episode etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var \OpenActive\Models\SchemaOrg\Organization|string
*/
- protected $musicBy;
+ protected $productionCompany;
/**
- * 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 trailer of a movie or TV/radio series, season, episode, etc.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- protected $directors;
+ protected $trailer;
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getDirector()
+ public function getActor()
{
- return $this->director;
+ return $this->actor;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $director
+ * @param \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string $actor
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDirector($director)
+ public function setActor($actor)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\PerformingGroup",
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $director = self::checkTypes($director, $types);
+ $actor = self::checkTypes($actor, $types);
- $this->director = $director;
+ $this->actor = $actor;
}
/**
* @return \OpenActive\Models\SchemaOrg\Person|string
*/
- 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 getDirector()
{
- return $this->trailer;
+ return $this->director;
}
/**
- * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer
+ * @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 setTrailer($trailer)
+ public function setDirector($director)
{
$types = [
- "\OpenActive\Models\SchemaOrg\VideoObject",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $trailer = self::checkTypes($trailer, $types);
+ $director = self::checkTypes($director, $types);
- $this->trailer = $trailer;
+ $this->director = $director;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Models\SchemaOrg\Person|string
*/
- public function getProductionCompany()
+ public function getDirectors()
{
- return $this->productionCompany;
+ return $this->directors;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany
+ * @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 setProductionCompany($productionCompany)
+ public function setDirectors($directors)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $productionCompany = self::checkTypes($productionCompany, $types);
+ $directors = self::checkTypes($directors, $types);
- $this->productionCompany = $productionCompany;
+ $this->directors = $directors;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getActors()
+ public function getMusicBy()
{
- return $this->actors;
+ return $this->musicBy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $actors
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setActors($actors)
+ public function setMusicBy($musicBy)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
"\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $actors = self::checkTypes($actors, $types);
+ $musicBy = self::checkTypes($musicBy, $types);
- $this->actors = $actors;
+ $this->musicBy = $musicBy;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\Organization|string
*/
- public function getMusicBy()
+ public function getProductionCompany()
{
- return $this->musicBy;
+ return $this->productionCompany;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy
+ * @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 setMusicBy($musicBy)
+ public function setProductionCompany($productionCompany)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Organization",
"string",
];
- $musicBy = self::checkTypes($musicBy, $types);
+ $productionCompany = self::checkTypes($productionCompany, $types);
- $this->musicBy = $musicBy;
+ $this->productionCompany = $productionCompany;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\VideoObject|string
*/
- public function getDirectors()
+ public function getTrailer()
{
- return $this->directors;
+ return $this->trailer;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $directors
+ * @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 setDirectors($directors)
+ public function setTrailer($trailer)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\VideoObject",
"string",
];
- $directors = self::checkTypes($directors, $types);
+ $trailer = self::checkTypes($trailer, $types);
- $this->directors = $directors;
+ $this->trailer = $trailer;
}
}
diff --git a/src/Models/SchemaOrg/Muscle.php b/src/Models/SchemaOrg/Muscle.php
index c9754755..5f3c33bd 100644
--- a/src/Models/SchemaOrg/Muscle.php
+++ b/src/Models/SchemaOrg/Muscle.php
@@ -17,24 +17,16 @@ public static function getType()
public static function fieldList() {
$fields = [
- "insertion" => "insertion",
"antagonist" => "antagonist",
- "nerve" => "nerve",
"bloodSupply" => "bloodSupply",
+ "insertion" => "insertion",
"muscleAction" => "muscleAction",
+ "nerve" => "nerve",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The place of attachment of a muscle, or what the muscle moves.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
- */
- protected $insertion;
-
/**
* The muscle whose action counteracts the specified muscle.
*
@@ -44,20 +36,20 @@ public static function fieldList() {
protected $antagonist;
/**
- * The underlying innervation associated with the muscle.
+ * The blood vessel that carries blood from the heart to the muscle.
*
*
- * @var \OpenActive\Models\SchemaOrg\Nerve|string
+ * @var \OpenActive\Models\SchemaOrg\Vessel|string
*/
- protected $nerve;
+ protected $bloodSupply;
/**
- * The blood vessel that carries blood from the heart to the muscle.
+ * The place of attachment of a muscle, or what the muscle moves.
*
*
- * @var \OpenActive\Models\SchemaOrg\Vessel|string
+ * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- protected $bloodSupply;
+ protected $insertion;
/**
* The movement the muscle generates.
@@ -68,29 +60,12 @@ public static function fieldList() {
protected $muscleAction;
/**
- * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
- */
- public function getInsertion()
- {
- return $this->insertion;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $insertion
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * The underlying innervation associated with the muscle.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Nerve|string
*/
- public function setInsertion($insertion)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
- "string",
- ];
-
- $insertion = self::checkTypes($insertion, $types);
-
- $this->insertion = $insertion;
- }
+ protected $nerve;
/**
* @return \OpenActive\Models\SchemaOrg\Muscle|string
@@ -118,53 +93,53 @@ public function setAntagonist($antagonist)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Nerve|string
+ * @return \OpenActive\Models\SchemaOrg\Vessel|string
*/
- public function getNerve()
+ public function getBloodSupply()
{
- return $this->nerve;
+ return $this->bloodSupply;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Nerve|string $nerve
+ * @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 setNerve($nerve)
+ public function setBloodSupply($bloodSupply)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Nerve",
+ "\OpenActive\Models\SchemaOrg\Vessel",
"string",
];
- $nerve = self::checkTypes($nerve, $types);
+ $bloodSupply = self::checkTypes($bloodSupply, $types);
- $this->nerve = $nerve;
+ $this->bloodSupply = $bloodSupply;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Vessel|string
+ * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string
*/
- public function getBloodSupply()
+ public function getInsertion()
{
- return $this->bloodSupply;
+ return $this->insertion;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Vessel|string $bloodSupply
+ * @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 setBloodSupply($bloodSupply)
+ public function setInsertion($insertion)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Vessel",
+ "\OpenActive\Models\SchemaOrg\AnatomicalStructure",
"string",
];
- $bloodSupply = self::checkTypes($bloodSupply, $types);
+ $insertion = self::checkTypes($insertion, $types);
- $this->bloodSupply = $bloodSupply;
+ $this->insertion = $insertion;
}
/**
@@ -191,4 +166,29 @@ public function setMuscleAction($muscleAction)
$this->muscleAction = $muscleAction;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Nerve|string
+ */
+ public function getNerve()
+ {
+ return $this->nerve;
+ }
+
+ /**
+ * @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 setNerve($nerve)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Nerve",
+ "string",
+ ];
+
+ $nerve = self::checkTypes($nerve, $types);
+
+ $this->nerve = $nerve;
+ }
+
}
diff --git a/src/Models/SchemaOrg/MusicAlbum.php b/src/Models/SchemaOrg/MusicAlbum.php
index 004dcd17..69acb4e8 100644
--- a/src/Models/SchemaOrg/MusicAlbum.php
+++ b/src/Models/SchemaOrg/MusicAlbum.php
@@ -18,8 +18,8 @@ public static function getType()
public static function fieldList() {
$fields = [
"albumProductionType" => "albumProductionType",
- "albumReleaseType" => "albumReleaseType",
"albumRelease" => "albumRelease",
+ "albumReleaseType" => "albumReleaseType",
"byArtist" => "byArtist",
];
@@ -27,7 +27,7 @@ public static function fieldList() {
}
/**
- * 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
@@ -35,26 +35,26 @@ public static function fieldList() {
protected $albumProductionType;
/**
- * The kind of release which this album is: single, EP or album.
+ * A release of this album.
*
*
- * @var \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
+ * @var \OpenActive\Models\SchemaOrg\MusicRelease|string
*/
- protected $albumReleaseType;
+ protected $albumRelease;
/**
- * A release of this album.
+ * The kind of release which this album is: single, EP or album.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRelease|string
+ * @var \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
*/
- protected $albumRelease;
+ protected $albumReleaseType;
/**
* The artist that performed this album or recording.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
protected $byArtist;
@@ -84,57 +84,57 @@ public function setAlbumProductionType($albumProductionType)
}
/**
- * @return \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
+ * @return \OpenActive\Models\SchemaOrg\MusicRelease|string
*/
- public function getAlbumReleaseType()
+ public function getAlbumRelease()
{
- return $this->albumReleaseType;
+ return $this->albumRelease;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null $albumReleaseType
+ * @param \OpenActive\Models\SchemaOrg\MusicRelease|string $albumRelease
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlbumReleaseType($albumReleaseType)
+ public function setAlbumRelease($albumRelease)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType",
- "null",
+ "\OpenActive\Models\SchemaOrg\MusicRelease",
+ "string",
];
- $albumReleaseType = self::checkTypes($albumReleaseType, $types);
+ $albumRelease = self::checkTypes($albumRelease, $types);
- $this->albumReleaseType = $albumReleaseType;
+ $this->albumRelease = $albumRelease;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRelease|string
+ * @return \OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType|null
*/
- public function getAlbumRelease()
+ public function getAlbumReleaseType()
{
- return $this->albumRelease;
+ return $this->albumReleaseType;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRelease|string $albumRelease
+ * @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 setAlbumRelease($albumRelease)
+ public function setAlbumReleaseType($albumReleaseType)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicRelease",
- "string",
+ "\OpenActive\Enums\SchemaOrg\MusicAlbumReleaseType",
+ "null",
];
- $albumRelease = self::checkTypes($albumRelease, $types);
+ $albumReleaseType = self::checkTypes($albumReleaseType, $types);
- $this->albumRelease = $albumRelease;
+ $this->albumReleaseType = $albumReleaseType;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
public function getByArtist()
{
@@ -142,15 +142,15 @@ public function getByArtist()
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $byArtist
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $byArtist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setByArtist($byArtist)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
"\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
diff --git a/src/Models/SchemaOrg/MusicComposition.php b/src/Models/SchemaOrg/MusicComposition.php
index c1427176..fb4c8d65 100644
--- a/src/Models/SchemaOrg/MusicComposition.php
+++ b/src/Models/SchemaOrg/MusicComposition.php
@@ -17,29 +17,21 @@ public static function getType()
public static function fieldList() {
$fields = [
- "iswcCode" => "iswcCode",
"composer" => "composer",
- "musicCompositionForm" => "musicCompositionForm",
- "includedComposition" => "includedComposition",
- "recordedAs" => "recordedAs",
"firstPerformance" => "firstPerformance",
- "musicArrangement" => "musicArrangement",
+ "includedComposition" => "includedComposition",
+ "iswcCode" => "iswcCode",
+ "lyricist" => "lyricist",
"lyrics" => "lyrics",
+ "musicArrangement" => "musicArrangement",
+ "musicCompositionForm" => "musicCompositionForm",
"musicalKey" => "musicalKey",
- "lyricist" => "lyricist",
+ "recordedAs" => "recordedAs",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * The International Standard Musical Work Code for the composition.
- *
- *
- * @var string
- */
- protected $iswcCode;
-
/**
* The person or organization who wrote a composition, or who is the composer of a work performed at some event.
*
@@ -49,12 +41,12 @@ public static function fieldList() {
protected $composer;
/**
- * The type of composition (e.g. overture, sonata, symphony, etc.).
+ * The date and place the work was first performed.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Event|string
*/
- protected $musicCompositionForm;
+ protected $firstPerformance;
/**
* Smaller compositions included in this work (e.g. a movement in a symphony).
@@ -65,20 +57,28 @@ public static function fieldList() {
protected $includedComposition;
/**
- * An audio recording of the work.
+ * The International Standard Musical Work Code for the composition.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var string
*/
- protected $recordedAs;
+ protected $iswcCode;
/**
- * The date and place the work was first performed.
+ * The person who wrote the words.
*
*
- * @var \OpenActive\Models\SchemaOrg\Event|string
+ * @var \OpenActive\Models\SchemaOrg\Person|string
*/
- protected $firstPerformance;
+ protected $lyricist;
+
+ /**
+ * The words in the song.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ protected $lyrics;
/**
* 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,36 +105,12 @@ public static function fieldList() {
protected $musicalKey;
/**
- * The person who wrote the words.
+ * An audio recording of the work.
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|string
- */
- protected $lyricist;
-
- /**
- * @return string
- */
- public function getIswcCode()
- {
- return $this->iswcCode;
- }
-
- /**
- * @param string $iswcCode
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function setIswcCode($iswcCode)
- {
- $types = [
- "string",
- ];
-
- $iswcCode = self::checkTypes($iswcCode, $types);
-
- $this->iswcCode = $iswcCode;
- }
+ protected $recordedAs;
/**
* @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
@@ -163,27 +139,28 @@ public function setComposer($composer)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Event|string
*/
- public function getMusicCompositionForm()
+ public function getFirstPerformance()
{
- return $this->musicCompositionForm;
+ return $this->firstPerformance;
}
/**
- * @param string $musicCompositionForm
+ * @param \OpenActive\Models\SchemaOrg\Event|string $firstPerformance
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicCompositionForm($musicCompositionForm)
+ public function setFirstPerformance($firstPerformance)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Event",
"string",
];
- $musicCompositionForm = self::checkTypes($musicCompositionForm, $types);
+ $firstPerformance = self::checkTypes($firstPerformance, $types);
- $this->musicCompositionForm = $musicCompositionForm;
+ $this->firstPerformance = $firstPerformance;
}
/**
@@ -212,53 +189,77 @@ public function setIncludedComposition($includedComposition)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return string
*/
- public function getRecordedAs()
+ public function getIswcCode()
{
- return $this->recordedAs;
+ return $this->iswcCode;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $recordedAs
+ * @param string $iswcCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordedAs($recordedAs)
+ public function setIswcCode($iswcCode)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $recordedAs = self::checkTypes($recordedAs, $types);
+ $iswcCode = self::checkTypes($iswcCode, $types);
- $this->recordedAs = $recordedAs;
+ $this->iswcCode = $iswcCode;
}
/**
- * @return \OpenActive\Models\SchemaOrg\Event|string
+ * @return \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;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ public function getLyrics()
+ {
+ return $this->lyrics;
+ }
+
+ /**
+ * @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 setLyrics($lyrics)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
+ ];
+
+ $lyrics = self::checkTypes($lyrics, $types);
+
+ $this->lyrics = $lyrics;
}
/**
@@ -287,28 +288,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 +336,28 @@ public function setMusicalKey($musicalKey)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getLyricist()
+ public function getRecordedAs()
{
- return $this->lyricist;
+ return $this->recordedAs;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $lyricist
+ * @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 setLyricist($lyricist)
+ public function setRecordedAs($recordedAs)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $lyricist = self::checkTypes($lyricist, $types);
+ $recordedAs = self::checkTypes($recordedAs, $types);
- $this->lyricist = $lyricist;
+ $this->recordedAs = $recordedAs;
}
}
diff --git a/src/Models/SchemaOrg/MusicGroup.php b/src/Models/SchemaOrg/MusicGroup.php
index 6d520149..f1ca30e1 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",
+ "album" => "album",
+ "albums" => "albums",
"genre" => "genre",
"musicGroupMember" => "musicGroupMember",
- "albums" => "albums",
"track" => "track",
- "album" => "album",
+ "tracks" => "tracks",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * A music recording (track)—usually a single song.
+ * A music album.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $tracks;
+ protected $album;
/**
- * Genre of the creative work, broadcast channel or group.
+ * 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 \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $musicGroupMember;
+ protected $genre;
/**
- * A collection of music albums.
+ * 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 $albums;
+ protected $musicGroupMember;
/**
* A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording.
@@ -69,110 +69,111 @@ public static function fieldList() {
protected $track;
/**
- * A music album.
+ * A music recording (track)—usually a single song.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- protected $album;
+ protected $tracks;
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function getTracks()
+ public function getAlbum()
{
- return $this->tracks;
+ return $this->album;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks
+ * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $album
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTracks($tracks)
+ public function setAlbum($album)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $tracks = self::checkTypes($tracks, $types);
+ $album = self::checkTypes($album, $types);
- $this->tracks = $tracks;
+ $this->album = $album;
}
/**
- * @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 \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getMusicGroupMember()
+ public function getGenre()
{
- return $this->musicGroupMember;
+ return $this->genre;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|string $musicGroupMember
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|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",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"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\Person|string
*/
- public function getAlbums()
+ public function getMusicGroupMember()
{
- return $this->albums;
+ return $this->musicGroupMember;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $albums
+ * @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 setAlbums($albums)
+ public function setMusicGroupMember($musicGroupMember)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $albums = self::checkTypes($albums, $types);
+ $musicGroupMember = self::checkTypes($musicGroupMember, $types);
- $this->albums = $albums;
+ $this->musicGroupMember = $musicGroupMember;
}
/**
@@ -202,28 +203,28 @@ public function setTrack($track)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function getAlbum()
+ public function getTracks()
{
- return $this->album;
+ return $this->tracks;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $album
+ * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setAlbum($album)
+ public function setTracks($tracks)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
"string",
];
- $album = self::checkTypes($album, $types);
+ $tracks = self::checkTypes($tracks, $types);
- $this->album = $album;
+ $this->tracks = $tracks;
}
}
diff --git a/src/Models/SchemaOrg/MusicPlaylist.php b/src/Models/SchemaOrg/MusicPlaylist.php
index b445413a..ad8dc701 100644
--- a/src/Models/SchemaOrg/MusicPlaylist.php
+++ b/src/Models/SchemaOrg/MusicPlaylist.php
@@ -17,22 +17,14 @@ public static function getType()
public static function fieldList() {
$fields = [
- "tracks" => "tracks",
"numTracks" => "numTracks",
"track" => "track",
+ "tracks" => "tracks",
];
return array_merge(parent::fieldList(), $fields);
}
- /**
- * A music recording (track)—usually a single song.
- *
- *
- * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
- */
- protected $tracks;
-
/**
* The number of tracks in this album or playlist.
*
@@ -50,29 +42,12 @@ public static function fieldList() {
protected $track;
/**
- * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
- */
- public function getTracks()
- {
- return $this->tracks;
- }
-
- /**
- * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ * A music recording (track)—usually a single song.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\MusicRecording|string
*/
- public function setTracks($tracks)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\MusicRecording",
- "string",
- ];
-
- $tracks = self::checkTypes($tracks, $types);
-
- $this->tracks = $tracks;
- }
+ protected $tracks;
/**
* @return int|null
@@ -125,4 +100,29 @@ public function setTrack($track)
$this->track = $track;
}
+ /**
+ * @return \OpenActive\Models\SchemaOrg\MusicRecording|string
+ */
+ public function getTracks()
+ {
+ return $this->tracks;
+ }
+
+ /**
+ * @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 setTracks($tracks)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\MusicRecording",
+ "string",
+ ];
+
+ $tracks = self::checkTypes($tracks, $types);
+
+ $this->tracks = $tracks;
+ }
+
}
diff --git a/src/Models/SchemaOrg/MusicRecording.php b/src/Models/SchemaOrg/MusicRecording.php
index 9784c961..d17f90ff 100644
--- a/src/Models/SchemaOrg/MusicRecording.php
+++ b/src/Models/SchemaOrg/MusicRecording.php
@@ -17,32 +17,32 @@ public static function getType()
public static function fieldList() {
$fields = [
- "isrcCode" => "isrcCode",
- "inPlaylist" => "inPlaylist",
+ "byArtist" => "byArtist",
+ "duration" => "duration",
"inAlbum" => "inAlbum",
+ "inPlaylist" => "inPlaylist",
+ "isrcCode" => "isrcCode",
"recordingOf" => "recordingOf",
- "duration" => "duration",
- "byArtist" => "byArtist",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The International Standard Recording Code for the recording.
+ * The artist that performed this album or recording.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $isrcCode;
+ protected $byArtist;
/**
- * The playlist to which this recording 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\MusicPlaylist|string
+ * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- protected $inPlaylist;
+ protected $duration;
/**
* The album to which this recording belongs.
@@ -53,76 +53,80 @@ public static function fieldList() {
protected $inAlbum;
/**
- * The composition this track is a recording of.
+ * The playlist to which this recording belongs.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @var \OpenActive\Models\SchemaOrg\MusicPlaylist|string
*/
- protected $recordingOf;
+ protected $inPlaylist;
/**
- * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).
+ * The International Standard Recording Code for the recording.
*
*
- * @var DateInterval|string|null
+ * @var string
*/
- protected $duration;
+ protected $isrcCode;
/**
- * 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
+ * @var \OpenActive\Models\SchemaOrg\MusicComposition|string
*/
- protected $byArtist;
+ protected $recordingOf;
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getIsrcCode()
+ public function getByArtist()
{
- return $this->isrcCode;
+ return $this->byArtist;
}
/**
- * @param string $isrcCode
+ * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $byArtist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setIsrcCode($isrcCode)
+ public function setByArtist($byArtist)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicGroup",
+ "\OpenActive\Models\SchemaOrg\Person",
"string",
];
- $isrcCode = self::checkTypes($isrcCode, $types);
+ $byArtist = self::checkTypes($byArtist, $types);
- $this->isrcCode = $isrcCode;
+ $this->byArtist = $byArtist;
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicPlaylist|string
+ * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
- public function getInPlaylist()
+ public function getDuration()
{
- return $this->inPlaylist;
+ return $this->duration;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicPlaylist|string $inPlaylist
+ * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setInPlaylist($inPlaylist)
+ public function setDuration($duration)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicPlaylist",
+ "DateInterval",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
+ "null",
];
- $inPlaylist = self::checkTypes($inPlaylist, $types);
+ $duration = self::checkTypes($duration, $types);
- $this->inPlaylist = $inPlaylist;
+ $this->duration = $duration;
}
/**
@@ -151,80 +155,77 @@ public function setInAlbum($inAlbum)
}
/**
- * @return \OpenActive\Models\SchemaOrg\MusicComposition|string
+ * @return \OpenActive\Models\SchemaOrg\MusicPlaylist|string
*/
- public function getRecordingOf()
+ public function getInPlaylist()
{
- return $this->recordingOf;
+ return $this->inPlaylist;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $recordingOf
+ * @param \OpenActive\Models\SchemaOrg\MusicPlaylist|string $inPlaylist
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setRecordingOf($recordingOf)
+ public function setInPlaylist($inPlaylist)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicComposition",
+ "\OpenActive\Models\SchemaOrg\MusicPlaylist",
"string",
];
- $recordingOf = self::checkTypes($recordingOf, $types);
+ $inPlaylist = self::checkTypes($inPlaylist, $types);
- $this->recordingOf = $recordingOf;
+ $this->inPlaylist = $inPlaylist;
}
/**
- * @return DateInterval|string|null
+ * @return string
*/
- public function getDuration()
+ public function getIsrcCode()
{
- return $this->duration;
+ return $this->isrcCode;
}
/**
- * @param DateInterval|string|null $duration
+ * @param string $isrcCode
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDuration($duration)
+ public function setIsrcCode($isrcCode)
{
$types = [
- "DateInterval",
"string",
- "null",
];
- $duration = self::checkTypes($duration, $types);
+ $isrcCode = self::checkTypes($isrcCode, $types);
- $this->duration = $duration;
+ $this->isrcCode = $isrcCode;
}
/**
- * @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;
}
}
diff --git a/src/Models/SchemaOrg/MusicRelease.php b/src/Models/SchemaOrg/MusicRelease.php
index 163cea5a..e560639e 100644
--- a/src/Models/SchemaOrg/MusicRelease.php
+++ b/src/Models/SchemaOrg/MusicRelease.php
@@ -17,48 +17,48 @@ public static function getType()
public static function fieldList() {
$fields = [
- "releaseOf" => "releaseOf",
- "musicReleaseFormat" => "musicReleaseFormat",
- "duration" => "duration",
+ "catalogNumber" => "catalogNumber",
"creditedTo" => "creditedTo",
+ "duration" => "duration",
+ "musicReleaseFormat" => "musicReleaseFormat",
"recordLabel" => "recordLabel",
- "catalogNumber" => "catalogNumber",
+ "releaseOf" => "releaseOf",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The album this is a release of.
+ * The catalog number for the release.
*
*
- * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @var string
*/
- protected $releaseOf;
+ protected $catalogNumber;
/**
- * Format of this release (the type of recording media used, ie. compact disc, digital media, LP, etc.).
+ * 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\Enums\SchemaOrg\MusicReleaseFormatType|null
+ * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- protected $musicReleaseFormat;
+ protected $creditedTo;
/**
- * 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
+ * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
protected $duration;
/**
- * 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.
+ * Format of this release (the type of recording media used, i.e. compact disc, digital media, LP, etc.).
*
*
- * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var \OpenActive\Enums\SchemaOrg\MusicReleaseFormatType|null
*/
- protected $creditedTo;
+ protected $musicReleaseFormat;
/**
* The label that issued the release.
@@ -69,65 +69,65 @@ public static function fieldList() {
protected $recordLabel;
/**
- * The catalog number for the release.
+ * The album this is a release of.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- protected $catalogNumber;
+ protected $releaseOf;
/**
- * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
+ * @return string
*/
- public function getReleaseOf()
+ public function getCatalogNumber()
{
- return $this->releaseOf;
+ return $this->catalogNumber;
}
/**
- * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $releaseOf
+ * @param string $catalogNumber
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setReleaseOf($releaseOf)
+ public function setCatalogNumber($catalogNumber)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $releaseOf = self::checkTypes($releaseOf, $types);
+ $catalogNumber = self::checkTypes($catalogNumber, $types);
- $this->releaseOf = $releaseOf;
+ $this->catalogNumber = $catalogNumber;
}
/**
- * @return \OpenActive\Enums\SchemaOrg\MusicReleaseFormatType|null
+ * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
*/
- public function getMusicReleaseFormat()
+ public function getCreditedTo()
{
- return $this->musicReleaseFormat;
+ return $this->creditedTo;
}
/**
- * @param \OpenActive\Enums\SchemaOrg\MusicReleaseFormatType|null $musicReleaseFormat
+ * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creditedTo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMusicReleaseFormat($musicReleaseFormat)
+ public function setCreditedTo($creditedTo)
{
$types = [
- "\OpenActive\Enums\SchemaOrg\MusicReleaseFormatType",
- "null",
+ "\OpenActive\Models\SchemaOrg\Organization",
+ "\OpenActive\Models\SchemaOrg\Person",
+ "string",
];
- $musicReleaseFormat = self::checkTypes($musicReleaseFormat, $types);
+ $creditedTo = self::checkTypes($creditedTo, $types);
- $this->musicReleaseFormat = $musicReleaseFormat;
+ $this->creditedTo = $creditedTo;
}
/**
- * @return DateInterval|string|null
+ * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null
*/
public function getDuration()
{
@@ -135,7 +135,7 @@ public function getDuration()
}
/**
- * @param DateInterval|string|null $duration
+ * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $duration
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
@@ -143,6 +143,7 @@ public function setDuration($duration)
{
$types = [
"DateInterval",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
"null",
];
@@ -153,29 +154,28 @@ public function setDuration($duration)
}
/**
- * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @return \OpenActive\Enums\SchemaOrg\MusicReleaseFormatType|null
*/
- public function getCreditedTo()
+ public function getMusicReleaseFormat()
{
- return $this->creditedTo;
+ return $this->musicReleaseFormat;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $creditedTo
+ * @param \OpenActive\Enums\SchemaOrg\MusicReleaseFormatType|null $musicReleaseFormat
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCreditedTo($creditedTo)
+ public function setMusicReleaseFormat($musicReleaseFormat)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Person",
- "\OpenActive\Models\SchemaOrg\Organization",
- "string",
+ "\OpenActive\Enums\SchemaOrg\MusicReleaseFormatType",
+ "null",
];
- $creditedTo = self::checkTypes($creditedTo, $types);
+ $musicReleaseFormat = self::checkTypes($musicReleaseFormat, $types);
- $this->creditedTo = $creditedTo;
+ $this->musicReleaseFormat = $musicReleaseFormat;
}
/**
@@ -204,27 +204,28 @@ public function setRecordLabel($recordLabel)
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string
*/
- public function getCatalogNumber()
+ public function getReleaseOf()
{
- return $this->catalogNumber;
+ return $this->releaseOf;
}
/**
- * @param string $catalogNumber
+ * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $releaseOf
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCatalogNumber($catalogNumber)
+ public function setReleaseOf($releaseOf)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\MusicAlbum",
"string",
];
- $catalogNumber = self::checkTypes($catalogNumber, $types);
+ $releaseOf = self::checkTypes($releaseOf, $types);
- $this->catalogNumber = $catalogNumber;
+ $this->releaseOf = $releaseOf;
}
}
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..4a9aae41 100644
--- a/src/Models/SchemaOrg/NewsArticle.php
+++ b/src/Models/SchemaOrg/NewsArticle.php
@@ -17,23 +17,28 @@ public static function getType()
public static function fieldList() {
$fields = [
- "printEdition" => "printEdition",
+ "dateline" => "dateline",
"printColumn" => "printColumn",
+ "printEdition" => "printEdition",
"printPage" => "printPage",
"printSection" => "printSection",
- "dateline" => "dateline",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The edition of the print product in which the NewsArticle appears.
+ * 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 $printEdition;
+ protected $dateline;
/**
* The number of the column in which the NewsArticle appears in the print edition.
@@ -44,56 +49,51 @@ public static function fieldList() {
protected $printColumn;
/**
- * If this NewsArticle appears in print, this field indicates the name of the page on which the article is found. Please note that this field is intended for the exact page name (e.g. A5, B18).
+ * The edition of the print product in which the NewsArticle appears.
*
*
* @var string
*/
- protected $printPage;
+ protected $printEdition;
/**
- * If this NewsArticle appears in print, this field indicates the print section in which the article appeared.
+ * 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 $printSection;
+ protected $printPage;
/**
- * 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 getDateline()
{
- return $this->printEdition;
+ return $this->dateline;
}
/**
- * @param string $printEdition
+ * @param string $dateline
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrintEdition($printEdition)
+ public function setDateline($dateline)
{
$types = [
"string",
];
- $printEdition = self::checkTypes($printEdition, $types);
+ $dateline = self::checkTypes($dateline, $types);
- $this->printEdition = $printEdition;
+ $this->dateline = $dateline;
}
/**
@@ -123,73 +123,73 @@ public function setPrintColumn($printColumn)
/**
* @return string
*/
- public function getPrintPage()
+ public function getPrintEdition()
{
- return $this->printPage;
+ return $this->printEdition;
}
/**
- * @param string $printPage
+ * @param string $printEdition
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrintPage($printPage)
+ public function setPrintEdition($printEdition)
{
$types = [
"string",
];
- $printPage = self::checkTypes($printPage, $types);
+ $printEdition = self::checkTypes($printEdition, $types);
- $this->printPage = $printPage;
+ $this->printEdition = $printEdition;
}
/**
* @return string
*/
- public function getPrintSection()
+ public function getPrintPage()
{
- return $this->printSection;
+ return $this->printPage;
}
/**
- * @param string $printSection
+ * @param string $printPage
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setPrintSection($printSection)
+ public function setPrintPage($printPage)
{
$types = [
"string",
];
- $printSection = self::checkTypes($printSection, $types);
+ $printPage = self::checkTypes($printPage, $types);
- $this->printSection = $printSection;
+ $this->printPage = $printPage;
}
/**
* @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..13857d53 100644
--- a/src/Models/SchemaOrg/NewsMediaOrganization.php
+++ b/src/Models/SchemaOrg/NewsMediaOrganization.php
@@ -17,61 +17,69 @@ public static function getType()
public static function fieldList() {
$fields = [
- "ownershipFundingInfo" => "ownershipFundingInfo",
+ "actionableFeedbackPolicy" => "actionableFeedbackPolicy",
"correctionsPolicy" => "correctionsPolicy",
- "diversityStaffingReport" => "diversityStaffingReport",
"diversityPolicy" => "diversityPolicy",
+ "diversityStaffingReport" => "diversityStaffingReport",
"ethicsPolicy" => "ethicsPolicy",
- "missionCoveragePrioritiesPolicy" => "missionCoveragePrioritiesPolicy",
- "actionableFeedbackPolicy" => "actionableFeedbackPolicy",
"masthead" => "masthead",
+ "missionCoveragePrioritiesPolicy" => "missionCoveragePrioritiesPolicy",
+ "noBylinesPolicy" => "noBylinesPolicy",
+ "ownershipFundingInfo" => "ownershipFundingInfo",
"unnamedSourcesPolicy" => "unnamedSourcesPolicy",
"verificationFactCheckingPolicy" => "verificationFactCheckingPolicy",
- "noBylinesPolicy" => "noBylinesPolicy",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.
+ * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement 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\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $ownershipFundingInfo;
+ protected $actionableFeedbackPolicy;
/**
* 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 $correctionsPolicy;
+ /**
+ * 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\CreativeWork|string
+ */
+ protected $diversityPolicy;
+
/**
* For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\Article
+ * @var \OpenActive\Models\SchemaOrg\Article|string
*/
protected $diversityStaffingReport;
/**
- * 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.
+ * 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\CreativeWork|string
*/
- protected $diversityPolicy;
+ protected $ethicsPolicy;
/**
- * 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]], a link to the masthead page or a page listing top editorial management.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $ethicsPolicy;
+ protected $masthead;
/**
* For a [[NewsMediaOrganization]], a statement on coverage priorities, including any public agenda or stance on issues.
@@ -82,20 +90,20 @@ public static function fieldList() {
protected $missionCoveragePrioritiesPolicy;
/**
- * 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 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 $actionableFeedbackPolicy;
+ protected $noBylinesPolicy;
/**
- * 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\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $masthead;
+ protected $ownershipFundingInfo;
/**
* For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.
@@ -109,46 +117,37 @@ public static function fieldList() {
* Disclosure about verification and fact-checking processes for a [[NewsMediaOrganization]] or other fact-checking [[Organization]].
*
*
- * @var string|\OpenActive\Models\SchemaOrg\CreativeWork
- */
- protected $verificationFactCheckingPolicy;
-
- /**
- * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement explaining when authors of articles are not named in bylines.
- *
- *
* @var \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- protected $noBylinesPolicy;
+ protected $verificationFactCheckingPolicy;
/**
- * @return string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getOwnershipFundingInfo()
+ public function getActionableFeedbackPolicy()
{
- return $this->ownershipFundingInfo;
+ return $this->actionableFeedbackPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork $ownershipFundingInfo
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $actionableFeedbackPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOwnershipFundingInfo($ownershipFundingInfo)
+ public function setActionableFeedbackPolicy($actionableFeedbackPolicy)
{
$types = [
- "string",
- "\OpenActive\Models\SchemaOrg\AboutPage",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
+ $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types);
- $this->ownershipFundingInfo = $ownershipFundingInfo;
+ $this->actionableFeedbackPolicy = $actionableFeedbackPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
public function getCorrectionsPolicy()
{
@@ -156,15 +155,15 @@ public function getCorrectionsPolicy()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy
+ * @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 setCorrectionsPolicy($correctionsPolicy)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
$correctionsPolicy = self::checkTypes($correctionsPolicy, $types);
@@ -173,7 +172,32 @@ public function setCorrectionsPolicy($correctionsPolicy)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\Article
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
+ */
+ public function getDiversityPolicy()
+ {
+ return $this->diversityPolicy;
+ }
+
+ /**
+ * @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 setDiversityPolicy($diversityPolicy)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
+ ];
+
+ $diversityPolicy = self::checkTypes($diversityPolicy, $types);
+
+ $this->diversityPolicy = $diversityPolicy;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Article|string
*/
public function getDiversityStaffingReport()
{
@@ -181,15 +205,15 @@ public function getDiversityStaffingReport()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport
+ * @param \OpenActive\Models\SchemaOrg\Article|string $diversityStaffingReport
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setDiversityStaffingReport($diversityStaffingReport)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\Article",
+ "string",
];
$diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types);
@@ -200,51 +224,51 @@ public function setDiversityStaffingReport($diversityStaffingReport)
/**
* @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getDiversityPolicy()
+ public function getEthicsPolicy()
{
- return $this->diversityPolicy;
+ return $this->ethicsPolicy;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy
+ * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $ethicsPolicy
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setDiversityPolicy($diversityPolicy)
+ public function setEthicsPolicy($ethicsPolicy)
{
$types = [
"\OpenActive\Models\SchemaOrg\CreativeWork",
"string",
];
- $diversityPolicy = self::checkTypes($diversityPolicy, $types);
+ $ethicsPolicy = self::checkTypes($ethicsPolicy, $types);
- $this->diversityPolicy = $diversityPolicy;
+ $this->ethicsPolicy = $ethicsPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getEthicsPolicy()
+ public function getMasthead()
{
- return $this->ethicsPolicy;
+ return $this->masthead;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy
+ * @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 setEthicsPolicy($ethicsPolicy)
+ public function setMasthead($masthead)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $ethicsPolicy = self::checkTypes($ethicsPolicy, $types);
+ $masthead = self::checkTypes($masthead, $types);
- $this->ethicsPolicy = $ethicsPolicy;
+ $this->masthead = $masthead;
}
/**
@@ -273,53 +297,54 @@ public function setMissionCoveragePrioritiesPolicy($missionCoveragePrioritiesPol
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getActionableFeedbackPolicy()
+ public function getNoBylinesPolicy()
{
- return $this->actionableFeedbackPolicy;
+ return $this->noBylinesPolicy;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $actionableFeedbackPolicy
+ * @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 setActionableFeedbackPolicy($actionableFeedbackPolicy)
+ public function setNoBylinesPolicy($noBylinesPolicy)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types);
+ $noBylinesPolicy = self::checkTypes($noBylinesPolicy, $types);
- $this->actionableFeedbackPolicy = $actionableFeedbackPolicy;
+ $this->noBylinesPolicy = $noBylinesPolicy;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string
*/
- public function getMasthead()
+ public function getOwnershipFundingInfo()
{
- return $this->masthead;
+ return $this->ownershipFundingInfo;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $masthead
+ * @param \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string $ownershipFundingInfo
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMasthead($masthead)
+ public function setOwnershipFundingInfo($ownershipFundingInfo)
{
$types = [
- "string",
+ "\OpenActive\Models\SchemaOrg\AboutPage",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
- $masthead = self::checkTypes($masthead, $types);
+ $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types);
- $this->masthead = $masthead;
+ $this->ownershipFundingInfo = $ownershipFundingInfo;
}
/**
@@ -348,7 +373,7 @@ public function setUnnamedSourcesPolicy($unnamedSourcesPolicy)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\CreativeWork
+ * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
*/
public function getVerificationFactCheckingPolicy()
{
@@ -356,15 +381,15 @@ public function getVerificationFactCheckingPolicy()
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $verificationFactCheckingPolicy
+ * @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 setVerificationFactCheckingPolicy($verificationFactCheckingPolicy)
{
$types = [
- "string",
"\OpenActive\Models\SchemaOrg\CreativeWork",
+ "string",
];
$verificationFactCheckingPolicy = self::checkTypes($verificationFactCheckingPolicy, $types);
@@ -372,29 +397,4 @@ public function setVerificationFactCheckingPolicy($verificationFactCheckingPolic
$this->verificationFactCheckingPolicy = $verificationFactCheckingPolicy;
}
- /**
- * @return \OpenActive\Models\SchemaOrg\CreativeWork|string
- */
- public function getNoBylinesPolicy()
- {
- return $this->noBylinesPolicy;
- }
-
- /**
- * @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 setNoBylinesPolicy($noBylinesPolicy)
- {
- $types = [
- "\OpenActive\Models\SchemaOrg\CreativeWork",
- "string",
- ];
-
- $noBylinesPolicy = self::checkTypes($noBylinesPolicy, $types);
-
- $this->noBylinesPolicy = $noBylinesPolicy;
- }
-
}
diff --git a/src/Models/SchemaOrg/NutritionInformation.php b/src/Models/SchemaOrg/NutritionInformation.php
index ec66b0a4..c53de5f4 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 = [
+ "calories" => "calories",
+ "carbohydrateContent" => "carbohydrateContent",
+ "cholesterolContent" => "cholesterolContent",
"fatContent" => "fatContent",
- "servingSize" => "servingSize",
+ "fiberContent" => "fiberContent",
"proteinContent" => "proteinContent",
- "calories" => "calories",
+ "saturatedFatContent" => "saturatedFatContent",
+ "servingSize" => "servingSize",
"sodiumContent" => "sodiumContent",
- "cholesterolContent" => "cholesterolContent",
"sugarContent" => "sugarContent",
- "carbohydrateContent" => "carbohydrateContent",
"transFatContent" => "transFatContent",
- "fiberContent" => "fiberContent",
"unsaturatedFatContent" => "unsaturatedFatContent",
- "saturatedFatContent" => "saturatedFatContent",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The number of grams of fat.
+ * The number of calories.
*
*
- * @var \OpenActive\Models\SchemaOrg\Mass|string
+ * @var \OpenActive\Models\SchemaOrg\Energy|string
*/
- protected $fatContent;
+ protected $calories;
/**
- * The serving size, in terms of the number of volume or mass.
+ * The number of grams of carbohydrates.
*
*
- * @var string
+ * @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $servingSize;
+ protected $carbohydrateContent;
/**
- * 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 number of grams of protein.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $cholesterolContent;
+ protected $proteinContent;
/**
- * 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 serving size, in terms of the number of volume or mass.
*
*
- * @var \OpenActive\Models\SchemaOrg\Mass|string
+ * @var string
*/
- protected $carbohydrateContent;
+ protected $servingSize;
/**
- * The number of grams of trans fat.
+ * The number of milligrams of sodium.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $transFatContent;
+ protected $sodiumContent;
/**
- * The number of grams of fiber.
+ * The number of grams of sugar.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $fiberContent;
+ protected $sugarContent;
/**
- * The number of grams of unsaturated fat.
+ * The number of grams of trans fat.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $unsaturatedFatContent;
+ protected $transFatContent;
/**
- * The number of grams of saturated fat.
+ * The number of grams of unsaturated fat.
*
*
* @var \OpenActive\Models\SchemaOrg\Mass|string
*/
- protected $saturatedFatContent;
+ protected $unsaturatedFatContent;
/**
- * @return \OpenActive\Models\SchemaOrg\Mass|string
+ * @return \OpenActive\Models\SchemaOrg\Energy|string
*/
- public function getFatContent()
+ public function getCalories()
{
- return $this->fatContent;
+ return $this->calories;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $fatContent
+ * @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 setFatContent($fatContent)
+ public function setCalories($calories)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Mass",
+ "\OpenActive\Models\SchemaOrg\Energy",
"string",
];
- $fatContent = self::checkTypes($fatContent, $types);
+ $calories = self::checkTypes($calories, $types);
- $this->fatContent = $fatContent;
+ $this->calories = $calories;
}
/**
- * @return string
+ * @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getServingSize()
+ public function getCarbohydrateContent()
{
- return $this->servingSize;
+ return $this->carbohydrateContent;
}
/**
- * @param string $servingSize
+ * @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 setServingSize($servingSize)
+ public function setCarbohydrateContent($carbohydrateContent)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $servingSize = self::checkTypes($servingSize, $types);
+ $carbohydrateContent = self::checkTypes($carbohydrateContent, $types);
- $this->servingSize = $servingSize;
+ $this->carbohydrateContent = $carbohydrateContent;
}
/**
* @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
*/
- public function getCholesterolContent()
+ public function getProteinContent()
{
- return $this->cholesterolContent;
+ return $this->proteinContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $cholesterolContent
+ * @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 setCholesterolContent($cholesterolContent)
+ public function setProteinContent($proteinContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $cholesterolContent = self::checkTypes($cholesterolContent, $types);
+ $proteinContent = self::checkTypes($proteinContent, $types);
- $this->cholesterolContent = $cholesterolContent;
+ $this->proteinContent = $proteinContent;
}
/**
* @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
+ * @return string
*/
- public function getCarbohydrateContent()
+ public function getServingSize()
{
- return $this->carbohydrateContent;
+ return $this->servingSize;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $carbohydrateContent
+ * @param string $servingSize
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setCarbohydrateContent($carbohydrateContent)
+ public function setServingSize($servingSize)
{
$types = [
- "\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $carbohydrateContent = self::checkTypes($carbohydrateContent, $types);
+ $servingSize = self::checkTypes($servingSize, $types);
- $this->carbohydrateContent = $carbohydrateContent;
+ $this->servingSize = $servingSize;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getTransFatContent()
+ public function getSodiumContent()
{
- return $this->transFatContent;
+ return $this->sodiumContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $transFatContent
+ * @param \OpenActive\Models\SchemaOrg\Mass|string $sodiumContent
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setTransFatContent($transFatContent)
+ public function setSodiumContent($sodiumContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $transFatContent = self::checkTypes($transFatContent, $types);
+ $sodiumContent = self::checkTypes($sodiumContent, $types);
- $this->transFatContent = $transFatContent;
+ $this->sodiumContent = $sodiumContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getFiberContent()
+ public function getSugarContent()
{
- return $this->fiberContent;
+ return $this->sugarContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $fiberContent
+ * @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 setFiberContent($fiberContent)
+ public function setSugarContent($sugarContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $fiberContent = self::checkTypes($fiberContent, $types);
+ $sugarContent = self::checkTypes($sugarContent, $types);
- $this->fiberContent = $fiberContent;
+ $this->sugarContent = $sugarContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getUnsaturatedFatContent()
+ public function getTransFatContent()
{
- return $this->unsaturatedFatContent;
+ return $this->transFatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $unsaturatedFatContent
+ * @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 setUnsaturatedFatContent($unsaturatedFatContent)
+ public function setTransFatContent($transFatContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types);
+ $transFatContent = self::checkTypes($transFatContent, $types);
- $this->unsaturatedFatContent = $unsaturatedFatContent;
+ $this->transFatContent = $transFatContent;
}
/**
* @return \OpenActive\Models\SchemaOrg\Mass|string
*/
- public function getSaturatedFatContent()
+ public function getUnsaturatedFatContent()
{
- return $this->saturatedFatContent;
+ return $this->unsaturatedFatContent;
}
/**
- * @param \OpenActive\Models\SchemaOrg\Mass|string $saturatedFatContent
+ * @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 setSaturatedFatContent($saturatedFatContent)
+ public function setUnsaturatedFatContent($unsaturatedFatContent)
{
$types = [
"\OpenActive\Models\SchemaOrg\Mass",
"string",
];
- $saturatedFatContent = self::checkTypes($saturatedFatContent, $types);
+ $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types);
- $this->saturatedFatContent = $saturatedFatContent;
+ $this->unsaturatedFatContent = $unsaturatedFatContent;
}
}
diff --git a/src/Models/SchemaOrg/Observation.php b/src/Models/SchemaOrg/Observation.php
index 95b9a4a5..bd01cf4f 100644
--- a/src/Models/SchemaOrg/Observation.php
+++ b/src/Models/SchemaOrg/Observation.php
@@ -17,133 +17,290 @@ public static function getType()
public static function fieldList() {
$fields = [
- "measuredValue" => "measuredValue",
- "observedNode" => "observedNode",
+ "marginOfError" => "marginOfError",
"measuredProperty" => "measuredProperty",
+ "measurementDenominator" => "measurementDenominator",
+ "measurementMethod" => "measurementMethod",
+ "measurementQualifier" => "measurementQualifier",
+ "measurementTechnique" => "measurementTechnique",
+ "observationAbout" => "observationAbout",
"observationDate" => "observationDate",
- "marginOfError" => "marginOfError",
+ "observationPeriod" => "observationPeriod",
+ "variableMeasured" => "variableMeasured",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * The measuredValue of an [[Observation]].
+ * A [[marginOfError]] for an [[Observation]].
*
*
- * @var \OpenActive\Models\SchemaOrg\DataType
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $measuredValue;
+ protected $marginOfError;
/**
- * The observedNode of an [[Observation]], often a [[StatisticalPopulation]].
+ * 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\StatisticalPopulation|string
+ * @var string|\OpenActive\Enums\PropertyEnumeration|null
*/
- protected $observedNode;
+ protected $measuredProperty;
/**
- * 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).
+ * Identifies the denominator variable when an observation represents a ratio or percentage.
*
*
- * @var string|\OpenActive\Enums\PropertyEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\StatisticalVariable|string
*/
- protected $measuredProperty;
+ protected $measurementDenominator;
+
+ /**
+ * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|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;
+
+ /**
+ * 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 [[MeasurementMethodEnum]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null
+ */
+ protected $measurementTechnique;
+
+ /**
+ * The [[observationAbout]] property identifies an entity, often a [[Place]], associated with an [[Observation]].
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\Thing|string
+ */
+ protected $observationAbout;
/**
* The observationDate of an [[Observation]].
*
*
- * @var DateTime|null
+ * @var Date|DateTime|null
*/
protected $observationDate;
/**
- * A marginOfError for an [[Observation]].
+ * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @var string
*/
- protected $marginOfError;
+ protected $observationPeriod;
/**
- * @return \OpenActive\Models\SchemaOrg\DataType
+ * 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\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|null
+ */
+ protected $variableMeasured;
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- public function getMeasuredValue()
+ public function getMarginOfError()
{
- return $this->measuredValue;
+ return $this->marginOfError;
}
/**
- * @param \OpenActive\Models\SchemaOrg\DataType $measuredValue
+ * @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 setMeasuredValue($measuredValue)
+ public function setMarginOfError($marginOfError)
{
$types = [
- "\OpenActive\Models\SchemaOrg\DataType",
+ "\OpenActive\Models\SchemaOrg\QuantitativeValue",
+ "string",
];
- $measuredValue = self::checkTypes($measuredValue, $types);
+ $marginOfError = self::checkTypes($marginOfError, $types);
- $this->measuredValue = $measuredValue;
+ $this->marginOfError = $marginOfError;
}
/**
- * @return \OpenActive\Models\SchemaOrg\StatisticalPopulation|string
+ * @return string|\OpenActive\Enums\PropertyEnumeration|null
*/
- public function getObservedNode()
+ public function getMeasuredProperty()
{
- return $this->observedNode;
+ return $this->measuredProperty;
}
/**
- * @param \OpenActive\Models\SchemaOrg\StatisticalPopulation|string $observedNode
+ * @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 setObservedNode($observedNode)
+ public function setMeasuredProperty($measuredProperty)
{
$types = [
- "\OpenActive\Models\SchemaOrg\StatisticalPopulation",
"string",
+ "\OpenActive\Enums\PropertyEnumeration",
+ "null",
];
- $observedNode = self::checkTypes($observedNode, $types);
+ $measuredProperty = self::checkTypes($measuredProperty, $types);
- $this->observedNode = $observedNode;
+ $this->measuredProperty = $measuredProperty;
}
/**
- * @return string|\OpenActive\Enums\PropertyEnumeration|null
+ * @return \OpenActive\Models\SchemaOrg\StatisticalVariable|string
*/
- public function getMeasuredProperty()
+ public function getMeasurementDenominator()
{
- return $this->measuredProperty;
+ return $this->measurementDenominator;
}
/**
- * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty
+ * @param \OpenActive\Models\SchemaOrg\StatisticalVariable|string $measurementDenominator
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMeasuredProperty($measuredProperty)
+ public function setMeasurementDenominator($measurementDenominator)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
+ "string",
+ ];
+
+ $measurementDenominator = self::checkTypes($measurementDenominator, $types);
+
+ $this->measurementDenominator = $measurementDenominator;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null
+ */
+ public function getMeasurementMethod()
+ {
+ return $this->measurementMethod;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null $measurementMethod
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementMethod($measurementMethod)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
"string",
- "\OpenActive\Enums\PropertyEnumeration",
"null",
];
- $measuredProperty = self::checkTypes($measuredProperty, $types);
+ $measurementMethod = self::checkTypes($measurementMethod, $types);
- $this->measuredProperty = $measuredProperty;
+ $this->measurementMethod = $measurementMethod;
}
/**
- * @return DateTime|null
+ * @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\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null
+ */
+ public function getMeasurementTechnique()
+ {
+ return $this->measurementTechnique;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null $measurementTechnique
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setMeasurementTechnique($measurementTechnique)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
+ "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum",
+ "string",
+ "null",
+ ];
+
+ $measurementTechnique = self::checkTypes($measurementTechnique, $types);
+
+ $this->measurementTechnique = $measurementTechnique;
+ }
+
+ /**
+ * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\Thing|string
+ */
+ public function getObservationAbout()
+ {
+ return $this->observationAbout;
+ }
+
+ /**
+ * @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 setObservationAbout($observationAbout)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\Place",
+ "\OpenActive\Models\SchemaOrg\Thing",
+ "string",
+ ];
+
+ $observationAbout = self::checkTypes($observationAbout, $types);
+
+ $this->observationAbout = $observationAbout;
+ }
+
+ /**
+ * @return Date|DateTime|null
*/
public function getObservationDate()
{
@@ -151,13 +308,14 @@ public function getObservationDate()
}
/**
- * @param DateTime|null $observationDate
+ * @param Date|DateTime|null $observationDate
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setObservationDate($observationDate)
{
$types = [
+ "Date",
"DateTime",
"null",
];
@@ -168,28 +326,55 @@ public function setObservationDate($observationDate)
}
/**
- * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string
+ * @return string
*/
- public function getMarginOfError()
+ public function getObservationPeriod()
{
- return $this->marginOfError;
+ return $this->observationPeriod;
}
/**
- * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $marginOfError
+ * @param string $observationPeriod
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setMarginOfError($marginOfError)
+ public function setObservationPeriod($observationPeriod)
{
$types = [
- "\OpenActive\Models\SchemaOrg\QuantitativeValue",
"string",
];
- $marginOfError = self::checkTypes($marginOfError, $types);
+ $observationPeriod = self::checkTypes($observationPeriod, $types);
- $this->marginOfError = $marginOfError;
+ $this->observationPeriod = $observationPeriod;
+ }
+
+ /**
+ * @return \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|null
+ */
+ public function getVariableMeasured()
+ {
+ return $this->variableMeasured;
+ }
+
+ /**
+ * @param \OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|null $variableMeasured
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setVariableMeasured($variableMeasured)
+ {
+ $types = [
+ "\OpenActive\Enums\PropertyEnumeration",
+ "\OpenActive\Models\SchemaOrg\PropertyValue",
+ "\OpenActive\Models\SchemaOrg\StatisticalVariable",
+ "string",
+ "null",
+ ];
+
+ $variableMeasured = self::checkTypes($variableMeasured, $types);
+
+ $this->variableMeasured = $variableMeasured;
}
}
diff --git a/src/Models/SchemaOrg/Occupation.php b/src/Models/SchemaOrg/Occupation.php
index ea516342..25ad2093 100644
--- a/src/Models/SchemaOrg/Occupation.php
+++ b/src/Models/SchemaOrg/Occupation.php
@@ -17,34 +17,42 @@ public static function getType()
public static function fieldList() {
$fields = [
+ "educationRequirements" => "educationRequirements",
"estimatedSalary" => "estimatedSalary",
- "responsibilities" => "responsibilities",
- "occupationLocation" => "occupationLocation",
"experienceRequirements" => "experienceRequirements",
- "educationRequirements" => "educationRequirements",
- "skills" => "skills",
- "qualifications" => "qualifications",
+ "occupationLocation" => "occupationLocation",
"occupationalCategory" => "occupationalCategory",
+ "qualifications" => "qualifications",
+ "responsibilities" => "responsibilities",
+ "skills" => "skills",
];
return array_merge(parent::fieldList(), $fields);
}
+ /**
+ * Educational background needed for the position or Occupation.
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ */
+ protected $educationRequirements;
+
/**
* An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value.
*
*
- * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null
*/
protected $estimatedSalary;
/**
- * Responsibilities associated with this role or Occupation.
+ * 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.
@@ -55,48 +63,65 @@ public static function fieldList() {
protected $occupationLocation;
/**
- * Description of skills and experience needed for the position or Occupation.
+ * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n
+ * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
*
*
- * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
+ * @var \OpenActive\Models\SchemaOrg\CategoryCode|string
*/
- protected $experienceRequirements;
+ protected $occupationalCategory;
/**
- * Educational background needed for the position or Occupation.
+ * Specific qualifications required for this role or Occupation.
*
*
- * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
+ * @var \OpenActive\Models\SchemaOrg\Credential|string
*/
- protected $educationRequirements;
+ protected $qualifications;
/**
- * A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation.
+ * 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.
+ * 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\EducationalOccupationalCredential
+ * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- protected $qualifications;
+ protected $skills;
/**
- * 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\CategoryCode|string
+ * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string
*/
- protected $occupationalCategory;
+ public function getEducationRequirements()
+ {
+ return $this->educationRequirements;
+ }
+
+ /**
+ * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements
+ * @return void
+ * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
+ */
+ public function setEducationRequirements($educationRequirements)
+ {
+ $types = [
+ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
+ "string",
+ ];
+
+ $educationRequirements = self::checkTypes($educationRequirements, $types);
+
+ $this->educationRequirements = $educationRequirements;
+ }
/**
- * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null
+ * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null
*/
public function getEstimatedSalary()
{
@@ -104,15 +129,15 @@ public function getEstimatedSalary()
}
/**
- * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary
+ * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null $estimatedSalary
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
public function setEstimatedSalary($estimatedSalary)
{
$types = [
- "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"\OpenActive\Models\SchemaOrg\MonetaryAmount",
+ "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution",
"string",
"Number",
"null",
@@ -124,27 +149,28 @@ public function setEstimatedSalary($estimatedSalary)
}
/**
- * @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;
}
/**
@@ -173,128 +199,102 @@ public function setOccupationLocation($occupationLocation)
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements
- */
- public function getExperienceRequirements()
- {
- return $this->experienceRequirements;
- }
-
- /**
- * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements
- * @return void
- * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
- */
- public function setExperienceRequirements($experienceRequirements)
- {
- $types = [
- "string",
- "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements",
- ];
-
- $experienceRequirements = self::checkTypes($experienceRequirements, $types);
-
- $this->experienceRequirements = $experienceRequirements;
- }
-
- /**
- * @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 \OpenActive\Models\SchemaOrg\Credential|string
*/
- public function getSkills()
+ public function getQualifications()
{
- return $this->skills;
+ return $this->qualifications;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills
+ * @param \OpenActive\Models\SchemaOrg\Credential|string $qualifications
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setSkills($skills)
+ public function setQualifications($qualifications)
{
$types = [
+ "\OpenActive\Models\SchemaOrg\Credential",
"string",
- "\OpenActive\Models\SchemaOrg\DefinedTerm",
];
- $skills = self::checkTypes($skills, $types);
+ $qualifications = self::checkTypes($qualifications, $types);
- $this->skills = $skills;
+ $this->qualifications = $qualifications;
}
/**
- * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential
+ * @return string
*/
- public function getQualifications()
+ public function getResponsibilities()
{
- return $this->qualifications;
+ return $this->responsibilities;
}
/**
- * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications
+ * @param string $responsibilities
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setQualifications($qualifications)
+ public function setResponsibilities($responsibilities)
{
$types = [
"string",
- "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential",
];
- $qualifications = self::checkTypes($qualifications, $types);
+ $responsibilities = self::checkTypes($responsibilities, $types);
- $this->qualifications = $qualifications;
+ $this->responsibilities = $responsibilities;
}
/**
- * @return \OpenActive\Models\SchemaOrg\CategoryCode|string
+ * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string
*/
- public function getOccupationalCategory()
+ public function getSkills()
{
- return $this->occupationalCategory;
+ return $this->skills;
}
/**
- * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory
+ * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $skills
* @return void
* @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type.
*/
- public function setOccupationalCategory($occupationalCategory)
+ public function setSkills($skills)
{
$types = [
- "\OpenActive\Models\SchemaOrg\CategoryCode",
+ "\OpenActive\Models\SchemaOrg\DefinedTerm",
"string",
];
- $occupationalCategory = self::checkTypes($occupationalCategory, $types);
+ $skills = self::checkTypes($skills, $types);
- $this->occupationalCategory = $occupationalCategory;
+ $this->skills = $skills;
}
}
diff --git a/src/Models/SchemaOrg/Offer.php b/src/Models/SchemaOrg/Offer.php
index 34933e9b..6b4dc5c9 100644
--- a/src/Models/SchemaOrg/Offer.php
+++ b/src/Models/SchemaOrg/Offer.php
@@ -17,130 +17,166 @@ public static function getType()
public static function fieldList() {
$fields = [
- "hasAdultConsideration" => "hasAdultConsideration",
- "gtin12" => "gtin12",
- "review" => "review",
- "itemOffered" => "itemOffered",
- "category" => "category",
- "priceValidUntil" => "priceValidUntil",
- "shippingDetails" => "shippingDetails",
- "mpn" => "mpn",
- "includesObject" => "includesObject",
- "businessFunction" => "businessFunction",
- "itemCondition" => "itemCondition",
- "gtin" => "gtin",
- "eligibleQuantity" => "eligibleQuantity",
"acceptedPaymentMethod" => "acceptedPaymentMethod",
- "warranty" => "warranty",
- "seller" => "seller",
- "ineligibleRegion" => "ineligibleRegion",
- "leaseLength" => "leaseLength",
- "aggregateRating" => "aggregateRating",
- "offeredBy" => "offeredBy",
- "deliveryLeadTime" => "deliveryLeadTime",
- "availableDeliveryMethod" => "availableDeliveryMethod",
- "validFrom" => "validFrom",
- "availabilityEnds" => "availabilityEnds",
- "eligibleRegion" => "eligibleRegion",
- "hasMeasurement" => "hasMeasurement",
- "gtin8" => "gtin8",
- "inventoryLevel" => "inventoryLevel",
- "sku" => "sku",
"addOn" => "addOn",
- "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy",
+ "additionalProperty" => "additionalProperty",
"advanceBookingRequirement" => "advanceBookingRequirement",
- "gtin14" => "gtin14",
- "priceCurrency" => "priceCurrency",
- "eligibleTransactionVolume" => "eligibleTransactionVolume",
+ "aggregateRating" => "aggregateRating",
"areaServed" => "areaServed",
- "eligibleCustomerType" => "eligibleCustomerType",
+ "asin" => "asin",
"availability" => "availability",
+ "availabilityEnds" => "availabilityEnds",
+ "availabilityStarts" => "availabilityStarts",
+ "availableAtOrFrom" => "availableAtOrFrom",
+ "availableDeliveryMethod" => "availableDeliveryMethod",
+ "businessFunction" => "businessFunction",
+ "category" => "category",
+ "checkoutPageURLTemplate" => "checkoutPageURLTemplate",
+ "deliveryLeadTime" => "deliveryLeadTime",
+ "eligibleCustomerType" => "eligibleCustomerType",
+ "eligibleDuration" => "eligibleDuration",
+ "eligibleQuantity" => "eligibleQuantity",
+ "eligibleRegion" => "eligibleRegion",
+ "eligibleTransactionVolume" => "eligibleTransactionVolume",
+ "gtin" => "gtin",
+ "gtin12" => "gtin12",
"gtin13" => "gtin13",
- "reviews" => "reviews",
+ "gtin14" => "gtin14",
+ "gtin8" => "gtin8",
+ "hasAdultConsideration" => "hasAdultConsideration",
+ "hasDigitalProductPassport" => "hasDigitalProductPassport",
+ "hasGS1DigitalLink" => "hasGS1DigitalLink",
+ "hasMeasurement" => "hasMeasurement",
+ "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy",
+ "includesObject" => "includesObject",
+ "ineligibleRegion" => "ineligibleRegion",
+ "inventoryLevel" => "inventoryLevel",
"isFamilyFriendly" => "isFamilyFriendly",
- "validThrough" => "validThrough",
- "priceSpecification" => "priceSpecification",
+ "itemCondition" => "itemCondition",
+ "itemOffered" => "itemOffered",
+ "itemPopularity" => "itemPopularity",
+ "leaseLength" => "leaseLength",
+ "mobileUrl" => "mobileUrl",
+ "mpn" => "mpn",
+ "offeredBy" => "offeredBy",
"price" => "price",
- "availabilityStarts" => "availabilityStarts",
- "eligibleDuration" => "eligibleDuration",
- "availableAtOrFrom" => "availableAtOrFrom",
+ "priceCurrency" => "priceCurrency",
+ "priceSpecification" => "priceSpecification",
+ "priceValidUntil" => "priceValidUntil",
+ "review" => "review",
+ "reviews" => "reviews",
+ "seller" => "seller",
"serialNumber" => "serialNumber",
+ "shippingDetails" => "shippingDetails",
+ "sku" => "sku",
+ "validForMemberTier" => "validForMemberTier",
+ "validFrom" => "validFrom",
+ "validThrough" => "validThrough",
+ "warranty" => "warranty",
];
return array_merge(parent::fieldList(), $fields);
}
/**
- * Used to tag an item to be intended or suitable for consumption or use by adults only.
+ * The payment method(s) that are accepted in general by an organization, or for some specific demand or offer.
*
*
- * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null
+ * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\PaymentMethod|string
*/
- protected $hasAdultConsideration;
+ protected $acceptedPaymentMethod;
/**
- * 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 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 string
+ * @var \OpenActive\Models\SchemaOrg\Offer|string
*/
- protected $gtin12;
+ protected $addOn;
/**
- * A review of the item.
+ * 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\Review|string
+ * @var \OpenActive\Models\SchemaOrg\PropertyValue|string
*/
- protected $review;
+ protected $additionalProperty;
/**
- * 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 amount of time that is required between accepting the offer and the actual usage of the resource or service.
*
*
- * @var \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $itemOffered;
+ protected $advanceBookingRequirement;
/**
- * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
+ * The overall rating, based on a collection of reviews or ratings, of the item.
*
*
- * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null
+ * @var \OpenActive\Models\SchemaOrg\AggregateRating|string
*/
- protected $category;
+ protected $aggregateRating;
/**
- * The date after which the price is no longer available.
+ * The geographic area where a service or offered item is provided.
*
*
- * @var Date|null
+ * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $priceValidUntil;
+ protected $areaServed;
/**
- * Indicates information about the shipping policies and options associated with an [[Offer]].
+ * 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\OfferShippingDetails|string
+ * @var string
*/
- protected $shippingDetails;
+ protected $asin;
/**
- * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.
+ * The availability of this item—for example In stock, Out of stock, Pre-order, etc.
*
*
- * @var string
+ * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null
*/
- protected $mpn;
+ protected $availability;
/**
- * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]].
+ * The end of the availability of the product or service included in the offer.
*
*
- * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string
+ * @var Date|DateTime|string|null
*/
- protected $includesObject;
+ protected $availabilityEnds;
+
+ /**
+ * The beginning of the availability of the product or service included in the offer.
+ *
+ *
+ * @var Date|DateTime|string|null
+ */
+ protected $availabilityStarts;
+
+ /**
+ * The place(s) from which the offer can be obtained (e.g. store locations).
+ *
+ *
+ * @var \OpenActive\Models\SchemaOrg\Place|string
+ */
+ protected $availableAtOrFrom;
+
+ /**
+ * The delivery method(s) available for this offer.
+ *
+ *
+ * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ */
+ protected $availableDeliveryMethod;
/**
* 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.
@@ -151,130 +187,143 @@ public static function fieldList() {
protected $businessFunction;
/**
- * 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 category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
*
*
- * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null
+ * @var \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null
*/
- protected $itemCondition;
+ protected $category;
/**
- * 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.
- *
+ * 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 string
*/
- protected $gtin;
+ protected $checkoutPageURLTemplate;
/**
- * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity.
+ * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup.
*
*
* @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $eligibleQuantity;
+ protected $deliveryLeadTime;
/**
- * 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.
+ * The duration for which the given offer is valid.
*
*
- * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $warranty;
+ protected $eligibleDuration;
/**
- * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider.
+ * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity.
*
*
- * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string
+ * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string
*/
- protected $seller;
+ protected $eligibleQuantity;
/**
- * 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 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\Place|string|\OpenActive\Models\SchemaOrg\GeoShape
+ * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string
*/
- protected $ineligibleRegion;
+ protected $eligibleRegion;
/**
- * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.
+ * 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\QuantitativeValue|DateInterval|string|null
+ * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string
*/
- protected $leaseLength;
+ protected $eligibleTransactionVolume;
/**
- * The overall rating, based on a collection of reviews or ratings, of 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 \OpenActive\Models\SchemaOrg\AggregateRating|string
+ * @var string
*/
- protected $aggregateRating;
+ protected $gtin;
/**
- * A pointer to the organization or person making the offer.
+ * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string
+ * @var string
*/
- protected $offeredBy;
+ protected $gtin12;
/**
- * 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 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|string
+ * @var string
*/
- protected $deliveryLeadTime;
+ protected $gtin13;
/**
- * The delivery method(s) available for this offer.
+ * The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
*
*
- * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null
+ * @var string
*/
- protected $availableDeliveryMethod;
+ protected $gtin14;
/**
- * The date when the item becomes valid.
+ * 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 Date|DateTime|null
+ * @var string
*/
- protected $validFrom;
+ protected $gtin8;
/**
- * The end of the availability of the product or service included in the offer.
+ * Used to tag an item to be intended or suitable for consumption or use by adults only.
*
*
- * @var Date|DateTime|string|null
+ * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null
*/
- protected $availabilityEnds;
+ protected $hasAdultConsideration;
/**
- * 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 link to a Digital Product Passport (DPP) or a digital record detailing the lifecycle, sustainability, and compliance data for this product or offer. This may be a direct URL, a GS1 Digital Link URI, or a nested DigitalProductPassport object. Note: This property is aligned with the IANA 'dpp' link relation and the GS1 Web Vocabulary 'dpp' link type.
*
*
- * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place
+ * @var \OpenActive\Models\SchemaOrg\DigitalProductPassport|string
*/
- protected $eligibleRegion;
+ protected $hasDigitalProductPassport;
/**
- * 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 GS1 digital link associated with the object. This URL should conform to the particular requirements of digital links. The link should only contain the Application Identifiers (AIs) that are relevant for the entity being annotated, for instance a [[Product]] or an [[Organization]], and for the correct granularity. In particular, for products:21) should only be present on instances of [[IndividualProduct]]10) should be annotated as [[SomeProducts]] if only products from that lot are sold, or [[IndividualProduct]] if there is only a specific product.8013) should be attached to a [[Product]] or a [[ProductModel]].21) should only be present on instances of [[IndividualProduct]]10) should be annotated as [[SomeProducts]] if only products from that lot are sold, or [[IndividualProduct]] if there is only a specific product.8013) should be attached to a [[Product]] or a [[ProductModel]].21) should only be present on instances of [[IndividualProduct]]10) should be annotated as [[SomeProducts]] if only products from that lot are sold, or [[IndividualProduct]] if there is only a specific product.8013) should be attached to a [[Product]] or a [[ProductModel]].21) should only be present on instances of [[IndividualProduct]]10) should be annotated as [[SomeProducts]] if only products from that lot are sold, or [[IndividualProduct]] if there is only a specific product.8013) should be attached to a [[Product]] or a [[ProductModel]].