From 878039832e3902b4b3aaf9a1bfd7876da8d6d88f Mon Sep 17 00:00:00 2001 From: openactive-bot Date: Thu, 22 Oct 2026 14:17:21 +0000 Subject: [PATCH] Update data models --- src/Enums/PropertyEnumeration.php | 96 +- .../{MeasuredValue.php => ActionProcess.php} | 6 +- .../AgentInteractionStatistic.php | 13 + .../PropertyEnumeration/AggregateElement.php | 13 + src/Enums/PropertyEnumeration/Asin.php | 13 + src/Enums/PropertyEnumeration/AuditDate.php | 13 + .../AuthorizedRepresentative.php | 13 + src/Enums/PropertyEnumeration/Cause.php | 13 + .../CertificationIdentification.php | 13 + .../CertificationRating.php | 13 + .../CertificationStatus.php | 13 + .../CheckoutPageURLTemplate.php | 13 + src/Enums/PropertyEnumeration/ColorSwatch.php | 13 + .../CompanyRegistration.php | 13 + .../ConstraintProperty.php | 13 + .../PropertyEnumeration/ConsumerNotice.php | 13 + .../PropertyEnumeration/CourseSchedule.php | 13 + src/Enums/PropertyEnumeration/Data.php | 13 + .../PropertyEnumeration/DigitalSourceType.php | 13 + .../PropertyEnumeration/DisplayLocation.php | 13 + ...gProperty.php => EligibleWithSupplier.php} | 6 +- src/Enums/PropertyEnumeration/ErrorCode.php | 13 + .../PropertyEnumeration/ExtendedAddress.php | 13 + .../PropertyEnumeration/FulfillmentType.php | 13 + .../PropertyEnumeration/HasCertification.php | 13 + .../HasDigitalProductPassport.php | 13 + .../PropertyEnumeration/HasGS1DigitalLink.php | 13 + .../PropertyEnumeration/HasMemberProgram.php | 13 + .../HasParticipationOffer.php | 13 + .../HasProductReturnPolicy.php | 13 + .../HasShippingService.php | 13 + .../HasSponsorshipOffer.php | 13 + src/Enums/PropertyEnumeration/HasStore.php | 13 + .../PropertyEnumeration/HasTierBenefit.php | 13 + .../HasTierRequirement.php | 13 + src/Enums/PropertyEnumeration/HasTiers.php | 13 + src/Enums/PropertyEnumeration/Importer.php | 13 + .../PropertyEnumeration/IncentiveAmount.php | 13 + .../PropertyEnumeration/IncentiveStatus.php | 13 + .../PropertyEnumeration/IncentiveType.php | 13 + .../PropertyEnumeration/IncentivizedItem.php | 13 + src/Enums/PropertyEnumeration/IncomeLimit.php | 13 + .../PropertyEnumeration/IsOftenBoughtWith.php | 13 + src/Enums/PropertyEnumeration/IsStoreOn.php | 13 + src/Enums/PropertyEnumeration/IsTierOf.php | 13 + .../PropertyEnumeration/ItemPopularity.php | 13 + src/Enums/PropertyEnumeration/JobDuration.php | 13 + .../{ObservedNode.php => LegalAddress.php} | 6 +- .../LegalRepresentative.php | 13 + .../PropertyEnumeration/LegislationAmends.php | 13 + .../LegislationCommences.php | 13 + .../LegislationCorrects.php | 13 + .../LegislationCountersignedBy.php | 13 + .../LegislationDateOfApplicability.php | 13 + .../LegislationEnsuresImplementationOf.php | 13 + .../LegislationRepeals.php | 13 + src/Enums/PropertyEnumeration/LifeEvent.php | 13 + .../MeasurementDenominator.php | 13 + .../PropertyEnumeration/MeasurementMethod.php | 13 + .../MeasurementQualifier.php | 13 + .../PropertyEnumeration/MinimumOrderValue.php | 13 + src/Enums/PropertyEnumeration/MobileUrl.php | 13 + src/Enums/PropertyEnumeration/NumItems.php | 13 + .../PropertyEnumeration/ObservationAbout.php | 13 + .../PropertyEnumeration/ObservationPeriod.php | 13 + .../PropertyEnumeration/OrderPercentage.php | 13 + src/Enums/PropertyEnumeration/OrderValue.php | 13 + src/Enums/PropertyEnumeration/Owner.php | 13 + .../PropertyEnumeration/PaymentMethodType.php | 13 + src/Enums/PropertyEnumeration/PracticesAt.php | 13 + .../PropertyEnumeration/ProductReturnDays.php | 13 + .../PropertyEnumeration/ProductReturnLink.php | 13 + src/Enums/PropertyEnumeration/Program.php | 13 + src/Enums/PropertyEnumeration/Pronouns.php | 13 + .../PurchasePriceLimit.php | 13 + .../PropertyEnumeration/PurchaseType.php | 13 + .../PropertyEnumeration/QualifiedExpense.php | 13 + .../RecycledContentPercentage.php | 13 + src/Enums/PropertyEnumeration/Referee.php | 13 + .../PropertyEnumeration/SeasonalOverride.php | 13 + .../ShippingConditions.php | 13 + .../PropertyEnumeration/ShippingOrigin.php | 13 + src/Enums/PropertyEnumeration/Source.php | 13 + .../PropertyEnumeration/Specification.php | 13 + src/Enums/PropertyEnumeration/StatType.php | 13 + .../SubstanceOfConcern.php | 13 + .../PropertyEnumeration/SyllabusSections.php | 13 + src/Enums/PropertyEnumeration/Timestamp.php | 13 + .../TotalHistoricalEnrollment.php | 13 + src/Enums/PropertyEnumeration/TripOrigin.php | 13 + src/Enums/PropertyEnumeration/UsNPI.php | 13 + .../ValidForMemberTier.php | 13 + src/Enums/PropertyEnumeration/ValueGroup.php | 13 + .../PropertyEnumeration/WeightPercentage.php | 13 + .../SchemaOrg/AdultOrientedEnumeration.php | 12 +- src/Enums/SchemaOrg/BookFormatType.php | 5 +- .../SchemaOrg/BookFormatType/Pamphlet.php | 13 + src/Enums/SchemaOrg/BusinessEntityType.php | 2 +- src/Enums/SchemaOrg/CarUsageType.php | 2 +- .../CertificationStatusEnumeration.php | 13 + .../CertificationActive.php | 13 + .../CertificationInactive.php | 13 + src/Enums/SchemaOrg/DayOfWeek.php | 8 +- src/Enums/SchemaOrg/DeliveryMethod.php | 4 +- .../SchemaOrg/DigitalPlatformEnumeration.php | 4 +- .../EventAttendanceModeEnumeration.php | 2 +- .../SchemaOrg/FulfillmentTypeEnumeration.php | 16 + .../FulfillmentTypeCollectionPoint.php | 13 + .../FulfillmentTypeDelivery.php | 13 + .../FulfillmentTypePickupDropoff.php | 13 + .../FulfillmentTypePickupInStore.php | 13 + .../FulfillmentTypeScheduledDelivery.php | 13 + .../SchemaOrg/GameAvailabilityEnumeration.php | 2 +- src/Enums/SchemaOrg/GamePlayMode.php | 2 +- src/Enums/SchemaOrg/GenderType.php | 2 +- .../SchemaOrg/GovernmentBenefitsType.php | 8 +- .../SchemaOrg/HealthAspectEnumeration.php | 42 +- .../IncentiveQualifiedExpenseType.php | 15 + ...IncentiveQualifiedExpenseTypeGoodsOnly.php | 13 + ...iveQualifiedExpenseTypeGoodsOrServices.php | 13 + ...entiveQualifiedExpenseTypeServicesOnly.php | 13 + ...centiveQualifiedExpenseTypeUtilityBill.php | 13 + src/Enums/SchemaOrg/IncentiveStatus.php | 15 + .../IncentiveStatus/IncentiveStatusActive.php | 13 + .../IncentiveStatusInDevelopment.php | 13 + .../IncentiveStatus/IncentiveStatusOnHold.php | 13 + .../IncentiveStatusRetired.php | 13 + src/Enums/SchemaOrg/IncentiveType.php | 16 + .../IncentiveType/IncentiveTypeLoan.php | 13 + .../IncentiveTypeRebateOrSubsidy.php | 13 + .../IncentiveType/IncentiveTypeTaxCredit.php | 13 + .../IncentiveTypeTaxDeduction.php | 13 + .../IncentiveType/IncentiveTypeTaxWaiver.php | 13 + src/Enums/SchemaOrg/ItemAvailability.php | 14 +- .../ItemAvailability/MadeToOrder.php | 13 + .../SchemaOrg/ItemAvailability/Reserved.php | 13 + src/Enums/SchemaOrg/ItemListOrderType.php | 4 +- src/Enums/SchemaOrg/LegalValueLevel.php | 4 +- src/Enums/SchemaOrg/MapCategoryType.php | 4 +- src/Enums/SchemaOrg/MeasurementMethodEnum.php | 12 + .../ExampleMeasurementMethodEnum.php | 13 + src/Enums/SchemaOrg/MediaEnumeration.php | 11 + .../MediaManipulationRatingEnumeration.php | 4 +- .../SchemaOrg/MerchantReturnEnumeration.php | 2 +- .../SchemaOrg/MusicAlbumProductionType.php | 12 +- .../CompilationAlbum.php | 2 +- .../MusicAlbumProductionType/DJMixAlbum.php | 2 +- .../MusicAlbumProductionType/DemoAlbum.php | 2 +- .../MusicAlbumProductionType/LiveAlbum.php | 2 +- .../MusicAlbumProductionType/MixtapeAlbum.php | 2 +- .../MusicAlbumProductionType/RemixAlbum.php | 2 +- .../SoundtrackAlbum.php | 2 +- .../SpokenWordAlbum.php | 2 +- .../MusicAlbumProductionType/StudioAlbum.php | 2 +- src/Enums/SchemaOrg/MusicAlbumReleaseType.php | 4 +- .../SchemaOrg/MusicReleaseFormatType.php | 6 +- .../MusicReleaseFormatType/CDFormat.php | 2 +- .../MusicReleaseFormatType/CassetteFormat.php | 2 +- .../MusicReleaseFormatType/DVDFormat.php | 2 +- .../DigitalAudioTapeFormat.php | 2 +- .../MusicReleaseFormatType/DigitalFormat.php | 2 +- .../LaserDiscFormat.php | 2 +- .../MusicReleaseFormatType/VinylFormat.php | 2 +- src/Enums/SchemaOrg/OfferItemCondition.php | 2 +- src/Enums/SchemaOrg/PaymentMethod.php | 12 - src/Enums/SchemaOrg/PaymentMethodType.php | 19 + .../ByBankTransferInAdvance.php | 13 + .../SchemaOrg/PaymentMethodType/ByInvoice.php | 13 + src/Enums/SchemaOrg/PaymentMethodType/COD.php | 13 + .../SchemaOrg/PaymentMethodType/Cash.php | 13 + .../PaymentMethodType/CheckInAdvance.php | 13 + .../PaymentMethodType/DirectDebit.php | 13 + .../PaymentMethodType/InStorePrepay.php | 13 + .../PaymentMethodType/PhoneCarrierPayment.php | 13 + .../SchemaOrg/PhysicalActivityCategory.php | 6 +- .../PriceComponentTypeEnumeration.php | 6 +- src/Enums/SchemaOrg/PriceTypeEnumeration.php | 11 +- .../MaximumRetailPrice.php | 13 + .../PriceTypeEnumeration/RegularPrice.php | 13 + .../StrikethroughPrice.php | 13 + .../SchemaOrg/ProductReturnEnumeration.php | 15 + .../ProductReturnFiniteReturnWindow.php | 13 + .../ProductReturnNotPermitted.php | 13 + .../ProductReturnUnlimitedWindow.php | 13 + .../ProductReturnUnspecified.php | 13 + src/Enums/SchemaOrg/PurchaseType.php | 15 + .../PurchaseType/PurchaseTypeLease.php | 13 + .../PurchaseType/PurchaseTypeNewPurchase.php | 13 + .../PurchaseType/PurchaseTypeTradeIn.php | 13 + .../PurchaseType/PurchaseTypeUsedPurchase.php | 13 + src/Enums/SchemaOrg/RefundTypeEnumeration.php | 2 +- src/Enums/SchemaOrg/RestrictedDiet.php | 16 +- src/Enums/SchemaOrg/ReturnFeesEnumeration.php | 6 +- .../SchemaOrg/ReturnMethodEnumeration.php | 3 +- .../ReturnMethodEnumeration/KeepProduct.php | 13 + src/Enums/SchemaOrg/RsvpResponseType.php | 2 +- src/Enums/SchemaOrg/SizeSystemEnumeration.php | 2 +- .../SchemaOrg/TierBenefitEnumeration.php | 15 + .../TierBenefitLoyaltyPoints.php | 13 + .../TierBenefitLoyaltyPrice.php | 13 + .../TierBenefitLoyaltyReturns.php | 13 + .../TierBenefitLoyaltyShipping.php | 13 + src/Enums/SchemaOrg/WarrantyScope.php | 2 +- src/Enums/TestOpenBookingFlowEnumeration.php | 2 +- .../OpenBookingApprovalFlow.php | 2 +- .../OpenBookingSimpleFlow.php | 2 +- src/Models/OA/Dataset.php | 4 +- src/Models/OA/Event.php | 19 +- src/Models/OA/EventSeries.php | 20 +- src/Models/OA/OnDemandEvent.php | 18 +- src/Models/OA/Organization.php | 37 + src/Models/OA/PartialSchedule.php | 2 +- src/Models/OA/Place.php | 31 +- src/Models/OA/QuantitativeValue.php | 4 +- src/Models/OA/Schedule.php | 4 +- src/Models/OA/VirtualLocation.php | 4 +- src/Models/OA/WebAPI.php | 14 +- src/Models/SchemaOrg/APIReference.php | 40 +- src/Models/SchemaOrg/Accommodation.php | 361 ++- src/Models/SchemaOrg/Action.php | 290 +- .../SchemaOrg/ActionAccessSpecification.php | 190 +- src/Models/SchemaOrg/AggregateOffer.php | 76 +- src/Models/SchemaOrg/AggregateRating.php | 34 +- src/Models/SchemaOrg/Airline.php | 48 +- src/Models/SchemaOrg/AnatomicalStructure.php | 152 +- src/Models/SchemaOrg/AnatomicalSystem.php | 110 +- src/Models/SchemaOrg/Answer.php | 43 +- src/Models/SchemaOrg/Apartment.php | 10 +- src/Models/SchemaOrg/ApartmentComplex.php | 66 +- src/Models/SchemaOrg/ArchiveComponent.php | 8 +- src/Models/SchemaOrg/Artery.php | 34 +- src/Models/SchemaOrg/Article.php | 148 +- src/Models/SchemaOrg/AudioObject.php | 44 +- src/Models/SchemaOrg/Audiobook.php | 49 +- src/Models/SchemaOrg/AuthenticateAction.php | 25 + src/Models/SchemaOrg/AuthorizeAction.php | 8 +- src/Models/SchemaOrg/AutoPartsStore.php | 2 +- src/Models/SchemaOrg/BankAccount.php | 60 +- src/Models/SchemaOrg/BedDetails.php | 50 +- src/Models/SchemaOrg/BioChemEntity.php | 298 +- src/Models/SchemaOrg/Blog.php | 60 +- src/Models/SchemaOrg/Book.php | 144 +- src/Models/SchemaOrg/BorrowAction.php | 8 +- src/Models/SchemaOrg/Brand.php | 90 +- src/Models/SchemaOrg/BroadcastChannel.php | 89 +- src/Models/SchemaOrg/BroadcastEvent.php | 94 +- .../BroadcastFrequencySpecification.php | 50 +- src/Models/SchemaOrg/BroadcastService.php | 212 +- src/Models/SchemaOrg/BusOrCoach.php | 44 +- src/Models/SchemaOrg/BusTrip.php | 70 +- src/Models/SchemaOrg/BusinessAudience.php | 34 +- src/Models/SchemaOrg/BuyAction.php | 64 +- src/Models/SchemaOrg/CDCPMDRecord.php | 334 +- src/Models/SchemaOrg/Campground.php | 2 +- src/Models/SchemaOrg/Car.php | 44 +- src/Models/SchemaOrg/Certification.php | 437 +++ src/Models/SchemaOrg/Chapter.php | 34 +- src/Models/SchemaOrg/ChemicalSubstance.php | 34 +- src/Models/SchemaOrg/ChooseAction.php | 36 +- src/Models/SchemaOrg/Claim.php | 65 +- src/Models/SchemaOrg/Class.php | 8 +- src/Models/SchemaOrg/Clip.php | 259 +- src/Models/SchemaOrg/ComicIssue.php | 88 +- src/Models/SchemaOrg/ComicStory.php | 56 +- src/Models/SchemaOrg/Comment.php | 69 +- src/Models/SchemaOrg/CommunicateAction.php | 62 +- .../SchemaOrg/CompoundPriceSpecification.php | 10 +- src/Models/SchemaOrg/ConferenceEvent.php | 25 + src/Models/SchemaOrg/ConstraintNode.php | 94 + src/Models/SchemaOrg/ConsumeAction.php | 46 +- src/Models/SchemaOrg/ContactPoint.php | 234 +- src/Models/SchemaOrg/CookAction.php | 70 +- src/Models/SchemaOrg/Cooperative.php | 25 + src/Models/SchemaOrg/Corporation.php | 2 +- src/Models/SchemaOrg/Course.php | 202 +- src/Models/SchemaOrg/CourseInstance.php | 80 +- src/Models/SchemaOrg/CreativeWork.php | 2854 +++++++++-------- src/Models/SchemaOrg/CreativeWorkSeason.php | 175 +- src/Models/SchemaOrg/CreativeWorkSeries.php | 64 +- src/Models/SchemaOrg/Credential.php | 162 + src/Models/SchemaOrg/CreditCard.php | 2 +- src/Models/SchemaOrg/DDxElement.php | 46 +- .../{Quantity.php => DENonprofitType.php} | 4 +- src/Models/SchemaOrg/DataCatalog.php | 95 +- src/Models/SchemaOrg/DataDownload.php | 57 +- src/Models/SchemaOrg/DataFeed.php | 10 +- src/Models/SchemaOrg/DataFeedItem.php | 36 +- src/Models/SchemaOrg/Dataset.php | 216 +- .../SchemaOrg/DatedMoneySpecification.php | 104 +- .../SchemaOrg/DeclarationOfConformity.php | 25 + src/Models/SchemaOrg/DefinedRegion.php | 59 +- src/Models/SchemaOrg/DefinedTerm.php | 64 +- src/Models/SchemaOrg/DefinedTermSet.php | 34 + .../SchemaOrg/DeliveryChargeSpecification.php | 106 +- src/Models/SchemaOrg/DeliveryEvent.php | 62 +- src/Models/SchemaOrg/DeliveryTimeSettings.php | 94 +- src/Models/SchemaOrg/Demand.php | 855 ++--- src/Models/SchemaOrg/Dentist.php | 2 +- src/Models/SchemaOrg/DepositAccount.php | 2 +- src/Models/SchemaOrg/Diet.php | 100 +- src/Models/SchemaOrg/DietarySupplement.php | 204 +- .../SchemaOrg/DigitalDocumentPermission.php | 8 +- .../SchemaOrg/DigitalProductPassport.php | 25 + src/Models/SchemaOrg/Distance.php | 2 +- src/Models/SchemaOrg/DonateAction.php | 113 +- src/Models/SchemaOrg/DoseSchedule.php | 84 +- src/Models/SchemaOrg/Drug.php | 646 ++-- src/Models/SchemaOrg/DrugCost.php | 104 +- src/Models/SchemaOrg/DrugStrength.php | 62 +- src/Models/SchemaOrg/Duration.php | 2 +- src/Models/SchemaOrg/EducationEvent.php | 50 +- .../EducationalOccupationalCredential.php | 171 +- .../EducationalOccupationalProgram.php | 615 ++-- src/Models/SchemaOrg/EmployeeRole.php | 50 +- src/Models/SchemaOrg/EndorseAction.php | 8 +- src/Models/SchemaOrg/Energy.php | 2 +- .../SchemaOrg/EnergyConsumptionDetails.php | 62 +- src/Models/SchemaOrg/EngineSpecification.php | 114 +- src/Models/SchemaOrg/EntryPoint.php | 116 +- src/Models/SchemaOrg/Enumeration.php | 8 +- .../EnvironmentalProductDeclaration.php | 25 + src/Models/SchemaOrg/Episode.php | 250 +- src/Models/SchemaOrg/Error.php | 62 + src/Models/SchemaOrg/Event.php | 1067 +++--- src/Models/SchemaOrg/EventSeries.php | 2 +- .../SchemaOrg/ExchangeRateSpecification.php | 68 +- src/Models/SchemaOrg/ExerciseAction.php | 288 +- src/Models/SchemaOrg/ExercisePlan.php | 180 +- src/Models/SchemaOrg/FinancialIncentive.php | 596 ++++ src/Models/SchemaOrg/Flight.php | 274 +- src/Models/SchemaOrg/FlightReservation.php | 78 +- src/Models/SchemaOrg/FloorPlan.php | 232 +- src/Models/SchemaOrg/FoodEstablishment.php | 114 +- .../FoodEstablishmentReservation.php | 66 +- src/Models/SchemaOrg/Game.php | 68 +- src/Models/SchemaOrg/GameServer.php | 62 +- src/Models/SchemaOrg/Gene.php | 70 +- src/Models/SchemaOrg/GeoCircle.php | 50 +- src/Models/SchemaOrg/GeoCoordinates.php | 134 +- src/Models/SchemaOrg/GeoShape.php | 158 +- src/Models/SchemaOrg/GeospatialGeometry.php | 186 +- src/Models/SchemaOrg/GiveAction.php | 8 +- src/Models/SchemaOrg/GovernmentService.php | 8 +- src/Models/SchemaOrg/Grant.php | 56 +- src/Models/SchemaOrg/Guide.php | 44 +- src/Models/SchemaOrg/HealthInsurancePlan.php | 108 +- .../HealthPlanCostSharingSpecification.php | 88 +- src/Models/SchemaOrg/HealthPlanFormulary.php | 42 +- src/Models/SchemaOrg/HealthPlanNetwork.php | 48 +- src/Models/SchemaOrg/Hospital.php | 18 +- src/Models/SchemaOrg/HotelRoom.php | 10 +- src/Models/SchemaOrg/House.php | 8 +- src/Models/SchemaOrg/HowTo.php | 206 +- src/Models/SchemaOrg/HowToDirection.php | 150 +- src/Models/SchemaOrg/HowToItem.php | 8 +- src/Models/SchemaOrg/HowToSection.php | 10 +- src/Models/SchemaOrg/HowToStep.php | 2 +- src/Models/SchemaOrg/HowToSupply.php | 8 +- src/Models/SchemaOrg/HyperToc.php | 46 +- src/Models/SchemaOrg/HyperTocEntry.php | 46 +- .../IPTCDigitalSourceEnumeration.php | 25 + src/Models/SchemaOrg/ITNonprofitType.php | 25 + src/Models/SchemaOrg/ImageObject.php | 122 +- src/Models/SchemaOrg/IndividualPhysician.php | 59 + src/Models/SchemaOrg/InfectiousDisease.php | 44 +- src/Models/SchemaOrg/InstantaneousEvent.php | 127 + src/Models/SchemaOrg/InteractionCounter.php | 146 +- src/Models/SchemaOrg/InvestmentOrDeposit.php | 8 +- src/Models/SchemaOrg/Invoice.php | 344 +- src/Models/SchemaOrg/ItemList.php | 76 +- src/Models/SchemaOrg/JobPosting.php | 903 +++--- src/Models/SchemaOrg/Joint.php | 60 +- src/Models/SchemaOrg/LearningResource.php | 148 +- src/Models/SchemaOrg/Legislation.php | 481 ++- src/Models/SchemaOrg/LinkRole.php | 44 +- src/Models/SchemaOrg/ListItem.php | 52 +- src/Models/SchemaOrg/LoanOrCredit.php | 210 +- src/Models/SchemaOrg/LocalBusiness.php | 88 +- src/Models/SchemaOrg/LodgingBusiness.php | 172 +- src/Models/SchemaOrg/LodgingReservation.php | 122 +- src/Models/SchemaOrg/LoginAction.php | 25 + src/Models/SchemaOrg/LymphaticVessel.php | 44 +- src/Models/SchemaOrg/Mass.php | 2 +- src/Models/SchemaOrg/MediaObject.php | 482 +-- src/Models/SchemaOrg/MediaReview.php | 56 +- src/Models/SchemaOrg/MediaSubscription.php | 46 +- src/Models/SchemaOrg/MedicalClinic.php | 10 +- src/Models/SchemaOrg/MedicalCode.php | 2 +- src/Models/SchemaOrg/MedicalCondition.php | 390 ++- .../SchemaOrg/MedicalConditionStage.php | 48 +- src/Models/SchemaOrg/MedicalDevice.php | 88 +- src/Models/SchemaOrg/MedicalEntity.php | 144 +- src/Models/SchemaOrg/MedicalGuideline.php | 50 +- src/Models/SchemaOrg/MedicalOrganization.php | 48 +- src/Models/SchemaOrg/MedicalProcedure.php | 134 +- src/Models/SchemaOrg/MedicalSign.php | 46 +- src/Models/SchemaOrg/MedicalSignOrSymptom.php | 9 +- src/Models/SchemaOrg/MedicalStudy.php | 76 +- src/Models/SchemaOrg/MedicalTest.php | 76 +- src/Models/SchemaOrg/MedicalTherapy.php | 62 +- src/Models/SchemaOrg/MedicalWebPage.php | 8 +- src/Models/SchemaOrg/MemberProgram.php | 93 + src/Models/SchemaOrg/MemberProgramTier.php | 165 + src/Models/SchemaOrg/Menu.php | 46 +- src/Models/SchemaOrg/MenuItem.php | 76 +- src/Models/SchemaOrg/MenuSection.php | 46 +- src/Models/SchemaOrg/MerchantReturnPolicy.php | 464 +-- .../MerchantReturnPolicySeasonalOverride.php | 264 +- src/Models/SchemaOrg/Message.php | 208 +- src/Models/SchemaOrg/MolecularEntity.php | 162 +- src/Models/SchemaOrg/MonetaryAmount.php | 113 +- .../SchemaOrg/MonetaryAmountDistribution.php | 2 +- src/Models/SchemaOrg/MonetaryGrant.php | 52 +- src/Models/SchemaOrg/MoneyTransfer.php | 50 +- src/Models/SchemaOrg/MortgageLoan.php | 50 +- src/Models/SchemaOrg/Movie.php | 242 +- src/Models/SchemaOrg/MovieSeries.php | 155 +- src/Models/SchemaOrg/Muscle.php | 108 +- src/Models/SchemaOrg/MusicAlbum.php | 60 +- src/Models/SchemaOrg/MusicComposition.php | 184 +- src/Models/SchemaOrg/MusicGroup.php | 115 +- src/Models/SchemaOrg/MusicPlaylist.php | 62 +- src/Models/SchemaOrg/MusicRecording.php | 121 +- src/Models/SchemaOrg/MusicRelease.php | 109 +- src/Models/SchemaOrg/Nerve.php | 92 +- src/Models/SchemaOrg/NewsArticle.php | 78 +- .../SchemaOrg/NewsMediaOrganization.php | 206 +- src/Models/SchemaOrg/NutritionInformation.php | 226 +- src/Models/SchemaOrg/Observation.php | 285 +- src/Models/SchemaOrg/Occupation.php | 188 +- src/Models/SchemaOrg/Offer.php | 1424 ++++---- src/Models/SchemaOrg/OfferShippingDetails.php | 372 ++- src/Models/SchemaOrg/OnlineMarketplace.php | 59 + src/Models/SchemaOrg/OnlineStore.php | 34 + .../SchemaOrg/OpeningHoursSpecification.php | 48 +- src/Models/SchemaOrg/OperatingSystem.php | 25 + src/Models/SchemaOrg/Order.php | 478 +-- src/Models/SchemaOrg/OrderItem.php | 80 +- src/Models/SchemaOrg/Organization.php | 1894 ++++++----- src/Models/SchemaOrg/OwnershipInfo.php | 104 +- src/Models/SchemaOrg/PalliativeProcedure.php | 2 +- src/Models/SchemaOrg/ParcelDelivery.php | 290 +- src/Models/SchemaOrg/Patient.php | 36 +- src/Models/SchemaOrg/PayAction.php | 8 +- src/Models/SchemaOrg/PaymentCard.php | 52 +- .../SchemaOrg/PaymentChargeSpecification.php | 48 +- src/Models/SchemaOrg/PaymentMethod.php | 59 + src/Models/SchemaOrg/PeopleAudience.php | 188 +- src/Models/SchemaOrg/PerformingArtsEvent.php | 25 + src/Models/SchemaOrg/Permit.php | 152 +- src/Models/SchemaOrg/Person.php | 1565 +++++---- src/Models/SchemaOrg/Pharmacy.php | 2 +- src/Models/SchemaOrg/PhysicalActivity.php | 94 +- src/Models/SchemaOrg/Physician.php | 103 +- src/Models/SchemaOrg/PhysiciansOffice.php | 25 + src/Models/SchemaOrg/Place.php | 1093 ++++--- src/Models/SchemaOrg/PlanAction.php | 7 +- src/Models/SchemaOrg/PodcastSeries.php | 9 +- src/Models/SchemaOrg/PoliticalParty.php | 25 + src/Models/SchemaOrg/PostalAddress.php | 92 +- .../PostalCodeRangeSpecification.php | 34 +- src/Models/SchemaOrg/PriceSpecification.php | 236 +- src/Models/SchemaOrg/Product.php | 1783 ++++++---- src/Models/SchemaOrg/ProductCollection.php | 2 +- src/Models/SchemaOrg/ProductGroup.php | 11 +- src/Models/SchemaOrg/ProductModel.php | 46 +- src/Models/SchemaOrg/ProductReturnPolicy.php | 92 + src/Models/SchemaOrg/ProgramMembership.php | 132 +- src/Models/SchemaOrg/PronounceableText.php | 62 +- src/Models/SchemaOrg/Property.php | 48 +- src/Models/SchemaOrg/PropertyValue.php | 251 +- .../SchemaOrg/PropertyValueSpecification.php | 234 +- src/Models/SchemaOrg/Protein.php | 2 +- src/Models/SchemaOrg/PublicationEvent.php | 52 +- src/Models/SchemaOrg/PublicationIssue.php | 36 +- src/Models/SchemaOrg/PublicationVolume.php | 80 +- src/Models/SchemaOrg/QuantitativeValue.php | 163 +- .../QuantitativeValueDistribution.php | 67 +- src/Models/SchemaOrg/Question.php | 93 +- src/Models/SchemaOrg/Quotation.php | 8 +- src/Models/SchemaOrg/RadioSeries.php | 295 +- src/Models/SchemaOrg/Rating.php | 127 +- src/Models/SchemaOrg/RealEstateListing.php | 52 +- src/Models/SchemaOrg/ReceiveAction.php | 54 +- src/Models/SchemaOrg/Recipe.php | 208 +- src/Models/SchemaOrg/Recommendation.php | 10 +- src/Models/SchemaOrg/RentAction.php | 8 +- src/Models/SchemaOrg/RentalCarReservation.php | 50 +- .../SchemaOrg/RepaymentSpecification.php | 48 +- src/Models/SchemaOrg/Reservation.php | 318 +- src/Models/SchemaOrg/ResetPasswordAction.php | 25 + src/Models/SchemaOrg/Residence.php | 34 + src/Models/SchemaOrg/ReturnAction.php | 8 +- src/Models/SchemaOrg/Review.php | 210 +- src/Models/SchemaOrg/Role.php | 100 +- src/Models/SchemaOrg/RsvpAction.php | 48 +- src/Models/SchemaOrg/RuntimePlatform.php | 25 + src/Models/SchemaOrg/Schedule.php | 301 +- src/Models/SchemaOrg/Seat.php | 82 +- src/Models/SchemaOrg/SeekToAction.php | 8 +- src/Models/SchemaOrg/SellAction.php | 48 +- src/Models/SchemaOrg/SendAction.php | 56 +- src/Models/SchemaOrg/SequentialArt.php | 25 + src/Models/SchemaOrg/Service.php | 620 ++-- src/Models/SchemaOrg/ServiceChannel.php | 164 +- src/Models/SchemaOrg/ServicePeriod.php | 131 + src/Models/SchemaOrg/ShippingConditions.php | 444 +++ src/Models/SchemaOrg/ShippingDeliveryTime.php | 95 +- src/Models/SchemaOrg/ShippingRateSettings.php | 218 +- src/Models/SchemaOrg/ShippingService.php | 166 + .../SchemaOrg/SingleFamilyResidence.php | 10 +- src/Models/SchemaOrg/SizeSpecification.php | 136 +- src/Models/SchemaOrg/SkiResort.php | 2 +- src/Models/SchemaOrg/SoftwareApplication.php | 468 +-- src/Models/SchemaOrg/SoftwareSourceCode.php | 125 +- src/Models/SchemaOrg/SpecialAnnouncement.php | 258 +- src/Models/SchemaOrg/SportsEvent.php | 90 +- src/Models/SchemaOrg/SportsTeam.php | 48 +- src/Models/SchemaOrg/StadiumOrArena.php | 2 +- .../SchemaOrg/StatisticalPopulation.php | 71 +- src/Models/SchemaOrg/StatisticalVariable.php | 275 ++ src/Models/SchemaOrg/Substance.php | 44 +- src/Models/SchemaOrg/Suite.php | 58 +- src/Models/SchemaOrg/SuperficialAnatomy.php | 108 +- src/Models/SchemaOrg/Syllabus.php | 25 + src/Models/SchemaOrg/TVEpisode.php | 56 +- src/Models/SchemaOrg/TVSeason.php | 40 +- src/Models/SchemaOrg/TVSeries.php | 297 +- src/Models/SchemaOrg/TaxiReservation.php | 50 +- src/Models/SchemaOrg/Taxon.php | 92 +- src/Models/SchemaOrg/TextObject.php | 25 + src/Models/SchemaOrg/TherapeuticProcedure.php | 48 +- src/Models/SchemaOrg/Thing.php | 211 +- src/Models/SchemaOrg/Ticket.php | 162 +- src/Models/SchemaOrg/TipAction.php | 8 +- src/Models/SchemaOrg/TouristAttraction.php | 46 +- src/Models/SchemaOrg/TouristDestination.php | 46 +- src/Models/SchemaOrg/TouristTrip.php | 2 +- src/Models/SchemaOrg/TradeAction.php | 68 +- src/Models/SchemaOrg/TrainTrip.php | 98 +- src/Models/SchemaOrg/Trip.php | 162 +- src/Models/SchemaOrg/TypeAndQuantityNode.php | 68 +- .../SchemaOrg/UnitPriceSpecification.php | 170 +- src/Models/SchemaOrg/UpdateAction.php | 30 +- src/Models/SchemaOrg/UserComments.php | 116 +- src/Models/SchemaOrg/VacationRental.php | 25 + src/Models/SchemaOrg/Vehicle.php | 898 +++--- src/Models/SchemaOrg/Vein.php | 68 +- src/Models/SchemaOrg/VideoGame.php | 257 +- src/Models/SchemaOrg/VideoGameSeries.php | 475 +-- src/Models/SchemaOrg/VideoObject.php | 235 +- src/Models/SchemaOrg/VisualArtwork.php | 315 +- src/Models/SchemaOrg/WarrantyPromise.php | 50 +- src/Models/SchemaOrg/WebPage.php | 182 +- src/Models/SchemaOrg/WorkBasedProgram.php | 48 +- src/Models/SchemaOrg/WriteAction.php | 8 +- 556 files changed, 30561 insertions(+), 20965 deletions(-) rename src/Enums/PropertyEnumeration/{MeasuredValue.php => ActionProcess.php} (55%) create mode 100644 src/Enums/PropertyEnumeration/AgentInteractionStatistic.php create mode 100644 src/Enums/PropertyEnumeration/AggregateElement.php create mode 100644 src/Enums/PropertyEnumeration/Asin.php create mode 100644 src/Enums/PropertyEnumeration/AuditDate.php create mode 100644 src/Enums/PropertyEnumeration/AuthorizedRepresentative.php create mode 100644 src/Enums/PropertyEnumeration/Cause.php create mode 100644 src/Enums/PropertyEnumeration/CertificationIdentification.php create mode 100644 src/Enums/PropertyEnumeration/CertificationRating.php create mode 100644 src/Enums/PropertyEnumeration/CertificationStatus.php create mode 100644 src/Enums/PropertyEnumeration/CheckoutPageURLTemplate.php create mode 100644 src/Enums/PropertyEnumeration/ColorSwatch.php create mode 100644 src/Enums/PropertyEnumeration/CompanyRegistration.php create mode 100644 src/Enums/PropertyEnumeration/ConstraintProperty.php create mode 100644 src/Enums/PropertyEnumeration/ConsumerNotice.php create mode 100644 src/Enums/PropertyEnumeration/CourseSchedule.php create mode 100644 src/Enums/PropertyEnumeration/Data.php create mode 100644 src/Enums/PropertyEnumeration/DigitalSourceType.php create mode 100644 src/Enums/PropertyEnumeration/DisplayLocation.php rename src/Enums/PropertyEnumeration/{ConstrainingProperty.php => EligibleWithSupplier.php} (54%) create mode 100644 src/Enums/PropertyEnumeration/ErrorCode.php create mode 100644 src/Enums/PropertyEnumeration/ExtendedAddress.php create mode 100644 src/Enums/PropertyEnumeration/FulfillmentType.php create mode 100644 src/Enums/PropertyEnumeration/HasCertification.php create mode 100644 src/Enums/PropertyEnumeration/HasDigitalProductPassport.php create mode 100644 src/Enums/PropertyEnumeration/HasGS1DigitalLink.php create mode 100644 src/Enums/PropertyEnumeration/HasMemberProgram.php create mode 100644 src/Enums/PropertyEnumeration/HasParticipationOffer.php create mode 100644 src/Enums/PropertyEnumeration/HasProductReturnPolicy.php create mode 100644 src/Enums/PropertyEnumeration/HasShippingService.php create mode 100644 src/Enums/PropertyEnumeration/HasSponsorshipOffer.php create mode 100644 src/Enums/PropertyEnumeration/HasStore.php create mode 100644 src/Enums/PropertyEnumeration/HasTierBenefit.php create mode 100644 src/Enums/PropertyEnumeration/HasTierRequirement.php create mode 100644 src/Enums/PropertyEnumeration/HasTiers.php create mode 100644 src/Enums/PropertyEnumeration/Importer.php create mode 100644 src/Enums/PropertyEnumeration/IncentiveAmount.php create mode 100644 src/Enums/PropertyEnumeration/IncentiveStatus.php create mode 100644 src/Enums/PropertyEnumeration/IncentiveType.php create mode 100644 src/Enums/PropertyEnumeration/IncentivizedItem.php create mode 100644 src/Enums/PropertyEnumeration/IncomeLimit.php create mode 100644 src/Enums/PropertyEnumeration/IsOftenBoughtWith.php create mode 100644 src/Enums/PropertyEnumeration/IsStoreOn.php create mode 100644 src/Enums/PropertyEnumeration/IsTierOf.php create mode 100644 src/Enums/PropertyEnumeration/ItemPopularity.php create mode 100644 src/Enums/PropertyEnumeration/JobDuration.php rename src/Enums/PropertyEnumeration/{ObservedNode.php => LegalAddress.php} (55%) create mode 100644 src/Enums/PropertyEnumeration/LegalRepresentative.php create mode 100644 src/Enums/PropertyEnumeration/LegislationAmends.php create mode 100644 src/Enums/PropertyEnumeration/LegislationCommences.php create mode 100644 src/Enums/PropertyEnumeration/LegislationCorrects.php create mode 100644 src/Enums/PropertyEnumeration/LegislationCountersignedBy.php create mode 100644 src/Enums/PropertyEnumeration/LegislationDateOfApplicability.php create mode 100644 src/Enums/PropertyEnumeration/LegislationEnsuresImplementationOf.php create mode 100644 src/Enums/PropertyEnumeration/LegislationRepeals.php create mode 100644 src/Enums/PropertyEnumeration/LifeEvent.php create mode 100644 src/Enums/PropertyEnumeration/MeasurementDenominator.php create mode 100644 src/Enums/PropertyEnumeration/MeasurementMethod.php create mode 100644 src/Enums/PropertyEnumeration/MeasurementQualifier.php create mode 100644 src/Enums/PropertyEnumeration/MinimumOrderValue.php create mode 100644 src/Enums/PropertyEnumeration/MobileUrl.php create mode 100644 src/Enums/PropertyEnumeration/NumItems.php create mode 100644 src/Enums/PropertyEnumeration/ObservationAbout.php create mode 100644 src/Enums/PropertyEnumeration/ObservationPeriod.php create mode 100644 src/Enums/PropertyEnumeration/OrderPercentage.php create mode 100644 src/Enums/PropertyEnumeration/OrderValue.php create mode 100644 src/Enums/PropertyEnumeration/Owner.php create mode 100644 src/Enums/PropertyEnumeration/PaymentMethodType.php create mode 100644 src/Enums/PropertyEnumeration/PracticesAt.php create mode 100644 src/Enums/PropertyEnumeration/ProductReturnDays.php create mode 100644 src/Enums/PropertyEnumeration/ProductReturnLink.php create mode 100644 src/Enums/PropertyEnumeration/Program.php create mode 100644 src/Enums/PropertyEnumeration/Pronouns.php create mode 100644 src/Enums/PropertyEnumeration/PurchasePriceLimit.php create mode 100644 src/Enums/PropertyEnumeration/PurchaseType.php create mode 100644 src/Enums/PropertyEnumeration/QualifiedExpense.php create mode 100644 src/Enums/PropertyEnumeration/RecycledContentPercentage.php create mode 100644 src/Enums/PropertyEnumeration/Referee.php create mode 100644 src/Enums/PropertyEnumeration/SeasonalOverride.php create mode 100644 src/Enums/PropertyEnumeration/ShippingConditions.php create mode 100644 src/Enums/PropertyEnumeration/ShippingOrigin.php create mode 100644 src/Enums/PropertyEnumeration/Source.php create mode 100644 src/Enums/PropertyEnumeration/Specification.php create mode 100644 src/Enums/PropertyEnumeration/StatType.php create mode 100644 src/Enums/PropertyEnumeration/SubstanceOfConcern.php create mode 100644 src/Enums/PropertyEnumeration/SyllabusSections.php create mode 100644 src/Enums/PropertyEnumeration/Timestamp.php create mode 100644 src/Enums/PropertyEnumeration/TotalHistoricalEnrollment.php create mode 100644 src/Enums/PropertyEnumeration/TripOrigin.php create mode 100644 src/Enums/PropertyEnumeration/UsNPI.php create mode 100644 src/Enums/PropertyEnumeration/ValidForMemberTier.php create mode 100644 src/Enums/PropertyEnumeration/ValueGroup.php create mode 100644 src/Enums/PropertyEnumeration/WeightPercentage.php create mode 100644 src/Enums/SchemaOrg/BookFormatType/Pamphlet.php create mode 100644 src/Enums/SchemaOrg/CertificationStatusEnumeration.php create mode 100644 src/Enums/SchemaOrg/CertificationStatusEnumeration/CertificationActive.php create mode 100644 src/Enums/SchemaOrg/CertificationStatusEnumeration/CertificationInactive.php create mode 100644 src/Enums/SchemaOrg/FulfillmentTypeEnumeration.php create mode 100644 src/Enums/SchemaOrg/FulfillmentTypeEnumeration/FulfillmentTypeCollectionPoint.php create mode 100644 src/Enums/SchemaOrg/FulfillmentTypeEnumeration/FulfillmentTypeDelivery.php create mode 100644 src/Enums/SchemaOrg/FulfillmentTypeEnumeration/FulfillmentTypePickupDropoff.php create mode 100644 src/Enums/SchemaOrg/FulfillmentTypeEnumeration/FulfillmentTypePickupInStore.php create mode 100644 src/Enums/SchemaOrg/FulfillmentTypeEnumeration/FulfillmentTypeScheduledDelivery.php create mode 100644 src/Enums/SchemaOrg/IncentiveQualifiedExpenseType.php create mode 100644 src/Enums/SchemaOrg/IncentiveQualifiedExpenseType/IncentiveQualifiedExpenseTypeGoodsOnly.php create mode 100644 src/Enums/SchemaOrg/IncentiveQualifiedExpenseType/IncentiveQualifiedExpenseTypeGoodsOrServices.php create mode 100644 src/Enums/SchemaOrg/IncentiveQualifiedExpenseType/IncentiveQualifiedExpenseTypeServicesOnly.php create mode 100644 src/Enums/SchemaOrg/IncentiveQualifiedExpenseType/IncentiveQualifiedExpenseTypeUtilityBill.php create mode 100644 src/Enums/SchemaOrg/IncentiveStatus.php create mode 100644 src/Enums/SchemaOrg/IncentiveStatus/IncentiveStatusActive.php create mode 100644 src/Enums/SchemaOrg/IncentiveStatus/IncentiveStatusInDevelopment.php create mode 100644 src/Enums/SchemaOrg/IncentiveStatus/IncentiveStatusOnHold.php create mode 100644 src/Enums/SchemaOrg/IncentiveStatus/IncentiveStatusRetired.php create mode 100644 src/Enums/SchemaOrg/IncentiveType.php create mode 100644 src/Enums/SchemaOrg/IncentiveType/IncentiveTypeLoan.php create mode 100644 src/Enums/SchemaOrg/IncentiveType/IncentiveTypeRebateOrSubsidy.php create mode 100644 src/Enums/SchemaOrg/IncentiveType/IncentiveTypeTaxCredit.php create mode 100644 src/Enums/SchemaOrg/IncentiveType/IncentiveTypeTaxDeduction.php create mode 100644 src/Enums/SchemaOrg/IncentiveType/IncentiveTypeTaxWaiver.php create mode 100644 src/Enums/SchemaOrg/ItemAvailability/MadeToOrder.php create mode 100644 src/Enums/SchemaOrg/ItemAvailability/Reserved.php create mode 100644 src/Enums/SchemaOrg/MeasurementMethodEnum.php create mode 100644 src/Enums/SchemaOrg/MeasurementMethodEnum/ExampleMeasurementMethodEnum.php create mode 100644 src/Enums/SchemaOrg/MediaEnumeration.php delete mode 100644 src/Enums/SchemaOrg/PaymentMethod.php create mode 100644 src/Enums/SchemaOrg/PaymentMethodType.php create mode 100644 src/Enums/SchemaOrg/PaymentMethodType/ByBankTransferInAdvance.php create mode 100644 src/Enums/SchemaOrg/PaymentMethodType/ByInvoice.php create mode 100644 src/Enums/SchemaOrg/PaymentMethodType/COD.php create mode 100644 src/Enums/SchemaOrg/PaymentMethodType/Cash.php create mode 100644 src/Enums/SchemaOrg/PaymentMethodType/CheckInAdvance.php create mode 100644 src/Enums/SchemaOrg/PaymentMethodType/DirectDebit.php create mode 100644 src/Enums/SchemaOrg/PaymentMethodType/InStorePrepay.php create mode 100644 src/Enums/SchemaOrg/PaymentMethodType/PhoneCarrierPayment.php create mode 100644 src/Enums/SchemaOrg/PriceTypeEnumeration/MaximumRetailPrice.php create mode 100644 src/Enums/SchemaOrg/PriceTypeEnumeration/RegularPrice.php create mode 100644 src/Enums/SchemaOrg/PriceTypeEnumeration/StrikethroughPrice.php create mode 100644 src/Enums/SchemaOrg/ProductReturnEnumeration.php create mode 100644 src/Enums/SchemaOrg/ProductReturnEnumeration/ProductReturnFiniteReturnWindow.php create mode 100644 src/Enums/SchemaOrg/ProductReturnEnumeration/ProductReturnNotPermitted.php create mode 100644 src/Enums/SchemaOrg/ProductReturnEnumeration/ProductReturnUnlimitedWindow.php create mode 100644 src/Enums/SchemaOrg/ProductReturnEnumeration/ProductReturnUnspecified.php create mode 100644 src/Enums/SchemaOrg/PurchaseType.php create mode 100644 src/Enums/SchemaOrg/PurchaseType/PurchaseTypeLease.php create mode 100644 src/Enums/SchemaOrg/PurchaseType/PurchaseTypeNewPurchase.php create mode 100644 src/Enums/SchemaOrg/PurchaseType/PurchaseTypeTradeIn.php create mode 100644 src/Enums/SchemaOrg/PurchaseType/PurchaseTypeUsedPurchase.php create mode 100644 src/Enums/SchemaOrg/ReturnMethodEnumeration/KeepProduct.php create mode 100644 src/Enums/SchemaOrg/TierBenefitEnumeration.php create mode 100644 src/Enums/SchemaOrg/TierBenefitEnumeration/TierBenefitLoyaltyPoints.php create mode 100644 src/Enums/SchemaOrg/TierBenefitEnumeration/TierBenefitLoyaltyPrice.php create mode 100644 src/Enums/SchemaOrg/TierBenefitEnumeration/TierBenefitLoyaltyReturns.php create mode 100644 src/Enums/SchemaOrg/TierBenefitEnumeration/TierBenefitLoyaltyShipping.php create mode 100644 src/Models/SchemaOrg/AuthenticateAction.php create mode 100644 src/Models/SchemaOrg/Certification.php create mode 100644 src/Models/SchemaOrg/ConferenceEvent.php create mode 100644 src/Models/SchemaOrg/ConstraintNode.php create mode 100644 src/Models/SchemaOrg/Cooperative.php create mode 100644 src/Models/SchemaOrg/Credential.php rename src/Models/SchemaOrg/{Quantity.php => DENonprofitType.php} (75%) create mode 100644 src/Models/SchemaOrg/DeclarationOfConformity.php create mode 100644 src/Models/SchemaOrg/DigitalProductPassport.php create mode 100644 src/Models/SchemaOrg/EnvironmentalProductDeclaration.php create mode 100644 src/Models/SchemaOrg/Error.php create mode 100644 src/Models/SchemaOrg/FinancialIncentive.php create mode 100644 src/Models/SchemaOrg/IPTCDigitalSourceEnumeration.php create mode 100644 src/Models/SchemaOrg/ITNonprofitType.php create mode 100644 src/Models/SchemaOrg/IndividualPhysician.php create mode 100644 src/Models/SchemaOrg/InstantaneousEvent.php create mode 100644 src/Models/SchemaOrg/LoginAction.php create mode 100644 src/Models/SchemaOrg/MemberProgram.php create mode 100644 src/Models/SchemaOrg/MemberProgramTier.php create mode 100644 src/Models/SchemaOrg/OnlineMarketplace.php create mode 100644 src/Models/SchemaOrg/OperatingSystem.php create mode 100644 src/Models/SchemaOrg/PaymentMethod.php create mode 100644 src/Models/SchemaOrg/PerformingArtsEvent.php create mode 100644 src/Models/SchemaOrg/PhysiciansOffice.php create mode 100644 src/Models/SchemaOrg/PoliticalParty.php create mode 100644 src/Models/SchemaOrg/ProductReturnPolicy.php create mode 100644 src/Models/SchemaOrg/ResetPasswordAction.php create mode 100644 src/Models/SchemaOrg/RuntimePlatform.php create mode 100644 src/Models/SchemaOrg/SequentialArt.php create mode 100644 src/Models/SchemaOrg/ServicePeriod.php create mode 100644 src/Models/SchemaOrg/ShippingConditions.php create mode 100644 src/Models/SchemaOrg/ShippingService.php create mode 100644 src/Models/SchemaOrg/StatisticalVariable.php create mode 100644 src/Models/SchemaOrg/Syllabus.php create mode 100644 src/Models/SchemaOrg/TextObject.php create mode 100644 src/Models/SchemaOrg/VacationRental.php 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: . + * + * + * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\UnitPriceSpecification|string + */ + protected $incentiveAmount; + + /** + * The status of the incentive (active, on hold, retired, etc.). + * + * + * @var \OpenActive\Enums\SchemaOrg\IncentiveStatus|null + */ + protected $incentiveStatus; + + /** + * The type of incentive offered (tax credit/rebate, tax deduction, tax waiver, subsidies, etc.). + * + * + * @var \OpenActive\Enums\SchemaOrg\IncentiveType|null + */ + protected $incentiveType; + + /** + * The type or specific product(s) and/or service(s) being incentivized. + *

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: Other item types should be adapted similarly. + * + * + * @var string + */ + protected $hasGS1DigitalLink; + + /** + * 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 @@ -282,12 +331,29 @@ public static function fieldList() { protected $hasMeasurement; /** - * 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. + * Specifies a MerchantReturnPolicy that may be applicable. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - protected $gtin8; + protected $hasMerchantReturnPolicy; + + /** + * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]]. + * + * + * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string + */ + protected $includesObject; + + /** + * 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|\OpenActive\Models\SchemaOrg\Place|string + */ + protected $ineligibleRegion; /** * The current approximate inventory level for the item or items. @@ -298,92 +364,112 @@ public static function fieldList() { protected $inventoryLevel; /** - * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers. + * Indicates whether this content is family friendly. * * - * @var string + * @var bool|null */ - protected $sku; + protected $isFamilyFriendly; /** - * 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). + * 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\Models\SchemaOrg\Offer|string + * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - protected $addOn; + protected $itemCondition; /** - * Specifies a MerchantReturnPolicy that may be applicable. + * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. * * - * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @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 $hasMerchantReturnPolicy; + protected $itemOffered; /** - * The amount of time that is required between accepting the offer and the actual usage of the resource or service. + * A measure of the relative popularity or sales rank of the offer within a marketplace, catalog, or platform (e.g. a platform-specific bestseller ranking or sales rank). This property is intended for platform-level or catalog-wide comparative rankings rather than self-asserted promotional claims. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $advanceBookingRequirement; + protected $itemPopularity; /** - * 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. + * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. + * + * + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + */ + protected $leaseLength; + + /** + * The [[mobileUrl]] property is provided for specific situations in which data consumers need to determine whether one of several provided URLs is a dedicated 'mobile site'. + * + * To discourage over-use, and reflecting intial usecases, the property is expected only on [[Product]] and [[Offer]], rather than [[Thing]]. The general trend in web technology is towards [responsive design](https://en.wikipedia.org/wiki/Responsive_web_design) in which content can be flexibly adapted to a wide range of browsing environments. Pages and sites referenced with the long-established [[url]] property should ideally also be usable on a wide variety of devices, including mobile phones. In most cases, it would be pointless and counter productive to attempt to update all [[url]] markup to use [[mobileUrl]] for more mobile-oriented pages. The property is intended for the case when items (primarily [[Product]] and [[Offer]]) have extra URLs hosted on an additional "mobile site" alongside the main one. It should not be taken as an endorsement of this publication style. + * * * * @var string */ - protected $gtin14; + protected $mobileUrl; /** - * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. * * * @var string */ - protected $priceCurrency; + protected $mpn; /** - * 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. + * A pointer to the organization or person making the offer. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $eligibleTransactionVolume; + protected $offeredBy; /** - * The geographic area where a service or offered item is provided. + * 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 \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var string|Number|null */ - protected $areaServed; + protected $price; /** - * The type(s) of customers for which the given offer is valid. + * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * - * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + * @var string */ - protected $eligibleCustomerType; + protected $priceCurrency; /** - * The availability of this item—for example In stock, Out of stock, Pre-order, etc. + * One or more detailed price specifications, indicating the unit price and delivery or payment charges. * * - * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $availability; + protected $priceSpecification; /** - * 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 date after which the price is no longer available. * * - * @var string + * @var Date|null */ - protected $gtin13; + protected $priceValidUntil; + + /** + * A review of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Review|string + */ + protected $review; /** * Review of the item. @@ -394,374 +480,525 @@ public static function fieldList() { protected $reviews; /** - * Indicates whether this content is family friendly. + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $isFamilyFriendly; + protected $seller; /** - * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. + * The 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|null + * @var string */ - protected $validThrough; + protected $serialNumber; /** - * One or more detailed price specifications, indicating the unit price and delivery or payment charges. + * Indicates information about the shipping policies and options associated with an [[Offer]]. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var \OpenActive\Models\SchemaOrg\OfferShippingDetails|string */ - protected $priceSpecification; + protected $shippingDetails; /** - * The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.\n\nUsage guidelines:\n\n* Use the [[priceCurrency]] property (with standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as '$' in the value.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.\n* Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols. - * + * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers. * * - * @var string|Number|null + * @var string */ - protected $price; + protected $sku; /** - * The beginning of the availability of the product or service included in the offer. + * The membership program tier(s) an Offer (or a PriceSpecification, OfferShippingDetails, or MerchantReturnPolicy under an Offer) is valid for. * * - * @var Date|DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - protected $availabilityStarts; + protected $validForMemberTier; /** - * The duration for which the given offer is valid. + * The date when the item becomes valid. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Date|DateTime|null */ - protected $eligibleDuration; + protected $validFrom; /** - * The place(s) from which the offer can be obtained (e.g. store locations). + * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var Date|DateTime|null */ - protected $availableAtOrFrom; + protected $validThrough; /** - * 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 warranty promise(s) included in the offer. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - protected $serialNumber; + protected $warranty; + + /** + * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\PaymentMethod|string + */ + public function getAcceptedPaymentMethod() + { + return $this->acceptedPaymentMethod; + } + + /** + * @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 setAcceptedPaymentMethod($acceptedPaymentMethod) + { + $types = [ + "\OpenActive\Models\SchemaOrg\LoanOrCredit", + "\OpenActive\Models\SchemaOrg\PaymentMethod", + "string", + ]; + + $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); + + $this->acceptedPaymentMethod = $acceptedPaymentMethod; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Offer|string + */ + public function getAddOn() + { + return $this->addOn; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Offer|string $addOn + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAddOn($addOn) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Offer", + "string", + ]; + + $addOn = self::checkTypes($addOn, $types); + + $this->addOn = $addOn; + } + + /** + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + */ + public function getAdditionalProperty() + { + return $this->additionalProperty; + } + + /** + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAdditionalProperty($additionalProperty) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", + ]; + + $additionalProperty = self::checkTypes($additionalProperty, $types); + + $this->additionalProperty = $additionalProperty; + } + + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getAdvanceBookingRequirement() + { + return $this->advanceBookingRequirement; + } + + /** + * @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 setAdvanceBookingRequirement($advanceBookingRequirement) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types); + + $this->advanceBookingRequirement = $advanceBookingRequirement; + } + + /** + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + */ + public function getAggregateRating() + { + return $this->aggregateRating; + } + + /** + * @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 setAggregateRating($aggregateRating) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AggregateRating", + "string", + ]; + + $aggregateRating = self::checkTypes($aggregateRating, $types); + + $this->aggregateRating = $aggregateRating; + } + + /** + * @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\Enums\SchemaOrg\AdultOrientedEnumeration|null + * @return string */ - public function getHasAdultConsideration() + public function getAsin() { - return $this->hasAdultConsideration; + return $this->asin; } /** - * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration + * @param string $asin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasAdultConsideration($hasAdultConsideration) + public function setAsin($asin) { $types = [ - "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", - "null", + "string", ]; - $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); + $asin = self::checkTypes($asin, $types); - $this->hasAdultConsideration = $hasAdultConsideration; + $this->asin = $asin; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null */ - public function getGtin12() + public function getAvailability() { - return $this->gtin12; + return $this->availability; } /** - * @param string $gtin12 + * @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 setGtin12($gtin12) + public function setAvailability($availability) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\ItemAvailability", + "null", ]; - $gtin12 = self::checkTypes($gtin12, $types); + $availability = self::checkTypes($availability, $types); - $this->gtin12 = $gtin12; + $this->availability = $availability; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return Date|DateTime|string|null */ - public function getReview() + public function getAvailabilityEnds() { - return $this->review; + return $this->availabilityEnds; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param Date|DateTime|string|null $availabilityEnds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setAvailabilityEnds($availabilityEnds) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", - "string", + "Date", + "DateTime", + "Time", + "null", ]; - $review = self::checkTypes($review, $types); + $availabilityEnds = self::checkTypes($availabilityEnds, $types); - $this->review = $review; + $this->availabilityEnds = $availabilityEnds; } /** - * @return \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string + * @return Date|DateTime|string|null */ - public function getItemOffered() + public function getAvailabilityStarts() { - return $this->itemOffered; + return $this->availabilityStarts; } /** - * @param \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string $itemOffered + * @param Date|DateTime|string|null $availabilityStarts * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemOffered($itemOffered) + public function setAvailabilityStarts($availabilityStarts) { $types = [ - "\OpenActive\Models\SchemaOrg\Trip", - "\OpenActive\Models\SchemaOrg\Event", - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\AggregateOffer", - "\OpenActive\Models\SchemaOrg\CreativeWork", - "\OpenActive\Models\SchemaOrg\MenuItem", - "\OpenActive\Models\SchemaOrg\Service", - "string", + "Date", + "DateTime", + "Time", + "null", ]; - $itemOffered = self::checkTypes($itemOffered, $types); + $availabilityStarts = self::checkTypes($availabilityStarts, $types); - $this->itemOffered = $itemOffered; + $this->availabilityStarts = $availabilityStarts; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getCategory() + public function getAvailableAtOrFrom() { - return $this->category; + return $this->availableAtOrFrom; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @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 setCategory($category) + public function setAvailableAtOrFrom($availableAtOrFrom) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", ]; - $category = self::checkTypes($category, $types); + $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types); - $this->category = $category; + $this->availableAtOrFrom = $availableAtOrFrom; } /** - * @return Date|null + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getPriceValidUntil() + public function getAvailableDeliveryMethod() { - return $this->priceValidUntil; + return $this->availableDeliveryMethod; } /** - * @param Date|null $priceValidUntil + * @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 setPriceValidUntil($priceValidUntil) + public function setAvailableDeliveryMethod($availableDeliveryMethod) { $types = [ - "Date", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", "null", ]; - $priceValidUntil = self::checkTypes($priceValidUntil, $types); + $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); - $this->priceValidUntil = $priceValidUntil; + $this->availableDeliveryMethod = $availableDeliveryMethod; } /** - * @return \OpenActive\Models\SchemaOrg\OfferShippingDetails|string + * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - public function getShippingDetails() + public function getBusinessFunction() { - return $this->shippingDetails; + return $this->businessFunction; } /** - * @param \OpenActive\Models\SchemaOrg\OfferShippingDetails|string $shippingDetails + * @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 setShippingDetails($shippingDetails) + public function setBusinessFunction($businessFunction) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferShippingDetails", - "string", + "\OpenActive\Enums\SchemaOrg\BusinessFunction", + "null", ]; - $shippingDetails = self::checkTypes($shippingDetails, $types); + $businessFunction = self::checkTypes($businessFunction, $types); - $this->shippingDetails = $shippingDetails; + $this->businessFunction = $businessFunction; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ - public function getMpn() + public function getCategory() { - return $this->mpn; + return $this->category; } /** - * @param string $mpn + * @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 setMpn($mpn) + public function setCategory($category) { $types = [ + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", "string", + "\OpenActive\Models\SchemaOrg\Thing", + "null", ]; - $mpn = self::checkTypes($mpn, $types); + $category = self::checkTypes($category, $types); - $this->mpn = $mpn; + $this->category = $category; } /** - * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string + * @return string */ - public function getIncludesObject() + public function getCheckoutPageURLTemplate() { - return $this->includesObject; + return $this->checkoutPageURLTemplate; } /** - * @param \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string $includesObject + * @param string $checkoutPageURLTemplate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludesObject($includesObject) + public function setCheckoutPageURLTemplate($checkoutPageURLTemplate) { $types = [ - "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode", "string", ]; - $includesObject = self::checkTypes($includesObject, $types); + $checkoutPageURLTemplate = self::checkTypes($checkoutPageURLTemplate, $types); - $this->includesObject = $includesObject; + $this->checkoutPageURLTemplate = $checkoutPageURLTemplate; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getBusinessFunction() + public function getDeliveryLeadTime() { - return $this->businessFunction; + return $this->deliveryLeadTime; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction + * @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 setBusinessFunction($businessFunction) + public function setDeliveryLeadTime($deliveryLeadTime) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessFunction", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $businessFunction = self::checkTypes($businessFunction, $types); + $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); - $this->businessFunction = $businessFunction; + $this->deliveryLeadTime = $deliveryLeadTime; } /** - * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null */ - public function getItemCondition() + public function getEligibleCustomerType() { - return $this->itemCondition; + return $this->eligibleCustomerType; } /** - * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition + * @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 setItemCondition($itemCondition) + public function setEligibleCustomerType($eligibleCustomerType) { $types = [ - "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "\OpenActive\Enums\SchemaOrg\BusinessEntityType", "null", ]; - $itemCondition = self::checkTypes($itemCondition, $types); + $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types); - $this->itemCondition = $itemCondition; + $this->eligibleCustomerType = $eligibleCustomerType; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getGtin() + public function getEligibleDuration() { - return $this->gtin; + return $this->eligibleDuration; } /** - * @param string $gtin + * @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 setGtin($gtin) + public function setEligibleDuration($eligibleDuration) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $gtin = self::checkTypes($gtin, $types); + $eligibleDuration = self::checkTypes($eligibleDuration, $types); - $this->gtin = $gtin; + $this->eligibleDuration = $eligibleDuration; } /** @@ -790,661 +1027,708 @@ public function setEligibleQuantity($eligibleQuantity) } /** - * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getAcceptedPaymentMethod() + public function getEligibleRegion() { - return $this->acceptedPaymentMethod; + return $this->eligibleRegion; } /** - * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod + * @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 setAcceptedPaymentMethod($acceptedPaymentMethod) + public function setEligibleRegion($eligibleRegion) + { + $types = [ + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", + "string", + ]; + + $eligibleRegion = self::checkTypes($eligibleRegion, $types); + + $this->eligibleRegion = $eligibleRegion; + } + + /** + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + */ + public function getEligibleTransactionVolume() + { + return $this->eligibleTransactionVolume; + } + + /** + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setEligibleTransactionVolume($eligibleTransactionVolume) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", + ]; + + $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); + + $this->eligibleTransactionVolume = $eligibleTransactionVolume; + } + + /** + * @return string + */ + public function getGtin() + { + return $this->gtin; + } + + /** + * @param string $gtin + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setGtin($gtin) { $types = [ - "\OpenActive\Models\SchemaOrg\LoanOrCredit", - "\OpenActive\Enums\SchemaOrg\PaymentMethod", "string", - "null", ]; - $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); + $gtin = self::checkTypes($gtin, $types); - $this->acceptedPaymentMethod = $acceptedPaymentMethod; + $this->gtin = $gtin; } /** - * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @return string */ - public function getWarranty() + public function getGtin12() { - return $this->warranty; + return $this->gtin12; } /** - * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty + * @param string $gtin12 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarranty($warranty) + public function setGtin12($gtin12) { $types = [ - "\OpenActive\Models\SchemaOrg\WarrantyPromise", "string", ]; - $warranty = self::checkTypes($warranty, $types); + $gtin12 = self::checkTypes($gtin12, $types); - $this->warranty = $warranty; + $this->gtin12 = $gtin12; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getSeller() + public function getGtin13() { - return $this->seller; + return $this->gtin13; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @param string $gtin13 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeller($seller) + public function setGtin13($gtin13) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $seller = self::checkTypes($seller, $types); + $gtin13 = self::checkTypes($gtin13, $types); - $this->seller = $seller; + $this->gtin13 = $gtin13; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @return string */ - public function getIneligibleRegion() + public function getGtin14() { - return $this->ineligibleRegion; + return $this->gtin14; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion + * @param string $gtin14 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIneligibleRegion($ineligibleRegion) + public function setGtin14($gtin14) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", - "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); + $gtin14 = self::checkTypes($gtin14, $types); - $this->ineligibleRegion = $ineligibleRegion; + $this->gtin14 = $gtin14; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @return string */ - public function getLeaseLength() + public function getGtin8() { - return $this->leaseLength; + return $this->gtin8; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength + * @param string $gtin8 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLeaseLength($leaseLength) + public function setGtin8($gtin8) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "DateInterval", "string", - "null", ]; - $leaseLength = self::checkTypes($leaseLength, $types); + $gtin8 = self::checkTypes($gtin8, $types); - $this->leaseLength = $leaseLength; + $this->gtin8 = $gtin8; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null */ - public function getAggregateRating() + public function getHasAdultConsideration() { - return $this->aggregateRating; + return $this->hasAdultConsideration; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setHasAdultConsideration($hasAdultConsideration) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", - "string", + "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", + "null", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); - $this->aggregateRating = $aggregateRating; + $this->hasAdultConsideration = $hasAdultConsideration; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\DigitalProductPassport|string */ - public function getOfferedBy() + public function getHasDigitalProductPassport() { - return $this->offeredBy; + return $this->hasDigitalProductPassport; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $offeredBy + * @param \OpenActive\Models\SchemaOrg\DigitalProductPassport|string $hasDigitalProductPassport * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOfferedBy($offeredBy) + public function setHasDigitalProductPassport($hasDigitalProductPassport) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\DigitalProductPassport", "string", ]; - $offeredBy = self::checkTypes($offeredBy, $types); + $hasDigitalProductPassport = self::checkTypes($hasDigitalProductPassport, $types); - $this->offeredBy = $offeredBy; + $this->hasDigitalProductPassport = $hasDigitalProductPassport; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getDeliveryLeadTime() + public function getHasGS1DigitalLink() { - return $this->deliveryLeadTime; + return $this->hasGS1DigitalLink; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeliveryLeadTime($deliveryLeadTime) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->deliveryLeadTime = $deliveryLeadTime; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getAvailableDeliveryMethod() + public function getHasMeasurement() { - return $this->availableDeliveryMethod; + return $this->hasMeasurement; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod + * @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 setAvailableDeliveryMethod($availableDeliveryMethod) + public function setHasMeasurement($hasMeasurement) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); + $hasMeasurement = self::checkTypes($hasMeasurement, $types); - $this->availableDeliveryMethod = $availableDeliveryMethod; + $this->hasMeasurement = $hasMeasurement; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - public function getValidFrom() + public function getHasMerchantReturnPolicy() { - return $this->validFrom; + return $this->hasMerchantReturnPolicy; } /** - * @param Date|DateTime|null $validFrom + * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidFrom($validFrom) + public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", + "string", ]; - $validFrom = self::checkTypes($validFrom, $types); + $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); - $this->validFrom = $validFrom; + $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; } /** - * @return Date|DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string */ - public function getAvailabilityEnds() + public function getIncludesObject() { - return $this->availabilityEnds; + return $this->includesObject; } /** - * @param Date|DateTime|string|null $availabilityEnds + * @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 setAvailabilityEnds($availabilityEnds) + public function setIncludesObject($includesObject) { $types = [ - "Date", - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode", + "string", ]; - $availabilityEnds = self::checkTypes($availabilityEnds, $types); + $includesObject = self::checkTypes($includesObject, $types); - $this->availabilityEnds = $availabilityEnds; + $this->includesObject = $includesObject; } /** - * @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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHasMeasurement() + public function getInventoryLevel() { - return $this->hasMeasurement; + return $this->inventoryLevel; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @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 setHasMeasurement($hasMeasurement) + public function setInventoryLevel($inventoryLevel) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $hasMeasurement = self::checkTypes($hasMeasurement, $types); + $inventoryLevel = self::checkTypes($inventoryLevel, $types); - $this->hasMeasurement = $hasMeasurement; + $this->inventoryLevel = $inventoryLevel; } /** - * @return string + * @return bool|null */ - public function getGtin8() + public function getIsFamilyFriendly() { - return $this->gtin8; + return $this->isFamilyFriendly; } /** - * @param string $gtin8 + * @param bool|null $isFamilyFriendly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin8($gtin8) + public function setIsFamilyFriendly($isFamilyFriendly) { $types = [ - "string", + "bool", + "null", ]; - $gtin8 = self::checkTypes($gtin8, $types); + $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); - $this->gtin8 = $gtin8; + $this->isFamilyFriendly = $isFamilyFriendly; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - public function getInventoryLevel() + public function getItemCondition() { - return $this->inventoryLevel; + return $this->itemCondition; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel + * @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 setInventoryLevel($inventoryLevel) + public function setItemCondition($itemCondition) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "null", ]; - $inventoryLevel = self::checkTypes($inventoryLevel, $types); + $itemCondition = self::checkTypes($itemCondition, $types); - $this->inventoryLevel = $inventoryLevel; + $this->itemCondition = $itemCondition; } /** - * @return string + * @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 getSku() + public function getItemOffered() { - return $this->sku; + return $this->itemOffered; } /** - * @param string $sku + * @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 setSku($sku) + public function setItemOffered($itemOffered) { $types = [ + "\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", ]; - $sku = self::checkTypes($sku, $types); + $itemOffered = self::checkTypes($itemOffered, $types); - $this->sku = $sku; + $this->itemOffered = $itemOffered; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getAddOn() + public function getItemPopularity() { - return $this->addOn; + return $this->itemPopularity; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $addOn + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $itemPopularity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddOn($addOn) + public function setItemPopularity($itemPopularity) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $addOn = self::checkTypes($addOn, $types); + $itemPopularity = self::checkTypes($itemPopularity, $types); - $this->addOn = $addOn; + $this->itemPopularity = $itemPopularity; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getHasMerchantReturnPolicy() + public function getLeaseLength() { - return $this->hasMerchantReturnPolicy; + return $this->leaseLength; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy + * @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 setHasMerchantReturnPolicy($hasMerchantReturnPolicy) + public function setLeaseLength($leaseLength) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); + $leaseLength = self::checkTypes($leaseLength, $types); - $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; + $this->leaseLength = $leaseLength; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getAdvanceBookingRequirement() + public function getMobileUrl() { - return $this->advanceBookingRequirement; + return $this->mobileUrl; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement + * @param string $mobileUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdvanceBookingRequirement($advanceBookingRequirement) + public function setMobileUrl($mobileUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types); + $mobileUrl = self::checkTypes($mobileUrl, $types); - $this->advanceBookingRequirement = $advanceBookingRequirement; + $this->mobileUrl = $mobileUrl; } /** * @return string */ - public function getGtin14() + public function getMpn() { - return $this->gtin14; + return $this->mpn; } /** - * @param string $gtin14 + * @param string $mpn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin14($gtin14) + public function setMpn($mpn) { $types = [ "string", ]; - $gtin14 = self::checkTypes($gtin14, $types); + $mpn = self::checkTypes($mpn, $types); - $this->gtin14 = $gtin14; + $this->mpn = $mpn; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPriceCurrency() + public function getOfferedBy() { - return $this->priceCurrency; + return $this->offeredBy; } /** - * @param string $priceCurrency + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $offeredBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceCurrency($priceCurrency) + public function setOfferedBy($offeredBy) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $offeredBy = self::checkTypes($offeredBy, $types); - $this->priceCurrency = $priceCurrency; + $this->offeredBy = $offeredBy; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return string|Number|null */ - public function getEligibleTransactionVolume() + public function getPrice() { - return $this->eligibleTransactionVolume; + return $this->price; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume + * @param string|Number|null $price * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleTransactionVolume($eligibleTransactionVolume) + public function setPrice($price) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", + "Number", + "null", ]; - $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); + $price = self::checkTypes($price, $types); - $this->eligibleTransactionVolume = $eligibleTransactionVolume; + $this->price = $price; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return string */ - public function getAreaServed() + public function getPriceCurrency() { - return $this->areaServed; + return $this->priceCurrency; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setPriceCurrency($priceCurrency) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $areaServed = self::checkTypes($areaServed, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->areaServed = $areaServed; + $this->priceCurrency = $priceCurrency; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getEligibleCustomerType() + public function getPriceSpecification() { - return $this->eligibleCustomerType; + return $this->priceSpecification; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType + * @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 setEligibleCustomerType($eligibleCustomerType) + public function setPriceSpecification($priceSpecification) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessEntityType", - "null", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", ]; - $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types); + $priceSpecification = self::checkTypes($priceSpecification, $types); - $this->eligibleCustomerType = $eligibleCustomerType; + $this->priceSpecification = $priceSpecification; } /** - * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null + * @return Date|null */ - public function getAvailability() + public function getPriceValidUntil() { - return $this->availability; + return $this->priceValidUntil; } /** - * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability + * @param Date|null $priceValidUntil * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailability($availability) + public function setPriceValidUntil($priceValidUntil) { $types = [ - "\OpenActive\Enums\SchemaOrg\ItemAvailability", + "Date", "null", ]; - $availability = self::checkTypes($availability, $types); + $priceValidUntil = self::checkTypes($priceValidUntil, $types); - $this->availability = $availability; + $this->priceValidUntil = $priceValidUntil; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getGtin13() + public function getReview() { - return $this->gtin13; + return $this->review; } /** - * @param string $gtin13 + * @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 setGtin13($gtin13) + public function setReview($review) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $gtin13 = self::checkTypes($gtin13, $types); + $review = self::checkTypes($review, $types); - $this->gtin13 = $gtin13; + $this->review = $review; } /** @@ -1473,206 +1757,204 @@ public function setReviews($reviews) } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getIsFamilyFriendly() + public function getSeller() { - return $this->isFamilyFriendly; + return $this->seller; } /** - * @param bool|null $isFamilyFriendly + * @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 setIsFamilyFriendly($isFamilyFriendly) + public function setSeller($seller) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); + $seller = self::checkTypes($seller, $types); - $this->isFamilyFriendly = $isFamilyFriendly; + $this->seller = $seller; } /** - * @return Date|DateTime|null + * @return string */ - public function getValidThrough() + public function getSerialNumber() { - return $this->validThrough; + return $this->serialNumber; } /** - * @param Date|DateTime|null $validThrough + * @param string $serialNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidThrough($validThrough) + public function setSerialNumber($serialNumber) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $validThrough = self::checkTypes($validThrough, $types); + $serialNumber = self::checkTypes($serialNumber, $types); - $this->validThrough = $validThrough; + $this->serialNumber = $serialNumber; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return \OpenActive\Models\SchemaOrg\OfferShippingDetails|string */ - public function getPriceSpecification() + public function getShippingDetails() { - return $this->priceSpecification; + return $this->shippingDetails; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification + * @param \OpenActive\Models\SchemaOrg\OfferShippingDetails|string $shippingDetails * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceSpecification($priceSpecification) + public function setShippingDetails($shippingDetails) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\OfferShippingDetails", "string", ]; - $priceSpecification = self::checkTypes($priceSpecification, $types); + $shippingDetails = self::checkTypes($shippingDetails, $types); - $this->priceSpecification = $priceSpecification; + $this->shippingDetails = $shippingDetails; } /** - * @return string|Number|null + * @return string */ - public function getPrice() + public function getSku() { - return $this->price; + return $this->sku; } /** - * @param string|Number|null $price + * @param string $sku * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrice($price) + public function setSku($sku) { $types = [ "string", - "Number", - "null", ]; - $price = self::checkTypes($price, $types); + $sku = self::checkTypes($sku, $types); - $this->price = $price; + $this->sku = $sku; } /** - * @return Date|DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - public function getAvailabilityStarts() + public function getValidForMemberTier() { - return $this->availabilityStarts; + return $this->validForMemberTier; } /** - * @param Date|DateTime|string|null $availabilityStarts + * @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 setAvailabilityStarts($availabilityStarts) + public function setValidForMemberTier($validForMemberTier) { $types = [ - "Date", - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\MemberProgramTier", + "string", ]; - $availabilityStarts = self::checkTypes($availabilityStarts, $types); + $validForMemberTier = self::checkTypes($validForMemberTier, $types); - $this->availabilityStarts = $availabilityStarts; + $this->validForMemberTier = $validForMemberTier; } /** - * @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/OfferShippingDetails.php b/src/Models/SchemaOrg/OfferShippingDetails.php index 7d7eba60..6b2c1d03 100644 --- a/src/Models/SchemaOrg/OfferShippingDetails.php +++ b/src/Models/SchemaOrg/OfferShippingDetails.php @@ -17,25 +17,41 @@ public static function getType() public static function fieldList() { $fields = [ - "shippingDestination" => "shippingDestination", + "deliveryTime" => "deliveryTime", + "depth" => "depth", "doesNotShip" => "doesNotShip", - "shippingSettingsLink" => "shippingSettingsLink", - "transitTimeLabel" => "transitTimeLabel", + "hasShippingService" => "hasShippingService", + "height" => "height", + "provider" => "provider", + "shippingDestination" => "shippingDestination", "shippingLabel" => "shippingLabel", - "deliveryTime" => "deliveryTime", + "shippingOrigin" => "shippingOrigin", "shippingRate" => "shippingRate", + "shippingSettingsLink" => "shippingSettingsLink", + "transitTimeLabel" => "transitTimeLabel", + "validForMemberTier" => "validForMemberTier", + "weight" => "weight", + "width" => "width", ]; 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; + + /** + * The depth of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $depth; /** * Indicates when shipping to a particular [[shippingDestination]] is not available. @@ -45,6 +61,62 @@ public static function fieldList() { */ protected $doesNotShip; + /** + * Specification of a shipping service offered by the organization. + * + * + * @var \OpenActive\Models\SchemaOrg\ShippingService|string + */ + protected $hasShippingService; + + /** + * The height of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $height; + + /** + * 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; + + /** + * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + protected $shippingDestination; + + /** + * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). + * + * + * @var string + */ + protected $shippingLabel; + + /** + * Indicates the origin of a shipment, i.e. where it should be coming from. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + protected $shippingOrigin; + + /** + * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. + * + * + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\ShippingRateSettings|string + */ + protected $shippingRate; + /** * Link to a page containing [[ShippingRateSettings]] and [[DeliveryTimeSettings]] details. * @@ -62,52 +134,78 @@ public static function fieldList() { protected $transitTimeLabel; /** - * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). + * The membership program tier(s) an Offer (or a PriceSpecification, OfferShippingDetails, or MerchantReturnPolicy under an Offer) is valid for. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - protected $shippingLabel; + protected $validForMemberTier; /** - * The total delay between the receipt of the order and the goods reaching the final customer. + * The weight of the product or person. * * - * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + * @var \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $deliveryTime; + protected $weight; /** - * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. + * The width of the item. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $shippingRate; + protected $width; /** - * @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 \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getDepth() + { + return $this->depth; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDepth($depth) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $depth = self::checkTypes($depth, $types); + + $this->depth = $depth; } /** @@ -135,6 +233,183 @@ public function setDoesNotShip($doesNotShip) $this->doesNotShip = $doesNotShip; } + /** + * @return \OpenActive\Models\SchemaOrg\ShippingService|string + */ + public function getHasShippingService() + { + return $this->hasShippingService; + } + + /** + * @param \OpenActive\Models\SchemaOrg\ShippingService|string $hasShippingService + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHasShippingService($hasShippingService) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ShippingService", + "string", + ]; + + $hasShippingService = self::checkTypes($hasShippingService, $types); + + $this->hasShippingService = $hasShippingService; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getHeight() + { + return $this->height; + } + + /** + * @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 setHeight($height) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $height = self::checkTypes($height, $types); + + $this->height = $height; + } + + /** + * @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\DefinedRegion|string + */ + public function getShippingDestination() + { + return $this->shippingDestination; + } + + /** + * @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 setShippingDestination($shippingDestination) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedRegion", + "string", + ]; + + $shippingDestination = self::checkTypes($shippingDestination, $types); + + $this->shippingDestination = $shippingDestination; + } + + /** + * @return string + */ + public function getShippingLabel() + { + return $this->shippingLabel; + } + + /** + * @param string $shippingLabel + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingLabel($shippingLabel) + { + $types = [ + "string", + ]; + + $shippingLabel = self::checkTypes($shippingLabel, $types); + + $this->shippingLabel = $shippingLabel; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + public function getShippingOrigin() + { + return $this->shippingOrigin; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingOrigin + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingOrigin($shippingOrigin) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedRegion", + "string", + ]; + + $shippingOrigin = self::checkTypes($shippingOrigin, $types); + + $this->shippingOrigin = $shippingOrigin; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\ShippingRateSettings|string + */ + public function getShippingRate() + { + return $this->shippingRate; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\ShippingRateSettings|string $shippingRate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingRate($shippingRate) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\ShippingRateSettings", + "string", + ]; + + $shippingRate = self::checkTypes($shippingRate, $types); + + $this->shippingRate = $shippingRate; + } + /** * @return string */ @@ -184,77 +459,80 @@ public function setTransitTimeLabel($transitTimeLabel) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - public function getShippingLabel() + public function getValidForMemberTier() { - return $this->shippingLabel; + return $this->validForMemberTier; } /** - * @param string $shippingLabel + * @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 setShippingLabel($shippingLabel) + public function setValidForMemberTier($validForMemberTier) { $types = [ + "\OpenActive\Models\SchemaOrg\MemberProgramTier", "string", ]; - $shippingLabel = self::checkTypes($shippingLabel, $types); + $validForMemberTier = self::checkTypes($validForMemberTier, $types); - $this->shippingLabel = $shippingLabel; + $this->validForMemberTier = $validForMemberTier; } /** - * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + * @return \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getDeliveryTime() + public function getWeight() { - return $this->deliveryTime; + return $this->weight; } /** - * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime + * @param \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeliveryTime($deliveryTime) + public function setWeight($weight) { $types = [ - "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime", + "\OpenActive\Models\SchemaOrg\Mass", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $deliveryTime = self::checkTypes($deliveryTime, $types); + $weight = self::checkTypes($weight, $types); - $this->deliveryTime = $deliveryTime; + $this->weight = $weight; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getShippingRate() + public function getWidth() { - return $this->shippingRate; + return $this->width; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate + * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $width * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingRate($shippingRate) + public function setWidth($width) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $shippingRate = self::checkTypes($shippingRate, $types); + $width = self::checkTypes($width, $types); - $this->shippingRate = $shippingRate; + $this->width = $width; } } diff --git a/src/Models/SchemaOrg/OnlineMarketplace.php b/src/Models/SchemaOrg/OnlineMarketplace.php new file mode 100644 index 00000000..37580353 --- /dev/null +++ b/src/Models/SchemaOrg/OnlineMarketplace.php @@ -0,0 +1,59 @@ + "hasStore", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * An eCommerce store part of an online marketplace. + * + * + * @var \OpenActive\Models\SchemaOrg\OnlineStore|string + */ + protected $hasStore; + + /** + * @return \OpenActive\Models\SchemaOrg\OnlineStore|string + */ + public function getHasStore() + { + return $this->hasStore; + } + + /** + * @param \OpenActive\Models\SchemaOrg\OnlineStore|string $hasStore + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHasStore($hasStore) + { + $types = [ + "\OpenActive\Models\SchemaOrg\OnlineStore", + "string", + ]; + + $hasStore = self::checkTypes($hasStore, $types); + + $this->hasStore = $hasStore; + } + +} diff --git a/src/Models/SchemaOrg/OnlineStore.php b/src/Models/SchemaOrg/OnlineStore.php index 8af4fdc3..7ab21240 100644 --- a/src/Models/SchemaOrg/OnlineStore.php +++ b/src/Models/SchemaOrg/OnlineStore.php @@ -17,9 +17,43 @@ public static function getType() public static function fieldList() { $fields = [ + "isStoreOn" => "isStoreOn", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The eCommerce marketplace this online store is on. + * + * + * @var \OpenActive\Models\SchemaOrg\OnlineMarketplace|string + */ + protected $isStoreOn; + + /** + * @return \OpenActive\Models\SchemaOrg\OnlineMarketplace|string + */ + public function getIsStoreOn() + { + return $this->isStoreOn; + } + + /** + * @param \OpenActive\Models\SchemaOrg\OnlineMarketplace|string $isStoreOn + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIsStoreOn($isStoreOn) + { + $types = [ + "\OpenActive\Models\SchemaOrg\OnlineMarketplace", + "string", + ]; + + $isStoreOn = self::checkTypes($isStoreOn, $types); + + $this->isStoreOn = $isStoreOn; + } + } diff --git a/src/Models/SchemaOrg/OpeningHoursSpecification.php b/src/Models/SchemaOrg/OpeningHoursSpecification.php index c6833643..d1046fcb 100644 --- a/src/Models/SchemaOrg/OpeningHoursSpecification.php +++ b/src/Models/SchemaOrg/OpeningHoursSpecification.php @@ -19,8 +19,8 @@ public static function fieldList() { $fields = [ "closes" => "closes", "dayOfWeek" => "dayOfWeek", - "validFrom" => "validFrom", "opens" => "opens", + "validFrom" => "validFrom", "validThrough" => "validThrough", ]; @@ -44,20 +44,20 @@ public static function fieldList() { protected $dayOfWeek; /** - * The date when the item becomes valid. + * The opening hour of the place or service on the given day(s) of the week. * * - * @var Date|DateTime|null + * @var string|null */ - protected $validFrom; + protected $opens; /** - * The opening hour of the place or service on the given day(s) of the week. + * The date when the item becomes valid. * * - * @var string|null + * @var Date|DateTime|null */ - protected $opens; + 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. @@ -118,54 +118,54 @@ public function setDayOfWeek($dayOfWeek) } /** - * @return Date|DateTime|null + * @return string|null */ - public function getValidFrom() + public function getOpens() { - return $this->validFrom; + return $this->opens; } /** - * @param Date|DateTime|null $validFrom + * @param string|null $opens * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidFrom($validFrom) + public function setOpens($opens) { $types = [ - "Date", - "DateTime", + "Time", "null", ]; - $validFrom = self::checkTypes($validFrom, $types); + $opens = self::checkTypes($opens, $types); - $this->validFrom = $validFrom; + $this->opens = $opens; } /** - * @return string|null + * @return Date|DateTime|null */ - public function getOpens() + public function getValidFrom() { - return $this->opens; + return $this->validFrom; } /** - * @param string|null $opens + * @param Date|DateTime|null $validFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOpens($opens) + public function setValidFrom($validFrom) { $types = [ - "Time", + "Date", + "DateTime", "null", ]; - $opens = self::checkTypes($opens, $types); + $validFrom = self::checkTypes($validFrom, $types); - $this->opens = $opens; + $this->validFrom = $validFrom; } /** diff --git a/src/Models/SchemaOrg/OperatingSystem.php b/src/Models/SchemaOrg/OperatingSystem.php new file mode 100644 index 00000000..9094b048 --- /dev/null +++ b/src/Models/SchemaOrg/OperatingSystem.php @@ -0,0 +1,25 @@ + "orderDelivery", - "billingAddress" => "billingAddress", "acceptedOffer" => "acceptedOffer", - "merchant" => "merchant", - "orderStatus" => "orderStatus", + "billingAddress" => "billingAddress", + "broker" => "broker", "confirmationNumber" => "confirmationNumber", - "partOfInvoice" => "partOfInvoice", - "orderNumber" => "orderNumber", - "seller" => "seller", "customer" => "customer", - "paymentDueDate" => "paymentDueDate", - "broker" => "broker", - "discountCode" => "discountCode", "discount" => "discount", - "paymentMethodId" => "paymentMethodId", - "paymentUrl" => "paymentUrl", + "discountCode" => "discountCode", "discountCurrency" => "discountCurrency", - "paymentDue" => "paymentDue", - "orderDate" => "orderDate", "isGift" => "isGift", + "merchant" => "merchant", + "orderDate" => "orderDate", + "orderDelivery" => "orderDelivery", + "orderNumber" => "orderNumber", + "orderStatus" => "orderStatus", "orderedItem" => "orderedItem", + "partOfInvoice" => "partOfInvoice", + "paymentDue" => "paymentDue", + "paymentDueDate" => "paymentDueDate", "paymentMethod" => "paymentMethod", + "paymentMethodId" => "paymentMethodId", + "paymentUrl" => "paymentUrl", + "seller" => "seller", ]; return array_merge(parent::fieldList(), $fields); } /** - * The delivery of the parcel related to this order or order item. + * The offer(s) -- e.g., product, quantity and price combinations -- included in the order. * * - * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $orderDelivery; + protected $acceptedOffer; /** * The billing address for the order. @@ -61,188 +61,188 @@ public static function fieldList() { protected $billingAddress; /** - * The offer(s) -- e.g., product, quantity and price combinations -- included in the order. + * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $acceptedOffer; + protected $broker; /** - * 'merchant' is an out-dated term for 'seller'. + * A number that confirms the given order or payment has been received. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $merchant; + protected $confirmationNumber; /** - * The current status of the order. + * Party placing the order or paying the invoice. * * - * @var \OpenActive\Models\SchemaOrg\OrderStatus|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $orderStatus; + protected $customer; /** - * A number that confirms the given order or payment has been received. + * Any discount applied (to an Order). * * - * @var string + * @var string|Number|null */ - protected $confirmationNumber; + protected $discount; /** - * The order is being paid as part of the referenced Invoice. + * Code used to redeem a discount. * * - * @var \OpenActive\Models\SchemaOrg\Invoice|string + * @var string */ - protected $partOfInvoice; + protected $discountCode; /** - * The identifier of the transaction. + * The currency of the discount.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * * @var string */ - protected $orderNumber; + protected $discountCurrency; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * Indicates whether the offer was accepted as a gift for someone other than the buyer. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var bool|null */ - protected $seller; + protected $isGift; /** - * Party placing the order or paying the invoice. + * 'merchant' is an out-dated term for 'seller'. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $customer; + protected $merchant; /** - * The date that payment is due. + * Date order was placed. * * * @var Date|DateTime|null */ - protected $paymentDueDate; + protected $orderDate; /** - * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. + * The delivery of the parcel related to this order or order item. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string */ - protected $broker; + protected $orderDelivery; /** - * Code used to redeem a discount. + * The identifier of the transaction. * * * @var string */ - protected $discountCode; + protected $orderNumber; /** - * Any discount applied (to an Order). + * The current status of the order. * * - * @var string|Number|null + * @var \OpenActive\Models\SchemaOrg\OrderStatus|string */ - protected $discount; + protected $orderStatus; /** - * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). + * The item ordered. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $paymentMethodId; + protected $orderedItem; /** - * The URL for sending a payment. + * The order is being paid as part of the referenced Invoice. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Invoice|string */ - protected $paymentUrl; + protected $partOfInvoice; /** - * The currency of the discount.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The date that payment is due. * * - * @var string + * @var DateTime|null */ - protected $discountCurrency; + protected $paymentDue; /** * The date that payment is due. * * - * @var DateTime|null + * @var Date|DateTime|null */ - protected $paymentDue; + protected $paymentDueDate; /** - * Date order was placed. + * The name of the credit card or other method of payment for the order. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\PaymentMethod|string */ - protected $orderDate; + protected $paymentMethod; /** - * Was the offer accepted as a gift for someone other than the buyer. + * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). * * - * @var bool|null + * @var string */ - protected $isGift; + protected $paymentMethodId; /** - * The item ordered. + * The URL for sending a payment. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @var string */ - protected $orderedItem; + protected $paymentUrl; /** - * The name of the credit card or other method of payment for the order. + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * - * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $paymentMethod; + protected $seller; /** - * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getOrderDelivery() + public function getAcceptedOffer() { - return $this->orderDelivery; + return $this->acceptedOffer; } /** - * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery + * @param \OpenActive\Models\SchemaOrg\Offer|string $acceptedOffer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderDelivery($orderDelivery) + public function setAcceptedOffer($acceptedOffer) { $types = [ - "\OpenActive\Models\SchemaOrg\ParcelDelivery", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $orderDelivery = self::checkTypes($orderDelivery, $types); + $acceptedOffer = self::checkTypes($acceptedOffer, $types); - $this->orderDelivery = $orderDelivery; + $this->acceptedOffer = $acceptedOffer; } /** @@ -271,194 +271,194 @@ public function setBillingAddress($billingAddress) } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAcceptedOffer() + public function getBroker() { - return $this->acceptedOffer; + return $this->broker; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $acceptedOffer + * @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 setAcceptedOffer($acceptedOffer) + public function setBroker($broker) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $acceptedOffer = self::checkTypes($acceptedOffer, $types); + $broker = self::checkTypes($broker, $types); - $this->acceptedOffer = $acceptedOffer; + $this->broker = $broker; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getMerchant() + public function getConfirmationNumber() { - return $this->merchant; + return $this->confirmationNumber; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $merchant + * @param string $confirmationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMerchant($merchant) + public function setConfirmationNumber($confirmationNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $merchant = self::checkTypes($merchant, $types); + $confirmationNumber = self::checkTypes($confirmationNumber, $types); - $this->merchant = $merchant; + $this->confirmationNumber = $confirmationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\OrderStatus|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getOrderStatus() + public function getCustomer() { - return $this->orderStatus; + return $this->customer; } /** - * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderStatus + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderStatus($orderStatus) + public function setCustomer($customer) { $types = [ - "\OpenActive\Models\SchemaOrg\OrderStatus", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $orderStatus = self::checkTypes($orderStatus, $types); + $customer = self::checkTypes($customer, $types); - $this->orderStatus = $orderStatus; + $this->customer = $customer; } /** - * @return string + * @return string|Number|null */ - public function getConfirmationNumber() + public function getDiscount() { - return $this->confirmationNumber; + return $this->discount; } /** - * @param string $confirmationNumber + * @param string|Number|null $discount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setConfirmationNumber($confirmationNumber) + public function setDiscount($discount) { $types = [ "string", + "Number", + "null", ]; - $confirmationNumber = self::checkTypes($confirmationNumber, $types); + $discount = self::checkTypes($discount, $types); - $this->confirmationNumber = $confirmationNumber; + $this->discount = $discount; } /** - * @return \OpenActive\Models\SchemaOrg\Invoice|string + * @return string */ - public function getPartOfInvoice() + public function getDiscountCode() { - return $this->partOfInvoice; + return $this->discountCode; } /** - * @param \OpenActive\Models\SchemaOrg\Invoice|string $partOfInvoice + * @param string $discountCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfInvoice($partOfInvoice) + public function setDiscountCode($discountCode) { $types = [ - "\OpenActive\Models\SchemaOrg\Invoice", "string", ]; - $partOfInvoice = self::checkTypes($partOfInvoice, $types); + $discountCode = self::checkTypes($discountCode, $types); - $this->partOfInvoice = $partOfInvoice; + $this->discountCode = $discountCode; } /** * @return string */ - public function getOrderNumber() + public function getDiscountCurrency() { - return $this->orderNumber; + return $this->discountCurrency; } /** - * @param string $orderNumber + * @param string $discountCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderNumber($orderNumber) + public function setDiscountCurrency($discountCurrency) { $types = [ "string", ]; - $orderNumber = self::checkTypes($orderNumber, $types); + $discountCurrency = self::checkTypes($discountCurrency, $types); - $this->orderNumber = $orderNumber; + $this->discountCurrency = $discountCurrency; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return bool|null */ - public function getSeller() + public function getIsGift() { - return $this->seller; + return $this->isGift; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @param bool|null $isGift * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeller($seller) + public function setIsGift($isGift) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "bool", + "null", ]; - $seller = self::checkTypes($seller, $types); + $isGift = self::checkTypes($isGift, $types); - $this->seller = $seller; + $this->isGift = $isGift; } /** * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getCustomer() + public function getMerchant() { - return $this->customer; + return $this->merchant; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $merchant * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCustomer($customer) + public function setMerchant($merchant) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", @@ -466,25 +466,25 @@ public function setCustomer($customer) "string", ]; - $customer = self::checkTypes($customer, $types); + $merchant = self::checkTypes($merchant, $types); - $this->customer = $customer; + $this->merchant = $merchant; } /** * @return Date|DateTime|null */ - public function getPaymentDueDate() + public function getOrderDate() { - return $this->paymentDueDate; + return $this->orderDate; } /** - * @param Date|DateTime|null $paymentDueDate + * @param Date|DateTime|null $orderDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentDueDate($paymentDueDate) + public function setOrderDate($orderDate) { $types = [ "Date", @@ -492,285 +492,285 @@ public function setPaymentDueDate($paymentDueDate) "null", ]; - $paymentDueDate = self::checkTypes($paymentDueDate, $types); + $orderDate = self::checkTypes($orderDate, $types); - $this->paymentDueDate = $paymentDueDate; + $this->orderDate = $orderDate; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string */ - public function getBroker() + public function getOrderDelivery() { - return $this->broker; + return $this->orderDelivery; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker + * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroker($broker) + public function setOrderDelivery($orderDelivery) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ParcelDelivery", "string", ]; - $broker = self::checkTypes($broker, $types); + $orderDelivery = self::checkTypes($orderDelivery, $types); - $this->broker = $broker; + $this->orderDelivery = $orderDelivery; } /** * @return string */ - public function getDiscountCode() + public function getOrderNumber() { - return $this->discountCode; + return $this->orderNumber; } /** - * @param string $discountCode + * @param string $orderNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscountCode($discountCode) + public function setOrderNumber($orderNumber) { $types = [ "string", ]; - $discountCode = self::checkTypes($discountCode, $types); + $orderNumber = self::checkTypes($orderNumber, $types); - $this->discountCode = $discountCode; + $this->orderNumber = $orderNumber; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\OrderStatus|string */ - public function getDiscount() + public function getOrderStatus() { - return $this->discount; + return $this->orderStatus; } /** - * @param string|Number|null $discount + * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscount($discount) + public function setOrderStatus($orderStatus) { $types = [ + "\OpenActive\Models\SchemaOrg\OrderStatus", "string", - "Number", - "null", ]; - $discount = self::checkTypes($discount, $types); + $orderStatus = self::checkTypes($orderStatus, $types); - $this->discount = $discount; + $this->orderStatus = $orderStatus; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getPaymentMethodId() + public function getOrderedItem() { - return $this->paymentMethodId; + return $this->orderedItem; } /** - * @param string $paymentMethodId + * @param \OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $orderedItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentMethodId($paymentMethodId) + public function setOrderedItem($orderedItem) { $types = [ + "\OpenActive\Models\SchemaOrg\OrderItem", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $paymentMethodId = self::checkTypes($paymentMethodId, $types); + $orderedItem = self::checkTypes($orderedItem, $types); - $this->paymentMethodId = $paymentMethodId; + $this->orderedItem = $orderedItem; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Invoice|string */ - public function getPaymentUrl() + public function getPartOfInvoice() { - return $this->paymentUrl; + return $this->partOfInvoice; } /** - * @param string $paymentUrl + * @param \OpenActive\Models\SchemaOrg\Invoice|string $partOfInvoice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentUrl($paymentUrl) + public function setPartOfInvoice($partOfInvoice) { $types = [ + "\OpenActive\Models\SchemaOrg\Invoice", "string", ]; - $paymentUrl = self::checkTypes($paymentUrl, $types); + $partOfInvoice = self::checkTypes($partOfInvoice, $types); - $this->paymentUrl = $paymentUrl; + $this->partOfInvoice = $partOfInvoice; } /** - * @return string + * @return DateTime|null */ - public function getDiscountCurrency() + public function getPaymentDue() { - return $this->discountCurrency; + return $this->paymentDue; } /** - * @param string $discountCurrency + * @param DateTime|null $paymentDue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscountCurrency($discountCurrency) + public function setPaymentDue($paymentDue) { $types = [ - "string", + "DateTime", + "null", ]; - $discountCurrency = self::checkTypes($discountCurrency, $types); + $paymentDue = self::checkTypes($paymentDue, $types); - $this->discountCurrency = $discountCurrency; + $this->paymentDue = $paymentDue; } /** - * @return DateTime|null + * @return Date|DateTime|null */ - public function getPaymentDue() + public function getPaymentDueDate() { - return $this->paymentDue; + return $this->paymentDueDate; } /** - * @param DateTime|null $paymentDue + * @param Date|DateTime|null $paymentDueDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentDue($paymentDue) + public function setPaymentDueDate($paymentDueDate) { $types = [ + "Date", "DateTime", "null", ]; - $paymentDue = self::checkTypes($paymentDue, $types); + $paymentDueDate = self::checkTypes($paymentDueDate, $types); - $this->paymentDue = $paymentDue; + $this->paymentDueDate = $paymentDueDate; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\PaymentMethod|string */ - public function getOrderDate() + public function getPaymentMethod() { - return $this->orderDate; + return $this->paymentMethod; } /** - * @param Date|DateTime|null $orderDate + * @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 setOrderDate($orderDate) + public function setPaymentMethod($paymentMethod) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\PaymentMethod", + "string", ]; - $orderDate = self::checkTypes($orderDate, $types); + $paymentMethod = self::checkTypes($paymentMethod, $types); - $this->orderDate = $orderDate; + $this->paymentMethod = $paymentMethod; } /** - * @return bool|null + * @return string */ - public function getIsGift() + public function getPaymentMethodId() { - return $this->isGift; + return $this->paymentMethodId; } /** - * @param bool|null $isGift + * @param string $paymentMethodId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsGift($isGift) + public function setPaymentMethodId($paymentMethodId) { $types = [ - "bool", - "null", + "string", ]; - $isGift = self::checkTypes($isGift, $types); + $paymentMethodId = self::checkTypes($paymentMethodId, $types); - $this->isGift = $isGift; + $this->paymentMethodId = $paymentMethodId; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @return string */ - public function getOrderedItem() + public function getPaymentUrl() { - return $this->orderedItem; + return $this->paymentUrl; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string $orderedItem + * @param string $paymentUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderedItem($orderedItem) + public function setPaymentUrl($paymentUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\OrderItem", - "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $orderedItem = self::checkTypes($orderedItem, $types); + $paymentUrl = self::checkTypes($paymentUrl, $types); - $this->orderedItem = $orderedItem; + $this->paymentUrl = $paymentUrl; } /** - * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPaymentMethod() + public function getSeller() { - return $this->paymentMethod; + return $this->seller; } /** - * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod + * @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 setPaymentMethod($paymentMethod) + public function setSeller($seller) { $types = [ - "\OpenActive\Enums\SchemaOrg\PaymentMethod", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $paymentMethod = self::checkTypes($paymentMethod, $types); + $seller = self::checkTypes($seller, $types); - $this->paymentMethod = $paymentMethod; + $this->seller = $seller; } } diff --git a/src/Models/SchemaOrg/OrderItem.php b/src/Models/SchemaOrg/OrderItem.php index 3de3127a..56cb2015 100644 --- a/src/Models/SchemaOrg/OrderItem.php +++ b/src/Models/SchemaOrg/OrderItem.php @@ -5,7 +5,7 @@ /** * */ -class OrderItem extends \OpenActive\Models\SchemaOrg\Intangible +class OrderItem extends \OpenActive\Models\SchemaOrg\StructuredValue { /** * @return string[]|null @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "orderDelivery" => "orderDelivery", + "orderItemNumber" => "orderItemNumber", "orderItemStatus" => "orderItemStatus", "orderQuantity" => "orderQuantity", - "orderItemNumber" => "orderItemNumber", "orderedItem" => "orderedItem", ]; @@ -36,34 +36,34 @@ public static function fieldList() { protected $orderDelivery; /** - * The current status of the order item. + * The identifier of the order item. * * - * @var \OpenActive\Models\SchemaOrg\OrderStatus|string + * @var string */ - protected $orderItemStatus; + protected $orderItemNumber; /** - * The number of the item ordered. If the property is not set, assume the quantity is one. + * The current status of the order item. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\OrderStatus|string */ - protected $orderQuantity; + protected $orderItemStatus; /** - * The identifier of the order item. + * The number of the item ordered. If the property is not set, assume the quantity is one. * * - * @var string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $orderItemNumber; + protected $orderQuantity; /** * The item ordered. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ protected $orderedItem; @@ -93,81 +93,83 @@ public function setOrderDelivery($orderDelivery) } /** - * @return \OpenActive\Models\SchemaOrg\OrderStatus|string + * @return string */ - public function getOrderItemStatus() + public function getOrderItemNumber() { - return $this->orderItemStatus; + return $this->orderItemNumber; } /** - * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderItemStatus + * @param string $orderItemNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderItemStatus($orderItemStatus) + public function setOrderItemNumber($orderItemNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\OrderStatus", "string", ]; - $orderItemStatus = self::checkTypes($orderItemStatus, $types); + $orderItemNumber = self::checkTypes($orderItemNumber, $types); - $this->orderItemStatus = $orderItemStatus; + $this->orderItemNumber = $orderItemNumber; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\OrderStatus|string */ - public function getOrderQuantity() + public function getOrderItemStatus() { - return $this->orderQuantity; + return $this->orderItemStatus; } /** - * @param Number|null $orderQuantity + * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderItemStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderQuantity($orderQuantity) + public function setOrderItemStatus($orderItemStatus) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\OrderStatus", + "string", ]; - $orderQuantity = self::checkTypes($orderQuantity, $types); + $orderItemStatus = self::checkTypes($orderItemStatus, $types); - $this->orderQuantity = $orderQuantity; + $this->orderItemStatus = $orderItemStatus; } /** - * @return string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getOrderItemNumber() + public function getOrderQuantity() { - return $this->orderItemNumber; + return $this->orderQuantity; } /** - * @param string $orderItemNumber + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $orderQuantity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderItemNumber($orderItemNumber) + public function setOrderQuantity($orderQuantity) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $orderItemNumber = self::checkTypes($orderItemNumber, $types); + $orderQuantity = self::checkTypes($orderQuantity, $types); - $this->orderItemNumber = $orderItemNumber; + $this->orderQuantity = $orderQuantity; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ public function getOrderedItem() { @@ -175,16 +177,16 @@ public function getOrderedItem() } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string $orderedItem + * @param \OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $orderedItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setOrderedItem($orderedItem) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", "\OpenActive\Models\SchemaOrg\OrderItem", "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; diff --git a/src/Models/SchemaOrg/Organization.php b/src/Models/SchemaOrg/Organization.php index 9e50ab4f..d413786b 100644 --- a/src/Models/SchemaOrg/Organization.php +++ b/src/Models/SchemaOrg/Organization.php @@ -17,415 +17,440 @@ public static function getType() public static function fieldList() { $fields = [ - "ownershipFundingInfo" => "ownershipFundingInfo", - "hasCredential" => "hasCredential", - "founders" => "founders", - "telephone" => "telephone", - "review" => "review", - "knowsAbout" => "knowsAbout", + "acceptedPaymentMethod" => "acceptedPaymentMethod", + "actionableFeedbackPolicy" => "actionableFeedbackPolicy", + "address" => "address", + "agentInteractionStatistic" => "agentInteractionStatistic", + "aggregateRating" => "aggregateRating", + "alumni" => "alumni", + "areaServed" => "areaServed", + "authorizedRepresentative" => "authorizedRepresentative", "award" => "award", - "member" => "member", - "employee" => "employee", - "dissolutionDate" => "dissolutionDate", - "funding" => "funding", - "vatID" => "vatID", - "globalLocationNumber" => "globalLocationNumber", - "keywords" => "keywords", - "contactPoints" => "contactPoints", - "subOrganization" => "subOrganization", "awards" => "awards", - "numberOfEmployees" => "numberOfEmployees", - "funder" => "funder", - "makesOffer" => "makesOffer", - "legalName" => "legalName", + "brand" => "brand", + "companyRegistration" => "companyRegistration", + "contactPoint" => "contactPoint", + "contactPoints" => "contactPoints", "correctionsPolicy" => "correctionsPolicy", - "aggregateRating" => "aggregateRating", - "interactionStatistic" => "interactionStatistic", - "location" => "location", - "address" => "address", - "memberOf" => "memberOf", - "publishingPrinciples" => "publishingPrinciples", - "diversityStaffingReport" => "diversityStaffingReport", + "department" => "department", + "dissolutionDate" => "dissolutionDate", "diversityPolicy" => "diversityPolicy", + "diversityStaffingReport" => "diversityStaffingReport", + "duns" => "duns", "email" => "email", + "employee" => "employee", "employees" => "employees", - "nonprofitStatus" => "nonprofitStatus", - "slogan" => "slogan", "ethicsPolicy" => "ethicsPolicy", - "brand" => "brand", - "sponsor" => "sponsor", - "logo" => "logo", - "actionableFeedbackPolicy" => "actionableFeedbackPolicy", - "naics" => "naics", - "contactPoint" => "contactPoint", - "serviceArea" => "serviceArea", - "isicV4" => "isicV4", - "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", - "hasPOS" => "hasPOS", + "event" => "event", + "events" => "events", + "faxNumber" => "faxNumber", "founder" => "founder", - "unnamedSourcesPolicy" => "unnamedSourcesPolicy", - "foundingLocation" => "foundingLocation", - "duns" => "duns", - "parentOrganization" => "parentOrganization", - "alumni" => "alumni", - "leiCode" => "leiCode", - "areaServed" => "areaServed", + "founders" => "founders", "foundingDate" => "foundingDate", + "foundingLocation" => "foundingLocation", + "funder" => "funder", + "funding" => "funding", + "globalLocationNumber" => "globalLocationNumber", + "hasCertification" => "hasCertification", + "hasCredential" => "hasCredential", + "hasGS1DigitalLink" => "hasGS1DigitalLink", + "hasMemberProgram" => "hasMemberProgram", + "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", + "hasOfferCatalog" => "hasOfferCatalog", + "hasPOS" => "hasPOS", + "hasProductReturnPolicy" => "hasProductReturnPolicy", + "hasShippingService" => "hasShippingService", + "interactionStatistic" => "interactionStatistic", + "isicV4" => "isicV4", + "iso6523Code" => "iso6523Code", + "keywords" => "keywords", + "knowsAbout" => "knowsAbout", "knowsLanguage" => "knowsLanguage", + "legalAddress" => "legalAddress", + "legalName" => "legalName", + "legalRepresentative" => "legalRepresentative", + "leiCode" => "leiCode", + "location" => "location", + "logo" => "logo", + "makesOffer" => "makesOffer", + "member" => "member", + "memberOf" => "memberOf", + "members" => "members", + "naics" => "naics", + "nonprofitStatus" => "nonprofitStatus", + "numberOfEmployees" => "numberOfEmployees", + "ownershipFundingInfo" => "ownershipFundingInfo", + "owns" => "owns", + "parentOrganization" => "parentOrganization", + "publishingPrinciples" => "publishingPrinciples", + "review" => "review", "reviews" => "reviews", "seeks" => "seeks", + "serviceArea" => "serviceArea", + "skills" => "skills", + "slogan" => "slogan", + "sponsor" => "sponsor", + "subOrganization" => "subOrganization", "taxID" => "taxID", - "owns" => "owns", - "hasOfferCatalog" => "hasOfferCatalog", - "members" => "members", - "events" => "events", - "iso6523Code" => "iso6523Code", - "department" => "department", - "faxNumber" => "faxNumber", - "event" => "event", + "telephone" => "telephone", + "unnamedSourcesPolicy" => "unnamedSourcesPolicy", + "vatID" => "vatID", ]; return array_merge(parent::fieldList(), $fields); } /** - * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable. + * The payment method(s) that are accepted in general by an organization, or for some specific demand or offer. * * - * @var string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\PaymentMethod|string */ - protected $ownershipFundingInfo; + protected $acceptedPaymentMethod; /** - * A credential awarded to the Person or Organization. + * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication. * * - * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $hasCredential; + protected $actionableFeedbackPolicy; /** - * A person who founded this organization. + * Physical address of the item. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $founders; + protected $address; /** - * The telephone number. + * The number of completed interactions for this entity, in a particular role (the 'agent'), in a particular action (indicated in the statistic), and in a particular context (i.e. interactionService). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - protected $telephone; + protected $agentInteractionStatistic; /** - * 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; /** - * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. + * Alumni of an organization. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $knowsAbout; + protected $alumni; /** - * An award won by or for this item. + * 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 $award; + protected $areaServed; /** - * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. + * An organization or person officially appointed to act on behalf of the manufacturer in a specific region or context. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $member; + protected $authorizedRepresentative; /** - * Someone working for this organization. + * An award won by or for this item. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $employee; + protected $award; /** - * The date that this organization was dissolved. + * Awards won by or for this item. * * - * @var Date|null + * @var string */ - protected $dissolutionDate; + protected $awards; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\Grant|string + * @var \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $funding; + protected $brand; /** - * The Value-added Tax ID of the organization or person. + * The official registration information of a business including the organization that issued it such as Company House or Chamber of Commerce in form of a Certification. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $vatID; + protected $companyRegistration; /** - * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. + * A contact point for a person or organization. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $globalLocationNumber; + protected $contactPoint; /** - * 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. + * A contact point for a person or organization. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $keywords; + protected $contactPoints; /** - * A contact point for a person or organization. + * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $contactPoints; + protected $correctionsPolicy; /** - * A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific 'department' property. + * A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe. * * * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $subOrganization; + protected $department; /** - * Awards won by or for this item. + * The date that this organization was dissolved. * * - * @var string + * @var Date|null */ - protected $awards; + protected $dissolutionDate; /** - * The number of employees in an organization e.g. business. + * 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\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $numberOfEmployees; + protected $diversityPolicy; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Article|string */ - protected $funder; + protected $diversityStaffingReport; /** - * A pointer to products or services offered by the organization or person. + * The Dun & Bradstreet DUNS number for identifying an organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var string */ - protected $makesOffer; + protected $duns; /** - * The official name of the organization, e.g. the registered company name. + * Email address. * * * @var string */ - protected $legalName; + protected $email; /** - * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors. + * Someone working for this organization. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $correctionsPolicy; + protected $employee; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * People working for this organization. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $aggregateRating; + protected $employees; /** - * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * 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\InteractionCounter|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $interactionStatistic; + protected $ethicsPolicy; /** - * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. + * Upcoming or past event associated with this place, organization, or action. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $location; + protected $event; /** - * Physical address of the item. + * Upcoming or past events associated with this place or organization. * * - * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $address; + protected $events; /** - * An Organization (or ProgramMembership) to which this Person or Organization belongs. + * The fax number. * * - * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $memberOf; + protected $faxNumber; /** - * 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. - * + * A person or organization who founded this organization. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $publishingPrinciples; + protected $founder; /** - * 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. + * A person who founded this organization. * * - * @var string|\OpenActive\Models\SchemaOrg\Article + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $diversityStaffingReport; + protected $founders; /** - * 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. + * The date that this organization was founded. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var Date|null */ - protected $diversityPolicy; + protected $foundingDate; /** - * Email address. + * The place where the Organization was founded. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $email; + protected $foundingLocation; /** - * People working for this organization. + * 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 $employees; + protected $funder; /** - * nonprofit Status indicates the legal status of a non-profit organization in its primary place of business. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Enums\SchemaOrg\NonprofitType|null + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $nonprofitStatus; + protected $funding; /** - * A slogan or motto associated with the item. + * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. * * * @var string */ - protected $slogan; + protected $globalLocationNumber; /** - * 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. + * Certification information about a product, organization, service, place, or person. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $ethicsPolicy; + protected $hasCertification; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * A credential awarded to the Person or Organization. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\Credential|string */ - protected $brand; + protected $hasCredential; /** - * 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 GS1 digital link associated with the object. This URL should conform to the particular requirements of digital links. The link should only contain the Application Identifiers (AIs) that are relevant for the entity being annotated, for instance a [[Product]] or an [[Organization]], and for the correct granularity. In particular, for products: Other item types should be adapted similarly. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $sponsor; + protected $hasGS1DigitalLink; /** - * An associated logo. + * MemberProgram offered by an Organization, for example an eCommerce merchant or an airline. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var \OpenActive\Models\SchemaOrg\MemberProgram|string */ - protected $logo; + protected $hasMemberProgram; /** - * 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. + * Specifies a MerchantReturnPolicy that may be applicable. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - protected $actionableFeedbackPolicy; + protected $hasMerchantReturnPolicy; /** - * The North American Industry Classification System (NAICS) code for a particular organization or business person. + * Indicates an OfferCatalog listing for this Organization, Person, or Service. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - protected $naics; + protected $hasOfferCatalog; /** - * A contact point for a person or organization. + * Points-of-Sales operated by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $contactPoint; + protected $hasPOS; /** - * The geographic area where the service is provided. + * Indicates a ProductReturnPolicy that may be applicable. * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\ProductReturnPolicy|string */ - protected $serviceArea; + protected $hasProductReturnPolicy; + + /** + * Specification of a shipping service offered by the organization. + * + * + * @var \OpenActive\Models\SchemaOrg\ShippingService|string + */ + protected $hasShippingService; + + /** + * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * + * + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string + */ + protected $interactionStatistic; /** * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. @@ -436,100 +461,183 @@ public static function fieldList() { protected $isicV4; /** - * Specifies a MerchantReturnPolicy that may be applicable. + * An organization identifier as defined in [ISO 6523(-1)](https://en.wikipedia.org/wiki/ISO/IEC_6523). The identifier should be in the `XXXX:YYYYYY:ZZZ` or `XXXX:YYYYYY`format. Where `XXXX` is a 4 digit _ICD_ (International Code Designator), `YYYYYY` is an _OID_ (Organization Identifier) with all formatting characters (dots, dashes, spaces) removed with a maximal length of 35 characters, and `ZZZ` is an optional OPI (Organization Part Identifier) with a maximum length of 35 characters. The various components (ICD, OID, OPI) are joined with a colon character (ASCII `0x3a`). Note that many existing organization identifiers defined as attributes like [leiCode](https://schema.org/leiCode) (`0199`), [duns](https://schema.org/duns) (`0060`) or [GLN](https://schema.org/globalLocationNumber) (`0088`) can be expressed using ISO-6523. If possible, ISO-6523 codes should be preferred to populating [vatID](https://schema.org/vatID) or [taxID](https://schema.org/taxID), as ISO identifiers are less ambiguous. * * - * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @var string */ - protected $hasMerchantReturnPolicy; + protected $iso6523Code; /** - * Points-of-Sales operated by the organization or person. + * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $hasPOS; + protected $keywords; /** - * A person who founded this organization. + * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $founder; + protected $knowsAbout; /** - * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required. + * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Language|string */ - protected $unnamedSourcesPolicy; + protected $knowsLanguage; /** - * The place where the Organization was founded. + * The legal address of an organization which acts as the officially registered address used for legal and tax purposes. The legal address can be different from the place of operations of a business and other addresses can be part of an organization. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $foundingLocation; + protected $legalAddress; /** - * The Dun & Bradstreet DUNS number for identifying an organization or business person. + * The official name of the organization, e.g. the registered company name. * * * @var string */ - protected $duns; + protected $legalName; /** - * The larger organization that this organization is a [[subOrganization]] of, if any. + * One or multiple persons who represent this organization legally such as CEO or sole administrator. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $parentOrganization; + protected $legalRepresentative; /** - * Alumni of an organization. + * An organization identifier that uniquely identifies a legal entity as defined in ISO 17442. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $alumni; + protected $leiCode; /** - * An organization identifier that uniquely identifies a legal entity as defined in ISO 17442. + * 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\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation + */ + protected $location; + + /** + * An associated logo. + * + * + * @var \OpenActive\Models\SchemaOrg\ImageObject|string + */ + protected $logo; + + /** + * A pointer to products or services offered by the organization or person. + * + * + * @var \OpenActive\Models\SchemaOrg\Offer|string + */ + protected $makesOffer; + + /** + * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $member; + + /** + * An Organization (or ProgramMembership) to which this Person or Organization belongs. + * + * + * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string + */ + protected $memberOf; + + /** + * A member of this organization. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $members; + + /** + * The North American Industry Classification System (NAICS) code for a particular organization or business person. * * * @var string */ - protected $leiCode; + protected $naics; /** - * The geographic area where a service or offered item is provided. + * nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Enums\SchemaOrg\NonprofitType|null */ - protected $areaServed; + protected $nonprofitStatus; /** - * The date that this organization was founded. + * The number of employees in an organization, e.g. business. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $foundingDate; + protected $numberOfEmployees; /** - * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). + * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable. * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $knowsLanguage; + protected $ownershipFundingInfo; + + /** + * Things owned by the organization or person. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|string + */ + protected $owns; + + /** + * The larger organization that this organization is a [[subOrganization]] of, if any. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|string + */ + protected $parentOrganization; + + /** + * 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 $publishingPrinciples; + + /** + * A review of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Review|string + */ + protected $review; /** * Review of the item. @@ -548,225 +656,279 @@ public static function fieldList() { protected $seeks; /** - * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. + * The geographic area where the service is provided. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - protected $taxID; + protected $serviceArea; /** - * Products owned by the organization or person. + * 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\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $owns; + protected $skills; /** - * Indicates an OfferCatalog listing for this Organization, Person, or Service. + * A slogan or motto associated with the item. * * - * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @var string */ - protected $hasOfferCatalog; + protected $slogan; /** - * A member of this organization. + * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $members; + protected $sponsor; /** - * Upcoming or past events associated with this place or organization. + * A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific 'department' property. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $events; + protected $subOrganization; /** - * An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. + * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. * * * @var string */ - protected $iso6523Code; + protected $taxID; /** - * A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe. + * The telephone number. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $department; + protected $telephone; /** - * The fax number. + * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $faxNumber; + protected $unnamedSourcesPolicy; /** - * Upcoming or past event associated with this place, organization, or action. + * The value-added Tax ID of the organization or person with national prefix (for example IT123456789). Can also be described as [[iso6523Code]] with proper prefix. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var string */ - protected $event; + protected $vatID; /** - * @return string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Models\SchemaOrg\PaymentMethod|string */ - public function getOwnershipFundingInfo() + public function getAcceptedPaymentMethod() { - return $this->ownershipFundingInfo; + return $this->acceptedPaymentMethod; } /** - * @param string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork $ownershipFundingInfo + * @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 setOwnershipFundingInfo($ownershipFundingInfo) + public function setAcceptedPaymentMethod($acceptedPaymentMethod) { $types = [ + "\OpenActive\Models\SchemaOrg\LoanOrCredit", + "\OpenActive\Models\SchemaOrg\PaymentMethod", "string", - "\OpenActive\Models\SchemaOrg\AboutPage", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types); + $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); - $this->ownershipFundingInfo = $ownershipFundingInfo; + $this->acceptedPaymentMethod = $acceptedPaymentMethod; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getHasCredential() + public function getActionableFeedbackPolicy() { - return $this->hasCredential; + return $this->actionableFeedbackPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential + * @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 setHasCredential($hasCredential) + public function setActionableFeedbackPolicy($actionableFeedbackPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $hasCredential = self::checkTypes($hasCredential, $types); + $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types); - $this->hasCredential = $hasCredential; + $this->actionableFeedbackPolicy = $actionableFeedbackPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getFounders() + public function getAddress() { - return $this->founders; + return $this->address; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $founders + * @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 setFounders($founders) + public function setAddress($address) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $founders = self::checkTypes($founders, $types); + $address = self::checkTypes($address, $types); - $this->founders = $founders; + $this->address = $address; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getTelephone() + public function getAgentInteractionStatistic() { - return $this->telephone; + return $this->agentInteractionStatistic; } /** - * @param string $telephone + * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $agentInteractionStatistic * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTelephone($telephone) + public function setAgentInteractionStatistic($agentInteractionStatistic) { $types = [ + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $telephone = self::checkTypes($telephone, $types); + $agentInteractionStatistic = self::checkTypes($agentInteractionStatistic, $types); - $this->telephone = $telephone; + $this->agentInteractionStatistic = $agentInteractionStatistic; } /** - * @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|\OpenActive\Models\SchemaOrg\Thing + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getKnowsAbout() + public function getAlumni() { - return $this->knowsAbout; + return $this->alumni; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout + * @param \OpenActive\Models\SchemaOrg\Person|string $alumni * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnowsAbout($knowsAbout) + public function setAlumni($alumni) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $knowsAbout = self::checkTypes($knowsAbout, $types); + $alumni = self::checkTypes($alumni, $types); - $this->knowsAbout = $knowsAbout; + $this->alumni = $alumni; + } + + /** + * @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|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getAuthorizedRepresentative() + { + return $this->authorizedRepresentative; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $authorizedRepresentative + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAuthorizedRepresentative($authorizedRepresentative) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $authorizedRepresentative = self::checkTypes($authorizedRepresentative, $types); + + $this->authorizedRepresentative = $authorizedRepresentative; } /** @@ -794,29 +956,301 @@ public function setAward($award) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getMember() + public function getAwards() { - return $this->member; + return $this->awards; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMember($member) + public function setAwards($awards) + { + $types = [ + "string", + ]; + + $awards = self::checkTypes($awards, $types); + + $this->awards = $awards; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string + */ + public function getBrand() + { + return $this->brand; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string $brand + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setBrand($brand) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; + + $brand = self::checkTypes($brand, $types); + + $this->brand = $brand; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Certification|string + */ + public function getCompanyRegistration() + { + return $this->companyRegistration; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Certification|string $companyRegistration + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCompanyRegistration($companyRegistration) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Certification", + "string", + ]; + + $companyRegistration = self::checkTypes($companyRegistration, $types); + + $this->companyRegistration = $companyRegistration; + } + + /** + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + */ + public function getContactPoint() + { + return $this->contactPoint; + } + + /** + * @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 setContactPoint($contactPoint) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", + "string", + ]; + + $contactPoint = self::checkTypes($contactPoint, $types); + + $this->contactPoint = $contactPoint; + } + + /** + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + */ + public function getContactPoints() + { + return $this->contactPoints; + } + + /** + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setContactPoints($contactPoints) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", + "string", + ]; + + $contactPoints = self::checkTypes($contactPoints, $types); + + $this->contactPoints = $contactPoints; + } + + /** + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + */ + public function getCorrectionsPolicy() + { + return $this->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 = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", + ]; + + $correctionsPolicy = self::checkTypes($correctionsPolicy, $types); + + $this->correctionsPolicy = $correctionsPolicy; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|string + */ + public function getDepartment() + { + return $this->department; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|string $department + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDepartment($department) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; + + $department = self::checkTypes($department, $types); + + $this->department = $department; + } + + /** + * @return Date|null + */ + public function getDissolutionDate() + { + return $this->dissolutionDate; + } + + /** + * @param Date|null $dissolutionDate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDissolutionDate($dissolutionDate) + { + $types = [ + "Date", + "null", + ]; + + $dissolutionDate = self::checkTypes($dissolutionDate, $types); + + $this->dissolutionDate = $dissolutionDate; + } + + /** + * @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() + { + return $this->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 = [ + "\OpenActive\Models\SchemaOrg\Article", + "string", + ]; + + $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types); + + $this->diversityStaffingReport = $diversityStaffingReport; + } + + /** + * @return string + */ + public function getDuns() + { + return $this->duns; + } + + /** + * @param string $duns + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDuns($duns) + { + $types = [ + "string", + ]; + + $duns = self::checkTypes($duns, $types); + + $this->duns = $duns; + } + + /** + * @return string + */ + public function getEmail() + { + return $this->email; + } + + /** + * @param string $email + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setEmail($email) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $member = self::checkTypes($member, $types); + $email = self::checkTypes($email, $types); - $this->member = $member; + $this->email = $email; } /** @@ -845,225 +1279,228 @@ public function setEmployee($employee) } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDissolutionDate() + public function getEmployees() { - return $this->dissolutionDate; + return $this->employees; } /** - * @param Date|null $dissolutionDate + * @param \OpenActive\Models\SchemaOrg\Person|string $employees * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDissolutionDate($dissolutionDate) + public function setEmployees($employees) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $dissolutionDate = self::checkTypes($dissolutionDate, $types); + $employees = self::checkTypes($employees, $types); - $this->dissolutionDate = $dissolutionDate; + $this->employees = $employees; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getFunding() + public function getEthicsPolicy() { - return $this->funding; + return $this->ethicsPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @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 setFunding($funding) + public function setEthicsPolicy($ethicsPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $funding = self::checkTypes($funding, $types); + $ethicsPolicy = self::checkTypes($ethicsPolicy, $types); - $this->funding = $funding; + $this->ethicsPolicy = $ethicsPolicy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getVatID() + public function getEvent() { - return $this->vatID; + return $this->event; } /** - * @param string $vatID + * @param \OpenActive\Models\SchemaOrg\Event|string $event * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVatID($vatID) + public function setEvent($event) { $types = [ + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $vatID = self::checkTypes($vatID, $types); + $event = self::checkTypes($event, $types); - $this->vatID = $vatID; + $this->event = $event; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getGlobalLocationNumber() + public function getEvents() { - return $this->globalLocationNumber; + return $this->events; } /** - * @param string $globalLocationNumber + * @param \OpenActive\Models\SchemaOrg\Event|string $events * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGlobalLocationNumber($globalLocationNumber) + public function setEvents($events) { $types = [ + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); + $events = self::checkTypes($events, $types); - $this->globalLocationNumber = $globalLocationNumber; + $this->events = $events; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string */ - public function getKeywords() + public function getFaxNumber() { - return $this->keywords; + return $this->faxNumber; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setFaxNumber($faxNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->keywords = $keywords; + $this->faxNumber = $faxNumber; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getContactPoints() + public function getFounder() { - return $this->contactPoints; + return $this->founder; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $founder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoints($contactPoints) + public function setFounder($founder) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $contactPoints = self::checkTypes($contactPoints, $types); + $founder = self::checkTypes($founder, $types); - $this->contactPoints = $contactPoints; + $this->founder = $founder; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSubOrganization() + public function getFounders() { - return $this->subOrganization; + return $this->founders; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $subOrganization + * @param \OpenActive\Models\SchemaOrg\Person|string $founders * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubOrganization($subOrganization) + public function setFounders($founders) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $subOrganization = self::checkTypes($subOrganization, $types); + $founders = self::checkTypes($founders, $types); - $this->subOrganization = $subOrganization; + $this->founders = $founders; } /** - * @return string + * @return Date|null */ - public function getAwards() + public function getFoundingDate() { - return $this->awards; + return $this->foundingDate; } /** - * @param string $awards + * @param Date|null $foundingDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setFoundingDate($foundingDate) { $types = [ - "string", + "Date", + "null", ]; - $awards = self::checkTypes($awards, $types); + $foundingDate = self::checkTypes($foundingDate, $types); - $this->awards = $awards; + $this->foundingDate = $foundingDate; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getNumberOfEmployees() + public function getFoundingLocation() { - return $this->numberOfEmployees; + return $this->foundingLocation; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees + * @param \OpenActive\Models\SchemaOrg\Place|string $foundingLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfEmployees($numberOfEmployees) + public function setFoundingLocation($foundingLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); + $foundingLocation = self::checkTypes($foundingLocation, $types); - $this->numberOfEmployees = $numberOfEmployees; + $this->foundingLocation = $foundingLocation; } /** @@ -1093,905 +1530,878 @@ public function setFunder($funder) } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - public function getMakesOffer() + public function getFunding() { - return $this->makesOffer; + return $this->funding; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer + * @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 setMakesOffer($makesOffer) + public function setFunding($funding) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $makesOffer = self::checkTypes($makesOffer, $types); + $funding = self::checkTypes($funding, $types); - $this->makesOffer = $makesOffer; + $this->funding = $funding; } /** * @return string */ - public function getLegalName() - { - return $this->legalName; - } - - /** - * @param string $legalName - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setLegalName($legalName) - { - $types = [ - "string", - ]; - - $legalName = self::checkTypes($legalName, $types); - - $this->legalName = $legalName; - } - - /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork - */ - public function getCorrectionsPolicy() + public function getGlobalLocationNumber() { - return $this->correctionsPolicy; + return $this->globalLocationNumber; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy + * @param string $globalLocationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCorrectionsPolicy($correctionsPolicy) + public function setGlobalLocationNumber($globalLocationNumber) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $correctionsPolicy = self::checkTypes($correctionsPolicy, $types); + $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); - $this->correctionsPolicy = $correctionsPolicy; + $this->globalLocationNumber = $globalLocationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getAggregateRating() + public function getHasCertification() { - return $this->aggregateRating; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->aggregateRating = $aggregateRating; + $this->hasCertification = $hasCertification; } /** - * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @return \OpenActive\Models\SchemaOrg\Credential|string */ - public function getInteractionStatistic() + public function getHasCredential() { - return $this->interactionStatistic; + return $this->hasCredential; } /** - * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic + * @param \OpenActive\Models\SchemaOrg\Credential|string $hasCredential * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionStatistic($interactionStatistic) + public function setHasCredential($hasCredential) { $types = [ - "\OpenActive\Models\SchemaOrg\InteractionCounter", + "\OpenActive\Models\SchemaOrg\Credential", "string", ]; - $interactionStatistic = self::checkTypes($interactionStatistic, $types); + $hasCredential = self::checkTypes($hasCredential, $types); - $this->interactionStatistic = $interactionStatistic; + $this->hasCredential = $hasCredential; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @return string */ - public function getLocation() + public function getHasGS1DigitalLink() { - return $this->location; + return $this->hasGS1DigitalLink; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLocation($location) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", "string", - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $location = self::checkTypes($location, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->location = $location; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return \OpenActive\Models\SchemaOrg\MemberProgram|string */ - public function getAddress() + public function getHasMemberProgram() { - return $this->address; + return $this->hasMemberProgram; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @param \OpenActive\Models\SchemaOrg\MemberProgram|string $hasMemberProgram * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddress($address) + public function setHasMemberProgram($hasMemberProgram) { $types = [ + "\OpenActive\Models\SchemaOrg\MemberProgram", "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $address = self::checkTypes($address, $types); + $hasMemberProgram = self::checkTypes($hasMemberProgram, $types); - $this->address = $address; + $this->hasMemberProgram = $hasMemberProgram; } /** - * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - public function getMemberOf() + public function getHasMerchantReturnPolicy() { - return $this->memberOf; + return $this->hasMerchantReturnPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf + * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMemberOf($memberOf) + public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\ProgramMembership", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", ]; - $memberOf = self::checkTypes($memberOf, $types); + $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); - $this->memberOf = $memberOf; + $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - public function getPublishingPrinciples() + public function getHasOfferCatalog() { - return $this->publishingPrinciples; + return $this->hasOfferCatalog; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples + * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublishingPrinciples($publishingPrinciples) + public function setHasOfferCatalog($hasOfferCatalog) { $types = [ + "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); + $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); - $this->publishingPrinciples = $publishingPrinciples; + $this->hasOfferCatalog = $hasOfferCatalog; } /** - * @return string|\OpenActive\Models\SchemaOrg\Article + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getDiversityStaffingReport() + public function getHasPOS() { - return $this->diversityStaffingReport; + return $this->hasPOS; } /** - * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport + * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiversityStaffingReport($diversityStaffingReport) + public function setHasPOS($hasPOS) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", - "\OpenActive\Models\SchemaOrg\Article", ]; - $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types); + $hasPOS = self::checkTypes($hasPOS, $types); - $this->diversityStaffingReport = $diversityStaffingReport; + $this->hasPOS = $hasPOS; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\ProductReturnPolicy|string */ - public function getDiversityPolicy() + public function getHasProductReturnPolicy() { - return $this->diversityPolicy; + return $this->hasProductReturnPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy + * @param \OpenActive\Models\SchemaOrg\ProductReturnPolicy|string $hasProductReturnPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiversityPolicy($diversityPolicy) + public function setHasProductReturnPolicy($hasProductReturnPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\ProductReturnPolicy", "string", ]; - $diversityPolicy = self::checkTypes($diversityPolicy, $types); + $hasProductReturnPolicy = self::checkTypes($hasProductReturnPolicy, $types); - $this->diversityPolicy = $diversityPolicy; + $this->hasProductReturnPolicy = $hasProductReturnPolicy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ShippingService|string */ - public function getEmail() + public function getHasShippingService() { - return $this->email; + return $this->hasShippingService; } /** - * @param string $email + * @param \OpenActive\Models\SchemaOrg\ShippingService|string $hasShippingService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmail($email) + public function setHasShippingService($hasShippingService) { $types = [ + "\OpenActive\Models\SchemaOrg\ShippingService", "string", ]; - $email = self::checkTypes($email, $types); + $hasShippingService = self::checkTypes($hasShippingService, $types); - $this->email = $email; + $this->hasShippingService = $hasShippingService; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getEmployees() + public function getInteractionStatistic() { - return $this->employees; + return $this->interactionStatistic; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $employees + * @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 setEmployees($employees) + public function setInteractionStatistic($interactionStatistic) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $employees = self::checkTypes($employees, $types); + $interactionStatistic = self::checkTypes($interactionStatistic, $types); - $this->employees = $employees; + $this->interactionStatistic = $interactionStatistic; } /** - * @return \OpenActive\Enums\SchemaOrg\NonprofitType|null + * @return string */ - public function getNonprofitStatus() + public function getIsicV4() { - return $this->nonprofitStatus; + return $this->isicV4; } /** - * @param \OpenActive\Enums\SchemaOrg\NonprofitType|null $nonprofitStatus + * @param string $isicV4 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNonprofitStatus($nonprofitStatus) + public function setIsicV4($isicV4) { $types = [ - "\OpenActive\Enums\SchemaOrg\NonprofitType", - "null", + "string", ]; - $nonprofitStatus = self::checkTypes($nonprofitStatus, $types); + $isicV4 = self::checkTypes($isicV4, $types); - $this->nonprofitStatus = $nonprofitStatus; + $this->isicV4 = $isicV4; } /** * @return string */ - public function getSlogan() + public function getIso6523Code() { - return $this->slogan; + return $this->iso6523Code; } /** - * @param string $slogan + * @param string $iso6523Code * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSlogan($slogan) + public function setIso6523Code($iso6523Code) { $types = [ "string", ]; - $slogan = self::checkTypes($slogan, $types); + $iso6523Code = self::checkTypes($iso6523Code, $types); - $this->slogan = $slogan; + $this->iso6523Code = $iso6523Code; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getEthicsPolicy() + public function getKeywords() { - return $this->ethicsPolicy; + return $this->keywords; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy + * @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 setEthicsPolicy($ethicsPolicy) + public function setKeywords($keywords) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $ethicsPolicy = self::checkTypes($ethicsPolicy, $types); + $keywords = self::checkTypes($keywords, $types); - $this->ethicsPolicy = $ethicsPolicy; + $this->keywords = $keywords; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getBrand() + public function getKnowsAbout() { - return $this->brand; + return $this->knowsAbout; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBrand($brand) + public function setKnowsAbout($knowsAbout) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $brand = self::checkTypes($brand, $types); + $knowsAbout = self::checkTypes($knowsAbout, $types); - $this->brand = $brand; + $this->knowsAbout = $knowsAbout; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getSponsor() + public function getKnowsLanguage() { - return $this->sponsor; + return $this->knowsLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSponsor($sponsor) + public function setKnowsLanguage($knowsLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $sponsor = self::checkTypes($sponsor, $types); + $knowsLanguage = self::checkTypes($knowsLanguage, $types); - $this->sponsor = $sponsor; + $this->knowsLanguage = $knowsLanguage; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getLogo() + public function getLegalAddress() { - return $this->logo; + return $this->legalAddress; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $legalAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLogo($logo) + public function setLegalAddress($legalAddress) { $types = [ + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $legalAddress = self::checkTypes($legalAddress, $types); - $this->logo = $logo; + $this->legalAddress = $legalAddress; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return string */ - public function getActionableFeedbackPolicy() + public function getLegalName() { - return $this->actionableFeedbackPolicy; + return $this->legalName; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $actionableFeedbackPolicy + * @param string $legalName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActionableFeedbackPolicy($actionableFeedbackPolicy) + public function setLegalName($legalName) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types); + $legalName = self::checkTypes($legalName, $types); - $this->actionableFeedbackPolicy = $actionableFeedbackPolicy; + $this->legalName = $legalName; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNaics() + public function getLegalRepresentative() { - return $this->naics; + return $this->legalRepresentative; } /** - * @param string $naics + * @param \OpenActive\Models\SchemaOrg\Person|string $legalRepresentative * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNaics($naics) + public function setLegalRepresentative($legalRepresentative) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $naics = self::checkTypes($naics, $types); + $legalRepresentative = self::checkTypes($legalRepresentative, $types); - $this->naics = $naics; + $this->legalRepresentative = $legalRepresentative; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return string */ - public function getContactPoint() + public function getLeiCode() { - return $this->contactPoint; + return $this->leiCode; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint + * @param string $leiCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoint($contactPoint) + public function setLeiCode($leiCode) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $contactPoint = self::checkTypes($contactPoint, $types); + $leiCode = self::checkTypes($leiCode, $types); - $this->contactPoint = $contactPoint; + $this->leiCode = $leiCode; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\VirtualLocation */ - public function getServiceArea() + public function getLocation() { - return $this->serviceArea; + return $this->location; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea + * @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 setServiceArea($serviceArea) + public function setLocation($location) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", + "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $serviceArea = self::checkTypes($serviceArea, $types); + $location = self::checkTypes($location, $types); - $this->serviceArea = $serviceArea; + $this->location = $location; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getIsicV4() + public function getLogo() { - return $this->isicV4; + return $this->logo; } /** - * @param string $isicV4 + * @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 setIsicV4($isicV4) + public function setLogo($logo) { $types = [ + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $isicV4 = self::checkTypes($isicV4, $types); + $logo = self::checkTypes($logo, $types); - $this->isicV4 = $isicV4; + $this->logo = $logo; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getHasMerchantReturnPolicy() + public function getMakesOffer() { - return $this->hasMerchantReturnPolicy; + return $this->makesOffer; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy + * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) + public function setMakesOffer($makesOffer) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); + $makesOffer = self::checkTypes($makesOffer, $types); - $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; + $this->makesOffer = $makesOffer; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getHasPOS() + public function getMember() { - return $this->hasPOS; + return $this->member; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasPOS($hasPOS) + public function setMember($member) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $hasPOS = self::checkTypes($hasPOS, $types); + $member = self::checkTypes($member, $types); - $this->hasPOS = $hasPOS; + $this->member = $member; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string */ - public function getFounder() + public function getMemberOf() { - return $this->founder; + return $this->memberOf; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $founder + * @param \OpenActive\Models\SchemaOrg\MemberProgramTier|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string $memberOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFounder($founder) + public function setMemberOf($memberOf) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\MemberProgramTier", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ProgramMembership", "string", ]; - $founder = self::checkTypes($founder, $types); + $memberOf = self::checkTypes($memberOf, $types); - $this->founder = $founder; + $this->memberOf = $memberOf; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getUnnamedSourcesPolicy() + public function getMembers() { - return $this->unnamedSourcesPolicy; + return $this->members; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $members * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnnamedSourcesPolicy($unnamedSourcesPolicy) + public function setMembers($members) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types); + $members = self::checkTypes($members, $types); - $this->unnamedSourcesPolicy = $unnamedSourcesPolicy; + $this->members = $members; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getFoundingLocation() + public function getNaics() { - return $this->foundingLocation; + return $this->naics; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $foundingLocation + * @param string $naics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFoundingLocation($foundingLocation) + public function setNaics($naics) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $foundingLocation = self::checkTypes($foundingLocation, $types); + $naics = self::checkTypes($naics, $types); - $this->foundingLocation = $foundingLocation; + $this->naics = $naics; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\NonprofitType|null */ - public function getDuns() + public function getNonprofitStatus() { - return $this->duns; + return $this->nonprofitStatus; } /** - * @param string $duns + * @param \OpenActive\Enums\SchemaOrg\NonprofitType|null $nonprofitStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuns($duns) + public function setNonprofitStatus($nonprofitStatus) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\NonprofitType", + "null", ]; - $duns = self::checkTypes($duns, $types); + $nonprofitStatus = self::checkTypes($nonprofitStatus, $types); - $this->duns = $duns; + $this->nonprofitStatus = $nonprofitStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getParentOrganization() + public function getNumberOfEmployees() { - return $this->parentOrganization; + return $this->numberOfEmployees; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $parentOrganization + * @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 setParentOrganization($parentOrganization) + public function setNumberOfEmployees($numberOfEmployees) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $parentOrganization = self::checkTypes($parentOrganization, $types); + $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); - $this->parentOrganization = $parentOrganization; + $this->numberOfEmployees = $numberOfEmployees; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getAlumni() + public function getOwnershipFundingInfo() { - return $this->alumni; + return $this->ownershipFundingInfo; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $alumni + * @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 setAlumni($alumni) + public function setOwnershipFundingInfo($ownershipFundingInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\AboutPage", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $alumni = self::checkTypes($alumni, $types); + $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types); - $this->alumni = $alumni; + $this->ownershipFundingInfo = $ownershipFundingInfo; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getLeiCode() + public function getOwns() { - return $this->leiCode; + return $this->owns; } /** - * @param string $leiCode + * @param \OpenActive\Models\SchemaOrg\Thing|string $owns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLeiCode($leiCode) + public function setOwns($owns) { $types = [ + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $leiCode = self::checkTypes($leiCode, $types); + $owns = self::checkTypes($owns, $types); - $this->leiCode = $leiCode; + $this->owns = $owns; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getAreaServed() + public function getParentOrganization() { - return $this->areaServed; + return $this->parentOrganization; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param \OpenActive\Models\SchemaOrg\Organization|string $parentOrganization * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setParentOrganization($parentOrganization) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $areaServed = self::checkTypes($areaServed, $types); + $parentOrganization = self::checkTypes($parentOrganization, $types); - $this->areaServed = $areaServed; + $this->parentOrganization = $parentOrganization; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getFoundingDate() + public function getPublishingPrinciples() { - return $this->foundingDate; + return $this->publishingPrinciples; } /** - * @param Date|null $foundingDate + * @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 setFoundingDate($foundingDate) + public function setPublishingPrinciples($publishingPrinciples) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", ]; - $foundingDate = self::checkTypes($foundingDate, $types); + $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); - $this->foundingDate = $foundingDate; + $this->publishingPrinciples = $publishingPrinciples; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getKnowsLanguage() + public function getReview() { - return $this->knowsLanguage; + return $this->review; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage + * @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 setKnowsLanguage($knowsLanguage) + public function setReview($review) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $knowsLanguage = self::checkTypes($knowsLanguage, $types); + $review = self::checkTypes($review, $types); - $this->knowsLanguage = $knowsLanguage; + $this->review = $review; } /** @@ -2045,227 +2455,227 @@ public function setSeeks($seeks) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getTaxID() + public function getServiceArea() { - return $this->taxID; + return $this->serviceArea; } /** - * @param string $taxID + * @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 setTaxID($taxID) + public function setServiceArea($serviceArea) { $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $taxID = self::checkTypes($taxID, $types); + $serviceArea = self::checkTypes($serviceArea, $types); - $this->taxID = $taxID; + $this->serviceArea = $serviceArea; } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getOwns() + public function getSkills() { - return $this->owns; + return $this->skills; } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns + * @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 setOwns($owns) + public function setSkills($skills) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\OwnershipInfo", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $owns = self::checkTypes($owns, $types); + $skills = self::checkTypes($skills, $types); - $this->owns = $owns; + $this->skills = $skills; } /** - * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return string */ - public function getHasOfferCatalog() + public function getSlogan() { - return $this->hasOfferCatalog; + return $this->slogan; } /** - * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasOfferCatalog($hasOfferCatalog) + public function setSlogan($slogan) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + $slogan = self::checkTypes($slogan, $types); - $this->hasOfferCatalog = $hasOfferCatalog; + $this->slogan = $slogan; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getMembers() + public function getSponsor() { - return $this->members; + return $this->sponsor; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $members + * @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 setMembers($members) + public function setSponsor($sponsor) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $members = self::checkTypes($members, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->members = $members; + $this->sponsor = $sponsor; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getEvents() + public function getSubOrganization() { - return $this->events; + return $this->subOrganization; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $events + * @param \OpenActive\Models\SchemaOrg\Organization|string $subOrganization * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvents($events) + public function setSubOrganization($subOrganization) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $events = self::checkTypes($events, $types); + $subOrganization = self::checkTypes($subOrganization, $types); - $this->events = $events; + $this->subOrganization = $subOrganization; } /** * @return string */ - public function getIso6523Code() + public function getTaxID() { - return $this->iso6523Code; + return $this->taxID; } /** - * @param string $iso6523Code + * @param string $taxID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIso6523Code($iso6523Code) + public function setTaxID($taxID) { $types = [ "string", ]; - $iso6523Code = self::checkTypes($iso6523Code, $types); + $taxID = self::checkTypes($taxID, $types); - $this->iso6523Code = $iso6523Code; + $this->taxID = $taxID; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getDepartment() + public function getTelephone() { - return $this->department; + return $this->telephone; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $department + * @param string $telephone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartment($department) + public function setTelephone($telephone) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $department = self::checkTypes($department, $types); + $telephone = self::checkTypes($telephone, $types); - $this->department = $department; + $this->telephone = $telephone; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getFaxNumber() + public function getUnnamedSourcesPolicy() { - return $this->faxNumber; + return $this->unnamedSourcesPolicy; } /** - * @param string $faxNumber + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFaxNumber($faxNumber) + public function setUnnamedSourcesPolicy($unnamedSourcesPolicy) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types); - $this->faxNumber = $faxNumber; + $this->unnamedSourcesPolicy = $unnamedSourcesPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return string */ - public function getEvent() + public function getVatID() { - return $this->event; + return $this->vatID; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $event + * @param string $vatID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvent($event) + public function setVatID($vatID) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $event = self::checkTypes($event, $types); + $vatID = self::checkTypes($vatID, $types); - $this->event = $event; + $this->vatID = $vatID; } } diff --git a/src/Models/SchemaOrg/OwnershipInfo.php b/src/Models/SchemaOrg/OwnershipInfo.php index 8567084a..e947638c 100644 --- a/src/Models/SchemaOrg/OwnershipInfo.php +++ b/src/Models/SchemaOrg/OwnershipInfo.php @@ -17,147 +17,147 @@ public static function getType() public static function fieldList() { $fields = [ - "ownedFrom" => "ownedFrom", - "typeOfGood" => "typeOfGood", "acquiredFrom" => "acquiredFrom", + "ownedFrom" => "ownedFrom", "ownedThrough" => "ownedThrough", + "typeOfGood" => "typeOfGood", ]; return array_merge(parent::fieldList(), $fields); } /** - * The date and time of obtaining the product. + * The organization or person from which the product was acquired. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $ownedFrom; + protected $acquiredFrom; /** - * The product that this structured value is referring to. + * The date and time of obtaining the product. * * - * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + * @var DateTime|null */ - protected $typeOfGood; + protected $ownedFrom; /** - * The organization or person from which the product was acquired. + * The date and time of giving up ownership on the product. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var DateTime|null */ - protected $acquiredFrom; + protected $ownedThrough; /** - * The date and time of giving up ownership on the product. + * The product that this structured value is referring to. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $ownedThrough; + protected $typeOfGood; /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getOwnedFrom() + public function getAcquiredFrom() { - return $this->ownedFrom; + return $this->acquiredFrom; } /** - * @param DateTime|null $ownedFrom + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $acquiredFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOwnedFrom($ownedFrom) + public function setAcquiredFrom($acquiredFrom) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $ownedFrom = self::checkTypes($ownedFrom, $types); + $acquiredFrom = self::checkTypes($acquiredFrom, $types); - $this->ownedFrom = $ownedFrom; + $this->acquiredFrom = $acquiredFrom; } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + * @return DateTime|null */ - public function getTypeOfGood() + public function getOwnedFrom() { - return $this->typeOfGood; + return $this->ownedFrom; } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $typeOfGood + * @param DateTime|null $ownedFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypeOfGood($typeOfGood) + public function setOwnedFrom($ownedFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\Service", - "string", + "DateTime", + "null", ]; - $typeOfGood = self::checkTypes($typeOfGood, $types); + $ownedFrom = self::checkTypes($ownedFrom, $types); - $this->typeOfGood = $typeOfGood; + $this->ownedFrom = $ownedFrom; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return DateTime|null */ - public function getAcquiredFrom() + public function getOwnedThrough() { - return $this->acquiredFrom; + return $this->ownedThrough; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $acquiredFrom + * @param DateTime|null $ownedThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcquiredFrom($acquiredFrom) + public function setOwnedThrough($ownedThrough) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "DateTime", + "null", ]; - $acquiredFrom = self::checkTypes($acquiredFrom, $types); + $ownedThrough = self::checkTypes($ownedThrough, $types); - $this->acquiredFrom = $acquiredFrom; + $this->ownedThrough = $ownedThrough; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getOwnedThrough() + public function getTypeOfGood() { - return $this->ownedThrough; + return $this->typeOfGood; } /** - * @param DateTime|null $ownedThrough + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $typeOfGood * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOwnedThrough($ownedThrough) + public function setTypeOfGood($typeOfGood) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", + "string", ]; - $ownedThrough = self::checkTypes($ownedThrough, $types); + $typeOfGood = self::checkTypes($typeOfGood, $types); - $this->ownedThrough = $ownedThrough; + $this->typeOfGood = $typeOfGood; } } diff --git a/src/Models/SchemaOrg/PalliativeProcedure.php b/src/Models/SchemaOrg/PalliativeProcedure.php index 62afb3f4..92932191 100644 --- a/src/Models/SchemaOrg/PalliativeProcedure.php +++ b/src/Models/SchemaOrg/PalliativeProcedure.php @@ -5,7 +5,7 @@ /** * */ -class PalliativeProcedure extends \OpenActive\Models\SchemaOrg\MedicalTherapy +class PalliativeProcedure extends \OpenActive\Models\SchemaOrg\MedicalProcedure { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/ParcelDelivery.php b/src/Models/SchemaOrg/ParcelDelivery.php index 1d2c5534..fddb3109 100644 --- a/src/Models/SchemaOrg/ParcelDelivery.php +++ b/src/Models/SchemaOrg/ParcelDelivery.php @@ -17,418 +17,418 @@ public static function getType() public static function fieldList() { $fields = [ - "originAddress" => "originAddress", - "trackingNumber" => "trackingNumber", - "itemShipped" => "itemShipped", - "provider" => "provider", - "trackingUrl" => "trackingUrl", + "carrier" => "carrier", "deliveryAddress" => "deliveryAddress", - "expectedArrivalUntil" => "expectedArrivalUntil", "deliveryStatus" => "deliveryStatus", "expectedArrivalFrom" => "expectedArrivalFrom", - "carrier" => "carrier", + "expectedArrivalUntil" => "expectedArrivalUntil", "hasDeliveryMethod" => "hasDeliveryMethod", + "itemShipped" => "itemShipped", + "originAddress" => "originAddress", "partOfOrder" => "partOfOrder", + "provider" => "provider", + "trackingNumber" => "trackingNumber", + "trackingUrl" => "trackingUrl", ]; return array_merge(parent::fieldList(), $fields); } /** - * Shipper's address. + * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $originAddress; + protected $carrier; /** - * Shipper tracking number. + * Destination address. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $trackingNumber; + protected $deliveryAddress; /** - * Item(s) being shipped. + * New entry added as the package passes through each leg of its journey (from shipment to final delivery). * * - * @var \OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\DeliveryEvent|string */ - protected $itemShipped; + protected $deliveryStatus; /** - * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. + * The earliest date the package may arrive. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var Date|DateTime|null */ - protected $provider; + protected $expectedArrivalFrom; /** - * Tracking url for the parcel delivery. + * The latest date the package may arrive. * * - * @var string + * @var Date|DateTime|null */ - protected $trackingUrl; + protected $expectedArrivalUntil; /** - * Destination address. + * Method used for delivery or shipping. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $deliveryAddress; + protected $hasDeliveryMethod; /** - * The latest date the package may arrive. + * Item(s) being shipped. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Product|string */ - protected $expectedArrivalUntil; + protected $itemShipped; /** - * New entry added as the package passes through each leg of its journey (from shipment to final delivery). + * Shipper's address. * * - * @var \OpenActive\Models\SchemaOrg\DeliveryEvent|string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $deliveryStatus; + protected $originAddress; /** - * The earliest date the package may arrive. + * The overall order the items in this delivery were included in. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Order|string */ - protected $expectedArrivalFrom; + protected $partOfOrder; /** - * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. + * 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|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $carrier; + protected $provider; /** - * Method used for delivery or shipping. + * Shipper tracking number. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var string */ - protected $hasDeliveryMethod; + protected $trackingNumber; /** - * The overall order the items in this delivery were included in. + * Tracking url for the parcel delivery. * * - * @var \OpenActive\Models\SchemaOrg\Order|string + * @var string */ - protected $partOfOrder; + protected $trackingUrl; /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getOriginAddress() + public function getCarrier() { - return $this->originAddress; + return $this->carrier; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $originAddress + * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOriginAddress($originAddress) + public function setCarrier($carrier) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $originAddress = self::checkTypes($originAddress, $types); + $carrier = self::checkTypes($carrier, $types); - $this->originAddress = $originAddress; + $this->carrier = $carrier; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getTrackingNumber() + public function getDeliveryAddress() { - return $this->trackingNumber; + return $this->deliveryAddress; } /** - * @param string $trackingNumber + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $deliveryAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrackingNumber($trackingNumber) + public function setDeliveryAddress($deliveryAddress) { $types = [ + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $trackingNumber = self::checkTypes($trackingNumber, $types); + $deliveryAddress = self::checkTypes($deliveryAddress, $types); - $this->trackingNumber = $trackingNumber; + $this->deliveryAddress = $deliveryAddress; } /** - * @return \OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\DeliveryEvent|string */ - public function getItemShipped() + public function getDeliveryStatus() { - return $this->itemShipped; + return $this->deliveryStatus; } /** - * @param \OpenActive\Models\SchemaOrg\Product|string $itemShipped + * @param \OpenActive\Models\SchemaOrg\DeliveryEvent|string $deliveryStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemShipped($itemShipped) + public function setDeliveryStatus($deliveryStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\DeliveryEvent", "string", ]; - $itemShipped = self::checkTypes($itemShipped, $types); + $deliveryStatus = self::checkTypes($deliveryStatus, $types); - $this->itemShipped = $itemShipped; + $this->deliveryStatus = $deliveryStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return Date|DateTime|null */ - public function getProvider() + public function getExpectedArrivalFrom() { - return $this->provider; + return $this->expectedArrivalFrom; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param Date|DateTime|null $expectedArrivalFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setExpectedArrivalFrom($expectedArrivalFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "DateTime", + "null", ]; - $provider = self::checkTypes($provider, $types); + $expectedArrivalFrom = self::checkTypes($expectedArrivalFrom, $types); - $this->provider = $provider; + $this->expectedArrivalFrom = $expectedArrivalFrom; } /** - * @return string + * @return Date|DateTime|null */ - public function getTrackingUrl() + public function getExpectedArrivalUntil() { - return $this->trackingUrl; + return $this->expectedArrivalUntil; } /** - * @param string $trackingUrl + * @param Date|DateTime|null $expectedArrivalUntil * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrackingUrl($trackingUrl) + public function setExpectedArrivalUntil($expectedArrivalUntil) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $trackingUrl = self::checkTypes($trackingUrl, $types); + $expectedArrivalUntil = self::checkTypes($expectedArrivalUntil, $types); - $this->trackingUrl = $trackingUrl; + $this->expectedArrivalUntil = $expectedArrivalUntil; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getDeliveryAddress() + public function getHasDeliveryMethod() { - return $this->deliveryAddress; + return $this->hasDeliveryMethod; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $deliveryAddress + * @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 setDeliveryAddress($deliveryAddress) + public function setHasDeliveryMethod($hasDeliveryMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", - "string", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", ]; - $deliveryAddress = self::checkTypes($deliveryAddress, $types); + $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types); - $this->deliveryAddress = $deliveryAddress; + $this->hasDeliveryMethod = $hasDeliveryMethod; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getExpectedArrivalUntil() + public function getItemShipped() { - return $this->expectedArrivalUntil; + return $this->itemShipped; } /** - * @param Date|DateTime|null $expectedArrivalUntil + * @param \OpenActive\Models\SchemaOrg\Product|string $itemShipped * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpectedArrivalUntil($expectedArrivalUntil) + public function setItemShipped($itemShipped) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Product", + "string", ]; - $expectedArrivalUntil = self::checkTypes($expectedArrivalUntil, $types); + $itemShipped = self::checkTypes($itemShipped, $types); - $this->expectedArrivalUntil = $expectedArrivalUntil; + $this->itemShipped = $itemShipped; } /** - * @return \OpenActive\Models\SchemaOrg\DeliveryEvent|string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getDeliveryStatus() + public function getOriginAddress() { - return $this->deliveryStatus; + return $this->originAddress; } /** - * @param \OpenActive\Models\SchemaOrg\DeliveryEvent|string $deliveryStatus + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $originAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeliveryStatus($deliveryStatus) + public function setOriginAddress($originAddress) { $types = [ - "\OpenActive\Models\SchemaOrg\DeliveryEvent", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $deliveryStatus = self::checkTypes($deliveryStatus, $types); + $originAddress = self::checkTypes($originAddress, $types); - $this->deliveryStatus = $deliveryStatus; + $this->originAddress = $originAddress; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Order|string */ - public function getExpectedArrivalFrom() + public function getPartOfOrder() { - return $this->expectedArrivalFrom; + return $this->partOfOrder; } /** - * @param Date|DateTime|null $expectedArrivalFrom + * @param \OpenActive\Models\SchemaOrg\Order|string $partOfOrder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpectedArrivalFrom($expectedArrivalFrom) + public function setPartOfOrder($partOfOrder) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Order", + "string", ]; - $expectedArrivalFrom = self::checkTypes($expectedArrivalFrom, $types); + $partOfOrder = self::checkTypes($partOfOrder, $types); - $this->expectedArrivalFrom = $expectedArrivalFrom; + $this->partOfOrder = $partOfOrder; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getCarrier() + public function getProvider() { - return $this->carrier; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier + * @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 setCarrier($carrier) + public function setProvider($provider) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $carrier = self::checkTypes($carrier, $types); + $provider = self::checkTypes($provider, $types); - $this->carrier = $carrier; + $this->provider = $provider; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return string */ - public function getHasDeliveryMethod() + public function getTrackingNumber() { - return $this->hasDeliveryMethod; + return $this->trackingNumber; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $hasDeliveryMethod + * @param string $trackingNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasDeliveryMethod($hasDeliveryMethod) + public function setTrackingNumber($trackingNumber) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "string", ]; - $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types); + $trackingNumber = self::checkTypes($trackingNumber, $types); - $this->hasDeliveryMethod = $hasDeliveryMethod; + $this->trackingNumber = $trackingNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Order|string + * @return string */ - public function getPartOfOrder() + public function getTrackingUrl() { - return $this->partOfOrder; + return $this->trackingUrl; } /** - * @param \OpenActive\Models\SchemaOrg\Order|string $partOfOrder + * @param string $trackingUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfOrder($partOfOrder) + public function setTrackingUrl($trackingUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\Order", "string", ]; - $partOfOrder = self::checkTypes($partOfOrder, $types); + $trackingUrl = self::checkTypes($trackingUrl, $types); - $this->partOfOrder = $partOfOrder; + $this->trackingUrl = $trackingUrl; } } diff --git a/src/Models/SchemaOrg/Patient.php b/src/Models/SchemaOrg/Patient.php index 03ca71cc..9656e3f7 100644 --- a/src/Models/SchemaOrg/Patient.php +++ b/src/Models/SchemaOrg/Patient.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "healthCondition" => "healthCondition", - "drug" => "drug", "diagnosis" => "diagnosis", + "drug" => "drug", + "healthCondition" => "healthCondition", ]; return array_merge(parent::fieldList(), $fields); } /** - * Specifying the health condition(s) of a patient, medical study, or other target audience. + * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process. * * * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $healthCondition; + protected $diagnosis; /** * Specifying a drug or medicine used in a medication procedure. @@ -42,36 +42,36 @@ public static function fieldList() { protected $drug; /** - * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process. + * Specifying the health condition(s) of a patient, medical study, or other target audience. * * * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $diagnosis; + protected $healthCondition; /** * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getHealthCondition() + public function getDiagnosis() { - return $this->healthCondition; + return $this->diagnosis; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition + * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $diagnosis * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthCondition($healthCondition) + public function setDiagnosis($diagnosis) { $types = [ "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $healthCondition = self::checkTypes($healthCondition, $types); + $diagnosis = self::checkTypes($diagnosis, $types); - $this->healthCondition = $healthCondition; + $this->diagnosis = $diagnosis; } /** @@ -102,26 +102,26 @@ public function setDrug($drug) /** * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getDiagnosis() + public function getHealthCondition() { - return $this->diagnosis; + return $this->healthCondition; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $diagnosis + * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiagnosis($diagnosis) + public function setHealthCondition($healthCondition) { $types = [ "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $diagnosis = self::checkTypes($diagnosis, $types); + $healthCondition = self::checkTypes($healthCondition, $types); - $this->diagnosis = $diagnosis; + $this->healthCondition = $healthCondition; } } diff --git a/src/Models/SchemaOrg/PayAction.php b/src/Models/SchemaOrg/PayAction.php index 1f0c2cd7..c78e71d2 100644 --- a/src/Models/SchemaOrg/PayAction.php +++ b/src/Models/SchemaOrg/PayAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\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/PaymentCard.php b/src/Models/SchemaOrg/PaymentCard.php index 4205b446..fe56ac3a 100644 --- a/src/Models/SchemaOrg/PaymentCard.php +++ b/src/Models/SchemaOrg/PaymentCard.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "cashBack" => "cashBack", - "monthlyMinimumRepaymentAmount" => "monthlyMinimumRepaymentAmount", - "floorLimit" => "floorLimit", "contactlessPayment" => "contactlessPayment", + "floorLimit" => "floorLimit", + "monthlyMinimumRepaymentAmount" => "monthlyMinimumRepaymentAmount", ]; return array_merge(parent::fieldList(), $fields); @@ -35,12 +35,12 @@ public static function fieldList() { protected $cashBack; /** - * The minimum payment is the lowest amount of money that one is required to pay on a credit card statement each month. + * A secure method for consumers to purchase products or services via debit, credit or smartcards by using RFID or NFC technology. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @var bool|null */ - protected $monthlyMinimumRepaymentAmount; + protected $contactlessPayment; /** * A floor limit is the amount of money above which credit card transactions must be authorized. @@ -51,12 +51,12 @@ public static function fieldList() { protected $floorLimit; /** - * A secure method for consumers to purchase products or services via debit, credit or smartcards by using RFID or NFC technology. + * The minimum payment is the lowest amount of money that one is required to pay on a credit card statement each month. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - protected $contactlessPayment; + protected $monthlyMinimumRepaymentAmount; /** * @return bool|Number|null @@ -85,30 +85,28 @@ public function setCashBack($cashBack) } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @return bool|null */ - public function getMonthlyMinimumRepaymentAmount() + public function getContactlessPayment() { - return $this->monthlyMinimumRepaymentAmount; + return $this->contactlessPayment; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $monthlyMinimumRepaymentAmount + * @param bool|null $contactlessPayment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMonthlyMinimumRepaymentAmount($monthlyMinimumRepaymentAmount) + public function setContactlessPayment($contactlessPayment) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", - "Number", + "bool", "null", ]; - $monthlyMinimumRepaymentAmount = self::checkTypes($monthlyMinimumRepaymentAmount, $types); + $contactlessPayment = self::checkTypes($contactlessPayment, $types); - $this->monthlyMinimumRepaymentAmount = $monthlyMinimumRepaymentAmount; + $this->contactlessPayment = $contactlessPayment; } /** @@ -137,28 +135,30 @@ public function setFloorLimit($floorLimit) } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - public function getContactlessPayment() + public function getMonthlyMinimumRepaymentAmount() { - return $this->contactlessPayment; + return $this->monthlyMinimumRepaymentAmount; } /** - * @param bool|null $contactlessPayment + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $monthlyMinimumRepaymentAmount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactlessPayment($contactlessPayment) + public function setMonthlyMinimumRepaymentAmount($monthlyMinimumRepaymentAmount) { $types = [ - "bool", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", + "Number", "null", ]; - $contactlessPayment = self::checkTypes($contactlessPayment, $types); + $monthlyMinimumRepaymentAmount = self::checkTypes($monthlyMinimumRepaymentAmount, $types); - $this->contactlessPayment = $contactlessPayment; + $this->monthlyMinimumRepaymentAmount = $monthlyMinimumRepaymentAmount; } } diff --git a/src/Models/SchemaOrg/PaymentChargeSpecification.php b/src/Models/SchemaOrg/PaymentChargeSpecification.php index dec70bdb..3b6c4fed 100644 --- a/src/Models/SchemaOrg/PaymentChargeSpecification.php +++ b/src/Models/SchemaOrg/PaymentChargeSpecification.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "appliesToPaymentMethod" => "appliesToPaymentMethod", "appliesToDeliveryMethod" => "appliesToDeliveryMethod", + "appliesToPaymentMethod" => "appliesToPaymentMethod", ]; return array_merge(parent::fieldList(), $fields); } /** - * The payment method(s) to which the payment charge specification applies. + * The delivery method(s) to which the delivery charge or payment charge specification applies. * * - * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $appliesToPaymentMethod; + protected $appliesToDeliveryMethod; /** - * The delivery method(s) to which the delivery charge or payment charge specification applies. + * The payment method(s) to which the payment charge specification applies. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var \OpenActive\Models\SchemaOrg\PaymentMethod|string */ - protected $appliesToDeliveryMethod; + protected $appliesToPaymentMethod; /** - * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getAppliesToPaymentMethod() + public function getAppliesToDeliveryMethod() { - return $this->appliesToPaymentMethod; + return $this->appliesToDeliveryMethod; } /** - * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $appliesToPaymentMethod + * @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 setAppliesToPaymentMethod($appliesToPaymentMethod) + public function setAppliesToDeliveryMethod($appliesToDeliveryMethod) { $types = [ - "\OpenActive\Enums\SchemaOrg\PaymentMethod", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", "null", ]; - $appliesToPaymentMethod = self::checkTypes($appliesToPaymentMethod, $types); + $appliesToDeliveryMethod = self::checkTypes($appliesToDeliveryMethod, $types); - $this->appliesToPaymentMethod = $appliesToPaymentMethod; + $this->appliesToDeliveryMethod = $appliesToDeliveryMethod; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\PaymentMethod|string */ - public function getAppliesToDeliveryMethod() + public function getAppliesToPaymentMethod() { - return $this->appliesToDeliveryMethod; + return $this->appliesToPaymentMethod; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $appliesToDeliveryMethod + * @param \OpenActive\Models\SchemaOrg\PaymentMethod|string $appliesToPaymentMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAppliesToDeliveryMethod($appliesToDeliveryMethod) + public function setAppliesToPaymentMethod($appliesToPaymentMethod) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\PaymentMethod", + "string", ]; - $appliesToDeliveryMethod = self::checkTypes($appliesToDeliveryMethod, $types); + $appliesToPaymentMethod = self::checkTypes($appliesToPaymentMethod, $types); - $this->appliesToDeliveryMethod = $appliesToDeliveryMethod; + $this->appliesToPaymentMethod = $appliesToPaymentMethod; } } diff --git a/src/Models/SchemaOrg/PaymentMethod.php b/src/Models/SchemaOrg/PaymentMethod.php new file mode 100644 index 00000000..ad864907 --- /dev/null +++ b/src/Models/SchemaOrg/PaymentMethod.php @@ -0,0 +1,59 @@ + "paymentMethodType", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * The type of a payment method. + * + * + * @var \OpenActive\Enums\SchemaOrg\PaymentMethodType|null + */ + protected $paymentMethodType; + + /** + * @return \OpenActive\Enums\SchemaOrg\PaymentMethodType|null + */ + public function getPaymentMethodType() + { + return $this->paymentMethodType; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\PaymentMethodType|null $paymentMethodType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPaymentMethodType($paymentMethodType) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\PaymentMethodType", + "null", + ]; + + $paymentMethodType = self::checkTypes($paymentMethodType, $types); + + $this->paymentMethodType = $paymentMethodType; + } + +} diff --git a/src/Models/SchemaOrg/PeopleAudience.php b/src/Models/SchemaOrg/PeopleAudience.php index 309a33b3..c4766813 100644 --- a/src/Models/SchemaOrg/PeopleAudience.php +++ b/src/Models/SchemaOrg/PeopleAudience.php @@ -17,51 +17,51 @@ public static function getType() public static function fieldList() { $fields = [ + "healthCondition" => "healthCondition", + "requiredGender" => "requiredGender", + "requiredMaxAge" => "requiredMaxAge", "requiredMinAge" => "requiredMinAge", + "suggestedAge" => "suggestedAge", + "suggestedGender" => "suggestedGender", "suggestedMaxAge" => "suggestedMaxAge", - "healthCondition" => "healthCondition", "suggestedMeasurement" => "suggestedMeasurement", - "suggestedAge" => "suggestedAge", - "requiredMaxAge" => "requiredMaxAge", "suggestedMinAge" => "suggestedMinAge", - "requiredGender" => "requiredGender", - "suggestedGender" => "suggestedGender", ]; return array_merge(parent::fieldList(), $fields); } /** - * Audiences defined by a person's minimum age. + * Specifying the health condition(s) of a patient, medical study, or other target audience. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $requiredMinAge; + protected $healthCondition; /** - * Maximum recommended age in years for the audience or user. + * Audiences defined by a person's gender. * * - * @var Number|null + * @var string */ - protected $suggestedMaxAge; + protected $requiredGender; /** - * Specifying the health condition(s) of a patient, medical study, or other target audience. + * Audiences defined by a person's maximum age. * * - * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @var int|null */ - protected $healthCondition; + protected $requiredMaxAge; /** - * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. + * Audiences defined by a person's minimum age. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var int|null */ - protected $suggestedMeasurement; + protected $requiredMinAge; /** * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers. @@ -72,135 +72,134 @@ public static function fieldList() { protected $suggestedAge; /** - * Audiences defined by a person's maximum age. + * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". * * - * @var int|null + * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - protected $requiredMaxAge; + protected $suggestedGender; /** - * Minimum recommended age in years for the audience or user. + * Maximum recommended age in years for the audience or user. * * * @var Number|null */ - protected $suggestedMinAge; + protected $suggestedMaxAge; /** - * Audiences defined by a person's gender. + * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $requiredGender; + protected $suggestedMeasurement; /** - * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". + * Minimum recommended age in years for the audience or user. * * - * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @var Number|null */ - protected $suggestedGender; + protected $suggestedMinAge; /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getRequiredMinAge() + public function getHealthCondition() { - return $this->requiredMinAge; + return $this->healthCondition; } /** - * @param int|null $requiredMinAge + * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiredMinAge($requiredMinAge) + public function setHealthCondition($healthCondition) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\MedicalCondition", + "string", ]; - $requiredMinAge = self::checkTypes($requiredMinAge, $types); + $healthCondition = self::checkTypes($healthCondition, $types); - $this->requiredMinAge = $requiredMinAge; + $this->healthCondition = $healthCondition; } /** - * @return Number|null + * @return string */ - public function getSuggestedMaxAge() + public function getRequiredGender() { - return $this->suggestedMaxAge; + return $this->requiredGender; } /** - * @param Number|null $suggestedMaxAge + * @param string $requiredGender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMaxAge($suggestedMaxAge) + public function setRequiredGender($requiredGender) { $types = [ - "Number", - "null", + "string", ]; - $suggestedMaxAge = self::checkTypes($suggestedMaxAge, $types); + $requiredGender = self::checkTypes($requiredGender, $types); - $this->suggestedMaxAge = $suggestedMaxAge; + $this->requiredGender = $requiredGender; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @return int|null */ - public function getHealthCondition() + public function getRequiredMaxAge() { - return $this->healthCondition; + return $this->requiredMaxAge; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition + * @param int|null $requiredMaxAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthCondition($healthCondition) + public function setRequiredMaxAge($requiredMaxAge) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalCondition", - "string", + "int", + "null", ]; - $healthCondition = self::checkTypes($healthCondition, $types); + $requiredMaxAge = self::checkTypes($requiredMaxAge, $types); - $this->healthCondition = $healthCondition; + $this->requiredMaxAge = $requiredMaxAge; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return int|null */ - public function getSuggestedMeasurement() + public function getRequiredMinAge() { - return $this->suggestedMeasurement; + return $this->requiredMinAge; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement + * @param int|null $requiredMinAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMeasurement($suggestedMeasurement) + public function setRequiredMinAge($requiredMinAge) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "int", + "null", ]; - $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); + $requiredMinAge = self::checkTypes($requiredMinAge, $types); - $this->suggestedMeasurement = $suggestedMeasurement; + $this->requiredMinAge = $requiredMinAge; } /** @@ -229,103 +228,104 @@ public function setSuggestedAge($suggestedAge) } /** - * @return int|null + * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - public function getRequiredMaxAge() + public function getSuggestedGender() { - return $this->requiredMaxAge; + return $this->suggestedGender; } /** - * @param int|null $requiredMaxAge + * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiredMaxAge($requiredMaxAge) + public function setSuggestedGender($suggestedGender) { $types = [ - "int", + "\OpenActive\Enums\SchemaOrg\GenderType", + "string", "null", ]; - $requiredMaxAge = self::checkTypes($requiredMaxAge, $types); + $suggestedGender = self::checkTypes($suggestedGender, $types); - $this->requiredMaxAge = $requiredMaxAge; + $this->suggestedGender = $suggestedGender; } /** * @return Number|null */ - public function getSuggestedMinAge() + public function getSuggestedMaxAge() { - return $this->suggestedMinAge; + return $this->suggestedMaxAge; } /** - * @param Number|null $suggestedMinAge + * @param Number|null $suggestedMaxAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMinAge($suggestedMinAge) + public function setSuggestedMaxAge($suggestedMaxAge) { $types = [ "Number", "null", ]; - $suggestedMinAge = self::checkTypes($suggestedMinAge, $types); + $suggestedMaxAge = self::checkTypes($suggestedMaxAge, $types); - $this->suggestedMinAge = $suggestedMinAge; + $this->suggestedMaxAge = $suggestedMaxAge; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getRequiredGender() + public function getSuggestedMeasurement() { - return $this->requiredGender; + return $this->suggestedMeasurement; } /** - * @param string $requiredGender + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiredGender($requiredGender) + public function setSuggestedMeasurement($suggestedMeasurement) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $requiredGender = self::checkTypes($requiredGender, $types); + $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); - $this->requiredGender = $requiredGender; + $this->suggestedMeasurement = $suggestedMeasurement; } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return Number|null */ - public function getSuggestedGender() + public function getSuggestedMinAge() { - return $this->suggestedGender; + return $this->suggestedMinAge; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender + * @param Number|null $suggestedMinAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedGender($suggestedGender) + public function setSuggestedMinAge($suggestedMinAge) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", - "string", + "Number", "null", ]; - $suggestedGender = self::checkTypes($suggestedGender, $types); + $suggestedMinAge = self::checkTypes($suggestedMinAge, $types); - $this->suggestedGender = $suggestedGender; + $this->suggestedMinAge = $suggestedMinAge; } } diff --git a/src/Models/SchemaOrg/PerformingArtsEvent.php b/src/Models/SchemaOrg/PerformingArtsEvent.php new file mode 100644 index 00000000..c0cd5276 --- /dev/null +++ b/src/Models/SchemaOrg/PerformingArtsEvent.php @@ -0,0 +1,25 @@ + "validFor", "issuedBy" => "issuedBy", - "validUntil" => "validUntil", - "validFrom" => "validFrom", "issuedThrough" => "issuedThrough", - "validIn" => "validIn", "permitAudience" => "permitAudience", + "validFor" => "validFor", + "validFrom" => "validFrom", + "validIn" => "validIn", + "validUntil" => "validUntil", ]; return array_merge(parent::fieldList(), $fields); } /** - * The duration of validity of a permit or similar thing. + * The organization issuing the item, for example a [[Permit]], [[Ticket]], or [[Certification]]. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $validFor; + protected $issuedBy; /** - * The organization issuing the ticket or permit. + * The service through which the permit was granted. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Service|string */ - protected $issuedBy; + protected $issuedThrough; /** - * The date when the item is no longer valid. + * The target audience for this permit. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $validUntil; + protected $permitAudience; /** - * The date when the item becomes valid. + * The duration of validity of a permit or similar thing. * * - * @var Date|DateTime|null + * @var DateInterval|string|null */ - protected $validFrom; + protected $validFor; /** - * The service through with the permit was granted. + * The date when the item becomes valid. * * - * @var \OpenActive\Models\SchemaOrg\Service|string + * @var Date|DateTime|null */ - protected $issuedThrough; + protected $validFrom; /** - * The geographic area where a permit or similar thing is valid. + * The geographic area where the item is valid. Applies for example to a [[Permit]], a [[Certification]], or an [[EducationalOccupationalCredential]]. * * * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string @@ -78,138 +78,138 @@ public static function fieldList() { protected $validIn; /** - * The target audience for this permit. + * The date when the item is no longer valid. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var Date|null */ - protected $permitAudience; + protected $validUntil; /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getValidFor() + public function getIssuedBy() { - return $this->validFor; + return $this->issuedBy; } /** - * @param DateInterval|string|null $validFor + * @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 setValidFor($validFor) + public function setIssuedBy($issuedBy) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "null", ]; - $validFor = self::checkTypes($validFor, $types); + $issuedBy = self::checkTypes($issuedBy, $types); - $this->validFor = $validFor; + $this->issuedBy = $issuedBy; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Service|string */ - public function getIssuedBy() + public function getIssuedThrough() { - return $this->issuedBy; + return $this->issuedThrough; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $issuedBy + * @param \OpenActive\Models\SchemaOrg\Service|string $issuedThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIssuedBy($issuedBy) + public function setIssuedThrough($issuedThrough) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $issuedBy = self::checkTypes($issuedBy, $types); + $issuedThrough = self::checkTypes($issuedThrough, $types); - $this->issuedBy = $issuedBy; + $this->issuedThrough = $issuedThrough; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getValidUntil() + public function getPermitAudience() { - return $this->validUntil; + return $this->permitAudience; } /** - * @param Date|null $validUntil + * @param \OpenActive\Models\SchemaOrg\Audience|string $permitAudience * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidUntil($validUntil) + public function setPermitAudience($permitAudience) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Audience", + "string", ]; - $validUntil = self::checkTypes($validUntil, $types); + $permitAudience = self::checkTypes($permitAudience, $types); - $this->validUntil = $validUntil; + $this->permitAudience = $permitAudience; } /** - * @return Date|DateTime|null + * @return DateInterval|string|null */ - public function getValidFrom() + public function getValidFor() { - return $this->validFrom; + return $this->validFor; } /** - * @param Date|DateTime|null $validFrom + * @param DateInterval|string|null $validFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidFrom($validFrom) + public function setValidFor($validFor) { $types = [ - "Date", - "DateTime", + "DateInterval", + "string", "null", ]; - $validFrom = self::checkTypes($validFrom, $types); + $validFor = self::checkTypes($validFor, $types); - $this->validFrom = $validFrom; + $this->validFor = $validFor; } /** - * @return \OpenActive\Models\SchemaOrg\Service|string + * @return Date|DateTime|null */ - public function getIssuedThrough() + public function getValidFrom() { - return $this->issuedThrough; + return $this->validFrom; } /** - * @param \OpenActive\Models\SchemaOrg\Service|string $issuedThrough + * @param Date|DateTime|null $validFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIssuedThrough($issuedThrough) + public function setValidFrom($validFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "string", + "Date", + "DateTime", + "null", ]; - $issuedThrough = self::checkTypes($issuedThrough, $types); + $validFrom = self::checkTypes($validFrom, $types); - $this->issuedThrough = $issuedThrough; + $this->validFrom = $validFrom; } /** @@ -238,28 +238,28 @@ public function setValidIn($validIn) } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return Date|null */ - public function getPermitAudience() + public function getValidUntil() { - return $this->permitAudience; + return $this->validUntil; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $permitAudience + * @param Date|null $validUntil * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPermitAudience($permitAudience) + public function setValidUntil($validUntil) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", - "string", + "Date", + "null", ]; - $permitAudience = self::checkTypes($permitAudience, $types); + $validUntil = self::checkTypes($validUntil, $types); - $this->permitAudience = $permitAudience; + $this->validUntil = $validUntil; } } diff --git a/src/Models/SchemaOrg/Person.php b/src/Models/SchemaOrg/Person.php index cf9a6193..406b8dc6 100644 --- a/src/Models/SchemaOrg/Person.php +++ b/src/Models/SchemaOrg/Person.php @@ -17,185 +17,214 @@ public static function getType() public static function fieldList() { $fields = [ - "spouse" => "spouse", "additionalName" => "additionalName", - "hasCredential" => "hasCredential", - "telephone" => "telephone", - "honorificPrefix" => "honorificPrefix", - "parents" => "parents", - "familyName" => "familyName", - "givenName" => "givenName", - "knowsAbout" => "knowsAbout", - "performerIn" => "performerIn", - "netWorth" => "netWorth", + "address" => "address", + "affiliation" => "affiliation", + "agentInteractionStatistic" => "agentInteractionStatistic", + "alumniOf" => "alumniOf", "award" => "award", - "workLocation" => "workLocation", - "honorificSuffix" => "honorificSuffix", - "deathPlace" => "deathPlace", - "homeLocation" => "homeLocation", - "funding" => "funding", - "vatID" => "vatID", - "height" => "height", - "globalLocationNumber" => "globalLocationNumber", - "contactPoints" => "contactPoints", - "hasOccupation" => "hasOccupation", - "gender" => "gender", - "parent" => "parent", "awards" => "awards", - "sibling" => "sibling", - "jobTitle" => "jobTitle", "birthDate" => "birthDate", - "funder" => "funder", - "makesOffer" => "makesOffer", + "birthPlace" => "birthPlace", + "brand" => "brand", + "callSign" => "callSign", "children" => "children", - "worksFor" => "worksFor", - "knows" => "knows", - "interactionStatistic" => "interactionStatistic", - "address" => "address", - "memberOf" => "memberOf", - "publishingPrinciples" => "publishingPrinciples", + "colleague" => "colleague", "colleagues" => "colleagues", + "contactPoint" => "contactPoint", + "contactPoints" => "contactPoints", "deathDate" => "deathDate", + "deathPlace" => "deathPlace", + "duns" => "duns", "email" => "email", - "affiliation" => "affiliation", - "siblings" => "siblings", - "birthPlace" => "birthPlace", - "brand" => "brand", - "sponsor" => "sponsor", - "naics" => "naics", - "contactPoint" => "contactPoint", - "callSign" => "callSign", - "isicV4" => "isicV4", + "familyName" => "familyName", + "faxNumber" => "faxNumber", + "follows" => "follows", + "funder" => "funder", + "funding" => "funding", + "gender" => "gender", + "givenName" => "givenName", + "globalLocationNumber" => "globalLocationNumber", + "hasCertification" => "hasCertification", + "hasCredential" => "hasCredential", + "hasOccupation" => "hasOccupation", + "hasOfferCatalog" => "hasOfferCatalog", "hasPOS" => "hasPOS", - "alumniOf" => "alumniOf", - "duns" => "duns", - "weight" => "weight", + "height" => "height", + "homeLocation" => "homeLocation", + "honorificPrefix" => "honorificPrefix", + "honorificSuffix" => "honorificSuffix", + "interactionStatistic" => "interactionStatistic", + "isicV4" => "isicV4", + "jobTitle" => "jobTitle", + "knows" => "knows", + "knowsAbout" => "knowsAbout", "knowsLanguage" => "knowsLanguage", + "lifeEvent" => "lifeEvent", + "makesOffer" => "makesOffer", + "memberOf" => "memberOf", + "naics" => "naics", + "nationality" => "nationality", + "netWorth" => "netWorth", + "owns" => "owns", + "parent" => "parent", + "parents" => "parents", + "performerIn" => "performerIn", + "pronouns" => "pronouns", + "publishingPrinciples" => "publishingPrinciples", "relatedTo" => "relatedTo", - "colleague" => "colleague", "seeks" => "seeks", + "sibling" => "sibling", + "siblings" => "siblings", + "skills" => "skills", + "sponsor" => "sponsor", + "spouse" => "spouse", "taxID" => "taxID", - "owns" => "owns", - "hasOfferCatalog" => "hasOfferCatalog", - "follows" => "follows", - "nationality" => "nationality", - "faxNumber" => "faxNumber", + "telephone" => "telephone", + "vatID" => "vatID", + "weight" => "weight", + "workLocation" => "workLocation", + "worksFor" => "worksFor", ]; return array_merge(parent::fieldList(), $fields); } /** - * The person's spouse. + * An additional name for a Person, can be used for a middle name. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $spouse; + protected $additionalName; /** - * An additional name for a Person, can be used for a middle name. + * Physical address of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $additionalName; + protected $address; /** - * A credential awarded to the Person or Organization. + * An organization that this person is affiliated with. For example, a school/university, a club, or a team. * * - * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $hasCredential; + protected $affiliation; /** - * The telephone number. + * The number of completed interactions for this entity, in a particular role (the 'agent'), in a particular action (indicated in the statistic), and in a particular context (i.e. interactionService). + * + * + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string + */ + protected $agentInteractionStatistic; + + /** + * An organization that the person is an alumni of. + * + * + * @var \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string + */ + protected $alumniOf; + + /** + * An award won by or for this item. * * * @var string */ - protected $telephone; + protected $award; /** - * An honorific prefix preceding a Person's name such as Dr/Mrs/Mr. + * Awards won by or for this item. * * * @var string */ - protected $honorificPrefix; + protected $awards; /** - * A parents of the person. + * Date of birth. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var Date|null */ - protected $parents; + protected $birthDate; /** - * Family name. In the U.S., the last name of a Person. + * The place where the person was born. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $familyName; + protected $birthPlace; /** - * Given name. In the U.S., the first name of a Person. + * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * + * + * @var \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string + */ + protected $brand; + + /** + * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles. * * * @var string */ - protected $givenName; + protected $callSign; /** - * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. + * A child of the person. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $knowsAbout; + protected $children; /** - * Event that this person is a performer or participant in. + * A colleague of the person. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $performerIn; + protected $colleague; /** - * The total financial value of the person as calculated by subtracting assets from liabilities. + * A colleague of the person. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $netWorth; + protected $colleagues; /** - * An award won by or for this item. + * A contact point for a person or organization. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $award; + protected $contactPoint; /** - * A contact location for a person's place of work. + * A contact point for a person or organization. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $workLocation; + protected $contactPoints; /** - * An honorific suffix following a Person's name such as M.D. /PhD/MSCSW. + * Date of death. * * - * @var string + * @var Date|null */ - protected $honorificSuffix; + protected $deathDate; /** * The place where the person died. @@ -206,63 +235,63 @@ public static function fieldList() { protected $deathPlace; /** - * A contact location for a person's residence. + * The Dun & Bradstreet DUNS number for identifying an organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @var string */ - protected $homeLocation; + protected $duns; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * Email address. * * - * @var \OpenActive\Models\SchemaOrg\Grant|string + * @var string */ - protected $funding; + protected $email; /** - * The Value-added Tax ID of the organization or person. + * Family name. In the U.S., the last name of a Person. * * * @var string */ - protected $vatID; + protected $familyName; /** - * The height of the item. + * The fax number. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $height; + protected $faxNumber; /** - * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. + * The most generic uni-directional social relation. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $globalLocationNumber; + protected $follows; /** - * A contact point for a person or organization. + * A person or organization that supports (sponsors) something through some kind of financial contribution. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $contactPoints; + protected $funder; /** - * The Person's occupation. For past professions, use Role for expressing dates. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Models\SchemaOrg\Occupation|string + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $hasOccupation; + protected $funding; /** - * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". + * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who are not a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". * * * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null @@ -270,84 +299,92 @@ public static function fieldList() { protected $gender; /** - * A parent of this person. + * Given name. In the U.S., the first name of a Person. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $parent; + protected $givenName; /** - * Awards won by or for this item. + * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. * * * @var string */ - protected $awards; + protected $globalLocationNumber; /** - * A sibling of the person. + * Certification information about a product, organization, service, place, or person. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $sibling; + protected $hasCertification; /** - * The job title of the person (for example, Financial Manager). + * A credential awarded to the Person or Organization. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\Credential|string */ - protected $jobTitle; + protected $hasCredential; /** - * Date of birth. + * The Person's occupation. For past professions, use Role for expressing dates. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Occupation|string */ - protected $birthDate; + protected $hasOccupation; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * Indicates an OfferCatalog listing for this Organization, Person, or Service. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - protected $funder; + protected $hasOfferCatalog; /** - * A pointer to products or services offered by the organization or person. + * Points-of-Sales operated by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $makesOffer; + protected $hasPOS; /** - * A child of the person. + * The height of the item. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $children; + protected $height; /** - * Organizations that the person works for. + * A contact location for a person's residence. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string */ - protected $worksFor; + protected $homeLocation; /** - * The most generic bi-directional social/work relation. + * An honorific prefix preceding a Person's name such as Dr/Mrs/Mr. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $knows; + protected $honorificPrefix; + + /** + * An honorific suffix following a Person's name such as M.D./PhD/MSCSW. + * + * + * @var string + */ + protected $honorificSuffix; /** * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. @@ -358,191 +395,202 @@ public static function fieldList() { protected $interactionStatistic; /** - * Physical address of the item. + * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. * * - * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var string */ - protected $address; + protected $isicV4; /** - * An Organization (or ProgramMembership) to which this Person or Organization belongs. + * The job title of the person (for example, Financial Manager). * * - * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $memberOf; + protected $jobTitle; /** - * 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 most generic bi-directional social/work relation. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $publishingPrinciples; + protected $knows; /** - * A colleague of the person. + * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $colleagues; + protected $knowsAbout; /** - * Date of death. + * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Language|string */ - protected $deathDate; + protected $knowsLanguage; /** - * Email address. + * A life event like baptism, communions, Bar Mitzvahs, Aqiqah, Namakarana, Miyamairi, burial, .... * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $email; + protected $lifeEvent; /** - * An organization that this person is affiliated with. For example, a school/university, a club, or a team. + * A pointer to products or services offered by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $affiliation; + protected $makesOffer; /** - * A sibling of the person. + * An Organization (or ProgramMembership) to which this Person or Organization belongs. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string */ - protected $siblings; + protected $memberOf; /** - * The place where the person was born. + * The North American Industry Classification System (NAICS) code for a particular organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $birthPlace; + protected $naics; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * Nationality of the person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $brand; + protected $nationality; /** - * 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 total financial value of the person as calculated by subtracting the total value of liabilities from the total value of assets. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $sponsor; + protected $netWorth; /** - * The North American Industry Classification System (NAICS) code for a particular organization or business person. + * Things owned by the organization or person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $naics; + protected $owns; /** - * A contact point for a person or organization. + * A parent of this person. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $contactPoint; + protected $parent; /** - * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles. + * A parents of the person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $callSign; + protected $parents; /** - * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * Event that this person is a performer or participant in. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $isicV4; + protected $performerIn; /** - * Points-of-Sales operated by the organization or person. + * A short string listing or describing pronouns for a person. Typically the person concerned is the best authority as pronouns are a critical part of personal identity and expression. Publishers and consumers of this information are reminded to treat this data responsibly, take country-specific laws related to gender expression into account, and be wary of out-of-date data and drawing unwarranted inferences about the person being described. + * + * In English, formulations such as "they/them", "she/her", and "he/him" are commonly used online and can also be used here. We do not intend to enumerate all possible micro-syntaxes in all languages. More structured and well-defined external values for pronouns can be referenced using the [[StructuredValue]] or [[DefinedTerm]] values. + * * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\StructuredValue|string */ - protected $hasPOS; + protected $pronouns; /** - * An organization that the person is an alumni of. + * 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\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $alumniOf; + protected $publishingPrinciples; /** - * The Dun & Bradstreet DUNS number for identifying an organization or business person. + * The most generic familial relation. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $duns; + protected $relatedTo; /** - * The weight of the product or person. + * A pointer to products or services sought by the organization or person (demand). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Demand|string */ - protected $weight; + protected $seeks; /** - * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). + * A sibling of the person. * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $knowsLanguage; + protected $sibling; + + /** + * A sibling of the person. + * + * + * @var \OpenActive\Models\SchemaOrg\Person|string + */ + protected $siblings; /** - * The most generic familial relation. + * 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\Person|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $relatedTo; + protected $skills; /** - * A colleague of the person. + * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $colleague; + protected $sponsor; /** - * A pointer to products or services sought by the organization or person (demand). + * The person's spouse. * * - * @var \OpenActive\Models\SchemaOrg\Demand|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $seeks; + protected $spouse; /** * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. @@ -553,388 +601,466 @@ public static function fieldList() { protected $taxID; /** - * Products owned by the organization or person. + * The telephone number. * * - * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @var string */ - protected $owns; + protected $telephone; /** - * Indicates an OfferCatalog listing for this Organization, Person, or Service. + * The value-added Tax ID of the organization or person with national prefix (for example IT123456789). Can also be described as [[iso6523Code]] with proper prefix. * * - * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @var string */ - protected $hasOfferCatalog; + protected $vatID; /** - * The most generic uni-directional social relation. + * The weight of the product or person. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $follows; + protected $weight; /** - * Nationality of the person. + * A contact location for a person's place of work. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string */ - protected $nationality; + protected $workLocation; /** - * The fax number. + * Organizations that the person works for. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $faxNumber; + protected $worksFor; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getSpouse() + public function getAdditionalName() { - return $this->spouse; + return $this->additionalName; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $spouse + * @param string $additionalName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpouse($spouse) + public function setAdditionalName($additionalName) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $spouse = self::checkTypes($spouse, $types); + $additionalName = self::checkTypes($additionalName, $types); - $this->spouse = $spouse; + $this->additionalName = $additionalName; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getAdditionalName() + public function getAddress() { - return $this->additionalName; + return $this->address; } /** - * @param string $additionalName + * @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 setAdditionalName($additionalName) + public function setAddress($address) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PostalAddress", + "string", + ]; + + $address = self::checkTypes($address, $types); + + $this->address = $address; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|string + */ + public function getAffiliation() + { + return $this->affiliation; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|string $affiliation + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAffiliation($affiliation) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $additionalName = self::checkTypes($additionalName, $types); + $affiliation = self::checkTypes($affiliation, $types); - $this->additionalName = $additionalName; + $this->affiliation = $affiliation; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getHasCredential() + public function getAgentInteractionStatistic() { - return $this->hasCredential; + return $this->agentInteractionStatistic; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential + * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $agentInteractionStatistic * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasCredential($hasCredential) + public function setAgentInteractionStatistic($agentInteractionStatistic) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $hasCredential = self::checkTypes($hasCredential, $types); + $agentInteractionStatistic = self::checkTypes($agentInteractionStatistic, $types); - $this->hasCredential = $hasCredential; + $this->agentInteractionStatistic = $agentInteractionStatistic; + } + + /** + * @return \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string + */ + public function getAlumniOf() + { + return $this->alumniOf; + } + + /** + * @param \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string $alumniOf + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAlumniOf($alumniOf) + { + $types = [ + "\OpenActive\Models\SchemaOrg\EducationalOrganization", + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; + + $alumniOf = self::checkTypes($alumniOf, $types); + + $this->alumniOf = $alumniOf; } /** * @return string */ - public function getTelephone() + public function getAward() { - return $this->telephone; + return $this->award; } /** - * @param string $telephone + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTelephone($telephone) + public function setAward($award) { $types = [ "string", ]; - $telephone = self::checkTypes($telephone, $types); + $award = self::checkTypes($award, $types); - $this->telephone = $telephone; + $this->award = $award; } /** * @return string */ - public function getHonorificPrefix() + public function getAwards() { - return $this->honorificPrefix; + return $this->awards; } /** - * @param string $honorificPrefix + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHonorificPrefix($honorificPrefix) + public function setAwards($awards) { $types = [ "string", ]; - $honorificPrefix = self::checkTypes($honorificPrefix, $types); + $awards = self::checkTypes($awards, $types); - $this->honorificPrefix = $honorificPrefix; + $this->awards = $awards; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return Date|null */ - public function getParents() + public function getBirthDate() { - return $this->parents; + return $this->birthDate; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $parents + * @param Date|null $birthDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setParents($parents) + public function setBirthDate($birthDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "Date", + "null", + ]; + + $birthDate = self::checkTypes($birthDate, $types); + + $this->birthDate = $birthDate; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Place|string + */ + public function getBirthPlace() + { + return $this->birthPlace; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Place|string $birthPlace + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setBirthPlace($birthPlace) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $parents = self::checkTypes($parents, $types); + $birthPlace = self::checkTypes($birthPlace, $types); - $this->parents = $parents; + $this->birthPlace = $birthPlace; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getFamilyName() + public function getBrand() { - return $this->familyName; + return $this->brand; } /** - * @param string $familyName + * @param \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFamilyName($familyName) + public function setBrand($brand) { $types = [ + "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $familyName = self::checkTypes($familyName, $types); + $brand = self::checkTypes($brand, $types); - $this->familyName = $familyName; + $this->brand = $brand; } /** * @return string */ - public function getGivenName() + public function getCallSign() { - return $this->givenName; + return $this->callSign; } /** - * @param string $givenName + * @param string $callSign * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGivenName($givenName) + public function setCallSign($callSign) { $types = [ "string", ]; - $givenName = self::checkTypes($givenName, $types); + $callSign = self::checkTypes($callSign, $types); - $this->givenName = $givenName; + $this->callSign = $callSign; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getKnowsAbout() + public function getChildren() { - return $this->knowsAbout; + return $this->children; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout + * @param \OpenActive\Models\SchemaOrg\Person|string $children * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnowsAbout($knowsAbout) + public function setChildren($children) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $knowsAbout = self::checkTypes($knowsAbout, $types); + $children = self::checkTypes($children, $types); - $this->knowsAbout = $knowsAbout; + $this->children = $children; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getPerformerIn() + public function getColleague() { - return $this->performerIn; + return $this->colleague; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $performerIn + * @param \OpenActive\Models\SchemaOrg\Person|string $colleague * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPerformerIn($performerIn) + public function setColleague($colleague) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $performerIn = self::checkTypes($performerIn, $types); + $colleague = self::checkTypes($colleague, $types); - $this->performerIn = $performerIn; + $this->colleague = $colleague; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNetWorth() + public function getColleagues() { - return $this->netWorth; + return $this->colleagues; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $netWorth + * @param \OpenActive\Models\SchemaOrg\Person|string $colleagues * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNetWorth($netWorth) + public function setColleagues($colleagues) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $netWorth = self::checkTypes($netWorth, $types); + $colleagues = self::checkTypes($colleagues, $types); - $this->netWorth = $netWorth; + $this->colleagues = $colleagues; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getAward() + public function getContactPoint() { - return $this->award; + return $this->contactPoint; } /** - * @param string $award + * @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 setAward($award) + public function setContactPoint($contactPoint) { $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $award = self::checkTypes($award, $types); + $contactPoint = self::checkTypes($contactPoint, $types); - $this->award = $award; + $this->contactPoint = $contactPoint; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getWorkLocation() + public function getContactPoints() { - return $this->workLocation; + return $this->contactPoints; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string $workLocation + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkLocation($workLocation) + public function setContactPoints($contactPoints) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $workLocation = self::checkTypes($workLocation, $types); + $contactPoints = self::checkTypes($contactPoints, $types); - $this->workLocation = $workLocation; + $this->contactPoints = $contactPoints; } /** - * @return string + * @return Date|null */ - public function getHonorificSuffix() + public function getDeathDate() { - return $this->honorificSuffix; + return $this->deathDate; } /** - * @param string $honorificSuffix + * @param Date|null $deathDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHonorificSuffix($honorificSuffix) + public function setDeathDate($deathDate) { $types = [ - "string", + "Date", + "null", ]; - $honorificSuffix = self::checkTypes($honorificSuffix, $types); + $deathDate = self::checkTypes($deathDate, $types); - $this->honorificSuffix = $honorificSuffix; + $this->deathDate = $deathDate; } /** @@ -963,178 +1089,175 @@ public function setDeathPlace($deathPlace) } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @return string */ - public function getHomeLocation() + public function getDuns() { - return $this->homeLocation; + return $this->duns; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string $homeLocation + * @param string $duns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHomeLocation($homeLocation) + public function setDuns($duns) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $homeLocation = self::checkTypes($homeLocation, $types); + $duns = self::checkTypes($duns, $types); - $this->homeLocation = $homeLocation; + $this->duns = $duns; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return string */ - public function getFunding() + public function getEmail() { - return $this->funding; + return $this->email; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @param string $email * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunding($funding) + public function setEmail($email) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $funding = self::checkTypes($funding, $types); + $email = self::checkTypes($email, $types); - $this->funding = $funding; + $this->email = $email; } /** * @return string */ - public function getVatID() + public function getFamilyName() { - return $this->vatID; + return $this->familyName; } /** - * @param string $vatID + * @param string $familyName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVatID($vatID) + public function setFamilyName($familyName) { $types = [ "string", ]; - $vatID = self::checkTypes($vatID, $types); + $familyName = self::checkTypes($familyName, $types); - $this->vatID = $vatID; + $this->familyName = $familyName; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getHeight() + public function getFaxNumber() { - return $this->height; + return $this->faxNumber; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeight($height) + public function setFaxNumber($faxNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $height = self::checkTypes($height, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->height = $height; + $this->faxNumber = $faxNumber; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGlobalLocationNumber() + public function getFollows() { - return $this->globalLocationNumber; + return $this->follows; } /** - * @param string $globalLocationNumber + * @param \OpenActive\Models\SchemaOrg\Person|string $follows * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGlobalLocationNumber($globalLocationNumber) + public function setFollows($follows) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); + $follows = self::checkTypes($follows, $types); - $this->globalLocationNumber = $globalLocationNumber; + $this->follows = $follows; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getContactPoints() + public function getFunder() { - return $this->contactPoints; + return $this->funder; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints + * @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 setContactPoints($contactPoints) + public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $contactPoints = self::checkTypes($contactPoints, $types); + $funder = self::checkTypes($funder, $types); - $this->contactPoints = $contactPoints; + $this->funder = $funder; } /** - * @return \OpenActive\Models\SchemaOrg\Occupation|string + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - public function getHasOccupation() + public function getFunding() { - return $this->hasOccupation; + return $this->funding; } /** - * @param \OpenActive\Models\SchemaOrg\Occupation|string $hasOccupation + * @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 setHasOccupation($hasOccupation) + public function setFunding($funding) { $types = [ - "\OpenActive\Models\SchemaOrg\Occupation", + "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $hasOccupation = self::checkTypes($hasOccupation, $types); + $funding = self::checkTypes($funding, $types); - $this->hasOccupation = $hasOccupation; + $this->funding = $funding; } /** @@ -1164,852 +1287,904 @@ public function setGender($gender) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getParent() + public function getGivenName() { - return $this->parent; + return $this->givenName; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $parent + * @param string $givenName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setParent($parent) + public function setGivenName($givenName) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $parent = self::checkTypes($parent, $types); + $givenName = self::checkTypes($givenName, $types); - $this->parent = $parent; + $this->givenName = $givenName; } /** * @return string */ - public function getAwards() + public function getGlobalLocationNumber() { - return $this->awards; + return $this->globalLocationNumber; } /** - * @param string $awards + * @param string $globalLocationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setGlobalLocationNumber($globalLocationNumber) { $types = [ "string", ]; - $awards = self::checkTypes($awards, $types); + $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); - $this->awards = $awards; + $this->globalLocationNumber = $globalLocationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getSibling() + public function getHasCertification() { - return $this->sibling; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $sibling + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSibling($sibling) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $sibling = self::checkTypes($sibling, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->sibling = $sibling; + $this->hasCertification = $hasCertification; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\Credential|string */ - public function getJobTitle() + public function getHasCredential() { - return $this->jobTitle; + return $this->hasCredential; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $jobTitle + * @param \OpenActive\Models\SchemaOrg\Credential|string $hasCredential * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobTitle($jobTitle) + public function setHasCredential($hasCredential) { $types = [ + "\OpenActive\Models\SchemaOrg\Credential", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $jobTitle = self::checkTypes($jobTitle, $types); + $hasCredential = self::checkTypes($hasCredential, $types); - $this->jobTitle = $jobTitle; + $this->hasCredential = $hasCredential; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Occupation|string + */ + public function getHasOccupation() + { + return $this->hasOccupation; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Occupation|string $hasOccupation + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHasOccupation($hasOccupation) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Occupation", + "string", + ]; + + $hasOccupation = self::checkTypes($hasOccupation, $types); + + $this->hasOccupation = $hasOccupation; + } + + /** + * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + */ + public function getHasOfferCatalog() + { + return $this->hasOfferCatalog; + } + + /** + * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHasOfferCatalog($hasOfferCatalog) + { + $types = [ + "\OpenActive\Models\SchemaOrg\OfferCatalog", + "string", + ]; + + $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + + $this->hasOfferCatalog = $hasOfferCatalog; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getBirthDate() + public function getHasPOS() { - return $this->birthDate; + return $this->hasPOS; } /** - * @param Date|null $birthDate + * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBirthDate($birthDate) + public function setHasPOS($hasPOS) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $birthDate = self::checkTypes($birthDate, $types); + $hasPOS = self::checkTypes($hasPOS, $types); - $this->birthDate = $birthDate; + $this->hasPOS = $hasPOS; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getFunder() + public function getHeight() { - return $this->funder; + return $this->height; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @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 setFunder($funder) + public function setHeight($height) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $funder = self::checkTypes($funder, $types); + $height = self::checkTypes($height, $types); - $this->funder = $funder; + $this->height = $height; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string */ - public function getMakesOffer() + public function getHomeLocation() { - return $this->makesOffer; + return $this->homeLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer + * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string $homeLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMakesOffer($makesOffer) + public function setHomeLocation($homeLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $makesOffer = self::checkTypes($makesOffer, $types); + $homeLocation = self::checkTypes($homeLocation, $types); - $this->makesOffer = $makesOffer; + $this->homeLocation = $homeLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getChildren() + public function getHonorificPrefix() { - return $this->children; + return $this->honorificPrefix; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $children + * @param string $honorificPrefix * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setChildren($children) + public function setHonorificPrefix($honorificPrefix) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $children = self::checkTypes($children, $types); + $honorificPrefix = self::checkTypes($honorificPrefix, $types); - $this->children = $children; + $this->honorificPrefix = $honorificPrefix; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getWorksFor() + public function getHonorificSuffix() { - return $this->worksFor; + return $this->honorificSuffix; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $worksFor + * @param string $honorificSuffix * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorksFor($worksFor) + public function setHonorificSuffix($honorificSuffix) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $worksFor = self::checkTypes($worksFor, $types); + $honorificSuffix = self::checkTypes($honorificSuffix, $types); - $this->worksFor = $worksFor; + $this->honorificSuffix = $honorificSuffix; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getKnows() + public function getInteractionStatistic() { - return $this->knows; + return $this->interactionStatistic; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $knows + * @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 setKnows($knows) + public function setInteractionStatistic($interactionStatistic) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $knows = self::checkTypes($knows, $types); + $interactionStatistic = self::checkTypes($interactionStatistic, $types); - $this->knows = $knows; + $this->interactionStatistic = $interactionStatistic; } /** - * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @return string */ - public function getInteractionStatistic() + public function getIsicV4() { - return $this->interactionStatistic; + return $this->isicV4; } /** - * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic + * @param string $isicV4 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionStatistic($interactionStatistic) + public function setIsicV4($isicV4) { $types = [ - "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $interactionStatistic = self::checkTypes($interactionStatistic, $types); + $isicV4 = self::checkTypes($isicV4, $types); - $this->interactionStatistic = $interactionStatistic; + $this->isicV4 = $isicV4; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getAddress() + public function getJobTitle() { - return $this->address; + return $this->jobTitle; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $jobTitle * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddress($address) + public function setJobTitle($jobTitle) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $address = self::checkTypes($address, $types); + $jobTitle = self::checkTypes($jobTitle, $types); - $this->address = $address; + $this->jobTitle = $jobTitle; } /** - * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getMemberOf() + public function getKnows() { - return $this->memberOf; + return $this->knows; } /** - * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf + * @param \OpenActive\Models\SchemaOrg\Person|string $knows * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMemberOf($memberOf) + public function setKnows($knows) { $types = [ - "\OpenActive\Models\SchemaOrg\ProgramMembership", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $memberOf = self::checkTypes($memberOf, $types); + $knows = self::checkTypes($knows, $types); - $this->memberOf = $memberOf; + $this->knows = $knows; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getPublishingPrinciples() + public function getKnowsAbout() { - return $this->publishingPrinciples; + return $this->knowsAbout; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples + * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublishingPrinciples($publishingPrinciples) + public function setKnowsAbout($knowsAbout) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); + $knowsAbout = self::checkTypes($knowsAbout, $types); - $this->publishingPrinciples = $publishingPrinciples; + $this->knowsAbout = $knowsAbout; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getColleagues() + public function getKnowsLanguage() { - return $this->colleagues; + return $this->knowsLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colleagues + * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setColleagues($colleagues) + public function setKnowsLanguage($knowsLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $colleagues = self::checkTypes($colleagues, $types); + $knowsLanguage = self::checkTypes($knowsLanguage, $types); - $this->colleagues = $colleagues; + $this->knowsLanguage = $knowsLanguage; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getDeathDate() + public function getLifeEvent() { - return $this->deathDate; + return $this->lifeEvent; } /** - * @param Date|null $deathDate + * @param \OpenActive\Models\SchemaOrg\Event|string $lifeEvent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeathDate($deathDate) + public function setLifeEvent($lifeEvent) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Event", + "string", ]; - $deathDate = self::checkTypes($deathDate, $types); + $lifeEvent = self::checkTypes($lifeEvent, $types); - $this->deathDate = $deathDate; + $this->lifeEvent = $lifeEvent; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getEmail() + public function getMakesOffer() { - return $this->email; + return $this->makesOffer; } /** - * @param string $email + * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmail($email) + public function setMakesOffer($makesOffer) { $types = [ + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $email = self::checkTypes($email, $types); + $makesOffer = self::checkTypes($makesOffer, $types); - $this->email = $email; + $this->makesOffer = $makesOffer; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string */ - public function getAffiliation() + public function getMemberOf() { - return $this->affiliation; + return $this->memberOf; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $affiliation + * @param \OpenActive\Models\SchemaOrg\MemberProgramTier|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string $memberOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAffiliation($affiliation) + public function setMemberOf($memberOf) { $types = [ + "\OpenActive\Models\SchemaOrg\MemberProgramTier", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ProgramMembership", "string", ]; - $affiliation = self::checkTypes($affiliation, $types); + $memberOf = self::checkTypes($memberOf, $types); - $this->affiliation = $affiliation; + $this->memberOf = $memberOf; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getSiblings() + public function getNaics() { - return $this->siblings; + return $this->naics; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $siblings + * @param string $naics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSiblings($siblings) + public function setNaics($naics) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $siblings = self::checkTypes($siblings, $types); + $naics = self::checkTypes($naics, $types); - $this->siblings = $siblings; + $this->naics = $naics; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getBirthPlace() + public function getNationality() { - return $this->birthPlace; + return $this->nationality; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $birthPlace + * @param \OpenActive\Models\SchemaOrg\Country|string $nationality * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBirthPlace($birthPlace) + public function setNationality($nationality) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $birthPlace = self::checkTypes($birthPlace, $types); + $nationality = self::checkTypes($nationality, $types); - $this->birthPlace = $birthPlace; + $this->nationality = $nationality; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getBrand() + public function getNetWorth() { - return $this->brand; + return $this->netWorth; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $netWorth * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBrand($brand) + public function setNetWorth($netWorth) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $brand = self::checkTypes($brand, $types); + $netWorth = self::checkTypes($netWorth, $types); - $this->brand = $brand; + $this->netWorth = $netWorth; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getSponsor() + public function getOwns() { - return $this->sponsor; + return $this->owns; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @param \OpenActive\Models\SchemaOrg\Thing|string $owns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSponsor($sponsor) + public function setOwns($owns) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $sponsor = self::checkTypes($sponsor, $types); + $owns = self::checkTypes($owns, $types); - $this->sponsor = $sponsor; + $this->owns = $owns; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNaics() + public function getParent() { - return $this->naics; + return $this->parent; } /** - * @param string $naics + * @param \OpenActive\Models\SchemaOrg\Person|string $parent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNaics($naics) + public function setParent($parent) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $naics = self::checkTypes($naics, $types); + $parent = self::checkTypes($parent, $types); - $this->naics = $naics; + $this->parent = $parent; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getContactPoint() + public function getParents() { - return $this->contactPoint; + return $this->parents; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint + * @param \OpenActive\Models\SchemaOrg\Person|string $parents * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoint($contactPoint) + public function setParents($parents) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $contactPoint = self::checkTypes($contactPoint, $types); + $parents = self::checkTypes($parents, $types); - $this->contactPoint = $contactPoint; + $this->parents = $parents; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getCallSign() + public function getPerformerIn() { - return $this->callSign; + return $this->performerIn; } /** - * @param string $callSign + * @param \OpenActive\Models\SchemaOrg\Event|string $performerIn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCallSign($callSign) + public function setPerformerIn($performerIn) { $types = [ + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $callSign = self::checkTypes($callSign, $types); + $performerIn = self::checkTypes($performerIn, $types); - $this->callSign = $callSign; + $this->performerIn = $performerIn; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\StructuredValue|string */ - public function getIsicV4() + public function getPronouns() { - return $this->isicV4; + return $this->pronouns; } /** - * @param string $isicV4 + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\StructuredValue|string $pronouns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsicV4($isicV4) + public function setPronouns($pronouns) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\StructuredValue", "string", ]; - $isicV4 = self::checkTypes($isicV4, $types); + $pronouns = self::checkTypes($pronouns, $types); - $this->isicV4 = $isicV4; + $this->pronouns = $pronouns; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getHasPOS() + public function getPublishingPrinciples() { - return $this->hasPOS; + return $this->publishingPrinciples; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS + * @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 setHasPOS($hasPOS) + public function setPublishingPrinciples($publishingPrinciples) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $hasPOS = self::checkTypes($hasPOS, $types); + $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); - $this->hasPOS = $hasPOS; + $this->publishingPrinciples = $publishingPrinciples; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getAlumniOf() + public function getRelatedTo() { - return $this->alumniOf; + return $this->relatedTo; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string $alumniOf + * @param \OpenActive\Models\SchemaOrg\Person|string $relatedTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlumniOf($alumniOf) + public function setRelatedTo($relatedTo) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOrganization", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $alumniOf = self::checkTypes($alumniOf, $types); + $relatedTo = self::checkTypes($relatedTo, $types); - $this->alumniOf = $alumniOf; + $this->relatedTo = $relatedTo; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Demand|string */ - public function getDuns() + public function getSeeks() { - return $this->duns; + return $this->seeks; } /** - * @param string $duns + * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuns($duns) + public function setSeeks($seeks) { $types = [ + "\OpenActive\Models\SchemaOrg\Demand", "string", ]; - $duns = self::checkTypes($duns, $types); + $seeks = self::checkTypes($seeks, $types); - $this->duns = $duns; + $this->seeks = $seeks; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getWeight() + public function getSibling() { - return $this->weight; + return $this->sibling; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight + * @param \OpenActive\Models\SchemaOrg\Person|string $sibling * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWeight($weight) + public function setSibling($sibling) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $weight = self::checkTypes($weight, $types); + $sibling = self::checkTypes($sibling, $types); - $this->weight = $weight; + $this->sibling = $sibling; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getKnowsLanguage() + public function getSiblings() { - return $this->knowsLanguage; + return $this->siblings; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage + * @param \OpenActive\Models\SchemaOrg\Person|string $siblings * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnowsLanguage($knowsLanguage) + public function setSiblings($siblings) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $knowsLanguage = self::checkTypes($knowsLanguage, $types); + $siblings = self::checkTypes($siblings, $types); - $this->knowsLanguage = $knowsLanguage; + $this->siblings = $siblings; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getRelatedTo() + public function getSkills() { - return $this->relatedTo; + return $this->skills; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $relatedTo + * @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 setRelatedTo($relatedTo) + public function setSkills($skills) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $relatedTo = self::checkTypes($relatedTo, $types); + $skills = self::checkTypes($skills, $types); - $this->relatedTo = $relatedTo; + $this->skills = $skills; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getColleague() + public function getSponsor() { - return $this->colleague; + return $this->sponsor; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colleague + * @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 setColleague($colleague) + public function setSponsor($sponsor) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $colleague = self::checkTypes($colleague, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->colleague = $colleague; + $this->sponsor = $sponsor; } /** - * @return \OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSeeks() + public function getSpouse() { - return $this->seeks; + return $this->spouse; } /** - * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks + * @param \OpenActive\Models\SchemaOrg\Person|string $spouse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeeks($seeks) + public function setSpouse($spouse) { $types = [ - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $seeks = self::checkTypes($seeks, $types); + $spouse = self::checkTypes($spouse, $types); - $this->seeks = $seeks; + $this->spouse = $spouse; } /** @@ -2037,128 +2212,128 @@ public function setTaxID($taxID) } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @return string */ - public function getOwns() + public function getTelephone() { - return $this->owns; + return $this->telephone; } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns + * @param string $telephone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOwns($owns) + public function setTelephone($telephone) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\OwnershipInfo", "string", ]; - $owns = self::checkTypes($owns, $types); + $telephone = self::checkTypes($telephone, $types); - $this->owns = $owns; + $this->telephone = $telephone; } /** - * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return string */ - public function getHasOfferCatalog() + public function getVatID() { - return $this->hasOfferCatalog; + return $this->vatID; } /** - * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @param string $vatID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasOfferCatalog($hasOfferCatalog) + public function setVatID($vatID) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + $vatID = self::checkTypes($vatID, $types); - $this->hasOfferCatalog = $hasOfferCatalog; + $this->vatID = $vatID; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getFollows() + public function getWeight() { - return $this->follows; + return $this->weight; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $follows + * @param \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFollows($follows) + public function setWeight($weight) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Mass", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $follows = self::checkTypes($follows, $types); + $weight = self::checkTypes($weight, $types); - $this->follows = $follows; + $this->weight = $weight; } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string */ - public function getNationality() + public function getWorkLocation() { - return $this->nationality; + return $this->workLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $nationality + * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string $workLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNationality($nationality) + public function setWorkLocation($workLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $nationality = self::checkTypes($nationality, $types); + $workLocation = self::checkTypes($workLocation, $types); - $this->nationality = $nationality; + $this->workLocation = $workLocation; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getFaxNumber() + public function getWorksFor() { - return $this->faxNumber; + return $this->worksFor; } /** - * @param string $faxNumber + * @param \OpenActive\Models\SchemaOrg\Organization|string $worksFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFaxNumber($faxNumber) + public function setWorksFor($worksFor) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $worksFor = self::checkTypes($worksFor, $types); - $this->faxNumber = $faxNumber; + $this->worksFor = $worksFor; } } diff --git a/src/Models/SchemaOrg/Pharmacy.php b/src/Models/SchemaOrg/Pharmacy.php index 7d42cf23..98d3f065 100644 --- a/src/Models/SchemaOrg/Pharmacy.php +++ b/src/Models/SchemaOrg/Pharmacy.php @@ -5,7 +5,7 @@ /** * */ -class Pharmacy extends \OpenActive\Models\SchemaOrg\MedicalOrganization +class Pharmacy extends \OpenActive\Models\SchemaOrg\MedicalBusiness { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/PhysicalActivity.php b/src/Models/SchemaOrg/PhysicalActivity.php index 7607ab7b..dbbd215c 100644 --- a/src/Models/SchemaOrg/PhysicalActivity.php +++ b/src/Models/SchemaOrg/PhysicalActivity.php @@ -17,148 +17,148 @@ public static function getType() public static function fieldList() { $fields = [ - "category" => "category", - "pathophysiology" => "pathophysiology", "associatedAnatomy" => "associatedAnatomy", + "category" => "category", "epidemiology" => "epidemiology", + "pathophysiology" => "pathophysiology", ]; return array_merge(parent::fieldList(), $fields); } /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * The anatomy of the underlying organ system or structures associated with this entity. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string */ - protected $category; + protected $associatedAnatomy; /** - * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition. + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ - protected $pathophysiology; + protected $category; /** - * The anatomy of the underlying organ system or structures associated with this entity. + * The characteristics of associated patients, such as age, gender, race etc. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string + * @var string */ - protected $associatedAnatomy; + protected $epidemiology; /** - * The characteristics of associated patients, such as age, gender, race etc. + * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition. * * * @var string */ - protected $epidemiology; + protected $pathophysiology; /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string */ - public function getCategory() + public function getAssociatedAnatomy() { - return $this->category; + return $this->associatedAnatomy; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @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 setCategory($category) + public function setAssociatedAnatomy($associatedAnatomy) { $types = [ + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", + "\OpenActive\Models\SchemaOrg\SuperficialAnatomy", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", ]; - $category = self::checkTypes($category, $types); + $associatedAnatomy = self::checkTypes($associatedAnatomy, $types); - $this->category = $category; + $this->associatedAnatomy = $associatedAnatomy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ - public function getPathophysiology() + public function getCategory() { - return $this->pathophysiology; + return $this->category; } /** - * @param string $pathophysiology + * @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 setPathophysiology($pathophysiology) + public function setCategory($category) { $types = [ + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", "string", + "\OpenActive\Models\SchemaOrg\Thing", + "null", ]; - $pathophysiology = self::checkTypes($pathophysiology, $types); + $category = self::checkTypes($category, $types); - $this->pathophysiology = $pathophysiology; + $this->category = $category; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string + * @return string */ - public function getAssociatedAnatomy() + public function getEpidemiology() { - return $this->associatedAnatomy; + return $this->epidemiology; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $associatedAnatomy + * @param string $epidemiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedAnatomy($associatedAnatomy) + public function setEpidemiology($epidemiology) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", - "\OpenActive\Models\SchemaOrg\SuperficialAnatomy", "string", ]; - $associatedAnatomy = self::checkTypes($associatedAnatomy, $types); + $epidemiology = self::checkTypes($epidemiology, $types); - $this->associatedAnatomy = $associatedAnatomy; + $this->epidemiology = $epidemiology; } /** * @return string */ - public function getEpidemiology() + public function getPathophysiology() { - return $this->epidemiology; + return $this->pathophysiology; } /** - * @param string $epidemiology + * @param string $pathophysiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpidemiology($epidemiology) + public function setPathophysiology($pathophysiology) { $types = [ "string", ]; - $epidemiology = self::checkTypes($epidemiology, $types); + $pathophysiology = self::checkTypes($pathophysiology, $types); - $this->epidemiology = $epidemiology; + $this->pathophysiology = $pathophysiology; } } diff --git a/src/Models/SchemaOrg/Physician.php b/src/Models/SchemaOrg/Physician.php index 1431e4a1..b84d2ed7 100644 --- a/src/Models/SchemaOrg/Physician.php +++ b/src/Models/SchemaOrg/Physician.php @@ -5,7 +5,7 @@ /** * */ -class Physician extends \OpenActive\Models\SchemaOrg\MedicalOrganization +class Physician extends \OpenActive\Models\SchemaOrg\MedicalBusiness { /** * @return string[]|null @@ -18,8 +18,10 @@ public static function getType() public static function fieldList() { $fields = [ "availableService" => "availableService", - "medicalSpecialty" => "medicalSpecialty", "hospitalAffiliation" => "hospitalAffiliation", + "medicalSpecialty" => "medicalSpecialty", + "occupationalCategory" => "occupationalCategory", + "usNPI" => "usNPI", ]; return array_merge(parent::fieldList(), $fields); @@ -29,10 +31,18 @@ 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; + /** + * A hospital with which the physician or office is affiliated. + * + * + * @var \OpenActive\Models\SchemaOrg\Hospital|string + */ + protected $hospitalAffiliation; + /** * A medical specialty of the provider. * @@ -42,15 +52,25 @@ public static function fieldList() { protected $medicalSpecialty; /** - * A hospital with which the physician or office is affiliated. + * 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\Hospital|string + * @var \OpenActive\Models\SchemaOrg\CategoryCode|string */ - protected $hospitalAffiliation; + protected $occupationalCategory; + + /** + * A National Provider Identifier (NPI) + * is a unique 10-digit identification number issued to health care providers in the United States by the Centers for Medicare and Medicaid Services. + * + * + * @var string + */ + protected $usNPI; /** - * @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 +78,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", ]; @@ -76,6 +96,31 @@ public function setAvailableService($availableService) $this->availableService = $availableService; } + /** + * @return \OpenActive\Models\SchemaOrg\Hospital|string + */ + public function getHospitalAffiliation() + { + return $this->hospitalAffiliation; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Hospital|string $hospitalAffiliation + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHospitalAffiliation($hospitalAffiliation) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Hospital", + "string", + ]; + + $hospitalAffiliation = self::checkTypes($hospitalAffiliation, $types); + + $this->hospitalAffiliation = $hospitalAffiliation; + } + /** * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string */ @@ -102,28 +147,52 @@ public function setMedicalSpecialty($medicalSpecialty) } /** - * @return \OpenActive\Models\SchemaOrg\Hospital|string + * @return \OpenActive\Models\SchemaOrg\CategoryCode|string */ - public function getHospitalAffiliation() + public function getOccupationalCategory() { - return $this->hospitalAffiliation; + return $this->occupationalCategory; } /** - * @param \OpenActive\Models\SchemaOrg\Hospital|string $hospitalAffiliation + * @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 setHospitalAffiliation($hospitalAffiliation) + public function setOccupationalCategory($occupationalCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\Hospital", + "\OpenActive\Models\SchemaOrg\CategoryCode", "string", ]; - $hospitalAffiliation = self::checkTypes($hospitalAffiliation, $types); + $occupationalCategory = self::checkTypes($occupationalCategory, $types); - $this->hospitalAffiliation = $hospitalAffiliation; + $this->occupationalCategory = $occupationalCategory; + } + + /** + * @return string + */ + public function getUsNPI() + { + return $this->usNPI; + } + + /** + * @param string $usNPI + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setUsNPI($usNPI) + { + $types = [ + "string", + ]; + + $usNPI = self::checkTypes($usNPI, $types); + + $this->usNPI = $usNPI; } } diff --git a/src/Models/SchemaOrg/PhysiciansOffice.php b/src/Models/SchemaOrg/PhysiciansOffice.php new file mode 100644 index 00000000..cc13b02a --- /dev/null +++ b/src/Models/SchemaOrg/PhysiciansOffice.php @@ -0,0 +1,25 @@ + "telephone", - "review" => "review", - "maps" => "maps", - "geoContains" => "geoContains", - "maximumAttendeeCapacity" => "maximumAttendeeCapacity", - "containsPlace" => "containsPlace", - "smokingAllowed" => "smokingAllowed", - "globalLocationNumber" => "globalLocationNumber", - "keywords" => "keywords", - "geoIntersects" => "geoIntersects", - "latitude" => "latitude", - "geoTouches" => "geoTouches", - "geoCoveredBy" => "geoCoveredBy", - "aggregateRating" => "aggregateRating", + "additionalProperty" => "additionalProperty", "address" => "address", - "geoEquals" => "geoEquals", - "map" => "map", - "publicAccess" => "publicAccess", - "geoCrosses" => "geoCrosses", - "containedInPlace" => "containedInPlace", + "aggregateRating" => "aggregateRating", "amenityFeature" => "amenityFeature", - "slogan" => "slogan", - "photos" => "photos", - "geoCovers" => "geoCovers", + "branchCode" => "branchCode", "containedIn" => "containedIn", + "containedInPlace" => "containedInPlace", + "containsPlace" => "containsPlace", + "event" => "event", + "events" => "events", + "faxNumber" => "faxNumber", + "geo" => "geo", + "geoContains" => "geoContains", + "geoCoveredBy" => "geoCoveredBy", + "geoCovers" => "geoCovers", + "geoCrosses" => "geoCrosses", + "geoDisjoint" => "geoDisjoint", + "geoEquals" => "geoEquals", + "geoIntersects" => "geoIntersects", + "geoOverlaps" => "geoOverlaps", + "geoTouches" => "geoTouches", + "geoWithin" => "geoWithin", + "globalLocationNumber" => "globalLocationNumber", + "hasCertification" => "hasCertification", "hasDriveThroughService" => "hasDriveThroughService", - "logo" => "logo", + "hasGS1DigitalLink" => "hasGS1DigitalLink", + "hasMap" => "hasMap", "isAccessibleForFree" => "isAccessibleForFree", - "geoWithin" => "geoWithin", - "geoDisjoint" => "geoDisjoint", - "tourBookingPage" => "tourBookingPage", "isicV4" => "isicV4", - "geoOverlaps" => "geoOverlaps", - "branchCode" => "branchCode", - "additionalProperty" => "additionalProperty", + "keywords" => "keywords", + "latitude" => "latitude", + "logo" => "logo", + "longitude" => "longitude", + "map" => "map", + "maps" => "maps", + "maximumAttendeeCapacity" => "maximumAttendeeCapacity", "openingHoursSpecification" => "openingHoursSpecification", - "reviews" => "reviews", "photo" => "photo", + "photos" => "photos", + "publicAccess" => "publicAccess", + "review" => "review", + "reviews" => "reviews", + "slogan" => "slogan", + "smokingAllowed" => "smokingAllowed", "specialOpeningHoursSpecification" => "specialOpeningHoursSpecification", - "hasMap" => "hasMap", - "longitude" => "longitude", - "geo" => "geo", - "events" => "events", - "faxNumber" => "faxNumber", - "event" => "event", + "telephone" => "telephone", + "tourBookingPage" => "tourBookingPage", ]; return array_merge(parent::fieldList(), $fields); } /** - * The telephone number. + * A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. + * * * - * @var string + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $telephone; + protected $additionalProperty; /** - * A review of the item. + * Physical address of the item. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $review; + protected $address; /** - * A URL to a map of the place. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $maps; + protected $aggregateRating; /** - * 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). + * 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\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - protected $geoContains; + protected $amenityFeature; /** - * The total number of individuals that may attend an event or venue. + * A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.\n\nFor example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch. + * * * - * @var int|null + * @var string */ - protected $maximumAttendeeCapacity; + protected $branchCode; /** - * The basic containment relation between a place and another that it contains. + * The basic containment relation between a place and one that contains it. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $containsPlace; + protected $containedIn; /** - * Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room. + * The basic containment relation between a place and one that contains it. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $smokingAllowed; + protected $containedInPlace; /** - * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. + * The basic containment relation between a place and another that it contains. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $globalLocationNumber; + protected $containsPlace; /** - * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property. + * Upcoming or past event associated with this place, organization, or action. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $keywords; + protected $event; /** - * Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * Upcoming or past events associated with this place or organization. * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $geoIntersects; + protected $events; /** - * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). + * The fax number. * * - * @var string|Number|null + * @var string */ - protected $latitude; + protected $faxNumber; /** - * 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) ) + * The geo coordinates of the place. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string */ - protected $geoTouches; + protected $geo; /** - * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $geoCoveredBy; + protected $geoContains; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $aggregateRating; + protected $geoCoveredBy; /** - * Physical address of the item. + * 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 string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $address; + protected $geoCovers; /** - * Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship) + * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that 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 $geoEquals; + protected $geoCrosses; /** - * A URL to a map of the place. + * 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 string + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $map; + protected $geoDisjoint; /** - * A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value + * 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 bool|null + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $publicAccess; + protected $geoEquals; /** - * 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) 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 $geoCrosses; + protected $geoIntersects; /** - * The basic containment relation between a place and one that contains it. + * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $containedInPlace; + protected $geoOverlaps; /** - * An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs. + * 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\LocationFeatureSpecification|string + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $amenityFeature; + protected $geoTouches; /** - * A slogan or motto associated with the item. + * 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 string + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $slogan; + protected $geoWithin; /** - * Photographs of this place. + * The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string + * @var string */ - protected $photos; + protected $globalLocationNumber; /** - * 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). + * Certification information about a product, organization, service, place, or person. * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $geoCovers; + protected $hasCertification; /** - * The basic containment relation between a place and one that contains it. + * Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var bool|null */ - protected $containedIn; + protected $hasDriveThroughService; /** - * Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users. + * The GS1 digital link associated with the object. This URL should conform to the particular requirements of digital links. The link should only contain the Application Identifiers (AIs) that are relevant for the entity being annotated, for instance a [[Product]] or an [[Organization]], and for the correct granularity. In particular, for products: Other item types should be adapted similarly. * * - * @var bool|null + * @var string */ - protected $hasDriveThroughService; + protected $hasGS1DigitalLink; /** - * An associated logo. + * A URL to a map of the place. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var \OpenActive\Models\SchemaOrg\Map|string */ - protected $logo; + protected $hasMap; /** * A flag to signal that the item, event, or place is accessible for free. @@ -292,62 +296,68 @@ public static function fieldList() { protected $isAccessibleForFree; /** - * Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var string */ - protected $geoWithin; + protected $isicV4; /** - * 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)) + * 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\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $geoDisjoint; + protected $keywords; /** - * 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 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 $tourBookingPage; + protected $latitude; /** - * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * An associated logo. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $isicV4; + protected $logo; /** - * 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). + * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var string|Number|null */ - protected $geoOverlaps; + protected $longitude; /** - * A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.\n\nFor example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch. - * + * A URL to a map of the place. * * * @var string */ - protected $branchCode; + protected $map; /** - * A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. - * + * A URL to a map of the place. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var string */ - protected $additionalProperty; + protected $maps; + + /** + * The total number of individuals that may attend an event or venue. + * + * + * @var int|null + */ + protected $maximumAttendeeCapacity; /** * The opening hours of a certain place. @@ -358,381 +368,413 @@ public static function fieldList() { protected $openingHoursSpecification; /** - * Review of the item. + * A photograph of this place. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string */ - protected $reviews; + protected $photo; /** - * A photograph of this place. + * Photographs of this place. * * - * @var \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string */ - protected $photo; + protected $photos; /** - * The special opening hours of a certain place.\n\nUse this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. - * + * A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value. * * - * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @var bool|null */ - protected $specialOpeningHoursSpecification; + protected $publicAccess; /** - * A URL to a map of the place. + * A review of the item. * * - * @var string|\OpenActive\Models\SchemaOrg\Map + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $hasMap; + protected $review; /** - * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). + * Review of the item. * * - * @var string|Number|null + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $longitude; + protected $reviews; /** - * The geo coordinates of the place. + * A slogan or motto associated with the item. * * - * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string + * @var string */ - protected $geo; + protected $slogan; /** - * Upcoming or past events associated with this place or organization. + * Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var bool|null */ - protected $events; + protected $smokingAllowed; /** - * The fax number. + * The special opening hours of a certain place.\n\nUse this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. + * + * + * + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + */ + protected $specialOpeningHoursSpecification; + + /** + * The telephone number. * * * @var string */ - protected $faxNumber; + protected $telephone; /** - * Upcoming or past event associated with this place, organization, or action. + * 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 \OpenActive\Models\SchemaOrg\Event|string + * @var string */ - protected $event; + protected $tourBookingPage; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getTelephone() + public function getAdditionalProperty() { - return $this->telephone; + return $this->additionalProperty; } /** - * @param string $telephone + * @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 setTelephone($telephone) + public function setAdditionalProperty($additionalProperty) { $types = [ + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; - $telephone = self::checkTypes($telephone, $types); + $additionalProperty = self::checkTypes($additionalProperty, $types); - $this->telephone = $telephone; + $this->additionalProperty = $additionalProperty; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getReview() + public function getAddress() { - return $this->review; + return $this->address; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @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 setReview($review) + public function setAddress($address) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $review = self::checkTypes($review, $types); + $address = self::checkTypes($address, $types); - $this->review = $review; + $this->address = $address; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getMaps() + public function getAggregateRating() { - return $this->maps; + return $this->aggregateRating; } /** - * @param string $maps + * @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 setMaps($maps) + public function setAggregateRating($aggregateRating) { $types = [ + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $maps = self::checkTypes($maps, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->maps = $maps; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - public function getGeoContains() + public function getAmenityFeature() { - return $this->geoContains; + return $this->amenityFeature; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains + * @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 setGeoContains($geoContains) + public function setAmenityFeature($amenityFeature) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", "string", ]; - $geoContains = self::checkTypes($geoContains, $types); + $amenityFeature = self::checkTypes($amenityFeature, $types); - $this->geoContains = $geoContains; + $this->amenityFeature = $amenityFeature; } /** - * @return int|null + * @return string */ - public function getMaximumAttendeeCapacity() + public function getBranchCode() { - return $this->maximumAttendeeCapacity; + return $this->branchCode; } /** - * @param int|null $maximumAttendeeCapacity + * @param string $branchCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumAttendeeCapacity($maximumAttendeeCapacity) + public function setBranchCode($branchCode) { $types = [ - "int", - "null", + "string", ]; - $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); + $branchCode = self::checkTypes($branchCode, $types); - $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; + $this->branchCode = $branchCode; } /** * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getContainsPlace() + public function getContainedIn() { - return $this->containsPlace; + return $this->containedIn; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $containsPlace + * @param \OpenActive\Models\SchemaOrg\Place|string $containedIn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContainsPlace($containsPlace) + public function setContainedIn($containedIn) { $types = [ "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $containsPlace = self::checkTypes($containsPlace, $types); + $containedIn = self::checkTypes($containedIn, $types); - $this->containsPlace = $containsPlace; + $this->containedIn = $containedIn; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getSmokingAllowed() + public function getContainedInPlace() { - return $this->smokingAllowed; + return $this->containedInPlace; } /** - * @param bool|null $smokingAllowed + * @param \OpenActive\Models\SchemaOrg\Place|string $containedInPlace * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSmokingAllowed($smokingAllowed) + public function setContainedInPlace($containedInPlace) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $smokingAllowed = self::checkTypes($smokingAllowed, $types); + $containedInPlace = self::checkTypes($containedInPlace, $types); - $this->smokingAllowed = $smokingAllowed; + $this->containedInPlace = $containedInPlace; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getGlobalLocationNumber() + public function getContainsPlace() { - return $this->globalLocationNumber; + return $this->containsPlace; } /** - * @param string $globalLocationNumber + * @param \OpenActive\Models\SchemaOrg\Place|string $containsPlace * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGlobalLocationNumber($globalLocationNumber) + public function setContainsPlace($containsPlace) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); + $containsPlace = self::checkTypes($containsPlace, $types); - $this->globalLocationNumber = $globalLocationNumber; + $this->containsPlace = $containsPlace; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getKeywords() + public function getEvent() { - return $this->keywords; + return $this->event; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param \OpenActive\Models\SchemaOrg\Event|string $event * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setEvent($event) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $event = self::checkTypes($event, $types); - $this->keywords = $keywords; + $this->event = $event; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getGeoIntersects() + public function getEvents() { - return $this->geoIntersects; + return $this->events; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects + * @param \OpenActive\Models\SchemaOrg\Event|string $events * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoIntersects($geoIntersects) + public function setEvents($events) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $geoIntersects = self::checkTypes($geoIntersects, $types); + $events = self::checkTypes($events, $types); - $this->geoIntersects = $geoIntersects; + $this->events = $events; } /** - * @return string|Number|null + * @return string */ - public function getLatitude() + public function getFaxNumber() { - return $this->latitude; + return $this->faxNumber; } /** - * @param string|Number|null $latitude + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLatitude($latitude) + public function setFaxNumber($faxNumber) { $types = [ "string", - "Number", - "null", ]; - $latitude = self::checkTypes($latitude, $types); + $faxNumber = self::checkTypes($faxNumber, $types); + + $this->faxNumber = $faxNumber; + } + + /** + * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string + */ + public function getGeo() + { + return $this->geo; + } + + /** + * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string $geo + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setGeo($geo) + { + $types = [ + "\OpenActive\Models\SchemaOrg\GeoCoordinates", + "\OpenActive\Models\SchemaOrg\GeoShape", + "string", + ]; + + $geo = self::checkTypes($geo, $types); - $this->latitude = $latitude; + $this->geo = $geo; } /** - * @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 getGeoContains() { - return $this->geoTouches; + return $this->geoContains; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches + * @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 setGeoTouches($geoTouches) + public function setGeoContains($geoContains) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geoTouches = self::checkTypes($geoTouches, $types); + $geoContains = self::checkTypes($geoContains, $types); - $this->geoTouches = $geoTouches; + $this->geoContains = $geoContains; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ public function getGeoCoveredBy() { @@ -740,15 +782,15 @@ public function getGeoCoveredBy() } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCoveredBy + * @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 setGeoCoveredBy($geoCoveredBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; @@ -758,144 +800,149 @@ public function setGeoCoveredBy($geoCoveredBy) } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getAggregateRating() + public function getGeoCovers() { - return $this->aggregateRating; + return $this->geoCovers; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @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 setAggregateRating($aggregateRating) + public function setGeoCovers($geoCovers) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $geoCovers = self::checkTypes($geoCovers, $types); - $this->aggregateRating = $aggregateRating; + $this->geoCovers = $geoCovers; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getAddress() + public function getGeoCrosses() { - return $this->address; + return $this->geoCrosses; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @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 setAddress($address) + public function setGeoCrosses($geoCrosses) { $types = [ + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $address = self::checkTypes($address, $types); + $geoCrosses = self::checkTypes($geoCrosses, $types); - $this->address = $address; + $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 string + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getMap() + public function getGeoEquals() { - return $this->map; + return $this->geoEquals; } /** - * @param string $map + * @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 setMap($map) + public function setGeoEquals($geoEquals) { $types = [ + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $map = self::checkTypes($map, $types); + $geoEquals = self::checkTypes($geoEquals, $types); - $this->map = $map; + $this->geoEquals = $geoEquals; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getPublicAccess() + public function getGeoIntersects() { - return $this->publicAccess; + return $this->geoIntersects; } /** - * @param bool|null $publicAccess + * @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 setPublicAccess($publicAccess) + public function setGeoIntersects($geoIntersects) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $publicAccess = self::checkTypes($publicAccess, $types); + $geoIntersects = self::checkTypes($geoIntersects, $types); - $this->publicAccess = $publicAccess; + $this->geoIntersects = $geoIntersects; } /** * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoCrosses() + public function getGeoOverlaps() { - return $this->geoCrosses; + return $this->geoOverlaps; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCrosses + * @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 setGeoCrosses($geoCrosses) + public function setGeoOverlaps($geoOverlaps) { $types = [ "\OpenActive\Models\SchemaOrg\GeospatialGeometry", @@ -903,410 +950,408 @@ public function setGeoCrosses($geoCrosses) "string", ]; - $geoCrosses = self::checkTypes($geoCrosses, $types); + $geoOverlaps = self::checkTypes($geoOverlaps, $types); - $this->geoCrosses = $geoCrosses; + $this->geoOverlaps = $geoOverlaps; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getContainedInPlace() + public function getGeoTouches() { - return $this->containedInPlace; + return $this->geoTouches; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $containedInPlace + * @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 setContainedInPlace($containedInPlace) + public function setGeoTouches($geoTouches) { $types = [ + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $containedInPlace = self::checkTypes($containedInPlace, $types); + $geoTouches = self::checkTypes($geoTouches, $types); - $this->containedInPlace = $containedInPlace; + $this->geoTouches = $geoTouches; } /** - * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getAmenityFeature() + public function getGeoWithin() { - return $this->amenityFeature; + return $this->geoWithin; } /** - * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature + * @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 setAmenityFeature($amenityFeature) + public function setGeoWithin($geoWithin) { $types = [ - "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $amenityFeature = self::checkTypes($amenityFeature, $types); + $geoWithin = self::checkTypes($geoWithin, $types); - $this->amenityFeature = $amenityFeature; + $this->geoWithin = $geoWithin; } /** * @return string */ - public function getSlogan() + public function getGlobalLocationNumber() { - return $this->slogan; + return $this->globalLocationNumber; } /** - * @param string $slogan + * @param string $globalLocationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSlogan($slogan) + public function setGlobalLocationNumber($globalLocationNumber) { $types = [ "string", ]; - $slogan = self::checkTypes($slogan, $types); + $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); - $this->slogan = $slogan; + $this->globalLocationNumber = $globalLocationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getPhotos() + public function getHasCertification() { - return $this->photos; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string $photos + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPhotos($photos) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", - "\OpenActive\Models\SchemaOrg\Photograph", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $photos = self::checkTypes($photos, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->photos = $photos; + $this->hasCertification = $hasCertification; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return bool|null */ - public function getGeoCovers() + public function getHasDriveThroughService() { - return $this->geoCovers; + return $this->hasDriveThroughService; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers + * @param bool|null $hasDriveThroughService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoCovers($geoCovers) + public function setHasDriveThroughService($hasDriveThroughService) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "\OpenActive\Models\SchemaOrg\Place", - "string", + "bool", + "null", ]; - $geoCovers = self::checkTypes($geoCovers, $types); + $hasDriveThroughService = self::checkTypes($hasDriveThroughService, $types); - $this->geoCovers = $geoCovers; + $this->hasDriveThroughService = $hasDriveThroughService; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getContainedIn() + public function getHasGS1DigitalLink() { - return $this->containedIn; + return $this->hasGS1DigitalLink; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $containedIn + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContainedIn($containedIn) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $containedIn = self::checkTypes($containedIn, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->containedIn = $containedIn; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Map|string */ - public function getHasDriveThroughService() + public function getHasMap() { - return $this->hasDriveThroughService; + return $this->hasMap; } /** - * @param bool|null $hasDriveThroughService + * @param \OpenActive\Models\SchemaOrg\Map|string $hasMap * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasDriveThroughService($hasDriveThroughService) + public function setHasMap($hasMap) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Map", + "string", ]; - $hasDriveThroughService = self::checkTypes($hasDriveThroughService, $types); + $hasMap = self::checkTypes($hasMap, $types); - $this->hasDriveThroughService = $hasDriveThroughService; + $this->hasMap = $hasMap; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return bool|null */ - public function getLogo() + public function getIsAccessibleForFree() { - return $this->logo; + return $this->isAccessibleForFree; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @param bool|null $isAccessibleForFree * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLogo($logo) + public function setIsAccessibleForFree($isAccessibleForFree) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\ImageObject", + "bool", + "null", ]; - $logo = self::checkTypes($logo, $types); + $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); - $this->logo = $logo; + $this->isAccessibleForFree = $isAccessibleForFree; } /** - * @return bool|null + * @return string */ - public function getIsAccessibleForFree() + public function getIsicV4() { - return $this->isAccessibleForFree; + return $this->isicV4; } /** - * @param bool|null $isAccessibleForFree + * @param string $isicV4 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsAccessibleForFree($isAccessibleForFree) + public function setIsicV4($isicV4) { $types = [ - "bool", - "null", + "string", ]; - $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); + $isicV4 = self::checkTypes($isicV4, $types); - $this->isAccessibleForFree = $isAccessibleForFree; + $this->isicV4 = $isicV4; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getGeoWithin() + public function getKeywords() { - return $this->geoWithin; + return $this->keywords; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin + * @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 setGeoWithin($geoWithin) + public function setKeywords($keywords) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $geoWithin = self::checkTypes($geoWithin, $types); + $keywords = self::checkTypes($keywords, $types); - $this->geoWithin = $geoWithin; + $this->keywords = $keywords; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return string|Number|null */ - public function getGeoDisjoint() + public function getLatitude() { - return $this->geoDisjoint; + return $this->latitude; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint + * @param string|Number|null $latitude * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoDisjoint($geoDisjoint) + public function setLatitude($latitude) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "\OpenActive\Models\SchemaOrg\Place", "string", + "Number", + "null", ]; - $geoDisjoint = self::checkTypes($geoDisjoint, $types); + $latitude = self::checkTypes($latitude, $types); - $this->geoDisjoint = $geoDisjoint; + $this->latitude = $latitude; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getTourBookingPage() + public function getLogo() { - return $this->tourBookingPage; + return $this->logo; } /** - * @param string $tourBookingPage + * @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 setTourBookingPage($tourBookingPage) + public function setLogo($logo) { $types = [ + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $tourBookingPage = self::checkTypes($tourBookingPage, $types); + $logo = self::checkTypes($logo, $types); - $this->tourBookingPage = $tourBookingPage; + $this->logo = $logo; } /** - * @return string + * @return string|Number|null */ - public function getIsicV4() + public function getLongitude() { - return $this->isicV4; + return $this->longitude; } /** - * @param string $isicV4 + * @param string|Number|null $longitude * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsicV4($isicV4) + public function setLongitude($longitude) { $types = [ "string", + "Number", + "null", ]; - $isicV4 = self::checkTypes($isicV4, $types); + $longitude = self::checkTypes($longitude, $types); - $this->isicV4 = $isicV4; + $this->longitude = $longitude; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getGeoOverlaps() + public function getMap() { - return $this->geoOverlaps; + return $this->map; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps + * @param string $map * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoOverlaps($geoOverlaps) + public function setMap($map) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geoOverlaps = self::checkTypes($geoOverlaps, $types); + $map = self::checkTypes($map, $types); - $this->geoOverlaps = $geoOverlaps; + $this->map = $map; } /** * @return string */ - public function getBranchCode() + public function getMaps() { - return $this->branchCode; + return $this->maps; } /** - * @param string $branchCode + * @param string $maps * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBranchCode($branchCode) + public function setMaps($maps) { $types = [ "string", ]; - $branchCode = self::checkTypes($branchCode, $types); + $maps = self::checkTypes($maps, $types); - $this->branchCode = $branchCode; + $this->maps = $maps; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return int|null */ - public function getAdditionalProperty() + public function getMaximumAttendeeCapacity() { - return $this->additionalProperty; + return $this->maximumAttendeeCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @param int|null $maximumAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalProperty($additionalProperty) + public function setMaximumAttendeeCapacity($maximumAttendeeCapacity) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", - "string", + "int", + "null", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); - $this->additionalProperty = $additionalProperty; + $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; } /** @@ -1335,230 +1380,252 @@ public function setOpeningHoursSpecification($openingHoursSpecification) } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string */ - public function getReviews() + public function getPhoto() { - return $this->reviews; + return $this->photo; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @param \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string $photo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviews($reviews) + public function setPhoto($photo) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\ImageObject", + "\OpenActive\Models\SchemaOrg\Photograph", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $photo = self::checkTypes($photo, $types); - $this->reviews = $reviews; + $this->photo = $photo; } /** - * @return \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string */ - public function getPhoto() + public function getPhotos() { - return $this->photo; + return $this->photos; } /** - * @param \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string $photo + * @param \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string $photos * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPhoto($photo) + public function setPhotos($photos) { $types = [ - "\OpenActive\Models\SchemaOrg\Photograph", "\OpenActive\Models\SchemaOrg\ImageObject", + "\OpenActive\Models\SchemaOrg\Photograph", "string", ]; - $photo = self::checkTypes($photo, $types); + $photos = self::checkTypes($photos, $types); - $this->photo = $photo; + $this->photos = $photos; } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return bool|null */ - public function getSpecialOpeningHoursSpecification() + public function getPublicAccess() { - return $this->specialOpeningHoursSpecification; + return $this->publicAccess; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $specialOpeningHoursSpecification + * @param bool|null $publicAccess * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpecialOpeningHoursSpecification($specialOpeningHoursSpecification) + public function setPublicAccess($publicAccess) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", - "string", + "bool", + "null", ]; - $specialOpeningHoursSpecification = self::checkTypes($specialOpeningHoursSpecification, $types); + $publicAccess = self::checkTypes($publicAccess, $types); - $this->specialOpeningHoursSpecification = $specialOpeningHoursSpecification; + $this->publicAccess = $publicAccess; } /** - * @return string|\OpenActive\Models\SchemaOrg\Map + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getHasMap() + public function getReview() { - return $this->hasMap; + return $this->review; } /** - * @param string|\OpenActive\Models\SchemaOrg\Map $hasMap + * @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 setHasMap($hasMap) + public function setReview($review) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", - "\OpenActive\Models\SchemaOrg\Map", ]; - $hasMap = self::checkTypes($hasMap, $types); + $review = self::checkTypes($review, $types); - $this->hasMap = $hasMap; + $this->review = $review; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getLongitude() + public function getReviews() { - return $this->longitude; + return $this->reviews; } /** - * @param string|Number|null $longitude + * @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 setLongitude($longitude) + public function setReviews($reviews) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", - "Number", - "null", ]; - $longitude = self::checkTypes($longitude, $types); + $reviews = self::checkTypes($reviews, $types); - $this->longitude = $longitude; + $this->reviews = $reviews; } /** - * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string + * @return string */ - public function getGeo() + public function getSlogan() { - return $this->geo; + return $this->slogan; } /** - * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string $geo + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeo($geo) + public function setSlogan($slogan) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoCoordinates", - "\OpenActive\Models\SchemaOrg\GeoShape", "string", ]; - $geo = self::checkTypes($geo, $types); + $slogan = self::checkTypes($slogan, $types); - $this->geo = $geo; + $this->slogan = $slogan; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return bool|null */ - public function getEvents() + public function getSmokingAllowed() { - return $this->events; + return $this->smokingAllowed; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $events + * @param bool|null $smokingAllowed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvents($events) + public function setSmokingAllowed($smokingAllowed) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "bool", + "null", + ]; + + $smokingAllowed = self::checkTypes($smokingAllowed, $types); + + $this->smokingAllowed = $smokingAllowed; + } + + /** + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + */ + public function getSpecialOpeningHoursSpecification() + { + return $this->specialOpeningHoursSpecification; + } + + /** + * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $specialOpeningHoursSpecification + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setSpecialOpeningHoursSpecification($specialOpeningHoursSpecification) + { + $types = [ + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $events = self::checkTypes($events, $types); + $specialOpeningHoursSpecification = self::checkTypes($specialOpeningHoursSpecification, $types); - $this->events = $events; + $this->specialOpeningHoursSpecification = $specialOpeningHoursSpecification; } /** * @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; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return string */ - public function getEvent() + public function getTourBookingPage() { - return $this->event; + return $this->tourBookingPage; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $event + * @param string $tourBookingPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvent($event) + public function setTourBookingPage($tourBookingPage) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $event = self::checkTypes($event, $types); + $tourBookingPage = self::checkTypes($tourBookingPage, $types); - $this->event = $event; + $this->tourBookingPage = $tourBookingPage; } } diff --git a/src/Models/SchemaOrg/PlanAction.php b/src/Models/SchemaOrg/PlanAction.php index e2590c54..f692e3ad 100644 --- a/src/Models/SchemaOrg/PlanAction.php +++ b/src/Models/SchemaOrg/PlanAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * The time the object is scheduled to. * * - * @var DateTime|null + * @var Date|DateTime|null */ protected $scheduledTime; /** - * @return DateTime|null + * @return Date|DateTime|null */ public function getScheduledTime() { @@ -40,13 +40,14 @@ public function getScheduledTime() } /** - * @param DateTime|null $scheduledTime + * @param Date|DateTime|null $scheduledTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setScheduledTime($scheduledTime) { $types = [ + "Date", "DateTime", "null", ]; diff --git a/src/Models/SchemaOrg/PodcastSeries.php b/src/Models/SchemaOrg/PodcastSeries.php index 9f300e86..21c77a4b 100644 --- a/src/Models/SchemaOrg/PodcastSeries.php +++ b/src/Models/SchemaOrg/PodcastSeries.php @@ -25,10 +25,10 @@ public static function fieldList() { } /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * An actor (individual or a group), e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ protected $actor; @@ -41,7 +41,7 @@ public static function fieldList() { protected $webFeed; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ public function getActor() { @@ -49,13 +49,14 @@ public function getActor() } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @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 setActor($actor) { $types = [ + "\OpenActive\Models\SchemaOrg\PerformingGroup", "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/PoliticalParty.php b/src/Models/SchemaOrg/PoliticalParty.php new file mode 100644 index 00000000..aeeb0be3 --- /dev/null +++ b/src/Models/SchemaOrg/PoliticalParty.php @@ -0,0 +1,25 @@ + "addressCountry", - "addressRegion" => "addressRegion", "addressLocality" => "addressLocality", - "postalCode" => "postalCode", + "addressRegion" => "addressRegion", + "extendedAddress" => "extendedAddress", "postOfficeBoxNumber" => "postOfficeBoxNumber", + "postalCode" => "postalCode", "streetAddress" => "streetAddress", ]; @@ -29,7 +30,7 @@ public static function fieldList() { } /** - * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). + * The country. Recommended to be in 2-letter [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1) format, for example "US". For backward compatibility, a 3-letter [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) country code such as "SGP" or a full country name such as "Singapore" can also be used. * * * @var \OpenActive\Models\SchemaOrg\Country|string @@ -37,28 +38,28 @@ 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 locality in which the street address is, and which is in the region. For example, Mountain View. * * * @var string */ - protected $addressRegion; + protected $addressLocality; /** - * The locality in which the street address is, and which is in the region. For example, Mountain View. + * 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 $addressLocality; + protected $addressRegion; /** - * The postal code. For example, 94043. + * An address extension such as an apartment number, C/O or alternative name. * * * @var string */ - protected $postalCode; + protected $extendedAddress; /** * The post office box number for PO box addresses. @@ -68,6 +69,14 @@ public static function fieldList() { */ protected $postOfficeBoxNumber; + /** + * The postal code. For example, 94043. + * + * + * @var string + */ + protected $postalCode; + /** * The street address. For example, 1600 Amphitheatre Pkwy. * @@ -104,73 +113,74 @@ public function setAddressCountry($addressCountry) /** * @return string */ - public function getAddressRegion() + public function getAddressLocality() { - return $this->addressRegion; + return $this->addressLocality; } /** - * @param string $addressRegion + * @param string $addressLocality * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddressRegion($addressRegion) + public function setAddressLocality($addressLocality) { $types = [ "string", ]; - $addressRegion = self::checkTypes($addressRegion, $types); + $addressLocality = self::checkTypes($addressLocality, $types); - $this->addressRegion = $addressRegion; + $this->addressLocality = $addressLocality; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getAddressLocality() + public function getAddressRegion() { - return $this->addressLocality; + return $this->addressRegion; } /** - * @param string $addressLocality + * @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 setAddressLocality($addressLocality) + public function setAddressRegion($addressRegion) { $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", ]; - $addressLocality = self::checkTypes($addressLocality, $types); + $addressRegion = self::checkTypes($addressRegion, $types); - $this->addressLocality = $addressLocality; + $this->addressRegion = $addressRegion; } /** * @return string */ - public function getPostalCode() + public function getExtendedAddress() { - return $this->postalCode; + return $this->extendedAddress; } /** - * @param string $postalCode + * @param string $extendedAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCode($postalCode) + public function setExtendedAddress($extendedAddress) { $types = [ "string", ]; - $postalCode = self::checkTypes($postalCode, $types); + $extendedAddress = self::checkTypes($extendedAddress, $types); - $this->postalCode = $postalCode; + $this->extendedAddress = $extendedAddress; } /** @@ -197,6 +207,30 @@ public function setPostOfficeBoxNumber($postOfficeBoxNumber) $this->postOfficeBoxNumber = $postOfficeBoxNumber; } + /** + * @return string + */ + public function getPostalCode() + { + return $this->postalCode; + } + + /** + * @param string $postalCode + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPostalCode($postalCode) + { + $types = [ + "string", + ]; + + $postalCode = self::checkTypes($postalCode, $types); + + $this->postalCode = $postalCode; + } + /** * @return string */ diff --git a/src/Models/SchemaOrg/PostalCodeRangeSpecification.php b/src/Models/SchemaOrg/PostalCodeRangeSpecification.php index e6400eae..d435fbc8 100644 --- a/src/Models/SchemaOrg/PostalCodeRangeSpecification.php +++ b/src/Models/SchemaOrg/PostalCodeRangeSpecification.php @@ -17,75 +17,75 @@ public static function getType() public static function fieldList() { $fields = [ - "postalCodeEnd" => "postalCodeEnd", "postalCodeBegin" => "postalCodeBegin", + "postalCodeEnd" => "postalCodeEnd", ]; return array_merge(parent::fieldList(), $fields); } /** - * Last postal code in the range (included). Needs to be after [[postalCodeBegin]]. + * First postal code in a range (included). * * * @var string */ - protected $postalCodeEnd; + protected $postalCodeBegin; /** - * First postal code in a range (included). + * Last postal code in the range (included). Needs to be after [[postalCodeBegin]]. * * * @var string */ - protected $postalCodeBegin; + protected $postalCodeEnd; /** * @return string */ - public function getPostalCodeEnd() + public function getPostalCodeBegin() { - return $this->postalCodeEnd; + return $this->postalCodeBegin; } /** - * @param string $postalCodeEnd + * @param string $postalCodeBegin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCodeEnd($postalCodeEnd) + public function setPostalCodeBegin($postalCodeBegin) { $types = [ "string", ]; - $postalCodeEnd = self::checkTypes($postalCodeEnd, $types); + $postalCodeBegin = self::checkTypes($postalCodeBegin, $types); - $this->postalCodeEnd = $postalCodeEnd; + $this->postalCodeBegin = $postalCodeBegin; } /** * @return string */ - public function getPostalCodeBegin() + public function getPostalCodeEnd() { - return $this->postalCodeBegin; + return $this->postalCodeEnd; } /** - * @param string $postalCodeBegin + * @param string $postalCodeEnd * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCodeBegin($postalCodeBegin) + public function setPostalCodeEnd($postalCodeEnd) { $types = [ "string", ]; - $postalCodeBegin = self::checkTypes($postalCodeBegin, $types); + $postalCodeEnd = self::checkTypes($postalCodeEnd, $types); - $this->postalCodeBegin = $postalCodeBegin; + $this->postalCodeEnd = $postalCodeEnd; } } diff --git a/src/Models/SchemaOrg/PriceSpecification.php b/src/Models/SchemaOrg/PriceSpecification.php index 4bcddd3e..b052de60 100644 --- a/src/Models/SchemaOrg/PriceSpecification.php +++ b/src/Models/SchemaOrg/PriceSpecification.php @@ -17,28 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "minPrice" => "minPrice", "eligibleQuantity" => "eligibleQuantity", - "validFrom" => "validFrom", + "eligibleTransactionVolume" => "eligibleTransactionVolume", "maxPrice" => "maxPrice", + "membershipPointsEarned" => "membershipPointsEarned", + "minPrice" => "minPrice", + "price" => "price", "priceCurrency" => "priceCurrency", - "valueAddedTaxIncluded" => "valueAddedTaxIncluded", - "eligibleTransactionVolume" => "eligibleTransactionVolume", + "validForMemberTier" => "validForMemberTier", + "validFrom" => "validFrom", "validThrough" => "validThrough", - "price" => "price", + "valueAddedTaxIncluded" => "valueAddedTaxIncluded", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The lowest price if the price is a range. - * - * - * @var Number|null - */ - protected $minPrice; - /** * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity. * @@ -48,12 +42,12 @@ public static function fieldList() { protected $eligibleQuantity; /** - * The date when the item becomes valid. + * 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|null + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $validFrom; + protected $eligibleTransactionVolume; /** * The highest price if the price is a range. @@ -64,7 +58,32 @@ public static function fieldList() { protected $maxPrice; /** - * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The number of membership points earned by the member. If necessary, the unitText can be used to express the units the points are issued in. (E.g. stars, miles, etc.) + * + * + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + */ + protected $membershipPointsEarned; + + /** + * The lowest price if the price is a range. + * + * + * @var Number|null + */ + protected $minPrice; + + /** + * 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 @@ -72,20 +91,20 @@ public static function fieldList() { protected $priceCurrency; /** - * Specifies whether the applicable value-added tax (VAT) is included in the price specification or not. + * The membership program tier(s) an Offer (or a PriceSpecification, OfferShippingDetails, or MerchantReturnPolicy under an Offer) is valid for. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - protected $valueAddedTaxIncluded; + protected $validForMemberTier; /** - * 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 date when the item becomes valid. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var Date|DateTime|null */ - protected $eligibleTransactionVolume; + 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. @@ -96,113 +115,164 @@ public static function fieldList() { protected $validThrough; /** - * The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.\n\nUsage guidelines:\n\n* Use the [[priceCurrency]] property (with standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as '$' in the value.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.\n* Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols. - * + * Specifies whether the applicable value-added tax (VAT) is included in the price specification or not. * * - * @var string|Number|null + * @var bool|null */ - protected $price; + protected $valueAddedTaxIncluded; + + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getEligibleQuantity() + { + return $this->eligibleQuantity; + } + + /** + * @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 setEligibleQuantity($eligibleQuantity) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); + + $this->eligibleQuantity = $eligibleQuantity; + } + + /** + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + */ + public function getEligibleTransactionVolume() + { + return $this->eligibleTransactionVolume; + } + + /** + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setEligibleTransactionVolume($eligibleTransactionVolume) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", + ]; + + $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); + + $this->eligibleTransactionVolume = $eligibleTransactionVolume; + } /** * @return Number|null */ - public function getMinPrice() + public function getMaxPrice() { - return $this->minPrice; + return $this->maxPrice; } /** - * @param Number|null $minPrice + * @param Number|null $maxPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinPrice($minPrice) + public function setMaxPrice($maxPrice) { $types = [ "Number", "null", ]; - $minPrice = self::checkTypes($minPrice, $types); + $maxPrice = self::checkTypes($maxPrice, $types); - $this->minPrice = $minPrice; + $this->maxPrice = $maxPrice; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getEligibleQuantity() + public function getMembershipPointsEarned() { - return $this->eligibleQuantity; + return $this->membershipPointsEarned; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity + * @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 setEligibleQuantity($eligibleQuantity) + public function setMembershipPointsEarned($membershipPointsEarned) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); + $membershipPointsEarned = self::checkTypes($membershipPointsEarned, $types); - $this->eligibleQuantity = $eligibleQuantity; + $this->membershipPointsEarned = $membershipPointsEarned; } /** - * @return Date|DateTime|null + * @return Number|null */ - public function getValidFrom() + public function getMinPrice() { - return $this->validFrom; + return $this->minPrice; } /** - * @param Date|DateTime|null $validFrom + * @param Number|null $minPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidFrom($validFrom) + public function setMinPrice($minPrice) { $types = [ - "Date", - "DateTime", + "Number", "null", ]; - $validFrom = self::checkTypes($validFrom, $types); + $minPrice = self::checkTypes($minPrice, $types); - $this->validFrom = $validFrom; + $this->minPrice = $minPrice; } /** - * @return Number|null + * @return string|Number|null */ - public function getMaxPrice() + public function getPrice() { - return $this->maxPrice; + return $this->price; } /** - * @param Number|null $maxPrice + * @param string|Number|null $price * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaxPrice($maxPrice) + public function setPrice($price) { $types = [ + "string", "Number", "null", ]; - $maxPrice = self::checkTypes($maxPrice, $types); + $price = self::checkTypes($price, $types); - $this->maxPrice = $maxPrice; + $this->price = $price; } /** @@ -230,53 +300,54 @@ public function setPriceCurrency($priceCurrency) } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|string */ - public function getValueAddedTaxIncluded() + public function getValidForMemberTier() { - return $this->valueAddedTaxIncluded; + return $this->validForMemberTier; } /** - * @param bool|null $valueAddedTaxIncluded + * @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 setValueAddedTaxIncluded($valueAddedTaxIncluded) + public function setValidForMemberTier($validForMemberTier) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\MemberProgramTier", + "string", ]; - $valueAddedTaxIncluded = self::checkTypes($valueAddedTaxIncluded, $types); + $validForMemberTier = self::checkTypes($validForMemberTier, $types); - $this->valueAddedTaxIncluded = $valueAddedTaxIncluded; + $this->validForMemberTier = $validForMemberTier; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return Date|DateTime|null */ - public function getEligibleTransactionVolume() + public function getValidFrom() { - return $this->eligibleTransactionVolume; + return $this->validFrom; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume + * @param Date|DateTime|null $validFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleTransactionVolume($eligibleTransactionVolume) + public function setValidFrom($validFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", - "string", + "Date", + "DateTime", + "null", ]; - $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); + $validFrom = self::checkTypes($validFrom, $types); - $this->eligibleTransactionVolume = $eligibleTransactionVolume; + $this->validFrom = $validFrom; } /** @@ -306,29 +377,28 @@ public function setValidThrough($validThrough) } /** - * @return string|Number|null + * @return bool|null */ - public function getPrice() + public function getValueAddedTaxIncluded() { - return $this->price; + return $this->valueAddedTaxIncluded; } /** - * @param string|Number|null $price + * @param bool|null $valueAddedTaxIncluded * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrice($price) + public function setValueAddedTaxIncluded($valueAddedTaxIncluded) { $types = [ - "string", - "Number", + "bool", "null", ]; - $price = self::checkTypes($price, $types); + $valueAddedTaxIncluded = self::checkTypes($valueAddedTaxIncluded, $types); - $this->price = $price; + $this->valueAddedTaxIncluded = $valueAddedTaxIncluded; } } diff --git a/src/Models/SchemaOrg/Product.php b/src/Models/SchemaOrg/Product.php index 2d779e5b..5523b36e 100644 --- a/src/Models/SchemaOrg/Product.php +++ b/src/Models/SchemaOrg/Product.php @@ -17,347 +17,373 @@ public static function getType() public static function fieldList() { $fields = [ - "isAccessoryOrSparePartFor" => "isAccessoryOrSparePartFor", - "hasAdultConsideration" => "hasAdultConsideration", - "gtin12" => "gtin12", - "nsn" => "nsn", - "material" => "material", - "review" => "review", - "award" => "award", - "width" => "width", - "countryOfOrigin" => "countryOfOrigin", - "pattern" => "pattern", - "category" => "category", - "funding" => "funding", - "mpn" => "mpn", - "height" => "height", - "keywords" => "keywords", - "purchaseDate" => "purchaseDate", - "hasEnergyConsumptionDetails" => "hasEnergyConsumptionDetails", + "additionalProperty" => "additionalProperty", + "aggregateRating" => "aggregateRating", + "asin" => "asin", "audience" => "audience", - "offers" => "offers", - "productionDate" => "productionDate", - "itemCondition" => "itemCondition", + "authorizedRepresentative" => "authorizedRepresentative", + "award" => "award", "awards" => "awards", - "gtin" => "gtin", - "productID" => "productID", - "countryOfAssembly" => "countryOfAssembly", + "brand" => "brand", + "category" => "category", "color" => "color", - "aggregateRating" => "aggregateRating", - "isSimilarTo" => "isSimilarTo", - "depth" => "depth", + "colorSwatch" => "colorSwatch", + "consumerNotice" => "consumerNotice", + "countryOfAssembly" => "countryOfAssembly", "countryOfLastProcessing" => "countryOfLastProcessing", - "isVariantOf" => "isVariantOf", - "slogan" => "slogan", - "brand" => "brand", - "manufacturer" => "manufacturer", + "countryOfOrigin" => "countryOfOrigin", + "depth" => "depth", + "displayLocation" => "displayLocation", + "funding" => "funding", + "gtin" => "gtin", + "gtin12" => "gtin12", + "gtin13" => "gtin13", + "gtin14" => "gtin14", + "gtin8" => "gtin8", + "hasAdultConsideration" => "hasAdultConsideration", + "hasCertification" => "hasCertification", + "hasDigitalProductPassport" => "hasDigitalProductPassport", + "hasEnergyConsumptionDetails" => "hasEnergyConsumptionDetails", + "hasGS1DigitalLink" => "hasGS1DigitalLink", "hasMeasurement" => "hasMeasurement", + "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", + "hasProductReturnPolicy" => "hasProductReturnPolicy", + "height" => "height", + "importer" => "importer", + "inProductGroupWithID" => "inProductGroupWithID", + "isAccessoryOrSparePartFor" => "isAccessoryOrSparePartFor", "isConsumableFor" => "isConsumableFor", + "isFamilyFriendly" => "isFamilyFriendly", + "isOftenBoughtWith" => "isOftenBoughtWith", + "isRelatedTo" => "isRelatedTo", + "isSimilarTo" => "isSimilarTo", + "isVariantOf" => "isVariantOf", + "itemCondition" => "itemCondition", + "keywords" => "keywords", "logo" => "logo", - "gtin8" => "gtin8", - "sku" => "sku", - "inProductGroupWithID" => "inProductGroupWithID", + "manufacturer" => "manufacturer", + "material" => "material", + "mobileUrl" => "mobileUrl", "model" => "model", - "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", + "mpn" => "mpn", + "negativeNotes" => "negativeNotes", + "nsn" => "nsn", + "offers" => "offers", + "pattern" => "pattern", + "positiveNotes" => "positiveNotes", + "productID" => "productID", + "productionDate" => "productionDate", + "purchaseDate" => "purchaseDate", + "recycledContentPercentage" => "recycledContentPercentage", "releaseDate" => "releaseDate", - "gtin14" => "gtin14", - "weight" => "weight", - "size" => "size", - "additionalProperty" => "additionalProperty", - "gtin13" => "gtin13", + "review" => "review", "reviews" => "reviews", - "isFamilyFriendly" => "isFamilyFriendly", - "isRelatedTo" => "isRelatedTo", + "size" => "size", + "sku" => "sku", + "slogan" => "slogan", + "specification" => "specification", + "substanceOfConcern" => "substanceOfConcern", + "weight" => "weight", + "width" => "width", ]; return array_merge(parent::fieldList(), $fields); } /** - * A pointer to another product (or multiple products) for which this product is an accessory or spare part. + * 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\Product|string + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $isAccessoryOrSparePartFor; + protected $additionalProperty; /** - * Used to tag an item to be intended or suitable for consumption or use by adults only. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $hasAdultConsideration; + protected $aggregateRating; /** - * 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 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 string */ - protected $gtin12; + protected $asin; /** - * Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]]. + * An intended audience, i.e. a group for whom something was created. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $nsn; + protected $audience; /** - * A material that something is made from, e.g. leather, wool, cotton, paper. + * An organization or person officially appointed to act on behalf of the manufacturer in a specific region or context. * * - * @var string|\OpenActive\Models\SchemaOrg\Product + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $material; + protected $authorizedRepresentative; /** - * A review of the item. + * An award won by or for this item. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var string */ - protected $review; + protected $award; /** - * An award won by or for this item. + * Awards won by or for this item. * * * @var string */ - protected $award; + protected $awards; /** - * The width of the item. + * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @var \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $width; + protected $brand; /** - * The country of origin of something, including products as well as creative works such as movie and TV content. - * - * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. - * - * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here. + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ - protected $countryOfOrigin; + protected $category; /** - * A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'. Values are typically expressed as text, although links to controlled value schemes are also supported. + * The color of the product. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string */ - protected $pattern; + protected $color; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * A color swatch image, visualizing the color of a [[Product]]. Should match the textual description specified in the [[color]] property. This can be a URL or a fully described ImageObject. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $category; + protected $colorSwatch; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * A consumer notice, such as a safety warning or mandatory information, related to the product. * * - * @var \OpenActive\Models\SchemaOrg\Grant|string + * @var string|\OpenActive\Models\SchemaOrg\TextObject|\OpenActive\Models\SchemaOrg\WebContent */ - protected $funding; + protected $consumerNotice; /** - * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. + * The place where the product was assembled. * * * @var string */ - protected $mpn; + protected $countryOfAssembly; /** - * The height of the item. + * The place where the item (typically [[Product]]) was last processed and tested before importation. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $height; + protected $countryOfLastProcessing; /** - * 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 country of origin of something, including products as well as creative works such as movie and TV content. + * + * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. + * + * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $keywords; + protected $countryOfOrigin; /** - * The date the item e.g. vehicle was purchased by the current owner. + * The depth of the item. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $purchaseDate; + protected $depth; /** - * Defines the energy efficiency Category (also known as "class" or "rating") for a product according to an international energy efficiency standard. + * The location at which an item can be viewed or experienced in-person. * * - * @var \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $hasEnergyConsumptionDetails; + protected $displayLocation; /** - * An intended audience, i.e. a group for whom something was created. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $audience; + protected $funding; /** - * 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 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\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var string */ - protected $offers; + protected $gtin; /** - * The date of production of the item, e.g. vehicle. + * The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * - * @var Date|null + * @var string */ - protected $productionDate; + protected $gtin12; /** - * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns. + * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * - * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @var string */ - protected $itemCondition; + protected $gtin13; /** - * Awards won by or for this item. + * 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 $awards; + protected $gtin14; /** - * 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 GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * * @var string */ - protected $gtin; + protected $gtin8; /** - * The product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```. + * Used to tag an item to be intended or suitable for consumption or use by adults only. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null */ - protected $productID; + protected $hasAdultConsideration; /** - * The place where the product was assembled. + * Certification information about a product, organization, service, place, or person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $countryOfAssembly; + protected $hasCertification; /** - * The color of the product. + * 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 string + * @var \OpenActive\Models\SchemaOrg\DigitalProductPassport|string */ - protected $color; + protected $hasDigitalProductPassport; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * Defines the energy efficiency Category (also known as "class" or "rating") for a product according to an international energy efficiency standard. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string */ - protected $aggregateRating; + protected $hasEnergyConsumptionDetails; /** - * A pointer to another, functionally similar product (or multiple products). + * The GS1 digital link associated with the object. This URL should conform to the particular requirements of digital links. The link should only contain the Application Identifiers (AIs) that are relevant for the entity being annotated, for instance a [[Product]] or an [[Organization]], and for the correct granularity. In particular, for products: Other item types should be adapted similarly. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @var string */ - protected $isSimilarTo; + protected $hasGS1DigitalLink; /** - * The depth of the item. + * 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\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $depth; + protected $hasMeasurement; /** - * The place where the item (typically [[Product]]) was last processed and tested before importation. + * Specifies a MerchantReturnPolicy that may be applicable. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - protected $countryOfLastProcessing; + protected $hasMerchantReturnPolicy; /** - * Indicates the kind of product that this is a variant of. In the case of [[ProductModel]], this is a pointer (from a ProductModel) to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. In the case of a [[ProductGroup]], the group description also serves as a template, representing a set of Products that vary on explicitly defined, specific dimensions only (so it defines both a set of variants, as well as which values distinguish amongst those variants). When used with [[ProductGroup]], this property can apply to any [[Product]] included in the group. + * Indicates a ProductReturnPolicy that may be applicable. * * - * @var \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string + * @var \OpenActive\Models\SchemaOrg\ProductReturnPolicy|string */ - protected $isVariantOf; + protected $hasProductReturnPolicy; /** - * A slogan or motto associated with the item. + * The height of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $slogan; + protected $height; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * An organization or person who imports the product into a specific market or region. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $brand; + protected $importer; /** - * The manufacturer of the product. + * Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]]. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $manufacturer; + protected $inProductGroupWithID; /** - * A product measurement, for example the inseam of pants, the wheel size of a bicycle, or the gauge of a screw. Usually an exact measurement, but can also be a range of measurements for adjustable products, for example belts and ski bindings. + * A pointer to another product (or multiple products) for which this product is an accessory or spare part. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Product|string */ - protected $hasMeasurement; + protected $isAccessoryOrSparePartFor; /** * A pointer to another product (or multiple products) for which this product is a consumable. @@ -368,36 +394,95 @@ public static function fieldList() { protected $isConsumableFor; /** - * An associated logo. + * Indicates whether this content is family friendly. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var bool|null + */ + protected $isFamilyFriendly; + + /** + * Indicates a product that is often bought with the described product. + * + * + * @var \OpenActive\Models\SchemaOrg\Product|string + */ + protected $isOftenBoughtWith; + + /** + * A pointer to another, somehow related product (or multiple products). + * + * + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + */ + protected $isRelatedTo; + + /** + * A pointer to another, functionally similar product (or multiple products). + * + * + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + */ + protected $isSimilarTo; + + /** + * Indicates the kind of product that this is a variant of. In the case of [[ProductModel]], this is a pointer (from a ProductModel) to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. In the case of a [[ProductGroup]], the group description also serves as a template, representing a set of Products that vary on explicitly defined, specific dimensions only (so it defines both a set of variants, as well as which values distinguish amongst those variants). When used with [[ProductGroup]], this property can apply to any [[Product]] included in the group. + * + * + * @var \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string + */ + protected $isVariantOf; + + /** + * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns. + * + * + * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + */ + protected $itemCondition; + + /** + * 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\DefinedTerm|string + */ + protected $keywords; + + /** + * An associated logo. + * + * + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ protected $logo; /** - * 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 manufacturer of the product. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $gtin8; + protected $manufacturer; /** - * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers. + * A material that something is made from, e.g. leather, wool, cotton, paper. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Product|string */ - protected $sku; + protected $material; /** - * Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]]. + * The [[mobileUrl]] property is provided for specific situations in which data consumers need to determine whether one of several provided URLs is a dedicated 'mobile site'. + * + * To discourage over-use, and reflecting intial usecases, the property is expected only on [[Product]] and [[Offer]], rather than [[Thing]]. The general trend in web technology is towards [responsive design](https://en.wikipedia.org/wiki/Responsive_web_design) in which content can be flexibly adapted to a wide range of browsing environments. Pages and sites referenced with the long-established [[url]] property should ideally also be usable on a wide variety of devices, including mobile phones. In most cases, it would be pointless and counter productive to attempt to update all [[url]] markup to use [[mobileUrl]] for more mobile-oriented pages. The property is intended for the case when items (primarily [[Product]] and [[Offer]]) have extra URLs hosted on an additional "mobile site" alongside the main one. It should not be taken as an endorsement of this publication style. + * * * * @var string */ - protected $inProductGroupWithID; + protected $mobileUrl; /** * The model of the product. Use with the URL of a ProductModel or a textual representation of the model identifier. The URL of the ProductModel can be from an external source. It is recommended to additionally provide strong product identifiers via the gtin8/gtin13/gtin14 and mpn properties. @@ -408,12 +493,94 @@ public static function fieldList() { protected $model; /** - * Specifies a MerchantReturnPolicy that may be applicable. + * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. * * - * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @var string */ - protected $hasMerchantReturnPolicy; + protected $mpn; + + /** + * Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry + * + * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions + * tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]]. + * + * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list). + * + * + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent + */ + protected $negativeNotes; + + /** + * Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]]. + * + * + * @var string + */ + protected $nsn; + + /** + * 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; + + /** + * 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\DefinedTerm|string + */ + protected $pattern; + + /** + * Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews. + * + * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. + * + * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list). + * + * + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent + */ + protected $positiveNotes; + + /** + * The product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```. + * + * + * @var string + */ + protected $productID; + + /** + * The date of production of the item, e.g. vehicle. + * + * + * @var Date|null + */ + protected $productionDate; + + /** + * The date the item, e.g. vehicle, was purchased by the current owner. + * + * + * @var Date|null + */ + protected $purchaseDate; + + /** + * The percentage of recycled material in the product. + * + * + * @var Number|null + */ + protected $recycledContentPercentage; /** * The release date of a product or product model. This can be used to distinguish the exact variant of a product. @@ -424,1114 +591,1525 @@ public static function fieldList() { protected $releaseDate; /** - * The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * A review of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Review|string + */ + protected $review; + + /** + * Review of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Review|string + */ + protected $reviews; + + /** + * A standardized size of a product or creative work, specified either through a simple textual string (for example 'XL', '32Wx34L'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string + */ + protected $size; + + /** + * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers. * * * @var string */ - protected $gtin14; + protected $sku; + + /** + * A slogan or motto associated with the item. + * + * + * @var string + */ + protected $slogan; + + /** + * A specification of the product, often grouped by a section header/name. This is a cleaner alternative to additionalProperty for strict retail product specifications. + * + * + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + */ + protected $specification; + + /** + * A substance of concern (SoC) contained within the product, typically based on regulatory lists like REACH or RoHS. + * + * + * @var \OpenActive\Models\SchemaOrg\ChemicalSubstance|\OpenActive\Models\SchemaOrg\DefinedTerm|string + */ + protected $substanceOfConcern; /** * The weight of the product or person. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ protected $weight; /** - * A standardized size of a product or creative work, specified either through a simple textual string (for example 'XL', '32Wx34L'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. - * - * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * The width of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $width; + + /** + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + */ + public function getAdditionalProperty() + { + return $this->additionalProperty; + } + + /** + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAdditionalProperty($additionalProperty) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", + ]; + + $additionalProperty = self::checkTypes($additionalProperty, $types); + + $this->additionalProperty = $additionalProperty; + } + + /** + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + */ + public function getAggregateRating() + { + return $this->aggregateRating; + } + + /** + * @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 setAggregateRating($aggregateRating) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AggregateRating", + "string", + ]; + + $aggregateRating = self::checkTypes($aggregateRating, $types); + + $this->aggregateRating = $aggregateRating; + } + + /** + * @return string + */ + public function getAsin() + { + return $this->asin; + } + + /** + * @param string $asin + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAsin($asin) + { + $types = [ + "string", + ]; + + $asin = self::checkTypes($asin, $types); + + $this->asin = $asin; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Audience|string + */ + public function getAudience() + { + return $this->audience; + } + + /** + * @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 setAudience($audience) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Audience", + "string", + ]; + + $audience = self::checkTypes($audience, $types); + + $this->audience = $audience; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getAuthorizedRepresentative() + { + return $this->authorizedRepresentative; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $authorizedRepresentative + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAuthorizedRepresentative($authorizedRepresentative) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $authorizedRepresentative = self::checkTypes($authorizedRepresentative, $types); + + $this->authorizedRepresentative = $authorizedRepresentative; + } + + /** + * @return string + */ + public function getAward() + { + return $this->award; + } + + /** + * @param string $award + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAward($award) + { + $types = [ + "string", + ]; + + $award = self::checkTypes($award, $types); + + $this->award = $award; + } + + /** + * @return string + */ + public function getAwards() + { + return $this->awards; + } + + /** + * @param string $awards + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAwards($awards) + { + $types = [ + "string", + ]; + + $awards = self::checkTypes($awards, $types); + + $this->awards = $awards; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string + */ + public function getBrand() + { + return $this->brand; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string $brand + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setBrand($brand) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; + + $brand = self::checkTypes($brand, $types); + + $this->brand = $brand; + } + + /** + * @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 string + */ + public function getColor() + { + return $this->color; + } + + /** + * @param string $color + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setColor($color) + { + $types = [ + "string", + ]; + + $color = self::checkTypes($color, $types); + + $this->color = $color; + } + + /** + * @return \OpenActive\Models\SchemaOrg\ImageObject|string + */ + public function getColorSwatch() + { + return $this->colorSwatch; + } + + /** + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $colorSwatch + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setColorSwatch($colorSwatch) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ImageObject", + "string", + ]; + + $colorSwatch = self::checkTypes($colorSwatch, $types); + + $this->colorSwatch = $colorSwatch; + } + + /** + * @return string|\OpenActive\Models\SchemaOrg\TextObject|\OpenActive\Models\SchemaOrg\WebContent + */ + public function getConsumerNotice() + { + return $this->consumerNotice; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\TextObject|\OpenActive\Models\SchemaOrg\WebContent $consumerNotice + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setConsumerNotice($consumerNotice) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\TextObject", + "\OpenActive\Models\SchemaOrg\WebContent", + ]; + + $consumerNotice = self::checkTypes($consumerNotice, $types); + + $this->consumerNotice = $consumerNotice; + } + + /** + * @return string + */ + public function getCountryOfAssembly() + { + return $this->countryOfAssembly; + } + + /** + * @param string $countryOfAssembly + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCountryOfAssembly($countryOfAssembly) + { + $types = [ + "string", + ]; + + $countryOfAssembly = self::checkTypes($countryOfAssembly, $types); + + $this->countryOfAssembly = $countryOfAssembly; + } + + /** + * @return string */ - protected $size; + public function getCountryOfLastProcessing() + { + return $this->countryOfLastProcessing; + } /** - * 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. - * - * - * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @param string $countryOfLastProcessing + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $additionalProperty; + public function setCountryOfLastProcessing($countryOfLastProcessing) + { + $types = [ + "string", + ]; + + $countryOfLastProcessing = self::checkTypes($countryOfLastProcessing, $types); + + $this->countryOfLastProcessing = $countryOfLastProcessing; + } /** - * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. - * - * - * @var string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - protected $gtin13; + public function getCountryOfOrigin() + { + return $this->countryOfOrigin; + } /** - * Review of the item. - * - * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $reviews; + public function setCountryOfOrigin($countryOfOrigin) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Country", + "string", + ]; + + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + + $this->countryOfOrigin = $countryOfOrigin; + } /** - * Indicates whether this content is family friendly. - * - * - * @var bool|null + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $isFamilyFriendly; + public function getDepth() + { + return $this->depth; + } /** - * A pointer to another, somehow related product (or multiple products). - * - * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $isRelatedTo; + public function setDepth($depth) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $depth = self::checkTypes($depth, $types); + + $this->depth = $depth; + } /** - * @return \OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getIsAccessoryOrSparePartFor() + public function getDisplayLocation() { - return $this->isAccessoryOrSparePartFor; + return $this->displayLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Product|string $isAccessoryOrSparePartFor + * @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 setIsAccessoryOrSparePartFor($isAccessoryOrSparePartFor) + public function setDisplayLocation($displayLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $isAccessoryOrSparePartFor = self::checkTypes($isAccessoryOrSparePartFor, $types); + $displayLocation = self::checkTypes($displayLocation, $types); - $this->isAccessoryOrSparePartFor = $isAccessoryOrSparePartFor; + $this->displayLocation = $displayLocation; } /** - * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - public function getHasAdultConsideration() + public function getFunding() { - return $this->hasAdultConsideration; + return $this->funding; } /** - * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration + * @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 setHasAdultConsideration($hasAdultConsideration) + public function setFunding($funding) { $types = [ - "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", - "null", + "\OpenActive\Models\SchemaOrg\Grant", + "string", ]; - $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); + $funding = self::checkTypes($funding, $types); - $this->hasAdultConsideration = $hasAdultConsideration; + $this->funding = $funding; } /** * @return string */ - public function getGtin12() + public function getGtin() { - return $this->gtin12; + return $this->gtin; } /** - * @param string $gtin12 + * @param string $gtin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin12($gtin12) + public function setGtin($gtin) { $types = [ "string", ]; - $gtin12 = self::checkTypes($gtin12, $types); + $gtin = self::checkTypes($gtin, $types); - $this->gtin12 = $gtin12; + $this->gtin = $gtin; } /** * @return string */ - public function getNsn() + public function getGtin12() { - return $this->nsn; + return $this->gtin12; } /** - * @param string $nsn + * @param string $gtin12 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNsn($nsn) + public function setGtin12($gtin12) { $types = [ "string", ]; - $nsn = self::checkTypes($nsn, $types); + $gtin12 = self::checkTypes($gtin12, $types); - $this->nsn = $nsn; + $this->gtin12 = $gtin12; } /** - * @return string|\OpenActive\Models\SchemaOrg\Product + * @return string */ - public function getMaterial() + public function getGtin13() { - return $this->material; + return $this->gtin13; } /** - * @param string|\OpenActive\Models\SchemaOrg\Product $material + * @param string $gtin13 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaterial($material) + public function setGtin13($gtin13) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Product", ]; - $material = self::checkTypes($material, $types); + $gtin13 = self::checkTypes($gtin13, $types); - $this->material = $material; + $this->gtin13 = $gtin13; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string */ - public function getReview() + public function getGtin14() { - return $this->review; + return $this->gtin14; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param string $gtin14 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setGtin14($gtin14) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $review = self::checkTypes($review, $types); + $gtin14 = self::checkTypes($gtin14, $types); - $this->review = $review; + $this->gtin14 = $gtin14; } /** * @return string */ - public function getAward() + public function getGtin8() { - return $this->award; + return $this->gtin8; } /** - * @param string $award + * @param string $gtin8 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAward($award) + public function setGtin8($gtin8) { $types = [ "string", ]; - $award = self::checkTypes($award, $types); + $gtin8 = self::checkTypes($gtin8, $types); - $this->award = $award; + $this->gtin8 = $gtin8; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null */ - public function getWidth() + public function getHasAdultConsideration() { - return $this->width; + return $this->hasAdultConsideration; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width + * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWidth($width) + public function setHasAdultConsideration($hasAdultConsideration) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\Distance", - "string", + "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", + "null", ]; - $width = self::checkTypes($width, $types); + $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); - $this->width = $width; + $this->hasAdultConsideration = $hasAdultConsideration; } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getCountryOfOrigin() + public function getHasCertification() { - return $this->countryOfOrigin; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfOrigin($countryOfOrigin) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->hasCertification = $hasCertification; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\DigitalProductPassport|string */ - public function getPattern() + public function getHasDigitalProductPassport() { - return $this->pattern; + return $this->hasDigitalProductPassport; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern + * @param \OpenActive\Models\SchemaOrg\DigitalProductPassport|string $hasDigitalProductPassport * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPattern($pattern) + public function setHasDigitalProductPassport($hasDigitalProductPassport) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\DigitalProductPassport", "string", ]; - $pattern = self::checkTypes($pattern, $types); + $hasDigitalProductPassport = self::checkTypes($hasDigitalProductPassport, $types); - $this->pattern = $pattern; + $this->hasDigitalProductPassport = $hasDigitalProductPassport; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string */ - public function getCategory() + public function getHasEnergyConsumptionDetails() { - return $this->category; + return $this->hasEnergyConsumptionDetails; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string $hasEnergyConsumptionDetails * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setHasEnergyConsumptionDetails($hasEnergyConsumptionDetails) { $types = [ + "\OpenActive\Models\SchemaOrg\EnergyConsumptionDetails", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", ]; - $category = self::checkTypes($category, $types); + $hasEnergyConsumptionDetails = self::checkTypes($hasEnergyConsumptionDetails, $types); - $this->category = $category; + $this->hasEnergyConsumptionDetails = $hasEnergyConsumptionDetails; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return string */ - public function getFunding() + public function getHasGS1DigitalLink() { - return $this->funding; + return $this->hasGS1DigitalLink; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunding($funding) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $funding = self::checkTypes($funding, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->funding = $funding; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getMpn() + public function getHasMeasurement() { - return $this->mpn; + return $this->hasMeasurement; } /** - * @param string $mpn + * @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 setMpn($mpn) + public function setHasMeasurement($hasMeasurement) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $mpn = self::checkTypes($mpn, $types); + $hasMeasurement = self::checkTypes($hasMeasurement, $types); - $this->mpn = $mpn; + $this->hasMeasurement = $hasMeasurement; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - public function getHeight() + public function getHasMerchantReturnPolicy() { - return $this->height; + return $this->hasMerchantReturnPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeight($height) + public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", ]; - $height = self::checkTypes($height, $types); + $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); - $this->height = $height; + $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\ProductReturnPolicy|string */ - public function getKeywords() + public function getHasProductReturnPolicy() { - return $this->keywords; + return $this->hasProductReturnPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param \OpenActive\Models\SchemaOrg\ProductReturnPolicy|string $hasProductReturnPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setHasProductReturnPolicy($hasProductReturnPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\ProductReturnPolicy", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $hasProductReturnPolicy = self::checkTypes($hasProductReturnPolicy, $types); - $this->keywords = $keywords; + $this->hasProductReturnPolicy = $hasProductReturnPolicy; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getPurchaseDate() + public function getHeight() { - return $this->purchaseDate; + return $this->height; } /** - * @param Date|null $purchaseDate + * @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 setPurchaseDate($purchaseDate) + public function setHeight($height) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $purchaseDate = self::checkTypes($purchaseDate, $types); + $height = self::checkTypes($height, $types); - $this->purchaseDate = $purchaseDate; + $this->height = $height; } /** - * @return \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getHasEnergyConsumptionDetails() + public function getImporter() { - return $this->hasEnergyConsumptionDetails; + return $this->importer; } /** - * @param \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string $hasEnergyConsumptionDetails + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $importer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasEnergyConsumptionDetails($hasEnergyConsumptionDetails) + public function setImporter($importer) { $types = [ - "\OpenActive\Models\SchemaOrg\EnergyConsumptionDetails", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $hasEnergyConsumptionDetails = self::checkTypes($hasEnergyConsumptionDetails, $types); + $importer = self::checkTypes($importer, $types); - $this->hasEnergyConsumptionDetails = $hasEnergyConsumptionDetails; + $this->importer = $importer; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return string */ - public function getAudience() + public function getInProductGroupWithID() { - return $this->audience; + return $this->inProductGroupWithID; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param string $inProductGroupWithID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setInProductGroupWithID($inProductGroupWithID) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $audience = self::checkTypes($audience, $types); + $inProductGroupWithID = self::checkTypes($inProductGroupWithID, $types); - $this->audience = $audience; + $this->inProductGroupWithID = $inProductGroupWithID; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getOffers() + public function getIsAccessoryOrSparePartFor() { - return $this->offers; + return $this->isAccessoryOrSparePartFor; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param \OpenActive\Models\SchemaOrg\Product|string $isAccessoryOrSparePartFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setIsAccessoryOrSparePartFor($isAccessoryOrSparePartFor) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $offers = self::checkTypes($offers, $types); + $isAccessoryOrSparePartFor = self::checkTypes($isAccessoryOrSparePartFor, $types); - $this->offers = $offers; + $this->isAccessoryOrSparePartFor = $isAccessoryOrSparePartFor; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getProductionDate() + public function getIsConsumableFor() { - return $this->productionDate; + return $this->isConsumableFor; } /** - * @param Date|null $productionDate + * @param \OpenActive\Models\SchemaOrg\Product|string $isConsumableFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionDate($productionDate) + public function setIsConsumableFor($isConsumableFor) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Product", + "string", ]; - $productionDate = self::checkTypes($productionDate, $types); + $isConsumableFor = self::checkTypes($isConsumableFor, $types); - $this->productionDate = $productionDate; + $this->isConsumableFor = $isConsumableFor; } /** - * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @return bool|null */ - public function getItemCondition() + public function getIsFamilyFriendly() { - return $this->itemCondition; + return $this->isFamilyFriendly; } /** - * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition + * @param bool|null $isFamilyFriendly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemCondition($itemCondition) + public function setIsFamilyFriendly($isFamilyFriendly) { $types = [ - "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "bool", "null", ]; - $itemCondition = self::checkTypes($itemCondition, $types); + $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); - $this->itemCondition = $itemCondition; + $this->isFamilyFriendly = $isFamilyFriendly; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getAwards() + public function getIsOftenBoughtWith() { - return $this->awards; + return $this->isOftenBoughtWith; } /** - * @param string $awards + * @param \OpenActive\Models\SchemaOrg\Product|string $isOftenBoughtWith * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setIsOftenBoughtWith($isOftenBoughtWith) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $awards = self::checkTypes($awards, $types); + $isOftenBoughtWith = self::checkTypes($isOftenBoughtWith, $types); - $this->awards = $awards; + $this->isOftenBoughtWith = $isOftenBoughtWith; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getGtin() + public function getIsRelatedTo() { - return $this->gtin; + return $this->isRelatedTo; } /** - * @param string $gtin + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $isRelatedTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin($gtin) + public function setIsRelatedTo($isRelatedTo) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $gtin = self::checkTypes($gtin, $types); + $isRelatedTo = self::checkTypes($isRelatedTo, $types); - $this->gtin = $gtin; + $this->isRelatedTo = $isRelatedTo; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getProductID() + public function getIsSimilarTo() { - return $this->productID; + return $this->isSimilarTo; } /** - * @param string $productID + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $isSimilarTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductID($productID) + public function setIsSimilarTo($isSimilarTo) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $productID = self::checkTypes($productID, $types); + $isSimilarTo = self::checkTypes($isSimilarTo, $types); - $this->productID = $productID; + $this->isSimilarTo = $isSimilarTo; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string */ - public function getCountryOfAssembly() + public function getIsVariantOf() { - return $this->countryOfAssembly; + return $this->isVariantOf; } /** - * @param string $countryOfAssembly + * @param \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string $isVariantOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfAssembly($countryOfAssembly) + public function setIsVariantOf($isVariantOf) { $types = [ + "\OpenActive\Models\SchemaOrg\ProductGroup", + "\OpenActive\Models\SchemaOrg\ProductModel", "string", ]; - $countryOfAssembly = self::checkTypes($countryOfAssembly, $types); + $isVariantOf = self::checkTypes($isVariantOf, $types); - $this->countryOfAssembly = $countryOfAssembly; + $this->isVariantOf = $isVariantOf; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - public function getColor() + public function getItemCondition() { - return $this->color; + return $this->itemCondition; } /** - * @param string $color + * @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 setColor($color) + public function setItemCondition($itemCondition) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "null", ]; - $color = self::checkTypes($color, $types); + $itemCondition = self::checkTypes($itemCondition, $types); - $this->color = $color; + $this->itemCondition = $itemCondition; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getAggregateRating() + public function getKeywords() { - return $this->aggregateRating; + return $this->keywords; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @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 setAggregateRating($aggregateRating) + public function setKeywords($keywords) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $keywords = self::checkTypes($keywords, $types); - $this->aggregateRating = $aggregateRating; + $this->keywords = $keywords; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getIsSimilarTo() + public function getLogo() { - return $this->isSimilarTo; + return $this->logo; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isSimilarTo + * @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 setIsSimilarTo($isSimilarTo) + public function setLogo($logo) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $isSimilarTo = self::checkTypes($isSimilarTo, $types); + $logo = self::checkTypes($logo, $types); - $this->isSimilarTo = $isSimilarTo; + $this->logo = $logo; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getDepth() + public function getManufacturer() { - return $this->depth; + return $this->manufacturer; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth + * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepth($depth) + public function setManufacturer($manufacturer) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $depth = self::checkTypes($depth, $types); + $manufacturer = self::checkTypes($manufacturer, $types); - $this->depth = $depth; + $this->manufacturer = $manufacturer; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getCountryOfLastProcessing() + public function getMaterial() { - return $this->countryOfLastProcessing; + return $this->material; } /** - * @param string $countryOfLastProcessing + * @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 setCountryOfLastProcessing($countryOfLastProcessing) + public function setMaterial($material) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $countryOfLastProcessing = self::checkTypes($countryOfLastProcessing, $types); + $material = self::checkTypes($material, $types); - $this->countryOfLastProcessing = $countryOfLastProcessing; + $this->material = $material; } /** - * @return \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string + * @return string */ - public function getIsVariantOf() + public function getMobileUrl() { - return $this->isVariantOf; + return $this->mobileUrl; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string $isVariantOf + * @param string $mobileUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsVariantOf($isVariantOf) + public function setMobileUrl($mobileUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\ProductModel", - "\OpenActive\Models\SchemaOrg\ProductGroup", "string", ]; - $isVariantOf = self::checkTypes($isVariantOf, $types); + $mobileUrl = self::checkTypes($mobileUrl, $types); - $this->isVariantOf = $isVariantOf; + $this->mobileUrl = $mobileUrl; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ProductModel|string */ - public function getSlogan() + public function getModel() { - return $this->slogan; + return $this->model; } /** - * @param string $slogan + * @param \OpenActive\Models\SchemaOrg\ProductModel|string $model * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSlogan($slogan) + public function setModel($model) { $types = [ + "\OpenActive\Models\SchemaOrg\ProductModel", "string", ]; - $slogan = self::checkTypes($slogan, $types); + $model = self::checkTypes($model, $types); - $this->slogan = $slogan; + $this->model = $model; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return string */ - public function getBrand() + public function getMpn() { - return $this->brand; + return $this->mpn; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @param string $mpn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBrand($brand) + public function setMpn($mpn) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", "string", ]; - $brand = self::checkTypes($brand, $types); + $mpn = self::checkTypes($mpn, $types); - $this->brand = $brand; + $this->mpn = $mpn; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getManufacturer() + public function getNegativeNotes() { - return $this->manufacturer; + return $this->negativeNotes; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent $negativeNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setManufacturer($manufacturer) + public function setNegativeNotes($negativeNotes) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\ListItem", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $manufacturer = self::checkTypes($manufacturer, $types); + $negativeNotes = self::checkTypes($negativeNotes, $types); - $this->manufacturer = $manufacturer; + $this->negativeNotes = $negativeNotes; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getHasMeasurement() + public function getNsn() { - return $this->hasMeasurement; + return $this->nsn; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @param string $nsn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMeasurement($hasMeasurement) + public function setNsn($nsn) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $hasMeasurement = self::checkTypes($hasMeasurement, $types); + $nsn = self::checkTypes($nsn, $types); - $this->hasMeasurement = $hasMeasurement; + $this->nsn = $nsn; } /** - * @return \OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ - public function getIsConsumableFor() + public function getOffers() { - return $this->isConsumableFor; + return $this->offers; } /** - * @param \OpenActive\Models\SchemaOrg\Product|string $isConsumableFor + * @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 setIsConsumableFor($isConsumableFor) + public function setOffers($offers) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $isConsumableFor = self::checkTypes($isConsumableFor, $types); + $offers = self::checkTypes($offers, $types); - $this->isConsumableFor = $isConsumableFor; + $this->offers = $offers; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getLogo() + public function getPattern() { - return $this->logo; + return $this->pattern; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @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 setLogo($logo) + public function setPattern($pattern) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $pattern = self::checkTypes($pattern, $types); - $this->logo = $logo; + $this->pattern = $pattern; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getGtin8() + public function getPositiveNotes() { - return $this->gtin8; + return $this->positiveNotes; } /** - * @param string $gtin8 + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent $positiveNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin8($gtin8) + public function setPositiveNotes($positiveNotes) { $types = [ + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\ListItem", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $gtin8 = self::checkTypes($gtin8, $types); + $positiveNotes = self::checkTypes($positiveNotes, $types); - $this->gtin8 = $gtin8; + $this->positiveNotes = $positiveNotes; } /** * @return string */ - public function getSku() + public function getProductID() { - return $this->sku; + return $this->productID; } /** - * @param string $sku + * @param string $productID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSku($sku) + public function setProductID($productID) { $types = [ "string", ]; - $sku = self::checkTypes($sku, $types); + $productID = self::checkTypes($productID, $types); - $this->sku = $sku; + $this->productID = $productID; } /** - * @return string + * @return Date|null */ - public function getInProductGroupWithID() + public function getProductionDate() { - return $this->inProductGroupWithID; + return $this->productionDate; } /** - * @param string $inProductGroupWithID + * @param Date|null $productionDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInProductGroupWithID($inProductGroupWithID) + public function setProductionDate($productionDate) { $types = [ - "string", + "Date", + "null", ]; - $inProductGroupWithID = self::checkTypes($inProductGroupWithID, $types); + $productionDate = self::checkTypes($productionDate, $types); - $this->inProductGroupWithID = $inProductGroupWithID; + $this->productionDate = $productionDate; } /** - * @return \OpenActive\Models\SchemaOrg\ProductModel|string + * @return Date|null */ - public function getModel() + public function getPurchaseDate() { - return $this->model; + return $this->purchaseDate; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|string $model + * @param Date|null $purchaseDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setModel($model) + public function setPurchaseDate($purchaseDate) { $types = [ - "\OpenActive\Models\SchemaOrg\ProductModel", - "string", + "Date", + "null", ]; - $model = self::checkTypes($model, $types); + $purchaseDate = self::checkTypes($purchaseDate, $types); - $this->model = $model; + $this->purchaseDate = $purchaseDate; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @return Number|null */ - public function getHasMerchantReturnPolicy() + public function getRecycledContentPercentage() { - return $this->hasMerchantReturnPolicy; + return $this->recycledContentPercentage; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy + * @param Number|null $recycledContentPercentage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) + public function setRecycledContentPercentage($recycledContentPercentage) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", - "string", + "Number", + "null", ]; - $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); + $recycledContentPercentage = self::checkTypes($recycledContentPercentage, $types); - $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; + $this->recycledContentPercentage = $recycledContentPercentage; } /** @@ -1560,56 +2138,57 @@ public function setReleaseDate($releaseDate) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getGtin14() + public function getReview() { - return $this->gtin14; + return $this->review; } /** - * @param string $gtin14 + * @param \OpenActive\Models\SchemaOrg\Review|string $review * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin14($gtin14) + public function setReview($review) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $gtin14 = self::checkTypes($gtin14, $types); + $review = self::checkTypes($review, $types); - $this->gtin14 = $gtin14; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getWeight() + public function getReviews() { - return $this->weight; + return $this->reviews; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight + * @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 setWeight($weight) + public function setReviews($reviews) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $weight = self::checkTypes($weight, $types); + $reviews = self::checkTypes($reviews, $types); - $this->weight = $weight; + $this->reviews = $reviews; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\SizeSpecification|string */ public function getSize() { @@ -1617,17 +2196,17 @@ public function getSize() } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification $size + * @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 setSize($size) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "\OpenActive\Models\SchemaOrg\DefinedTerm", - "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "\OpenActive\Models\SchemaOrg\SizeSpecification", + "string", ]; $size = self::checkTypes($size, $types); @@ -1636,128 +2215,154 @@ public function setSize($size) } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return string */ - public function getAdditionalProperty() + public function getSku() { - return $this->additionalProperty; + return $this->sku; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @param string $sku * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalProperty($additionalProperty) + public function setSku($sku) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $sku = self::checkTypes($sku, $types); - $this->additionalProperty = $additionalProperty; + $this->sku = $sku; } /** * @return string */ - public function getGtin13() + public function getSlogan() { - return $this->gtin13; + return $this->slogan; } /** - * @param string $gtin13 + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin13($gtin13) + public function setSlogan($slogan) { $types = [ "string", ]; - $gtin13 = self::checkTypes($gtin13, $types); + $slogan = self::checkTypes($slogan, $types); - $this->gtin13 = $gtin13; + $this->slogan = $slogan; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getReviews() + public function getSpecification() { - return $this->reviews; + return $this->specification; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $specification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviews($reviews) + public function setSpecification($specification) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $specification = self::checkTypes($specification, $types); - $this->reviews = $reviews; + $this->specification = $specification; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\ChemicalSubstance|\OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getIsFamilyFriendly() + public function getSubstanceOfConcern() { - return $this->isFamilyFriendly; + return $this->substanceOfConcern; } /** - * @param bool|null $isFamilyFriendly + * @param \OpenActive\Models\SchemaOrg\ChemicalSubstance|\OpenActive\Models\SchemaOrg\DefinedTerm|string $substanceOfConcern * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsFamilyFriendly($isFamilyFriendly) + public function setSubstanceOfConcern($substanceOfConcern) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\ChemicalSubstance", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); + $substanceOfConcern = self::checkTypes($substanceOfConcern, $types); - $this->isFamilyFriendly = $isFamilyFriendly; + $this->substanceOfConcern = $substanceOfConcern; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getIsRelatedTo() + public function getWeight() { - return $this->isRelatedTo; + return $this->weight; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo + * @param \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsRelatedTo($isRelatedTo) + public function setWeight($weight) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Mass", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $isRelatedTo = self::checkTypes($isRelatedTo, $types); + $weight = self::checkTypes($weight, $types); - $this->isRelatedTo = $isRelatedTo; + $this->weight = $weight; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getWidth() + { + return $this->width; + } + + /** + * @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 setWidth($width) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $width = self::checkTypes($width, $types); + + $this->width = $width; } } diff --git a/src/Models/SchemaOrg/ProductCollection.php b/src/Models/SchemaOrg/ProductCollection.php index e842cc57..43e06033 100644 --- a/src/Models/SchemaOrg/ProductCollection.php +++ b/src/Models/SchemaOrg/ProductCollection.php @@ -5,7 +5,7 @@ /** * */ -class ProductCollection extends \OpenActive\Models\SchemaOrg\Product +class ProductCollection extends \OpenActive\Models\SchemaOrg\Collection { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/ProductGroup.php b/src/Models/SchemaOrg/ProductGroup.php index a33132b4..40e77722 100644 --- a/src/Models/SchemaOrg/ProductGroup.php +++ b/src/Models/SchemaOrg/ProductGroup.php @@ -42,10 +42,10 @@ public static function fieldList() { protected $productGroupID; /** - * Indicates the property or properties by which the variants in a [[ProductGroup]] vary, e.g. their size, color etc. Schema.org properties can be referenced by their short name e.g. "color"; terms defined elsewhere can be referenced with their URIs. + * Indicates the property or properties by which the variants in a [[ProductGroup]] vary, e.g. their size, color etc. Schema.org properties can be referenced by their short name e.g. "color"; terms defined elsewhere can be referenced with their URIs. Variant properties can be provided using [[PropertyValue]] instead of plain [[Text]], to allow specification of the values available for a variant property. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ protected $variesBy; @@ -99,7 +99,7 @@ public function setProductGroupID($productGroupID) } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ public function getVariesBy() { @@ -107,15 +107,16 @@ public function getVariesBy() } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $variesBy + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $variesBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setVariesBy($variesBy) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", ]; $variesBy = self::checkTypes($variesBy, $types); diff --git a/src/Models/SchemaOrg/ProductModel.php b/src/Models/SchemaOrg/ProductModel.php index edd471d9..9954009a 100644 --- a/src/Models/SchemaOrg/ProductModel.php +++ b/src/Models/SchemaOrg/ProductModel.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "successorOf" => "successorOf", - "predecessorOf" => "predecessorOf", "isVariantOf" => "isVariantOf", + "predecessorOf" => "predecessorOf", + "successorOf" => "successorOf", ]; return array_merge(parent::fieldList(), $fields); } /** - * A pointer from a newer variant of a product to its previous, often discontinued predecessor. + * Indicates the kind of product that this is a variant of. In the case of [[ProductModel]], this is a pointer (from a ProductModel) to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. In the case of a [[ProductGroup]], the group description also serves as a template, representing a set of Products that vary on explicitly defined, specific dimensions only (so it defines both a set of variants, as well as which values distinguish amongst those variants). When used with [[ProductGroup]], this property can apply to any [[Product]] included in the group. * * - * @var \OpenActive\Models\SchemaOrg\ProductModel|string + * @var \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string */ - protected $successorOf; + protected $isVariantOf; /** * A pointer from a previous, often discontinued variant of the product to its newer variant. @@ -42,36 +42,37 @@ public static function fieldList() { protected $predecessorOf; /** - * Indicates the kind of product that this is a variant of. In the case of [[ProductModel]], this is a pointer (from a ProductModel) to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. In the case of a [[ProductGroup]], the group description also serves as a template, representing a set of Products that vary on explicitly defined, specific dimensions only (so it defines both a set of variants, as well as which values distinguish amongst those variants). When used with [[ProductGroup]], this property can apply to any [[Product]] included in the group. + * A pointer from a newer variant of a product to its previous, often discontinued predecessor. * * - * @var \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string + * @var \OpenActive\Models\SchemaOrg\ProductModel|string */ - protected $isVariantOf; + protected $successorOf; /** - * @return \OpenActive\Models\SchemaOrg\ProductModel|string + * @return \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string */ - public function getSuccessorOf() + public function getIsVariantOf() { - return $this->successorOf; + return $this->isVariantOf; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|string $successorOf + * @param \OpenActive\Models\SchemaOrg\ProductGroup|\OpenActive\Models\SchemaOrg\ProductModel|string $isVariantOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuccessorOf($successorOf) + public function setIsVariantOf($isVariantOf) { $types = [ + "\OpenActive\Models\SchemaOrg\ProductGroup", "\OpenActive\Models\SchemaOrg\ProductModel", "string", ]; - $successorOf = self::checkTypes($successorOf, $types); + $isVariantOf = self::checkTypes($isVariantOf, $types); - $this->successorOf = $successorOf; + $this->isVariantOf = $isVariantOf; } /** @@ -100,29 +101,28 @@ public function setPredecessorOf($predecessorOf) } /** - * @return \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string + * @return \OpenActive\Models\SchemaOrg\ProductModel|string */ - public function getIsVariantOf() + public function getSuccessorOf() { - return $this->isVariantOf; + return $this->successorOf; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string $isVariantOf + * @param \OpenActive\Models\SchemaOrg\ProductModel|string $successorOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsVariantOf($isVariantOf) + public function setSuccessorOf($successorOf) { $types = [ "\OpenActive\Models\SchemaOrg\ProductModel", - "\OpenActive\Models\SchemaOrg\ProductGroup", "string", ]; - $isVariantOf = self::checkTypes($isVariantOf, $types); + $successorOf = self::checkTypes($successorOf, $types); - $this->isVariantOf = $isVariantOf; + $this->successorOf = $successorOf; } } diff --git a/src/Models/SchemaOrg/ProductReturnPolicy.php b/src/Models/SchemaOrg/ProductReturnPolicy.php new file mode 100644 index 00000000..33413b8f --- /dev/null +++ b/src/Models/SchemaOrg/ProductReturnPolicy.php @@ -0,0 +1,92 @@ + "productReturnDays", + "productReturnLink" => "productReturnLink", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * The productReturnDays property indicates the number of days (from purchase) within which relevant product return policy is applicable. + * + * + * @var int|null + */ + protected $productReturnDays; + + /** + * Indicates a Web page or service by URL, for product return. + * + * + * @var string + */ + protected $productReturnLink; + + /** + * @return int|null + */ + public function getProductReturnDays() + { + return $this->productReturnDays; + } + + /** + * @param int|null $productReturnDays + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setProductReturnDays($productReturnDays) + { + $types = [ + "int", + "null", + ]; + + $productReturnDays = self::checkTypes($productReturnDays, $types); + + $this->productReturnDays = $productReturnDays; + } + + /** + * @return string + */ + public function getProductReturnLink() + { + return $this->productReturnLink; + } + + /** + * @param string $productReturnLink + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setProductReturnLink($productReturnLink) + { + $types = [ + "string", + ]; + + $productReturnLink = self::checkTypes($productReturnLink, $types); + + $this->productReturnLink = $productReturnLink; + } + +} diff --git a/src/Models/SchemaOrg/ProgramMembership.php b/src/Models/SchemaOrg/ProgramMembership.php index c73bd560..225b504c 100644 --- a/src/Models/SchemaOrg/ProgramMembership.php +++ b/src/Models/SchemaOrg/ProgramMembership.php @@ -17,24 +17,25 @@ public static function getType() public static function fieldList() { $fields = [ - "membershipPointsEarned" => "membershipPointsEarned", + "hostingOrganization" => "hostingOrganization", "member" => "member", + "members" => "members", "membershipNumber" => "membershipNumber", - "hostingOrganization" => "hostingOrganization", + "membershipPointsEarned" => "membershipPointsEarned", + "program" => "program", "programName" => "programName", - "members" => "members", ]; return array_merge(parent::fieldList(), $fields); } /** - * The number of membership points earned by the member. If necessary, the unitText can be used to express the units the points are issued in. (e.g. stars, miles, etc.) + * The Organization (airline, travelers' club, retailer, etc.) the membership is made with or which offers the MemberProgram. * * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $membershipPointsEarned; + protected $hostingOrganization; /** * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. @@ -44,6 +45,14 @@ public static function fieldList() { */ protected $member; + /** + * A member of this organization. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $members; + /** * A unique identifier for the membership. * @@ -53,54 +62,52 @@ public static function fieldList() { protected $membershipNumber; /** - * The organization (airline, travelers' club, etc.) the membership is made with. + * 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 \OpenActive\Models\SchemaOrg\Organization|string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $hostingOrganization; + protected $membershipPointsEarned; /** - * The program providing the membership. + * The [MemberProgram](https://schema.org/MemberProgram) associated with a [ProgramMembership](https://schema.org/ProgramMembership). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MemberProgram|string */ - protected $programName; + protected $program; /** - * A member of this organization. + * The program providing the membership. It is preferable to use [:program](https://schema.org/program) instead. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $members; + protected $programName; /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getMembershipPointsEarned() + public function getHostingOrganization() { - return $this->membershipPointsEarned; + return $this->hostingOrganization; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $membershipPointsEarned + * @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 setMembershipPointsEarned($membershipPointsEarned) + public function setHostingOrganization($hostingOrganization) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "null", ]; - $membershipPointsEarned = self::checkTypes($membershipPointsEarned, $types); + $hostingOrganization = self::checkTypes($hostingOrganization, $types); - $this->membershipPointsEarned = $membershipPointsEarned; + $this->hostingOrganization = $hostingOrganization; } /** @@ -129,6 +136,32 @@ public function setMember($member) $this->member = $member; } + /** + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getMembers() + { + return $this->members; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $members + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMembers($members) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $members = self::checkTypes($members, $types); + + $this->members = $members; + } + /** * @return string */ @@ -154,78 +187,79 @@ public function setMembershipNumber($membershipNumber) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getHostingOrganization() + public function getMembershipPointsEarned() { - return $this->hostingOrganization; + return $this->membershipPointsEarned; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $hostingOrganization + * @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 setHostingOrganization($hostingOrganization) + public function setMembershipPointsEarned($membershipPointsEarned) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $hostingOrganization = self::checkTypes($hostingOrganization, $types); + $membershipPointsEarned = self::checkTypes($membershipPointsEarned, $types); - $this->hostingOrganization = $hostingOrganization; + $this->membershipPointsEarned = $membershipPointsEarned; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MemberProgram|string */ - public function getProgramName() + public function getProgram() { - return $this->programName; + return $this->program; } /** - * @param string $programName + * @param \OpenActive\Models\SchemaOrg\MemberProgram|string $program * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgramName($programName) + public function setProgram($program) { $types = [ + "\OpenActive\Models\SchemaOrg\MemberProgram", "string", ]; - $programName = self::checkTypes($programName, $types); + $program = self::checkTypes($program, $types); - $this->programName = $programName; + $this->program = $program; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getMembers() + public function getProgramName() { - return $this->members; + return $this->programName; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $members + * @param string $programName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMembers($members) + public function setProgramName($programName) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $members = self::checkTypes($members, $types); + $programName = self::checkTypes($programName, $types); - $this->members = $members; + $this->programName = $programName; } } diff --git a/src/Models/SchemaOrg/PronounceableText.php b/src/Models/SchemaOrg/PronounceableText.php index 15e10a48..5a9d9a80 100644 --- a/src/Models/SchemaOrg/PronounceableText.php +++ b/src/Models/SchemaOrg/PronounceableText.php @@ -17,15 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ + "inLanguage" => "inLanguage", "phoneticText" => "phoneticText", "speechToTextMarkup" => "speechToTextMarkup", "textValue" => "textValue", - "inLanguage" => "inLanguage", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. + * + * + * @var \OpenActive\Models\SchemaOrg\Language|string + */ + protected $inLanguage; + /** * Representation of a text [[textValue]] using the specified [[speechToTextMarkup]]. For example the city name of Houston in IPA: /ˈhjuːstən/. * @@ -51,12 +59,29 @@ public static function fieldList() { protected $textValue; /** - * 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 + * @return \OpenActive\Models\SchemaOrg\Language|string */ - protected $inLanguage; + public function getInLanguage() + { + return $this->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 = [ + "\OpenActive\Models\SchemaOrg\Language", + "string", + ]; + + $inLanguage = self::checkTypes($inLanguage, $types); + + $this->inLanguage = $inLanguage; + } /** * @return string @@ -130,29 +155,4 @@ public function setTextValue($textValue) $this->textValue = $textValue; } - /** - * @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; - } - } diff --git a/src/Models/SchemaOrg/Property.php b/src/Models/SchemaOrg/Property.php index bdc35f9f..1ffef249 100644 --- a/src/Models/SchemaOrg/Property.php +++ b/src/Models/SchemaOrg/Property.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "domainIncludes" => "domainIncludes", - "supersededBy" => "supersededBy", - "rangeIncludes" => "rangeIncludes", "inverseOf" => "inverseOf", + "rangeIncludes" => "rangeIncludes", + "supersededBy" => "supersededBy", ]; return array_merge(parent::fieldList(), $fields); @@ -35,12 +35,12 @@ public static function fieldList() { protected $domainIncludes; /** - * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. + * Relates a property to a property that is its inverse. Inverse properties relate the same pairs of items to each other, but in reversed direction. For example, the 'alumni' and 'alumniOf' properties are inverseOf each other. Some properties don't have explicit inverses; in these situations RDFa and JSON-LD syntax for reverse properties can be used. * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @var string|\OpenActive\Enums\PropertyEnumeration|null */ - protected $supersededBy; + protected $inverseOf; /** * Relates a property to a class that constitutes (one of) the expected type(s) for values of the property. @@ -51,12 +51,12 @@ public static function fieldList() { protected $rangeIncludes; /** - * Relates a property to a property that is its inverse. Inverse properties relate the same pairs of items to each other, but in reversed direction. For example, the 'alumni' and 'alumniOf' properties are inverseOf each other. Some properties don't have explicit inverses; in these situations RDFa and JSON-LD syntax for reverse properties can be used. + * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. * * - * @var string|\OpenActive\Enums\PropertyEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|\OpenActive\Enums\PropertyEnumeration|null */ - protected $inverseOf; + protected $supersededBy; /** * @return \OpenActive\Models\SchemaOrg\Class|string @@ -84,31 +84,29 @@ public function setDomainIncludes($domainIncludes) } /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @return string|\OpenActive\Enums\PropertyEnumeration|null */ - public function getSupersededBy() + public function getInverseOf() { - return $this->supersededBy; + return $this->inverseOf; } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy + * @param string|\OpenActive\Enums\PropertyEnumeration|null $inverseOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupersededBy($supersededBy) + public function setInverseOf($inverseOf) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", - "\OpenActive\Models\SchemaOrg\Class", "string", "\OpenActive\Enums\PropertyEnumeration", "null", ]; - $supersededBy = self::checkTypes($supersededBy, $types); + $inverseOf = self::checkTypes($inverseOf, $types); - $this->supersededBy = $supersededBy; + $this->inverseOf = $inverseOf; } /** @@ -137,29 +135,31 @@ public function setRangeIncludes($rangeIncludes) } /** - * @return string|\OpenActive\Enums\PropertyEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Class|\OpenActive\Models\SchemaOrg\Enumeration|string|\OpenActive\Enums\PropertyEnumeration|null */ - public function getInverseOf() + public function getSupersededBy() { - return $this->inverseOf; + return $this->supersededBy; } /** - * @param string|\OpenActive\Enums\PropertyEnumeration|null $inverseOf + * @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 setInverseOf($inverseOf) + public function setSupersededBy($supersededBy) { $types = [ + "\OpenActive\Models\SchemaOrg\Class", + "\OpenActive\Models\SchemaOrg\Enumeration", "string", "\OpenActive\Enums\PropertyEnumeration", "null", ]; - $inverseOf = self::checkTypes($inverseOf, $types); + $supersededBy = self::checkTypes($supersededBy, $types); - $this->inverseOf = $inverseOf; + $this->supersededBy = $supersededBy; } } diff --git a/src/Models/SchemaOrg/PropertyValue.php b/src/Models/SchemaOrg/PropertyValue.php index f8056176..99d508bf 100644 --- a/src/Models/SchemaOrg/PropertyValue.php +++ b/src/Models/SchemaOrg/PropertyValue.php @@ -17,30 +17,62 @@ public static function getType() public static function fieldList() { $fields = [ - "valueReference" => "valueReference", - "propertyID" => "propertyID", "maxValue" => "maxValue", - "unitText" => "unitText", + "measurementMethod" => "measurementMethod", "measurementTechnique" => "measurementTechnique", "minValue" => "minValue", - "value" => "value", + "propertyID" => "propertyID", "unitCode" => "unitCode", + "unitText" => "unitText", + "value" => "value", + "valueGroup" => "valueGroup", + "valueReference" => "valueReference", ]; return array_merge(parent::fieldList(), $fields); } /** - * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. + * The upper value of some characteristic or property. * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + * @var Number|null */ - protected $valueReference; + protected $maxValue; + + /** + * 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. + * + * 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 lower value of some characteristic or property. + * + * + * @var Number|null + */ + protected $minValue; /** * A commonly used identifier for the characteristic represented by the property, e.g. a manufacturer or a standard code for a property. propertyID can be - * (1) a prefixed string, mainly meant to be used with standards for product properties; (2) a site-specific, non-prefixed string (e.g. the primary key of the property or the vendor-specific id of the property), or (3) + * (1) a prefixed string, mainly meant to be used with standards for product properties; (2) a site-specific, non-prefixed string (e.g. the primary key of the property or the vendor-specific ID of the property), or (3) * a URL indicating the type of the property, either pointing to an external vocabulary, or a Web resource that describes the property (e.g. a glossary entry). * Standards bodies should promote a standard prefix for the identifiers of properties from their standards. * @@ -50,12 +82,12 @@ public static function fieldList() { protected $propertyID; /** - * The upper value of some characteristic or property. + * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. * * - * @var Number|null + * @var string */ - protected $maxValue; + protected $unitCode; /** * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for @@ -67,201 +99,207 @@ public static function fieldList() { protected $unitText; /** - * 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]]. - * + * 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 $measurementTechnique; + protected $value; /** - * The lower value of some characteristic or property. + * A header or section name for grouping related property values. * * - * @var Number|null + * @var string */ - protected $minValue; + protected $valueGroup; /** - * The value of the quantitative value or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text;', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. * * - * @var string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ - protected $value; + protected $valueReference; /** - * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. - * - * - * @var string + * @return Number|null */ - protected $unitCode; + public function getMaxValue() + { + return $this->maxValue; + } /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + * @param Number|null $maxValue + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function getValueReference() + public function setMaxValue($maxValue) { - return $this->valueReference; + $types = [ + "Number", + "null", + ]; + + $maxValue = self::checkTypes($maxValue, $types); + + $this->maxValue = $maxValue; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null + */ + public function getMeasurementMethod() + { + return $this->measurementMethod; } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null $valueReference + * @param \OpenActive\Models\SchemaOrg\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 setValueReference($valueReference) + public function setMeasurementMethod($measurementMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", "string", - "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "\OpenActive\Models\SchemaOrg\StructuredValue", - "\OpenActive\Models\SchemaOrg\PropertyValue", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "null", ]; - $valueReference = self::checkTypes($valueReference, $types); + $measurementMethod = self::checkTypes($measurementMethod, $types); - $this->valueReference = $valueReference; + $this->measurementMethod = $measurementMethod; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|string|null */ - public function getPropertyID() + public function getMeasurementTechnique() { - return $this->propertyID; + return $this->measurementTechnique; } /** - * @param string $propertyID + * @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 setPropertyID($propertyID) + public function setMeasurementTechnique($measurementTechnique) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", "string", + "null", ]; - $propertyID = self::checkTypes($propertyID, $types); + $measurementTechnique = self::checkTypes($measurementTechnique, $types); - $this->propertyID = $propertyID; + $this->measurementTechnique = $measurementTechnique; } /** * @return Number|null */ - public function getMaxValue() + public function getMinValue() { - return $this->maxValue; + return $this->minValue; } /** - * @param Number|null $maxValue + * @param Number|null $minValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaxValue($maxValue) + public function setMinValue($minValue) { $types = [ "Number", "null", ]; - $maxValue = self::checkTypes($maxValue, $types); + $minValue = self::checkTypes($minValue, $types); - $this->maxValue = $maxValue; + $this->minValue = $minValue; } /** * @return string */ - public function getUnitText() + public function getPropertyID() { - return $this->unitText; + return $this->propertyID; } /** - * @param string $unitText + * @param string $propertyID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setPropertyID($propertyID) { $types = [ "string", ]; - $unitText = self::checkTypes($unitText, $types); + $propertyID = self::checkTypes($propertyID, $types); - $this->unitText = $unitText; + $this->propertyID = $propertyID; } /** * @return string */ - public function getMeasurementTechnique() + public function getUnitCode() { - return $this->measurementTechnique; + return $this->unitCode; } /** - * @param string $measurementTechnique + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMeasurementTechnique($measurementTechnique) + public function setUnitCode($unitCode) { $types = [ "string", ]; - $measurementTechnique = self::checkTypes($measurementTechnique, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->measurementTechnique = $measurementTechnique; + $this->unitCode = $unitCode; } /** - * @return Number|null + * @return string */ - public function getMinValue() + public function getUnitText() { - return $this->minValue; + return $this->unitText; } /** - * @param Number|null $minValue + * @param string $unitText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinValue($minValue) + public function setUnitText($unitText) { $types = [ - "Number", - "null", + "string", ]; - $minValue = self::checkTypes($minValue, $types); + $unitText = self::checkTypes($unitText, $types); - $this->minValue = $minValue; + $this->unitText = $unitText; } /** - * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @return bool|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ public function getValue() { @@ -269,17 +307,18 @@ public function getValue() } /** - * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value + * @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 setValue($value) { $types = [ - "string", + "bool", "Number", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "\OpenActive\Models\SchemaOrg\StructuredValue", - "bool", + "string", "null", ]; @@ -291,25 +330,57 @@ public function setValue($value) /** * @return string */ - public function getUnitCode() + public function getValueGroup() { - return $this->unitCode; + return $this->valueGroup; } /** - * @param string $unitCode + * @param string $valueGroup * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitCode($unitCode) + public function setValueGroup($valueGroup) { $types = [ "string", ]; - $unitCode = self::checkTypes($unitCode, $types); + $valueGroup = self::checkTypes($valueGroup, $types); - $this->unitCode = $unitCode; + $this->valueGroup = $valueGroup; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + */ + public function getValueReference() + { + return $this->valueReference; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $valueReference + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValueReference($valueReference) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Enumeration", + "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\StructuredValue", + "string", + "null", + ]; + + $valueReference = self::checkTypes($valueReference, $types); + + $this->valueReference = $valueReference; } } diff --git a/src/Models/SchemaOrg/PropertyValueSpecification.php b/src/Models/SchemaOrg/PropertyValueSpecification.php index e316e8b1..62be1abd 100644 --- a/src/Models/SchemaOrg/PropertyValueSpecification.php +++ b/src/Models/SchemaOrg/PropertyValueSpecification.php @@ -17,381 +17,381 @@ public static function getType() public static function fieldList() { $fields = [ - "valueMaxLength" => "valueMaxLength", - "readonlyValue" => "readonlyValue", - "maxValue" => "maxValue", - "valueName" => "valueName", "defaultValue" => "defaultValue", - "valueMinLength" => "valueMinLength", - "valueRequired" => "valueRequired", + "maxValue" => "maxValue", "minValue" => "minValue", - "valuePattern" => "valuePattern", - "stepValue" => "stepValue", "multipleValues" => "multipleValues", + "readonlyValue" => "readonlyValue", + "stepValue" => "stepValue", + "valueMaxLength" => "valueMaxLength", + "valueMinLength" => "valueMinLength", + "valueName" => "valueName", + "valuePattern" => "valuePattern", + "valueRequired" => "valueRequired", ]; return array_merge(parent::fieldList(), $fields); } /** - * Specifies the allowed range for number of characters in a literal value. + * The default value of the input. For properties that expect a literal, the default is a literal value, for properties that expect an object, it's an ID reference to one of the current values. * * - * @var Number|null + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $valueMaxLength; + protected $defaultValue; /** - * Whether or not a property is mutable. Default is false. Specifying this for a property that also has a value makes it act similar to a "hidden" input in an HTML form. + * The upper value of some characteristic or property. * * - * @var bool|null + * @var Number|null */ - protected $readonlyValue; + protected $maxValue; /** - * The upper value of some characteristic or property. + * The lower value of some characteristic or property. * * * @var Number|null */ - protected $maxValue; + protected $minValue; /** - * Indicates the name of the PropertyValueSpecification to be used in URL templates and form encoding in a manner analogous to HTML's `input@name`. + * Whether multiple values are allowed for the property. Default is false. * * - * @var string + * @var bool|null */ - protected $valueName; + protected $multipleValues; /** - * The default value of the input. For properties that expect a literal, the default is a literal value, for properties that expect an object, it's an ID reference to one of the current values. + * Whether or not a property is mutable. Default is false. Specifying this for a property that also has a value makes it act similar to a "hidden" input in an HTML form. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var bool|null */ - protected $defaultValue; + protected $readonlyValue; /** - * Specifies the minimum allowed range for number of characters in a literal value. + * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. * * * @var Number|null */ - protected $valueMinLength; + protected $stepValue; /** - * Whether the property must be filled in to complete the action. Default is false. + * Specifies the allowed range for number of characters in a literal value. * * - * @var bool|null + * @var Number|null */ - protected $valueRequired; + protected $valueMaxLength; /** - * The lower value of some characteristic or property. + * Specifies the minimum allowed range for number of characters in a literal value. * * * @var Number|null */ - protected $minValue; + protected $valueMinLength; /** - * Specifies a regular expression for testing literal values according to the HTML spec. + * Indicates the name of the PropertyValueSpecification to be used in URL templates and form encoding in a manner analogous to HTML's `input@name`. * * * @var string */ - protected $valuePattern; + protected $valueName; /** - * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. + * Specifies a regular expression for testing literal values according to the HTML spec. * * - * @var Number|null + * @var string */ - protected $stepValue; + protected $valuePattern; /** - * Whether multiple values are allowed for the property. Default is false. + * Whether the property must be filled in to complete the action. Default is false. * * * @var bool|null */ - protected $multipleValues; + protected $valueRequired; /** - * @return Number|null + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getValueMaxLength() + public function getDefaultValue() { - return $this->valueMaxLength; + return $this->defaultValue; } /** - * @param Number|null $valueMaxLength + * @param string|\OpenActive\Models\SchemaOrg\Thing $defaultValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueMaxLength($valueMaxLength) + public function setDefaultValue($defaultValue) { $types = [ - "Number", - "null", + "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $valueMaxLength = self::checkTypes($valueMaxLength, $types); + $defaultValue = self::checkTypes($defaultValue, $types); - $this->valueMaxLength = $valueMaxLength; + $this->defaultValue = $defaultValue; } /** - * @return bool|null + * @return Number|null */ - public function getReadonlyValue() + public function getMaxValue() { - return $this->readonlyValue; + return $this->maxValue; } /** - * @param bool|null $readonlyValue + * @param Number|null $maxValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReadonlyValue($readonlyValue) + public function setMaxValue($maxValue) { $types = [ - "bool", + "Number", "null", ]; - $readonlyValue = self::checkTypes($readonlyValue, $types); + $maxValue = self::checkTypes($maxValue, $types); - $this->readonlyValue = $readonlyValue; + $this->maxValue = $maxValue; } /** * @return Number|null */ - public function getMaxValue() + public function getMinValue() { - return $this->maxValue; + return $this->minValue; } /** - * @param Number|null $maxValue + * @param Number|null $minValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaxValue($maxValue) + public function setMinValue($minValue) { $types = [ "Number", "null", ]; - $maxValue = self::checkTypes($maxValue, $types); + $minValue = self::checkTypes($minValue, $types); - $this->maxValue = $maxValue; + $this->minValue = $minValue; } /** - * @return string + * @return bool|null */ - public function getValueName() + public function getMultipleValues() { - return $this->valueName; + return $this->multipleValues; } /** - * @param string $valueName + * @param bool|null $multipleValues * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueName($valueName) + public function setMultipleValues($multipleValues) { $types = [ - "string", + "bool", + "null", ]; - $valueName = self::checkTypes($valueName, $types); + $multipleValues = self::checkTypes($multipleValues, $types); - $this->valueName = $valueName; + $this->multipleValues = $multipleValues; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return bool|null */ - public function getDefaultValue() + public function getReadonlyValue() { - return $this->defaultValue; + return $this->readonlyValue; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $defaultValue + * @param bool|null $readonlyValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDefaultValue($defaultValue) + public function setReadonlyValue($readonlyValue) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\Thing", + "bool", + "null", ]; - $defaultValue = self::checkTypes($defaultValue, $types); + $readonlyValue = self::checkTypes($readonlyValue, $types); - $this->defaultValue = $defaultValue; + $this->readonlyValue = $readonlyValue; } /** * @return Number|null */ - public function getValueMinLength() + public function getStepValue() { - return $this->valueMinLength; + return $this->stepValue; } /** - * @param Number|null $valueMinLength + * @param Number|null $stepValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueMinLength($valueMinLength) + public function setStepValue($stepValue) { $types = [ "Number", "null", ]; - $valueMinLength = self::checkTypes($valueMinLength, $types); + $stepValue = self::checkTypes($stepValue, $types); - $this->valueMinLength = $valueMinLength; + $this->stepValue = $stepValue; } /** - * @return bool|null + * @return Number|null */ - public function getValueRequired() + public function getValueMaxLength() { - return $this->valueRequired; + return $this->valueMaxLength; } /** - * @param bool|null $valueRequired + * @param Number|null $valueMaxLength * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueRequired($valueRequired) + public function setValueMaxLength($valueMaxLength) { $types = [ - "bool", + "Number", "null", ]; - $valueRequired = self::checkTypes($valueRequired, $types); + $valueMaxLength = self::checkTypes($valueMaxLength, $types); - $this->valueRequired = $valueRequired; + $this->valueMaxLength = $valueMaxLength; } /** * @return Number|null */ - public function getMinValue() + public function getValueMinLength() { - return $this->minValue; + return $this->valueMinLength; } /** - * @param Number|null $minValue + * @param Number|null $valueMinLength * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinValue($minValue) + public function setValueMinLength($valueMinLength) { $types = [ "Number", "null", ]; - $minValue = self::checkTypes($minValue, $types); + $valueMinLength = self::checkTypes($valueMinLength, $types); - $this->minValue = $minValue; + $this->valueMinLength = $valueMinLength; } /** * @return string */ - public function getValuePattern() + public function getValueName() { - return $this->valuePattern; + return $this->valueName; } /** - * @param string $valuePattern + * @param string $valueName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValuePattern($valuePattern) + public function setValueName($valueName) { $types = [ "string", ]; - $valuePattern = self::checkTypes($valuePattern, $types); + $valueName = self::checkTypes($valueName, $types); - $this->valuePattern = $valuePattern; + $this->valueName = $valueName; } /** - * @return Number|null + * @return string */ - public function getStepValue() + public function getValuePattern() { - return $this->stepValue; + return $this->valuePattern; } /** - * @param Number|null $stepValue + * @param string $valuePattern * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStepValue($stepValue) + public function setValuePattern($valuePattern) { $types = [ - "Number", - "null", + "string", ]; - $stepValue = self::checkTypes($stepValue, $types); + $valuePattern = self::checkTypes($valuePattern, $types); - $this->stepValue = $stepValue; + $this->valuePattern = $valuePattern; } /** * @return bool|null */ - public function getMultipleValues() + public function getValueRequired() { - return $this->multipleValues; + return $this->valueRequired; } /** - * @param bool|null $multipleValues + * @param bool|null $valueRequired * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMultipleValues($multipleValues) + public function setValueRequired($valueRequired) { $types = [ "bool", "null", ]; - $multipleValues = self::checkTypes($multipleValues, $types); + $valueRequired = self::checkTypes($valueRequired, $types); - $this->multipleValues = $multipleValues; + $this->valueRequired = $valueRequired; } } diff --git a/src/Models/SchemaOrg/Protein.php b/src/Models/SchemaOrg/Protein.php index 2bc310d0..078256d9 100644 --- a/src/Models/SchemaOrg/Protein.php +++ b/src/Models/SchemaOrg/Protein.php @@ -24,7 +24,7 @@ public static function fieldList() { } /** - * A symbolic representation of a BioChemEnity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein. + * A symbolic representation of a BioChemEntity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein. * * * @var string diff --git a/src/Models/SchemaOrg/PublicationEvent.php b/src/Models/SchemaOrg/PublicationEvent.php index f088abb7..b7ab6fb3 100644 --- a/src/Models/SchemaOrg/PublicationEvent.php +++ b/src/Models/SchemaOrg/PublicationEvent.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "publishedBy" => "publishedBy", "free" => "free", + "publishedBy" => "publishedBy", "publishedOn" => "publishedOn", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * An agent associated with the publication event. + * A flag to signal that the item, event, or place is accessible for free. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var bool|null */ - protected $publishedBy; + protected $free; /** - * A flag to signal that the item, event, or place is accessible for free. + * An agent associated with the publication event. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $free; + protected $publishedBy; /** * A broadcast service associated with the publication event. @@ -50,54 +50,54 @@ public static function fieldList() { protected $publishedOn; /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return bool|null */ - public function getPublishedBy() + public function getFree() { - return $this->publishedBy; + return $this->free; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $publishedBy + * @param bool|null $free * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublishedBy($publishedBy) + public function setFree($free) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "bool", + "null", ]; - $publishedBy = self::checkTypes($publishedBy, $types); + $free = self::checkTypes($free, $types); - $this->publishedBy = $publishedBy; + $this->free = $free; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getFree() + public function getPublishedBy() { - return $this->free; + return $this->publishedBy; } /** - * @param bool|null $free + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $publishedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFree($free) + public function setPublishedBy($publishedBy) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $free = self::checkTypes($free, $types); + $publishedBy = self::checkTypes($publishedBy, $types); - $this->free = $free; + $this->publishedBy = $publishedBy; } /** diff --git a/src/Models/SchemaOrg/PublicationIssue.php b/src/Models/SchemaOrg/PublicationIssue.php index e2bb7f23..dac76b1d 100644 --- a/src/Models/SchemaOrg/PublicationIssue.php +++ b/src/Models/SchemaOrg/PublicationIssue.php @@ -17,9 +17,9 @@ public static function getType() public static function fieldList() { $fields = [ - "pageStart" => "pageStart", - "pageEnd" => "pageEnd", "issueNumber" => "issueNumber", + "pageEnd" => "pageEnd", + "pageStart" => "pageStart", "pagination" => "pagination", ]; @@ -27,12 +27,12 @@ public static function fieldList() { } /** - * The page on which the work starts; for example "135" or "xiii". + * Identifies the issue of publication; for example, "iii" or "2". * * * @var string|int|null */ - protected $pageStart; + protected $issueNumber; /** * The page on which the work ends; for example "138" or "xvi". @@ -43,12 +43,12 @@ public static function fieldList() { protected $pageEnd; /** - * Identifies the issue of publication; for example, "iii" or "2". + * The page on which the work starts; for example "135" or "xiii". * * * @var string|int|null */ - protected $issueNumber; + 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". @@ -61,17 +61,17 @@ public static function fieldList() { /** * @return string|int|null */ - public function getPageStart() + public function getIssueNumber() { - return $this->pageStart; + return $this->issueNumber; } /** - * @param string|int|null $pageStart + * @param string|int|null $issueNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageStart($pageStart) + public function setIssueNumber($issueNumber) { $types = [ "string", @@ -79,9 +79,9 @@ public function setPageStart($pageStart) "null", ]; - $pageStart = self::checkTypes($pageStart, $types); + $issueNumber = self::checkTypes($issueNumber, $types); - $this->pageStart = $pageStart; + $this->issueNumber = $issueNumber; } /** @@ -113,17 +113,17 @@ public function setPageEnd($pageEnd) /** * @return string|int|null */ - public function getIssueNumber() + public function getPageStart() { - return $this->issueNumber; + return $this->pageStart; } /** - * @param string|int|null $issueNumber + * @param string|int|null $pageStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIssueNumber($issueNumber) + public function setPageStart($pageStart) { $types = [ "string", @@ -131,9 +131,9 @@ public function setIssueNumber($issueNumber) "null", ]; - $issueNumber = self::checkTypes($issueNumber, $types); + $pageStart = self::checkTypes($pageStart, $types); - $this->issueNumber = $issueNumber; + $this->pageStart = $pageStart; } /** diff --git a/src/Models/SchemaOrg/PublicationVolume.php b/src/Models/SchemaOrg/PublicationVolume.php index 77d18ace..918a9b4a 100644 --- a/src/Models/SchemaOrg/PublicationVolume.php +++ b/src/Models/SchemaOrg/PublicationVolume.php @@ -17,23 +17,15 @@ public static function getType() public static function fieldList() { $fields = [ - "pageStart" => "pageStart", "pageEnd" => "pageEnd", - "volumeNumber" => "volumeNumber", + "pageStart" => "pageStart", "pagination" => "pagination", + "volumeNumber" => "volumeNumber", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The page on which the work starts; for example "135" or "xiii". - * - * - * @var string|int|null - */ - protected $pageStart; - /** * The page on which the work ends; for example "138" or "xvi". * @@ -43,12 +35,12 @@ public static function fieldList() { protected $pageEnd; /** - * Identifies the volume of publication or multi-part work; for example, "iii" or "2". + * The page on which the work starts; for example "135" or "xiii". * * * @var string|int|null */ - protected $volumeNumber; + 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". @@ -58,20 +50,28 @@ public static function fieldList() { */ protected $pagination; + /** + * Identifies the volume of publication or multi-part work; for example, "iii" or "2". + * + * + * @var string|int|null + */ + protected $volumeNumber; + /** * @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", @@ -79,25 +79,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", @@ -105,59 +105,59 @@ public function setPageEnd($pageEnd) "null", ]; - $pageEnd = self::checkTypes($pageEnd, $types); + $pageStart = self::checkTypes($pageStart, $types); - $this->pageEnd = $pageEnd; + $this->pageStart = $pageStart; } /** - * @return string|int|null + * @return string */ - public function getVolumeNumber() + public function getPagination() { - return $this->volumeNumber; + return $this->pagination; } /** - * @param string|int|null $volumeNumber + * @param string $pagination * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVolumeNumber($volumeNumber) + public function setPagination($pagination) { $types = [ "string", - "int", - "null", ]; - $volumeNumber = self::checkTypes($volumeNumber, $types); + $pagination = self::checkTypes($pagination, $types); - $this->volumeNumber = $volumeNumber; + $this->pagination = $pagination; } /** - * @return string + * @return string|int|null */ - public function getPagination() + public function getVolumeNumber() { - return $this->pagination; + return $this->volumeNumber; } /** - * @param string $pagination + * @param string|int|null $volumeNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPagination($pagination) + public function setVolumeNumber($volumeNumber) { $types = [ "string", + "int", + "null", ]; - $pagination = self::checkTypes($pagination, $types); + $volumeNumber = self::checkTypes($volumeNumber, $types); - $this->pagination = $pagination; + $this->volumeNumber = $volumeNumber; } } diff --git a/src/Models/SchemaOrg/QuantitativeValue.php b/src/Models/SchemaOrg/QuantitativeValue.php index 13658c50..22cb4bc4 100644 --- a/src/Models/SchemaOrg/QuantitativeValue.php +++ b/src/Models/SchemaOrg/QuantitativeValue.php @@ -17,25 +17,26 @@ public static function getType() public static function fieldList() { $fields = [ - "valueReference" => "valueReference", + "additionalProperty" => "additionalProperty", "maxValue" => "maxValue", - "unitText" => "unitText", "minValue" => "minValue", - "value" => "value", "unitCode" => "unitCode", - "additionalProperty" => "additionalProperty", + "unitText" => "unitText", + "value" => "value", + "valueReference" => "valueReference", ]; return array_merge(parent::fieldList(), $fields); } /** - * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. + * A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. + * * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $valueReference; + protected $additionalProperty; /** * The upper value of some characteristic or property. @@ -46,77 +47,69 @@ public static function fieldList() { protected $maxValue; /** - * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for - * unitCode. + * The lower value of some characteristic or property. * * - * @var string + * @var Number|null */ - protected $unitText; + protected $minValue; /** - * The lower value of some characteristic or property. + * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. * * - * @var Number|null + * @var string */ - protected $minValue; + protected $unitCode; /** - * The value of the quantitative value or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text;', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for + * unitCode. * * - * @var string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @var string */ - protected $value; + protected $unitText; /** - * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. + * 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 $unitCode; + protected $value; /** - * A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. - * + * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ - protected $additionalProperty; + protected $valueReference; /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getValueReference() + public function getAdditionalProperty() { - return $this->valueReference; + return $this->additionalProperty; } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|null $valueReference + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueReference($valueReference) + public function setAdditionalProperty($additionalProperty) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", - "\OpenActive\Models\SchemaOrg\DefinedTerm", - "string", - "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "\OpenActive\Models\SchemaOrg\StructuredValue", "\OpenActive\Models\SchemaOrg\PropertyValue", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "null", + "string", ]; - $valueReference = self::checkTypes($valueReference, $types); + $additionalProperty = self::checkTypes($additionalProperty, $types); - $this->valueReference = $valueReference; + $this->additionalProperty = $additionalProperty; } /** @@ -145,129 +138,137 @@ public function setMaxValue($maxValue) } /** - * @return string + * @return Number|null */ - public function getUnitText() + public function getMinValue() { - return $this->unitText; + return $this->minValue; } /** - * @param string $unitText + * @param Number|null $minValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setMinValue($minValue) { $types = [ - "string", + "Number", + "null", ]; - $unitText = self::checkTypes($unitText, $types); + $minValue = self::checkTypes($minValue, $types); - $this->unitText = $unitText; + $this->minValue = $minValue; } /** - * @return Number|null + * @return string */ - public function getMinValue() + public function getUnitCode() { - return $this->minValue; + return $this->unitCode; } /** - * @param Number|null $minValue + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinValue($minValue) + public function setUnitCode($unitCode) { $types = [ - "Number", - "null", + "string", ]; - $minValue = self::checkTypes($minValue, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->minValue = $minValue; + $this->unitCode = $unitCode; } /** - * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @return string */ - public function getValue() + public function getUnitText() { - return $this->value; + return $this->unitText; } /** - * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value + * @param string $unitText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValue($value) + public function setUnitText($unitText) { $types = [ "string", - "Number", - "\OpenActive\Models\SchemaOrg\StructuredValue", - "bool", - "null", ]; - $value = self::checkTypes($value, $types); + $unitText = self::checkTypes($unitText, $types); - $this->value = $value; + $this->unitText = $unitText; } /** - * @return string + * @return bool|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ - public function getUnitCode() + public function getValue() { - return $this->unitCode; + return $this->value; } /** - * @param string $unitCode + * @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 setUnitCode($unitCode) + public function setValue($value) { $types = [ + "bool", + "Number", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "\OpenActive\Models\SchemaOrg\StructuredValue", "string", + "null", ]; - $unitCode = self::checkTypes($unitCode, $types); + $value = self::checkTypes($value, $types); - $this->unitCode = $unitCode; + $this->value = $value; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|null */ - public function getAdditionalProperty() + public function getValueReference() { - return $this->additionalProperty; + return $this->valueReference; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $valueReference * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalProperty($additionalProperty) + public function setValueReference($valueReference) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Enumeration", + "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\StructuredValue", "string", + "null", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $valueReference = self::checkTypes($valueReference, $types); - $this->additionalProperty = $additionalProperty; + $this->valueReference = $valueReference; } } diff --git a/src/Models/SchemaOrg/QuantitativeValueDistribution.php b/src/Models/SchemaOrg/QuantitativeValueDistribution.php index 899a1813..695a37e5 100644 --- a/src/Models/SchemaOrg/QuantitativeValueDistribution.php +++ b/src/Models/SchemaOrg/QuantitativeValueDistribution.php @@ -17,24 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ - "percentile75" => "percentile75", + "duration" => "duration", "median" => "median", "percentile10" => "percentile10", "percentile25" => "percentile25", + "percentile75" => "percentile75", "percentile90" => "percentile90", - "duration" => "duration", ]; return array_merge(parent::fieldList(), $fields); } /** - * The 75th percentile value. + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var Number|null + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $percentile75; + protected $duration; /** * The median value. @@ -61,44 +61,46 @@ public static function fieldList() { protected $percentile25; /** - * The 90th percentile value. + * The 75th percentile value. * * * @var Number|null */ - protected $percentile90; + protected $percentile75; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * The 90th percentile value. * * - * @var DateInterval|string|null + * @var Number|null */ - protected $duration; + protected $percentile90; /** - * @return Number|null + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getPercentile75() + public function getDuration() { - return $this->percentile75; + return $this->duration; } /** - * @param Number|null $percentile75 + * @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 setPercentile75($percentile75) + public function setDuration($duration) { $types = [ - "Number", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $percentile75 = self::checkTypes($percentile75, $types); + $duration = self::checkTypes($duration, $types); - $this->percentile75 = $percentile75; + $this->duration = $duration; } /** @@ -179,52 +181,51 @@ public function setPercentile25($percentile25) /** * @return Number|null */ - public function getPercentile90() + public function getPercentile75() { - return $this->percentile90; + return $this->percentile75; } /** - * @param Number|null $percentile90 + * @param Number|null $percentile75 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPercentile90($percentile90) + public function setPercentile75($percentile75) { $types = [ "Number", "null", ]; - $percentile90 = self::checkTypes($percentile90, $types); + $percentile75 = self::checkTypes($percentile75, $types); - $this->percentile90 = $percentile90; + $this->percentile75 = $percentile75; } /** - * @return DateInterval|string|null + * @return Number|null */ - public function getDuration() + public function getPercentile90() { - return $this->duration; + return $this->percentile90; } /** - * @param DateInterval|string|null $duration + * @param Number|null $percentile90 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setPercentile90($percentile90) { $types = [ - "DateInterval", - "string", + "Number", "null", ]; - $duration = self::checkTypes($duration, $types); + $percentile90 = self::checkTypes($percentile90, $types); - $this->duration = $duration; + $this->percentile90 = $percentile90; } } diff --git a/src/Models/SchemaOrg/Question.php b/src/Models/SchemaOrg/Question.php index 9049d777..92dd7eb9 100644 --- a/src/Models/SchemaOrg/Question.php +++ b/src/Models/SchemaOrg/Question.php @@ -17,23 +17,16 @@ public static function getType() public static function fieldList() { $fields = [ - "suggestedAnswer" => "suggestedAnswer", "acceptedAnswer" => "acceptedAnswer", "answerCount" => "answerCount", "eduQuestionType" => "eduQuestionType", + "parentItem" => "parentItem", + "suggestedAnswer" => "suggestedAnswer", ]; return array_merge(parent::fieldList(), $fields); } - /** - * An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site. - * - * - * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string - */ - protected $suggestedAnswer; - /** * The answer(s) that has been accepted as best, typically on a Question/Answer site. Sites vary in their selection mechanisms, e.g. drawing on community opinion and/or the view of the Question author. * @@ -59,30 +52,20 @@ public static function fieldList() { protected $eduQuestionType; /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|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 */ - public function getSuggestedAnswer() - { - return $this->suggestedAnswer; - } + protected $parentItem; /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string $suggestedAnswer - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site. + * + * + * @var \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string */ - public function setSuggestedAnswer($suggestedAnswer) - { - $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", - "\OpenActive\Models\SchemaOrg\Answer", - "string", - ]; - - $suggestedAnswer = self::checkTypes($suggestedAnswer, $types); - - $this->suggestedAnswer = $suggestedAnswer; - } + protected $suggestedAnswer; /** * @return \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string @@ -159,4 +142,56 @@ public function setEduQuestionType($eduQuestionType) $this->eduQuestionType = $eduQuestionType; } + /** + * @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; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string + */ + public function getSuggestedAnswer() + { + return $this->suggestedAnswer; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string $suggestedAnswer + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setSuggestedAnswer($suggestedAnswer) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Answer", + "\OpenActive\Models\SchemaOrg\ItemList", + "string", + ]; + + $suggestedAnswer = self::checkTypes($suggestedAnswer, $types); + + $this->suggestedAnswer = $suggestedAnswer; + } + } diff --git a/src/Models/SchemaOrg/Quotation.php b/src/Models/SchemaOrg/Quotation.php index c49ffc80..ed0e40b0 100644 --- a/src/Models/SchemaOrg/Quotation.php +++ b/src/Models/SchemaOrg/Quotation.php @@ -27,12 +27,12 @@ public static function fieldList() { * The (e.g. fictional) character, Person or Organization to whom the quotation is attributed within the containing CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $spokenByCharacter; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getSpokenByCharacter() { @@ -40,15 +40,15 @@ public function getSpokenByCharacter() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $spokenByCharacter + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $spokenByCharacter * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSpokenByCharacter($spokenByCharacter) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/RadioSeries.php b/src/Models/SchemaOrg/RadioSeries.php index 4ae0b3b6..79a8460b 100644 --- a/src/Models/SchemaOrg/RadioSeries.php +++ b/src/Models/SchemaOrg/RadioSeries.php @@ -17,32 +17,40 @@ public static function getType() public static function fieldList() { $fields = [ - "season" => "season", + "actor" => "actor", + "actors" => "actors", "containsSeason" => "containsSeason", "director" => "director", - "actor" => "actor", - "trailer" => "trailer", + "directors" => "directors", + "episode" => "episode", "episodes" => "episodes", + "musicBy" => "musicBy", "numberOfEpisodes" => "numberOfEpisodes", - "seasons" => "seasons", - "productionCompany" => "productionCompany", - "actors" => "actors", "numberOfSeasons" => "numberOfSeasons", - "musicBy" => "musicBy", - "episode" => "episode", - "directors" => "directors", + "productionCompany" => "productionCompany", + "season" => "season", + "seasons" => "seasons", + "trailer" => "trailer", ]; return array_merge(parent::fieldList(), $fields); } /** - * A season in a media series. + * An actor (individual or a group), e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @var \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $season; + protected $actor; + + /** + * 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 $actors; /** * A season that is part of the media series. @@ -53,7 +61,7 @@ public static function fieldList() { protected $containsSeason; /** - * 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 @@ -61,20 +69,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. + * 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. + * An episode of a TV, radio or game media within a series or season. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $trailer; + protected $episode; /** * An episode of a TV/radio series or season. @@ -84,6 +92,14 @@ public static function fieldList() { */ protected $episodes; + /** + * The composer of the soundtrack. + * + * + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $musicBy; + /** * The number of episodes in this season or series. * @@ -93,15 +109,15 @@ public static function fieldList() { protected $numberOfEpisodes; /** - * A season in a media series. + * The number of seasons in this series. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var int|null */ - protected $seasons; + protected $numberOfSeasons; /** - * 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 @@ -109,68 +125,78 @@ public static function fieldList() { protected $productionCompany; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * A season in a media series. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $actors; + protected $season; /** - * The number of seasons in this series. + * A season in a media series. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $numberOfSeasons; + protected $seasons; /** - * The composer of the soundtrack. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $musicBy; + protected $trailer; /** - * An episode of a tv, radio or game media within a series or season. - * - * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $episode; + public function getActor() + { + return $this->actor; + } /** - * 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 + * @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. */ - protected $directors; + public function setActor($actor) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PerformingGroup", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $actor = self::checkTypes($actor, $types); + + $this->actor = $actor; + } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSeason() + public function getActors() { - return $this->season; + return $this->actors; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @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 setSeason($season) + public function setActors($actors) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", ]; - $season = self::checkTypes($season, $types); + $actors = self::checkTypes($actors, $types); - $this->season = $season; + $this->actors = $actors; } /** @@ -226,51 +252,51 @@ 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\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getTrailer() + public function getEpisode() { - return $this->trailer; + return $this->episode; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param \OpenActive\Models\SchemaOrg\Episode|string $episode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setEpisode($episode) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $episode = self::checkTypes($episode, $types); - $this->trailer = $trailer; + $this->episode = $episode; } /** @@ -298,6 +324,32 @@ public function setEpisodes($episodes) $this->episodes = $episodes; } + /** + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getMusicBy() + { + return $this->musicBy; + } + + /** + * @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 setMusicBy($musicBy) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $musicBy = self::checkTypes($musicBy, $types); + + $this->musicBy = $musicBy; + } + /** * @return int|null */ @@ -324,28 +376,28 @@ public function setNumberOfEpisodes($numberOfEpisodes) } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return int|null */ - public function getSeasons() + public function getNumberOfSeasons() { - return $this->seasons; + return $this->numberOfSeasons; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons + * @param int|null $numberOfSeasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeasons($seasons) + public function setNumberOfSeasons($numberOfSeasons) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", - "string", + "int", + "null", ]; - $seasons = self::checkTypes($seasons, $types); + $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); - $this->seasons = $seasons; + $this->numberOfSeasons = $numberOfSeasons; } /** @@ -374,129 +426,78 @@ public function setProductionCompany($productionCompany) } /** - * @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 int|null - */ - public function getNumberOfSeasons() - { - return $this->numberOfSeasons; - } - - /** - * @param int|null $numberOfSeasons - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setNumberOfSeasons($numberOfSeasons) - { - $types = [ - "int", - "null", - ]; - - $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); - - $this->numberOfSeasons = $numberOfSeasons; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getMusicBy() + public function getSeason() { - return $this->musicBy; + return $this->season; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $season * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setSeason($season) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $season = self::checkTypes($season, $types); - $this->musicBy = $musicBy; + $this->season = $season; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getEpisode() + public function getSeasons() { - return $this->episode; + return $this->seasons; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisode($episode) + public function setSeasons($seasons) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $episode = self::checkTypes($episode, $types); + $seasons = self::checkTypes($seasons, $types); - $this->episode = $episode; + $this->seasons = $seasons; } /** - * @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/Rating.php b/src/Models/SchemaOrg/Rating.php index 1e7d5d9d..43463aa9 100644 --- a/src/Models/SchemaOrg/Rating.php +++ b/src/Models/SchemaOrg/Rating.php @@ -17,103 +17,105 @@ public static function getType() public static function fieldList() { $fields = [ - "reviewAspect" => "reviewAspect", - "worstRating" => "worstRating", "author" => "author", "bestRating" => "bestRating", - "ratingValue" => "ratingValue", "ratingExplanation" => "ratingExplanation", + "ratingValue" => "ratingValue", + "reviewAspect" => "reviewAspect", + "worstRating" => "worstRating", ]; return array_merge(parent::fieldList(), $fields); } /** - * This Review or Rating is relevant to this part or facet of the itemReviewed. + * 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 string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $reviewAspect; + protected $author; /** - * The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed. + * The highest value allowed in this rating system. * * * @var string|Number|null */ - protected $worstRating; + protected $bestRating; /** - * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably. + * A short explanation (e.g. one to two sentences) providing background context and other information that led to the conclusion expressed in the rating. This is particularly applicable to ratings associated with "fact check" markup using [[ClaimReview]]. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $author; + protected $ratingExplanation; /** - * The highest value allowed in this rating system. If bestRating is omitted, 5 is assumed. + * The rating for the content.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * * @var string|Number|null */ - protected $bestRating; + protected $ratingValue; /** - * The rating for the content.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * This Review or Rating is relevant to this part or facet of the itemReviewed. * * - * @var string|Number|null + * @var \OpenActive\Models\SchemaOrg\StructuredValue|string */ - protected $ratingValue; + protected $reviewAspect; /** - * A short explanation (e.g. one to two sentences) providing background context and other information that led to the conclusion expressed in the rating. This is particularly applicable to ratings associated with "fact check" markup using [[ClaimReview]]. + * The lowest value allowed in this rating system. * * - * @var string + * @var string|Number|null */ - protected $ratingExplanation; + protected $worstRating; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getReviewAspect() + public function getAuthor() { - return $this->reviewAspect; + return $this->author; } /** - * @param string $reviewAspect + * @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 setReviewAspect($reviewAspect) + public function setAuthor($author) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $reviewAspect = self::checkTypes($reviewAspect, $types); + $author = self::checkTypes($author, $types); - $this->reviewAspect = $reviewAspect; + $this->author = $author; } /** * @return string|Number|null */ - public function getWorstRating() + public function getBestRating() { - return $this->worstRating; + return $this->bestRating; } /** - * @param string|Number|null $worstRating + * @param string|Number|null $bestRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorstRating($worstRating) + public function setBestRating($bestRating) { $types = [ "string", @@ -121,51 +123,49 @@ public function setWorstRating($worstRating) "null", ]; - $worstRating = self::checkTypes($worstRating, $types); + $bestRating = self::checkTypes($bestRating, $types); - $this->worstRating = $worstRating; + $this->bestRating = $bestRating; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getAuthor() + public function getRatingExplanation() { - return $this->author; + return $this->ratingExplanation; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $author + * @param string $ratingExplanation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAuthor($author) + public function setRatingExplanation($ratingExplanation) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $author = self::checkTypes($author, $types); + $ratingExplanation = self::checkTypes($ratingExplanation, $types); - $this->author = $author; + $this->ratingExplanation = $ratingExplanation; } /** * @return string|Number|null */ - public function getBestRating() + public function getRatingValue() { - return $this->bestRating; + return $this->ratingValue; } /** - * @param string|Number|null $bestRating + * @param string|Number|null $ratingValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBestRating($bestRating) + public function setRatingValue($ratingValue) { $types = [ "string", @@ -173,59 +173,60 @@ public function setBestRating($bestRating) "null", ]; - $bestRating = self::checkTypes($bestRating, $types); + $ratingValue = self::checkTypes($ratingValue, $types); - $this->bestRating = $bestRating; + $this->ratingValue = $ratingValue; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\StructuredValue|string */ - public function getRatingValue() + public function getReviewAspect() { - return $this->ratingValue; + return $this->reviewAspect; } /** - * @param string|Number|null $ratingValue + * @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 setRatingValue($ratingValue) + public function setReviewAspect($reviewAspect) { $types = [ + "\OpenActive\Models\SchemaOrg\StructuredValue", "string", - "Number", - "null", ]; - $ratingValue = self::checkTypes($ratingValue, $types); + $reviewAspect = self::checkTypes($reviewAspect, $types); - $this->ratingValue = $ratingValue; + $this->reviewAspect = $reviewAspect; } /** - * @return string + * @return string|Number|null */ - public function getRatingExplanation() + public function getWorstRating() { - return $this->ratingExplanation; + return $this->worstRating; } /** - * @param string $ratingExplanation + * @param string|Number|null $worstRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRatingExplanation($ratingExplanation) + public function setWorstRating($worstRating) { $types = [ "string", + "Number", + "null", ]; - $ratingExplanation = self::checkTypes($ratingExplanation, $types); + $worstRating = self::checkTypes($worstRating, $types); - $this->ratingExplanation = $ratingExplanation; + $this->worstRating = $worstRating; } } diff --git a/src/Models/SchemaOrg/RealEstateListing.php b/src/Models/SchemaOrg/RealEstateListing.php index a6c8c690..71fdf0ca 100644 --- a/src/Models/SchemaOrg/RealEstateListing.php +++ b/src/Models/SchemaOrg/RealEstateListing.php @@ -17,80 +17,80 @@ public static function getType() public static function fieldList() { $fields = [ - "leaseLength" => "leaseLength", "datePosted" => "datePosted", + "leaseLength" => "leaseLength", ]; return array_merge(parent::fieldList(), $fields); } /** - * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. + * Publication date of an online listing. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @var Date|DateTime|null */ - protected $leaseLength; + protected $datePosted; /** - * Publication date of an online listing. + * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. * * - * @var Date|DateTime|null + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $datePosted; + protected $leaseLength; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @return Date|DateTime|null */ - public function getLeaseLength() + public function getDatePosted() { - return $this->leaseLength; + return $this->datePosted; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength + * @param Date|DateTime|null $datePosted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLeaseLength($leaseLength) + public function setDatePosted($datePosted) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "DateInterval", - "string", + "Date", + "DateTime", "null", ]; - $leaseLength = self::checkTypes($leaseLength, $types); + $datePosted = self::checkTypes($datePosted, $types); - $this->leaseLength = $leaseLength; + $this->datePosted = $datePosted; } /** - * @return Date|DateTime|null + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getDatePosted() + public function getLeaseLength() { - return $this->datePosted; + return $this->leaseLength; } /** - * @param Date|DateTime|null $datePosted + * @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 setDatePosted($datePosted) + public function setLeaseLength($leaseLength) { $types = [ - "Date", - "DateTime", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $datePosted = self::checkTypes($datePosted, $types); + $leaseLength = self::checkTypes($leaseLength, $types); - $this->datePosted = $datePosted; + $this->leaseLength = $leaseLength; } } diff --git a/src/Models/SchemaOrg/ReceiveAction.php b/src/Models/SchemaOrg/ReceiveAction.php index 19fe5426..1074f232 100644 --- a/src/Models/SchemaOrg/ReceiveAction.php +++ b/src/Models/SchemaOrg/ReceiveAction.php @@ -17,79 +17,79 @@ public static function getType() public static function fieldList() { $fields = [ - "sender" => "sender", "deliveryMethod" => "deliveryMethod", + "sender" => "sender", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of participant. The participant who is at the sending end of the action. + * A sub property of instrument. The method of delivery. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $sender; + protected $deliveryMethod; /** - * A sub property of instrument. The method of delivery. + * A sub property of participant. The participant who is at the sending end of the action. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $deliveryMethod; + protected $sender; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getSender() + public function getDeliveryMethod() { - return $this->sender; + return $this->deliveryMethod; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $sender + * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $deliveryMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSender($sender) + public function setDeliveryMethod($deliveryMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\Organization", - "string", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", ]; - $sender = self::checkTypes($sender, $types); + $deliveryMethod = self::checkTypes($deliveryMethod, $types); - $this->sender = $sender; + $this->deliveryMethod = $deliveryMethod; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getDeliveryMethod() + public function getSender() { - return $this->deliveryMethod; + return $this->sender; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $deliveryMethod + * @param \OpenActive\Models\SchemaOrg\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 setDeliveryMethod($deliveryMethod) + public function setSender($sender) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $deliveryMethod = self::checkTypes($deliveryMethod, $types); + $sender = self::checkTypes($sender, $types); - $this->deliveryMethod = $deliveryMethod; + $this->sender = $sender; } } diff --git a/src/Models/SchemaOrg/Recipe.php b/src/Models/SchemaOrg/Recipe.php index 76ba6019..7d971108 100644 --- a/src/Models/SchemaOrg/Recipe.php +++ b/src/Models/SchemaOrg/Recipe.php @@ -17,251 +17,250 @@ public static function getType() public static function fieldList() { $fields = [ - "recipeInstructions" => "recipeInstructions", + "cookTime" => "cookTime", + "cookingMethod" => "cookingMethod", "ingredients" => "ingredients", - "recipeCuisine" => "recipeCuisine", - "suitableForDiet" => "suitableForDiet", "nutrition" => "nutrition", - "cookingMethod" => "cookingMethod", + "recipeCategory" => "recipeCategory", + "recipeCuisine" => "recipeCuisine", "recipeIngredient" => "recipeIngredient", + "recipeInstructions" => "recipeInstructions", "recipeYield" => "recipeYield", - "cookTime" => "cookTime", - "recipeCategory" => "recipeCategory", + "suitableForDiet" => "suitableForDiet", ]; return array_merge(parent::fieldList(), $fields); } /** - * A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items. + * The time it takes to actually cook the dish, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList + * @var DateInterval|string|null */ - protected $recipeInstructions; + protected $cookTime; /** - * A single ingredient used in the recipe, e.g. sugar, flour or garlic. + * The method of cooking, such as Frying, Steaming, ... * * * @var string */ - protected $ingredients; + protected $cookingMethod; /** - * The cuisine of the recipe (for example, French or Ethiopian). + * A single ingredient used in the recipe, e.g. sugar, flour or garlic. * * * @var string */ - protected $recipeCuisine; + protected $ingredients; /** - * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc. + * Nutrition information about the recipe or menu item. * * - * @var \OpenActive\Enums\SchemaOrg\RestrictedDiet|null + * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string */ - protected $suitableForDiet; + protected $nutrition; /** - * Nutrition information about the recipe or menu item. + * The category of the recipe—for example, appetizer, entree, etc. * * - * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string + * @var string */ - protected $nutrition; + protected $recipeCategory; /** - * The method of cooking, such as Frying, Steaming, ... + * The cuisine of the recipe (for example, French or Ethiopian). * * * @var string */ - protected $cookingMethod; + protected $recipeCuisine; /** - * A single ingredient used in the recipe, e.g. sugar, flour or garlic. + * An ingredient or ordered list of ingredients and potentially quantities used in the recipe, e.g. 1 cup of sugar, flour or garlic. The ingredients can be represented as free text or more structured values. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\PropertyValue|string */ protected $recipeIngredient; /** - * The quantity produced by the recipe (for example, number of people served, number of servings, etc). + * A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items. * * - * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList|string */ - protected $recipeYield; + protected $recipeInstructions; /** - * The time it takes to actually cook the dish, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). + * The quantity produced by the recipe (for example, number of people served, number of servings, etc). * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $cookTime; + protected $recipeYield; /** - * The category of the recipe—for example, appetizer, entree, etc. + * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Diet|\OpenActive\Enums\SchemaOrg\RestrictedDiet|string|null */ - protected $recipeCategory; + protected $suitableForDiet; /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList + * @return DateInterval|string|null */ - public function getRecipeInstructions() + public function getCookTime() { - return $this->recipeInstructions; + return $this->cookTime; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList $recipeInstructions + * @param DateInterval|string|null $cookTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeInstructions($recipeInstructions) + public function setCookTime($cookTime) { $types = [ + "DateInterval", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", - "\OpenActive\Models\SchemaOrg\ItemList", + "null", ]; - $recipeInstructions = self::checkTypes($recipeInstructions, $types); + $cookTime = self::checkTypes($cookTime, $types); - $this->recipeInstructions = $recipeInstructions; + $this->cookTime = $cookTime; } /** * @return string */ - public function getIngredients() + public function getCookingMethod() { - return $this->ingredients; + return $this->cookingMethod; } /** - * @param string $ingredients + * @param string $cookingMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIngredients($ingredients) + public function setCookingMethod($cookingMethod) { $types = [ "string", ]; - $ingredients = self::checkTypes($ingredients, $types); + $cookingMethod = self::checkTypes($cookingMethod, $types); - $this->ingredients = $ingredients; + $this->cookingMethod = $cookingMethod; } /** * @return string */ - public function getRecipeCuisine() + public function getIngredients() { - return $this->recipeCuisine; + return $this->ingredients; } /** - * @param string $recipeCuisine + * @param string $ingredients * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeCuisine($recipeCuisine) + public function setIngredients($ingredients) { $types = [ "string", ]; - $recipeCuisine = self::checkTypes($recipeCuisine, $types); + $ingredients = self::checkTypes($ingredients, $types); - $this->recipeCuisine = $recipeCuisine; + $this->ingredients = $ingredients; } /** - * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null + * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string */ - public function getSuitableForDiet() + public function getNutrition() { - return $this->suitableForDiet; + return $this->nutrition; } /** - * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet + * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuitableForDiet($suitableForDiet) + public function setNutrition($nutrition) { $types = [ - "\OpenActive\Enums\SchemaOrg\RestrictedDiet", - "null", + "\OpenActive\Models\SchemaOrg\NutritionInformation", + "string", ]; - $suitableForDiet = self::checkTypes($suitableForDiet, $types); + $nutrition = self::checkTypes($nutrition, $types); - $this->suitableForDiet = $suitableForDiet; + $this->nutrition = $nutrition; } /** - * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string + * @return string */ - public function getNutrition() + public function getRecipeCategory() { - return $this->nutrition; + return $this->recipeCategory; } /** - * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition + * @param string $recipeCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNutrition($nutrition) + public function setRecipeCategory($recipeCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\NutritionInformation", "string", ]; - $nutrition = self::checkTypes($nutrition, $types); + $recipeCategory = self::checkTypes($recipeCategory, $types); - $this->nutrition = $nutrition; + $this->recipeCategory = $recipeCategory; } /** * @return string */ - public function getCookingMethod() + public function getRecipeCuisine() { - return $this->cookingMethod; + return $this->recipeCuisine; } /** - * @param string $cookingMethod + * @param string $recipeCuisine * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCookingMethod($cookingMethod) + public function setRecipeCuisine($recipeCuisine) { $types = [ "string", ]; - $cookingMethod = self::checkTypes($cookingMethod, $types); + $recipeCuisine = self::checkTypes($recipeCuisine, $types); - $this->cookingMethod = $cookingMethod; + $this->recipeCuisine = $recipeCuisine; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\PropertyValue|string */ public function getRecipeIngredient() { @@ -269,13 +268,15 @@ public function getRecipeIngredient() } /** - * @param string $recipeIngredient + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\PropertyValue|string $recipeIngredient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRecipeIngredient($recipeIngredient) { $types = [ + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; @@ -285,78 +286,81 @@ public function setRecipeIngredient($recipeIngredient) } /** - * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList|string */ - public function getRecipeYield() + public function getRecipeInstructions() { - return $this->recipeYield; + return $this->recipeInstructions; } /** - * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $recipeYield + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList|string $recipeInstructions * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeYield($recipeYield) + public function setRecipeInstructions($recipeInstructions) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\ItemList", "string", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $recipeYield = self::checkTypes($recipeYield, $types); + $recipeInstructions = self::checkTypes($recipeInstructions, $types); - $this->recipeYield = $recipeYield; + $this->recipeInstructions = $recipeInstructions; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getCookTime() + public function getRecipeYield() { - return $this->cookTime; + return $this->recipeYield; } /** - * @param DateInterval|string|null $cookTime + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $recipeYield * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCookTime($cookTime) + public function setRecipeYield($recipeYield) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $cookTime = self::checkTypes($cookTime, $types); + $recipeYield = self::checkTypes($recipeYield, $types); - $this->cookTime = $cookTime; + $this->recipeYield = $recipeYield; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Diet|\OpenActive\Enums\SchemaOrg\RestrictedDiet|string|null */ - public function getRecipeCategory() + public function getSuitableForDiet() { - return $this->recipeCategory; + return $this->suitableForDiet; } /** - * @param string $recipeCategory + * @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 setRecipeCategory($recipeCategory) + public function setSuitableForDiet($suitableForDiet) { $types = [ + "\OpenActive\Models\SchemaOrg\Diet", + "\OpenActive\Enums\SchemaOrg\RestrictedDiet", "string", + "null", ]; - $recipeCategory = self::checkTypes($recipeCategory, $types); + $suitableForDiet = self::checkTypes($suitableForDiet, $types); - $this->recipeCategory = $recipeCategory; + $this->suitableForDiet = $suitableForDiet; } } diff --git a/src/Models/SchemaOrg/Recommendation.php b/src/Models/SchemaOrg/Recommendation.php index 561842f6..e5b4b350 100644 --- a/src/Models/SchemaOrg/Recommendation.php +++ b/src/Models/SchemaOrg/Recommendation.php @@ -27,12 +27,12 @@ public static function fieldList() { * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ protected $category; /** - * @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() { @@ -40,17 +40,17 @@ public function getCategory() } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param \OpenActive\Models\SchemaOrg\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", ]; diff --git a/src/Models/SchemaOrg/RentAction.php b/src/Models/SchemaOrg/RentAction.php index e4936bdd..08f37504 100644 --- a/src/Models/SchemaOrg/RentAction.php +++ b/src/Models/SchemaOrg/RentAction.php @@ -28,7 +28,7 @@ public static function fieldList() { * A sub property of participant. The owner of the real estate property. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $landlord; @@ -41,7 +41,7 @@ public static function fieldList() { protected $realEstateAgent; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getLandlord() { @@ -49,15 +49,15 @@ public function getLandlord() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $landlord + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $landlord * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setLandlord($landlord) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; diff --git a/src/Models/SchemaOrg/RentalCarReservation.php b/src/Models/SchemaOrg/RentalCarReservation.php index 0b0ae3fe..e0f90b18 100644 --- a/src/Models/SchemaOrg/RentalCarReservation.php +++ b/src/Models/SchemaOrg/RentalCarReservation.php @@ -19,8 +19,8 @@ public static function fieldList() { $fields = [ "dropoffLocation" => "dropoffLocation", "dropoffTime" => "dropoffTime", - "pickupTime" => "pickupTime", "pickupLocation" => "pickupLocation", + "pickupTime" => "pickupTime", ]; return array_merge(parent::fieldList(), $fields); @@ -43,20 +43,20 @@ public static function fieldList() { protected $dropoffTime; /** - * When a taxi will pickup a passenger or a rental car can be picked up. + * Where a taxi will pick up a passenger or a rental car can be picked up. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $pickupTime; + protected $pickupLocation; /** - * Where a taxi will pick up a passenger or a rental car can be picked up. + * When a taxi will pick up a passenger or a rental car can be picked up. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var DateTime|null */ - protected $pickupLocation; + protected $pickupTime; /** * @return \OpenActive\Models\SchemaOrg\Place|string @@ -109,53 +109,53 @@ public function setDropoffTime($dropoffTime) } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getPickupTime() + public function getPickupLocation() { - return $this->pickupTime; + return $this->pickupLocation; } /** - * @param DateTime|null $pickupTime + * @param \OpenActive\Models\SchemaOrg\Place|string $pickupLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPickupTime($pickupTime) + public function setPickupLocation($pickupLocation) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $pickupTime = self::checkTypes($pickupTime, $types); + $pickupLocation = self::checkTypes($pickupLocation, $types); - $this->pickupTime = $pickupTime; + $this->pickupLocation = $pickupLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return DateTime|null */ - public function getPickupLocation() + public function getPickupTime() { - return $this->pickupLocation; + return $this->pickupTime; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $pickupLocation + * @param DateTime|null $pickupTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPickupLocation($pickupLocation) + public function setPickupTime($pickupTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", + "DateTime", + "null", ]; - $pickupLocation = self::checkTypes($pickupLocation, $types); + $pickupTime = self::checkTypes($pickupTime, $types); - $this->pickupLocation = $pickupLocation; + $this->pickupTime = $pickupTime; } } diff --git a/src/Models/SchemaOrg/RepaymentSpecification.php b/src/Models/SchemaOrg/RepaymentSpecification.php index bdca1b02..e4e88cbc 100644 --- a/src/Models/SchemaOrg/RepaymentSpecification.php +++ b/src/Models/SchemaOrg/RepaymentSpecification.php @@ -17,23 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ - "numberOfLoanPayments" => "numberOfLoanPayments", + "downPayment" => "downPayment", "earlyPrepaymentPenalty" => "earlyPrepaymentPenalty", "loanPaymentAmount" => "loanPaymentAmount", "loanPaymentFrequency" => "loanPaymentFrequency", - "downPayment" => "downPayment", + "numberOfLoanPayments" => "numberOfLoanPayments", ]; return array_merge(parent::fieldList(), $fields); } /** - * The number of payments contractually required at origination to repay the loan. For monthly paying loans this is the number of months from the contractual first payment date to the maturity date. + * a type of payment made in cash during the onset of the purchase of an expensive good/service. The payment typically represents only a percentage of the full purchase price. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - protected $numberOfLoanPayments; + protected $downPayment; /** * The amount to be paid as a penalty in the event of early payment of the loan. @@ -60,36 +60,38 @@ public static function fieldList() { protected $loanPaymentFrequency; /** - * a type of payment made in cash during the onset of the purchase of an expensive good/service. The payment typically represents only a percentage of the full purchase price. + * The number of payments contractually required at origination to repay the loan. For monthly paying loans this is the number of months from the contractual first payment date to the maturity date. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var Number|null */ - protected $downPayment; + protected $numberOfLoanPayments; /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - public function getNumberOfLoanPayments() + public function getDownPayment() { - return $this->numberOfLoanPayments; + return $this->downPayment; } /** - * @param Number|null $numberOfLoanPayments + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $downPayment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfLoanPayments($numberOfLoanPayments) + public function setDownPayment($downPayment) { $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", "Number", "null", ]; - $numberOfLoanPayments = self::checkTypes($numberOfLoanPayments, $types); + $downPayment = self::checkTypes($downPayment, $types); - $this->numberOfLoanPayments = $numberOfLoanPayments; + $this->downPayment = $downPayment; } /** @@ -168,30 +170,28 @@ public function setLoanPaymentFrequency($loanPaymentFrequency) } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return Number|null */ - public function getDownPayment() + public function getNumberOfLoanPayments() { - return $this->downPayment; + return $this->numberOfLoanPayments; } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $downPayment + * @param Number|null $numberOfLoanPayments * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDownPayment($downPayment) + public function setNumberOfLoanPayments($numberOfLoanPayments) { $types = [ "Number", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", "null", ]; - $downPayment = self::checkTypes($downPayment, $types); + $numberOfLoanPayments = self::checkTypes($numberOfLoanPayments, $types); - $this->downPayment = $downPayment; + $this->numberOfLoanPayments = $numberOfLoanPayments; } } diff --git a/src/Models/SchemaOrg/Reservation.php b/src/Models/SchemaOrg/Reservation.php index aa63acae..9bcae197 100644 --- a/src/Models/SchemaOrg/Reservation.php +++ b/src/Models/SchemaOrg/Reservation.php @@ -17,455 +17,455 @@ public static function getType() public static function fieldList() { $fields = [ - "modifiedTime" => "modifiedTime", - "totalPrice" => "totalPrice", - "reservedTicket" => "reservedTicket", - "reservationStatus" => "reservationStatus", - "provider" => "provider", - "broker" => "broker", - "bookingTime" => "bookingTime", - "programMembershipUsed" => "programMembershipUsed", "bookingAgent" => "bookingAgent", + "bookingTime" => "bookingTime", + "broker" => "broker", + "modifiedTime" => "modifiedTime", "priceCurrency" => "priceCurrency", + "programMembershipUsed" => "programMembershipUsed", + "provider" => "provider", + "reservationFor" => "reservationFor", "reservationId" => "reservationId", + "reservationStatus" => "reservationStatus", + "reservedTicket" => "reservedTicket", + "totalPrice" => "totalPrice", "underName" => "underName", - "reservationFor" => "reservationFor", ]; return array_merge(parent::fieldList(), $fields); } /** - * The date and time the reservation was modified. + * 'bookingAgent' is an out-dated term indicating a 'broker' that serves as a booking agent. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $modifiedTime; + protected $bookingAgent; /** - * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * The date and time the reservation was booked. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @var DateTime|null */ - protected $totalPrice; + protected $bookingTime; /** - * A ticket associated with the reservation. + * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. * * - * @var \OpenActive\Models\SchemaOrg\Ticket|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $reservedTicket; + protected $broker; /** - * The current status of the reservation. + * The date and time the reservation was modified. * * - * @var \OpenActive\Models\SchemaOrg\ReservationStatusType|string + * @var DateTime|null */ - protected $reservationStatus; + protected $modifiedTime; /** - * 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 currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $provider; + protected $priceCurrency; /** - * 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. + * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\ProgramMembership|string */ - protected $broker; + protected $programMembershipUsed; /** - * The date and time the reservation was booked. + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $bookingTime; + protected $provider; /** - * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation. + * The thing -- flight, event, restaurant, etc. being reserved. * * - * @var \OpenActive\Models\SchemaOrg\ProgramMembership|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $programMembershipUsed; + protected $reservationFor; /** - * 'bookingAgent' is an out-dated term indicating a 'broker' that serves as a booking agent. + * A unique identifier for the reservation. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $bookingAgent; + protected $reservationId; /** - * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The current status of the reservation. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ReservationStatusType|string */ - protected $priceCurrency; + protected $reservationStatus; /** - * A unique identifier for the reservation. + * A ticket associated with the reservation. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Ticket|string */ - protected $reservationId; + protected $reservedTicket; /** - * The person or organization the reservation or ticket is for. + * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - protected $underName; + protected $totalPrice; /** - * The thing -- flight, event, restaurant,etc. being reserved. + * The person or organization the reservation or ticket is for. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $reservationFor; + protected $underName; /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getModifiedTime() + public function getBookingAgent() { - return $this->modifiedTime; + return $this->bookingAgent; } /** - * @param DateTime|null $modifiedTime + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $bookingAgent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setModifiedTime($modifiedTime) + public function setBookingAgent($bookingAgent) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $modifiedTime = self::checkTypes($modifiedTime, $types); + $bookingAgent = self::checkTypes($bookingAgent, $types); - $this->modifiedTime = $modifiedTime; + $this->bookingAgent = $bookingAgent; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @return DateTime|null */ - public function getTotalPrice() + public function getBookingTime() { - return $this->totalPrice; + return $this->bookingTime; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice + * @param DateTime|null $bookingTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalPrice($totalPrice) + public function setBookingTime($bookingTime) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", - "string", - "Number", + "DateTime", "null", ]; - $totalPrice = self::checkTypes($totalPrice, $types); + $bookingTime = self::checkTypes($bookingTime, $types); - $this->totalPrice = $totalPrice; + $this->bookingTime = $bookingTime; } /** - * @return \OpenActive\Models\SchemaOrg\Ticket|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getReservedTicket() + public function getBroker() { - return $this->reservedTicket; + return $this->broker; } /** - * @param \OpenActive\Models\SchemaOrg\Ticket|string $reservedTicket + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $broker * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReservedTicket($reservedTicket) + public function setBroker($broker) { $types = [ - "\OpenActive\Models\SchemaOrg\Ticket", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $reservedTicket = self::checkTypes($reservedTicket, $types); + $broker = self::checkTypes($broker, $types); - $this->reservedTicket = $reservedTicket; + $this->broker = $broker; } /** - * @return \OpenActive\Models\SchemaOrg\ReservationStatusType|string + * @return DateTime|null */ - public function getReservationStatus() + public function getModifiedTime() { - return $this->reservationStatus; + return $this->modifiedTime; } /** - * @param \OpenActive\Models\SchemaOrg\ReservationStatusType|string $reservationStatus + * @param DateTime|null $modifiedTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReservationStatus($reservationStatus) + public function setModifiedTime($modifiedTime) { $types = [ - "\OpenActive\Models\SchemaOrg\ReservationStatusType", - "string", + "DateTime", + "null", ]; - $reservationStatus = self::checkTypes($reservationStatus, $types); + $modifiedTime = self::checkTypes($modifiedTime, $types); - $this->reservationStatus = $reservationStatus; + $this->modifiedTime = $modifiedTime; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getProvider() + public function getPriceCurrency() { - return $this->provider; + return $this->priceCurrency; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setPriceCurrency($priceCurrency) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $provider = self::checkTypes($provider, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->provider = $provider; + $this->priceCurrency = $priceCurrency; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ProgramMembership|string */ - public function getBroker() + public function getProgramMembershipUsed() { - return $this->broker; + return $this->programMembershipUsed; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker + * @param \OpenActive\Models\SchemaOrg\ProgramMembership|string $programMembershipUsed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroker($broker) + public function setProgramMembershipUsed($programMembershipUsed) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ProgramMembership", "string", ]; - $broker = self::checkTypes($broker, $types); + $programMembershipUsed = self::checkTypes($programMembershipUsed, $types); - $this->broker = $broker; + $this->programMembershipUsed = $programMembershipUsed; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getBookingTime() + public function getProvider() { - return $this->bookingTime; + return $this->provider; } /** - * @param DateTime|null $bookingTime + * @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 setBookingTime($bookingTime) + public function setProvider($provider) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $bookingTime = self::checkTypes($bookingTime, $types); + $provider = self::checkTypes($provider, $types); - $this->bookingTime = $bookingTime; + $this->provider = $provider; } /** - * @return \OpenActive\Models\SchemaOrg\ProgramMembership|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getProgramMembershipUsed() + public function getReservationFor() { - return $this->programMembershipUsed; + return $this->reservationFor; } /** - * @param \OpenActive\Models\SchemaOrg\ProgramMembership|string $programMembershipUsed + * @param \OpenActive\Models\SchemaOrg\Thing|string $reservationFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgramMembershipUsed($programMembershipUsed) + public function setReservationFor($reservationFor) { $types = [ - "\OpenActive\Models\SchemaOrg\ProgramMembership", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $programMembershipUsed = self::checkTypes($programMembershipUsed, $types); + $reservationFor = self::checkTypes($reservationFor, $types); - $this->programMembershipUsed = $programMembershipUsed; + $this->reservationFor = $reservationFor; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getBookingAgent() + public function getReservationId() { - return $this->bookingAgent; + return $this->reservationId; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $bookingAgent + * @param string $reservationId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBookingAgent($bookingAgent) + public function setReservationId($reservationId) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $bookingAgent = self::checkTypes($bookingAgent, $types); + $reservationId = self::checkTypes($reservationId, $types); - $this->bookingAgent = $bookingAgent; + $this->reservationId = $reservationId; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ReservationStatusType|string */ - public function getPriceCurrency() + public function getReservationStatus() { - return $this->priceCurrency; + return $this->reservationStatus; } /** - * @param string $priceCurrency + * @param \OpenActive\Models\SchemaOrg\ReservationStatusType|string $reservationStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceCurrency($priceCurrency) + public function setReservationStatus($reservationStatus) { $types = [ + "\OpenActive\Models\SchemaOrg\ReservationStatusType", "string", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $reservationStatus = self::checkTypes($reservationStatus, $types); - $this->priceCurrency = $priceCurrency; + $this->reservationStatus = $reservationStatus; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Ticket|string */ - public function getReservationId() + public function getReservedTicket() { - return $this->reservationId; + return $this->reservedTicket; } /** - * @param string $reservationId + * @param \OpenActive\Models\SchemaOrg\Ticket|string $reservedTicket * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReservationId($reservationId) + public function setReservedTicket($reservedTicket) { $types = [ + "\OpenActive\Models\SchemaOrg\Ticket", "string", ]; - $reservationId = self::checkTypes($reservationId, $types); + $reservedTicket = self::checkTypes($reservedTicket, $types); - $this->reservationId = $reservationId; + $this->reservedTicket = $reservedTicket; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - public function getUnderName() + public function getTotalPrice() { - return $this->underName; + return $this->totalPrice; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $underName + * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null $totalPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnderName($underName) + public function setTotalPrice($totalPrice) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "Number", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", + "null", ]; - $underName = self::checkTypes($underName, $types); + $totalPrice = self::checkTypes($totalPrice, $types); - $this->underName = $underName; + $this->totalPrice = $totalPrice; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getReservationFor() + public function getUnderName() { - return $this->reservationFor; + return $this->underName; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $reservationFor + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $underName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReservationFor($reservationFor) + public function setUnderName($underName) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $reservationFor = self::checkTypes($reservationFor, $types); + $underName = self::checkTypes($underName, $types); - $this->reservationFor = $reservationFor; + $this->underName = $underName; } } diff --git a/src/Models/SchemaOrg/ResetPasswordAction.php b/src/Models/SchemaOrg/ResetPasswordAction.php new file mode 100644 index 00000000..5af39b62 --- /dev/null +++ b/src/Models/SchemaOrg/ResetPasswordAction.php @@ -0,0 +1,25 @@ + "accommodationFloorPlan", + "floorLevel" => "floorLevel", ]; return array_merge(parent::fieldList(), $fields); @@ -31,6 +32,15 @@ public static function fieldList() { */ protected $accommodationFloorPlan; + /** + * 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 $floorLevel; + /** * @return \OpenActive\Models\SchemaOrg\FloorPlan|string */ @@ -56,4 +66,28 @@ public function setAccommodationFloorPlan($accommodationFloorPlan) $this->accommodationFloorPlan = $accommodationFloorPlan; } + /** + * @return string + */ + public function getFloorLevel() + { + return $this->floorLevel; + } + + /** + * @param string $floorLevel + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setFloorLevel($floorLevel) + { + $types = [ + "string", + ]; + + $floorLevel = self::checkTypes($floorLevel, $types); + + $this->floorLevel = $floorLevel; + } + } diff --git a/src/Models/SchemaOrg/ReturnAction.php b/src/Models/SchemaOrg/ReturnAction.php index d6d476a0..f6c76358 100644 --- a/src/Models/SchemaOrg/ReturnAction.php +++ b/src/Models/SchemaOrg/ReturnAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\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/Review.php b/src/Models/SchemaOrg/Review.php index 07193ea8..c6fd08fd 100644 --- a/src/Models/SchemaOrg/Review.php +++ b/src/Models/SchemaOrg/Review.php @@ -17,220 +17,230 @@ public static function getType() public static function fieldList() { $fields = [ - "reviewRating" => "reviewRating", + "associatedClaimReview" => "associatedClaimReview", + "associatedMediaReview" => "associatedMediaReview", + "associatedReview" => "associatedReview", "itemReviewed" => "itemReviewed", "negativeNotes" => "negativeNotes", - "reviewAspect" => "reviewAspect", - "associatedClaimReview" => "associatedClaimReview", "positiveNotes" => "positiveNotes", - "associatedReview" => "associatedReview", - "associatedMediaReview" => "associatedMediaReview", + "reviewAspect" => "reviewAspect", "reviewBody" => "reviewBody", + "reviewRating" => "reviewRating", ]; return array_merge(parent::fieldList(), $fields); } /** - * The rating given in this review. Note that reviews can themselves be rated. The ```reviewRating``` applies to rating given by the review. The [[aggregateRating]] property applies to the review itself, as a creative work. + * An associated [[ClaimReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[associatedClaimReview]] would be used on [[MediaReview]]. * * - * @var \OpenActive\Models\SchemaOrg\Rating|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $reviewRating; + protected $associatedClaimReview; /** - * The item that is being reviewed/rated. + * An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[associatedClaimReview]] would be used on [[MediaReview]]. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $itemReviewed; + protected $associatedMediaReview; /** - * Indicates, in the context of a [[Review]] (e.g. framed as 'pro' vs 'con' considerations), negative considerations - either as unstructured text, or a list. + * An associated [[Review]]. * * - * @var \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $negativeNotes; + protected $associatedReview; /** - * This Review or Rating is relevant to this part or facet of the itemReviewed. + * The item that is being reviewed/rated. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $reviewAspect; + protected $itemReviewed; /** - * An associated [[ClaimReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]]. + * Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry + * + * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions + * tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]]. + * + * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list). * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $associatedClaimReview; + protected $negativeNotes; /** - * Indicates, in the context of a [[Review]] (e.g. framed as 'pro' vs 'con' considerations), positive considerations - either as unstructured text, or a list. + * Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews. + * + * In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. + * + * The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list). * * - * @var \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent */ protected $positiveNotes; /** - * An associated [[Review]]. + * This Review or Rating is relevant to this part or facet of the itemReviewed. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\StructuredValue|string */ - protected $associatedReview; + protected $reviewAspect; /** - * An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]]. + * The actual body of the review. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var string */ - protected $associatedMediaReview; + protected $reviewBody; /** - * The actual body of the review. + * The rating given in this review. Note that reviews can themselves be rated. The ```reviewRating``` applies to rating given by the review. The [[aggregateRating]] property applies to the review itself, as a creative work. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Rating|string */ - protected $reviewBody; + protected $reviewRating; /** - * @return \OpenActive\Models\SchemaOrg\Rating|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getReviewRating() + public function getAssociatedClaimReview() { - return $this->reviewRating; + return $this->associatedClaimReview; } /** - * @param \OpenActive\Models\SchemaOrg\Rating|string $reviewRating + * @param \OpenActive\Models\SchemaOrg\Review|string $associatedClaimReview * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewRating($reviewRating) + public function setAssociatedClaimReview($associatedClaimReview) { $types = [ - "\OpenActive\Models\SchemaOrg\Rating", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $reviewRating = self::checkTypes($reviewRating, $types); + $associatedClaimReview = self::checkTypes($associatedClaimReview, $types); - $this->reviewRating = $reviewRating; + $this->associatedClaimReview = $associatedClaimReview; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getItemReviewed() + public function getAssociatedMediaReview() { - return $this->itemReviewed; + return $this->associatedMediaReview; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed + * @param \OpenActive\Models\SchemaOrg\Review|string $associatedMediaReview * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemReviewed($itemReviewed) + public function setAssociatedMediaReview($associatedMediaReview) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $itemReviewed = self::checkTypes($itemReviewed, $types); + $associatedMediaReview = self::checkTypes($associatedMediaReview, $types); - $this->itemReviewed = $itemReviewed; + $this->associatedMediaReview = $associatedMediaReview; } /** - * @return \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getNegativeNotes() + public function getAssociatedReview() { - return $this->negativeNotes; + return $this->associatedReview; } /** - * @param \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList $negativeNotes + * @param \OpenActive\Models\SchemaOrg\Review|string $associatedReview * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNegativeNotes($negativeNotes) + public function setAssociatedReview($associatedReview) { $types = [ - "\OpenActive\Models\SchemaOrg\ListItem", + "\OpenActive\Models\SchemaOrg\Review", "string", - "\OpenActive\Models\SchemaOrg\WebContent", - "\OpenActive\Models\SchemaOrg\ItemList", ]; - $negativeNotes = self::checkTypes($negativeNotes, $types); + $associatedReview = self::checkTypes($associatedReview, $types); - $this->negativeNotes = $negativeNotes; + $this->associatedReview = $associatedReview; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getReviewAspect() + public function getItemReviewed() { - return $this->reviewAspect; + return $this->itemReviewed; } /** - * @param string $reviewAspect + * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewAspect($reviewAspect) + public function setItemReviewed($itemReviewed) { $types = [ + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $reviewAspect = self::checkTypes($reviewAspect, $types); + $itemReviewed = self::checkTypes($itemReviewed, $types); - $this->reviewAspect = $reviewAspect; + $this->itemReviewed = $itemReviewed; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getAssociatedClaimReview() + public function getNegativeNotes() { - return $this->associatedClaimReview; + return $this->negativeNotes; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $associatedClaimReview + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent $negativeNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedClaimReview($associatedClaimReview) + public function setNegativeNotes($negativeNotes) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\ListItem", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $associatedClaimReview = self::checkTypes($associatedClaimReview, $types); + $negativeNotes = self::checkTypes($negativeNotes, $types); - $this->associatedClaimReview = $associatedClaimReview; + $this->negativeNotes = $negativeNotes; } /** - * @return \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent */ public function getPositiveNotes() { @@ -238,17 +248,17 @@ public function getPositiveNotes() } /** - * @param \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList $positiveNotes + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent $positiveNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setPositiveNotes($positiveNotes) { $types = [ - "\OpenActive\Models\SchemaOrg\WebContent", - "string", - "\OpenActive\Models\SchemaOrg\ListItem", "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\ListItem", + "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; $positiveNotes = self::checkTypes($positiveNotes, $types); @@ -257,77 +267,77 @@ public function setPositiveNotes($positiveNotes) } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\StructuredValue|string */ - public function getAssociatedReview() + public function getReviewAspect() { - return $this->associatedReview; + return $this->reviewAspect; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $associatedReview + * @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 setAssociatedReview($associatedReview) + public function setReviewAspect($reviewAspect) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\StructuredValue", "string", ]; - $associatedReview = self::checkTypes($associatedReview, $types); + $reviewAspect = self::checkTypes($reviewAspect, $types); - $this->associatedReview = $associatedReview; + $this->reviewAspect = $reviewAspect; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string */ - public function getAssociatedMediaReview() + public function getReviewBody() { - return $this->associatedMediaReview; + return $this->reviewBody; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $associatedMediaReview + * @param string $reviewBody * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedMediaReview($associatedMediaReview) + public function setReviewBody($reviewBody) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $associatedMediaReview = self::checkTypes($associatedMediaReview, $types); + $reviewBody = self::checkTypes($reviewBody, $types); - $this->associatedMediaReview = $associatedMediaReview; + $this->reviewBody = $reviewBody; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Rating|string */ - public function getReviewBody() + public function getReviewRating() { - return $this->reviewBody; + return $this->reviewRating; } /** - * @param string $reviewBody + * @param \OpenActive\Models\SchemaOrg\Rating|string $reviewRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewBody($reviewBody) + public function setReviewRating($reviewRating) { $types = [ + "\OpenActive\Models\SchemaOrg\Rating", "string", ]; - $reviewBody = self::checkTypes($reviewBody, $types); + $reviewRating = self::checkTypes($reviewRating, $types); - $this->reviewBody = $reviewBody; + $this->reviewRating = $reviewRating; } } diff --git a/src/Models/SchemaOrg/Role.php b/src/Models/SchemaOrg/Role.php index 2ac3c878..42466dbf 100644 --- a/src/Models/SchemaOrg/Role.php +++ b/src/Models/SchemaOrg/Role.php @@ -17,145 +17,145 @@ public static function getType() public static function fieldList() { $fields = [ - "namedPosition" => "namedPosition", - "startDate" => "startDate", "endDate" => "endDate", + "namedPosition" => "namedPosition", "roleName" => "roleName", + "startDate" => "startDate", ]; return array_merge(parent::fieldList(), $fields); } /** - * A position played, performed or filled by a person or organization, as part of an organization. For example, an athlete in a SportsTeam might play in the position named 'Quarterback'. + * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var string + * @var Date|DateTime|null */ - protected $namedPosition; + protected $endDate; /** - * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * A position played, performed or filled by a person or organization, as part of an organization. For example, an athlete in a SportsTeam might play in the position named 'Quarterback'. * * - * @var Date|DateTime|null + * @var string */ - protected $startDate; + protected $namedPosition; /** - * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * A role played, performed or filled by a person or organization. For example, the team of creators for a comic book might fill the roles named 'inker', 'penciller', and 'letterer'; or an athlete in a SportsTeam might play in the position named 'Quarterback'. * * - * @var Date|DateTime|null + * @var string */ - protected $endDate; + protected $roleName; /** - * A role played, performed or filled by a person or organization. For example, the team of creators for a comic book might fill the roles named 'inker', 'penciller', and 'letterer'; or an athlete in a SportsTeam might play in the position named 'Quarterback'. + * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var string + * @var Date|DateTime|null */ - protected $roleName; + protected $startDate; /** - * @return string + * @return Date|DateTime|null */ - public function getNamedPosition() + public function getEndDate() { - return $this->namedPosition; + return $this->endDate; } /** - * @param string $namedPosition + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNamedPosition($namedPosition) + public function setEndDate($endDate) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $namedPosition = self::checkTypes($namedPosition, $types); + $endDate = self::checkTypes($endDate, $types); - $this->namedPosition = $namedPosition; + $this->endDate = $endDate; } /** - * @return Date|DateTime|null + * @return string */ - public function getStartDate() + public function getNamedPosition() { - return $this->startDate; + return $this->namedPosition; } /** - * @param Date|DateTime|null $startDate + * @param string $namedPosition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartDate($startDate) + public function setNamedPosition($namedPosition) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $startDate = self::checkTypes($startDate, $types); + $namedPosition = self::checkTypes($namedPosition, $types); - $this->startDate = $startDate; + $this->namedPosition = $namedPosition; } /** - * @return Date|DateTime|null + * @return string */ - public function getEndDate() + public function getRoleName() { - return $this->endDate; + return $this->roleName; } /** - * @param Date|DateTime|null $endDate + * @param string $roleName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndDate($endDate) + public function setRoleName($roleName) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $endDate = self::checkTypes($endDate, $types); + $roleName = self::checkTypes($roleName, $types); - $this->endDate = $endDate; + $this->roleName = $roleName; } /** - * @return string + * @return Date|DateTime|null */ - public function getRoleName() + public function getStartDate() { - return $this->roleName; + return $this->startDate; } /** - * @param string $roleName + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRoleName($roleName) + public function setStartDate($startDate) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $roleName = self::checkTypes($roleName, $types); + $startDate = self::checkTypes($startDate, $types); - $this->roleName = $roleName; + $this->startDate = $startDate; } } diff --git a/src/Models/SchemaOrg/RsvpAction.php b/src/Models/SchemaOrg/RsvpAction.php index e75f683d..c05e2440 100644 --- a/src/Models/SchemaOrg/RsvpAction.php +++ b/src/Models/SchemaOrg/RsvpAction.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "rsvpResponse" => "rsvpResponse", - "comment" => "comment", "additionalNumberOfGuests" => "additionalNumberOfGuests", + "comment" => "comment", + "rsvpResponse" => "rsvpResponse", ]; return array_merge(parent::fieldList(), $fields); } /** - * The response (yes, no, maybe) to the RSVP. + * If responding yes, the number of guests who will attend in addition to the invitee. * * - * @var \OpenActive\Enums\SchemaOrg\RsvpResponseType|null + * @var Number|null */ - protected $rsvpResponse; + protected $additionalNumberOfGuests; /** * Comments, typically from users. @@ -42,36 +42,36 @@ public static function fieldList() { protected $comment; /** - * If responding yes, the number of guests who will attend in addition to the invitee. + * The response (yes, no, maybe) to the RSVP. * * - * @var Number|null + * @var \OpenActive\Enums\SchemaOrg\RsvpResponseType|null */ - protected $additionalNumberOfGuests; + protected $rsvpResponse; /** - * @return \OpenActive\Enums\SchemaOrg\RsvpResponseType|null + * @return Number|null */ - public function getRsvpResponse() + public function getAdditionalNumberOfGuests() { - return $this->rsvpResponse; + return $this->additionalNumberOfGuests; } /** - * @param \OpenActive\Enums\SchemaOrg\RsvpResponseType|null $rsvpResponse + * @param Number|null $additionalNumberOfGuests * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRsvpResponse($rsvpResponse) + public function setAdditionalNumberOfGuests($additionalNumberOfGuests) { $types = [ - "\OpenActive\Enums\SchemaOrg\RsvpResponseType", + "Number", "null", ]; - $rsvpResponse = self::checkTypes($rsvpResponse, $types); + $additionalNumberOfGuests = self::checkTypes($additionalNumberOfGuests, $types); - $this->rsvpResponse = $rsvpResponse; + $this->additionalNumberOfGuests = $additionalNumberOfGuests; } /** @@ -100,28 +100,28 @@ public function setComment($comment) } /** - * @return Number|null + * @return \OpenActive\Enums\SchemaOrg\RsvpResponseType|null */ - public function getAdditionalNumberOfGuests() + public function getRsvpResponse() { - return $this->additionalNumberOfGuests; + return $this->rsvpResponse; } /** - * @param Number|null $additionalNumberOfGuests + * @param \OpenActive\Enums\SchemaOrg\RsvpResponseType|null $rsvpResponse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalNumberOfGuests($additionalNumberOfGuests) + public function setRsvpResponse($rsvpResponse) { $types = [ - "Number", + "\OpenActive\Enums\SchemaOrg\RsvpResponseType", "null", ]; - $additionalNumberOfGuests = self::checkTypes($additionalNumberOfGuests, $types); + $rsvpResponse = self::checkTypes($rsvpResponse, $types); - $this->additionalNumberOfGuests = $additionalNumberOfGuests; + $this->rsvpResponse = $rsvpResponse; } } diff --git a/src/Models/SchemaOrg/RuntimePlatform.php b/src/Models/SchemaOrg/RuntimePlatform.php new file mode 100644 index 00000000..36a5e4f1 --- /dev/null +++ b/src/Models/SchemaOrg/RuntimePlatform.php @@ -0,0 +1,25 @@ + "scheduleTimezone", - "startDate" => "startDate", + "byDay" => "byDay", + "byMonth" => "byMonth", + "byMonthDay" => "byMonthDay", + "byMonthWeek" => "byMonthWeek", + "duration" => "duration", + "endDate" => "endDate", + "endTime" => "endTime", "exceptDate" => "exceptDate", - "startTime" => "startTime", "repeatCount" => "repeatCount", - "endDate" => "endDate", "repeatFrequency" => "repeatFrequency", - "duration" => "duration", - "byMonthDay" => "byMonthDay", - "endTime" => "endTime", - "byMonth" => "byMonth", - "byDay" => "byDay", - "byMonthWeek" => "byMonthWeek", + "scheduleTimezone" => "scheduleTimezone", + "startDate" => "startDate", + "startTime" => "startTime", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates the timezone for which the time(s) indicated in the [[Schedule]] are given. The value provided should be among those listed in the IANA Time Zone Database. + * Defines the day(s) of the week on which a recurring [[Event]] takes place. May be specified using either [[DayOfWeek]], or alternatively [[Text]] conforming to iCal's syntax for byDay recurrence rules. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null */ - protected $scheduleTimezone; + protected $byDay; /** - * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * Defines the month(s) of the year on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-12. January is 1. * * - * @var Date|DateTime|null + * @var int|null */ - protected $startDate; + protected $byMonth; /** - * Defines a [[Date]] or [[DateTime]] during which a scheduled [[Event]] will not take place. The property allows exceptions to - * a [[Schedule]] to be specified. If an exception is specified as a [[DateTime]] then only the event that would have started at that specific date and time - * should be excluded from the schedule. If an exception is specified as a [[Date]] then any event that is scheduled for that 24 hour period should be - * excluded from the schedule. This allows a whole day to be excluded from the schedule without having to itemise every scheduled event. + * Defines the day(s) of the month on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-31. * * - * @var Date|DateTime|null + * @var int|null */ - protected $exceptDate; + protected $byMonthDay; /** - * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * Defines the week(s) of the month on which a recurring Event takes place. Specified as an Integer between 1-5. For clarity, byMonthWeek is best used in conjunction with byDay to indicate concepts like the first and third Mondays of a month. * * - * @var DateTime|string|null + * @var int|null */ - protected $startTime; + protected $byMonthWeek; /** - * Defines the number of times a recurring [[Event]] will take place + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var int|null + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $repeatCount; + protected $duration; /** * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). @@ -87,187 +84,191 @@ public static function fieldList() { protected $endDate; /** - * Defines the frequency at which [[Event]]s will occur according to a schedule [[Schedule]]. The intervals between - * events should be defined as a [[Duration]] of time. + * The 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 DateInterval|string|null + * @var DateTime|string|null */ - protected $repeatFrequency; + protected $endTime; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * Defines a [[Date]] or [[DateTime]] during which a scheduled [[Event]] will not take place. The property allows exceptions to + * a [[Schedule]] to be specified. If an exception is specified as a [[DateTime]] then only the event that would have started at that specific date and time + * should be excluded from the schedule. If an exception is specified as a [[Date]] then any event that is scheduled for that 24 hour period should be + * excluded from the schedule. This allows a whole day to be excluded from the schedule without having to itemise every scheduled event. * * - * @var DateInterval|string|null + * @var Date|DateTime|null */ - protected $duration; + protected $exceptDate; /** - * Defines the day(s) of the month on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-31. + * Defines the number of times a recurring [[Event]] will take place. * * * @var int|null */ - protected $byMonthDay; + protected $repeatCount; /** - * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * Defines the frequency at which [[Event]]s will occur according to a schedule [[Schedule]]. The intervals between + * events should be defined as a [[Duration]] of time. * * - * @var DateTime|string|null + * @var DateInterval|string|null */ - protected $endTime; + protected $repeatFrequency; /** - * Defines the month(s) of the year on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-12. January is 1. + * Indicates the timezone for which the time(s) indicated in the [[Schedule]] are given. The value provided should be among those listed in the IANA Time Zone Database. * * - * @var int|null + * @var string */ - protected $byMonth; + protected $scheduleTimezone; /** - * Defines the day(s) of the week on which a recurring [[Event]] takes place. May be specified using either [[DayOfWeek]], or alternatively [[Text]] conforming to iCal's syntax for byDay recurrence rules. + * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null + * @var Date|DateTime|null */ - protected $byDay; + protected $startDate; /** - * Defines the week(s) of the month on which a recurring Event takes place. Specified as an Integer between 1-5. For clarity, byMonthWeek is best used in conjunction with byDay to indicate concepts like the first and third Mondays of a month. + * 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 int|null + * @var DateTime|string|null */ - protected $byMonthWeek; + protected $startTime; /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null */ - public function getScheduleTimezone() + public function getByDay() { - return $this->scheduleTimezone; + return $this->byDay; } /** - * @param string $scheduleTimezone + * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null $byDay * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setScheduleTimezone($scheduleTimezone) + public function setByDay($byDay) { $types = [ + "\OpenActive\Enums\SchemaOrg\DayOfWeek", "string", + "null", ]; - $scheduleTimezone = self::checkTypes($scheduleTimezone, $types); + $byDay = self::checkTypes($byDay, $types); - $this->scheduleTimezone = $scheduleTimezone; + $this->byDay = $byDay; } /** - * @return Date|DateTime|null + * @return int|null */ - public function getStartDate() + public function getByMonth() { - return $this->startDate; + return $this->byMonth; } /** - * @param Date|DateTime|null $startDate + * @param int|null $byMonth * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartDate($startDate) + public function setByMonth($byMonth) { $types = [ - "Date", - "DateTime", + "int", "null", ]; - $startDate = self::checkTypes($startDate, $types); + $byMonth = self::checkTypes($byMonth, $types); - $this->startDate = $startDate; + $this->byMonth = $byMonth; } /** - * @return Date|DateTime|null + * @return int|null */ - public function getExceptDate() + public function getByMonthDay() { - return $this->exceptDate; + return $this->byMonthDay; } /** - * @param Date|DateTime|null $exceptDate + * @param int|null $byMonthDay * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExceptDate($exceptDate) + public function setByMonthDay($byMonthDay) { $types = [ - "Date", - "DateTime", + "int", "null", ]; - $exceptDate = self::checkTypes($exceptDate, $types); + $byMonthDay = self::checkTypes($byMonthDay, $types); - $this->exceptDate = $exceptDate; + $this->byMonthDay = $byMonthDay; } /** - * @return DateTime|string|null + * @return int|null */ - public function getStartTime() + public function getByMonthWeek() { - return $this->startTime; + return $this->byMonthWeek; } /** - * @param DateTime|string|null $startTime + * @param int|null $byMonthWeek * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartTime($startTime) + public function setByMonthWeek($byMonthWeek) { $types = [ - "DateTime", - "Time", + "int", "null", ]; - $startTime = self::checkTypes($startTime, $types); + $byMonthWeek = self::checkTypes($byMonthWeek, $types); - $this->startTime = $startTime; + $this->byMonthWeek = $byMonthWeek; } /** - * @return int|null + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getRepeatCount() + public function getDuration() { - return $this->repeatCount; + return $this->duration; } /** - * @param int|null $repeatCount + * @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 setRepeatCount($repeatCount) + public function setDuration($duration) { $types = [ - "int", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $repeatCount = self::checkTypes($repeatCount, $types); + $duration = self::checkTypes($duration, $types); - $this->repeatCount = $repeatCount; + $this->duration = $duration; } /** @@ -297,182 +298,182 @@ public function setEndDate($endDate) } /** - * @return DateInterval|string|null + * @return DateTime|string|null */ - public function getRepeatFrequency() + public function getEndTime() { - return $this->repeatFrequency; + return $this->endTime; } /** - * @param DateInterval|string|null $repeatFrequency + * @param DateTime|string|null $endTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRepeatFrequency($repeatFrequency) + public function setEndTime($endTime) { $types = [ - "DateInterval", - "string", + "DateTime", + "Time", "null", ]; - $repeatFrequency = self::checkTypes($repeatFrequency, $types); + $endTime = self::checkTypes($endTime, $types); - $this->repeatFrequency = $repeatFrequency; + $this->endTime = $endTime; } /** - * @return DateInterval|string|null + * @return Date|DateTime|null */ - public function getDuration() + public function getExceptDate() { - return $this->duration; + return $this->exceptDate; } /** - * @param DateInterval|string|null $duration + * @param Date|DateTime|null $exceptDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setExceptDate($exceptDate) { $types = [ - "DateInterval", - "string", + "Date", + "DateTime", "null", ]; - $duration = self::checkTypes($duration, $types); + $exceptDate = self::checkTypes($exceptDate, $types); - $this->duration = $duration; + $this->exceptDate = $exceptDate; } /** * @return int|null */ - public function getByMonthDay() + public function getRepeatCount() { - return $this->byMonthDay; + return $this->repeatCount; } /** - * @param int|null $byMonthDay + * @param int|null $repeatCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByMonthDay($byMonthDay) + public function setRepeatCount($repeatCount) { $types = [ "int", "null", ]; - $byMonthDay = self::checkTypes($byMonthDay, $types); + $repeatCount = self::checkTypes($repeatCount, $types); - $this->byMonthDay = $byMonthDay; + $this->repeatCount = $repeatCount; } /** - * @return DateTime|string|null + * @return DateInterval|string|null */ - public function getEndTime() + public function getRepeatFrequency() { - return $this->endTime; + return $this->repeatFrequency; } /** - * @param DateTime|string|null $endTime + * @param DateInterval|string|null $repeatFrequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndTime($endTime) + public function setRepeatFrequency($repeatFrequency) { $types = [ - "DateTime", - "Time", + "DateInterval", + "string", "null", ]; - $endTime = self::checkTypes($endTime, $types); + $repeatFrequency = self::checkTypes($repeatFrequency, $types); - $this->endTime = $endTime; + $this->repeatFrequency = $repeatFrequency; } /** - * @return int|null + * @return string */ - public function getByMonth() + public function getScheduleTimezone() { - return $this->byMonth; + return $this->scheduleTimezone; } /** - * @param int|null $byMonth + * @param string $scheduleTimezone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByMonth($byMonth) + public function setScheduleTimezone($scheduleTimezone) { $types = [ - "int", - "null", + "string", ]; - $byMonth = self::checkTypes($byMonth, $types); + $scheduleTimezone = self::checkTypes($scheduleTimezone, $types); - $this->byMonth = $byMonth; + $this->scheduleTimezone = $scheduleTimezone; } /** - * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null + * @return Date|DateTime|null */ - public function getByDay() + public function getStartDate() { - return $this->byDay; + return $this->startDate; } /** - * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null $byDay + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByDay($byDay) + public function setStartDate($startDate) { $types = [ - "\OpenActive\Enums\SchemaOrg\DayOfWeek", - "string", + "Date", + "DateTime", "null", ]; - $byDay = self::checkTypes($byDay, $types); + $startDate = self::checkTypes($startDate, $types); - $this->byDay = $byDay; + $this->startDate = $startDate; } /** - * @return int|null + * @return DateTime|string|null */ - public function getByMonthWeek() + public function getStartTime() { - return $this->byMonthWeek; + return $this->startTime; } /** - * @param int|null $byMonthWeek + * @param DateTime|string|null $startTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByMonthWeek($byMonthWeek) + public function setStartTime($startTime) { $types = [ - "int", + "DateTime", + "Time", "null", ]; - $byMonthWeek = self::checkTypes($byMonthWeek, $types); + $startTime = self::checkTypes($startTime, $types); - $this->byMonthWeek = $byMonthWeek; + $this->startTime = $startTime; } } diff --git a/src/Models/SchemaOrg/Seat.php b/src/Models/SchemaOrg/Seat.php index 02573abf..806f7758 100644 --- a/src/Models/SchemaOrg/Seat.php +++ b/src/Models/SchemaOrg/Seat.php @@ -17,143 +17,143 @@ public static function getType() public static function fieldList() { $fields = [ - "seatingType" => "seatingType", - "seatSection" => "seatSection", - "seatRow" => "seatRow", "seatNumber" => "seatNumber", + "seatRow" => "seatRow", + "seatSection" => "seatSection", + "seatingType" => "seatingType", ]; return array_merge(parent::fieldList(), $fields); } /** - * The type/class of the seat. + * The location of the reserved seat (e.g., 27). * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var string */ - protected $seatingType; + protected $seatNumber; /** - * The section location of the reserved seat (e.g. Orchestra). + * The row location of the reserved seat (e.g., B). * * * @var string */ - protected $seatSection; + protected $seatRow; /** - * The row location of the reserved seat (e.g., B). + * The section location of the reserved seat (e.g. Orchestra). * * * @var string */ - protected $seatRow; + protected $seatSection; /** - * The location of the reserved seat (e.g., 27). + * The type/class of the seat. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $seatNumber; + protected $seatingType; /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return string */ - public function getSeatingType() + public function getSeatNumber() { - return $this->seatingType; + return $this->seatNumber; } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $seatingType + * @param string $seatNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatingType($seatingType) + public function setSeatNumber($seatNumber) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", - "null", ]; - $seatingType = self::checkTypes($seatingType, $types); + $seatNumber = self::checkTypes($seatNumber, $types); - $this->seatingType = $seatingType; + $this->seatNumber = $seatNumber; } /** * @return string */ - public function getSeatSection() + public function getSeatRow() { - return $this->seatSection; + return $this->seatRow; } /** - * @param string $seatSection + * @param string $seatRow * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatSection($seatSection) + public function setSeatRow($seatRow) { $types = [ "string", ]; - $seatSection = self::checkTypes($seatSection, $types); + $seatRow = self::checkTypes($seatRow, $types); - $this->seatSection = $seatSection; + $this->seatRow = $seatRow; } /** * @return string */ - public function getSeatRow() + public function getSeatSection() { - return $this->seatRow; + return $this->seatSection; } /** - * @param string $seatRow + * @param string $seatSection * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatRow($seatRow) + public function setSeatSection($seatSection) { $types = [ "string", ]; - $seatRow = self::checkTypes($seatRow, $types); + $seatSection = self::checkTypes($seatSection, $types); - $this->seatRow = $seatRow; + $this->seatSection = $seatSection; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getSeatNumber() + public function getSeatingType() { - return $this->seatNumber; + return $this->seatingType; } /** - * @param string $seatNumber + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $seatingType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatNumber($seatNumber) + public function setSeatingType($seatingType) { $types = [ + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $seatNumber = self::checkTypes($seatNumber, $types); + $seatingType = self::checkTypes($seatingType, $types); - $this->seatNumber = $seatNumber; + $this->seatingType = $seatingType; } } diff --git a/src/Models/SchemaOrg/SeekToAction.php b/src/Models/SchemaOrg/SeekToAction.php index 3fb9d2ca..02b978b2 100644 --- a/src/Models/SchemaOrg/SeekToAction.php +++ b/src/Models/SchemaOrg/SeekToAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * The start time of the clip expressed as the number of seconds from the beginning of the work. * * - * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null + * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null */ protected $startOffset; /** - * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null + * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null */ public function getStartOffset() { @@ -40,16 +40,16 @@ public function getStartOffset() } /** - * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset + * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string|Number|null $startOffset * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setStartOffset($startOffset) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\HyperTocEntry", "string", + "Number", "null", ]; diff --git a/src/Models/SchemaOrg/SellAction.php b/src/Models/SchemaOrg/SellAction.php index 80598242..23fb659b 100644 --- a/src/Models/SchemaOrg/SellAction.php +++ b/src/Models/SchemaOrg/SellAction.php @@ -17,78 +17,78 @@ public static function getType() public static function fieldList() { $fields = [ - "warrantyPromise" => "warrantyPromise", "buyer" => "buyer", + "warrantyPromise" => "warrantyPromise", ]; return array_merge(parent::fieldList(), $fields); } /** - * The warranty promise(s) included in the offer. + * A sub property of participant. The participant/person/organization that bought the object. * * - * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $warrantyPromise; + protected $buyer; /** - * A sub property of participant. The participant/person/organization that bought the object. + * The warranty promise(s) included in the offer. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - protected $buyer; + protected $warrantyPromise; /** - * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getWarrantyPromise() + public function getBuyer() { - return $this->warrantyPromise; + return $this->buyer; } /** - * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $buyer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarrantyPromise($warrantyPromise) + public function setBuyer($buyer) { $types = [ - "\OpenActive\Models\SchemaOrg\WarrantyPromise", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $warrantyPromise = self::checkTypes($warrantyPromise, $types); + $buyer = self::checkTypes($buyer, $types); - $this->warrantyPromise = $warrantyPromise; + $this->buyer = $buyer; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - public function getBuyer() + public function getWarrantyPromise() { - return $this->buyer; + return $this->warrantyPromise; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $buyer + * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBuyer($buyer) + public function setWarrantyPromise($warrantyPromise) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\WarrantyPromise", "string", ]; - $buyer = self::checkTypes($buyer, $types); + $warrantyPromise = self::checkTypes($warrantyPromise, $types); - $this->buyer = $buyer; + $this->warrantyPromise = $warrantyPromise; } } diff --git a/src/Models/SchemaOrg/SendAction.php b/src/Models/SchemaOrg/SendAction.php index 7250740d..aa3bbd14 100644 --- a/src/Models/SchemaOrg/SendAction.php +++ b/src/Models/SchemaOrg/SendAction.php @@ -17,80 +17,80 @@ public static function getType() public static function fieldList() { $fields = [ - "recipient" => "recipient", "deliveryMethod" => "deliveryMethod", + "recipient" => "recipient", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of participant. The participant who is at the receiving end of the action. + * A sub property of instrument. The method of delivery. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $recipient; + protected $deliveryMethod; /** - * A sub property of instrument. The method of delivery. + * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $deliveryMethod; + protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getRecipient() + public function getDeliveryMethod() { - return $this->recipient; + return $this->deliveryMethod; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $deliveryMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipient($recipient) + public function setDeliveryMethod($deliveryMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", - "string", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", ]; - $recipient = self::checkTypes($recipient, $types); + $deliveryMethod = self::checkTypes($deliveryMethod, $types); - $this->recipient = $recipient; + $this->deliveryMethod = $deliveryMethod; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getDeliveryMethod() + public function getRecipient() { - return $this->deliveryMethod; + return $this->recipient; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $deliveryMethod + * @param \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\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 setDeliveryMethod($deliveryMethod) + public function setRecipient($recipient) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $deliveryMethod = self::checkTypes($deliveryMethod, $types); + $recipient = self::checkTypes($recipient, $types); - $this->deliveryMethod = $deliveryMethod; + $this->recipient = $recipient; } } diff --git a/src/Models/SchemaOrg/SequentialArt.php b/src/Models/SchemaOrg/SequentialArt.php new file mode 100644 index 00000000..9307b0d2 --- /dev/null +++ b/src/Models/SchemaOrg/SequentialArt.php @@ -0,0 +1,25 @@ + "review", + "aggregateRating" => "aggregateRating", + "areaServed" => "areaServed", + "audience" => "audience", + "availableChannel" => "availableChannel", "award" => "award", - "serviceAudience" => "serviceAudience", + "brand" => "brand", + "broker" => "broker", "category" => "category", + "hasCertification" => "hasCertification", + "hasOfferCatalog" => "hasOfferCatalog", "hoursAvailable" => "hoursAvailable", - "audience" => "audience", - "offers" => "offers", - "serviceOutput" => "serviceOutput", - "provider" => "provider", - "termsOfService" => "termsOfService", - "providerMobility" => "providerMobility", - "broker" => "broker", - "aggregateRating" => "aggregateRating", + "isRelatedTo" => "isRelatedTo", "isSimilarTo" => "isSimilarTo", - "availableChannel" => "availableChannel", - "slogan" => "slogan", - "brand" => "brand", "logo" => "logo", + "offers" => "offers", "produces" => "produces", + "provider" => "provider", + "providerMobility" => "providerMobility", + "review" => "review", "serviceArea" => "serviceArea", + "serviceAudience" => "serviceAudience", + "serviceOutput" => "serviceOutput", "serviceType" => "serviceType", - "areaServed" => "areaServed", - "isRelatedTo" => "isRelatedTo", - "hasOfferCatalog" => "hasOfferCatalog", + "slogan" => "slogan", + "termsOfService" => "termsOfService", ]; 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; /** - * An award won by or for this item. + * 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 $award; + protected $areaServed; /** - * The audience eligible for this service. + * An intended audience, i.e. a group for whom something was created. * * * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $serviceAudience; + protected $audience; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * A means of accessing the service (e.g. a phone bank, a web site, a location, etc.). * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\ServiceChannel|string */ - protected $category; + protected $availableChannel; /** - * The hours during which this service or contact is available. + * An award won by or for this item. * * - * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @var string */ - protected $hoursAvailable; + protected $award; /** - * An intended audience, i.e. a group for whom something was created. + * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $audience; + protected $brand; /** - * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. - * + * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. * * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $offers; + protected $broker; /** - * The tangible thing generated by the service, e.g. a passport, permit, etc. + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|string|\OpenActive\Models\SchemaOrg\Thing|null */ - protected $serviceOutput; + protected $category; /** - * 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. + * Certification information about a product, organization, service, place, or person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $provider; + protected $hasCertification; /** - * Human-readable terms of service documentation. + * Indicates an OfferCatalog listing for this Organization, Person, or Service. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - protected $termsOfService; + protected $hasOfferCatalog; /** - * Indicates the mobility of a provided service (e.g. 'static', 'dynamic'). + * The hours during which this service or contact is available. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - protected $providerMobility; + protected $hoursAvailable; /** - * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. + * A pointer to another, somehow related product (or multiple products). * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $broker; + protected $isRelatedTo; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * A pointer to another, functionally similar product (or multiple products). * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $aggregateRating; + protected $isSimilarTo; /** - * A pointer to another, functionally similar product (or multiple products). + * An associated logo. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $isSimilarTo; + protected $logo; /** - * A means of accessing the service (e.g. a phone bank, a web site, a location, 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\Models\SchemaOrg\ServiceChannel|string + * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ - protected $availableChannel; + protected $offers; /** - * A slogan or motto associated with the item. + * The tangible thing generated by the service, e.g. a passport, permit, etc. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $slogan; + protected $produces; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $brand; + protected $provider; /** - * An associated logo. + * Indicates the mobility of a provided service (e.g. 'static', 'dynamic'). * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var string */ - protected $logo; + protected $providerMobility; /** - * The tangible thing generated by the service, e.g. a passport, permit, etc. + * A review of the item. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $produces; + protected $review; /** * The geographic area where the service is provided. * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ protected $serviceArea; /** - * The type of service being offered, e.g. veterans' benefits, emergency relief, etc. + * The audience eligible for this service. * * - * @var \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $serviceType; + protected $serviceAudience; /** - * The geographic area where a service or offered item is provided. + * The tangible thing generated by the service, e.g. a passport, permit, etc. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $areaServed; + protected $serviceOutput; /** - * A pointer to another, somehow related product (or multiple products). + * The type of service being offered, e.g. veterans' benefits, emergency relief, etc. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null */ - protected $isRelatedTo; + protected $serviceType; /** - * Indicates an OfferCatalog listing for this Organization, Person, or Service. + * A slogan or motto associated with the item. * * - * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @var string */ - protected $hasOfferCatalog; + protected $slogan; /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * Human-readable terms of service documentation. + * + * + * @var string */ - public function getReview() + protected $termsOfService; + + /** + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + */ + 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 + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getAward() + public function getAreaServed() { - return $this->award; + return $this->areaServed; } /** - * @param string $award + * @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 setAward($award) + public function setAreaServed($areaServed) { $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $award = self::checkTypes($award, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->award = $award; + $this->areaServed = $areaServed; } /** * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getServiceAudience() + public function getAudience() { - return $this->serviceAudience; + return $this->audience; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $serviceAudience + * @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 setServiceAudience($serviceAudience) + public function setAudience($audience) { $types = [ "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $serviceAudience = self::checkTypes($serviceAudience, $types); + $audience = self::checkTypes($audience, $types); - $this->serviceAudience = $serviceAudience; + $this->audience = $audience; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\ServiceChannel|string */ - public function getCategory() + public function getAvailableChannel() { - return $this->category; + return $this->availableChannel; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param \OpenActive\Models\SchemaOrg\ServiceChannel|string $availableChannel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setAvailableChannel($availableChannel) { $types = [ + "\OpenActive\Models\SchemaOrg\ServiceChannel", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", ]; - $category = self::checkTypes($category, $types); + $availableChannel = self::checkTypes($availableChannel, $types); - $this->category = $category; + $this->availableChannel = $availableChannel; } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return string */ - public function getHoursAvailable() + public function getAward() { - return $this->hoursAvailable; + return $this->award; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHoursAvailable($hoursAvailable) + public function setAward($award) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $hoursAvailable = self::checkTypes($hoursAvailable, $types); + $award = self::checkTypes($award, $types); - $this->hoursAvailable = $hoursAvailable; + $this->award = $award; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getAudience() + public function getBrand() { - return $this->audience; + return $this->brand; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param \OpenActive\Models\SchemaOrg\Brand|\OpenActive\Models\SchemaOrg\Organization|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setBrand($brand) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $audience = self::checkTypes($audience, $types); + $brand = self::checkTypes($brand, $types); - $this->audience = $audience; + $this->brand = $brand; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getBroker() + { + return $this->broker; + } + + /** + * @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 setBroker($broker) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $broker = self::checkTypes($broker, $types); + + $this->broker = $broker; + } + + /** + * @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\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getOffers() + public function getHasCertification() { - return $this->offers; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param \OpenActive\Models\SchemaOrg\Certification|string $hasCertification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $offers = self::checkTypes($offers, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->offers = $offers; + $this->hasCertification = $hasCertification; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - public function getServiceOutput() + public function getHasOfferCatalog() { - return $this->serviceOutput; + return $this->hasOfferCatalog; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $serviceOutput + * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceOutput($serviceOutput) + public function setHasOfferCatalog($hasOfferCatalog) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $serviceOutput = self::checkTypes($serviceOutput, $types); + $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); - $this->serviceOutput = $serviceOutput; + $this->hasOfferCatalog = $hasOfferCatalog; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - public function getProvider() + public function getHoursAvailable() { - return $this->provider; + return $this->hoursAvailable; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @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 setProvider($provider) + public function setHoursAvailable($hoursAvailable) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $provider = self::checkTypes($provider, $types); + $hoursAvailable = self::checkTypes($hoursAvailable, $types); - $this->provider = $provider; + $this->hoursAvailable = $hoursAvailable; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getTermsOfService() + public function getIsRelatedTo() { - return $this->termsOfService; + return $this->isRelatedTo; } /** - * @param string $termsOfService + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $isRelatedTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTermsOfService($termsOfService) + public function setIsRelatedTo($isRelatedTo) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $termsOfService = self::checkTypes($termsOfService, $types); + $isRelatedTo = self::checkTypes($isRelatedTo, $types); - $this->termsOfService = $termsOfService; + $this->isRelatedTo = $isRelatedTo; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getProviderMobility() + public function getIsSimilarTo() { - return $this->providerMobility; + return $this->isSimilarTo; } /** - * @param string $providerMobility + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $isSimilarTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProviderMobility($providerMobility) + public function setIsSimilarTo($isSimilarTo) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $providerMobility = self::checkTypes($providerMobility, $types); + $isSimilarTo = self::checkTypes($isSimilarTo, $types); - $this->providerMobility = $providerMobility; + $this->isSimilarTo = $isSimilarTo; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getBroker() + public function getLogo() { - return $this->broker; + return $this->logo; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker + * @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 setBroker($broker) + public function setLogo($logo) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $broker = self::checkTypes($broker, $types); + $logo = self::checkTypes($logo, $types); - $this->broker = $broker; + $this->logo = $logo; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ - public function getAggregateRating() + public function getOffers() { - return $this->aggregateRating; + return $this->offers; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @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 setAggregateRating($aggregateRating) + public function setOffers($offers) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", + "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $offers = self::checkTypes($offers, $types); - $this->aggregateRating = $aggregateRating; + $this->offers = $offers; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getIsSimilarTo() + public function getProduces() { - return $this->isSimilarTo; + return $this->produces; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isSimilarTo + * @param \OpenActive\Models\SchemaOrg\Thing|string $produces * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsSimilarTo($isSimilarTo) + public function setProduces($produces) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $isSimilarTo = self::checkTypes($isSimilarTo, $types); + $produces = self::checkTypes($produces, $types); - $this->isSimilarTo = $isSimilarTo; + $this->produces = $produces; } /** - * @return \OpenActive\Models\SchemaOrg\ServiceChannel|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAvailableChannel() + public function getProvider() { - return $this->availableChannel; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\ServiceChannel|string $availableChannel + * @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 setAvailableChannel($availableChannel) + public function setProvider($provider) { $types = [ - "\OpenActive\Models\SchemaOrg\ServiceChannel", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $availableChannel = self::checkTypes($availableChannel, $types); + $provider = self::checkTypes($provider, $types); - $this->availableChannel = $availableChannel; + $this->provider = $provider; } /** * @return string */ - public function getSlogan() + public function getProviderMobility() { - return $this->slogan; + return $this->providerMobility; } /** - * @param string $slogan + * @param string $providerMobility * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSlogan($slogan) + public function setProviderMobility($providerMobility) { $types = [ "string", ]; - $slogan = self::checkTypes($slogan, $types); + $providerMobility = self::checkTypes($providerMobility, $types); - $this->slogan = $slogan; + $this->providerMobility = $providerMobility; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getBrand() + public function getReview() { - return $this->brand; + return $this->review; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @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 setBrand($brand) + public function setReview($review) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $brand = self::checkTypes($brand, $types); + $review = self::checkTypes($review, $types); - $this->brand = $brand; + $this->review = $review; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\Place|string */ - public function getLogo() + public function getServiceArea() { - return $this->logo; + return $this->serviceArea; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @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 setLogo($logo) + public function setServiceArea($serviceArea) { $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $serviceArea = self::checkTypes($serviceArea, $types); - $this->logo = $logo; + $this->serviceArea = $serviceArea; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getProduces() + public function getServiceAudience() { - return $this->produces; + return $this->serviceAudience; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $produces + * @param \OpenActive\Models\SchemaOrg\Audience|string $serviceAudience * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProduces($produces) + public function setServiceAudience($serviceAudience) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $produces = self::checkTypes($produces, $types); + $serviceAudience = self::checkTypes($serviceAudience, $types); - $this->produces = $produces; + $this->serviceAudience = $serviceAudience; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getServiceArea() + public function getServiceOutput() { - return $this->serviceArea; + return $this->serviceOutput; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea + * @param \OpenActive\Models\SchemaOrg\Thing|string $serviceOutput * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceArea($serviceArea) + public function setServiceOutput($serviceOutput) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $serviceArea = self::checkTypes($serviceArea, $types); + $serviceOutput = self::checkTypes($serviceOutput, $types); - $this->serviceArea = $serviceArea; + $this->serviceOutput = $serviceOutput; } /** @@ -772,81 +836,51 @@ public function setServiceType($serviceType) } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place - */ - public function getAreaServed() - { - return $this->areaServed; - } - - /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setAreaServed($areaServed) - { - $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", - "string", - "\OpenActive\Models\SchemaOrg\Place", - ]; - - $areaServed = self::checkTypes($areaServed, $types); - - $this->areaServed = $areaServed; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return string */ - public function getIsRelatedTo() + public function getSlogan() { - return $this->isRelatedTo; + return $this->slogan; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsRelatedTo($isRelatedTo) + public function setSlogan($slogan) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $isRelatedTo = self::checkTypes($isRelatedTo, $types); + $slogan = self::checkTypes($slogan, $types); - $this->isRelatedTo = $isRelatedTo; + $this->slogan = $slogan; } /** - * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return string */ - public function getHasOfferCatalog() + public function getTermsOfService() { - return $this->hasOfferCatalog; + return $this->termsOfService; } /** - * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @param string $termsOfService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasOfferCatalog($hasOfferCatalog) + public function setTermsOfService($termsOfService) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + $termsOfService = self::checkTypes($termsOfService, $types); - $this->hasOfferCatalog = $hasOfferCatalog; + $this->termsOfService = $termsOfService; } } diff --git a/src/Models/SchemaOrg/ServiceChannel.php b/src/Models/SchemaOrg/ServiceChannel.php index cc65836f..339e8c5e 100644 --- a/src/Models/SchemaOrg/ServiceChannel.php +++ b/src/Models/SchemaOrg/ServiceChannel.php @@ -17,50 +17,50 @@ public static function getType() public static function fieldList() { $fields = [ - "providesService" => "providesService", - "serviceSmsNumber" => "serviceSmsNumber", - "servicePostalAddress" => "servicePostalAddress", - "serviceUrl" => "serviceUrl", - "servicePhone" => "servicePhone", "availableLanguage" => "availableLanguage", "processingTime" => "processingTime", + "providesService" => "providesService", "serviceLocation" => "serviceLocation", + "servicePhone" => "servicePhone", + "servicePostalAddress" => "servicePostalAddress", + "serviceSmsNumber" => "serviceSmsNumber", + "serviceUrl" => "serviceUrl", ]; return array_merge(parent::fieldList(), $fields); } /** - * The service provided by this channel. + * 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\Service|string + * @var \OpenActive\Models\SchemaOrg\Language|string */ - protected $providesService; + protected $availableLanguage; /** - * The number to access the service by text message. + * Estimated processing time for the service using this channel. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var DateInterval|string|null */ - protected $serviceSmsNumber; + protected $processingTime; /** - * The address for accessing the service by mail. + * The service provided by this channel. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string + * @var \OpenActive\Models\SchemaOrg\Service|string */ - protected $servicePostalAddress; + protected $providesService; /** - * The website to access the service. + * The location (e.g. civic structure, local business, etc.) where a person can go to access the service. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $serviceUrl; + protected $serviceLocation; /** * The phone number to use to access the service. @@ -71,126 +71,128 @@ public static function fieldList() { protected $servicePhone; /** - * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]] + * The address for accessing the service by mail. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $availableLanguage; + protected $servicePostalAddress; /** - * Estimated processing time for the service using this channel. + * The number to access the service by text message. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $processingTime; + protected $serviceSmsNumber; /** - * The location (e.g. civic structure, local business, etc.) where a person can go to access the service. + * The website to access the service. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $serviceLocation; + protected $serviceUrl; /** - * @return \OpenActive\Models\SchemaOrg\Service|string + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getProvidesService() + public function getAvailableLanguage() { - return $this->providesService; + return $this->availableLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Service|string $providesService + * @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 setProvidesService($providesService) + public function setAvailableLanguage($availableLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $providesService = self::checkTypes($providesService, $types); + $availableLanguage = self::checkTypes($availableLanguage, $types); - $this->providesService = $providesService; + $this->availableLanguage = $availableLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return DateInterval|string|null */ - public function getServiceSmsNumber() + public function getProcessingTime() { - return $this->serviceSmsNumber; + return $this->processingTime; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $serviceSmsNumber + * @param DateInterval|string|null $processingTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceSmsNumber($serviceSmsNumber) + public function setProcessingTime($processingTime) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "DateInterval", "string", + "null", ]; - $serviceSmsNumber = self::checkTypes($serviceSmsNumber, $types); + $processingTime = self::checkTypes($processingTime, $types); - $this->serviceSmsNumber = $serviceSmsNumber; + $this->processingTime = $processingTime; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string + * @return \OpenActive\Models\SchemaOrg\Service|string */ - public function getServicePostalAddress() + public function getProvidesService() { - return $this->servicePostalAddress; + return $this->providesService; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $servicePostalAddress + * @param \OpenActive\Models\SchemaOrg\Service|string $providesService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServicePostalAddress($servicePostalAddress) + public function setProvidesService($providesService) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $servicePostalAddress = self::checkTypes($servicePostalAddress, $types); + $providesService = self::checkTypes($providesService, $types); - $this->servicePostalAddress = $servicePostalAddress; + $this->providesService = $providesService; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getServiceUrl() + public function getServiceLocation() { - return $this->serviceUrl; + return $this->serviceLocation; } /** - * @param string $serviceUrl + * @param \OpenActive\Models\SchemaOrg\Place|string $serviceLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceUrl($serviceUrl) + public function setServiceLocation($serviceLocation) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $serviceUrl = self::checkTypes($serviceUrl, $types); + $serviceLocation = self::checkTypes($serviceLocation, $types); - $this->serviceUrl = $serviceUrl; + $this->serviceLocation = $serviceLocation; } /** @@ -219,79 +221,77 @@ public function setServicePhone($servicePhone) } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getAvailableLanguage() + public function getServicePostalAddress() { - return $this->availableLanguage; + return $this->servicePostalAddress; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $servicePostalAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableLanguage($availableLanguage) + public function setServicePostalAddress($servicePostalAddress) { $types = [ + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $availableLanguage = self::checkTypes($availableLanguage, $types); + $servicePostalAddress = self::checkTypes($servicePostalAddress, $types); - $this->availableLanguage = $availableLanguage; + $this->servicePostalAddress = $servicePostalAddress; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getProcessingTime() + public function getServiceSmsNumber() { - return $this->processingTime; + return $this->serviceSmsNumber; } /** - * @param DateInterval|string|null $processingTime + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $serviceSmsNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProcessingTime($processingTime) + public function setServiceSmsNumber($serviceSmsNumber) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", - "null", ]; - $processingTime = self::checkTypes($processingTime, $types); + $serviceSmsNumber = self::checkTypes($serviceSmsNumber, $types); - $this->processingTime = $processingTime; + $this->serviceSmsNumber = $serviceSmsNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getServiceLocation() + public function getServiceUrl() { - return $this->serviceLocation; + return $this->serviceUrl; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $serviceLocation + * @param string $serviceUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceLocation($serviceLocation) + public function setServiceUrl($serviceUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $serviceLocation = self::checkTypes($serviceLocation, $types); + $serviceUrl = self::checkTypes($serviceUrl, $types); - $this->serviceLocation = $serviceLocation; + $this->serviceUrl = $serviceUrl; } } diff --git a/src/Models/SchemaOrg/ServicePeriod.php b/src/Models/SchemaOrg/ServicePeriod.php new file mode 100644 index 00000000..6a0192b1 --- /dev/null +++ b/src/Models/SchemaOrg/ServicePeriod.php @@ -0,0 +1,131 @@ + "businessDays", + "cutoffTime" => "cutoffTime", + "duration" => "duration", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * Days of the week when the merchant typically operates, indicated via opening hours markup. + * + * + * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|\OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string|null + */ + protected $businessDays; + + /** + * Order cutoff time allows merchants to describe the time after which they will no longer process orders received on that day. For orders processed after cutoff time, one day gets added to the delivery time estimate. This property is expected to be most typically used via the [[ShippingRateSettings]] publication pattern. The time is indicated using the ISO-8601 Time format, e.g. "23:30:00-05:00" would represent 6:30 pm Eastern Standard Time (EST) which is 5 hours behind Coordinated Universal Time (UTC). + * + * + * @var string|null + */ + protected $cutoffTime; + + /** + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). + * + * + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + */ + protected $duration; + + /** + * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|\OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string|null + */ + public function getBusinessDays() + { + return $this->businessDays; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|\OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string|null $businessDays + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setBusinessDays($businessDays) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\DayOfWeek", + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", + "string", + "null", + ]; + + $businessDays = self::checkTypes($businessDays, $types); + + $this->businessDays = $businessDays; + } + + /** + * @return string|null + */ + public function getCutoffTime() + { + return $this->cutoffTime; + } + + /** + * @param string|null $cutoffTime + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCutoffTime($cutoffTime) + { + $types = [ + "Time", + "null", + ]; + + $cutoffTime = self::checkTypes($cutoffTime, $types); + + $this->cutoffTime = $cutoffTime; + } + + /** + * @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 = [ + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + "null", + ]; + + $duration = self::checkTypes($duration, $types); + + $this->duration = $duration; + } + +} diff --git a/src/Models/SchemaOrg/ShippingConditions.php b/src/Models/SchemaOrg/ShippingConditions.php new file mode 100644 index 00000000..33a3745b --- /dev/null +++ b/src/Models/SchemaOrg/ShippingConditions.php @@ -0,0 +1,444 @@ + "depth", + "doesNotShip" => "doesNotShip", + "height" => "height", + "numItems" => "numItems", + "orderValue" => "orderValue", + "seasonalOverride" => "seasonalOverride", + "shippingDestination" => "shippingDestination", + "shippingOrigin" => "shippingOrigin", + "shippingRate" => "shippingRate", + "transitTime" => "transitTime", + "weight" => "weight", + "width" => "width", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * The depth of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $depth; + + /** + * Indicates when shipping to a particular [[shippingDestination]] is not available. + * + * + * @var bool|null + */ + protected $doesNotShip; + + /** + * The height of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $height; + + /** + * Limits the number of items being shipped for which these conditions apply. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $numItems; + + /** + * Minimum and maximum order value for which these shipping conditions are valid. + * + * + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + */ + protected $orderValue; + + /** + * Limited period during which these shipping conditions apply. + * + * + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + */ + protected $seasonalOverride; + + /** + * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + protected $shippingDestination; + + /** + * Indicates the origin of a shipment, i.e. where it should be coming from. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + protected $shippingOrigin; + + /** + * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. + * + * + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\ShippingRateSettings|string + */ + protected $shippingRate; + + /** + * The typical delay the order has been sent for delivery and the goods reach the final customer. + * + * In the context of [[ShippingDeliveryTime]], use the [[QuantitativeValue]]. Typical properties: minValue, maxValue, unitCode (d for DAY). + * + * In the context of [[ShippingConditions]], use the [[ServicePeriod]]. It has a duration (as a [[QuantitativeValue]]) and also business days and a cut-off time. + * + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string + */ + protected $transitTime; + + /** + * The weight of the product or person. + * + * + * @var \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $weight; + + /** + * The width of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $width; + + /** + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getDepth() + { + return $this->depth; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDepth($depth) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $depth = self::checkTypes($depth, $types); + + $this->depth = $depth; + } + + /** + * @return bool|null + */ + public function getDoesNotShip() + { + return $this->doesNotShip; + } + + /** + * @param bool|null $doesNotShip + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDoesNotShip($doesNotShip) + { + $types = [ + "bool", + "null", + ]; + + $doesNotShip = self::checkTypes($doesNotShip, $types); + + $this->doesNotShip = $doesNotShip; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getHeight() + { + return $this->height; + } + + /** + * @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 setHeight($height) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $height = self::checkTypes($height, $types); + + $this->height = $height; + } + + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getNumItems() + { + return $this->numItems; + } + + /** + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numItems + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setNumItems($numItems) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $numItems = self::checkTypes($numItems, $types); + + $this->numItems = $numItems; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + */ + public function getOrderValue() + { + return $this->orderValue; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $orderValue + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setOrderValue($orderValue) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", + ]; + + $orderValue = self::checkTypes($orderValue, $types); + + $this->orderValue = $orderValue; + } + + /** + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + */ + public function getSeasonalOverride() + { + return $this->seasonalOverride; + } + + /** + * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $seasonalOverride + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setSeasonalOverride($seasonalOverride) + { + $types = [ + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", + "string", + ]; + + $seasonalOverride = self::checkTypes($seasonalOverride, $types); + + $this->seasonalOverride = $seasonalOverride; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + public function getShippingDestination() + { + return $this->shippingDestination; + } + + /** + * @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 setShippingDestination($shippingDestination) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedRegion", + "string", + ]; + + $shippingDestination = self::checkTypes($shippingDestination, $types); + + $this->shippingDestination = $shippingDestination; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + public function getShippingOrigin() + { + return $this->shippingOrigin; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingOrigin + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingOrigin($shippingOrigin) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedRegion", + "string", + ]; + + $shippingOrigin = self::checkTypes($shippingOrigin, $types); + + $this->shippingOrigin = $shippingOrigin; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\ShippingRateSettings|string + */ + public function getShippingRate() + { + return $this->shippingRate; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\ShippingRateSettings|string $shippingRate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingRate($shippingRate) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\ShippingRateSettings", + "string", + ]; + + $shippingRate = self::checkTypes($shippingRate, $types); + + $this->shippingRate = $shippingRate; + } + + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string + */ + public function getTransitTime() + { + return $this->transitTime; + } + + /** + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string $transitTime + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTransitTime($transitTime) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\ServicePeriod", + "string", + ]; + + $transitTime = self::checkTypes($transitTime, $types); + + $this->transitTime = $transitTime; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getWeight() + { + return $this->weight; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setWeight($weight) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Mass", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $weight = self::checkTypes($weight, $types); + + $this->weight = $weight; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getWidth() + { + return $this->width; + } + + /** + * @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 setWidth($width) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $width = self::checkTypes($width, $types); + + $this->width = $width; + } + +} diff --git a/src/Models/SchemaOrg/ShippingDeliveryTime.php b/src/Models/SchemaOrg/ShippingDeliveryTime.php index b0fe0b81..5ad959bf 100644 --- a/src/Models/SchemaOrg/ShippingDeliveryTime.php +++ b/src/Models/SchemaOrg/ShippingDeliveryTime.php @@ -17,99 +17,110 @@ public static function getType() public static function fieldList() { $fields = [ - "transitTime" => "transitTime", "businessDays" => "businessDays", - "handlingTime" => "handlingTime", "cutoffTime" => "cutoffTime", + "handlingTime" => "handlingTime", + "transitTime" => "transitTime", ]; return array_merge(parent::fieldList(), $fields); } /** - * The typical delay the order has been sent for delivery and the goods reach the final customer. Typical properties: minValue, maxValue, unitCode (d for DAY). + * Days of the week when the merchant typically operates, indicated via opening hours markup. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|\OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string|null */ - protected $transitTime; + protected $businessDays; /** - * Days of the week when the merchant typically operates, indicated via opening hours markup. + * Order cutoff time allows merchants to describe the time after which they will no longer process orders received on that day. For orders processed after cutoff time, one day gets added to the delivery time estimate. This property is expected to be most typically used via the [[ShippingRateSettings]] publication pattern. The time is indicated using the ISO-8601 Time format, e.g. "23:30:00-05:00" would represent 6:30 pm Eastern Standard Time (EST) which is 5 hours behind Coordinated Universal Time (UTC). * * - * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @var string|null */ - protected $businessDays; + protected $cutoffTime; /** - * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup. Typical properties: minValue, maxValue, unitCode (d for DAY). This is by common convention assumed to mean business days (if a unitCode is used, coded as "d"), i.e. only counting days when the business normally operates. + * The typical delay 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. + * + * In the context of [[ShippingDeliveryTime]], Typical properties: minValue, maxValue, unitCode (d for DAY). This is by common convention assumed to mean business days (if a unitCode is used, coded as "d"), i.e. only counting days when the business normally operates. + * + * In the context of [[ShippingService]], use the [[ServicePeriod]] format, that contains the same information in a structured form, with cut-off time, business days and duration. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string */ protected $handlingTime; /** - * Order cutoff time allows merchants to describe the time after which they will no longer process orders received on that day. For orders processed after cutoff time, one day gets added to the delivery time estimate. This property is expected to be most typically used via the [[ShippingRateSettings]] publication pattern. The time is indicated using the ISO-8601 Time format, e.g. "23:30:00-05:00" would represent 6:30 pm Eastern Standard Time (EST) which is 5 hours behind Coordinated Universal Time (UTC). + * The typical delay the order has been sent for delivery and the goods reach the final customer. + * + * In the context of [[ShippingDeliveryTime]], use the [[QuantitativeValue]]. Typical properties: minValue, maxValue, unitCode (d for DAY). + * + * In the context of [[ShippingConditions]], use the [[ServicePeriod]]. It has a duration (as a [[QuantitativeValue]]) and also business days and a cut-off time. + * * * - * @var string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string */ - protected $cutoffTime; + protected $transitTime; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|\OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string|null */ - public function getTransitTime() + public function getBusinessDays() { - return $this->transitTime; + return $this->businessDays; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $transitTime + * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|\OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string|null $businessDays * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTransitTime($transitTime) + public function setBusinessDays($businessDays) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\DayOfWeek", + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", + "null", ]; - $transitTime = self::checkTypes($transitTime, $types); + $businessDays = self::checkTypes($businessDays, $types); - $this->transitTime = $transitTime; + $this->businessDays = $businessDays; } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return string|null */ - public function getBusinessDays() + public function getCutoffTime() { - return $this->businessDays; + return $this->cutoffTime; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $businessDays + * @param string|null $cutoffTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBusinessDays($businessDays) + public function setCutoffTime($cutoffTime) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", - "string", + "Time", + "null", ]; - $businessDays = self::checkTypes($businessDays, $types); + $cutoffTime = self::checkTypes($cutoffTime, $types); - $this->businessDays = $businessDays; + $this->cutoffTime = $cutoffTime; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string */ public function getHandlingTime() { @@ -117,7 +128,7 @@ public function getHandlingTime() } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $handlingTime + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string $handlingTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -125,6 +136,7 @@ public function setHandlingTime($handlingTime) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\ServicePeriod", "string", ]; @@ -134,28 +146,29 @@ public function setHandlingTime($handlingTime) } /** - * @return string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string */ - public function getCutoffTime() + public function getTransitTime() { - return $this->cutoffTime; + return $this->transitTime; } /** - * @param string|null $cutoffTime + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string $transitTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCutoffTime($cutoffTime) + public function setTransitTime($transitTime) { $types = [ - "Time", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\ServicePeriod", + "string", ]; - $cutoffTime = self::checkTypes($cutoffTime, $types); + $transitTime = self::checkTypes($transitTime, $types); - $this->cutoffTime = $cutoffTime; + $this->transitTime = $transitTime; } } diff --git a/src/Models/SchemaOrg/ShippingRateSettings.php b/src/Models/SchemaOrg/ShippingRateSettings.php index 8e06f2fc..973cca98 100644 --- a/src/Models/SchemaOrg/ShippingRateSettings.php +++ b/src/Models/SchemaOrg/ShippingRateSettings.php @@ -17,25 +17,20 @@ public static function getType() public static function fieldList() { $fields = [ - "shippingDestination" => "shippingDestination", "doesNotShip" => "doesNotShip", - "shippingLabel" => "shippingLabel", + "freeShippingThreshold" => "freeShippingThreshold", "isUnlabelledFallback" => "isUnlabelledFallback", + "minimumOrderValue" => "minimumOrderValue", + "orderPercentage" => "orderPercentage", + "shippingDestination" => "shippingDestination", + "shippingLabel" => "shippingLabel", "shippingRate" => "shippingRate", - "freeShippingThreshold" => "freeShippingThreshold", + "weightPercentage" => "weightPercentage", ]; return array_merge(parent::fieldList(), $fields); } - /** - * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges. - * - * - * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string - */ - protected $shippingDestination; - /** * Indicates when shipping to a particular [[shippingDestination]] is not available. * @@ -45,12 +40,12 @@ public static function fieldList() { protected $doesNotShip; /** - * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). + * A monetary value above (or at) which the shipping rate becomes free. Intended to be used via an [[OfferShippingDetails]] with [[shippingSettingsLink]] matching this [[ShippingRateSettings]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $shippingLabel; + protected $freeShippingThreshold; /** * This can be marked 'true' to indicate that some published [[DeliveryTimeSettings]] or [[ShippingRateSettings]] are intended to apply to all [[OfferShippingDetails]] published by the same merchant, when referenced by a [[shippingSettingsLink]] in those settings. It is not meaningful to use a 'true' value for this property alongside a transitTimeLabel (for [[DeliveryTimeSettings]]) or shippingLabel (for [[ShippingRateSettings]]), since this property is for use with unlabelled settings. @@ -61,45 +56,52 @@ public static function fieldList() { protected $isUnlabelledFallback; /** - * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. + * The minimum order value required for this shipping rate to apply. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - protected $shippingRate; + protected $minimumOrderValue; /** - * A monetary value above which (or equal to) the shipping rate becomes free. Intended to be used via an [[OfferShippingDetails]] with [[shippingSettingsLink]] matching this [[ShippingRateSettings]]. + * Value representing the fraction of the value of the order that is charged as shipping cost. Example: 0.10 would mean shipping rate is 10% of the total order value. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string + * @var Number|null */ - protected $freeShippingThreshold; + protected $orderPercentage; /** - * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - public function getShippingDestination() - { - return $this->shippingDestination; - } + protected $shippingDestination; /** - * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingDestination - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). + * + * + * @var string */ - public function setShippingDestination($shippingDestination) - { - $types = [ - "\OpenActive\Models\SchemaOrg\DefinedRegion", - "string", - ]; + protected $shippingLabel; - $shippingDestination = self::checkTypes($shippingDestination, $types); + /** + * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. + * + * + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\ShippingRateSettings|string + */ + protected $shippingRate; - $this->shippingDestination = $shippingDestination; - } + /** + * Value representing the fraction of the weight that is used to compute the shipping price. Example: 0.10 and a shipping weight of 15kg would add $1.5 to the order price, where the $ is the currency of the order. + * + * + * @var Number|null + */ + protected $weightPercentage; /** * @return bool|null @@ -127,27 +129,29 @@ public function setDoesNotShip($doesNotShip) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getShippingLabel() + public function getFreeShippingThreshold() { - return $this->shippingLabel; + return $this->freeShippingThreshold; } /** - * @param string $shippingLabel + * @param \OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string $freeShippingThreshold * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingLabel($shippingLabel) + public function setFreeShippingThreshold($freeShippingThreshold) { $types = [ + "\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $shippingLabel = self::checkTypes($shippingLabel, $types); + $freeShippingThreshold = self::checkTypes($freeShippingThreshold, $types); - $this->shippingLabel = $shippingLabel; + $this->freeShippingThreshold = $freeShippingThreshold; } /** @@ -176,7 +180,109 @@ public function setIsUnlabelledFallback($isUnlabelledFallback) } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null + */ + public function getMinimumOrderValue() + { + return $this->minimumOrderValue; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null $minimumOrderValue + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMinimumOrderValue($minimumOrderValue) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "Number", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", + "null", + ]; + + $minimumOrderValue = self::checkTypes($minimumOrderValue, $types); + + $this->minimumOrderValue = $minimumOrderValue; + } + + /** + * @return Number|null + */ + public function getOrderPercentage() + { + return $this->orderPercentage; + } + + /** + * @param Number|null $orderPercentage + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setOrderPercentage($orderPercentage) + { + $types = [ + "Number", + "null", + ]; + + $orderPercentage = self::checkTypes($orderPercentage, $types); + + $this->orderPercentage = $orderPercentage; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + public function getShippingDestination() + { + return $this->shippingDestination; + } + + /** + * @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 setShippingDestination($shippingDestination) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DefinedRegion", + "string", + ]; + + $shippingDestination = self::checkTypes($shippingDestination, $types); + + $this->shippingDestination = $shippingDestination; + } + + /** + * @return string + */ + public function getShippingLabel() + { + return $this->shippingLabel; + } + + /** + * @param string $shippingLabel + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingLabel($shippingLabel) + { + $types = [ + "string", + ]; + + $shippingLabel = self::checkTypes($shippingLabel, $types); + + $this->shippingLabel = $shippingLabel; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\ShippingRateSettings|string */ public function getShippingRate() { @@ -184,7 +290,7 @@ public function getShippingRate() } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\ShippingRateSettings|string $shippingRate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -192,6 +298,7 @@ public function setShippingRate($shippingRate) { $types = [ "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\ShippingRateSettings", "string", ]; @@ -201,29 +308,28 @@ public function setShippingRate($shippingRate) } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string + * @return Number|null */ - public function getFreeShippingThreshold() + public function getWeightPercentage() { - return $this->freeShippingThreshold; + return $this->weightPercentage; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string $freeShippingThreshold + * @param Number|null $weightPercentage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFreeShippingThreshold($freeShippingThreshold) + public function setWeightPercentage($weightPercentage) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification", - "string", + "Number", + "null", ]; - $freeShippingThreshold = self::checkTypes($freeShippingThreshold, $types); + $weightPercentage = self::checkTypes($weightPercentage, $types); - $this->freeShippingThreshold = $freeShippingThreshold; + $this->weightPercentage = $weightPercentage; } } diff --git a/src/Models/SchemaOrg/ShippingService.php b/src/Models/SchemaOrg/ShippingService.php new file mode 100644 index 00000000..3938352d --- /dev/null +++ b/src/Models/SchemaOrg/ShippingService.php @@ -0,0 +1,166 @@ + "fulfillmentType", + "handlingTime" => "handlingTime", + "shippingConditions" => "shippingConditions", + "validForMemberTier" => "validForMemberTier", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * Type of fulfillment applicable to the [[ShippingService]]. + * + * + * @var \OpenActive\Enums\SchemaOrg\FulfillmentTypeEnumeration|null + */ + protected $fulfillmentType; + + /** + * 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. + * + * In the context of [[ShippingDeliveryTime]], Typical properties: minValue, maxValue, unitCode (d for DAY). This is by common convention assumed to mean business days (if a unitCode is used, coded as "d"), i.e. only counting days when the business normally operates. + * + * In the context of [[ShippingService]], use the [[ServicePeriod]] format, that contains the same information in a structured form, with cut-off time, business days and duration. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string + */ + protected $handlingTime; + + /** + * The conditions (constraints, price) applicable to the [[ShippingService]]. + * + * + * @var \OpenActive\Models\SchemaOrg\ShippingConditions|string + */ + protected $shippingConditions; + + /** + * The membership program tier(s) an Offer (or a PriceSpecification, OfferShippingDetails, or MerchantReturnPolicy under an Offer) is valid for. + * + * + * @var \OpenActive\Models\SchemaOrg\MemberProgramTier|string + */ + protected $validForMemberTier; + + /** + * @return \OpenActive\Enums\SchemaOrg\FulfillmentTypeEnumeration|null + */ + public function getFulfillmentType() + { + return $this->fulfillmentType; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\FulfillmentTypeEnumeration|null $fulfillmentType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setFulfillmentType($fulfillmentType) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\FulfillmentTypeEnumeration", + "null", + ]; + + $fulfillmentType = self::checkTypes($fulfillmentType, $types); + + $this->fulfillmentType = $fulfillmentType; + } + + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string + */ + public function getHandlingTime() + { + return $this->handlingTime; + } + + /** + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\ServicePeriod|string $handlingTime + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHandlingTime($handlingTime) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\ServicePeriod", + "string", + ]; + + $handlingTime = self::checkTypes($handlingTime, $types); + + $this->handlingTime = $handlingTime; + } + + /** + * @return \OpenActive\Models\SchemaOrg\ShippingConditions|string + */ + public function getShippingConditions() + { + return $this->shippingConditions; + } + + /** + * @param \OpenActive\Models\SchemaOrg\ShippingConditions|string $shippingConditions + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingConditions($shippingConditions) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ShippingConditions", + "string", + ]; + + $shippingConditions = self::checkTypes($shippingConditions, $types); + + $this->shippingConditions = $shippingConditions; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MemberProgramTier|string + */ + public function getValidForMemberTier() + { + return $this->validForMemberTier; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MemberProgramTier|string $validForMemberTier + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValidForMemberTier($validForMemberTier) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MemberProgramTier", + "string", + ]; + + $validForMemberTier = self::checkTypes($validForMemberTier, $types); + + $this->validForMemberTier = $validForMemberTier; + } + +} diff --git a/src/Models/SchemaOrg/SingleFamilyResidence.php b/src/Models/SchemaOrg/SingleFamilyResidence.php index d250af9d..0f370ac8 100644 --- a/src/Models/SchemaOrg/SingleFamilyResidence.php +++ b/src/Models/SchemaOrg/SingleFamilyResidence.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/SizeSpecification.php b/src/Models/SchemaOrg/SizeSpecification.php index 405d7111..96393141 100644 --- a/src/Models/SchemaOrg/SizeSpecification.php +++ b/src/Models/SchemaOrg/SizeSpecification.php @@ -17,216 +17,216 @@ public static function getType() public static function fieldList() { $fields = [ - "sizeGroup" => "sizeGroup", - "suggestedMeasurement" => "suggestedMeasurement", - "suggestedAge" => "suggestedAge", "hasMeasurement" => "hasMeasurement", + "sizeGroup" => "sizeGroup", "sizeSystem" => "sizeSystem", + "suggestedAge" => "suggestedAge", "suggestedGender" => "suggestedGender", + "suggestedMeasurement" => "suggestedMeasurement", ]; return array_merge(parent::fieldList(), $fields); } /** - * The size group (also known as "size type") for a product's size. Size groups are common in the fashion industry to define size segments and suggested audiences for wearable products. Multiple values can be combined, for example "men's big and tall", "petite maternity" or "regular" + * A measurement of an item, For example, the inseam of pants, the wheel size of a bicycle, the gauge of a screw, or the carbon footprint measured for certification by an authority. Usually an exact measurement, but can also be a range of measurements for adjustable products, for example belts and ski bindings. * * - * @var string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $sizeGroup; + protected $hasMeasurement; /** - * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. + * The size group (also known as "size type") for a product's size. Size groups are common in the fashion industry to define size segments and suggested audiences for wearable products. Multiple values can be combined, for example "men's big and tall", "petite maternity" or "regular". * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|string|null */ - protected $suggestedMeasurement; + protected $sizeGroup; /** - * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers. + * The size system used to identify a product's size. Typically either a standard (for example, "GS1" or "ISO-EN13402"), country code (for example "US" or "JP"), or a measuring system (for example "Metric" or "Imperial"). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|string|null */ - protected $suggestedAge; + protected $sizeSystem; /** - * 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 age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $hasMeasurement; + protected $suggestedAge; /** - * The size system used to identify a product's size. Typically either a standard (for example, "GS1" or "ISO-EN13402"), country code (for example "US" or "JP"), or a measuring system (for example "Metric" or "Imperial"). + * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". * * - * @var string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null + * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - protected $sizeSystem; + protected $suggestedGender; /** - * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". + * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. * * - * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $suggestedGender; + protected $suggestedMeasurement; /** - * @return string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSizeGroup() + public function getHasMeasurement() { - return $this->sizeGroup; + return $this->hasMeasurement; } /** - * @param string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null $sizeGroup + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSizeGroup($sizeGroup) + public function setHasMeasurement($hasMeasurement) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration", - "null", ]; - $sizeGroup = self::checkTypes($sizeGroup, $types); + $hasMeasurement = self::checkTypes($hasMeasurement, $types); - $this->sizeGroup = $sizeGroup; + $this->hasMeasurement = $hasMeasurement; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|string|null */ - public function getSuggestedMeasurement() + public function getSizeGroup() { - return $this->suggestedMeasurement; + return $this->sizeGroup; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement + * @param \OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|string|null $sizeGroup * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMeasurement($suggestedMeasurement) + public function setSizeGroup($sizeGroup) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration", "string", + "null", ]; - $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); + $sizeGroup = self::checkTypes($sizeGroup, $types); - $this->suggestedMeasurement = $suggestedMeasurement; + $this->sizeGroup = $sizeGroup; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|string|null */ - public function getSuggestedAge() + public function getSizeSystem() { - return $this->suggestedAge; + return $this->sizeSystem; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge + * @param \OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|string|null $sizeSystem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedAge($suggestedAge) + public function setSizeSystem($sizeSystem) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration", "string", + "null", ]; - $suggestedAge = self::checkTypes($suggestedAge, $types); + $sizeSystem = self::checkTypes($sizeSystem, $types); - $this->suggestedAge = $suggestedAge; + $this->sizeSystem = $sizeSystem; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHasMeasurement() + public function getSuggestedAge() { - return $this->hasMeasurement; + return $this->suggestedAge; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMeasurement($hasMeasurement) + public function setSuggestedAge($suggestedAge) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $hasMeasurement = self::checkTypes($hasMeasurement, $types); + $suggestedAge = self::checkTypes($suggestedAge, $types); - $this->hasMeasurement = $hasMeasurement; + $this->suggestedAge = $suggestedAge; } /** - * @return string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null + * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - public function getSizeSystem() + public function getSuggestedGender() { - return $this->sizeSystem; + return $this->suggestedGender; } /** - * @param string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null $sizeSystem + * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSizeSystem($sizeSystem) + public function setSuggestedGender($suggestedGender) { $types = [ + "\OpenActive\Enums\SchemaOrg\GenderType", "string", - "\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration", "null", ]; - $sizeSystem = self::checkTypes($sizeSystem, $types); + $suggestedGender = self::checkTypes($suggestedGender, $types); - $this->sizeSystem = $sizeSystem; + $this->suggestedGender = $suggestedGender; } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSuggestedGender() + public function getSuggestedMeasurement() { - return $this->suggestedGender; + return $this->suggestedMeasurement; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedGender($suggestedGender) + public function setSuggestedMeasurement($suggestedMeasurement) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $suggestedGender = self::checkTypes($suggestedGender, $types); + $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); - $this->suggestedGender = $suggestedGender; + $this->suggestedMeasurement = $suggestedMeasurement; } } diff --git a/src/Models/SchemaOrg/SkiResort.php b/src/Models/SchemaOrg/SkiResort.php index 674b5d41..ccdea578 100644 --- a/src/Models/SchemaOrg/SkiResort.php +++ b/src/Models/SchemaOrg/SkiResort.php @@ -5,7 +5,7 @@ /** * */ -class SkiResort extends \OpenActive\Models\SchemaOrg\SportsActivityLocation +class SkiResort extends \OpenActive\Models\SchemaOrg\Resort { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/SoftwareApplication.php b/src/Models/SchemaOrg/SoftwareApplication.php index 6c6eef7d..87bf570f 100644 --- a/src/Models/SchemaOrg/SoftwareApplication.php +++ b/src/Models/SchemaOrg/SoftwareApplication.php @@ -17,170 +17,179 @@ public static function getType() public static function fieldList() { $fields = [ + "applicationCategory" => "applicationCategory", + "applicationSubCategory" => "applicationSubCategory", + "applicationSuite" => "applicationSuite", + "availableOnDevice" => "availableOnDevice", + "countriesNotSupported" => "countriesNotSupported", "countriesSupported" => "countriesSupported", + "device" => "device", + "downloadUrl" => "downloadUrl", + "featureList" => "featureList", + "fileSize" => "fileSize", "installUrl" => "installUrl", - "operatingSystem" => "operatingSystem", "memoryRequirements" => "memoryRequirements", - "softwareVersion" => "softwareVersion", - "storageRequirements" => "storageRequirements", - "softwareHelp" => "softwareHelp", - "applicationSubCategory" => "applicationSubCategory", - "downloadUrl" => "downloadUrl", - "applicationCategory" => "applicationCategory", - "countriesNotSupported" => "countriesNotSupported", - "softwareRequirements" => "softwareRequirements", - "softwareAddOn" => "softwareAddOn", - "applicationSuite" => "applicationSuite", - "requirements" => "requirements", + "operatingSystem" => "operatingSystem", "permissions" => "permissions", "processorRequirements" => "processorRequirements", - "screenshot" => "screenshot", - "featureList" => "featureList", "releaseNotes" => "releaseNotes", + "requirements" => "requirements", + "runtimePlatform" => "runtimePlatform", + "screenshot" => "screenshot", + "softwareAddOn" => "softwareAddOn", + "softwareHelp" => "softwareHelp", + "softwareRequirements" => "softwareRequirements", + "softwareVersion" => "softwareVersion", + "storageRequirements" => "storageRequirements", "supportingData" => "supportingData", - "fileSize" => "fileSize", - "device" => "device", - "availableOnDevice" => "availableOnDevice", ]; return array_merge(parent::fieldList(), $fields); } /** - * Countries for which the application is supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. + * Type of software application, e.g. 'Game, Multimedia'. * * * @var string */ - protected $countriesSupported; + protected $applicationCategory; /** - * URL at which the app may be installed, if different from the URL of the item. + * Subcategory of the application, e.g. 'Arcade Game'. * * * @var string */ - protected $installUrl; + protected $applicationSubCategory; /** - * Operating systems supported (Windows 7, OSX 10.6, Android 1.6). + * The name of the application suite to which the application belongs (e.g. Excel belongs to Office). * * * @var string */ - protected $operatingSystem; + protected $applicationSuite; /** - * Minimum memory requirements. + * Device required to run the application. Used in cases where a specific make/model is required to run the application. * * * @var string */ - protected $memoryRequirements; + protected $availableOnDevice; /** - * Version of the software instance. + * Countries for which the application is not supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. * * * @var string */ - protected $softwareVersion; + protected $countriesNotSupported; /** - * Storage requirements (free space required). + * Countries for which the application is supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. * * * @var string */ - protected $storageRequirements; + protected $countriesSupported; /** - * Software application help. + * Device required to run the application. Used in cases where a specific make/model is required to run the application. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string */ - protected $softwareHelp; + protected $device; /** - * Subcategory of the application, e.g. 'Arcade Game'. + * If the file can be downloaded, URL to download the binary. * * * @var string */ - protected $applicationSubCategory; + protected $downloadUrl; /** - * If the file can be downloaded, URL to download the binary. + * Features or modules provided by this application (and possibly required by other applications). * * * @var string */ - protected $downloadUrl; + protected $featureList; /** - * Type of software application, e.g. 'Game, Multimedia'. + * Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed. * * * @var string */ - protected $applicationCategory; + protected $fileSize; /** - * Countries for which the application is not supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. + * URL at which the app may be installed, if different from the URL of the item. * * * @var string */ - protected $countriesNotSupported; + protected $installUrl; /** - * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (Examples: DirectX, Java or .NET runtime). + * Minimum memory requirements. * * * @var string */ - protected $softwareRequirements; + protected $memoryRequirements; /** - * Additional content for a software application. + * Operating systems supported (Windows 7, OS X 10.6, Android 1.6). * * - * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @var \OpenActive\Models\SchemaOrg\OperatingSystem|string */ - protected $softwareAddOn; + protected $operatingSystem; /** - * The name of the application suite to which the application belongs (e.g. Excel belongs to Office). + * Permission(s) required to run the app (for example, a mobile app may require full internet access or may run only on wifi). * * * @var string */ - protected $applicationSuite; + protected $permissions; /** - * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (Examples: DirectX, Java or .NET runtime). + * Processor architecture required to run the application (e.g. IA64). * * * @var string */ - protected $requirements; + protected $processorRequirements; /** - * Permission(s) required to run the app (for example, a mobile app may require full internet access or may run only on wifi). + * Description of what changed in this version. * * * @var string */ - protected $permissions; + protected $releaseNotes; /** - * Processor architecture required to run the application (e.g. IA64). + * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (examples: DirectX, Java or .NET runtime). * * * @var string */ - protected $processorRequirements; + protected $requirements; + + /** + * Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0). + * + * + * @var \OpenActive\Models\SchemaOrg\RuntimePlatform|string + */ + protected $runtimePlatform; /** * A link to a screenshot image of the app. @@ -191,461 +200,485 @@ public static function fieldList() { protected $screenshot; /** - * Features or modules provided by this application (and possibly required by other applications). + * Additional content for a software application. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - protected $featureList; + protected $softwareAddOn; /** - * Description of what changed in this version. + * Software application help. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $releaseNotes; + protected $softwareHelp; /** - * Supporting data for a SoftwareApplication. + * Component dependency requirements for application. This includes runtime environments and shared libraries that are not included in the application distribution package, but required to run the application (examples: DirectX, Java or .NET runtime). * * - * @var \OpenActive\Models\SchemaOrg\DataFeed|string + * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - protected $supportingData; + protected $softwareRequirements; /** - * Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed. + * Version of the software instance. * * * @var string */ - protected $fileSize; + protected $softwareVersion; /** - * Device required to run the application. Used in cases where a specific make/model is required to run the application. + * Storage requirements (free space required). * * * @var string */ - protected $device; + protected $storageRequirements; /** - * Device required to run the application. Used in cases where a specific make/model is required to run the application. + * Supporting data for a SoftwareApplication. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DataFeed|string */ - protected $availableOnDevice; + protected $supportingData; /** * @return string */ - public function getCountriesSupported() + public function getApplicationCategory() { - return $this->countriesSupported; + return $this->applicationCategory; } /** - * @param string $countriesSupported + * @param string $applicationCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountriesSupported($countriesSupported) + public function setApplicationCategory($applicationCategory) { $types = [ "string", ]; - $countriesSupported = self::checkTypes($countriesSupported, $types); + $applicationCategory = self::checkTypes($applicationCategory, $types); - $this->countriesSupported = $countriesSupported; + $this->applicationCategory = $applicationCategory; } /** * @return string */ - public function getInstallUrl() + public function getApplicationSubCategory() { - return $this->installUrl; + return $this->applicationSubCategory; } /** - * @param string $installUrl + * @param string $applicationSubCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInstallUrl($installUrl) + public function setApplicationSubCategory($applicationSubCategory) { $types = [ "string", ]; - $installUrl = self::checkTypes($installUrl, $types); + $applicationSubCategory = self::checkTypes($applicationSubCategory, $types); - $this->installUrl = $installUrl; + $this->applicationSubCategory = $applicationSubCategory; } /** * @return string */ - public function getOperatingSystem() + public function getApplicationSuite() { - return $this->operatingSystem; + return $this->applicationSuite; } /** - * @param string $operatingSystem + * @param string $applicationSuite * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOperatingSystem($operatingSystem) + public function setApplicationSuite($applicationSuite) { $types = [ "string", ]; - $operatingSystem = self::checkTypes($operatingSystem, $types); + $applicationSuite = self::checkTypes($applicationSuite, $types); - $this->operatingSystem = $operatingSystem; + $this->applicationSuite = $applicationSuite; } /** * @return string */ - public function getMemoryRequirements() + public function getAvailableOnDevice() { - return $this->memoryRequirements; + return $this->availableOnDevice; } /** - * @param string $memoryRequirements + * @param string $availableOnDevice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMemoryRequirements($memoryRequirements) + public function setAvailableOnDevice($availableOnDevice) { $types = [ "string", ]; - $memoryRequirements = self::checkTypes($memoryRequirements, $types); + $availableOnDevice = self::checkTypes($availableOnDevice, $types); - $this->memoryRequirements = $memoryRequirements; + $this->availableOnDevice = $availableOnDevice; } /** * @return string */ - public function getSoftwareVersion() + public function getCountriesNotSupported() { - return $this->softwareVersion; + return $this->countriesNotSupported; } /** - * @param string $softwareVersion + * @param string $countriesNotSupported * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareVersion($softwareVersion) + public function setCountriesNotSupported($countriesNotSupported) { $types = [ "string", ]; - $softwareVersion = self::checkTypes($softwareVersion, $types); + $countriesNotSupported = self::checkTypes($countriesNotSupported, $types); - $this->softwareVersion = $softwareVersion; + $this->countriesNotSupported = $countriesNotSupported; } /** * @return string */ - public function getStorageRequirements() + public function getCountriesSupported() { - return $this->storageRequirements; + return $this->countriesSupported; } /** - * @param string $storageRequirements + * @param string $countriesSupported * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStorageRequirements($storageRequirements) + public function setCountriesSupported($countriesSupported) { $types = [ "string", ]; - $storageRequirements = self::checkTypes($storageRequirements, $types); + $countriesSupported = self::checkTypes($countriesSupported, $types); - $this->storageRequirements = $storageRequirements; + $this->countriesSupported = $countriesSupported; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getSoftwareHelp() + public function getDevice() { - return $this->softwareHelp; + return $this->device; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $softwareHelp + * @param string $device * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareHelp($softwareHelp) + public function setDevice($device) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $softwareHelp = self::checkTypes($softwareHelp, $types); + $device = self::checkTypes($device, $types); - $this->softwareHelp = $softwareHelp; + $this->device = $device; } /** * @return string */ - public function getApplicationSubCategory() + public function getDownloadUrl() { - return $this->applicationSubCategory; + return $this->downloadUrl; } /** - * @param string $applicationSubCategory + * @param string $downloadUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationSubCategory($applicationSubCategory) + public function setDownloadUrl($downloadUrl) { $types = [ "string", ]; - $applicationSubCategory = self::checkTypes($applicationSubCategory, $types); + $downloadUrl = self::checkTypes($downloadUrl, $types); - $this->applicationSubCategory = $applicationSubCategory; + $this->downloadUrl = $downloadUrl; } /** * @return string */ - public function getDownloadUrl() + public function getFeatureList() { - return $this->downloadUrl; + return $this->featureList; } /** - * @param string $downloadUrl + * @param string $featureList * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDownloadUrl($downloadUrl) + public function setFeatureList($featureList) { $types = [ "string", ]; - $downloadUrl = self::checkTypes($downloadUrl, $types); + $featureList = self::checkTypes($featureList, $types); - $this->downloadUrl = $downloadUrl; + $this->featureList = $featureList; } /** * @return string */ - public function getApplicationCategory() + public function getFileSize() { - return $this->applicationCategory; + return $this->fileSize; } /** - * @param string $applicationCategory + * @param string $fileSize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationCategory($applicationCategory) + public function setFileSize($fileSize) { $types = [ "string", ]; - $applicationCategory = self::checkTypes($applicationCategory, $types); + $fileSize = self::checkTypes($fileSize, $types); - $this->applicationCategory = $applicationCategory; + $this->fileSize = $fileSize; } /** * @return string */ - public function getCountriesNotSupported() + public function getInstallUrl() { - return $this->countriesNotSupported; + return $this->installUrl; } /** - * @param string $countriesNotSupported + * @param string $installUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountriesNotSupported($countriesNotSupported) + public function setInstallUrl($installUrl) { $types = [ "string", ]; - $countriesNotSupported = self::checkTypes($countriesNotSupported, $types); + $installUrl = self::checkTypes($installUrl, $types); - $this->countriesNotSupported = $countriesNotSupported; + $this->installUrl = $installUrl; } /** * @return string */ - public function getSoftwareRequirements() + public function getMemoryRequirements() { - return $this->softwareRequirements; + return $this->memoryRequirements; } /** - * @param string $softwareRequirements + * @param string $memoryRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareRequirements($softwareRequirements) + public function setMemoryRequirements($memoryRequirements) { $types = [ "string", ]; - $softwareRequirements = self::checkTypes($softwareRequirements, $types); + $memoryRequirements = self::checkTypes($memoryRequirements, $types); - $this->softwareRequirements = $softwareRequirements; + $this->memoryRequirements = $memoryRequirements; } /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @return \OpenActive\Models\SchemaOrg\OperatingSystem|string */ - public function getSoftwareAddOn() + public function getOperatingSystem() { - return $this->softwareAddOn; + return $this->operatingSystem; } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $softwareAddOn + * @param \OpenActive\Models\SchemaOrg\OperatingSystem|string $operatingSystem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareAddOn($softwareAddOn) + public function setOperatingSystem($operatingSystem) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", + "\OpenActive\Models\SchemaOrg\OperatingSystem", "string", ]; - $softwareAddOn = self::checkTypes($softwareAddOn, $types); + $operatingSystem = self::checkTypes($operatingSystem, $types); - $this->softwareAddOn = $softwareAddOn; + $this->operatingSystem = $operatingSystem; } /** * @return string */ - public function getApplicationSuite() + public function getPermissions() { - return $this->applicationSuite; + return $this->permissions; } /** - * @param string $applicationSuite + * @param string $permissions * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationSuite($applicationSuite) + public function setPermissions($permissions) { $types = [ "string", ]; - $applicationSuite = self::checkTypes($applicationSuite, $types); + $permissions = self::checkTypes($permissions, $types); - $this->applicationSuite = $applicationSuite; + $this->permissions = $permissions; } /** * @return string */ - public function getRequirements() + public function getProcessorRequirements() { - return $this->requirements; + return $this->processorRequirements; } /** - * @param string $requirements + * @param string $processorRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequirements($requirements) + public function setProcessorRequirements($processorRequirements) { $types = [ "string", ]; - $requirements = self::checkTypes($requirements, $types); + $processorRequirements = self::checkTypes($processorRequirements, $types); - $this->requirements = $requirements; + $this->processorRequirements = $processorRequirements; } /** * @return string */ - public function getPermissions() + public function getReleaseNotes() { - return $this->permissions; + return $this->releaseNotes; } /** - * @param string $permissions + * @param string $releaseNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPermissions($permissions) + public function setReleaseNotes($releaseNotes) { $types = [ "string", ]; - $permissions = self::checkTypes($permissions, $types); + $releaseNotes = self::checkTypes($releaseNotes, $types); - $this->permissions = $permissions; + $this->releaseNotes = $releaseNotes; } /** * @return string */ - public function getProcessorRequirements() + public function getRequirements() { - return $this->processorRequirements; + return $this->requirements; } /** - * @param string $processorRequirements + * @param string $requirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProcessorRequirements($processorRequirements) + public function setRequirements($requirements) { $types = [ "string", ]; - $processorRequirements = self::checkTypes($processorRequirements, $types); + $requirements = self::checkTypes($requirements, $types); - $this->processorRequirements = $processorRequirements; + $this->requirements = $requirements; + } + + /** + * @return \OpenActive\Models\SchemaOrg\RuntimePlatform|string + */ + public function getRuntimePlatform() + { + return $this->runtimePlatform; + } + + /** + * @param \OpenActive\Models\SchemaOrg\RuntimePlatform|string $runtimePlatform + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setRuntimePlatform($runtimePlatform) + { + $types = [ + "\OpenActive\Models\SchemaOrg\RuntimePlatform", + "string", + ]; + + $runtimePlatform = self::checkTypes($runtimePlatform, $types); + + $this->runtimePlatform = $runtimePlatform; } /** @@ -674,148 +707,151 @@ public function setScreenshot($screenshot) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - public function getFeatureList() + public function getSoftwareAddOn() { - return $this->featureList; + return $this->softwareAddOn; } /** - * @param string $featureList + * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $softwareAddOn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFeatureList($featureList) + public function setSoftwareAddOn($softwareAddOn) { $types = [ + "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $featureList = self::checkTypes($featureList, $types); + $softwareAddOn = self::checkTypes($softwareAddOn, $types); - $this->featureList = $featureList; + $this->softwareAddOn = $softwareAddOn; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getReleaseNotes() + public function getSoftwareHelp() { - return $this->releaseNotes; + return $this->softwareHelp; } /** - * @param string $releaseNotes + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $softwareHelp * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReleaseNotes($releaseNotes) + public function setSoftwareHelp($softwareHelp) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $releaseNotes = self::checkTypes($releaseNotes, $types); + $softwareHelp = self::checkTypes($softwareHelp, $types); - $this->releaseNotes = $releaseNotes; + $this->softwareHelp = $softwareHelp; } /** - * @return \OpenActive\Models\SchemaOrg\DataFeed|string + * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - public function getSupportingData() + public function getSoftwareRequirements() { - return $this->supportingData; + return $this->softwareRequirements; } /** - * @param \OpenActive\Models\SchemaOrg\DataFeed|string $supportingData + * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $softwareRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupportingData($supportingData) + public function setSoftwareRequirements($softwareRequirements) { $types = [ - "\OpenActive\Models\SchemaOrg\DataFeed", + "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $supportingData = self::checkTypes($supportingData, $types); + $softwareRequirements = self::checkTypes($softwareRequirements, $types); - $this->supportingData = $supportingData; + $this->softwareRequirements = $softwareRequirements; } /** * @return string */ - public function getFileSize() + public function getSoftwareVersion() { - return $this->fileSize; + return $this->softwareVersion; } /** - * @param string $fileSize + * @param string $softwareVersion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFileSize($fileSize) + public function setSoftwareVersion($softwareVersion) { $types = [ "string", ]; - $fileSize = self::checkTypes($fileSize, $types); + $softwareVersion = self::checkTypes($softwareVersion, $types); - $this->fileSize = $fileSize; + $this->softwareVersion = $softwareVersion; } /** * @return string */ - public function getDevice() + public function getStorageRequirements() { - return $this->device; + return $this->storageRequirements; } /** - * @param string $device + * @param string $storageRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDevice($device) + public function setStorageRequirements($storageRequirements) { $types = [ "string", ]; - $device = self::checkTypes($device, $types); + $storageRequirements = self::checkTypes($storageRequirements, $types); - $this->device = $device; + $this->storageRequirements = $storageRequirements; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DataFeed|string */ - public function getAvailableOnDevice() + public function getSupportingData() { - return $this->availableOnDevice; + return $this->supportingData; } /** - * @param string $availableOnDevice + * @param \OpenActive\Models\SchemaOrg\DataFeed|string $supportingData * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableOnDevice($availableOnDevice) + public function setSupportingData($supportingData) { $types = [ + "\OpenActive\Models\SchemaOrg\DataFeed", "string", ]; - $availableOnDevice = self::checkTypes($availableOnDevice, $types); + $supportingData = self::checkTypes($supportingData, $types); - $this->availableOnDevice = $availableOnDevice; + $this->supportingData = $supportingData; } } diff --git a/src/Models/SchemaOrg/SoftwareSourceCode.php b/src/Models/SchemaOrg/SoftwareSourceCode.php index 2bf0a0af..0953738b 100644 --- a/src/Models/SchemaOrg/SoftwareSourceCode.php +++ b/src/Models/SchemaOrg/SoftwareSourceCode.php @@ -17,25 +17,25 @@ public static function getType() public static function fieldList() { $fields = [ + "codeRepository" => "codeRepository", + "codeSampleType" => "codeSampleType", "programmingLanguage" => "programmingLanguage", - "sampleType" => "sampleType", - "runtimePlatform" => "runtimePlatform", "runtime" => "runtime", + "runtimePlatform" => "runtimePlatform", + "sampleType" => "sampleType", "targetProduct" => "targetProduct", - "codeRepository" => "codeRepository", - "codeSampleType" => "codeSampleType", ]; return array_merge(parent::fieldList(), $fields); } /** - * The computer programming language. + * Link to the repository where the un-compiled, human readable code and related code is located (SVN, GitHub, CodePlex). * * - * @var string|\OpenActive\Models\SchemaOrg\ComputerLanguage + * @var string */ - protected $programmingLanguage; + protected $codeRepository; /** * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. @@ -43,18 +43,18 @@ public static function fieldList() { * * @var string */ - protected $sampleType; + protected $codeSampleType; /** - * Runtime platform or script interpreter dependencies (Example - Java v1, Python2.3, .Net Framework 3.0). + * The computer programming language. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ComputerLanguage|string */ - protected $runtimePlatform; + protected $programmingLanguage; /** - * Runtime platform or script interpreter dependencies (Example - Java v1, Python2.3, .Net Framework 3.0). + * Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0). * * * @var string @@ -62,100 +62,100 @@ public static function fieldList() { protected $runtime; /** - * Target Operating System / Product to which the code applies. If applies to several versions, just the product name can be used. + * Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0). * * - * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @var \OpenActive\Models\SchemaOrg\RuntimePlatform|string */ - protected $targetProduct; + protected $runtimePlatform; /** - * Link to the repository where the un-compiled, human readable code and related code is located (SVN, github, CodePlex). + * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. * * * @var string */ - protected $codeRepository; + protected $sampleType; /** - * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. + * Target Operating System / Product to which the code applies. If applies to several versions, just the product name can be used. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - protected $codeSampleType; + protected $targetProduct; /** - * @return string|\OpenActive\Models\SchemaOrg\ComputerLanguage + * @return string */ - public function getProgrammingLanguage() + public function getCodeRepository() { - return $this->programmingLanguage; + return $this->codeRepository; } /** - * @param string|\OpenActive\Models\SchemaOrg\ComputerLanguage $programmingLanguage + * @param string $codeRepository * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgrammingLanguage($programmingLanguage) + public function setCodeRepository($codeRepository) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\ComputerLanguage", ]; - $programmingLanguage = self::checkTypes($programmingLanguage, $types); + $codeRepository = self::checkTypes($codeRepository, $types); - $this->programmingLanguage = $programmingLanguage; + $this->codeRepository = $codeRepository; } /** * @return string */ - public function getSampleType() + public function getCodeSampleType() { - return $this->sampleType; + return $this->codeSampleType; } /** - * @param string $sampleType + * @param string $codeSampleType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSampleType($sampleType) + public function setCodeSampleType($codeSampleType) { $types = [ "string", ]; - $sampleType = self::checkTypes($sampleType, $types); + $codeSampleType = self::checkTypes($codeSampleType, $types); - $this->sampleType = $sampleType; + $this->codeSampleType = $codeSampleType; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ComputerLanguage|string */ - public function getRuntimePlatform() + public function getProgrammingLanguage() { - return $this->runtimePlatform; + return $this->programmingLanguage; } /** - * @param string $runtimePlatform + * @param \OpenActive\Models\SchemaOrg\ComputerLanguage|string $programmingLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRuntimePlatform($runtimePlatform) + public function setProgrammingLanguage($programmingLanguage) { $types = [ + "\OpenActive\Models\SchemaOrg\ComputerLanguage", "string", ]; - $runtimePlatform = self::checkTypes($runtimePlatform, $types); + $programmingLanguage = self::checkTypes($programmingLanguage, $types); - $this->runtimePlatform = $runtimePlatform; + $this->programmingLanguage = $programmingLanguage; } /** @@ -183,76 +183,77 @@ public function setRuntime($runtime) } /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @return \OpenActive\Models\SchemaOrg\RuntimePlatform|string */ - public function getTargetProduct() + public function getRuntimePlatform() { - return $this->targetProduct; + return $this->runtimePlatform; } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $targetProduct + * @param \OpenActive\Models\SchemaOrg\RuntimePlatform|string $runtimePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTargetProduct($targetProduct) + public function setRuntimePlatform($runtimePlatform) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", + "\OpenActive\Models\SchemaOrg\RuntimePlatform", "string", ]; - $targetProduct = self::checkTypes($targetProduct, $types); + $runtimePlatform = self::checkTypes($runtimePlatform, $types); - $this->targetProduct = $targetProduct; + $this->runtimePlatform = $runtimePlatform; } /** * @return string */ - public function getCodeRepository() + public function getSampleType() { - return $this->codeRepository; + return $this->sampleType; } /** - * @param string $codeRepository + * @param string $sampleType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCodeRepository($codeRepository) + public function setSampleType($sampleType) { $types = [ "string", ]; - $codeRepository = self::checkTypes($codeRepository, $types); + $sampleType = self::checkTypes($sampleType, $types); - $this->codeRepository = $codeRepository; + $this->sampleType = $sampleType; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - public function getCodeSampleType() + public function getTargetProduct() { - return $this->codeSampleType; + return $this->targetProduct; } /** - * @param string $codeSampleType + * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $targetProduct * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCodeSampleType($codeSampleType) + public function setTargetProduct($targetProduct) { $types = [ + "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $codeSampleType = self::checkTypes($codeSampleType, $types); + $targetProduct = self::checkTypes($targetProduct, $types); - $this->codeSampleType = $codeSampleType; + $this->targetProduct = $targetProduct; } } diff --git a/src/Models/SchemaOrg/SpecialAnnouncement.php b/src/Models/SchemaOrg/SpecialAnnouncement.php index e51824dd..d82e91ec 100644 --- a/src/Models/SchemaOrg/SpecialAnnouncement.php +++ b/src/Models/SchemaOrg/SpecialAnnouncement.php @@ -17,18 +17,18 @@ public static function getType() public static function fieldList() { $fields = [ - "governmentBenefitsInfo" => "governmentBenefitsInfo", + "announcementLocation" => "announcementLocation", "category" => "category", + "datePosted" => "datePosted", + "diseasePreventionInfo" => "diseasePreventionInfo", "diseaseSpreadStatistics" => "diseaseSpreadStatistics", "gettingTestedInfo" => "gettingTestedInfo", - "announcementLocation" => "announcementLocation", - "travelBans" => "travelBans", - "diseasePreventionInfo" => "diseasePreventionInfo", - "publicTransportClosuresInfo" => "publicTransportClosuresInfo", - "schoolClosuresInfo" => "schoolClosuresInfo", - "datePosted" => "datePosted", + "governmentBenefitsInfo" => "governmentBenefitsInfo", "newsUpdatesAndGuidelines" => "newsUpdatesAndGuidelines", + "publicTransportClosuresInfo" => "publicTransportClosuresInfo", "quarantineGuidelines" => "quarantineGuidelines", + "schoolClosuresInfo" => "schoolClosuresInfo", + "travelBans" => "travelBans", "webFeed" => "webFeed", ]; @@ -36,102 +36,102 @@ public static function fieldList() { } /** - * governmentBenefitsInfo provides information about government benefits associated with a SpecialAnnouncement. + * Indicates a specific [[CivicStructure]] or [[LocalBusiness]] associated with the SpecialAnnouncement. For example, a specific testing facility or business with special opening hours. For a larger geographic region like a quarantine of an entire region, use [[spatialCoverage]]. * * - * @var \OpenActive\Models\SchemaOrg\GovernmentService|string + * @var \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string */ - protected $governmentBenefitsInfo; + protected $announcementLocation; /** * 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; /** - * Statistical information about the spread of a disease, either as [[WebContent]], or - * described directly as a [[Dataset]], or the specific [[Observation]]s in the dataset. When a [[WebContent]] URL is - * provided, the page indicated might also contain more such markup. + * Publication date of an online listing. * * - * @var \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string + * @var Date|DateTime|null */ - protected $diseaseSpreadStatistics; + protected $datePosted; /** - * Information about getting tested (for a [[MedicalCondition]]), e.g. in the context of a pandemic. + * Information about disease prevention. * * - * @var \OpenActive\Models\SchemaOrg\WebContent|string + * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $gettingTestedInfo; + protected $diseasePreventionInfo; /** - * Indicates a specific [[CivicStructure]] or [[LocalBusiness]] associated with the SpecialAnnouncement. For example, a specific testing facility or business with special opening hours. For a larger geographic region like a quarantine of an entire region, use [[spatialCoverage]]. + * Statistical information about the spread of a disease, either as [[WebContent]], or + * described directly as a [[Dataset]], or the specific [[Observation]]s in the dataset. When a [[WebContent]] URL is + * provided, the page indicated might also contain more such markup. * * - * @var \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string + * @var \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $announcementLocation; + protected $diseaseSpreadStatistics; /** - * Information about travel bans, e.g. in the context of a pandemic. + * Information about getting tested (for a [[MedicalCondition]]), e.g. in the context of a pandemic. * * * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $travelBans; + protected $gettingTestedInfo; /** - * Information about disease prevention. + * governmentBenefitsInfo provides information about government benefits associated with a SpecialAnnouncement. * * - * @var string|\OpenActive\Models\SchemaOrg\WebContent + * @var \OpenActive\Models\SchemaOrg\GovernmentService|string */ - protected $diseasePreventionInfo; + protected $governmentBenefitsInfo; /** - * Information about public transport closures. + * Indicates a page with news updates and guidelines. This could often be (but is not required to be) the main page containing [[SpecialAnnouncement]] markup on a site. * * * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $publicTransportClosuresInfo; + protected $newsUpdatesAndGuidelines; /** - * Information about school closures. + * Information about public transport closures. * * - * @var \OpenActive\Models\SchemaOrg\WebContent|string + * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $schoolClosuresInfo; + protected $publicTransportClosuresInfo; /** - * Publication date of an online listing. + * Guidelines about quarantine rules, e.g. in the context of a pandemic. * * - * @var Date|DateTime|null + * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $datePosted; + protected $quarantineGuidelines; /** - * Indicates a page with news updates and guidelines. This could often be (but is not required to be) the main page containing [[SpecialAnnouncement]] markup on a site. + * Information about school closures. * * * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $newsUpdatesAndGuidelines; + protected $schoolClosuresInfo; /** - * Guidelines about quarantine rules, e.g. in the context of a pandemic. + * Information about travel bans, e.g. in the context of a pandemic. * * * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $quarantineGuidelines; + protected $travelBans; /** * The URL for a feed, e.g. associated with a podcast series, blog, or series of date-stamped updates. This is usually RSS or Atom. @@ -142,32 +142,33 @@ public static function fieldList() { protected $webFeed; /** - * @return \OpenActive\Models\SchemaOrg\GovernmentService|string + * @return \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string */ - public function getGovernmentBenefitsInfo() + public function getAnnouncementLocation() { - return $this->governmentBenefitsInfo; + return $this->announcementLocation; } /** - * @param \OpenActive\Models\SchemaOrg\GovernmentService|string $governmentBenefitsInfo + * @param \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string $announcementLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGovernmentBenefitsInfo($governmentBenefitsInfo) + public function setAnnouncementLocation($announcementLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\GovernmentService", + "\OpenActive\Models\SchemaOrg\CivicStructure", + "\OpenActive\Models\SchemaOrg\LocalBusiness", "string", ]; - $governmentBenefitsInfo = self::checkTypes($governmentBenefitsInfo, $types); + $announcementLocation = self::checkTypes($announcementLocation, $types); - $this->governmentBenefitsInfo = $governmentBenefitsInfo; + $this->announcementLocation = $announcementLocation; } /** - * @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() { @@ -175,17 +176,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", ]; @@ -195,257 +196,256 @@ public function setCategory($category) } /** - * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string + * @return Date|DateTime|null */ - public function getDiseaseSpreadStatistics() + public function getDatePosted() { - return $this->diseaseSpreadStatistics; + return $this->datePosted; } /** - * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string $diseaseSpreadStatistics + * @param Date|DateTime|null $datePosted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiseaseSpreadStatistics($diseaseSpreadStatistics) + public function setDatePosted($datePosted) { $types = [ - "\OpenActive\Models\SchemaOrg\Dataset", - "\OpenActive\Models\SchemaOrg\Observation", - "\OpenActive\Models\SchemaOrg\WebContent", - "string", + "Date", + "DateTime", + "null", ]; - $diseaseSpreadStatistics = self::checkTypes($diseaseSpreadStatistics, $types); + $datePosted = self::checkTypes($datePosted, $types); - $this->diseaseSpreadStatistics = $diseaseSpreadStatistics; + $this->datePosted = $datePosted; } /** - * @return \OpenActive\Models\SchemaOrg\WebContent|string + * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getGettingTestedInfo() + public function getDiseasePreventionInfo() { - return $this->gettingTestedInfo; + return $this->diseasePreventionInfo; } /** - * @param \OpenActive\Models\SchemaOrg\WebContent|string $gettingTestedInfo + * @param string|\OpenActive\Models\SchemaOrg\WebContent $diseasePreventionInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGettingTestedInfo($gettingTestedInfo) + public function setDiseasePreventionInfo($diseasePreventionInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $gettingTestedInfo = self::checkTypes($gettingTestedInfo, $types); + $diseasePreventionInfo = self::checkTypes($diseasePreventionInfo, $types); - $this->gettingTestedInfo = $gettingTestedInfo; + $this->diseasePreventionInfo = $diseasePreventionInfo; } /** - * @return \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string + * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getAnnouncementLocation() + public function getDiseaseSpreadStatistics() { - return $this->announcementLocation; + return $this->diseaseSpreadStatistics; } /** - * @param \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string $announcementLocation + * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|string|\OpenActive\Models\SchemaOrg\WebContent $diseaseSpreadStatistics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAnnouncementLocation($announcementLocation) + public function setDiseaseSpreadStatistics($diseaseSpreadStatistics) { $types = [ - "\OpenActive\Models\SchemaOrg\CivicStructure", - "\OpenActive\Models\SchemaOrg\LocalBusiness", + "\OpenActive\Models\SchemaOrg\Dataset", + "\OpenActive\Models\SchemaOrg\Observation", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $announcementLocation = self::checkTypes($announcementLocation, $types); + $diseaseSpreadStatistics = self::checkTypes($diseaseSpreadStatistics, $types); - $this->announcementLocation = $announcementLocation; + $this->diseaseSpreadStatistics = $diseaseSpreadStatistics; } /** * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getTravelBans() + public function getGettingTestedInfo() { - return $this->travelBans; + return $this->gettingTestedInfo; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $travelBans + * @param string|\OpenActive\Models\SchemaOrg\WebContent $gettingTestedInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTravelBans($travelBans) + public function setGettingTestedInfo($gettingTestedInfo) { $types = [ "string", "\OpenActive\Models\SchemaOrg\WebContent", ]; - $travelBans = self::checkTypes($travelBans, $types); + $gettingTestedInfo = self::checkTypes($gettingTestedInfo, $types); - $this->travelBans = $travelBans; + $this->gettingTestedInfo = $gettingTestedInfo; } /** - * @return string|\OpenActive\Models\SchemaOrg\WebContent + * @return \OpenActive\Models\SchemaOrg\GovernmentService|string */ - public function getDiseasePreventionInfo() + public function getGovernmentBenefitsInfo() { - return $this->diseasePreventionInfo; + return $this->governmentBenefitsInfo; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $diseasePreventionInfo + * @param \OpenActive\Models\SchemaOrg\GovernmentService|string $governmentBenefitsInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiseasePreventionInfo($diseasePreventionInfo) + public function setGovernmentBenefitsInfo($governmentBenefitsInfo) { $types = [ + "\OpenActive\Models\SchemaOrg\GovernmentService", "string", - "\OpenActive\Models\SchemaOrg\WebContent", ]; - $diseasePreventionInfo = self::checkTypes($diseasePreventionInfo, $types); + $governmentBenefitsInfo = self::checkTypes($governmentBenefitsInfo, $types); - $this->diseasePreventionInfo = $diseasePreventionInfo; + $this->governmentBenefitsInfo = $governmentBenefitsInfo; } /** * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getPublicTransportClosuresInfo() + public function getNewsUpdatesAndGuidelines() { - return $this->publicTransportClosuresInfo; + return $this->newsUpdatesAndGuidelines; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $publicTransportClosuresInfo + * @param string|\OpenActive\Models\SchemaOrg\WebContent $newsUpdatesAndGuidelines * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublicTransportClosuresInfo($publicTransportClosuresInfo) + public function setNewsUpdatesAndGuidelines($newsUpdatesAndGuidelines) { $types = [ "string", "\OpenActive\Models\SchemaOrg\WebContent", ]; - $publicTransportClosuresInfo = self::checkTypes($publicTransportClosuresInfo, $types); + $newsUpdatesAndGuidelines = self::checkTypes($newsUpdatesAndGuidelines, $types); - $this->publicTransportClosuresInfo = $publicTransportClosuresInfo; + $this->newsUpdatesAndGuidelines = $newsUpdatesAndGuidelines; } /** - * @return \OpenActive\Models\SchemaOrg\WebContent|string + * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getSchoolClosuresInfo() + public function getPublicTransportClosuresInfo() { - return $this->schoolClosuresInfo; + return $this->publicTransportClosuresInfo; } /** - * @param \OpenActive\Models\SchemaOrg\WebContent|string $schoolClosuresInfo + * @param string|\OpenActive\Models\SchemaOrg\WebContent $publicTransportClosuresInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSchoolClosuresInfo($schoolClosuresInfo) + public function setPublicTransportClosuresInfo($publicTransportClosuresInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $schoolClosuresInfo = self::checkTypes($schoolClosuresInfo, $types); + $publicTransportClosuresInfo = self::checkTypes($publicTransportClosuresInfo, $types); - $this->schoolClosuresInfo = $schoolClosuresInfo; + $this->publicTransportClosuresInfo = $publicTransportClosuresInfo; } /** - * @return Date|DateTime|null + * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getDatePosted() + public function getQuarantineGuidelines() { - return $this->datePosted; + return $this->quarantineGuidelines; } /** - * @param Date|DateTime|null $datePosted + * @param string|\OpenActive\Models\SchemaOrg\WebContent $quarantineGuidelines * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePosted($datePosted) + public function setQuarantineGuidelines($quarantineGuidelines) { $types = [ - "Date", - "DateTime", - "null", + "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $datePosted = self::checkTypes($datePosted, $types); + $quarantineGuidelines = self::checkTypes($quarantineGuidelines, $types); - $this->datePosted = $datePosted; + $this->quarantineGuidelines = $quarantineGuidelines; } /** * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getNewsUpdatesAndGuidelines() + public function getSchoolClosuresInfo() { - return $this->newsUpdatesAndGuidelines; + return $this->schoolClosuresInfo; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $newsUpdatesAndGuidelines + * @param string|\OpenActive\Models\SchemaOrg\WebContent $schoolClosuresInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNewsUpdatesAndGuidelines($newsUpdatesAndGuidelines) + public function setSchoolClosuresInfo($schoolClosuresInfo) { $types = [ "string", "\OpenActive\Models\SchemaOrg\WebContent", ]; - $newsUpdatesAndGuidelines = self::checkTypes($newsUpdatesAndGuidelines, $types); + $schoolClosuresInfo = self::checkTypes($schoolClosuresInfo, $types); - $this->newsUpdatesAndGuidelines = $newsUpdatesAndGuidelines; + $this->schoolClosuresInfo = $schoolClosuresInfo; } /** * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getQuarantineGuidelines() + public function getTravelBans() { - return $this->quarantineGuidelines; + return $this->travelBans; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $quarantineGuidelines + * @param string|\OpenActive\Models\SchemaOrg\WebContent $travelBans * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setQuarantineGuidelines($quarantineGuidelines) + public function setTravelBans($travelBans) { $types = [ "string", "\OpenActive\Models\SchemaOrg\WebContent", ]; - $quarantineGuidelines = self::checkTypes($quarantineGuidelines, $types); + $travelBans = self::checkTypes($travelBans, $types); - $this->quarantineGuidelines = $quarantineGuidelines; + $this->travelBans = $travelBans; } /** diff --git a/src/Models/SchemaOrg/SportsEvent.php b/src/Models/SchemaOrg/SportsEvent.php index 4bed306f..d5252318 100644 --- a/src/Models/SchemaOrg/SportsEvent.php +++ b/src/Models/SchemaOrg/SportsEvent.php @@ -17,9 +17,10 @@ public static function getType() public static function fieldList() { $fields = [ - "homeTeam" => "homeTeam", "awayTeam" => "awayTeam", "competitor" => "competitor", + "homeTeam" => "homeTeam", + "referee" => "referee", "sport" => "sport", ]; @@ -27,28 +28,36 @@ public static function fieldList() { } /** - * The home team in a sports event. + * The away team in a sports event. * * * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - protected $homeTeam; + protected $awayTeam; /** - * The away team in a sports event. + * A competitor in a sports event. * * - * @var \OpenActive\Models\SchemaOrg\SportsTeam|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - protected $awayTeam; + protected $competitor; /** - * A competitor in a sports event. + * The home team in a sports event. * * * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - protected $competitor; + protected $homeTeam; + + /** + * An official who watches a game or match closely to enforce the rules and arbitrate on matters arising from the play such as referees, umpires or judges. The name of the effective function can vary according to the sport. + * + * + * @var \OpenActive\Models\SchemaOrg\Person|string + */ + protected $referee; /** * A type of sport (e.g. Baseball). @@ -61,17 +70,17 @@ public static function fieldList() { /** * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function getHomeTeam() + public function getAwayTeam() { - return $this->homeTeam; + return $this->awayTeam; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $homeTeam + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $awayTeam * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHomeTeam($homeTeam) + public function setAwayTeam($awayTeam) { $types = [ "\OpenActive\Models\SchemaOrg\Person", @@ -79,51 +88,51 @@ public function setHomeTeam($homeTeam) "string", ]; - $homeTeam = self::checkTypes($homeTeam, $types); + $awayTeam = self::checkTypes($awayTeam, $types); - $this->homeTeam = $homeTeam; + $this->awayTeam = $awayTeam; } /** - * @return \OpenActive\Models\SchemaOrg\SportsTeam|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function getAwayTeam() + public function getCompetitor() { - return $this->awayTeam; + return $this->competitor; } /** - * @param \OpenActive\Models\SchemaOrg\SportsTeam|\OpenActive\Models\SchemaOrg\Person|string $awayTeam + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $competitor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwayTeam($awayTeam) + public function setCompetitor($competitor) { $types = [ - "\OpenActive\Models\SchemaOrg\SportsTeam", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\SportsTeam", "string", ]; - $awayTeam = self::checkTypes($awayTeam, $types); + $competitor = self::checkTypes($competitor, $types); - $this->awayTeam = $awayTeam; + $this->competitor = $competitor; } /** * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function getCompetitor() + public function getHomeTeam() { - return $this->competitor; + return $this->homeTeam; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $competitor + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $homeTeam * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCompetitor($competitor) + public function setHomeTeam($homeTeam) { $types = [ "\OpenActive\Models\SchemaOrg\Person", @@ -131,9 +140,34 @@ public function setCompetitor($competitor) "string", ]; - $competitor = self::checkTypes($competitor, $types); + $homeTeam = self::checkTypes($homeTeam, $types); - $this->competitor = $competitor; + $this->homeTeam = $homeTeam; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Person|string + */ + public function getReferee() + { + return $this->referee; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Person|string $referee + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setReferee($referee) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $referee = self::checkTypes($referee, $types); + + $this->referee = $referee; } /** diff --git a/src/Models/SchemaOrg/SportsTeam.php b/src/Models/SchemaOrg/SportsTeam.php index 0adf96cb..f919096e 100644 --- a/src/Models/SchemaOrg/SportsTeam.php +++ b/src/Models/SchemaOrg/SportsTeam.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "athlete" => "athlete", - "gender" => "gender", "coach" => "coach", + "gender" => "gender", ]; return array_merge(parent::fieldList(), $fields); @@ -34,20 +34,20 @@ public static function fieldList() { protected $athlete; /** - * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". + * A person that acts in a coaching role for a sports team. * * - * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $gender; + protected $coach; /** - * A person that acts in a coaching role for a sports team. + * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who are not a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - protected $coach; + protected $gender; /** * @return \OpenActive\Models\SchemaOrg\Person|string @@ -75,54 +75,54 @@ public function setAthlete($athlete) } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGender() + public function getCoach() { - return $this->gender; + return $this->coach; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $gender + * @param \OpenActive\Models\SchemaOrg\Person|string $coach * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGender($gender) + public function setCoach($coach) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $gender = self::checkTypes($gender, $types); + $coach = self::checkTypes($coach, $types); - $this->gender = $gender; + $this->coach = $coach; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - public function getCoach() + public function getGender() { - return $this->coach; + return $this->gender; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $coach + * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $gender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCoach($coach) + public function setGender($gender) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Enums\SchemaOrg\GenderType", "string", + "null", ]; - $coach = self::checkTypes($coach, $types); + $gender = self::checkTypes($gender, $types); - $this->coach = $coach; + $this->gender = $gender; } } diff --git a/src/Models/SchemaOrg/StadiumOrArena.php b/src/Models/SchemaOrg/StadiumOrArena.php index f0e1be22..6e51a6f6 100644 --- a/src/Models/SchemaOrg/StadiumOrArena.php +++ b/src/Models/SchemaOrg/StadiumOrArena.php @@ -5,7 +5,7 @@ /** * */ -class StadiumOrArena extends \OpenActive\Models\SchemaOrg\SportsActivityLocation +class StadiumOrArena extends \OpenActive\Models\SchemaOrg\CivicStructure { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/StatisticalPopulation.php b/src/Models/SchemaOrg/StatisticalPopulation.php index a59fa6f4..27f58de6 100644 --- a/src/Models/SchemaOrg/StatisticalPopulation.php +++ b/src/Models/SchemaOrg/StatisticalPopulation.php @@ -18,38 +18,19 @@ public static function getType() public static function fieldList() { $fields = [ "populationType" => "populationType", - "numConstraints" => "numConstraints", - "constrainingProperty" => "constrainingProperty", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates the populationType common to all members of a [[StatisticalPopulation]]. + * Indicates the populationType common to all members of a [[StatisticalPopulation]] or all cases within the scope of a [[StatisticalVariable]]. * * * @var \OpenActive\Models\SchemaOrg\Class|string */ protected $populationType; - /** - * Indicates the number of constraints (not counting [[populationType]]) defined for a particular [[StatisticalPopulation]]. This helps applications understand if they have access to a sufficiently complete description of a [[StatisticalPopulation]]. - * - * - * @var int|null - */ - protected $numConstraints; - - /** - * Indicates a property used as a constraint to define a [[StatisticalPopulation]] with respect to the set of entities - * corresponding to an indicated type (via [[populationType]]). - * - * - * @var int|null - */ - protected $constrainingProperty; - /** * @return \OpenActive\Models\SchemaOrg\Class|string */ @@ -75,54 +56,4 @@ public function setPopulationType($populationType) $this->populationType = $populationType; } - /** - * @return int|null - */ - public function getNumConstraints() - { - return $this->numConstraints; - } - - /** - * @param int|null $numConstraints - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setNumConstraints($numConstraints) - { - $types = [ - "int", - "null", - ]; - - $numConstraints = self::checkTypes($numConstraints, $types); - - $this->numConstraints = $numConstraints; - } - - /** - * @return int|null - */ - public function getConstrainingProperty() - { - return $this->constrainingProperty; - } - - /** - * @param int|null $constrainingProperty - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setConstrainingProperty($constrainingProperty) - { - $types = [ - "int", - "null", - ]; - - $constrainingProperty = self::checkTypes($constrainingProperty, $types); - - $this->constrainingProperty = $constrainingProperty; - } - } diff --git a/src/Models/SchemaOrg/StatisticalVariable.php b/src/Models/SchemaOrg/StatisticalVariable.php new file mode 100644 index 00000000..30b97074 --- /dev/null +++ b/src/Models/SchemaOrg/StatisticalVariable.php @@ -0,0 +1,275 @@ + "measuredProperty", + "measurementDenominator" => "measurementDenominator", + "measurementMethod" => "measurementMethod", + "measurementQualifier" => "measurementQualifier", + "measurementTechnique" => "measurementTechnique", + "populationType" => "populationType", + "statType" => "statType", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * The measuredProperty of an [[Observation]], typically via its [[StatisticalVariable]]. There are various kinds of applicable [[Property]]: a schema.org property, a property from other RDF-compatible systems, e.g. W3C RDF Data Cube, Data Commons, Wikidata, or schema.org extensions such as [GS1's](https://www.gs1.org/voc/?show=properties). + * + * + * @var string|\OpenActive\Enums\PropertyEnumeration|null + */ + protected $measuredProperty; + + /** + * Identifies the denominator variable when an observation represents a ratio or percentage. + * + * + * @var \OpenActive\Models\SchemaOrg\StatisticalVariable|string + */ + 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; + + /** + * Indicates the populationType common to all members of a [[StatisticalPopulation]] or all cases within the scope of a [[StatisticalVariable]]. + * + * + * @var \OpenActive\Models\SchemaOrg\Class|string + */ + protected $populationType; + + /** + * Indicates the kind of statistic represented by a [[StatisticalVariable]], e.g. mean, count etc. The value of statType is a property, either from within Schema.org (e.g. [[median]], [[marginOfError]], [[maxValue]], [[minValue]]) or from other compatible (e.g. RDF) systems such as DataCommons.org or Wikidata.org. + * + * + * @var string|\OpenActive\Enums\PropertyEnumeration|null + */ + protected $statType; + + /** + * @return string|\OpenActive\Enums\PropertyEnumeration|null + */ + public function getMeasuredProperty() + { + return $this->measuredProperty; + } + + /** + * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasuredProperty($measuredProperty) + { + $types = [ + "string", + "\OpenActive\Enums\PropertyEnumeration", + "null", + ]; + + $measuredProperty = self::checkTypes($measuredProperty, $types); + + $this->measuredProperty = $measuredProperty; + } + + /** + * @return \OpenActive\Models\SchemaOrg\StatisticalVariable|string + */ + public function getMeasurementDenominator() + { + return $this->measurementDenominator; + } + + /** + * @param \OpenActive\Models\SchemaOrg\StatisticalVariable|string $measurementDenominator + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementDenominator($measurementDenominator) + { + $types = [ + "\OpenActive\Models\SchemaOrg\StatisticalVariable", + "string", + ]; + + $measurementDenominator = self::checkTypes($measurementDenominator, $types); + + $this->measurementDenominator = $measurementDenominator; + } + + /** + * @return \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\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\Class|string + */ + public function getPopulationType() + { + return $this->populationType; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Class|string $populationType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPopulationType($populationType) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Class", + "string", + ]; + + $populationType = self::checkTypes($populationType, $types); + + $this->populationType = $populationType; + } + + /** + * @return string|\OpenActive\Enums\PropertyEnumeration|null + */ + public function getStatType() + { + return $this->statType; + } + + /** + * @param string|\OpenActive\Enums\PropertyEnumeration|null $statType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setStatType($statType) + { + $types = [ + "string", + "\OpenActive\Enums\PropertyEnumeration", + "null", + ]; + + $statType = self::checkTypes($statType, $types); + + $this->statType = $statType; + } + +} diff --git a/src/Models/SchemaOrg/Substance.php b/src/Models/SchemaOrg/Substance.php index fe1c383e..d7eaf02a 100644 --- a/src/Models/SchemaOrg/Substance.php +++ b/src/Models/SchemaOrg/Substance.php @@ -17,76 +17,76 @@ public static function getType() public static function fieldList() { $fields = [ - "maximumIntake" => "maximumIntake", "activeIngredient" => "activeIngredient", + "maximumIntake" => "maximumIntake", ]; return array_merge(parent::fieldList(), $fields); } /** - * Recommended intake of this supplement for a given population as defined by a specific recommending authority. + * An active ingredient, typically chemical compounds and/or biologic substances. * * - * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string + * @var string */ - protected $maximumIntake; + protected $activeIngredient; /** - * An active ingredient, typically chemical compounds and/or biologic substances. + * 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 $activeIngredient; + protected $maximumIntake; /** - * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string + * @return string */ - public function getMaximumIntake() + public function getActiveIngredient() { - return $this->maximumIntake; + return $this->activeIngredient; } /** - * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake + * @param string $activeIngredient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumIntake($maximumIntake) + public function setActiveIngredient($activeIngredient) { $types = [ - "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule", "string", ]; - $maximumIntake = self::checkTypes($maximumIntake, $types); + $activeIngredient = self::checkTypes($activeIngredient, $types); - $this->maximumIntake = $maximumIntake; + $this->activeIngredient = $activeIngredient; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string */ - public function getActiveIngredient() + public function getMaximumIntake() { - return $this->activeIngredient; + return $this->maximumIntake; } /** - * @param string $activeIngredient + * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActiveIngredient($activeIngredient) + public function setMaximumIntake($maximumIntake) { $types = [ + "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule", "string", ]; - $activeIngredient = self::checkTypes($activeIngredient, $types); + $maximumIntake = self::checkTypes($maximumIntake, $types); - $this->activeIngredient = $activeIngredient; + $this->maximumIntake = $maximumIntake; } } diff --git a/src/Models/SchemaOrg/Suite.php b/src/Models/SchemaOrg/Suite.php index 81897ebd..9715e24b 100644 --- a/src/Models/SchemaOrg/Suite.php +++ b/src/Models/SchemaOrg/Suite.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "numberOfRooms" => "numberOfRooms", "bed" => "bed", + "numberOfRooms" => "numberOfRooms", "occupancy" => "occupancy", ]; @@ -26,26 +26,26 @@ public static function fieldList() { } /** - * The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. - * Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue. + * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text. + * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\BedDetails|\OpenActive\Models\SchemaOrg\BedType|string */ - protected $numberOfRooms; + protected $bed; /** - * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text. - * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property. + * The 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\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $bed; + 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 @@ -53,56 +53,56 @@ public static function fieldList() { protected $occupancy; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\BedDetails|\OpenActive\Models\SchemaOrg\BedType|string */ - public function getNumberOfRooms() + public function getBed() { - return $this->numberOfRooms; + return $this->bed; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms + * @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 setNumberOfRooms($numberOfRooms) + public function setBed($bed) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\BedDetails", + "\OpenActive\Models\SchemaOrg\BedType", "string", - "Number", - "null", ]; - $numberOfRooms = self::checkTypes($numberOfRooms, $types); + $bed = self::checkTypes($bed, $types); - $this->numberOfRooms = $numberOfRooms; + $this->bed = $bed; } /** - * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getBed() + public function getNumberOfRooms() { - return $this->bed; + return $this->numberOfRooms; } /** - * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed + * @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 setBed($bed) + public function setNumberOfRooms($numberOfRooms) { $types = [ - "\OpenActive\Models\SchemaOrg\BedDetails", + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Models\SchemaOrg\BedType", + "null", ]; - $bed = self::checkTypes($bed, $types); + $numberOfRooms = self::checkTypes($numberOfRooms, $types); - $this->bed = $bed; + $this->numberOfRooms = $numberOfRooms; } /** diff --git a/src/Models/SchemaOrg/SuperficialAnatomy.php b/src/Models/SchemaOrg/SuperficialAnatomy.php index 4432f6ac..54a2f8ef 100644 --- a/src/Models/SchemaOrg/SuperficialAnatomy.php +++ b/src/Models/SchemaOrg/SuperficialAnatomy.php @@ -17,37 +17,29 @@ public static function getType() public static function fieldList() { $fields = [ - "relatedTherapy" => "relatedTherapy", - "significance" => "significance", + "associatedPathophysiology" => "associatedPathophysiology", "relatedAnatomy" => "relatedAnatomy", "relatedCondition" => "relatedCondition", - "associatedPathophysiology" => "associatedPathophysiology", + "relatedTherapy" => "relatedTherapy", + "significance" => "significance", ]; return array_merge(parent::fieldList(), $fields); } /** - * A medical therapy related to this anatomy. - * - * - * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string - */ - protected $relatedTherapy; - - /** - * The significance associated with the superficial anatomy; as an example, how characteristics of the superficial anatomy can suggest underlying medical conditions or courses of treatment. + * 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 $significance; + protected $associatedPathophysiology; /** * Anatomical systems or structures that relate to the superficial anatomy. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ protected $relatedAnatomy; @@ -60,64 +52,47 @@ public static function fieldList() { protected $relatedCondition; /** - * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. + * A medical therapy related to this anatomy. * * - * @var string - */ - protected $associatedPathophysiology; - - /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getRelatedTherapy() - { - return $this->relatedTherapy; - } + protected $relatedTherapy; /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The significance associated with the superficial anatomy; as an example, how characteristics of the superficial anatomy can suggest underlying medical conditions or courses of treatment. + * + * + * @var string */ - public function setRelatedTherapy($relatedTherapy) - { - $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", - "string", - ]; - - $relatedTherapy = self::checkTypes($relatedTherapy, $types); - - $this->relatedTherapy = $relatedTherapy; - } + protected $significance; /** * @return string */ - public function getSignificance() + public function getAssociatedPathophysiology() { - return $this->significance; + return $this->associatedPathophysiology; } /** - * @param string $significance + * @param string $associatedPathophysiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSignificance($significance) + public function setAssociatedPathophysiology($associatedPathophysiology) { $types = [ "string", ]; - $significance = self::checkTypes($significance, $types); + $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); - $this->significance = $significance; + $this->associatedPathophysiology = $associatedPathophysiology; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ public function getRelatedAnatomy() { @@ -125,15 +100,15 @@ public function getRelatedAnatomy() } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $relatedAnatomy + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $relatedAnatomy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRelatedAnatomy($relatedAnatomy) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; @@ -167,28 +142,53 @@ public function setRelatedCondition($relatedCondition) $this->relatedCondition = $relatedCondition; } + /** + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + */ + public function getRelatedTherapy() + { + return $this->relatedTherapy; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setRelatedTherapy($relatedTherapy) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "string", + ]; + + $relatedTherapy = self::checkTypes($relatedTherapy, $types); + + $this->relatedTherapy = $relatedTherapy; + } + /** * @return string */ - public function getAssociatedPathophysiology() + public function getSignificance() { - return $this->associatedPathophysiology; + return $this->significance; } /** - * @param string $associatedPathophysiology + * @param string $significance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedPathophysiology($associatedPathophysiology) + public function setSignificance($significance) { $types = [ "string", ]; - $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); + $significance = self::checkTypes($significance, $types); - $this->associatedPathophysiology = $associatedPathophysiology; + $this->significance = $significance; } } diff --git a/src/Models/SchemaOrg/Syllabus.php b/src/Models/SchemaOrg/Syllabus.php new file mode 100644 index 00000000..bec74b5b --- /dev/null +++ b/src/Models/SchemaOrg/Syllabus.php @@ -0,0 +1,25 @@ + "countryOfOrigin", - "titleEIDR" => "titleEIDR", - "subtitleLanguage" => "subtitleLanguage", "partOfTVSeries" => "partOfTVSeries", + "subtitleLanguage" => "subtitleLanguage", + "titleEIDR" => "titleEIDR", ]; return array_merge(parent::fieldList(), $fields); @@ -39,17 +39,12 @@ public static function fieldList() { protected $countryOfOrigin; /** - * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television. - * - * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]]. - * - * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. - * + * The TV series to which this episode or season belongs. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\TVSeries|string */ - protected $titleEIDR; + protected $partOfTVSeries; /** * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). @@ -60,12 +55,17 @@ public static function fieldList() { protected $subtitleLanguage; /** - * The TV series to which this episode or season belongs. + * 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\TVSeries|string + * @var string */ - protected $partOfTVSeries; + protected $titleEIDR; /** * @return \OpenActive\Models\SchemaOrg\Country|string @@ -93,27 +93,28 @@ public function setCountryOfOrigin($countryOfOrigin) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\TVSeries|string */ - public function getTitleEIDR() + public function getPartOfTVSeries() { - return $this->titleEIDR; + return $this->partOfTVSeries; } /** - * @param string $titleEIDR + * @param \OpenActive\Models\SchemaOrg\TVSeries|string $partOfTVSeries * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTitleEIDR($titleEIDR) + public function setPartOfTVSeries($partOfTVSeries) { $types = [ + "\OpenActive\Models\SchemaOrg\TVSeries", "string", ]; - $titleEIDR = self::checkTypes($titleEIDR, $types); + $partOfTVSeries = self::checkTypes($partOfTVSeries, $types); - $this->titleEIDR = $titleEIDR; + $this->partOfTVSeries = $partOfTVSeries; } /** @@ -142,28 +143,27 @@ public function setSubtitleLanguage($subtitleLanguage) } /** - * @return \OpenActive\Models\SchemaOrg\TVSeries|string + * @return string */ - public function getPartOfTVSeries() + public function getTitleEIDR() { - return $this->partOfTVSeries; + return $this->titleEIDR; } /** - * @param \OpenActive\Models\SchemaOrg\TVSeries|string $partOfTVSeries + * @param string $titleEIDR * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfTVSeries($partOfTVSeries) + public function setTitleEIDR($titleEIDR) { $types = [ - "\OpenActive\Models\SchemaOrg\TVSeries", "string", ]; - $partOfTVSeries = self::checkTypes($partOfTVSeries, $types); + $titleEIDR = self::checkTypes($titleEIDR, $types); - $this->partOfTVSeries = $partOfTVSeries; + $this->titleEIDR = $titleEIDR; } } diff --git a/src/Models/SchemaOrg/TVSeason.php b/src/Models/SchemaOrg/TVSeason.php index b4e4962c..50682890 100644 --- a/src/Models/SchemaOrg/TVSeason.php +++ b/src/Models/SchemaOrg/TVSeason.php @@ -5,7 +5,7 @@ /** * */ -class TVSeason extends \OpenActive\Models\SchemaOrg\CreativeWorkSeason +class TVSeason extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -19,6 +19,7 @@ public static function fieldList() { $fields = [ "countryOfOrigin" => "countryOfOrigin", "partOfTVSeries" => "partOfTVSeries", + "titleEIDR" => "titleEIDR", ]; return array_merge(parent::fieldList(), $fields); @@ -44,6 +45,19 @@ public static function fieldList() { */ protected $partOfTVSeries; + /** + * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television. + * + * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]]. + * + * Since schema.org types like [[Movie]], [[TVEpisode]], [[TVSeason]], and [[TVSeries]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. + * + * + * + * @var string + */ + protected $titleEIDR; + /** * @return \OpenActive\Models\SchemaOrg\Country|string */ @@ -94,4 +108,28 @@ public function setPartOfTVSeries($partOfTVSeries) $this->partOfTVSeries = $partOfTVSeries; } + /** + * @return string + */ + public function getTitleEIDR() + { + return $this->titleEIDR; + } + + /** + * @param string $titleEIDR + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTitleEIDR($titleEIDR) + { + $types = [ + "string", + ]; + + $titleEIDR = self::checkTypes($titleEIDR, $types); + + $this->titleEIDR = $titleEIDR; + } + } diff --git a/src/Models/SchemaOrg/TVSeries.php b/src/Models/SchemaOrg/TVSeries.php index a8df402b..67477a9f 100644 --- a/src/Models/SchemaOrg/TVSeries.php +++ b/src/Models/SchemaOrg/TVSeries.php @@ -5,7 +5,7 @@ /** * */ -class TVSeries extends \OpenActive\Models\SchemaOrg\CreativeWorkSeries +class TVSeries extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -17,33 +17,42 @@ public static function getType() public static function fieldList() { $fields = [ - "season" => "season", + "actor" => "actor", + "actors" => "actors", "containsSeason" => "containsSeason", "countryOfOrigin" => "countryOfOrigin", "director" => "director", - "actor" => "actor", - "trailer" => "trailer", + "directors" => "directors", + "episode" => "episode", "episodes" => "episodes", + "musicBy" => "musicBy", "numberOfEpisodes" => "numberOfEpisodes", - "seasons" => "seasons", - "productionCompany" => "productionCompany", - "actors" => "actors", "numberOfSeasons" => "numberOfSeasons", - "musicBy" => "musicBy", - "episode" => "episode", - "directors" => "directors", + "productionCompany" => "productionCompany", + "season" => "season", + "seasons" => "seasons", + "titleEIDR" => "titleEIDR", + "trailer" => "trailer", ]; return array_merge(parent::fieldList(), $fields); } /** - * A season in a media series. + * An actor (individual or a group), e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @var \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $season; + protected $actor; + + /** + * 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 $actors; /** * A season that is part of the media series. @@ -66,7 +75,7 @@ public static function fieldList() { protected $countryOfOrigin; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * 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 @@ -74,20 +83,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. + * 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. + * An episode of a TV, radio or game media within a series or season. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $trailer; + protected $episode; /** * An episode of a TV/radio series or season. @@ -97,6 +106,14 @@ public static function fieldList() { */ protected $episodes; + /** + * The composer of the soundtrack. + * + * + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $musicBy; + /** * The number of episodes in this season or series. * @@ -106,15 +123,15 @@ public static function fieldList() { protected $numberOfEpisodes; /** - * A season in a media series. + * The number of seasons in this series. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var int|null */ - protected $seasons; + protected $numberOfSeasons; /** - * 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 @@ -122,68 +139,91 @@ public static function fieldList() { protected $productionCompany; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * A season in a media series. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $actors; + protected $season; /** - * The number of seasons in this series. + * A season in a media series. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $numberOfSeasons; + protected $seasons; /** - * 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; /** - * An episode of a tv, radio or game media within a series or season. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $episode; + protected $trailer; /** - * 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 string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @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 getSeason() + public function setActor($actor) { - return $this->season; + $types = [ + "\OpenActive\Models\SchemaOrg\PerformingGroup", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $actor = self::checkTypes($actor, $types); + + $this->actor = $actor; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Person|string + */ + public function getActors() + { + return $this->actors; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @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 setSeason($season) + public function setActors($actors) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", ]; - $season = self::checkTypes($season, $types); + $actors = self::checkTypes($actors, $types); - $this->season = $season; + $this->actors = $actors; } /** @@ -264,51 +304,51 @@ 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\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getTrailer() + public function getEpisode() { - return $this->trailer; + return $this->episode; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param \OpenActive\Models\SchemaOrg\Episode|string $episode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setEpisode($episode) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $episode = self::checkTypes($episode, $types); - $this->trailer = $trailer; + $this->episode = $episode; } /** @@ -336,6 +376,32 @@ public function setEpisodes($episodes) $this->episodes = $episodes; } + /** + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string + */ + public function getMusicBy() + { + return $this->musicBy; + } + + /** + * @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 setMusicBy($musicBy) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $musicBy = self::checkTypes($musicBy, $types); + + $this->musicBy = $musicBy; + } + /** * @return int|null */ @@ -362,28 +428,28 @@ public function setNumberOfEpisodes($numberOfEpisodes) } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return int|null */ - public function getSeasons() + public function getNumberOfSeasons() { - return $this->seasons; + return $this->numberOfSeasons; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons + * @param int|null $numberOfSeasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeasons($seasons) + public function setNumberOfSeasons($numberOfSeasons) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", - "string", + "int", + "null", ]; - $seasons = self::checkTypes($seasons, $types); + $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); - $this->seasons = $seasons; + $this->numberOfSeasons = $numberOfSeasons; } /** @@ -412,129 +478,102 @@ public function setProductionCompany($productionCompany) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getActors() + public function getSeason() { - return $this->actors; + return $this->season; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $season * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setSeason($season) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $actors = self::checkTypes($actors, $types); - - $this->actors = $actors; - } - - /** - * @return int|null - */ - public function getNumberOfSeasons() - { - return $this->numberOfSeasons; - } - - /** - * @param int|null $numberOfSeasons - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setNumberOfSeasons($numberOfSeasons) - { - $types = [ - "int", - "null", - ]; - - $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); + $season = self::checkTypes($season, $types); - $this->numberOfSeasons = $numberOfSeasons; + $this->season = $season; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getMusicBy() + public function getSeasons() { - return $this->musicBy; + return $this->seasons; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setSeasons($seasons) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $seasons = self::checkTypes($seasons, $types); - $this->musicBy = $musicBy; + $this->seasons = $seasons; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return string */ - public function getEpisode() + public function getTitleEIDR() { - return $this->episode; + return $this->titleEIDR; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @param string $titleEIDR * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisode($episode) + public function setTitleEIDR($titleEIDR) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $episode = self::checkTypes($episode, $types); + $titleEIDR = self::checkTypes($titleEIDR, $types); - $this->episode = $episode; + $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/TaxiReservation.php b/src/Models/SchemaOrg/TaxiReservation.php index 2da50e7c..8a0a0ea4 100644 --- a/src/Models/SchemaOrg/TaxiReservation.php +++ b/src/Models/SchemaOrg/TaxiReservation.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "partySize" => "partySize", - "pickupTime" => "pickupTime", "pickupLocation" => "pickupLocation", + "pickupTime" => "pickupTime", ]; return array_merge(parent::fieldList(), $fields); @@ -34,20 +34,20 @@ public static function fieldList() { protected $partySize; /** - * When a taxi will pickup a passenger or a rental car can be picked up. + * Where a taxi will pick up a passenger or a rental car can be picked up. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $pickupTime; + protected $pickupLocation; /** - * Where a taxi will pick up a passenger or a rental car can be picked up. + * When a taxi will pick up a passenger or a rental car can be picked up. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var DateTime|null */ - protected $pickupLocation; + protected $pickupTime; /** * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null @@ -77,53 +77,53 @@ public function setPartySize($partySize) } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getPickupTime() + public function getPickupLocation() { - return $this->pickupTime; + return $this->pickupLocation; } /** - * @param DateTime|null $pickupTime + * @param \OpenActive\Models\SchemaOrg\Place|string $pickupLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPickupTime($pickupTime) + public function setPickupLocation($pickupLocation) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $pickupTime = self::checkTypes($pickupTime, $types); + $pickupLocation = self::checkTypes($pickupLocation, $types); - $this->pickupTime = $pickupTime; + $this->pickupLocation = $pickupLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return DateTime|null */ - public function getPickupLocation() + public function getPickupTime() { - return $this->pickupLocation; + return $this->pickupTime; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $pickupLocation + * @param DateTime|null $pickupTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPickupLocation($pickupLocation) + public function setPickupTime($pickupTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", + "DateTime", + "null", ]; - $pickupLocation = self::checkTypes($pickupLocation, $types); + $pickupTime = self::checkTypes($pickupTime, $types); - $this->pickupLocation = $pickupLocation; + $this->pickupTime = $pickupTime; } } diff --git a/src/Models/SchemaOrg/Taxon.php b/src/Models/SchemaOrg/Taxon.php index cc2eebde..e3360d3d 100644 --- a/src/Models/SchemaOrg/Taxon.php +++ b/src/Models/SchemaOrg/Taxon.php @@ -17,145 +17,145 @@ public static function getType() public static function fieldList() { $fields = [ - "parentTaxon" => "parentTaxon", - "taxonRank" => "taxonRank", "childTaxon" => "childTaxon", "hasDefinedTerm" => "hasDefinedTerm", + "parentTaxon" => "parentTaxon", + "taxonRank" => "taxonRank", ]; return array_merge(parent::fieldList(), $fields); } /** - * Closest parent taxon of the taxon in question. + * Closest child taxa of the taxon in question. * * - * @var string|\OpenActive\Models\SchemaOrg\Taxon + * @var \OpenActive\Models\SchemaOrg\Taxon|string */ - protected $parentTaxon; + protected $childTaxon; /** - * The taxonomic rank of this taxon given preferably as a URI from a controlled vocabulary – (typically the ranks from TDWG TaxonRank ontology or equivalent Wikidata URIs). + * A Defined Term contained in this term set. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $taxonRank; + protected $hasDefinedTerm; /** - * Closest child taxa of the taxon in question. + * Closest parent taxon of the taxon in question. * * - * @var string|\OpenActive\Models\SchemaOrg\Taxon + * @var \OpenActive\Models\SchemaOrg\Taxon|string */ - protected $childTaxon; + protected $parentTaxon; /** - * A Defined Term contained in this term set. + * The taxonomic rank of this taxon given preferably as a URI from a controlled vocabulary – typically the ranks from TDWG TaxonRank ontology or equivalent Wikidata URIs. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $hasDefinedTerm; + protected $taxonRank; /** - * @return string|\OpenActive\Models\SchemaOrg\Taxon + * @return \OpenActive\Models\SchemaOrg\Taxon|string */ - public function getParentTaxon() + public function getChildTaxon() { - return $this->parentTaxon; + return $this->childTaxon; } /** - * @param string|\OpenActive\Models\SchemaOrg\Taxon $parentTaxon + * @param \OpenActive\Models\SchemaOrg\Taxon|string $childTaxon * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setParentTaxon($parentTaxon) + public function setChildTaxon($childTaxon) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\Taxon", + "string", ]; - $parentTaxon = self::checkTypes($parentTaxon, $types); + $childTaxon = self::checkTypes($childTaxon, $types); - $this->parentTaxon = $parentTaxon; + $this->childTaxon = $childTaxon; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getTaxonRank() + public function getHasDefinedTerm() { - return $this->taxonRank; + return $this->hasDefinedTerm; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $taxonRank + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $hasDefinedTerm * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTaxonRank($taxonRank) + public function setHasDefinedTerm($hasDefinedTerm) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $taxonRank = self::checkTypes($taxonRank, $types); + $hasDefinedTerm = self::checkTypes($hasDefinedTerm, $types); - $this->taxonRank = $taxonRank; + $this->hasDefinedTerm = $hasDefinedTerm; } /** - * @return string|\OpenActive\Models\SchemaOrg\Taxon + * @return \OpenActive\Models\SchemaOrg\Taxon|string */ - public function getChildTaxon() + public function getParentTaxon() { - return $this->childTaxon; + return $this->parentTaxon; } /** - * @param string|\OpenActive\Models\SchemaOrg\Taxon $childTaxon + * @param \OpenActive\Models\SchemaOrg\Taxon|string $parentTaxon * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setChildTaxon($childTaxon) + public function setParentTaxon($parentTaxon) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\Taxon", + "string", ]; - $childTaxon = self::checkTypes($childTaxon, $types); + $parentTaxon = self::checkTypes($parentTaxon, $types); - $this->childTaxon = $childTaxon; + $this->parentTaxon = $parentTaxon; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getHasDefinedTerm() + public function getTaxonRank() { - return $this->hasDefinedTerm; + return $this->taxonRank; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $hasDefinedTerm + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $taxonRank * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasDefinedTerm($hasDefinedTerm) + public function setTaxonRank($taxonRank) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; - $hasDefinedTerm = self::checkTypes($hasDefinedTerm, $types); + $taxonRank = self::checkTypes($taxonRank, $types); - $this->hasDefinedTerm = $hasDefinedTerm; + $this->taxonRank = $taxonRank; } } diff --git a/src/Models/SchemaOrg/TextObject.php b/src/Models/SchemaOrg/TextObject.php new file mode 100644 index 00000000..f2e989ee --- /dev/null +++ b/src/Models/SchemaOrg/TextObject.php @@ -0,0 +1,25 @@ + "adverseOutcome", - "drug" => "drug", "doseSchedule" => "doseSchedule", + "drug" => "drug", ]; 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 @@ -34,20 +34,20 @@ public static function fieldList() { protected $adverseOutcome; /** - * Specifying a drug or medicine used in a medication procedure. + * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used. * * - * @var \OpenActive\Models\SchemaOrg\Drug|string + * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string */ - protected $drug; + protected $doseSchedule; /** - * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used. + * Specifying a drug or medicine used in a medication procedure. * * - * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string + * @var \OpenActive\Models\SchemaOrg\Drug|string */ - protected $doseSchedule; + protected $drug; /** * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string @@ -75,53 +75,53 @@ public function setAdverseOutcome($adverseOutcome) } /** - * @return \OpenActive\Models\SchemaOrg\Drug|string + * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string */ - public function getDrug() + public function getDoseSchedule() { - return $this->drug; + return $this->doseSchedule; } /** - * @param \OpenActive\Models\SchemaOrg\Drug|string $drug + * @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 setDrug($drug) + public function setDoseSchedule($doseSchedule) { $types = [ - "\OpenActive\Models\SchemaOrg\Drug", + "\OpenActive\Models\SchemaOrg\DoseSchedule", "string", ]; - $drug = self::checkTypes($drug, $types); + $doseSchedule = self::checkTypes($doseSchedule, $types); - $this->drug = $drug; + $this->doseSchedule = $doseSchedule; } /** - * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string + * @return \OpenActive\Models\SchemaOrg\Drug|string */ - public function getDoseSchedule() + public function getDrug() { - return $this->doseSchedule; + return $this->drug; } /** - * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule + * @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 setDoseSchedule($doseSchedule) + public function setDrug($drug) { $types = [ - "\OpenActive\Models\SchemaOrg\DoseSchedule", + "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $doseSchedule = self::checkTypes($doseSchedule, $types); + $drug = self::checkTypes($drug, $types); - $this->doseSchedule = $doseSchedule; + $this->drug = $drug; } } diff --git a/src/Models/SchemaOrg/Thing.php b/src/Models/SchemaOrg/Thing.php index 938171a4..699ef2e8 100644 --- a/src/Models/SchemaOrg/Thing.php +++ b/src/Models/SchemaOrg/Thing.php @@ -20,15 +20,16 @@ public static function fieldList() { "identifier" => "identifier", "name" => "name", "description" => "description", - "mainEntityOfPage" => "mainEntityOfPage", - "alternateName" => "alternateName", - "potentialAction" => "potentialAction", - "image" => "image", - "url" => "url", - "subjectOf" => "subjectOf", "additionalType" => "additionalType", + "alternateName" => "alternateName", "disambiguatingDescription" => "disambiguatingDescription", + "image" => "image", + "mainEntityOfPage" => "mainEntityOfPage", + "owner" => "owner", + "potentialAction" => "potentialAction", "sameAs" => "sameAs", + "subjectOf" => "subjectOf", + "url" => "url", ]; return array_merge(parent::fieldList(), $fields); @@ -39,7 +40,7 @@ public static function fieldList() { * * * - * @var string|\OpenActive\Models\SchemaOrg\PropertyValue + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ protected $identifier; @@ -55,17 +56,18 @@ public static function fieldList() { * A description of the item. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\TextObject */ protected $description; /** - * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details. + * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the + * use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org style guide. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string */ - protected $mainEntityOfPage; + protected $additionalType; /** * An alias for the item. @@ -76,63 +78,71 @@ public static function fieldList() { protected $alternateName; /** - * Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role. + * A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation. * * - * @var \OpenActive\Models\SchemaOrg\Action|string + * @var string */ - protected $potentialAction; + protected $disambiguatingDescription; /** * An image of the item. This can be a [[URL]] or a fully described [[ImageObject]]. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ protected $image; /** - * URL of the item. + * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $url; + protected $mainEntityOfPage; /** - * A CreativeWork or Event about this Thing. + * A person or organization who owns this Thing. * * - * @var \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $subjectOf; + protected $owner; /** - * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally. + * Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Action|string */ - protected $additionalType; + protected $potentialAction; /** - * A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation. + * URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website. * * * @var string */ - protected $disambiguatingDescription; + protected $sameAs; /** - * URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website. + * A CreativeWork or Event about this Thing. + * + * + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|string + */ + protected $subjectOf; + + /** + * URL of the item. * * * @var string */ - protected $sameAs; + protected $url; /** - * @return string|\OpenActive\Models\SchemaOrg\PropertyValue + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ public function getIdentifier() { @@ -140,15 +150,15 @@ public function getIdentifier() } /** - * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $identifier + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $identifier * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setIdentifier($identifier) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", ]; $identifier = self::checkTypes($identifier, $types); @@ -181,7 +191,7 @@ public function setName($name) } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\TextObject */ public function getDescription() { @@ -189,7 +199,7 @@ public function getDescription() } /** - * @param string $description + * @param string|\OpenActive\Models\SchemaOrg\TextObject $description * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -197,6 +207,7 @@ public function setDescription($description) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\TextObject", ]; $description = self::checkTypes($description, $types); @@ -205,28 +216,27 @@ public function setDescription($description) } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getMainEntityOfPage() + public function getAdditionalType() { - return $this->mainEntityOfPage; + return $this->additionalType; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $mainEntityOfPage + * @param string $additionalType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMainEntityOfPage($mainEntityOfPage) + public function setAdditionalType($additionalType) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $mainEntityOfPage = self::checkTypes($mainEntityOfPage, $types); + $additionalType = self::checkTypes($additionalType, $types); - $this->mainEntityOfPage = $mainEntityOfPage; + $this->additionalType = $additionalType; } /** @@ -254,32 +264,31 @@ public function setAlternateName($alternateName) } /** - * @return \OpenActive\Models\SchemaOrg\Action|string + * @return string */ - public function getPotentialAction() + public function getDisambiguatingDescription() { - return $this->potentialAction; + return $this->disambiguatingDescription; } /** - * @param \OpenActive\Models\SchemaOrg\Action|string $potentialAction + * @param string $disambiguatingDescription * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPotentialAction($potentialAction) + public function setDisambiguatingDescription($disambiguatingDescription) { $types = [ - "\OpenActive\Models\SchemaOrg\Action", "string", ]; - $potentialAction = self::checkTypes($potentialAction, $types); + $disambiguatingDescription = self::checkTypes($disambiguatingDescription, $types); - $this->potentialAction = $potentialAction; + $this->disambiguatingDescription = $disambiguatingDescription; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ public function getImage() { @@ -287,15 +296,15 @@ public function getImage() } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $image + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $image * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setImage($image) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\ImageObject", + "string", ]; $image = self::checkTypes($image, $types); @@ -304,125 +313,153 @@ public function setImage($image) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getUrl() + public function getMainEntityOfPage() { - return $this->url; + return $this->mainEntityOfPage; } /** - * @param string $url + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $mainEntityOfPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUrl($url) + public function setMainEntityOfPage($mainEntityOfPage) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $url = self::checkTypes($url, $types); + $mainEntityOfPage = self::checkTypes($mainEntityOfPage, $types); - $this->url = $url; + $this->mainEntityOfPage = $mainEntityOfPage; } /** - * @return \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSubjectOf() + public function getOwner() { - return $this->subjectOf; + return $this->owner; } /** - * @param \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string $subjectOf + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $owner * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubjectOf($subjectOf) + public function setOwner($owner) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $subjectOf = self::checkTypes($subjectOf, $types); + $owner = self::checkTypes($owner, $types); - $this->subjectOf = $subjectOf; + $this->owner = $owner; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Action|string */ - public function getAdditionalType() + public function getPotentialAction() { - return $this->additionalType; + return $this->potentialAction; } /** - * @param string $additionalType + * @param \OpenActive\Models\SchemaOrg\Action|string $potentialAction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalType($additionalType) + public function setPotentialAction($potentialAction) { $types = [ + "\OpenActive\Models\SchemaOrg\Action", "string", ]; - $additionalType = self::checkTypes($additionalType, $types); + $potentialAction = self::checkTypes($potentialAction, $types); - $this->additionalType = $additionalType; + $this->potentialAction = $potentialAction; } /** * @return string */ - public function getDisambiguatingDescription() + public function getSameAs() { - return $this->disambiguatingDescription; + return $this->sameAs; } /** - * @param string $disambiguatingDescription + * @param string $sameAs * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDisambiguatingDescription($disambiguatingDescription) + public function setSameAs($sameAs) { $types = [ "string", ]; - $disambiguatingDescription = self::checkTypes($disambiguatingDescription, $types); + $sameAs = self::checkTypes($sameAs, $types); - $this->disambiguatingDescription = $disambiguatingDescription; + $this->sameAs = $sameAs; + } + + /** + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|string + */ + public function getSubjectOf() + { + return $this->subjectOf; + } + + /** + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|string $subjectOf + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setSubjectOf($subjectOf) + { + $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Event", + "string", + ]; + + $subjectOf = self::checkTypes($subjectOf, $types); + + $this->subjectOf = $subjectOf; } /** * @return string */ - public function getSameAs() + public function getUrl() { - return $this->sameAs; + return $this->url; } /** - * @param string $sameAs + * @param string $url * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSameAs($sameAs) + public function setUrl($url) { $types = [ "string", ]; - $sameAs = self::checkTypes($sameAs, $types); + $url = self::checkTypes($url, $types); - $this->sameAs = $sameAs; + $this->url = $url; } } diff --git a/src/Models/SchemaOrg/Ticket.php b/src/Models/SchemaOrg/Ticket.php index a75f6f70..e0371c39 100644 --- a/src/Models/SchemaOrg/Ticket.php +++ b/src/Models/SchemaOrg/Ticket.php @@ -17,13 +17,13 @@ public static function getType() public static function fieldList() { $fields = [ + "dateIssued" => "dateIssued", + "issuedBy" => "issuedBy", + "priceCurrency" => "priceCurrency", + "ticketNumber" => "ticketNumber", "ticketToken" => "ticketToken", "ticketedSeat" => "ticketedSeat", "totalPrice" => "totalPrice", - "issuedBy" => "issuedBy", - "ticketNumber" => "ticketNumber", - "dateIssued" => "dateIssued", - "priceCurrency" => "priceCurrency", "underName" => "underName", ]; @@ -31,60 +31,60 @@ public static function fieldList() { } /** - * Reference to an asset (e.g., Barcode, QR code image or PDF) usable for entrance. + * The date the ticket was issued. * * - * @var string + * @var Date|DateTime|null */ - protected $ticketToken; + protected $dateIssued; /** - * The seat associated with the ticket. + * The organization issuing the item, for example a [[Permit]], [[Ticket]], or [[Certification]]. * * - * @var \OpenActive\Models\SchemaOrg\Seat|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $ticketedSeat; + protected $issuedBy; /** - * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @var string */ - protected $totalPrice; + protected $priceCurrency; /** - * The organization issuing the ticket or permit. + * The unique identifier for the ticket. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $issuedBy; + protected $ticketNumber; /** - * The unique identifier for the ticket. + * Reference to an asset (e.g., Barcode, QR code image or PDF) usable for entrance. * * * @var string */ - protected $ticketNumber; + protected $ticketToken; /** - * The date the ticket was issued. + * The seat associated with the ticket. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Seat|string */ - protected $dateIssued; + protected $ticketedSeat; /** - * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The total price for the reservation or ticket, including applicable taxes, shipping, etc.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * - * @var string + * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - protected $priceCurrency; + protected $totalPrice; /** * The person or organization the reservation or ticket is for. @@ -95,178 +95,178 @@ public static function fieldList() { protected $underName; /** - * @return string + * @return Date|DateTime|null */ - public function getTicketToken() + public function getDateIssued() { - return $this->ticketToken; + return $this->dateIssued; } /** - * @param string $ticketToken + * @param Date|DateTime|null $dateIssued * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTicketToken($ticketToken) + public function setDateIssued($dateIssued) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $ticketToken = self::checkTypes($ticketToken, $types); + $dateIssued = self::checkTypes($dateIssued, $types); - $this->ticketToken = $ticketToken; + $this->dateIssued = $dateIssued; } /** - * @return \OpenActive\Models\SchemaOrg\Seat|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getTicketedSeat() + public function getIssuedBy() { - return $this->ticketedSeat; + return $this->issuedBy; } /** - * @param \OpenActive\Models\SchemaOrg\Seat|string $ticketedSeat + * @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 setTicketedSeat($ticketedSeat) + public function setIssuedBy($issuedBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Seat", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $ticketedSeat = self::checkTypes($ticketedSeat, $types); + $issuedBy = self::checkTypes($issuedBy, $types); - $this->ticketedSeat = $ticketedSeat; + $this->issuedBy = $issuedBy; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @return string */ - public function getTotalPrice() + public function getPriceCurrency() { - return $this->totalPrice; + return $this->priceCurrency; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalPrice($totalPrice) + public function setPriceCurrency($priceCurrency) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", - "Number", - "null", ]; - $totalPrice = self::checkTypes($totalPrice, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->totalPrice = $totalPrice; + $this->priceCurrency = $priceCurrency; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getIssuedBy() + public function getTicketNumber() { - return $this->issuedBy; + return $this->ticketNumber; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $issuedBy + * @param string $ticketNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIssuedBy($issuedBy) + public function setTicketNumber($ticketNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $issuedBy = self::checkTypes($issuedBy, $types); + $ticketNumber = self::checkTypes($ticketNumber, $types); - $this->issuedBy = $issuedBy; + $this->ticketNumber = $ticketNumber; } /** * @return string */ - public function getTicketNumber() + public function getTicketToken() { - return $this->ticketNumber; + return $this->ticketToken; } /** - * @param string $ticketNumber + * @param string $ticketToken * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTicketNumber($ticketNumber) + public function setTicketToken($ticketToken) { $types = [ "string", ]; - $ticketNumber = self::checkTypes($ticketNumber, $types); + $ticketToken = self::checkTypes($ticketToken, $types); - $this->ticketNumber = $ticketNumber; + $this->ticketToken = $ticketToken; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Seat|string */ - public function getDateIssued() + public function getTicketedSeat() { - return $this->dateIssued; + return $this->ticketedSeat; } /** - * @param Date|DateTime|null $dateIssued + * @param \OpenActive\Models\SchemaOrg\Seat|string $ticketedSeat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateIssued($dateIssued) + public function setTicketedSeat($ticketedSeat) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Seat", + "string", ]; - $dateIssued = self::checkTypes($dateIssued, $types); + $ticketedSeat = self::checkTypes($ticketedSeat, $types); - $this->dateIssued = $dateIssued; + $this->ticketedSeat = $ticketedSeat; } /** - * @return string + * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - public function getPriceCurrency() + public function getTotalPrice() { - return $this->priceCurrency; + return $this->totalPrice; } /** - * @param string $priceCurrency + * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null $totalPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceCurrency($priceCurrency) + public function setTotalPrice($totalPrice) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", + "null", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $totalPrice = self::checkTypes($totalPrice, $types); - $this->priceCurrency = $priceCurrency; + $this->totalPrice = $totalPrice; } /** diff --git a/src/Models/SchemaOrg/TipAction.php b/src/Models/SchemaOrg/TipAction.php index 1096c425..f3c1855b 100644 --- a/src/Models/SchemaOrg/TipAction.php +++ b/src/Models/SchemaOrg/TipAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\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/TouristAttraction.php b/src/Models/SchemaOrg/TouristAttraction.php index dc3dd23b..7d84c085 100644 --- a/src/Models/SchemaOrg/TouristAttraction.php +++ b/src/Models/SchemaOrg/TouristAttraction.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "touristType" => "touristType", "availableLanguage" => "availableLanguage", + "touristType" => "touristType", ]; return array_merge(parent::fieldList(), $fields); } /** - * Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular country, etc. + * 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\Audience|string + * @var \OpenActive\Models\SchemaOrg\Language|string */ - protected $touristType; + 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]] + * Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $availableLanguage; + protected $touristType; /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getTouristType() + public function getAvailableLanguage() { - return $this->touristType; + return $this->availableLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType + * @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 setTouristType($touristType) + public function setAvailableLanguage($availableLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Language", "string", ]; - $touristType = self::checkTypes($touristType, $types); + $availableLanguage = self::checkTypes($availableLanguage, $types); - $this->touristType = $touristType; + $this->availableLanguage = $availableLanguage; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getAvailableLanguage() + public function getTouristType() { - return $this->availableLanguage; + return $this->touristType; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage + * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableLanguage($availableLanguage) + public function setTouristType($touristType) { $types = [ + "\OpenActive\Models\SchemaOrg\Audience", "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $availableLanguage = self::checkTypes($availableLanguage, $types); + $touristType = self::checkTypes($touristType, $types); - $this->availableLanguage = $availableLanguage; + $this->touristType = $touristType; } } diff --git a/src/Models/SchemaOrg/TouristDestination.php b/src/Models/SchemaOrg/TouristDestination.php index bf2b0912..c0fa2626 100644 --- a/src/Models/SchemaOrg/TouristDestination.php +++ b/src/Models/SchemaOrg/TouristDestination.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "touristType" => "touristType", "includesAttraction" => "includesAttraction", + "touristType" => "touristType", ]; return array_merge(parent::fieldList(), $fields); } /** - * Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular country, etc. + * Attraction located at destination. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\TouristAttraction|string */ - protected $touristType; + protected $includesAttraction; /** - * Attraction located at destination. + * Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc. * * - * @var \OpenActive\Models\SchemaOrg\TouristAttraction|string + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $includesAttraction; + protected $touristType; /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\TouristAttraction|string */ - public function getTouristType() + public function getIncludesAttraction() { - return $this->touristType; + return $this->includesAttraction; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType + * @param \OpenActive\Models\SchemaOrg\TouristAttraction|string $includesAttraction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTouristType($touristType) + public function setIncludesAttraction($includesAttraction) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\TouristAttraction", "string", ]; - $touristType = self::checkTypes($touristType, $types); + $includesAttraction = self::checkTypes($includesAttraction, $types); - $this->touristType = $touristType; + $this->includesAttraction = $includesAttraction; } /** - * @return \OpenActive\Models\SchemaOrg\TouristAttraction|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getIncludesAttraction() + public function getTouristType() { - return $this->includesAttraction; + return $this->touristType; } /** - * @param \OpenActive\Models\SchemaOrg\TouristAttraction|string $includesAttraction + * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludesAttraction($includesAttraction) + public function setTouristType($touristType) { $types = [ - "\OpenActive\Models\SchemaOrg\TouristAttraction", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $includesAttraction = self::checkTypes($includesAttraction, $types); + $touristType = self::checkTypes($touristType, $types); - $this->includesAttraction = $includesAttraction; + $this->touristType = $touristType; } } diff --git a/src/Models/SchemaOrg/TouristTrip.php b/src/Models/SchemaOrg/TouristTrip.php index e3a4e1a8..80b7b947 100644 --- a/src/Models/SchemaOrg/TouristTrip.php +++ b/src/Models/SchemaOrg/TouristTrip.php @@ -24,7 +24,7 @@ public static function fieldList() { } /** - * Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular country, etc. + * Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc. * * * @var \OpenActive\Models\SchemaOrg\Audience|string diff --git a/src/Models/SchemaOrg/TradeAction.php b/src/Models/SchemaOrg/TradeAction.php index abc0f7de..ec1bb682 100644 --- a/src/Models/SchemaOrg/TradeAction.php +++ b/src/Models/SchemaOrg/TradeAction.php @@ -17,16 +17,25 @@ public static function getType() public static function fieldList() { $fields = [ + "price" => "price", "priceCurrency" => "priceCurrency", "priceSpecification" => "priceSpecification", - "price" => "price", ]; return array_merge(parent::fieldList(), $fields); } /** - * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.\n\nUsage guidelines:\n\n* Use the [[priceCurrency]] property (with standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as '$' in the value.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.\n* Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols. + * + * + * + * @var string|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 @@ -42,13 +51,30 @@ public static function fieldList() { protected $priceSpecification; /** - * The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.\n\nUsage guidelines:\n\n* Use the [[priceCurrency]] property (with standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as '$' in the value.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.\n* Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols. - * - * - * - * @var string|Number|null + * @return string|Number|null */ - protected $price; + 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 @@ -99,30 +125,4 @@ public function setPriceSpecification($priceSpecification) $this->priceSpecification = $priceSpecification; } - /** - * @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; - } - } diff --git a/src/Models/SchemaOrg/TrainTrip.php b/src/Models/SchemaOrg/TrainTrip.php index 7160d977..6d8c62ab 100644 --- a/src/Models/SchemaOrg/TrainTrip.php +++ b/src/Models/SchemaOrg/TrainTrip.php @@ -17,32 +17,32 @@ public static function getType() public static function fieldList() { $fields = [ - "trainName" => "trainName", - "departureStation" => "departureStation", - "departurePlatform" => "departurePlatform", - "trainNumber" => "trainNumber", "arrivalPlatform" => "arrivalPlatform", "arrivalStation" => "arrivalStation", + "departurePlatform" => "departurePlatform", + "departureStation" => "departureStation", + "trainName" => "trainName", + "trainNumber" => "trainNumber", ]; return array_merge(parent::fieldList(), $fields); } /** - * The name of the train (e.g. The Orient Express). + * The platform where the train arrives. * * * @var string */ - protected $trainName; + protected $arrivalPlatform; /** - * The station from which the train departs. + * The station where the train trip ends. * * * @var \OpenActive\Models\SchemaOrg\TrainStation|string */ - protected $departureStation; + protected $arrivalStation; /** * The platform from which the train departs. @@ -53,76 +53,76 @@ public static function fieldList() { protected $departurePlatform; /** - * The unique identifier for the train. + * The station from which the train departs. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\TrainStation|string */ - protected $trainNumber; + protected $departureStation; /** - * The platform where the train arrives. + * The name of the train (e.g. The Orient Express). * * * @var string */ - protected $arrivalPlatform; + protected $trainName; /** - * The station where the train trip ends. + * The unique identifier for the train. * * - * @var \OpenActive\Models\SchemaOrg\TrainStation|string + * @var string */ - protected $arrivalStation; + protected $trainNumber; /** * @return string */ - public function getTrainName() + public function getArrivalPlatform() { - return $this->trainName; + return $this->arrivalPlatform; } /** - * @param string $trainName + * @param string $arrivalPlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrainName($trainName) + public function setArrivalPlatform($arrivalPlatform) { $types = [ "string", ]; - $trainName = self::checkTypes($trainName, $types); + $arrivalPlatform = self::checkTypes($arrivalPlatform, $types); - $this->trainName = $trainName; + $this->arrivalPlatform = $arrivalPlatform; } /** * @return \OpenActive\Models\SchemaOrg\TrainStation|string */ - public function getDepartureStation() + public function getArrivalStation() { - return $this->departureStation; + return $this->arrivalStation; } /** - * @param \OpenActive\Models\SchemaOrg\TrainStation|string $departureStation + * @param \OpenActive\Models\SchemaOrg\TrainStation|string $arrivalStation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureStation($departureStation) + public function setArrivalStation($arrivalStation) { $types = [ "\OpenActive\Models\SchemaOrg\TrainStation", "string", ]; - $departureStation = self::checkTypes($departureStation, $types); + $arrivalStation = self::checkTypes($arrivalStation, $types); - $this->departureStation = $departureStation; + $this->arrivalStation = $arrivalStation; } /** @@ -150,76 +150,76 @@ public function setDeparturePlatform($departurePlatform) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\TrainStation|string */ - public function getTrainNumber() + public function getDepartureStation() { - return $this->trainNumber; + return $this->departureStation; } /** - * @param string $trainNumber + * @param \OpenActive\Models\SchemaOrg\TrainStation|string $departureStation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrainNumber($trainNumber) + public function setDepartureStation($departureStation) { $types = [ + "\OpenActive\Models\SchemaOrg\TrainStation", "string", ]; - $trainNumber = self::checkTypes($trainNumber, $types); + $departureStation = self::checkTypes($departureStation, $types); - $this->trainNumber = $trainNumber; + $this->departureStation = $departureStation; } /** * @return string */ - public function getArrivalPlatform() + public function getTrainName() { - return $this->arrivalPlatform; + return $this->trainName; } /** - * @param string $arrivalPlatform + * @param string $trainName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalPlatform($arrivalPlatform) + public function setTrainName($trainName) { $types = [ "string", ]; - $arrivalPlatform = self::checkTypes($arrivalPlatform, $types); + $trainName = self::checkTypes($trainName, $types); - $this->arrivalPlatform = $arrivalPlatform; + $this->trainName = $trainName; } /** - * @return \OpenActive\Models\SchemaOrg\TrainStation|string + * @return string */ - public function getArrivalStation() + public function getTrainNumber() { - return $this->arrivalStation; + return $this->trainNumber; } /** - * @param \OpenActive\Models\SchemaOrg\TrainStation|string $arrivalStation + * @param string $trainNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalStation($arrivalStation) + public function setTrainNumber($trainNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\TrainStation", "string", ]; - $arrivalStation = self::checkTypes($arrivalStation, $types); + $trainNumber = self::checkTypes($trainNumber, $types); - $this->arrivalStation = $arrivalStation; + $this->trainNumber = $trainNumber; } } diff --git a/src/Models/SchemaOrg/Trip.php b/src/Models/SchemaOrg/Trip.php index 552d9ac3..a3aca6a9 100644 --- a/src/Models/SchemaOrg/Trip.php +++ b/src/Models/SchemaOrg/Trip.php @@ -18,12 +18,13 @@ public static function getType() public static function fieldList() { $fields = [ "arrivalTime" => "arrivalTime", - "offers" => "offers", "departureTime" => "departureTime", - "provider" => "provider", - "subTrip" => "subTrip", "itinerary" => "itinerary", + "offers" => "offers", "partOfTrip" => "partOfTrip", + "provider" => "provider", + "subTrip" => "subTrip", + "tripOrigin" => "tripOrigin", ]; return array_merge(parent::fieldList(), $fields); @@ -37,22 +38,38 @@ public static function fieldList() { */ protected $arrivalTime; + /** + * The expected departure time. + * + * + * @var DateTime|string|null + */ + protected $departureTime; + + /** + * Destination(s) ( [[Place]] ) that make up a trip. For a trip where destination order is important use [[ItemList]] to specify that order (see examples). + * + * + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string + */ + protected $itinerary; + /** * 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 + * @var \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ protected $offers; /** - * The expected departure time. + * Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip. * * - * @var DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\Trip|string */ - protected $departureTime; + protected $partOfTrip; /** * 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. @@ -71,20 +88,12 @@ public static function fieldList() { protected $subTrip; /** - * Destination(s) ( [[Place]] ) that make up a trip. For a trip where destination order is important use [[ItemList]] to specify that order (see examples). + * The location of origin of the trip, prior to any destination(s). * * - * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $itinerary; - - /** - * Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip. - * - * - * @var \OpenActive\Models\SchemaOrg\Trip|string - */ - protected $partOfTrip; + protected $tripOrigin; /** * @return DateTime|string|null @@ -113,7 +122,59 @@ public function setArrivalTime($arrivalTime) } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return DateTime|string|null + */ + public function getDepartureTime() + { + return $this->departureTime; + } + + /** + * @param DateTime|string|null $departureTime + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDepartureTime($departureTime) + { + $types = [ + "DateTime", + "Time", + "null", + ]; + + $departureTime = self::checkTypes($departureTime, $types); + + $this->departureTime = $departureTime; + } + + /** + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string + */ + public function getItinerary() + { + return $this->itinerary; + } + + /** + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string $itinerary + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setItinerary($itinerary) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\Place", + "string", + ]; + + $itinerary = self::checkTypes($itinerary, $types); + + $this->itinerary = $itinerary; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Demand|\OpenActive\Models\SchemaOrg\Offer|string */ public function getOffers() { @@ -121,15 +182,15 @@ public function getOffers() } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $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\Offer", "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; @@ -139,29 +200,28 @@ public function setOffers($offers) } /** - * @return DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Trip|string */ - public function getDepartureTime() + public function getPartOfTrip() { - return $this->departureTime; + return $this->partOfTrip; } /** - * @param DateTime|string|null $departureTime + * @param \OpenActive\Models\SchemaOrg\Trip|string $partOfTrip * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureTime($departureTime) + public function setPartOfTrip($partOfTrip) { $types = [ - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\Trip", + "string", ]; - $departureTime = self::checkTypes($departureTime, $types); + $partOfTrip = self::checkTypes($partOfTrip, $types); - $this->departureTime = $departureTime; + $this->partOfTrip = $partOfTrip; } /** @@ -216,54 +276,28 @@ public function setSubTrip($subTrip) } /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getItinerary() + public function getTripOrigin() { - return $this->itinerary; + return $this->tripOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string $itinerary + * @param \OpenActive\Models\SchemaOrg\Place|string $tripOrigin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItinerary($itinerary) + public function setTripOrigin($tripOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $itinerary = self::checkTypes($itinerary, $types); - - $this->itinerary = $itinerary; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Trip|string - */ - public function getPartOfTrip() - { - return $this->partOfTrip; - } - - /** - * @param \OpenActive\Models\SchemaOrg\Trip|string $partOfTrip - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setPartOfTrip($partOfTrip) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Trip", - "string", - ]; - - $partOfTrip = self::checkTypes($partOfTrip, $types); + $tripOrigin = self::checkTypes($tripOrigin, $types); - $this->partOfTrip = $partOfTrip; + $this->tripOrigin = $tripOrigin; } } diff --git a/src/Models/SchemaOrg/TypeAndQuantityNode.php b/src/Models/SchemaOrg/TypeAndQuantityNode.php index ffab830a..3eb7003b 100644 --- a/src/Models/SchemaOrg/TypeAndQuantityNode.php +++ b/src/Models/SchemaOrg/TypeAndQuantityNode.php @@ -17,24 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ - "unitText" => "unitText", + "amountOfThisGood" => "amountOfThisGood", "businessFunction" => "businessFunction", "typeOfGood" => "typeOfGood", - "amountOfThisGood" => "amountOfThisGood", "unitCode" => "unitCode", + "unitText" => "unitText", ]; return array_merge(parent::fieldList(), $fields); } /** - * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for - * unitCode. + * The quantity of the goods included in the offer. * * - * @var string + * @var Number|null */ - protected $unitText; + protected $amountOfThisGood; /** * 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. @@ -53,43 +52,45 @@ public static function fieldList() { protected $typeOfGood; /** - * The quantity of the goods included in the offer. + * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. * * - * @var Number|null + * @var string */ - protected $amountOfThisGood; + protected $unitCode; /** - * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. + * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for + * unitCode. * * * @var string */ - protected $unitCode; + protected $unitText; /** - * @return string + * @return Number|null */ - public function getUnitText() + public function getAmountOfThisGood() { - return $this->unitText; + return $this->amountOfThisGood; } /** - * @param string $unitText + * @param Number|null $amountOfThisGood * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setAmountOfThisGood($amountOfThisGood) { $types = [ - "string", + "Number", + "null", ]; - $unitText = self::checkTypes($unitText, $types); + $amountOfThisGood = self::checkTypes($amountOfThisGood, $types); - $this->unitText = $unitText; + $this->amountOfThisGood = $amountOfThisGood; } /** @@ -144,52 +145,51 @@ public function setTypeOfGood($typeOfGood) } /** - * @return Number|null + * @return string */ - public function getAmountOfThisGood() + public function getUnitCode() { - return $this->amountOfThisGood; + return $this->unitCode; } /** - * @param Number|null $amountOfThisGood + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAmountOfThisGood($amountOfThisGood) + public function setUnitCode($unitCode) { $types = [ - "Number", - "null", + "string", ]; - $amountOfThisGood = self::checkTypes($amountOfThisGood, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->amountOfThisGood = $amountOfThisGood; + $this->unitCode = $unitCode; } /** * @return string */ - public function getUnitCode() + public function getUnitText() { - return $this->unitCode; + return $this->unitText; } /** - * @param string $unitCode + * @param string $unitText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitCode($unitCode) + public function setUnitText($unitText) { $types = [ "string", ]; - $unitCode = self::checkTypes($unitCode, $types); + $unitText = self::checkTypes($unitText, $types); - $this->unitCode = $unitCode; + $this->unitText = $unitText; } } diff --git a/src/Models/SchemaOrg/UnitPriceSpecification.php b/src/Models/SchemaOrg/UnitPriceSpecification.php index dec83bd4..76dd434f 100644 --- a/src/Models/SchemaOrg/UnitPriceSpecification.php +++ b/src/Models/SchemaOrg/UnitPriceSpecification.php @@ -17,59 +17,58 @@ public static function getType() public static function fieldList() { $fields = [ - "priceType" => "priceType", - "unitText" => "unitText", - "billingIncrement" => "billingIncrement", - "unitCode" => "unitCode", "billingDuration" => "billingDuration", - "referenceQuantity" => "referenceQuantity", - "priceComponentType" => "priceComponentType", + "billingIncrement" => "billingIncrement", "billingStart" => "billingStart", + "priceComponentType" => "priceComponentType", + "priceType" => "priceType", + "referenceQuantity" => "referenceQuantity", + "unitCode" => "unitCode", + "unitText" => "unitText", ]; return array_merge(parent::fieldList(), $fields); } /** - * Defines the type of a price specified for an offered product, for example a list price, a (temporary) sale price or a manufacturer suggested retail price. If multiple prices are specified for an offer the [[priceType]] property can be used to identify the type of each such specified price. The value of priceType can be specified as a value from enumeration PriceTypeEnumeration or as a free form text string for price types that are not already predefined in PriceTypeEnumeration. + * Specifies for how long this price (or price component) will be billed. Can be used, for example, to model the contractual duration of a subscription or payment plan. Type can be either a Duration or a Number (in which case the unit of measurement, for example month, is specified by the unitCode property). * * - * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null + * @var DateInterval|Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $priceType; + protected $billingDuration; /** - * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for - * unitCode. + * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. * * - * @var string + * @var Number|null */ - protected $unitText; + protected $billingIncrement; /** - * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. + * Specifies after how much time this price (or price component) becomes valid and billing starts. Can be used, for example, to model a price increase after the first year of a subscription. The unit of measurement is specified by the unitCode property. * * * @var Number|null */ - protected $billingIncrement; + protected $billingStart; /** - * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. + * Identifies a price component (for example, a line item on an invoice), part of the total price for an offer. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null */ - protected $unitCode; + protected $priceComponentType; /** - * Specifies for how long this price (or price component) will be billed. Can be used, for example, to model the contractual duration of a subscription or payment plan. Type can be either a Duration or a Number (in which case the unit of measurement, for example month, is specified by the unitCode property). + * 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 DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null */ - protected $billingDuration; + protected $priceType; /** * The reference quantity for which a certain price applies, e.g. 1 EUR per 4 kWh of electricity. This property is a replacement for unitOfMeasurement for the advanced cases where the price does not relate to a standard unit. @@ -80,146 +79,149 @@ public static function fieldList() { protected $referenceQuantity; /** - * Identifies a price component (for example, a line item on an invoice), part of the total price for an offer. + * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. * * - * @var \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null + * @var string */ - protected $priceComponentType; + protected $unitCode; /** - * Specifies after how much time this price (or price component) becomes valid and billing starts. Can be used, for example, to model a price increase after the first year of a subscription. The unit of measurement is specified by the unitCode property. + * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for + * unitCode. * * - * @var Number|null + * @var string */ - protected $billingStart; + protected $unitText; /** - * @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null + * @return DateInterval|Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getPriceType() + public function getBillingDuration() { - return $this->priceType; + return $this->billingDuration; } /** - * @param \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null $priceType + * @param DateInterval|Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $billingDuration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceType($priceType) + public function setBillingDuration($billingDuration) { $types = [ - "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration", + "DateInterval", + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", "null", ]; - $priceType = self::checkTypes($priceType, $types); + $billingDuration = self::checkTypes($billingDuration, $types); - $this->priceType = $priceType; + $this->billingDuration = $billingDuration; } /** - * @return string + * @return Number|null */ - public function getUnitText() + public function getBillingIncrement() { - return $this->unitText; + return $this->billingIncrement; } /** - * @param string $unitText + * @param Number|null $billingIncrement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setBillingIncrement($billingIncrement) { $types = [ - "string", + "Number", + "null", ]; - $unitText = self::checkTypes($unitText, $types); + $billingIncrement = self::checkTypes($billingIncrement, $types); - $this->unitText = $unitText; + $this->billingIncrement = $billingIncrement; } /** * @return Number|null */ - public function getBillingIncrement() + public function getBillingStart() { - return $this->billingIncrement; + return $this->billingStart; } /** - * @param Number|null $billingIncrement + * @param Number|null $billingStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBillingIncrement($billingIncrement) + public function setBillingStart($billingStart) { $types = [ "Number", "null", ]; - $billingIncrement = self::checkTypes($billingIncrement, $types); + $billingStart = self::checkTypes($billingStart, $types); - $this->billingIncrement = $billingIncrement; + $this->billingStart = $billingStart; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null */ - public function getUnitCode() + public function getPriceComponentType() { - return $this->unitCode; + return $this->priceComponentType; } /** - * @param string $unitCode + * @param \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null $priceComponentType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitCode($unitCode) + public function setPriceComponentType($priceComponentType) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration", + "null", ]; - $unitCode = self::checkTypes($unitCode, $types); + $priceComponentType = self::checkTypes($priceComponentType, $types); - $this->unitCode = $unitCode; + $this->priceComponentType = $priceComponentType; } /** - * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null */ - public function getBillingDuration() + public function getPriceType() { - return $this->billingDuration; + return $this->priceType; } /** - * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $billingDuration + * @param \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null $priceType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBillingDuration($billingDuration) + public function setPriceType($priceType) { $types = [ - "DateInterval", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration", "string", - "Number", "null", ]; - $billingDuration = self::checkTypes($billingDuration, $types); + $priceType = self::checkTypes($priceType, $types); - $this->billingDuration = $billingDuration; + $this->priceType = $priceType; } /** @@ -248,53 +250,51 @@ public function setReferenceQuantity($referenceQuantity) } /** - * @return \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null + * @return string */ - public function getPriceComponentType() + public function getUnitCode() { - return $this->priceComponentType; + return $this->unitCode; } /** - * @param \OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration|null $priceComponentType + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceComponentType($priceComponentType) + public function setUnitCode($unitCode) { $types = [ - "\OpenActive\Enums\SchemaOrg\PriceComponentTypeEnumeration", - "null", + "string", ]; - $priceComponentType = self::checkTypes($priceComponentType, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->priceComponentType = $priceComponentType; + $this->unitCode = $unitCode; } /** - * @return Number|null + * @return string */ - public function getBillingStart() + public function getUnitText() { - return $this->billingStart; + return $this->unitText; } /** - * @param Number|null $billingStart + * @param string $unitText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBillingStart($billingStart) + public function setUnitText($unitText) { $types = [ - "Number", - "null", + "string", ]; - $billingStart = self::checkTypes($billingStart, $types); + $unitText = self::checkTypes($unitText, $types); - $this->billingStart = $billingStart; + $this->unitText = $unitText; } } diff --git a/src/Models/SchemaOrg/UpdateAction.php b/src/Models/SchemaOrg/UpdateAction.php index 4ac93653..17d84639 100644 --- a/src/Models/SchemaOrg/UpdateAction.php +++ b/src/Models/SchemaOrg/UpdateAction.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "targetCollection" => "targetCollection", "collection" => "collection", + "targetCollection" => "targetCollection", ]; return array_merge(parent::fieldList(), $fields); @@ -30,7 +30,7 @@ public static function fieldList() { * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $targetCollection; + protected $collection; /** * A sub property of object. The collection target of the action. @@ -38,56 +38,56 @@ public static function fieldList() { * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $collection; + protected $targetCollection; /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getTargetCollection() + public function getCollection() { - return $this->targetCollection; + return $this->collection; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $targetCollection + * @param \OpenActive\Models\SchemaOrg\Thing|string $collection * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTargetCollection($targetCollection) + public function setCollection($collection) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $targetCollection = self::checkTypes($targetCollection, $types); + $collection = self::checkTypes($collection, $types); - $this->targetCollection = $targetCollection; + $this->collection = $collection; } /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getCollection() + public function getTargetCollection() { - return $this->collection; + return $this->targetCollection; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $collection + * @param \OpenActive\Models\SchemaOrg\Thing|string $targetCollection * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCollection($collection) + public function setTargetCollection($targetCollection) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $collection = self::checkTypes($collection, $types); + $targetCollection = self::checkTypes($targetCollection, $types); - $this->collection = $collection; + $this->targetCollection = $targetCollection; } } diff --git a/src/Models/SchemaOrg/UserComments.php b/src/Models/SchemaOrg/UserComments.php index 16f3cdf5..34d8e8cc 100644 --- a/src/Models/SchemaOrg/UserComments.php +++ b/src/Models/SchemaOrg/UserComments.php @@ -17,179 +17,179 @@ public static function getType() public static function fieldList() { $fields = [ - "replyToUrl" => "replyToUrl", - "discusses" => "discusses", - "commentTime" => "commentTime", "commentText" => "commentText", + "commentTime" => "commentTime", "creator" => "creator", + "discusses" => "discusses", + "replyToUrl" => "replyToUrl", ]; return array_merge(parent::fieldList(), $fields); } /** - * The URL at which a reply may be posted to the specified UserComment. + * The text of the UserComment. * * * @var string */ - protected $replyToUrl; + protected $commentText; /** - * Specifies the CreativeWork associated with the UserComment. + * The time at which the UserComment was made. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var Date|DateTime|null */ - protected $discusses; + protected $commentTime; /** - * The time at which the UserComment was made. + * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $commentTime; + protected $creator; /** - * The text of the UserComment. + * Specifies the CreativeWork associated with the UserComment. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $commentText; + protected $discusses; /** - * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. + * The URL at which a reply may be posted to the specified UserComment. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $creator; + protected $replyToUrl; /** * @return string */ - public function getReplyToUrl() + public function getCommentText() { - return $this->replyToUrl; + return $this->commentText; } /** - * @param string $replyToUrl + * @param string $commentText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReplyToUrl($replyToUrl) + public function setCommentText($commentText) { $types = [ "string", ]; - $replyToUrl = self::checkTypes($replyToUrl, $types); + $commentText = self::checkTypes($commentText, $types); - $this->replyToUrl = $replyToUrl; + $this->commentText = $commentText; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return Date|DateTime|null */ - public function getDiscusses() + public function getCommentTime() { - return $this->discusses; + return $this->commentTime; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $discusses + * @param Date|DateTime|null $commentTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscusses($discusses) + public function setCommentTime($commentTime) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", - "string", + "Date", + "DateTime", + "null", ]; - $discusses = self::checkTypes($discusses, $types); + $commentTime = self::checkTypes($commentTime, $types); - $this->discusses = $discusses; + $this->commentTime = $commentTime; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getCommentTime() + public function getCreator() { - return $this->commentTime; + return $this->creator; } /** - * @param Date|DateTime|null $commentTime + * @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 setCommentTime($commentTime) + public function setCreator($creator) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $commentTime = self::checkTypes($commentTime, $types); + $creator = self::checkTypes($creator, $types); - $this->commentTime = $commentTime; + $this->creator = $creator; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getCommentText() + public function getDiscusses() { - return $this->commentText; + return $this->discusses; } /** - * @param string $commentText + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $discusses * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCommentText($commentText) + public function setDiscusses($discusses) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $commentText = self::checkTypes($commentText, $types); + $discusses = self::checkTypes($discusses, $types); - $this->commentText = $commentText; + $this->discusses = $discusses; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getCreator() + public function getReplyToUrl() { - return $this->creator; + return $this->replyToUrl; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creator + * @param string $replyToUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCreator($creator) + public function setReplyToUrl($replyToUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $creator = self::checkTypes($creator, $types); + $replyToUrl = self::checkTypes($replyToUrl, $types); - $this->creator = $creator; + $this->replyToUrl = $replyToUrl; } } diff --git a/src/Models/SchemaOrg/VacationRental.php b/src/Models/SchemaOrg/VacationRental.php new file mode 100644 index 00000000..2efcad55 --- /dev/null +++ b/src/Models/SchemaOrg/VacationRental.php @@ -0,0 +1,25 @@ + "fuelCapacity", "accelerationTime" => "accelerationTime", - "speed" => "speed", - "trailerWeight" => "trailerWeight", - "vehicleEngine" => "vehicleEngine", - "emissionsCO2" => "emissionsCO2", - "purchaseDate" => "purchaseDate", - "numberOfForwardGears" => "numberOfForwardGears", - "weightTotal" => "weightTotal", - "productionDate" => "productionDate", - "numberOfPreviousOwners" => "numberOfPreviousOwners", - "steeringPosition" => "steeringPosition", - "wheelbase" => "wheelbase", - "vehicleInteriorType" => "vehicleInteriorType", - "numberOfAirbags" => "numberOfAirbags", - "fuelType" => "fuelType", + "bodyType" => "bodyType", + "callSign" => "callSign", "cargoVolume" => "cargoVolume", - "vehicleTransmission" => "vehicleTransmission", - "payload" => "payload", + "dateVehicleFirstRegistered" => "dateVehicleFirstRegistered", "driveWheelConfiguration" => "driveWheelConfiguration", - "knownVehicleDamages" => "knownVehicleDamages", + "emissionsCO2" => "emissionsCO2", + "fuelCapacity" => "fuelCapacity", "fuelConsumption" => "fuelConsumption", - "vehicleInteriorColor" => "vehicleInteriorColor", - "numberOfAxles" => "numberOfAxles", + "fuelEfficiency" => "fuelEfficiency", + "fuelType" => "fuelType", + "knownVehicleDamages" => "knownVehicleDamages", + "meetsEmissionStandard" => "meetsEmissionStandard", + "mileageFromOdometer" => "mileageFromOdometer", "modelDate" => "modelDate", + "numberOfAirbags" => "numberOfAirbags", + "numberOfAxles" => "numberOfAxles", "numberOfDoors" => "numberOfDoors", - "vehicleSeatingCapacity" => "vehicleSeatingCapacity", - "callSign" => "callSign", + "numberOfForwardGears" => "numberOfForwardGears", + "numberOfPreviousOwners" => "numberOfPreviousOwners", + "payload" => "payload", + "productionDate" => "productionDate", + "purchaseDate" => "purchaseDate", + "seatingCapacity" => "seatingCapacity", + "speed" => "speed", + "steeringPosition" => "steeringPosition", "tongueWeight" => "tongueWeight", - "fuelEfficiency" => "fuelEfficiency", - "vehicleModelDate" => "vehicleModelDate", + "trailerWeight" => "trailerWeight", "vehicleConfiguration" => "vehicleConfiguration", - "mileageFromOdometer" => "mileageFromOdometer", - "seatingCapacity" => "seatingCapacity", - "bodyType" => "bodyType", - "dateVehicleFirstRegistered" => "dateVehicleFirstRegistered", + "vehicleEngine" => "vehicleEngine", "vehicleIdentificationNumber" => "vehicleIdentificationNumber", - "meetsEmissionStandard" => "meetsEmissionStandard", + "vehicleInteriorColor" => "vehicleInteriorColor", + "vehicleInteriorType" => "vehicleInteriorType", + "vehicleModelDate" => "vehicleModelDate", + "vehicleSeatingCapacity" => "vehicleSeatingCapacity", "vehicleSpecialUsage" => "vehicleSpecialUsage", + "vehicleTransmission" => "vehicleTransmission", + "weightTotal" => "weightTotal", + "wheelbase" => "wheelbase", ]; return array_merge(parent::fieldList(), $fields); } /** - * The capacity of the fuel tank or in the case of electric cars, the battery. If there are multiple components for storage, this should indicate the total of all storage of the same type.\n\nTypical unit code(s): LTR for liters, GLL of US gallons, GLI for UK / imperial gallons, AMH for ampere-hours (for electrical vehicles). + * The time needed to accelerate the vehicle from a given start velocity to a given target velocity.\n\nTypical unit code(s): SEC for seconds\n\n* Note: There are unfortunately no standard unit codes for seconds/0..100 km/h or seconds/0..60 mph. Simply use "SEC" for seconds and indicate the velocities in the [[name]] of the [[QuantitativeValue]], or use [[valueReference]] with a [[QuantitativeValue]] of 0..60 mph or 0..100 km/h to specify the reference speeds. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $fuelCapacity; + protected $accelerationTime; /** - * The time needed to accelerate the vehicle from a given start velocity to a given target velocity.\n\nTypical unit code(s): SEC for seconds\n\n* Note: There are unfortunately no standard unit codes for seconds/0..100 km/h or seconds/0..60 mph. Simply use "SEC" for seconds and indicate the velocities in the [[name]] of the [[QuantitativeValue]], or use [[valueReference]] with a [[QuantitativeValue]] of 0..60 mph or 0..100 km/h to specify the reference speeds. + * Indicates the design and body style of the vehicle (e.g. station wagon, hatchback, etc.). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $accelerationTime; + protected $bodyType; /** - * The speed range of the vehicle. If the vehicle is powered by an engine, the upper limit of the speed range (indicated by [[maxValue]] should be the maximum speed achievable under regular conditions.\n\nTypical unit code(s): KMH for km/h, HM for mile per hour (0.447 04 m/s), KNT for knot\n\n*Note 1: Use [[minValue]] and [[maxValue]] to indicate the range. Typically, the minimal value is zero.\n* Note 2: There are many different ways of measuring the speed range. You can link to information about how the given value has been determined using the [[valueReference]] property. + * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $speed; + protected $callSign; /** - * The permitted weight of a trailer attached to the vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. + * The available volume for cargo or luggage. For automobiles, this is usually the trunk volume.\n\nTypical unit code(s): LTR for liters, FTQ for cubic foot/feet\n\nNote: You can use [[minValue]] and [[maxValue]] to indicate ranges. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $trailerWeight; + protected $cargoVolume; /** - * Information about the engine or engines of the vehicle. + * The date of the first registration of the vehicle with the respective public authorities. * * - * @var \OpenActive\Models\SchemaOrg\EngineSpecification|string + * @var Date|null */ - protected $vehicleEngine; + protected $dateVehicleFirstRegistered; + + /** + * The drive wheel configuration, i.e. which roadwheels will receive torque from the vehicle's engine via the drivetrain. + * + * + * @var \OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue|string + */ + protected $driveWheelConfiguration; /** * The CO2 emissions in g/km. When used in combination with a QuantitativeValue, put "g/km" into the unitText property of that value, since there is no UN/CEFACT Common Code for "g/km". @@ -110,68 +118,68 @@ public static function fieldList() { protected $emissionsCO2; /** - * The date the item e.g. vehicle was purchased by the current owner. + * The capacity of the fuel tank or in the case of electric cars, the battery. If there are multiple components for storage, this should indicate the total of all storage of the same type.\n\nTypical unit code(s): LTR for liters, GLL of US gallons, GLI for UK / imperial gallons, AMH for ampere-hours (for electrical vehicles). * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $purchaseDate; + protected $fuelCapacity; /** - * The total number of forward gears available for the transmission system of the vehicle.\n\nTypical unit code(s): C62 + * The amount of fuel consumed for traveling a particular distance or temporal duration with the given vehicle (e.g. liters per 100 km).\n\n* Note 1: There are unfortunately no standard unit codes for liters per 100 km. Use [[unitText]] to indicate the unit of measurement, e.g. L/100 km.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel consumption to another value. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfForwardGears; + protected $fuelConsumption; /** - * The permitted total weight of the loaded vehicle, including passengers and cargo and the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. + * The distance traveled per unit of fuel used; most commonly miles per gallon (mpg) or kilometers per liter (km/L).\n\n* Note 1: There are unfortunately no standard unit codes for miles per gallon or kilometers per liter. Use [[unitText]] to indicate the unit of measurement, e.g. mpg or km/L.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel economy to another value. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $weightTotal; + protected $fuelEfficiency; /** - * The date of production of the item, e.g. vehicle. + * The type of fuel suitable for the engine or engines of the vehicle. If the vehicle has only one engine, this property can be attached directly to the vehicle. * * - * @var Date|null + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $productionDate; + protected $fuelType; /** - * The number of owners of the vehicle, including the current one.\n\nTypical unit code(s): C62 + * A textual description of known damages, both repaired and unrepaired. * * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var string */ - protected $numberOfPreviousOwners; + protected $knownVehicleDamages; /** - * The position of the steering wheel or similar device (mostly for cars). + * Indicates that the vehicle meets the respective emission standard. * * - * @var \OpenActive\Models\SchemaOrg\SteeringPositionValue|string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $steeringPosition; + protected $meetsEmissionStandard; /** - * The distance between the centers of the front and rear wheels.\n\nTypical unit code(s): CMT for centimeters, MTR for meters, INH for inches, FOT for foot/feet + * The total distance travelled by the particular vehicle since its initial production, as read from its odometer.\n\nTypical unit code(s): KMT for kilometers, SMI for statute miles. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $wheelbase; + protected $mileageFromOdometer; /** - * The type or material of the interior of the vehicle (e.g. synthetic fabric, leather, wood, etc.). While most interior types are characterized by the material used, an interior type can also be based on vehicle usage or target audience. + * The release date of a vehicle model (often used to differentiate versions of the same make and model). * * - * @var string + * @var Date|null */ - protected $vehicleInteriorType; + protected $modelDate; /** * The number or type of airbags in the vehicle. @@ -182,320 +190,337 @@ public static function fieldList() { protected $numberOfAirbags; /** - * 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 string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null - */ - protected $fuelType; - - /** - * The available volume for cargo or luggage. For automobiles, this is usually the trunk volume.\n\nTypical unit code(s): LTR for liters, FTQ for cubic foot/feet\n\nNote: You can use [[minValue]] and [[maxValue]] to indicate ranges. + * The number of axles.\n\nTypical unit code(s): C62. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $cargoVolume; + protected $numberOfAxles; /** - * The type of component used for transmitting the power from a rotating power source to the wheels or other relevant component(s) ("gearbox" for cars). + * The number of doors.\n\nTypical unit code(s): C62. * * - * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $vehicleTransmission; + protected $numberOfDoors; /** - * The permitted weight of passengers and cargo, EXCLUDING the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: Many databases specify the permitted TOTAL weight instead, which is the sum of [[weight]] and [[payload]]\n* Note 2: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 3: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 4: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. + * The total number of forward gears available for the transmission system of the vehicle.\n\nTypical unit code(s): C62. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $payload; + protected $numberOfForwardGears; /** - * The drive wheel configuration, i.e. which roadwheels will receive torque from the vehicle's engine via the drivetrain. + * The number of owners of the vehicle, including the current one.\n\nTypical unit code(s): C62. * * - * @var string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $driveWheelConfiguration; + protected $numberOfPreviousOwners; /** - * A textual description of known damages, both repaired and unrepaired. + * The permitted weight of passengers and cargo, EXCLUDING the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: Many databases specify the permitted TOTAL weight instead, which is the sum of [[weight]] and [[payload]]\n* Note 2: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 3: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 4: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $knownVehicleDamages; + protected $payload; /** - * The amount of fuel consumed for traveling a particular distance or temporal duration with the given vehicle (e.g. liters per 100 km).\n\n* Note 1: There are unfortunately no standard unit codes for liters per 100 km. Use [[unitText]] to indicate the unit of measurement, e.g. L/100 km.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel consumption to another value. + * The date of production of the item, e.g. vehicle. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Date|null */ - protected $fuelConsumption; + protected $productionDate; /** - * The color or color combination of the interior of the vehicle. + * The date the item, e.g. vehicle, was purchased by the current owner. * * - * @var string + * @var Date|null */ - protected $vehicleInteriorColor; + protected $purchaseDate; /** - * The number of axles.\n\nTypical unit code(s): C62 + * The number of persons that can be seated (e.g. in a vehicle), both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons. * * * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $numberOfAxles; + protected $seatingCapacity; /** - * The release date of a vehicle model (often used to differentiate versions of the same make and model). + * The speed range of the vehicle. If the vehicle is powered by an engine, the upper limit of the speed range (indicated by [[maxValue]]) should be the maximum speed achievable under regular conditions.\n\nTypical unit code(s): KMH for km/h, HM for mile per hour (0.447 04 m/s), KNT for knot\n\n*Note 1: Use [[minValue]] and [[maxValue]] to indicate the range. Typically, the minimal value is zero.\n* Note 2: There are many different ways of measuring the speed range. You can link to information about how the given value has been determined using the [[valueReference]] property. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $modelDate; + protected $speed; /** - * The number of doors.\n\nTypical unit code(s): C62 + * The position of the steering wheel or similar device (mostly for cars). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\SteeringPositionValue|string */ - protected $numberOfDoors; + protected $steeringPosition; /** - * The number of passengers that can be seated in the vehicle, both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons. + * The permitted vertical load (TWR) of a trailer attached to the vehicle. Also referred to as Tongue Load Rating (TLR) or Vertical Load Rating (VLR).\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleSeatingCapacity; + protected $tongueWeight; /** - * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles. + * The permitted weight of a trailer attached to the vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $callSign; + protected $trailerWeight; /** - * The permitted vertical load (TWR) of a trailer attached to the vehicle. Also referred to as Tongue Load Rating (TLR) or Vertical Load Rating (VLR)\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. + * A short text indicating the configuration of the vehicle, e.g. '5dr hatchback ST 2.5 MT 225 hp' or 'limited edition'. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $tongueWeight; + protected $vehicleConfiguration; /** - * The distance traveled per unit of fuel used; most commonly miles per gallon (mpg) or kilometers per liter (km/L).\n\n* Note 1: There are unfortunately no standard unit codes for miles per gallon or kilometers per liter. Use [[unitText]] to indicate the unit of measurement, e.g. mpg or km/L.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel economy to another value. + * Information about the engine or engines of the vehicle. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\EngineSpecification|string */ - protected $fuelEfficiency; + protected $vehicleEngine; /** - * The release date of a vehicle model (often used to differentiate versions of the same make and model). + * The Vehicle Identification Number (VIN) is a unique serial number used by the automotive industry to identify individual motor vehicles. * * - * @var Date|null + * @var string */ - protected $vehicleModelDate; + protected $vehicleIdentificationNumber; /** - * A short text indicating the configuration of the vehicle, e.g. '5dr hatchback ST 2.5 MT 225 hp' or 'limited edition'. + * The color or color combination of the interior of the vehicle. * * * @var string */ - protected $vehicleConfiguration; + protected $vehicleInteriorColor; /** - * The total distance travelled by the particular vehicle since its initial production, as read from its odometer.\n\nTypical unit code(s): KMT for kilometers, SMI for statute miles + * The type or material of the interior of the vehicle (e.g. synthetic fabric, leather, wood, etc.). While most interior types are characterized by the material used, an interior type can also be based on vehicle usage or target audience. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $mileageFromOdometer; + protected $vehicleInteriorType; /** - * The number of persons that can be seated (e.g. in a vehicle), both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons + * The release date of a vehicle model (often used to differentiate versions of the same make and model). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var Date|null */ - protected $seatingCapacity; + protected $vehicleModelDate; /** - * Indicates the design and body style of the vehicle (e.g. station wagon, hatchback, etc.). + * The number of passengers that can be seated in the vehicle, both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons. * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $bodyType; + protected $vehicleSeatingCapacity; /** - * The date of the first registration of the vehicle with the respective public authorities. + * Indicates whether the vehicle has been used for special purposes, like commercial rental, driving school, or as a taxi. The legislation in many countries requires this information to be revealed when offering a car for sale. * * - * @var Date|null + * @var \OpenActive\Enums\SchemaOrg\CarUsageType|string|null */ - protected $dateVehicleFirstRegistered; + protected $vehicleSpecialUsage; /** - * The Vehicle Identification Number (VIN) is a unique serial number used by the automotive industry to identify individual motor vehicles. + * The type of component used for transmitting the power from a rotating power source to the wheels or other relevant component(s) ("gearbox" for cars). * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $vehicleIdentificationNumber; + protected $vehicleTransmission; /** - * Indicates that the vehicle meets the respective emission standard. + * The permitted total weight of the loaded vehicle, including passengers and cargo and the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $meetsEmissionStandard; + protected $weightTotal; /** - * Indicates whether the vehicle has been used for special purposes, like commercial rental, driving school, or as a taxi. The legislation in many countries requires this information to be revealed when offering a car for sale. + * The distance between the centers of the front and rear wheels.\n\nTypical unit code(s): CMT for centimeters, MTR for meters, INH for inches, FOT for foot/feet. * * - * @var \OpenActive\Enums\SchemaOrg\CarUsageType|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleSpecialUsage; + protected $wheelbase; /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getFuelCapacity() + public function getAccelerationTime() { - return $this->fuelCapacity; + return $this->accelerationTime; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelCapacity + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $accelerationTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFuelCapacity($fuelCapacity) + public function setAccelerationTime($accelerationTime) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $fuelCapacity = self::checkTypes($fuelCapacity, $types); + $accelerationTime = self::checkTypes($accelerationTime, $types); - $this->fuelCapacity = $fuelCapacity; + $this->accelerationTime = $accelerationTime; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getAccelerationTime() + public function getBodyType() { - return $this->accelerationTime; + return $this->bodyType; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $accelerationTime + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $bodyType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccelerationTime($accelerationTime) + public function setBodyType($bodyType) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $accelerationTime = self::checkTypes($accelerationTime, $types); + $bodyType = self::checkTypes($bodyType, $types); - $this->accelerationTime = $accelerationTime; + $this->bodyType = $bodyType; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getSpeed() + public function getCallSign() { - return $this->speed; + return $this->callSign; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $speed + * @param string $callSign * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpeed($speed) + public function setCallSign($callSign) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $speed = self::checkTypes($speed, $types); + $callSign = self::checkTypes($callSign, $types); - $this->speed = $speed; + $this->callSign = $callSign; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getTrailerWeight() + public function getCargoVolume() { - return $this->trailerWeight; + return $this->cargoVolume; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $trailerWeight + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $cargoVolume * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailerWeight($trailerWeight) + public function setCargoVolume($cargoVolume) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $trailerWeight = self::checkTypes($trailerWeight, $types); + $cargoVolume = self::checkTypes($cargoVolume, $types); - $this->trailerWeight = $trailerWeight; + $this->cargoVolume = $cargoVolume; } /** - * @return \OpenActive\Models\SchemaOrg\EngineSpecification|string + * @return Date|null */ - public function getVehicleEngine() + public function getDateVehicleFirstRegistered() + { + return $this->dateVehicleFirstRegistered; + } + + /** + * @param Date|null $dateVehicleFirstRegistered + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDateVehicleFirstRegistered($dateVehicleFirstRegistered) + { + $types = [ + "Date", + "null", + ]; + + $dateVehicleFirstRegistered = self::checkTypes($dateVehicleFirstRegistered, $types); + + $this->dateVehicleFirstRegistered = $dateVehicleFirstRegistered; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue|string + */ + public function getDriveWheelConfiguration() { - return $this->vehicleEngine; + return $this->driveWheelConfiguration; } /** - * @param \OpenActive\Models\SchemaOrg\EngineSpecification|string $vehicleEngine + * @param \OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue|string $driveWheelConfiguration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleEngine($vehicleEngine) + public function setDriveWheelConfiguration($driveWheelConfiguration) { $types = [ - "\OpenActive\Models\SchemaOrg\EngineSpecification", + "\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue", "string", ]; - $vehicleEngine = self::checkTypes($vehicleEngine, $types); + $driveWheelConfiguration = self::checkTypes($driveWheelConfiguration, $types); - $this->vehicleEngine = $vehicleEngine; + $this->driveWheelConfiguration = $driveWheelConfiguration; } /** @@ -524,206 +549,204 @@ public function setEmissionsCO2($emissionsCO2) } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getPurchaseDate() + public function getFuelCapacity() { - return $this->purchaseDate; + return $this->fuelCapacity; } /** - * @param Date|null $purchaseDate + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPurchaseDate($purchaseDate) + public function setFuelCapacity($fuelCapacity) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $purchaseDate = self::checkTypes($purchaseDate, $types); + $fuelCapacity = self::checkTypes($fuelCapacity, $types); - $this->purchaseDate = $purchaseDate; + $this->fuelCapacity = $fuelCapacity; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfForwardGears() + public function getFuelConsumption() { - return $this->numberOfForwardGears; + return $this->fuelConsumption; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfForwardGears + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelConsumption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfForwardGears($numberOfForwardGears) + public function setFuelConsumption($fuelConsumption) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $numberOfForwardGears = self::checkTypes($numberOfForwardGears, $types); + $fuelConsumption = self::checkTypes($fuelConsumption, $types); - $this->numberOfForwardGears = $numberOfForwardGears; + $this->fuelConsumption = $fuelConsumption; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getWeightTotal() + public function getFuelEfficiency() { - return $this->weightTotal; + return $this->fuelEfficiency; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weightTotal + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelEfficiency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWeightTotal($weightTotal) + public function setFuelEfficiency($fuelEfficiency) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $weightTotal = self::checkTypes($weightTotal, $types); + $fuelEfficiency = self::checkTypes($fuelEfficiency, $types); - $this->weightTotal = $weightTotal; + $this->fuelEfficiency = $fuelEfficiency; } /** - * @return Date|null + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getProductionDate() + public function getFuelType() { - return $this->productionDate; + return $this->fuelType; } /** - * @param Date|null $productionDate + * @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 setProductionDate($productionDate) + public function setFuelType($fuelType) { $types = [ - "Date", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "string", "null", ]; - $productionDate = self::checkTypes($productionDate, $types); + $fuelType = self::checkTypes($fuelType, $types); - $this->productionDate = $productionDate; + $this->fuelType = $fuelType; } /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return string */ - public function getNumberOfPreviousOwners() + public function getKnownVehicleDamages() { - return $this->numberOfPreviousOwners; + return $this->knownVehicleDamages; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfPreviousOwners + * @param string $knownVehicleDamages * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfPreviousOwners($numberOfPreviousOwners) + public function setKnownVehicleDamages($knownVehicleDamages) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $numberOfPreviousOwners = self::checkTypes($numberOfPreviousOwners, $types); + $knownVehicleDamages = self::checkTypes($knownVehicleDamages, $types); - $this->numberOfPreviousOwners = $numberOfPreviousOwners; + $this->knownVehicleDamages = $knownVehicleDamages; } /** - * @return \OpenActive\Models\SchemaOrg\SteeringPositionValue|string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getSteeringPosition() + public function getMeetsEmissionStandard() { - return $this->steeringPosition; + return $this->meetsEmissionStandard; } /** - * @param \OpenActive\Models\SchemaOrg\SteeringPositionValue|string $steeringPosition + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $meetsEmissionStandard * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSteeringPosition($steeringPosition) + public function setMeetsEmissionStandard($meetsEmissionStandard) { $types = [ - "\OpenActive\Models\SchemaOrg\SteeringPositionValue", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $steeringPosition = self::checkTypes($steeringPosition, $types); + $meetsEmissionStandard = self::checkTypes($meetsEmissionStandard, $types); - $this->steeringPosition = $steeringPosition; + $this->meetsEmissionStandard = $meetsEmissionStandard; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getWheelbase() + public function getMileageFromOdometer() { - return $this->wheelbase; + return $this->mileageFromOdometer; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $wheelbase + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $mileageFromOdometer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWheelbase($wheelbase) + public function setMileageFromOdometer($mileageFromOdometer) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $wheelbase = self::checkTypes($wheelbase, $types); + $mileageFromOdometer = self::checkTypes($mileageFromOdometer, $types); - $this->wheelbase = $wheelbase; + $this->mileageFromOdometer = $mileageFromOdometer; } /** - * @return string + * @return Date|null */ - public function getVehicleInteriorType() + public function getModelDate() { - return $this->vehicleInteriorType; + return $this->modelDate; } /** - * @param string $vehicleInteriorType + * @param Date|null $modelDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleInteriorType($vehicleInteriorType) + public function setModelDate($modelDate) { $types = [ - "string", + "Date", + "null", ]; - $vehicleInteriorType = self::checkTypes($vehicleInteriorType, $types); + $modelDate = self::checkTypes($modelDate, $types); - $this->vehicleInteriorType = $vehicleInteriorType; + $this->modelDate = $modelDate; } /** @@ -753,219 +776,202 @@ public function setNumberOfAirbags($numberOfAirbags) } /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getFuelType() + public function getNumberOfAxles() { - return $this->fuelType; + return $this->numberOfAxles; } /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $fuelType + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfAxles * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFuelType($fuelType) + public function setNumberOfAxles($numberOfAxles) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", "null", ]; - $fuelType = self::checkTypes($fuelType, $types); + $numberOfAxles = self::checkTypes($numberOfAxles, $types); - $this->fuelType = $fuelType; + $this->numberOfAxles = $numberOfAxles; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getCargoVolume() + public function getNumberOfDoors() { - return $this->cargoVolume; + return $this->numberOfDoors; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $cargoVolume + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfDoors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCargoVolume($cargoVolume) + public function setNumberOfDoors($numberOfDoors) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - ]; - - $cargoVolume = self::checkTypes($cargoVolume, $types); - - $this->cargoVolume = $cargoVolume; - } - - /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null - */ - public function getVehicleTransmission() - { - return $this->vehicleTransmission; - } - - /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $vehicleTransmission - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setVehicleTransmission($vehicleTransmission) - { - $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", "null", ]; - $vehicleTransmission = self::checkTypes($vehicleTransmission, $types); + $numberOfDoors = self::checkTypes($numberOfDoors, $types); - $this->vehicleTransmission = $vehicleTransmission; + $this->numberOfDoors = $numberOfDoors; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getPayload() + public function getNumberOfForwardGears() { - return $this->payload; + return $this->numberOfForwardGears; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $payload + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfForwardGears * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPayload($payload) + public function setNumberOfForwardGears($numberOfForwardGears) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $payload = self::checkTypes($payload, $types); + $numberOfForwardGears = self::checkTypes($numberOfForwardGears, $types); - $this->payload = $payload; + $this->numberOfForwardGears = $numberOfForwardGears; } /** - * @return string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getDriveWheelConfiguration() + public function getNumberOfPreviousOwners() { - return $this->driveWheelConfiguration; + return $this->numberOfPreviousOwners; } /** - * @param string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue $driveWheelConfiguration + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfPreviousOwners * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDriveWheelConfiguration($driveWheelConfiguration) + public function setNumberOfPreviousOwners($numberOfPreviousOwners) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue", + "null", ]; - $driveWheelConfiguration = self::checkTypes($driveWheelConfiguration, $types); + $numberOfPreviousOwners = self::checkTypes($numberOfPreviousOwners, $types); - $this->driveWheelConfiguration = $driveWheelConfiguration; + $this->numberOfPreviousOwners = $numberOfPreviousOwners; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getKnownVehicleDamages() + public function getPayload() { - return $this->knownVehicleDamages; + return $this->payload; } /** - * @param string $knownVehicleDamages + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $payload * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnownVehicleDamages($knownVehicleDamages) + public function setPayload($payload) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $knownVehicleDamages = self::checkTypes($knownVehicleDamages, $types); + $payload = self::checkTypes($payload, $types); - $this->knownVehicleDamages = $knownVehicleDamages; + $this->payload = $payload; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Date|null */ - public function getFuelConsumption() + public function getProductionDate() { - return $this->fuelConsumption; + return $this->productionDate; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelConsumption + * @param Date|null $productionDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFuelConsumption($fuelConsumption) + public function setProductionDate($productionDate) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Date", + "null", ]; - $fuelConsumption = self::checkTypes($fuelConsumption, $types); + $productionDate = self::checkTypes($productionDate, $types); - $this->fuelConsumption = $fuelConsumption; + $this->productionDate = $productionDate; } /** - * @return string + * @return Date|null */ - public function getVehicleInteriorColor() + public function getPurchaseDate() { - return $this->vehicleInteriorColor; + return $this->purchaseDate; } /** - * @param string $vehicleInteriorColor + * @param Date|null $purchaseDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleInteriorColor($vehicleInteriorColor) + public function setPurchaseDate($purchaseDate) { $types = [ - "string", + "Date", + "null", ]; - $vehicleInteriorColor = self::checkTypes($vehicleInteriorColor, $types); + $purchaseDate = self::checkTypes($purchaseDate, $types); - $this->vehicleInteriorColor = $vehicleInteriorColor; + $this->purchaseDate = $purchaseDate; } /** * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getNumberOfAxles() + public function getSeatingCapacity() { - return $this->numberOfAxles; + return $this->seatingCapacity; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfAxles + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $seatingCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfAxles($numberOfAxles) + public function setSeatingCapacity($seatingCapacity) { $types = [ "Number", @@ -974,390 +980,384 @@ public function setNumberOfAxles($numberOfAxles) "null", ]; - $numberOfAxles = self::checkTypes($numberOfAxles, $types); + $seatingCapacity = self::checkTypes($seatingCapacity, $types); - $this->numberOfAxles = $numberOfAxles; + $this->seatingCapacity = $seatingCapacity; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getModelDate() + public function getSpeed() { - return $this->modelDate; + return $this->speed; } /** - * @param Date|null $modelDate + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $speed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setModelDate($modelDate) + public function setSpeed($speed) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $modelDate = self::checkTypes($modelDate, $types); + $speed = self::checkTypes($speed, $types); - $this->modelDate = $modelDate; + $this->speed = $speed; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\SteeringPositionValue|string */ - public function getNumberOfDoors() + public function getSteeringPosition() { - return $this->numberOfDoors; + return $this->steeringPosition; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfDoors + * @param \OpenActive\Models\SchemaOrg\SteeringPositionValue|string $steeringPosition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfDoors($numberOfDoors) + public function setSteeringPosition($steeringPosition) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\SteeringPositionValue", "string", - "Number", - "null", ]; - $numberOfDoors = self::checkTypes($numberOfDoors, $types); + $steeringPosition = self::checkTypes($steeringPosition, $types); - $this->numberOfDoors = $numberOfDoors; + $this->steeringPosition = $steeringPosition; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleSeatingCapacity() + public function getTongueWeight() { - return $this->vehicleSeatingCapacity; + return $this->tongueWeight; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $vehicleSeatingCapacity + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $tongueWeight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleSeatingCapacity($vehicleSeatingCapacity) + public function setTongueWeight($tongueWeight) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $vehicleSeatingCapacity = self::checkTypes($vehicleSeatingCapacity, $types); + $tongueWeight = self::checkTypes($tongueWeight, $types); - $this->vehicleSeatingCapacity = $vehicleSeatingCapacity; + $this->tongueWeight = $tongueWeight; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getCallSign() + public function getTrailerWeight() { - return $this->callSign; + return $this->trailerWeight; } /** - * @param string $callSign + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $trailerWeight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCallSign($callSign) + public function setTrailerWeight($trailerWeight) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $callSign = self::checkTypes($callSign, $types); + $trailerWeight = self::checkTypes($trailerWeight, $types); - $this->callSign = $callSign; + $this->trailerWeight = $trailerWeight; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getTongueWeight() + public function getVehicleConfiguration() { - return $this->tongueWeight; + return $this->vehicleConfiguration; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $tongueWeight + * @param string $vehicleConfiguration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTongueWeight($tongueWeight) + public function setVehicleConfiguration($vehicleConfiguration) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $tongueWeight = self::checkTypes($tongueWeight, $types); + $vehicleConfiguration = self::checkTypes($vehicleConfiguration, $types); - $this->tongueWeight = $tongueWeight; + $this->vehicleConfiguration = $vehicleConfiguration; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\EngineSpecification|string */ - public function getFuelEfficiency() + public function getVehicleEngine() { - return $this->fuelEfficiency; + return $this->vehicleEngine; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelEfficiency + * @param \OpenActive\Models\SchemaOrg\EngineSpecification|string $vehicleEngine * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFuelEfficiency($fuelEfficiency) + public function setVehicleEngine($vehicleEngine) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\EngineSpecification", "string", ]; - $fuelEfficiency = self::checkTypes($fuelEfficiency, $types); + $vehicleEngine = self::checkTypes($vehicleEngine, $types); - $this->fuelEfficiency = $fuelEfficiency; + $this->vehicleEngine = $vehicleEngine; } /** - * @return Date|null + * @return string */ - public function getVehicleModelDate() + public function getVehicleIdentificationNumber() { - return $this->vehicleModelDate; + return $this->vehicleIdentificationNumber; } /** - * @param Date|null $vehicleModelDate + * @param string $vehicleIdentificationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleModelDate($vehicleModelDate) + public function setVehicleIdentificationNumber($vehicleIdentificationNumber) { $types = [ - "Date", - "null", + "string", ]; - $vehicleModelDate = self::checkTypes($vehicleModelDate, $types); + $vehicleIdentificationNumber = self::checkTypes($vehicleIdentificationNumber, $types); - $this->vehicleModelDate = $vehicleModelDate; + $this->vehicleIdentificationNumber = $vehicleIdentificationNumber; } /** * @return string */ - public function getVehicleConfiguration() + public function getVehicleInteriorColor() { - return $this->vehicleConfiguration; + return $this->vehicleInteriorColor; } /** - * @param string $vehicleConfiguration + * @param string $vehicleInteriorColor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleConfiguration($vehicleConfiguration) + public function setVehicleInteriorColor($vehicleInteriorColor) { $types = [ "string", ]; - $vehicleConfiguration = self::checkTypes($vehicleConfiguration, $types); + $vehicleInteriorColor = self::checkTypes($vehicleInteriorColor, $types); - $this->vehicleConfiguration = $vehicleConfiguration; + $this->vehicleInteriorColor = $vehicleInteriorColor; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getMileageFromOdometer() + public function getVehicleInteriorType() { - return $this->mileageFromOdometer; + return $this->vehicleInteriorType; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $mileageFromOdometer + * @param string $vehicleInteriorType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMileageFromOdometer($mileageFromOdometer) + public function setVehicleInteriorType($vehicleInteriorType) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $mileageFromOdometer = self::checkTypes($mileageFromOdometer, $types); + $vehicleInteriorType = self::checkTypes($vehicleInteriorType, $types); - $this->mileageFromOdometer = $mileageFromOdometer; + $this->vehicleInteriorType = $vehicleInteriorType; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return Date|null */ - public function getSeatingCapacity() + public function getVehicleModelDate() { - return $this->seatingCapacity; + return $this->vehicleModelDate; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $seatingCapacity + * @param Date|null $vehicleModelDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatingCapacity($seatingCapacity) + public function setVehicleModelDate($vehicleModelDate) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", - "Number", + "Date", "null", ]; - $seatingCapacity = self::checkTypes($seatingCapacity, $types); + $vehicleModelDate = self::checkTypes($vehicleModelDate, $types); - $this->seatingCapacity = $seatingCapacity; + $this->vehicleModelDate = $vehicleModelDate; } /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getBodyType() + public function getVehicleSeatingCapacity() { - return $this->bodyType; + return $this->vehicleSeatingCapacity; } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $bodyType + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $vehicleSeatingCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBodyType($bodyType) + public function setVehicleSeatingCapacity($vehicleSeatingCapacity) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", "null", ]; - $bodyType = self::checkTypes($bodyType, $types); + $vehicleSeatingCapacity = self::checkTypes($vehicleSeatingCapacity, $types); - $this->bodyType = $bodyType; + $this->vehicleSeatingCapacity = $vehicleSeatingCapacity; } /** - * @return Date|null + * @return \OpenActive\Enums\SchemaOrg\CarUsageType|string|null */ - public function getDateVehicleFirstRegistered() + public function getVehicleSpecialUsage() { - return $this->dateVehicleFirstRegistered; + return $this->vehicleSpecialUsage; } /** - * @param Date|null $dateVehicleFirstRegistered + * @param \OpenActive\Enums\SchemaOrg\CarUsageType|string|null $vehicleSpecialUsage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateVehicleFirstRegistered($dateVehicleFirstRegistered) + public function setVehicleSpecialUsage($vehicleSpecialUsage) { $types = [ - "Date", + "\OpenActive\Enums\SchemaOrg\CarUsageType", + "string", "null", ]; - $dateVehicleFirstRegistered = self::checkTypes($dateVehicleFirstRegistered, $types); + $vehicleSpecialUsage = self::checkTypes($vehicleSpecialUsage, $types); - $this->dateVehicleFirstRegistered = $dateVehicleFirstRegistered; + $this->vehicleSpecialUsage = $vehicleSpecialUsage; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getVehicleIdentificationNumber() + public function getVehicleTransmission() { - return $this->vehicleIdentificationNumber; + return $this->vehicleTransmission; } /** - * @param string $vehicleIdentificationNumber + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $vehicleTransmission * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleIdentificationNumber($vehicleIdentificationNumber) + public function setVehicleTransmission($vehicleTransmission) { $types = [ + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $vehicleIdentificationNumber = self::checkTypes($vehicleIdentificationNumber, $types); + $vehicleTransmission = self::checkTypes($vehicleTransmission, $types); - $this->vehicleIdentificationNumber = $vehicleIdentificationNumber; + $this->vehicleTransmission = $vehicleTransmission; } /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getMeetsEmissionStandard() + public function getWeightTotal() { - return $this->meetsEmissionStandard; + return $this->weightTotal; } /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $meetsEmissionStandard + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weightTotal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMeetsEmissionStandard($meetsEmissionStandard) + public function setWeightTotal($weightTotal) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "null", ]; - $meetsEmissionStandard = self::checkTypes($meetsEmissionStandard, $types); + $weightTotal = self::checkTypes($weightTotal, $types); - $this->meetsEmissionStandard = $meetsEmissionStandard; + $this->weightTotal = $weightTotal; } /** - * @return \OpenActive\Enums\SchemaOrg\CarUsageType|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleSpecialUsage() + public function getWheelbase() { - return $this->vehicleSpecialUsage; + return $this->wheelbase; } /** - * @param \OpenActive\Enums\SchemaOrg\CarUsageType|string|null $vehicleSpecialUsage + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $wheelbase * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleSpecialUsage($vehicleSpecialUsage) + public function setWheelbase($wheelbase) { $types = [ - "\OpenActive\Enums\SchemaOrg\CarUsageType", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $vehicleSpecialUsage = self::checkTypes($vehicleSpecialUsage, $types); + $wheelbase = self::checkTypes($wheelbase, $types); - $this->vehicleSpecialUsage = $vehicleSpecialUsage; + $this->wheelbase = $wheelbase; } } diff --git a/src/Models/SchemaOrg/Vein.php b/src/Models/SchemaOrg/Vein.php index 98279ab1..0a1dc65c 100644 --- a/src/Models/SchemaOrg/Vein.php +++ b/src/Models/SchemaOrg/Vein.php @@ -17,112 +17,112 @@ public static function getType() public static function fieldList() { $fields = [ + "drainsTo" => "drainsTo", "regionDrained" => "regionDrained", "tributary" => "tributary", - "drainsTo" => "drainsTo", ]; return array_merge(parent::fieldList(), $fields); } /** - * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ. + * The vasculature that the vein drains into. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\Vessel|string */ - protected $regionDrained; + protected $drainsTo; /** - * The anatomical or organ system that the vein flows into; a larger structure that the vein connects to. + * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - protected $tributary; + protected $regionDrained; /** - * The vasculature that the vein drains into. + * The anatomical or organ system that the vein flows into; a larger structure that the vein connects to. * * - * @var \OpenActive\Models\SchemaOrg\Vessel|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $drainsTo; + protected $tributary; /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\Vessel|string */ - public function getRegionDrained() + public function getDrainsTo() { - return $this->regionDrained; + return $this->drainsTo; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained + * @param \OpenActive\Models\SchemaOrg\Vessel|string $drainsTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRegionDrained($regionDrained) + public function setDrainsTo($drainsTo) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\Vessel", "string", ]; - $regionDrained = self::checkTypes($regionDrained, $types); + $drainsTo = self::checkTypes($drainsTo, $types); - $this->regionDrained = $regionDrained; + $this->drainsTo = $drainsTo; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - public function getTributary() + public function getRegionDrained() { - return $this->tributary; + return $this->regionDrained; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $tributary + * @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 setTributary($tributary) + public function setRegionDrained($regionDrained) { $types = [ "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; - $tributary = self::checkTypes($tributary, $types); + $regionDrained = self::checkTypes($regionDrained, $types); - $this->tributary = $tributary; + $this->regionDrained = $regionDrained; } /** - * @return \OpenActive\Models\SchemaOrg\Vessel|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getDrainsTo() + public function getTributary() { - return $this->drainsTo; + return $this->tributary; } /** - * @param \OpenActive\Models\SchemaOrg\Vessel|string $drainsTo + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $tributary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDrainsTo($drainsTo) + public function setTributary($tributary) { $types = [ - "\OpenActive\Models\SchemaOrg\Vessel", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $drainsTo = self::checkTypes($drainsTo, $types); + $tributary = self::checkTypes($tributary, $types); - $this->drainsTo = $drainsTo; + $this->tributary = $tributary; } } diff --git a/src/Models/SchemaOrg/VideoGame.php b/src/Models/SchemaOrg/VideoGame.php index 4dcc4416..c40834b4 100644 --- a/src/Models/SchemaOrg/VideoGame.php +++ b/src/Models/SchemaOrg/VideoGame.php @@ -5,7 +5,7 @@ /** * */ -class VideoGame extends \OpenActive\Models\SchemaOrg\SoftwareApplication +class VideoGame extends \OpenActive\Models\SchemaOrg\Game { /** * @return string[]|null @@ -17,46 +17,62 @@ public static function getType() public static function fieldList() { $fields = [ - "director" => "director", "actor" => "actor", - "trailer" => "trailer", - "gameEdition" => "gameEdition", + "actors" => "actors", "cheatCode" => "cheatCode", + "director" => "director", + "directors" => "directors", + "gameEdition" => "gameEdition", + "gamePlatform" => "gamePlatform", "gameServer" => "gameServer", "gameTip" => "gameTip", - "actors" => "actors", - "playMode" => "playMode", - "gamePlatform" => "gamePlatform", "musicBy" => "musicBy", - "directors" => "directors", + "playMode" => "playMode", + "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\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $actor; + + /** + * 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; + + /** + * Cheat codes to the game. + * + * + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + */ + protected $cheatCode; /** - * 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 edition of a video game. @@ -67,12 +83,12 @@ public static function fieldList() { protected $gameEdition; /** - * Cheat codes to the game. + * The electronic systems used to play video games. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $cheatCode; + protected $gamePlatform; /** * The server on which it is possible to play the game. @@ -91,12 +107,12 @@ public static function fieldList() { protected $gameTip; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * 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; /** * Indicates whether this game is multi-player, co-op or single-player. The game can be marked as multi-player, co-op and single-player at the same time. @@ -107,102 +123,137 @@ public static function fieldList() { protected $playMode; /** - * The electronic systems used to play video games. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $gamePlatform; + protected $trailer; /** - * The composer of the soundtrack. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $musicBy; + public function getActor() + { + return $this->actor; + } /** - * 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 + * @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. */ - protected $directors; + public function setActor($actor) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PerformingGroup", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $actor = self::checkTypes($actor, $types); + + $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\CreativeWork|string + */ + public function getCheatCode() + { + return $this->cheatCode; + } + + /** + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $cheatCode + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCheatCode($cheatCode) + { + $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", + ]; + + $cheatCode = self::checkTypes($cheatCode, $types); + + $this->cheatCode = $cheatCode; } /** * @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; } /** @@ -230,28 +281,28 @@ public function setGameEdition($gameEdition) } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getCheatCode() + public function getGamePlatform() { - return $this->cheatCode; + return $this->gamePlatform; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $cheatCode + * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCheatCode($cheatCode) + public function setGamePlatform($gamePlatform) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $cheatCode = self::checkTypes($cheatCode, $types); + $gamePlatform = self::checkTypes($gamePlatform, $types); - $this->cheatCode = $cheatCode; + $this->gamePlatform = $gamePlatform; } /** @@ -305,28 +356,29 @@ public function setGameTip($gameTip) } /** - * @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; } /** @@ -355,79 +407,28 @@ public function setPlayMode($playMode) } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing - */ - public function getGamePlatform() - { - return $this->gamePlatform; - } - - /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setGamePlatform($gamePlatform) - { - $types = [ - "string", - "\OpenActive\Models\SchemaOrg\Thing", - ]; - - $gamePlatform = self::checkTypes($gamePlatform, $types); - - $this->gamePlatform = $gamePlatform; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string - */ - public function getMusicBy() - { - return $this->musicBy; - } - - /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setMusicBy($musicBy) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", - "string", - ]; - - $musicBy = self::checkTypes($musicBy, $types); - - $this->musicBy = $musicBy; - } - - /** - * @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/VideoGameSeries.php b/src/Models/SchemaOrg/VideoGameSeries.php index 16fd6ce6..8b0e92ab 100644 --- a/src/Models/SchemaOrg/VideoGameSeries.php +++ b/src/Models/SchemaOrg/VideoGameSeries.php @@ -17,152 +17,152 @@ public static function getType() public static function fieldList() { $fields = [ - "season" => "season", - "containsSeason" => "containsSeason", - "director" => "director", "actor" => "actor", - "trailer" => "trailer", - "episodes" => "episodes", + "actors" => "actors", "characterAttribute" => "characterAttribute", - "numberOfEpisodes" => "numberOfEpisodes", - "seasons" => "seasons", "cheatCode" => "cheatCode", + "containsSeason" => "containsSeason", + "director" => "director", + "directors" => "directors", + "episode" => "episode", + "episodes" => "episodes", "gameItem" => "gameItem", - "productionCompany" => "productionCompany", - "actors" => "actors", - "playMode" => "playMode", + "gameLocation" => "gameLocation", "gamePlatform" => "gamePlatform", - "numberOfSeasons" => "numberOfSeasons", "musicBy" => "musicBy", + "numberOfEpisodes" => "numberOfEpisodes", "numberOfPlayers" => "numberOfPlayers", + "numberOfSeasons" => "numberOfSeasons", + "playMode" => "playMode", + "productionCompany" => "productionCompany", "quest" => "quest", - "gameLocation" => "gameLocation", - "episode" => "episode", - "directors" => "directors", + "season" => "season", + "seasons" => "seasons", + "trailer" => "trailer", ]; return array_merge(parent::fieldList(), $fields); } /** - * A season in a media series. + * An actor (individual or a group), e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @var \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $season; + protected $actor; /** - * A season that is part of the media series. + * 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\CreativeWorkSeason|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $containsSeason; + 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. + * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage). * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $director; + protected $characterAttribute; /** - * 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. + * Cheat codes to the game. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $actor; + protected $cheatCode; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * A season that is part of the media series. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $trailer; + protected $containsSeason; /** - * An episode of a TV/radio series or season. + * 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\Episode|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $episodes; + protected $director; /** - * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage). + * 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\Thing|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $characterAttribute; + protected $directors; /** - * The number of episodes in this season or series. + * An episode of a TV, radio or game media within a series or season. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $numberOfEpisodes; + protected $episode; /** - * A season in a media series. + * An episode of a TV/radio series or season. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $seasons; + protected $episodes; /** - * Cheat codes to the game. + * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $cheatCode; + protected $gameItem; /** - * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character. + * Real or fictional location of the game (or part of game). * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $gameItem; + protected $gameLocation; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * The electronic systems used to play video games. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $productionCompany; + protected $gamePlatform; /** - * 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; /** - * Indicates whether this game is multi-player, co-op or single-player. The game can be marked as multi-player, co-op and single-player at the same time. + * The number of episodes in this season or series. * * - * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null + * @var int|null */ - protected $playMode; + protected $numberOfEpisodes; /** - * The electronic systems used to play video games. + * Indicate how many people can play this game (minimum, maximum, or range). * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $gamePlatform; + protected $numberOfPlayers; /** * The number of seasons in this series. @@ -173,20 +173,20 @@ public static function fieldList() { protected $numberOfSeasons; /** - * The composer of the soundtrack. + * Indicates whether this game is multi-player, co-op or single-player. The game can be marked as multi-player, co-op and single-player at the same time. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null */ - protected $musicBy; + protected $playMode; /** - * Indicate how many people can play this game (minimum, maximum, or range). + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $numberOfPlayers; + protected $productionCompany; /** * The task that a player-controlled character, or group of characters may complete in order to gain a reward. @@ -197,402 +197,405 @@ public static function fieldList() { protected $quest; /** - * Real or fictional location of the game (or part of game). + * A season in a media series. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $gameLocation; + protected $season; /** - * An episode of a tv, radio or game media within a series or season. + * A season in a media series. * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $episode; + protected $seasons; /** - * 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|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @return \OpenActive\Models\SchemaOrg\PerformingGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSeason() + public function getActor() { - return $this->season; + return $this->actor; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @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 setSeason($season) + public function setActor($actor) { $types = [ + "\OpenActive\Models\SchemaOrg\PerformingGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", ]; - $season = self::checkTypes($season, $types); + $actor = self::checkTypes($actor, $types); - $this->season = $season; + $this->actor = $actor; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getContainsSeason() + public function getActors() { - return $this->containsSeason; + return $this->actors; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason + * @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 setContainsSeason($containsSeason) + public function setActors($actors) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $containsSeason = self::checkTypes($containsSeason, $types); + $actors = self::checkTypes($actors, $types); - $this->containsSeason = $containsSeason; + $this->actors = $actors; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getDirector() + public function getCharacterAttribute() { - return $this->director; + return $this->characterAttribute; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param \OpenActive\Models\SchemaOrg\Thing|string $characterAttribute * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setCharacterAttribute($characterAttribute) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $director = self::checkTypes($director, $types); + $characterAttribute = self::checkTypes($characterAttribute, $types); - $this->director = $director; + $this->characterAttribute = $characterAttribute; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getActor() + public function getCheatCode() { - return $this->actor; + return $this->cheatCode; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $cheatCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setCheatCode($cheatCode) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $actor = self::checkTypes($actor, $types); + $cheatCode = self::checkTypes($cheatCode, $types); - $this->actor = $actor; + $this->cheatCode = $cheatCode; } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getTrailer() + public function getContainsSeason() { - return $this->trailer; + return $this->containsSeason; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setContainsSeason($containsSeason) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $containsSeason = self::checkTypes($containsSeason, $types); - $this->trailer = $trailer; + $this->containsSeason = $containsSeason; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getEpisodes() + public function getDirector() { - return $this->episodes; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes + * @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 setEpisodes($episodes) + public function setDirector($director) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $episodes = self::checkTypes($episodes, $types); + $director = self::checkTypes($director, $types); - $this->episodes = $episodes; + $this->director = $director; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getCharacterAttribute() + public function getDirectors() { - return $this->characterAttribute; + return $this->directors; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $characterAttribute + * @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 setCharacterAttribute($characterAttribute) + public function setDirectors($directors) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $characterAttribute = self::checkTypes($characterAttribute, $types); + $directors = self::checkTypes($directors, $types); - $this->characterAttribute = $characterAttribute; + $this->directors = $directors; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getNumberOfEpisodes() + public function getEpisode() { - return $this->numberOfEpisodes; + return $this->episode; } /** - * @param int|null $numberOfEpisodes + * @param \OpenActive\Models\SchemaOrg\Episode|string $episode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfEpisodes($numberOfEpisodes) + public function setEpisode($episode) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Episode", + "string", ]; - $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); + $episode = self::checkTypes($episode, $types); - $this->numberOfEpisodes = $numberOfEpisodes; + $this->episode = $episode; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getSeasons() + public function getEpisodes() { - return $this->seasons; + return $this->episodes; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons + * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeasons($seasons) + public function setEpisodes($episodes) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $seasons = self::checkTypes($seasons, $types); + $episodes = self::checkTypes($episodes, $types); - $this->seasons = $seasons; + $this->episodes = $episodes; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getCheatCode() + public function getGameItem() { - return $this->cheatCode; + return $this->gameItem; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $cheatCode + * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCheatCode($cheatCode) + public function setGameItem($gameItem) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $cheatCode = self::checkTypes($cheatCode, $types); + $gameItem = self::checkTypes($gameItem, $types); - $this->cheatCode = $cheatCode; + $this->gameItem = $gameItem; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getGameItem() + public function getGameLocation() { - return $this->gameItem; + return $this->gameLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem + * @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 setGameItem($gameItem) + public function setGameLocation($gameLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $gameItem = self::checkTypes($gameItem, $types); + $gameLocation = self::checkTypes($gameLocation, $types); - $this->gameItem = $gameItem; + $this->gameLocation = $gameLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getProductionCompany() + public function getGamePlatform() { - return $this->productionCompany; + return $this->gamePlatform; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionCompany($productionCompany) + public function setGamePlatform($gamePlatform) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $gamePlatform = self::checkTypes($gamePlatform, $types); - $this->productionCompany = $productionCompany; + $this->gamePlatform = $gamePlatform; } /** - * @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\Enums\SchemaOrg\GamePlayMode|null + * @return int|null */ - public function getPlayMode() + public function getNumberOfEpisodes() { - return $this->playMode; + return $this->numberOfEpisodes; } /** - * @param \OpenActive\Enums\SchemaOrg\GamePlayMode|null $playMode + * @param int|null $numberOfEpisodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPlayMode($playMode) + public function setNumberOfEpisodes($numberOfEpisodes) { $types = [ - "\OpenActive\Enums\SchemaOrg\GamePlayMode", + "int", "null", ]; - $playMode = self::checkTypes($playMode, $types); + $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); - $this->playMode = $playMode; + $this->numberOfEpisodes = $numberOfEpisodes; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getGamePlatform() + public function getNumberOfPlayers() { - return $this->gamePlatform; + return $this->numberOfPlayers; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform + * @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 setGamePlatform($gamePlatform) + public function setNumberOfPlayers($numberOfPlayers) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $gamePlatform = self::checkTypes($gamePlatform, $types); + $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); - $this->gamePlatform = $gamePlatform; + $this->numberOfPlayers = $numberOfPlayers; } /** @@ -621,54 +624,53 @@ public function setNumberOfSeasons($numberOfSeasons) } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Enums\SchemaOrg\GamePlayMode|null */ - public function getMusicBy() + public function getPlayMode() { - return $this->musicBy; + return $this->playMode; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param \OpenActive\Enums\SchemaOrg\GamePlayMode|null $playMode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setPlayMode($playMode) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", - "string", + "\OpenActive\Enums\SchemaOrg\GamePlayMode", + "null", ]; - $musicBy = self::checkTypes($musicBy, $types); + $playMode = self::checkTypes($playMode, $types); - $this->musicBy = $musicBy; + $this->playMode = $playMode; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getNumberOfPlayers() + public function getProductionCompany() { - return $this->numberOfPlayers; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers + * @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 setNumberOfPlayers($numberOfPlayers) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->numberOfPlayers = $numberOfPlayers; + $this->productionCompany = $productionCompany; } /** @@ -697,79 +699,78 @@ public function setQuest($quest) } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getGameLocation() + public function getSeason() { - return $this->gameLocation; + return $this->season; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $season * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGameLocation($gameLocation) + public function setSeason($season) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $gameLocation = self::checkTypes($gameLocation, $types); + $season = self::checkTypes($season, $types); - $this->gameLocation = $gameLocation; + $this->season = $season; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getEpisode() + public function getSeasons() { - return $this->episode; + return $this->seasons; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisode($episode) + public function setSeasons($seasons) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $episode = self::checkTypes($episode, $types); + $seasons = self::checkTypes($seasons, $types); - $this->episode = $episode; + $this->seasons = $seasons; } /** - * @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/VideoObject.php b/src/Models/SchemaOrg/VideoObject.php index 0b78c4c5..2c3a8fb5 100644 --- a/src/Models/SchemaOrg/VideoObject.php +++ b/src/Models/SchemaOrg/VideoObject.php @@ -17,186 +17,154 @@ public static function getType() public static function fieldList() { $fields = [ - "embeddedTextCaption" => "embeddedTextCaption", - "director" => "director", "actor" => "actor", + "actors" => "actors", "caption" => "caption", - "thumbnail" => "thumbnail", + "director" => "director", + "directors" => "directors", + "embeddedTextCaption" => "embeddedTextCaption", + "musicBy" => "musicBy", "transcript" => "transcript", - "videoQuality" => "videoQuality", "videoFrameSize" => "videoFrameSize", - "actors" => "actors", - "musicBy" => "musicBy", - "directors" => "directors", + "videoQuality" => "videoQuality", ]; return array_merge(parent::fieldList(), $fields); } /** - * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. + * 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 - */ - protected $embeddedTextCaption; - - /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. - * - * - * @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 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. + * 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\ImageObject|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $thumbnail; + protected $director; /** - * If this MediaObject is an AudioObject or VideoObject, the transcript of that object. + * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $transcript; + protected $directors; /** - * The quality of the video. + * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. * * * @var string */ - protected $videoQuality; + protected $embeddedTextCaption; /** - * The frame size of the video. + * The composer of the soundtrack. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $videoFrameSize; + protected $musicBy; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * If this MediaObject is an AudioObject or VideoObject, the transcript of that object. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $actors; + protected $transcript; /** - * The composer of the soundtrack. + * The frame size of the video. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var string */ - protected $musicBy; + protected $videoFrameSize; /** - * 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 quality of the video. * * - * @var \OpenActive\Models\SchemaOrg\Person|string - */ - protected $directors; - - /** - * @return string - */ - public function getEmbeddedTextCaption() - { - return $this->embeddedTextCaption; - } - - /** - * @param string $embeddedTextCaption - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * @var string */ - public function setEmbeddedTextCaption($embeddedTextCaption) - { - $types = [ - "string", - ]; - - $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - - $this->embeddedTextCaption = $embeddedTextCaption; - } + protected $videoQuality; /** - * @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 string|\OpenActive\Models\SchemaOrg\MediaObject + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ public function getCaption() { @@ -204,15 +172,15 @@ public function getCaption() } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $caption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setCaption($caption) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\MediaObject", + "string", ]; $caption = self::checkTypes($caption, $types); @@ -221,176 +189,175 @@ public function setCaption($caption) } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getThumbnail() + public function getDirector() { - return $this->thumbnail; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail + * @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 setThumbnail($thumbnail) + public function setDirector($director) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $thumbnail = self::checkTypes($thumbnail, $types); + $director = self::checkTypes($director, $types); - $this->thumbnail = $thumbnail; + $this->director = $director; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getTranscript() + public function getDirectors() { - return $this->transcript; + return $this->directors; } /** - * @param string $transcript + * @param \OpenActive\Models\SchemaOrg\Person|string $directors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTranscript($transcript) + public function setDirectors($directors) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $transcript = self::checkTypes($transcript, $types); + $directors = self::checkTypes($directors, $types); - $this->transcript = $transcript; + $this->directors = $directors; } /** * @return string */ - public function getVideoQuality() + public function getEmbeddedTextCaption() { - return $this->videoQuality; + return $this->embeddedTextCaption; } /** - * @param string $videoQuality + * @param string $embeddedTextCaption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVideoQuality($videoQuality) + public function setEmbeddedTextCaption($embeddedTextCaption) { $types = [ "string", ]; - $videoQuality = self::checkTypes($videoQuality, $types); + $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - $this->videoQuality = $videoQuality; + $this->embeddedTextCaption = $embeddedTextCaption; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getVideoFrameSize() + public function getMusicBy() { - return $this->videoFrameSize; + return $this->musicBy; } /** - * @param string $videoFrameSize + * @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 setVideoFrameSize($videoFrameSize) + public function setMusicBy($musicBy) { $types = [ + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $videoFrameSize = self::checkTypes($videoFrameSize, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->videoFrameSize = $videoFrameSize; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getActors() + public function getTranscript() { - return $this->actors; + return $this->transcript; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param string $transcript * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setTranscript($transcript) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actors = self::checkTypes($actors, $types); + $transcript = self::checkTypes($transcript, $types); - $this->actors = $actors; + $this->transcript = $transcript; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return string */ - public function getMusicBy() + public function getVideoFrameSize() { - return $this->musicBy; + return $this->videoFrameSize; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param string $videoFrameSize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setVideoFrameSize($videoFrameSize) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $videoFrameSize = self::checkTypes($videoFrameSize, $types); - $this->musicBy = $musicBy; + $this->videoFrameSize = $videoFrameSize; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getDirectors() + public function getVideoQuality() { - return $this->directors; + return $this->videoQuality; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @param string $videoQuality * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirectors($directors) + public function setVideoQuality($videoQuality) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $directors = self::checkTypes($directors, $types); + $videoQuality = self::checkTypes($videoQuality, $types); - $this->directors = $directors; + $this->videoQuality = $videoQuality; } } diff --git a/src/Models/SchemaOrg/VisualArtwork.php b/src/Models/SchemaOrg/VisualArtwork.php index 43135cf8..4e2042e6 100644 --- a/src/Models/SchemaOrg/VisualArtwork.php +++ b/src/Models/SchemaOrg/VisualArtwork.php @@ -17,103 +17,106 @@ public static function getType() public static function fieldList() { $fields = [ - "width" => "width", - "letterer" => "letterer", - "height" => "height", - "surface" => "surface", - "colorist" => "colorist", - "inker" => "inker", + "artEdition" => "artEdition", + "artMedium" => "artMedium", "artform" => "artform", + "artist" => "artist", "artworkSurface" => "artworkSurface", - "artEdition" => "artEdition", + "colorist" => "colorist", "depth" => "depth", + "height" => "height", + "inker" => "inker", + "letterer" => "letterer", "penciler" => "penciler", - "artist" => "artist", - "artMedium" => "artMedium", + "surface" => "surface", + "weight" => "weight", + "width" => "width", ]; return array_merge(parent::fieldList(), $fields); } /** - * The width of the item. + * The number of copies when multiple copies of a piece of artwork are produced - e.g. for a limited edition of 20 prints, 'artEdition' refers to the total number of copies (in this example "20"). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @var string|int|null */ - protected $width; + protected $artEdition; /** - * The individual who adds lettering, including speech balloons and sound effects, to artwork. + * The material used. (E.g. Oil, Watercolour, Acrylic, Linoprint, Marble, Cyanotype, Digital, Lithograph, DryPoint, Intaglio, Pastel, Woodcut, Pencil, Mixed Media, etc.) * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $letterer; + protected $artMedium; /** - * The height of the item. + * e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $height; + protected $artform; /** - * A material used as a surface in some artwork, e.g. Canvas, Paper, Wood, Board, etc. + * The primary artist for a work + * in a medium other than pencils or digital line art--for example, if the + * primary artwork is done in watercolors or digital paints. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $surface; + protected $artist; /** - * The individual who adds color to inked drawings. + * The supporting materials for the artwork, e.g. Canvas, Paper, Wood, Board, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $colorist; + protected $artworkSurface; /** - * The individual who traces over the pencil drawings in ink after pencils are complete. + * The individual who adds color to inked drawings. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $inker; + protected $colorist; /** - * e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc. + * The depth of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $artform; + protected $depth; /** - * The supporting materials for the artwork, e.g. Canvas, Paper, Wood, Board, etc. + * The height of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $artworkSurface; + protected $height; /** - * The number of copies when multiple copies of a piece of artwork are produced - e.g. for a limited edition of 20 prints, 'artEdition' refers to the total number of copies (in this example "20"). + * The individual who traces over the pencil drawings in ink after pencils are complete. * * - * @var string|int|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $artEdition; + protected $inker; /** - * The depth of the item. + * The individual who adds lettering, including speech balloons and sound effects, to artwork. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $depth; + protected $letterer; /** * The individual who draws the primary narrative artwork. @@ -124,272 +127,277 @@ 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 material used as a surface in some artwork, e.g. Canvas, Paper, Wood, Board, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $artist; + protected $surface; /** - * The material used. (e.g. Oil, Watercolour, Acrylic, Linoprint, Marble, Cyanotype, Digital, Lithograph, DryPoint, Intaglio, Pastel, Woodcut, Pencil, Mixed Media, etc.) + * The weight of the product or person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $artMedium; + protected $weight; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * The width of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getWidth() + protected $width; + + /** + * @return string|int|null + */ + public function getArtEdition() { - return $this->width; + return $this->artEdition; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width + * @param string|int|null $artEdition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWidth($width) + public function setArtEdition($artEdition) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\Distance", "string", + "int", + "null", ]; - $width = self::checkTypes($width, $types); + $artEdition = self::checkTypes($artEdition, $types); - $this->width = $width; + $this->artEdition = $artEdition; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getLetterer() + public function getArtMedium() { - return $this->letterer; + return $this->artMedium; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $letterer + * @param string $artMedium * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLetterer($letterer) + public function setArtMedium($artMedium) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $letterer = self::checkTypes($letterer, $types); + $artMedium = self::checkTypes($artMedium, $types); - $this->letterer = $letterer; + $this->artMedium = $artMedium; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getHeight() + public function getArtform() { - return $this->height; + return $this->artform; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @param string $artform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeight($height) + public function setArtform($artform) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $height = self::checkTypes($height, $types); + $artform = self::checkTypes($artform, $types); - $this->height = $height; + $this->artform = $artform; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSurface() + public function getArtist() { - return $this->surface; + return $this->artist; } /** - * @param string $surface + * @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 setSurface($surface) + public function setArtist($artist) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $surface = self::checkTypes($surface, $types); + $artist = self::checkTypes($artist, $types); - $this->surface = $surface; + $this->artist = $artist; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getColorist() + public function getArtworkSurface() { - return $this->colorist; + return $this->artworkSurface; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colorist + * @param string $artworkSurface * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setColorist($colorist) + public function setArtworkSurface($artworkSurface) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $colorist = self::checkTypes($colorist, $types); + $artworkSurface = self::checkTypes($artworkSurface, $types); - $this->colorist = $colorist; + $this->artworkSurface = $artworkSurface; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getInker() + public function getColorist() { - return $this->inker; + return $this->colorist; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $inker + * @param \OpenActive\Models\SchemaOrg\Person|string $colorist * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInker($inker) + public function setColorist($colorist) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $inker = self::checkTypes($inker, $types); + $colorist = self::checkTypes($colorist, $types); - $this->inker = $inker; + $this->colorist = $colorist; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getArtform() + public function getDepth() { - return $this->artform; + return $this->depth; } /** - * @param string $artform + * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArtform($artform) + public function setDepth($depth) { $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $artform = self::checkTypes($artform, $types); + $depth = self::checkTypes($depth, $types); - $this->artform = $artform; + $this->depth = $depth; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getArtworkSurface() + public function getHeight() { - return $this->artworkSurface; + return $this->height; } /** - * @param string $artworkSurface + * @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 setArtworkSurface($artworkSurface) + public function setHeight($height) { $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $artworkSurface = self::checkTypes($artworkSurface, $types); + $height = self::checkTypes($height, $types); - $this->artworkSurface = $artworkSurface; + $this->height = $height; } /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getArtEdition() + public function getInker() { - return $this->artEdition; + return $this->inker; } /** - * @param string|int|null $artEdition + * @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 setArtEdition($artEdition) + public function setInker($inker) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", - "int", - "null", ]; - $artEdition = self::checkTypes($artEdition, $types); + $inker = self::checkTypes($inker, $types); - $this->artEdition = $artEdition; + $this->inker = $inker; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDepth() + public function getLetterer() { - return $this->depth; + return $this->letterer; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth + * @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 setDepth($depth) + public function setLetterer($letterer) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $depth = self::checkTypes($depth, $types); + $letterer = self::checkTypes($letterer, $types); - $this->depth = $depth; + $this->letterer = $letterer; } /** @@ -418,52 +426,79 @@ public function setPenciler($penciler) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getArtist() + public function getSurface() { - return $this->artist; + return $this->surface; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $artist + * @param string $surface * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArtist($artist) + public function setSurface($surface) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $artist = self::checkTypes($artist, $types); + $surface = self::checkTypes($surface, $types); - $this->artist = $artist; + $this->surface = $surface; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getArtMedium() + public function getWeight() { - return $this->artMedium; + return $this->weight; } /** - * @param string $artMedium + * @param \OpenActive\Models\SchemaOrg\Mass|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArtMedium($artMedium) + public function setWeight($weight) { $types = [ + "\OpenActive\Models\SchemaOrg\Mass", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $artMedium = self::checkTypes($artMedium, $types); + $weight = self::checkTypes($weight, $types); - $this->artMedium = $artMedium; + $this->weight = $weight; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getWidth() + { + return $this->width; + } + + /** + * @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 setWidth($width) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $width = self::checkTypes($width, $types); + + $this->width = $width; } } diff --git a/src/Models/SchemaOrg/WarrantyPromise.php b/src/Models/SchemaOrg/WarrantyPromise.php index 80e1e453..0aa39edf 100644 --- a/src/Models/SchemaOrg/WarrantyPromise.php +++ b/src/Models/SchemaOrg/WarrantyPromise.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "warrantyScope" => "warrantyScope", "durationOfWarranty" => "durationOfWarranty", + "warrantyScope" => "warrantyScope", ]; return array_merge(parent::fieldList(), $fields); } /** - * The scope of the warranty promise. + * The duration of the warranty promise. Common unitCode values are ANN for year, MON for months, or DAY for days. * * - * @var \OpenActive\Enums\SchemaOrg\WarrantyScope|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $warrantyScope; + protected $durationOfWarranty; /** - * The duration of the warranty promise. Common unitCode values are ANN for year, MON for months, or DAY for days. + * The scope of the warranty promise. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\WarrantyScope|null */ - protected $durationOfWarranty; + protected $warrantyScope; /** - * @return \OpenActive\Enums\SchemaOrg\WarrantyScope|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getWarrantyScope() + public function getDurationOfWarranty() { - return $this->warrantyScope; + return $this->durationOfWarranty; } /** - * @param \OpenActive\Enums\SchemaOrg\WarrantyScope|null $warrantyScope + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $durationOfWarranty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarrantyScope($warrantyScope) + public function setDurationOfWarranty($durationOfWarranty) { $types = [ - "\OpenActive\Enums\SchemaOrg\WarrantyScope", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $warrantyScope = self::checkTypes($warrantyScope, $types); + $durationOfWarranty = self::checkTypes($durationOfWarranty, $types); - $this->warrantyScope = $warrantyScope; + $this->durationOfWarranty = $durationOfWarranty; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\WarrantyScope|null */ - public function getDurationOfWarranty() + public function getWarrantyScope() { - return $this->durationOfWarranty; + return $this->warrantyScope; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $durationOfWarranty + * @param \OpenActive\Enums\SchemaOrg\WarrantyScope|null $warrantyScope * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDurationOfWarranty($durationOfWarranty) + public function setWarrantyScope($warrantyScope) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "\OpenActive\Enums\SchemaOrg\WarrantyScope", + "null", ]; - $durationOfWarranty = self::checkTypes($durationOfWarranty, $types); + $warrantyScope = self::checkTypes($warrantyScope, $types); - $this->durationOfWarranty = $durationOfWarranty; + $this->warrantyScope = $warrantyScope; } } diff --git a/src/Models/SchemaOrg/WebPage.php b/src/Models/SchemaOrg/WebPage.php index 5a3ac4b1..ef3a5b4f 100644 --- a/src/Models/SchemaOrg/WebPage.php +++ b/src/Models/SchemaOrg/WebPage.php @@ -17,21 +17,29 @@ public static function getType() public static function fieldList() { $fields = [ + "breadcrumb" => "breadcrumb", "lastReviewed" => "lastReviewed", - "specialty" => "specialty", - "primaryImageOfPage" => "primaryImageOfPage", - "significantLink" => "significantLink", - "reviewedBy" => "reviewedBy", "mainContentOfPage" => "mainContentOfPage", + "primaryImageOfPage" => "primaryImageOfPage", "relatedLink" => "relatedLink", - "speakable" => "speakable", - "breadcrumb" => "breadcrumb", + "reviewedBy" => "reviewedBy", + "significantLink" => "significantLink", "significantLinks" => "significantLinks", + "speakable" => "speakable", + "specialty" => "specialty", ]; return array_merge(parent::fieldList(), $fields); } + /** + * A set of links that can help a user understand and navigate a website hierarchy. + * + * + * @var \OpenActive\Models\SchemaOrg\BreadcrumbList|string + */ + protected $breadcrumb; + /** * Date on which the content on this web page was last reviewed for accuracy and/or completeness. * @@ -41,12 +49,12 @@ public static function fieldList() { protected $lastReviewed; /** - * One of the domain specialities to which this web page's content applies. + * Indicates if this web page element is the main subject of the page. * * - * @var \OpenActive\Enums\SchemaOrg\Specialty|null + * @var \OpenActive\Models\SchemaOrg\WebPageElement|string */ - protected $specialty; + protected $mainContentOfPage; /** * Indicates the main image on the page. @@ -57,12 +65,12 @@ public static function fieldList() { protected $primaryImageOfPage; /** - * One of the more significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. + * A link related to this web page, for example to other related web pages. * * * @var string */ - protected $significantLink; + protected $relatedLink; /** * People or organizations that have reviewed the content on this web page for accuracy and/or completeness. @@ -73,20 +81,20 @@ public static function fieldList() { protected $reviewedBy; /** - * Indicates if this web page element is the main subject of the page. + * One of the more significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. * * - * @var \OpenActive\Models\SchemaOrg\WebPageElement|string + * @var string */ - protected $mainContentOfPage; + protected $significantLink; /** - * A link related to this web page, for example to other related web pages. + * The most significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. * * * @var string */ - protected $relatedLink; + protected $significantLinks; /** * Indicates sections of a Web page that are particularly 'speakable' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the 'speakable' property serves to indicate the parts most likely to be generally useful for speech. @@ -95,7 +103,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. * @@ -105,25 +113,42 @@ public static function fieldList() { * * * - * @var string|\OpenActive\Models\SchemaOrg\SpeakableSpecification + * @var \OpenActive\Models\SchemaOrg\SpeakableSpecification|string */ protected $speakable; /** - * A set of links that can help a user understand and navigate a website hierarchy. + * One of the domain specialities to which this web page's content applies. * * - * @var \OpenActive\Models\SchemaOrg\BreadcrumbList|string + * @var \OpenActive\Enums\SchemaOrg\Specialty|null */ - protected $breadcrumb; + protected $specialty; /** - * The most significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. - * - * - * @var string + * @return \OpenActive\Models\SchemaOrg\BreadcrumbList|string */ - protected $significantLinks; + public function getBreadcrumb() + { + return $this->breadcrumb; + } + + /** + * @param \OpenActive\Models\SchemaOrg\BreadcrumbList|string $breadcrumb + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setBreadcrumb($breadcrumb) + { + $types = [ + "\OpenActive\Models\SchemaOrg\BreadcrumbList", + "string", + ]; + + $breadcrumb = self::checkTypes($breadcrumb, $types); + + $this->breadcrumb = $breadcrumb; + } /** * @return Date|null @@ -151,28 +176,28 @@ public function setLastReviewed($lastReviewed) } /** - * @return \OpenActive\Enums\SchemaOrg\Specialty|null + * @return \OpenActive\Models\SchemaOrg\WebPageElement|string */ - public function getSpecialty() + public function getMainContentOfPage() { - return $this->specialty; + return $this->mainContentOfPage; } /** - * @param \OpenActive\Enums\SchemaOrg\Specialty|null $specialty + * @param \OpenActive\Models\SchemaOrg\WebPageElement|string $mainContentOfPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpecialty($specialty) + public function setMainContentOfPage($mainContentOfPage) { $types = [ - "\OpenActive\Enums\SchemaOrg\Specialty", - "null", + "\OpenActive\Models\SchemaOrg\WebPageElement", + "string", ]; - $specialty = self::checkTypes($specialty, $types); + $mainContentOfPage = self::checkTypes($mainContentOfPage, $types); - $this->specialty = $specialty; + $this->mainContentOfPage = $mainContentOfPage; } /** @@ -203,25 +228,25 @@ public function setPrimaryImageOfPage($primaryImageOfPage) /** * @return string */ - public function getSignificantLink() + public function getRelatedLink() { - return $this->significantLink; + return $this->relatedLink; } /** - * @param string $significantLink + * @param string $relatedLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSignificantLink($significantLink) + public function setRelatedLink($relatedLink) { $types = [ "string", ]; - $significantLink = self::checkTypes($significantLink, $types); + $relatedLink = self::checkTypes($relatedLink, $types); - $this->significantLink = $significantLink; + $this->relatedLink = $relatedLink; } /** @@ -251,56 +276,55 @@ public function setReviewedBy($reviewedBy) } /** - * @return \OpenActive\Models\SchemaOrg\WebPageElement|string + * @return string */ - public function getMainContentOfPage() + public function getSignificantLink() { - return $this->mainContentOfPage; + return $this->significantLink; } /** - * @param \OpenActive\Models\SchemaOrg\WebPageElement|string $mainContentOfPage + * @param string $significantLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMainContentOfPage($mainContentOfPage) + public function setSignificantLink($significantLink) { $types = [ - "\OpenActive\Models\SchemaOrg\WebPageElement", "string", ]; - $mainContentOfPage = self::checkTypes($mainContentOfPage, $types); + $significantLink = self::checkTypes($significantLink, $types); - $this->mainContentOfPage = $mainContentOfPage; + $this->significantLink = $significantLink; } /** * @return string */ - public function getRelatedLink() + public function getSignificantLinks() { - return $this->relatedLink; + return $this->significantLinks; } /** - * @param string $relatedLink + * @param string $significantLinks * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedLink($relatedLink) + public function setSignificantLinks($significantLinks) { $types = [ "string", ]; - $relatedLink = self::checkTypes($relatedLink, $types); + $significantLinks = self::checkTypes($significantLinks, $types); - $this->relatedLink = $relatedLink; + $this->significantLinks = $significantLinks; } /** - * @return string|\OpenActive\Models\SchemaOrg\SpeakableSpecification + * @return \OpenActive\Models\SchemaOrg\SpeakableSpecification|string */ public function getSpeakable() { @@ -308,15 +332,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); @@ -325,52 +349,28 @@ public function setSpeakable($speakable) } /** - * @return \OpenActive\Models\SchemaOrg\BreadcrumbList|string - */ - public function getBreadcrumb() - { - return $this->breadcrumb; - } - - /** - * @param \OpenActive\Models\SchemaOrg\BreadcrumbList|string $breadcrumb - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setBreadcrumb($breadcrumb) - { - $types = [ - "\OpenActive\Models\SchemaOrg\BreadcrumbList", - "string", - ]; - - $breadcrumb = self::checkTypes($breadcrumb, $types); - - $this->breadcrumb = $breadcrumb; - } - - /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\Specialty|null */ - public function getSignificantLinks() + public function getSpecialty() { - return $this->significantLinks; + return $this->specialty; } /** - * @param string $significantLinks + * @param \OpenActive\Enums\SchemaOrg\Specialty|null $specialty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSignificantLinks($significantLinks) + public function setSpecialty($specialty) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\Specialty", + "null", ]; - $significantLinks = self::checkTypes($significantLinks, $types); + $specialty = self::checkTypes($specialty, $types); - $this->significantLinks = $significantLinks; + $this->specialty = $specialty; } } diff --git a/src/Models/SchemaOrg/WorkBasedProgram.php b/src/Models/SchemaOrg/WorkBasedProgram.php index bbfb2b27..f1ec7934 100644 --- a/src/Models/SchemaOrg/WorkBasedProgram.php +++ b/src/Models/SchemaOrg/WorkBasedProgram.php @@ -17,78 +17,78 @@ public static function getType() public static function fieldList() { $fields = [ - "trainingSalary" => "trainingSalary", "occupationalCategory" => "occupationalCategory", + "trainingSalary" => "trainingSalary", ]; return array_merge(parent::fieldList(), $fields); } /** - * The estimated salary earned while in the program. + * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n + * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string + * @var \OpenActive\Models\SchemaOrg\CategoryCode|string */ - protected $trainingSalary; + protected $occupationalCategory; /** - * 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 estimated salary earned while in the program. * * - * @var \OpenActive\Models\SchemaOrg\CategoryCode|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - protected $occupationalCategory; + protected $trainingSalary; /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string + * @return \OpenActive\Models\SchemaOrg\CategoryCode|string */ - public function getTrainingSalary() + public function getOccupationalCategory() { - return $this->trainingSalary; + return $this->occupationalCategory; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $trainingSalary + * @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 setTrainingSalary($trainingSalary) + public function setOccupationalCategory($occupationalCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", + "\OpenActive\Models\SchemaOrg\CategoryCode", "string", ]; - $trainingSalary = self::checkTypes($trainingSalary, $types); + $occupationalCategory = self::checkTypes($occupationalCategory, $types); - $this->trainingSalary = $trainingSalary; + $this->occupationalCategory = $occupationalCategory; } /** - * @return \OpenActive\Models\SchemaOrg\CategoryCode|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - public function getOccupationalCategory() + public function getTrainingSalary() { - return $this->occupationalCategory; + return $this->trainingSalary; } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory + * @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 setOccupationalCategory($occupationalCategory) + public function setTrainingSalary($trainingSalary) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", "string", ]; - $occupationalCategory = self::checkTypes($occupationalCategory, $types); + $trainingSalary = self::checkTypes($trainingSalary, $types); - $this->occupationalCategory = $occupationalCategory; + $this->trainingSalary = $trainingSalary; } } diff --git a/src/Models/SchemaOrg/WriteAction.php b/src/Models/SchemaOrg/WriteAction.php index 36aaa059..1daa8364 100644 --- a/src/Models/SchemaOrg/WriteAction.php +++ b/src/Models/SchemaOrg/WriteAction.php @@ -28,7 +28,7 @@ public static function fieldList() { * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\Language|string */ protected $inLanguage; @@ -41,7 +41,7 @@ public static function fieldList() { protected $language; /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\Language|string */ public function getInLanguage() { @@ -49,15 +49,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);