From 04a8a7b3489cb44bc019b7b784fd7072d766b64e Mon Sep 17 00:00:00 2001 From: openactive-bot Date: Thu, 20 Jun 2024 10:06:57 +0000 Subject: [PATCH] Update data models --- src/Enums/PropertyEnumeration.php | 29 +- .../AgentInteractionStatistic.php | 13 + .../{ObservedNode.php => Asin.php} | 6 +- .../{MeasuredValue.php => AuditDate.php} | 6 +- .../CertificationIdentification.php | 13 + .../CertificationRating.php | 13 + .../CertificationStatus.php | 13 + .../CheckoutPageURLTemplate.php | 13 + src/Enums/PropertyEnumeration/ColorSwatch.php | 13 + .../ConstraintProperty.php | 13 + .../PropertyEnumeration/CourseSchedule.php | 13 + .../PropertyEnumeration/DigitalSourceType.php | 13 + .../PropertyEnumeration/HasCertification.php | 13 + .../PropertyEnumeration/HasGS1DigitalLink.php | 13 + .../MeasurementDenominator.php | 13 + .../PropertyEnumeration/MeasurementMethod.php | 13 + ...gProperty.php => MeasurementQualifier.php} | 6 +- src/Enums/PropertyEnumeration/MobileUrl.php | 13 + .../PropertyEnumeration/ObservationAbout.php | 13 + .../PropertyEnumeration/ObservationPeriod.php | 13 + src/Enums/PropertyEnumeration/PracticesAt.php | 13 + .../PropertyEnumeration/ShippingOrigin.php | 13 + src/Enums/PropertyEnumeration/StatType.php | 13 + .../PropertyEnumeration/SyllabusSections.php | 13 + .../TotalHistoricalEnrollment.php | 13 + src/Enums/PropertyEnumeration/TripOrigin.php | 13 + src/Enums/PropertyEnumeration/UsNPI.php | 13 + .../SchemaOrg/AdultOrientedEnumeration.php | 12 +- src/Enums/SchemaOrg/BoardingPolicyType.php | 2 +- src/Enums/SchemaOrg/BookFormatType.php | 4 +- src/Enums/SchemaOrg/CarUsageType.php | 4 +- .../CertificationStatusEnumeration.php | 13 + .../CertificationActive.php | 13 + .../CertificationInactive.php | 13 + src/Enums/SchemaOrg/ContactPointOption.php | 2 +- src/Enums/SchemaOrg/DayOfWeek.php | 6 +- src/Enums/SchemaOrg/DeliveryMethod.php | 2 +- .../SchemaOrg/DigitalPlatformEnumeration.php | 6 +- .../EventAttendanceModeEnumeration.php | 4 +- src/Enums/SchemaOrg/GamePlayMode.php | 4 +- .../SchemaOrg/GovernmentBenefitsType.php | 8 +- .../SchemaOrg/HealthAspectEnumeration.php | 40 +- src/Enums/SchemaOrg/ItemAvailability.php | 12 +- src/Enums/SchemaOrg/LegalValueLevel.php | 4 +- src/Enums/SchemaOrg/MapCategoryType.php | 6 +- src/Enums/SchemaOrg/MeasurementMethodEnum.php | 12 + .../ExampleMeasurementMethodEnum.php | 13 + src/Enums/SchemaOrg/MediaEnumeration.php | 11 + .../MediaManipulationRatingEnumeration.php | 6 +- .../SchemaOrg/MerchantReturnEnumeration.php | 4 +- .../SchemaOrg/MusicAlbumProductionType.php | 10 +- .../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 | 8 +- .../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 | 4 +- .../SchemaOrg/PhysicalActivityCategory.php | 6 +- .../PriceComponentTypeEnumeration.php | 6 +- src/Enums/SchemaOrg/PriceTypeEnumeration.php | 4 +- src/Enums/SchemaOrg/RefundTypeEnumeration.php | 2 +- src/Enums/SchemaOrg/RestrictedDiet.php | 14 +- 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 +- 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 | 18 +- src/Models/OA/OnDemandEvent.php | 18 +- src/Models/OA/Place.php | 67 +- src/Models/OA/QuantitativeValue.php | 4 +- src/Models/OA/WebAPI.php | 10 +- src/Models/SchemaOrg/APIReference.php | 86 +- src/Models/SchemaOrg/Accommodation.php | 381 ++- src/Models/SchemaOrg/Action.php | 280 +- .../SchemaOrg/ActionAccessSpecification.php | 178 +- src/Models/SchemaOrg/AggregateOffer.php | 36 +- src/Models/SchemaOrg/AggregateRating.php | 62 +- src/Models/SchemaOrg/Airline.php | 48 +- src/Models/SchemaOrg/AlignmentObject.php | 64 +- src/Models/SchemaOrg/AmpStory.php | 2 +- src/Models/SchemaOrg/AnatomicalStructure.php | 138 +- src/Models/SchemaOrg/AnatomicalSystem.php | 116 +- src/Models/SchemaOrg/Answer.php | 35 + src/Models/SchemaOrg/Apartment.php | 2 +- src/Models/SchemaOrg/ApartmentComplex.php | 86 +- src/Models/SchemaOrg/ArchiveComponent.php | 8 +- src/Models/SchemaOrg/Artery.php | 34 +- src/Models/SchemaOrg/Article.php | 194 +- src/Models/SchemaOrg/AudioObject.php | 60 +- src/Models/SchemaOrg/Audiobook.php | 2 +- src/Models/SchemaOrg/AuthorizeAction.php | 10 +- src/Models/SchemaOrg/AutoPartsStore.php | 2 +- src/Models/SchemaOrg/BankAccount.php | 60 +- src/Models/SchemaOrg/BioChemEntity.php | 280 +- src/Models/SchemaOrg/Blog.php | 44 +- src/Models/SchemaOrg/BoatTrip.php | 34 +- src/Models/SchemaOrg/Book.php | 72 +- src/Models/SchemaOrg/Brand.php | 68 +- src/Models/SchemaOrg/BroadcastChannel.php | 124 +- src/Models/SchemaOrg/BroadcastEvent.php | 58 +- .../BroadcastFrequencySpecification.php | 8 +- src/Models/SchemaOrg/BroadcastService.php | 218 +- src/Models/SchemaOrg/BusTrip.php | 60 +- src/Models/SchemaOrg/BusinessAudience.php | 34 +- src/Models/SchemaOrg/BuyAction.php | 64 +- src/Models/SchemaOrg/CDCPMDRecord.php | 320 +- src/Models/SchemaOrg/Campground.php | 2 +- src/Models/SchemaOrg/CategoryCode.php | 44 +- src/Models/SchemaOrg/Certification.php | 437 +++ src/Models/SchemaOrg/Chapter.php | 60 +- src/Models/SchemaOrg/ChemicalSubstance.php | 60 +- src/Models/SchemaOrg/ChooseAction.php | 8 +- src/Models/SchemaOrg/Claim.php | 53 +- src/Models/SchemaOrg/Class.php | 10 +- src/Models/SchemaOrg/Clip.php | 204 +- src/Models/SchemaOrg/ComicCoverArt.php | 2 +- src/Models/SchemaOrg/ComicIssue.php | 106 +- src/Models/SchemaOrg/ComicStory.php | 74 +- src/Models/SchemaOrg/Comment.php | 69 +- src/Models/SchemaOrg/CommunicateAction.php | 76 +- src/Models/SchemaOrg/ConstraintNode.php | 94 + src/Models/SchemaOrg/ConsumeAction.php | 2 +- src/Models/SchemaOrg/ContactPoint.php | 208 +- src/Models/SchemaOrg/CookAction.php | 70 +- src/Models/SchemaOrg/Corporation.php | 2 +- src/Models/SchemaOrg/Course.php | 254 +- src/Models/SchemaOrg/CourseInstance.php | 56 +- src/Models/SchemaOrg/CreativeWork.php | 2797 +++++++++-------- src/Models/SchemaOrg/CreativeWorkSeason.php | 216 +- src/Models/SchemaOrg/CreditCard.php | 2 +- src/Models/SchemaOrg/DDxElement.php | 46 +- src/Models/SchemaOrg/DataCatalog.php | 57 +- src/Models/SchemaOrg/DataDownload.php | 57 +- src/Models/SchemaOrg/DataFeed.php | 10 +- src/Models/SchemaOrg/DataFeedItem.php | 86 +- src/Models/SchemaOrg/Dataset.php | 172 +- .../SchemaOrg/DatedMoneySpecification.php | 72 +- src/Models/SchemaOrg/DefinedRegion.php | 78 +- src/Models/SchemaOrg/DefinedTerm.php | 2 +- .../SchemaOrg/DeliveryChargeSpecification.php | 100 +- src/Models/SchemaOrg/DeliveryEvent.php | 50 +- src/Models/SchemaOrg/DeliveryTimeSettings.php | 64 +- src/Models/SchemaOrg/Demand.php | 822 ++--- src/Models/SchemaOrg/Dentist.php | 2 +- src/Models/SchemaOrg/DepositAccount.php | 2 +- src/Models/SchemaOrg/Diet.php | 98 +- src/Models/SchemaOrg/DietarySupplement.php | 230 +- .../SchemaOrg/DigitalDocumentPermission.php | 8 +- src/Models/SchemaOrg/DonateAction.php | 10 +- src/Models/SchemaOrg/DoseSchedule.php | 84 +- src/Models/SchemaOrg/Drug.php | 656 ++-- src/Models/SchemaOrg/DrugCost.php | 108 +- src/Models/SchemaOrg/DrugStrength.php | 94 +- src/Models/SchemaOrg/EducationEvent.php | 48 +- .../EducationalOccupationalCredential.php | 88 +- .../EducationalOccupationalProgram.php | 578 ++-- .../SchemaOrg/EducationalOrganization.php | 2 +- src/Models/SchemaOrg/EmployeeRole.php | 50 +- .../SchemaOrg/EnergyConsumptionDetails.php | 50 +- src/Models/SchemaOrg/EngineSpecification.php | 84 +- src/Models/SchemaOrg/EntryPoint.php | 136 +- src/Models/SchemaOrg/Enumeration.php | 10 +- src/Models/SchemaOrg/Episode.php | 222 +- src/Models/SchemaOrg/Event.php | 968 +++--- .../SchemaOrg/ExchangeRateSpecification.php | 54 +- src/Models/SchemaOrg/ExerciseAction.php | 252 +- src/Models/SchemaOrg/ExercisePlan.php | 182 +- src/Models/SchemaOrg/FinancialProduct.php | 64 +- src/Models/SchemaOrg/FireStation.php | 2 +- src/Models/SchemaOrg/Flight.php | 302 +- src/Models/SchemaOrg/FlightReservation.php | 34 +- src/Models/SchemaOrg/FloorPlan.php | 222 +- src/Models/SchemaOrg/FollowAction.php | 8 +- src/Models/SchemaOrg/FoodEstablishment.php | 114 +- .../FoodEstablishmentReservation.php | 56 +- src/Models/SchemaOrg/Game.php | 104 +- src/Models/SchemaOrg/GameServer.php | 52 +- src/Models/SchemaOrg/Gene.php | 54 +- src/Models/SchemaOrg/GeoCircle.php | 50 +- src/Models/SchemaOrg/GeoCoordinates.php | 76 +- src/Models/SchemaOrg/GeoShape.php | 106 +- src/Models/SchemaOrg/GeospatialGeometry.php | 194 +- src/Models/SchemaOrg/GiveAction.php | 10 +- src/Models/SchemaOrg/GovernmentService.php | 46 +- src/Models/SchemaOrg/Grant.php | 22 +- src/Models/SchemaOrg/HealthInsurancePlan.php | 166 +- .../HealthPlanCostSharingSpecification.php | 90 +- src/Models/SchemaOrg/HealthPlanFormulary.php | 36 +- src/Models/SchemaOrg/HealthPlanNetwork.php | 38 +- src/Models/SchemaOrg/Hospital.php | 74 +- src/Models/SchemaOrg/HotelRoom.php | 52 +- src/Models/SchemaOrg/HowTo.php | 166 +- src/Models/SchemaOrg/HowToDirection.php | 152 +- src/Models/SchemaOrg/HowToItem.php | 8 +- src/Models/SchemaOrg/HowToStep.php | 2 +- src/Models/SchemaOrg/HyperToc.php | 46 +- src/Models/SchemaOrg/HyperTocEntry.php | 60 +- .../IPTCDigitalSourceEnumeration.php | 25 + src/Models/SchemaOrg/ImageObject.php | 102 +- src/Models/SchemaOrg/IndividualPhysician.php | 59 + src/Models/SchemaOrg/InteractionCounter.php | 142 +- src/Models/SchemaOrg/InvestmentOrDeposit.php | 8 +- src/Models/SchemaOrg/Invoice.php | 362 +-- src/Models/SchemaOrg/ItemList.php | 72 +- src/Models/SchemaOrg/JobPosting.php | 827 ++--- src/Models/SchemaOrg/Joint.php | 60 +- src/Models/SchemaOrg/LearningResource.php | 104 +- src/Models/SchemaOrg/Legislation.php | 272 +- src/Models/SchemaOrg/ListItem.php | 88 +- src/Models/SchemaOrg/LiveBlogPosting.php | 50 +- src/Models/SchemaOrg/LoanOrCredit.php | 174 +- src/Models/SchemaOrg/LocalBusiness.php | 56 +- .../LocationFeatureSpecification.php | 64 +- src/Models/SchemaOrg/LodgingBusiness.php | 144 +- src/Models/SchemaOrg/LodgingReservation.php | 142 +- src/Models/SchemaOrg/LymphaticVessel.php | 64 +- src/Models/SchemaOrg/MediaObject.php | 461 +-- src/Models/SchemaOrg/MediaReview.php | 48 +- src/Models/SchemaOrg/MediaSubscription.php | 46 +- src/Models/SchemaOrg/MedicalAudience.php | 2 +- src/Models/SchemaOrg/MedicalClinic.php | 52 +- src/Models/SchemaOrg/MedicalCode.php | 34 +- src/Models/SchemaOrg/MedicalCondition.php | 366 +-- .../SchemaOrg/MedicalConditionStage.php | 48 +- src/Models/SchemaOrg/MedicalDevice.php | 102 +- src/Models/SchemaOrg/MedicalEntity.php | 164 +- src/Models/SchemaOrg/MedicalGuideline.php | 72 +- src/Models/SchemaOrg/MedicalOrganization.php | 64 +- src/Models/SchemaOrg/MedicalProcedure.php | 134 +- src/Models/SchemaOrg/MedicalSign.php | 46 +- src/Models/SchemaOrg/MedicalStudy.php | 72 +- src/Models/SchemaOrg/MedicalTest.php | 96 +- src/Models/SchemaOrg/MedicalTherapy.php | 8 +- src/Models/SchemaOrg/MedicalWebPage.php | 46 +- src/Models/SchemaOrg/MenuItem.php | 76 +- src/Models/SchemaOrg/MerchantReturnPolicy.php | 488 +-- .../MerchantReturnPolicySeasonalOverride.php | 64 +- src/Models/SchemaOrg/Message.php | 220 +- src/Models/SchemaOrg/MolecularEntity.php | 140 +- src/Models/SchemaOrg/MonetaryAmount.php | 134 +- .../SchemaOrg/MonetaryAmountDistribution.php | 2 +- src/Models/SchemaOrg/MonetaryGrant.php | 16 +- src/Models/SchemaOrg/MoneyTransfer.php | 8 +- src/Models/SchemaOrg/MortgageLoan.php | 50 +- src/Models/SchemaOrg/MoveAction.php | 34 +- src/Models/SchemaOrg/Movie.php | 248 +- src/Models/SchemaOrg/MovieSeries.php | 128 +- src/Models/SchemaOrg/MovieTheater.php | 2 +- src/Models/SchemaOrg/Muscle.php | 90 +- src/Models/SchemaOrg/MusicAlbum.php | 76 +- src/Models/SchemaOrg/MusicComposition.php | 230 +- src/Models/SchemaOrg/MusicGroup.php | 98 +- src/Models/SchemaOrg/MusicPlaylist.php | 46 +- src/Models/SchemaOrg/MusicRecording.php | 110 +- src/Models/SchemaOrg/MusicRelease.php | 120 +- src/Models/SchemaOrg/Nerve.php | 74 +- src/Models/SchemaOrg/NewsArticle.php | 62 +- .../SchemaOrg/NewsMediaOrganization.php | 226 +- src/Models/SchemaOrg/NutritionInformation.php | 228 +- src/Models/SchemaOrg/Observation.php | 278 +- src/Models/SchemaOrg/Occupation.php | 134 +- src/Models/SchemaOrg/Offer.php | 1353 ++++---- src/Models/SchemaOrg/OfferShippingDetails.php | 295 +- .../SchemaOrg/OpeningHoursSpecification.php | 104 +- src/Models/SchemaOrg/Order.php | 518 +-- src/Models/SchemaOrg/OrderItem.php | 122 +- src/Models/SchemaOrg/Organization.php | 1659 +++++----- src/Models/SchemaOrg/OwnershipInfo.php | 76 +- src/Models/SchemaOrg/ParcelDelivery.php | 238 +- src/Models/SchemaOrg/ParentAudience.php | 34 +- src/Models/SchemaOrg/Patient.php | 2 +- src/Models/SchemaOrg/PayAction.php | 10 +- src/Models/SchemaOrg/PaymentCard.php | 70 +- .../SchemaOrg/PaymentChargeSpecification.php | 46 +- src/Models/SchemaOrg/PeopleAudience.php | 168 +- src/Models/SchemaOrg/Permit.php | 104 +- src/Models/SchemaOrg/Person.php | 1484 ++++----- src/Models/SchemaOrg/Pharmacy.php | 2 +- src/Models/SchemaOrg/PhysicalActivity.php | 78 +- src/Models/SchemaOrg/Physician.php | 99 +- src/Models/SchemaOrg/PhysiciansOffice.php | 25 + src/Models/SchemaOrg/Place.php | 1039 +++--- src/Models/SchemaOrg/PlanAction.php | 7 +- src/Models/SchemaOrg/PlayAction.php | 46 +- src/Models/SchemaOrg/PlayGameAction.php | 8 +- src/Models/SchemaOrg/PodcastSeries.php | 10 +- src/Models/SchemaOrg/PoliceStation.php | 2 +- src/Models/SchemaOrg/PoliticalParty.php | 25 + src/Models/SchemaOrg/PostalAddress.php | 94 +- .../PostalCodeRangeSpecification.php | 34 +- src/Models/SchemaOrg/PriceSpecification.php | 172 +- src/Models/SchemaOrg/Product.php | 1482 +++++---- src/Models/SchemaOrg/ProductGroup.php | 66 +- src/Models/SchemaOrg/ProductModel.php | 34 +- src/Models/SchemaOrg/ProgramMembership.php | 126 +- src/Models/SchemaOrg/PronounceableText.php | 34 +- src/Models/SchemaOrg/Property.php | 88 +- src/Models/SchemaOrg/PropertyValue.php | 183 +- .../SchemaOrg/PropertyValueSpecification.php | 212 +- src/Models/SchemaOrg/Protein.php | 2 +- src/Models/SchemaOrg/PublicationIssue.php | 80 +- src/Models/SchemaOrg/PublicationVolume.php | 80 +- src/Models/SchemaOrg/QuantitativeValue.php | 150 +- .../QuantitativeValueDistribution.php | 68 +- src/Models/SchemaOrg/Question.php | 105 +- src/Models/SchemaOrg/RadioSeries.php | 296 +- src/Models/SchemaOrg/Rating.php | 112 +- src/Models/SchemaOrg/RealEstateListing.php | 52 +- src/Models/SchemaOrg/ReceiveAction.php | 54 +- src/Models/SchemaOrg/Recipe.php | 200 +- src/Models/SchemaOrg/Recommendation.php | 10 +- src/Models/SchemaOrg/RentAction.php | 48 +- src/Models/SchemaOrg/RentalCarReservation.php | 52 +- .../SchemaOrg/RepaymentSpecification.php | 90 +- src/Models/SchemaOrg/Reservation.php | 304 +- src/Models/SchemaOrg/ReturnAction.php | 10 +- src/Models/SchemaOrg/Review.php | 195 +- src/Models/SchemaOrg/ReviewNewsArticle.php | 2 +- src/Models/SchemaOrg/Role.php | 60 +- src/Models/SchemaOrg/RsvpAction.php | 50 +- src/Models/SchemaOrg/Schedule.php | 296 +- src/Models/SchemaOrg/ScreeningEvent.php | 52 +- src/Models/SchemaOrg/Seat.php | 42 +- src/Models/SchemaOrg/SellAction.php | 48 +- src/Models/SchemaOrg/SendAction.php | 10 +- src/Models/SchemaOrg/Service.php | 554 ++-- src/Models/SchemaOrg/ServiceChannel.php | 162 +- src/Models/SchemaOrg/ShippingDeliveryTime.php | 98 +- src/Models/SchemaOrg/ShippingRateSettings.php | 118 +- .../SchemaOrg/SingleFamilyResidence.php | 2 +- src/Models/SchemaOrg/SizeSpecification.php | 124 +- src/Models/SchemaOrg/SkiResort.php | 2 +- src/Models/SchemaOrg/SoftwareApplication.php | 434 +-- src/Models/SchemaOrg/SoftwareSourceCode.php | 138 +- .../SchemaOrg/SpeakableSpecification.php | 46 +- src/Models/SchemaOrg/SpecialAnnouncement.php | 290 +- src/Models/SchemaOrg/SportsEvent.php | 48 +- src/Models/SchemaOrg/SportsTeam.php | 48 +- .../SchemaOrg/StatisticalPopulation.php | 71 +- src/Models/SchemaOrg/StatisticalVariable.php | 275 ++ src/Models/SchemaOrg/Substance.php | 44 +- src/Models/SchemaOrg/Suite.php | 52 +- src/Models/SchemaOrg/SuperficialAnatomy.php | 88 +- src/Models/SchemaOrg/Syllabus.php | 25 + src/Models/SchemaOrg/TVEpisode.php | 100 +- src/Models/SchemaOrg/TVSeason.php | 64 +- src/Models/SchemaOrg/TVSeries.php | 364 ++- src/Models/SchemaOrg/TaxiReservation.php | 50 +- src/Models/SchemaOrg/Taxon.php | 68 +- src/Models/SchemaOrg/TechArticle.php | 34 +- src/Models/SchemaOrg/TextObject.php | 25 + src/Models/SchemaOrg/TherapeuticProcedure.php | 46 +- src/Models/SchemaOrg/Thing.php | 182 +- src/Models/SchemaOrg/Ticket.php | 186 +- src/Models/SchemaOrg/TipAction.php | 10 +- src/Models/SchemaOrg/TouristAttraction.php | 46 +- src/Models/SchemaOrg/TouristDestination.php | 46 +- src/Models/SchemaOrg/TouristTrip.php | 2 +- src/Models/SchemaOrg/TradeAction.php | 46 +- src/Models/SchemaOrg/TrainTrip.php | 118 +- src/Models/SchemaOrg/TransferAction.php | 34 +- src/Models/SchemaOrg/Trip.php | 132 +- src/Models/SchemaOrg/TypeAndQuantityNode.php | 94 +- .../SchemaOrg/UnitPriceSpecification.php | 176 +- src/Models/SchemaOrg/UpdateAction.php | 30 +- src/Models/SchemaOrg/UserComments.php | 114 +- src/Models/SchemaOrg/VacationRental.php | 25 + src/Models/SchemaOrg/Vehicle.php | 906 +++--- src/Models/SchemaOrg/Vein.php | 64 +- src/Models/SchemaOrg/VideoGame.php | 246 +- src/Models/SchemaOrg/VideoGameSeries.php | 500 +-- src/Models/SchemaOrg/VideoObject.php | 234 +- src/Models/SchemaOrg/VisualArtwork.php | 280 +- src/Models/SchemaOrg/WarrantyPromise.php | 50 +- src/Models/SchemaOrg/WebPage.php | 232 +- src/Models/SchemaOrg/WebPageElement.php | 46 +- src/Models/SchemaOrg/WorkBasedProgram.php | 8 +- src/Models/SchemaOrg/WriteAction.php | 46 +- 398 files changed, 24011 insertions(+), 20910 deletions(-) create mode 100644 src/Enums/PropertyEnumeration/AgentInteractionStatistic.php rename src/Enums/PropertyEnumeration/{ObservedNode.php => Asin.php} (55%) rename src/Enums/PropertyEnumeration/{MeasuredValue.php => AuditDate.php} (55%) 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/ConstraintProperty.php create mode 100644 src/Enums/PropertyEnumeration/CourseSchedule.php create mode 100644 src/Enums/PropertyEnumeration/DigitalSourceType.php create mode 100644 src/Enums/PropertyEnumeration/HasCertification.php create mode 100644 src/Enums/PropertyEnumeration/HasGS1DigitalLink.php create mode 100644 src/Enums/PropertyEnumeration/MeasurementDenominator.php create mode 100644 src/Enums/PropertyEnumeration/MeasurementMethod.php rename src/Enums/PropertyEnumeration/{ConstrainingProperty.php => MeasurementQualifier.php} (54%) create mode 100644 src/Enums/PropertyEnumeration/MobileUrl.php create mode 100644 src/Enums/PropertyEnumeration/ObservationAbout.php create mode 100644 src/Enums/PropertyEnumeration/ObservationPeriod.php create mode 100644 src/Enums/PropertyEnumeration/PracticesAt.php create mode 100644 src/Enums/PropertyEnumeration/ShippingOrigin.php create mode 100644 src/Enums/PropertyEnumeration/StatType.php create mode 100644 src/Enums/PropertyEnumeration/SyllabusSections.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/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/MeasurementMethodEnum.php create mode 100644 src/Enums/SchemaOrg/MeasurementMethodEnum/ExampleMeasurementMethodEnum.php create mode 100644 src/Enums/SchemaOrg/MediaEnumeration.php create mode 100644 src/Enums/SchemaOrg/ReturnMethodEnumeration/KeepProduct.php create mode 100644 src/Models/SchemaOrg/Certification.php create mode 100644 src/Models/SchemaOrg/ConstraintNode.php create mode 100644 src/Models/SchemaOrg/IPTCDigitalSourceEnumeration.php create mode 100644 src/Models/SchemaOrg/IndividualPhysician.php create mode 100644 src/Models/SchemaOrg/PhysiciansOffice.php create mode 100644 src/Models/SchemaOrg/PoliticalParty.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..4a4a5368 100644 --- a/src/Enums/PropertyEnumeration.php +++ b/src/Enums/PropertyEnumeration.php @@ -137,6 +137,7 @@ class PropertyEnumeration const Affiliation = \OpenActive\Enums\PropertyEnumeration\Affiliation::class; const AfterMedia = \OpenActive\Enums\PropertyEnumeration\AfterMedia::class; const Agent = \OpenActive\Enums\PropertyEnumeration\Agent::class; + const AgentInteractionStatistic = \OpenActive\Enums\PropertyEnumeration\AgentInteractionStatistic::class; const AggregateRating = \OpenActive\Enums\PropertyEnumeration\AggregateRating::class; const Aircraft = \OpenActive\Enums\PropertyEnumeration\Aircraft::class; const Album = \OpenActive\Enums\PropertyEnumeration\Album::class; @@ -193,6 +194,7 @@ class PropertyEnumeration const ArticleSection = \OpenActive\Enums\PropertyEnumeration\ArticleSection::class; const Artist = \OpenActive\Enums\PropertyEnumeration\Artist::class; const ArtworkSurface = \OpenActive\Enums\PropertyEnumeration\ArtworkSurface::class; + const Asin = \OpenActive\Enums\PropertyEnumeration\Asin::class; const Aspect = \OpenActive\Enums\PropertyEnumeration\Aspect::class; const Assembly = \OpenActive\Enums\PropertyEnumeration\Assembly::class; const AssemblyVersion = \OpenActive\Enums\PropertyEnumeration\AssemblyVersion::class; @@ -211,6 +213,7 @@ class PropertyEnumeration const Audience = \OpenActive\Enums\PropertyEnumeration\Audience::class; const AudienceType = \OpenActive\Enums\PropertyEnumeration\AudienceType::class; const Audio = \OpenActive\Enums\PropertyEnumeration\Audio::class; + const AuditDate = \OpenActive\Enums\PropertyEnumeration\AuditDate::class; const Authenticator = \OpenActive\Enums\PropertyEnumeration\Authenticator::class; const Author = \OpenActive\Enums\PropertyEnumeration\Author::class; const Availability = \OpenActive\Enums\PropertyEnumeration\Availability::class; @@ -308,11 +311,15 @@ class PropertyEnumeration const Category = \OpenActive\Enums\PropertyEnumeration\Category::class; const CauseOf = \OpenActive\Enums\PropertyEnumeration\CauseOf::class; const CcRecipient = \OpenActive\Enums\PropertyEnumeration\CcRecipient::class; + const CertificationIdentification = \OpenActive\Enums\PropertyEnumeration\CertificationIdentification::class; + const CertificationRating = \OpenActive\Enums\PropertyEnumeration\CertificationRating::class; + const CertificationStatus = \OpenActive\Enums\PropertyEnumeration\CertificationStatus::class; const Character = \OpenActive\Enums\PropertyEnumeration\Character::class; const CharacterAttribute = \OpenActive\Enums\PropertyEnumeration\CharacterAttribute::class; const CharacterName = \OpenActive\Enums\PropertyEnumeration\CharacterName::class; const CheatCode = \OpenActive\Enums\PropertyEnumeration\CheatCode::class; const CheckinTime = \OpenActive\Enums\PropertyEnumeration\CheckinTime::class; + const CheckoutPageURLTemplate = \OpenActive\Enums\PropertyEnumeration\CheckoutPageURLTemplate::class; const CheckoutTime = \OpenActive\Enums\PropertyEnumeration\CheckoutTime::class; const ChemicalComposition = \OpenActive\Enums\PropertyEnumeration\ChemicalComposition::class; const ChemicalRole = \OpenActive\Enums\PropertyEnumeration\ChemicalRole::class; @@ -340,6 +347,7 @@ class PropertyEnumeration const Collection = \OpenActive\Enums\PropertyEnumeration\Collection::class; const CollectionSize = \OpenActive\Enums\PropertyEnumeration\CollectionSize::class; const Color = \OpenActive\Enums\PropertyEnumeration\Color::class; + const ColorSwatch = \OpenActive\Enums\PropertyEnumeration\ColorSwatch::class; const Colorist = \OpenActive\Enums\PropertyEnumeration\Colorist::class; const Comment = \OpenActive\Enums\PropertyEnumeration\Comment::class; const CommentCount = \OpenActive\Enums\PropertyEnumeration\CommentCount::class; @@ -352,7 +360,7 @@ class PropertyEnumeration const ConditionsOfAccess = \OpenActive\Enums\PropertyEnumeration\ConditionsOfAccess::class; const ConfirmationNumber = \OpenActive\Enums\PropertyEnumeration\ConfirmationNumber::class; const ConnectedTo = \OpenActive\Enums\PropertyEnumeration\ConnectedTo::class; - const ConstrainingProperty = \OpenActive\Enums\PropertyEnumeration\ConstrainingProperty::class; + const ConstraintProperty = \OpenActive\Enums\PropertyEnumeration\ConstraintProperty::class; const ContactOption = \OpenActive\Enums\PropertyEnumeration\ContactOption::class; const ContactPoint = \OpenActive\Enums\PropertyEnumeration\ContactPoint::class; const ContactPoints = \OpenActive\Enums\PropertyEnumeration\ContactPoints::class; @@ -390,6 +398,7 @@ class PropertyEnumeration const CourseCode = \OpenActive\Enums\PropertyEnumeration\CourseCode::class; const CourseMode = \OpenActive\Enums\PropertyEnumeration\CourseMode::class; const CoursePrerequisites = \OpenActive\Enums\PropertyEnumeration\CoursePrerequisites::class; + const CourseSchedule = \OpenActive\Enums\PropertyEnumeration\CourseSchedule::class; const CourseWorkload = \OpenActive\Enums\PropertyEnumeration\CourseWorkload::class; const CoverageEndTime = \OpenActive\Enums\PropertyEnumeration\CoverageEndTime::class; const CoverageStartTime = \OpenActive\Enums\PropertyEnumeration\CoverageStartTime::class; @@ -464,6 +473,7 @@ class PropertyEnumeration const Diet = \OpenActive\Enums\PropertyEnumeration\Diet::class; const DietFeatures = \OpenActive\Enums\PropertyEnumeration\DietFeatures::class; const DifferentialDiagnosis = \OpenActive\Enums\PropertyEnumeration\DifferentialDiagnosis::class; + const DigitalSourceType = \OpenActive\Enums\PropertyEnumeration\DigitalSourceType::class; const DirectApply = \OpenActive\Enums\PropertyEnumeration\DirectApply::class; const Director = \OpenActive\Enums\PropertyEnumeration\Director::class; const Directors = \OpenActive\Enums\PropertyEnumeration\Directors::class; @@ -670,6 +680,7 @@ class PropertyEnumeration const HasBioPolymerSequence = \OpenActive\Enums\PropertyEnumeration\HasBioPolymerSequence::class; const HasBroadcastChannel = \OpenActive\Enums\PropertyEnumeration\HasBroadcastChannel::class; const HasCategoryCode = \OpenActive\Enums\PropertyEnumeration\HasCategoryCode::class; + const HasCertification = \OpenActive\Enums\PropertyEnumeration\HasCertification::class; const HasCourse = \OpenActive\Enums\PropertyEnumeration\HasCourse::class; const HasCourseInstance = \OpenActive\Enums\PropertyEnumeration\HasCourseInstance::class; const HasCredential = \OpenActive\Enums\PropertyEnumeration\HasCredential::class; @@ -679,6 +690,7 @@ class PropertyEnumeration const HasDriveThroughService = \OpenActive\Enums\PropertyEnumeration\HasDriveThroughService::class; const HasEnergyConsumptionDetails = \OpenActive\Enums\PropertyEnumeration\HasEnergyConsumptionDetails::class; const HasEnergyEfficiencyCategory = \OpenActive\Enums\PropertyEnumeration\HasEnergyEfficiencyCategory::class; + const HasGS1DigitalLink = \OpenActive\Enums\PropertyEnumeration\HasGS1DigitalLink::class; const HasHealthAspect = \OpenActive\Enums\PropertyEnumeration\HasHealthAspect::class; const HasMap = \OpenActive\Enums\PropertyEnumeration\HasMap::class; const HasMeasurement = \OpenActive\Enums\PropertyEnumeration\HasMeasurement::class; @@ -900,7 +912,9 @@ class PropertyEnumeration const MaximumVirtualAttendeeCapacity = \OpenActive\Enums\PropertyEnumeration\MaximumVirtualAttendeeCapacity::class; const MealService = \OpenActive\Enums\PropertyEnumeration\MealService::class; const MeasuredProperty = \OpenActive\Enums\PropertyEnumeration\MeasuredProperty::class; - const MeasuredValue = \OpenActive\Enums\PropertyEnumeration\MeasuredValue::class; + const MeasurementDenominator = \OpenActive\Enums\PropertyEnumeration\MeasurementDenominator::class; + const MeasurementMethod = \OpenActive\Enums\PropertyEnumeration\MeasurementMethod::class; + const MeasurementQualifier = \OpenActive\Enums\PropertyEnumeration\MeasurementQualifier::class; const MeasurementTechnique = \OpenActive\Enums\PropertyEnumeration\MeasurementTechnique::class; const MechanismOfAction = \OpenActive\Enums\PropertyEnumeration\MechanismOfAction::class; const MediaAuthenticityCategory = \OpenActive\Enums\PropertyEnumeration\MediaAuthenticityCategory::class; @@ -928,6 +942,7 @@ class PropertyEnumeration const MinValue = \OpenActive\Enums\PropertyEnumeration\MinValue::class; const MinimumPaymentDue = \OpenActive\Enums\PropertyEnumeration\MinimumPaymentDue::class; const MissionCoveragePrioritiesPolicy = \OpenActive\Enums\PropertyEnumeration\MissionCoveragePrioritiesPolicy::class; + const MobileUrl = \OpenActive\Enums\PropertyEnumeration\MobileUrl::class; const Model = \OpenActive\Enums\PropertyEnumeration\Model::class; const ModelDate = \OpenActive\Enums\PropertyEnumeration\ModelDate::class; const ModifiedTime = \OpenActive\Enums\PropertyEnumeration\ModifiedTime::class; @@ -990,8 +1005,9 @@ class PropertyEnumeration const NumberedPosition = \OpenActive\Enums\PropertyEnumeration\NumberedPosition::class; const Nutrition = \OpenActive\Enums\PropertyEnumeration\Nutrition::class; const Object = \OpenActive\Enums\PropertyEnumeration\Object::class; + const ObservationAbout = \OpenActive\Enums\PropertyEnumeration\ObservationAbout::class; const ObservationDate = \OpenActive\Enums\PropertyEnumeration\ObservationDate::class; - const ObservedNode = \OpenActive\Enums\PropertyEnumeration\ObservedNode::class; + const ObservationPeriod = \OpenActive\Enums\PropertyEnumeration\ObservationPeriod::class; const Occupancy = \OpenActive\Enums\PropertyEnumeration\Occupancy::class; const OccupationLocation = \OpenActive\Enums\PropertyEnumeration\OccupationLocation::class; const OccupationalCategory = \OpenActive\Enums\PropertyEnumeration\OccupationalCategory::class; @@ -1094,6 +1110,7 @@ class PropertyEnumeration const PostalCodeRange = \OpenActive\Enums\PropertyEnumeration\PostalCodeRange::class; const PotentialAction = \OpenActive\Enums\PropertyEnumeration\PotentialAction::class; const PotentialUse = \OpenActive\Enums\PropertyEnumeration\PotentialUse::class; + const PracticesAt = \OpenActive\Enums\PropertyEnumeration\PracticesAt::class; const PreOp = \OpenActive\Enums\PropertyEnumeration\PreOp::class; const PredecessorOf = \OpenActive\Enums\PropertyEnumeration\PredecessorOf::class; const PregnancyCategory = \OpenActive\Enums\PropertyEnumeration\PregnancyCategory::class; @@ -1302,6 +1319,7 @@ class PropertyEnumeration const ShippingDestination = \OpenActive\Enums\PropertyEnumeration\ShippingDestination::class; const ShippingDetails = \OpenActive\Enums\PropertyEnumeration\ShippingDetails::class; const ShippingLabel = \OpenActive\Enums\PropertyEnumeration\ShippingLabel::class; + const ShippingOrigin = \OpenActive\Enums\PropertyEnumeration\ShippingOrigin::class; const ShippingRate = \OpenActive\Enums\PropertyEnumeration\ShippingRate::class; const ShippingSettingsLink = \OpenActive\Enums\PropertyEnumeration\ShippingSettingsLink::class; const Sibling = \OpenActive\Enums\PropertyEnumeration\Sibling::class; @@ -1347,6 +1365,7 @@ class PropertyEnumeration const StartDate = \OpenActive\Enums\PropertyEnumeration\StartDate::class; const StartOffset = \OpenActive\Enums\PropertyEnumeration\StartOffset::class; const StartTime = \OpenActive\Enums\PropertyEnumeration\StartTime::class; + const StatType = \OpenActive\Enums\PropertyEnumeration\StatType::class; const Status = \OpenActive\Enums\PropertyEnumeration\Status::class; const SteeringPosition = \OpenActive\Enums\PropertyEnumeration\SteeringPosition::class; const Step = \OpenActive\Enums\PropertyEnumeration\Step::class; @@ -1386,6 +1405,7 @@ class PropertyEnumeration const SupplyTo = \OpenActive\Enums\PropertyEnumeration\SupplyTo::class; const SupportingData = \OpenActive\Enums\PropertyEnumeration\SupportingData::class; const Surface = \OpenActive\Enums\PropertyEnumeration\Surface::class; + const SyllabusSections = \OpenActive\Enums\PropertyEnumeration\SyllabusSections::class; const Target = \OpenActive\Enums\PropertyEnumeration\Target::class; const TargetCollection = \OpenActive\Enums\PropertyEnumeration\TargetCollection::class; const TargetDescription = \OpenActive\Enums\PropertyEnumeration\TargetDescription::class; @@ -1426,6 +1446,7 @@ class PropertyEnumeration const TongueWeight = \OpenActive\Enums\PropertyEnumeration\TongueWeight::class; const Tool = \OpenActive\Enums\PropertyEnumeration\Tool::class; const Torque = \OpenActive\Enums\PropertyEnumeration\Torque::class; + const TotalHistoricalEnrollment = \OpenActive\Enums\PropertyEnumeration\TotalHistoricalEnrollment::class; const TotalJobOpenings = \OpenActive\Enums\PropertyEnumeration\TotalJobOpenings::class; const TotalPaymentDue = \OpenActive\Enums\PropertyEnumeration\TotalPaymentDue::class; const TotalPrice = \OpenActive\Enums\PropertyEnumeration\TotalPrice::class; @@ -1451,6 +1472,7 @@ class PropertyEnumeration const TravelBans = \OpenActive\Enums\PropertyEnumeration\TravelBans::class; const TrialDesign = \OpenActive\Enums\PropertyEnumeration\TrialDesign::class; const Tributary = \OpenActive\Enums\PropertyEnumeration\Tributary::class; + const TripOrigin = \OpenActive\Enums\PropertyEnumeration\TripOrigin::class; const TypeOfBed = \OpenActive\Enums\PropertyEnumeration\TypeOfBed::class; const TypeOfGood = \OpenActive\Enums\PropertyEnumeration\TypeOfGood::class; const TypicalAgeRange = \OpenActive\Enums\PropertyEnumeration\TypicalAgeRange::class; @@ -1465,6 +1487,7 @@ class PropertyEnumeration const UpvoteCount = \OpenActive\Enums\PropertyEnumeration\UpvoteCount::class; const Url = \OpenActive\Enums\PropertyEnumeration\Url::class; const UrlTemplate = \OpenActive\Enums\PropertyEnumeration\UrlTemplate::class; + const UsNPI = \OpenActive\Enums\PropertyEnumeration\UsNPI::class; const UsageInfo = \OpenActive\Enums\PropertyEnumeration\UsageInfo::class; const UsedToDiagnose = \OpenActive\Enums\PropertyEnumeration\UsedToDiagnose::class; const UserInteractionCount = \OpenActive\Enums\PropertyEnumeration\UserInteractionCount::class; diff --git a/src/Enums/PropertyEnumeration/AgentInteractionStatistic.php b/src/Enums/PropertyEnumeration/AgentInteractionStatistic.php new file mode 100644 index 00000000..770b1867 --- /dev/null +++ b/src/Enums/PropertyEnumeration/AgentInteractionStatistic.php @@ -0,0 +1,13 @@ + "url", "formattedDescription" => "beta:formattedDescription", "video" => "beta:video", - "virtualTour" => "beta:virtualTour", "serviceOperator" => "beta:serviceOperator", "placeType" => "beta:placeType", ]; @@ -152,14 +151,33 @@ public static function fieldList() { protected $containedInPlace; /** - * Places that exist within this place + * A specific identifiable facility (`SportsActivityLocation`) or place (`Place`) that exist within this place * * ```json - * "containsPlace": { - * "@type": "Place", - * "url": "https://www.everyoneactive.com/centres/Center-Parcs-Sports-Plaza", - * "name": "Center Parcs Sports Plaza" - * } + * "containsPlace": [ + * { + * "@type": "SportsActivityLocation", + * "@id": "https://api.example.com/places/1402CBP20150217/sports-activity-locations/3", + * "url": "https://www.better.org.uk/leisure-centre/manchester/belle-vue-sports-village/facilities", + * "name": "Studio", + * "description": "We have a great range of Fitness Classes at Belle Vue Leisure Centre including Group Cycle, Zumba, Pilates and much much more.", + * "image": [ + * { + * "@type": "ImageObject", + * "url": "https://res-1.cloudinary.com/gll/image/upload/c_fit,f_auto,h_169,w_384/v1592158966/production/0065/7/66/PHOTO-2020-06-09-14-25-53_3.jpg" + * } + * ], + * "specialOpeningHoursSpecification": [ + * { + * "@type": "OpeningHoursSpecification", + * "opens": "00:00", + * "closes": "00:00", + * "validFrom": "2022-01-01", + * "validThrough": "2022-12-31" + * } + * ] + * } + * ] * ``` * * @var \OpenActive\Models\OA\Place[] @@ -269,17 +287,6 @@ public static function fieldList() { */ protected $video; - /** - * [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.] - * A related virtual tour. - * - * If you are using this property, please join the discussion at proposal [#306](https://github.com/openactive/modelling-opportunity-data/issues/306). - * - * - * @var \OpenActive\Models\SchemaOrg\3DModel[] - */ - protected $virtualTour; - /** * [NOTICE: This is a beta property, and is highly likely to change in future versions of this library.] * The organization responsible for the operation of the `Place`. @@ -692,30 +699,6 @@ public function setVideo($video) $this->video = $video; } - /** - * @return \OpenActive\Models\SchemaOrg\3DModel[] - */ - public function getVirtualTour() - { - return $this->virtualTour; - } - - /** - * @param \OpenActive\Models\SchemaOrg\3DModel[] $virtualTour - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setVirtualTour($virtualTour) - { - $types = [ - "\OpenActive\Models\SchemaOrg\3DModel[]", - ]; - - $virtualTour = self::checkTypes($virtualTour, $types); - - $this->virtualTour = $virtualTour; - } - /** * @return \OpenActive\Models\OA\Organization */ diff --git a/src/Models/OA/QuantitativeValue.php b/src/Models/OA/QuantitativeValue.php index 34f692b5..aa73d045 100644 --- a/src/Models/OA/QuantitativeValue.php +++ b/src/Models/OA/QuantitativeValue.php @@ -26,7 +26,7 @@ public static function fieldList() { } /** - * The maximum value. + * The maximum value, inclusive. * * ```json * "maxValue": 60 @@ -37,7 +37,7 @@ public static function fieldList() { protected $maxValue; /** - * The minimum value. + * The minimum value, inclusive. * * ```json * "minValue": 16 diff --git a/src/Models/OA/WebAPI.php b/src/Models/OA/WebAPI.php index 9ffb1dc4..bfd4e9e0 100644 --- a/src/Models/OA/WebAPI.php +++ b/src/Models/OA/WebAPI.php @@ -58,7 +58,7 @@ public static function fieldList() { protected $description; /** - * The location of the OpenID Provider or other relevant authentication authority that must be used to access the API. + * The location of the OpenID Provider that must be used to access the API. * * ```json * "authenticationAuthority": "https://auth.bookingsystem.com" @@ -82,10 +82,10 @@ public static function fieldList() { protected $conformsTo; /** - * A link to documentation related to the Dataset, or a link to the OpenActive developer documentation if no Dataset-specific documentation is available. + * A link to documentation related to how to use the Open Booking API, or a link to the OpenActive developer documentation using `https://permalink.openactive.io/dataset-site/open-booking-api-documentation` if no system-specific documentation is available. * * ```json - * "documentation": "https://developer.openactive.io" + * "documentation": "https://permalink.openactive.io/dataset-site/open-booking-api-documentation" * ``` * * @var string @@ -104,7 +104,7 @@ public static function fieldList() { protected $endpointDescription; /** - * The base URL of the Open Booking API + * The Base URI of this implementation of the Open Booking API * * ```json * "endpointUrl": "https://example.bookingsystem.com/api/openbooking" @@ -115,7 +115,7 @@ public static function fieldList() { protected $endpointUrl; /** - * The web page the broker uses to obtain access to the API, e.g. via a web form. + * The URL of a web page that the Broker may use to obtain access to the API, e.g. via a web form. * * ```json * "landingPage": "https://exampleforms.com/get-me-an-api-access-key" diff --git a/src/Models/SchemaOrg/APIReference.php b/src/Models/SchemaOrg/APIReference.php index 5b335a17..ec43cb5c 100644 --- a/src/Models/SchemaOrg/APIReference.php +++ b/src/Models/SchemaOrg/APIReference.php @@ -17,174 +17,174 @@ public static function getType() public static function fieldList() { $fields = [ - "assembly" => "assembly", - "targetPlatform" => "targetPlatform", - "executableLibraryName" => "executableLibraryName", "programmingModel" => "programmingModel", "assemblyVersion" => "assemblyVersion", + "assembly" => "assembly", + "executableLibraryName" => "executableLibraryName", + "targetPlatform" => "targetPlatform", ]; return array_merge(parent::fieldList(), $fields); } /** - * Library file name e.g., mscorlib.dll, system.web.dll. + * Indicates whether API is managed or unmanaged. * * * @var string */ - protected $assembly; + protected $programmingModel; /** - * Type of app development: phone, Metro style, desktop, XBox, etc. + * Associated product/technology version. E.g., .NET Framework 4.5. * * * @var string */ - protected $targetPlatform; + protected $assemblyVersion; /** - * Library file name e.g., mscorlib.dll, system.web.dll. + * Library file name, e.g., mscorlib.dll, system.web.dll. * * * @var string */ - protected $executableLibraryName; + protected $assembly; /** - * Indicates whether API is managed or unmanaged. + * Library file name, e.g., mscorlib.dll, system.web.dll. * * * @var string */ - protected $programmingModel; + protected $executableLibraryName; /** - * Associated product/technology version. e.g., .NET Framework 4.5. + * Type of app development: phone, Metro style, desktop, XBox, etc. * * * @var string */ - protected $assemblyVersion; + protected $targetPlatform; /** * @return string */ - public function getAssembly() + public function getProgrammingModel() { - return $this->assembly; + return $this->programmingModel; } /** - * @param string $assembly + * @param string $programmingModel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssembly($assembly) + public function setProgrammingModel($programmingModel) { $types = [ "string", ]; - $assembly = self::checkTypes($assembly, $types); + $programmingModel = self::checkTypes($programmingModel, $types); - $this->assembly = $assembly; + $this->programmingModel = $programmingModel; } /** * @return string */ - public function getTargetPlatform() + public function getAssemblyVersion() { - return $this->targetPlatform; + return $this->assemblyVersion; } /** - * @param string $targetPlatform + * @param string $assemblyVersion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTargetPlatform($targetPlatform) + public function setAssemblyVersion($assemblyVersion) { $types = [ "string", ]; - $targetPlatform = self::checkTypes($targetPlatform, $types); + $assemblyVersion = self::checkTypes($assemblyVersion, $types); - $this->targetPlatform = $targetPlatform; + $this->assemblyVersion = $assemblyVersion; } /** * @return string */ - public function getExecutableLibraryName() + public function getAssembly() { - return $this->executableLibraryName; + return $this->assembly; } /** - * @param string $executableLibraryName + * @param string $assembly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExecutableLibraryName($executableLibraryName) + public function setAssembly($assembly) { $types = [ "string", ]; - $executableLibraryName = self::checkTypes($executableLibraryName, $types); + $assembly = self::checkTypes($assembly, $types); - $this->executableLibraryName = $executableLibraryName; + $this->assembly = $assembly; } /** * @return string */ - public function getProgrammingModel() + public function getExecutableLibraryName() { - return $this->programmingModel; + return $this->executableLibraryName; } /** - * @param string $programmingModel + * @param string $executableLibraryName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgrammingModel($programmingModel) + public function setExecutableLibraryName($executableLibraryName) { $types = [ "string", ]; - $programmingModel = self::checkTypes($programmingModel, $types); + $executableLibraryName = self::checkTypes($executableLibraryName, $types); - $this->programmingModel = $programmingModel; + $this->executableLibraryName = $executableLibraryName; } /** * @return string */ - public function getAssemblyVersion() + public function getTargetPlatform() { - return $this->assemblyVersion; + return $this->targetPlatform; } /** - * @param string $assemblyVersion + * @param string $targetPlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssemblyVersion($assemblyVersion) + public function setTargetPlatform($targetPlatform) { $types = [ "string", ]; - $assemblyVersion = self::checkTypes($assemblyVersion, $types); + $targetPlatform = self::checkTypes($targetPlatform, $types); - $this->assemblyVersion = $assemblyVersion; + $this->targetPlatform = $targetPlatform; } } diff --git a/src/Models/SchemaOrg/Accommodation.php b/src/Models/SchemaOrg/Accommodation.php index f94a1485..f98c963b 100644 --- a/src/Models/SchemaOrg/Accommodation.php +++ b/src/Models/SchemaOrg/Accommodation.php @@ -17,75 +17,78 @@ public static function getType() public static function fieldList() { $fields = [ - "floorLevel" => "floorLevel", - "numberOfBathroomsTotal" => "numberOfBathroomsTotal", "numberOfRooms" => "numberOfRooms", + "occupancy" => "occupancy", + "permittedUsage" => "permittedUsage", + "accommodationFloorPlan" => "accommodationFloorPlan", + "floorSize" => "floorSize", "leaseLength" => "leaseLength", - "yearBuilt" => "yearBuilt", - "accommodationCategory" => "accommodationCategory", "amenityFeature" => "amenityFeature", "tourBookingPage" => "tourBookingPage", - "numberOfBedrooms" => "numberOfBedrooms", "numberOfPartialBathrooms" => "numberOfPartialBathrooms", - "floorSize" => "floorSize", - "accommodationFloorPlan" => "accommodationFloorPlan", - "numberOfFullBathrooms" => "numberOfFullBathrooms", - "permittedUsage" => "permittedUsage", + "bed" => "bed", + "numberOfBathroomsTotal" => "numberOfBathroomsTotal", "petsAllowed" => "petsAllowed", + "accommodationCategory" => "accommodationCategory", + "yearBuilt" => "yearBuilt", + "numberOfBedrooms" => "numberOfBedrooms", + "floorLevel" => "floorLevel", + "numberOfFullBathrooms" => "numberOfFullBathrooms", ]; return array_merge(parent::fieldList(), $fields); } /** - * The floor level for an [[Accommodation]] in a multi-storey building. Since counting - * systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible. + * The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. + * Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - protected $floorLevel; + protected $numberOfRooms; /** - * The total integer number of bathrooms in a some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]]. + * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). + * Typical unit code(s): C62 for person. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfBathroomsTotal; + protected $occupancy; /** - * The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. - * Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue. + * Indications regarding the permitted usage of the accommodation. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var string */ - protected $numberOfRooms; + protected $permittedUsage; /** - * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. + * A floorplan of some [[Accommodation]]. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\FloorPlan|string */ - protected $leaseLength; + protected $accommodationFloorPlan; /** - * The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). + * The size of the accommodation, e.g. in square meter or squarefoot. + * Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $yearBuilt; + protected $floorSize; /** - * Category of an [[Accommodation]], following real estate conventions e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields for suggested values). + * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. * * - * @var string + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $accommodationCategory; + protected $leaseLength; /** * An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs. @@ -104,212 +107,230 @@ public static function fieldList() { protected $tourBookingPage; /** - * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]]. + * Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). * * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var Number|null */ - protected $numberOfBedrooms; + protected $numberOfPartialBathrooms; /** - * Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). + * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text. + * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType */ - protected $numberOfPartialBathrooms; + protected $bed; /** - * The size of the accommodation, e.g. in square meter or squarefoot. - * Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard + * The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]]. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var int|null */ - protected $floorSize; + protected $numberOfBathroomsTotal; /** - * A floorplan of some [[Accommodation]]. + * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value. * * - * @var \OpenActive\Models\SchemaOrg\FloorPlan|string + * @var bool|string|null */ - protected $accommodationFloorPlan; + protected $petsAllowed; /** - * Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field). + * Category of an [[Accommodation]], following real estate conventions, e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields for suggested values). + * + * + * @var string + */ + protected $accommodationCategory; + + /** + * The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). * * * @var Number|null */ - protected $numberOfFullBathrooms; + protected $yearBuilt; /** - * Indications regarding the permitted usage of the accommodation. + * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]]. + * + * + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + */ + protected $numberOfBedrooms; + + /** + * The floor level for an [[Accommodation]] in a multi-storey building. Since counting + * systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible. * * * @var string */ - protected $permittedUsage; + protected $floorLevel; /** - * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value. + * Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field). * * - * @var bool|string|null + * @var Number|null */ - protected $petsAllowed; + protected $numberOfFullBathrooms; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - public function getFloorLevel() + public function getNumberOfRooms() { - return $this->floorLevel; + return $this->numberOfRooms; } /** - * @param string $floorLevel + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFloorLevel($floorLevel) + public function setNumberOfRooms($numberOfRooms) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "Number", + "null", ]; - $floorLevel = self::checkTypes($floorLevel, $types); + $numberOfRooms = self::checkTypes($numberOfRooms, $types); - $this->floorLevel = $floorLevel; + $this->numberOfRooms = $numberOfRooms; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfBathroomsTotal() + public function getOccupancy() { - return $this->numberOfBathroomsTotal; + return $this->occupancy; } /** - * @param int|null $numberOfBathroomsTotal + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfBathroomsTotal($numberOfBathroomsTotal) + public function setOccupancy($occupancy) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types); + $occupancy = self::checkTypes($occupancy, $types); - $this->numberOfBathroomsTotal = $numberOfBathroomsTotal; + $this->occupancy = $occupancy; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return string */ - public function getNumberOfRooms() + public function getPermittedUsage() { - return $this->numberOfRooms; + return $this->permittedUsage; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfRooms + * @param string $permittedUsage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfRooms($numberOfRooms) + public function setPermittedUsage($permittedUsage) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $numberOfRooms = self::checkTypes($numberOfRooms, $types); + $permittedUsage = self::checkTypes($permittedUsage, $types); - $this->numberOfRooms = $numberOfRooms; + $this->permittedUsage = $permittedUsage; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\FloorPlan|string */ - public function getLeaseLength() + public function getAccommodationFloorPlan() { - return $this->leaseLength; + return $this->accommodationFloorPlan; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength + * @param \OpenActive\Models\SchemaOrg\FloorPlan|string $accommodationFloorPlan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLeaseLength($leaseLength) + public function setAccommodationFloorPlan($accommodationFloorPlan) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "DateInterval", + "\OpenActive\Models\SchemaOrg\FloorPlan", "string", - "null", ]; - $leaseLength = self::checkTypes($leaseLength, $types); + $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types); - $this->leaseLength = $leaseLength; + $this->accommodationFloorPlan = $accommodationFloorPlan; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getYearBuilt() + public function getFloorSize() { - return $this->yearBuilt; + return $this->floorSize; } /** - * @param Number|null $yearBuilt + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setYearBuilt($yearBuilt) + public function setFloorSize($floorSize) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $yearBuilt = self::checkTypes($yearBuilt, $types); + $floorSize = self::checkTypes($floorSize, $types); - $this->yearBuilt = $yearBuilt; + $this->floorSize = $floorSize; } /** - * @return string + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getAccommodationCategory() + public function getLeaseLength() { - return $this->accommodationCategory; + return $this->leaseLength; } /** - * @param string $accommodationCategory + * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $leaseLength * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccommodationCategory($accommodationCategory) + public function setLeaseLength($leaseLength) { $types = [ + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $accommodationCategory = self::checkTypes($accommodationCategory, $types); + $leaseLength = self::checkTypes($leaseLength, $types); - $this->accommodationCategory = $accommodationCategory; + $this->leaseLength = $leaseLength; } /** @@ -362,180 +383,230 @@ public function setTourBookingPage($tourBookingPage) } /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return Number|null */ - public function getNumberOfBedrooms() + public function getNumberOfPartialBathrooms() { - return $this->numberOfBedrooms; + return $this->numberOfPartialBathrooms; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms + * @param Number|null $numberOfPartialBathrooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfBedrooms($numberOfBedrooms) + public function setNumberOfPartialBathrooms($numberOfPartialBathrooms) { $types = [ "Number", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", "null", ]; - $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types); + $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types); - $this->numberOfBedrooms = $numberOfBedrooms; + $this->numberOfPartialBathrooms = $numberOfPartialBathrooms; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType */ - public function getNumberOfPartialBathrooms() + public function getBed() { - return $this->numberOfPartialBathrooms; + return $this->bed; } /** - * @param Number|null $numberOfPartialBathrooms + * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfPartialBathrooms($numberOfPartialBathrooms) + public function setBed($bed) { $types = [ - "Number", + "\OpenActive\Models\SchemaOrg\BedDetails", + "string", + "\OpenActive\Models\SchemaOrg\BedType", + ]; + + $bed = self::checkTypes($bed, $types); + + $this->bed = $bed; + } + + /** + * @return int|null + */ + public function getNumberOfBathroomsTotal() + { + return $this->numberOfBathroomsTotal; + } + + /** + * @param int|null $numberOfBathroomsTotal + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setNumberOfBathroomsTotal($numberOfBathroomsTotal) + { + $types = [ + "int", "null", ]; - $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types); + $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types); - $this->numberOfPartialBathrooms = $numberOfPartialBathrooms; + $this->numberOfBathroomsTotal = $numberOfBathroomsTotal; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return bool|string|null */ - public function getFloorSize() + public function getPetsAllowed() { - return $this->floorSize; + return $this->petsAllowed; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize + * @param bool|string|null $petsAllowed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFloorSize($floorSize) + public function setPetsAllowed($petsAllowed) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "bool", "string", + "null", ]; - $floorSize = self::checkTypes($floorSize, $types); + $petsAllowed = self::checkTypes($petsAllowed, $types); - $this->floorSize = $floorSize; + $this->petsAllowed = $petsAllowed; } /** - * @return \OpenActive\Models\SchemaOrg\FloorPlan|string + * @return string */ - public function getAccommodationFloorPlan() + public function getAccommodationCategory() { - return $this->accommodationFloorPlan; + return $this->accommodationCategory; } /** - * @param \OpenActive\Models\SchemaOrg\FloorPlan|string $accommodationFloorPlan + * @param string $accommodationCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccommodationFloorPlan($accommodationFloorPlan) + public function setAccommodationCategory($accommodationCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\FloorPlan", "string", ]; - $accommodationFloorPlan = self::checkTypes($accommodationFloorPlan, $types); + $accommodationCategory = self::checkTypes($accommodationCategory, $types); - $this->accommodationFloorPlan = $accommodationFloorPlan; + $this->accommodationCategory = $accommodationCategory; } /** * @return Number|null */ - public function getNumberOfFullBathrooms() + public function getYearBuilt() { - return $this->numberOfFullBathrooms; + return $this->yearBuilt; } /** - * @param Number|null $numberOfFullBathrooms + * @param Number|null $yearBuilt * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfFullBathrooms($numberOfFullBathrooms) + public function setYearBuilt($yearBuilt) { $types = [ "Number", "null", ]; - $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types); + $yearBuilt = self::checkTypes($yearBuilt, $types); - $this->numberOfFullBathrooms = $numberOfFullBathrooms; + $this->yearBuilt = $yearBuilt; } /** - * @return string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getPermittedUsage() + public function getNumberOfBedrooms() { - return $this->permittedUsage; + return $this->numberOfBedrooms; } /** - * @param string $permittedUsage + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPermittedUsage($permittedUsage) + public function setNumberOfBedrooms($numberOfBedrooms) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $permittedUsage = self::checkTypes($permittedUsage, $types); + $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types); - $this->permittedUsage = $permittedUsage; + $this->numberOfBedrooms = $numberOfBedrooms; } /** - * @return bool|string|null + * @return string */ - public function getPetsAllowed() + public function getFloorLevel() { - return $this->petsAllowed; + return $this->floorLevel; } /** - * @param bool|string|null $petsAllowed + * @param string $floorLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPetsAllowed($petsAllowed) + public function setFloorLevel($floorLevel) { $types = [ - "bool", "string", + ]; + + $floorLevel = self::checkTypes($floorLevel, $types); + + $this->floorLevel = $floorLevel; + } + + /** + * @return Number|null + */ + public function getNumberOfFullBathrooms() + { + return $this->numberOfFullBathrooms; + } + + /** + * @param Number|null $numberOfFullBathrooms + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setNumberOfFullBathrooms($numberOfFullBathrooms) + { + $types = [ + "Number", "null", ]; - $petsAllowed = self::checkTypes($petsAllowed, $types); + $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types); - $this->petsAllowed = $petsAllowed; + $this->numberOfFullBathrooms = $numberOfFullBathrooms; } } diff --git a/src/Models/SchemaOrg/Action.php b/src/Models/SchemaOrg/Action.php index 88a8db68..bd4c3d58 100644 --- a/src/Models/SchemaOrg/Action.php +++ b/src/Models/SchemaOrg/Action.php @@ -18,120 +18,120 @@ public static function getType() public static function fieldList() { $fields = [ "agent" => "agent", - "startTime" => "startTime", + "instrument" => "instrument", + "endTime" => "endTime", + "object" => "object", "actionStatus" => "actionStatus", - "provider" => "provider", + "target" => "target", "result" => "result", + "startTime" => "startTime", "location" => "location", - "object" => "object", - "target" => "target", - "endTime" => "endTime", - "participant" => "participant", - "instrument" => "instrument", "error" => "error", + "provider" => "provider", + "participant" => "participant", ]; return array_merge(parent::fieldList(), $fields); } /** - * The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book. + * The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ protected $agent; /** - * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * The object that helped the agent perform the action. E.g. John wrote a book with *a pen*. * * - * @var DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $startTime; + protected $instrument; /** - * Indicates the current disposition of the Action. + * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * - * @var \OpenActive\Models\SchemaOrg\ActionStatusType|string + * @var DateTime|string|null */ - protected $actionStatus; + protected $endTime; /** - * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. + * The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn't). E.g. John read *a book*. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $provider; + protected $object; /** - * The result produced in the action. e.g. John wrote *a book*. + * Indicates the current disposition of the Action. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\ActionStatusType|string */ - protected $result; + protected $actionStatus; /** - * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. + * Indicates a target EntryPoint, or url, for an Action. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @var string|\OpenActive\Models\SchemaOrg\EntryPoint */ - protected $location; + protected $target; /** - * The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn't). e.g. John read *a book*. + * The result produced in the action. E.g. John wrote *a book*. * * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $object; + protected $result; /** - * Indicates a target EntryPoint for an Action. + * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * - * @var \OpenActive\Models\SchemaOrg\EntryPoint|string + * @var DateTime|string|null */ - protected $target; + protected $startTime; /** - * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. * * - * @var DateTime|string|null + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation */ - protected $endTime; + protected $location; /** - * Other co-agents that participated in the action indirectly. e.g. John wrote a book with *Steve*. + * For failed actions, more information on the cause of the failure. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $participant; + protected $error; /** - * The object that helped the agent perform the action. e.g. John wrote a book with *a pen*. + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $instrument; + protected $provider; /** - * For failed actions, more information on the cause of the failure. + * Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $error; + protected $participant; /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ public function getAgent() { @@ -139,15 +139,15 @@ public function getAgent() } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $agent + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $agent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAgent($agent) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; @@ -157,284 +157,284 @@ public function setAgent($agent) } /** - * @return DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getStartTime() + public function getInstrument() { - return $this->startTime; + return $this->instrument; } /** - * @param DateTime|string|null $startTime + * @param \OpenActive\Models\SchemaOrg\Thing|string $instrument * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartTime($startTime) + public function setInstrument($instrument) { $types = [ - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\Thing", + "string", ]; - $startTime = self::checkTypes($startTime, $types); + $instrument = self::checkTypes($instrument, $types); - $this->startTime = $startTime; + $this->instrument = $instrument; } /** - * @return \OpenActive\Models\SchemaOrg\ActionStatusType|string + * @return DateTime|string|null */ - public function getActionStatus() + public function getEndTime() { - return $this->actionStatus; + return $this->endTime; } /** - * @param \OpenActive\Models\SchemaOrg\ActionStatusType|string $actionStatus + * @param DateTime|string|null $endTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActionStatus($actionStatus) + public function setEndTime($endTime) { $types = [ - "\OpenActive\Models\SchemaOrg\ActionStatusType", - "string", + "DateTime", + "Time", + "null", ]; - $actionStatus = self::checkTypes($actionStatus, $types); + $endTime = self::checkTypes($endTime, $types); - $this->actionStatus = $actionStatus; + $this->endTime = $endTime; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getProvider() + public function getObject() { - return $this->provider; + return $this->object; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param \OpenActive\Models\SchemaOrg\Thing|string $object * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setObject($object) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $provider = self::checkTypes($provider, $types); + $object = self::checkTypes($object, $types); - $this->provider = $provider; + $this->object = $object; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\ActionStatusType|string */ - public function getResult() + public function getActionStatus() { - return $this->result; + return $this->actionStatus; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $result + * @param \OpenActive\Models\SchemaOrg\ActionStatusType|string $actionStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setResult($result) + public function setActionStatus($actionStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\ActionStatusType", "string", ]; - $result = self::checkTypes($result, $types); + $actionStatus = self::checkTypes($actionStatus, $types); - $this->result = $result; + $this->actionStatus = $actionStatus; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @return string|\OpenActive\Models\SchemaOrg\EntryPoint */ - public function getLocation() + public function getTarget() { - return $this->location; + return $this->target; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @param string|\OpenActive\Models\SchemaOrg\EntryPoint $target * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLocation($location) + public function setTarget($target) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", "string", - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\VirtualLocation", + "\OpenActive\Models\SchemaOrg\EntryPoint", ]; - $location = self::checkTypes($location, $types); + $target = self::checkTypes($target, $types); - $this->location = $location; + $this->target = $target; } /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getObject() + public function getResult() { - return $this->object; + return $this->result; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $object + * @param \OpenActive\Models\SchemaOrg\Thing|string $result * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setObject($object) + public function setResult($result) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $object = self::checkTypes($object, $types); + $result = self::checkTypes($result, $types); - $this->object = $object; + $this->result = $result; } /** - * @return \OpenActive\Models\SchemaOrg\EntryPoint|string + * @return DateTime|string|null */ - public function getTarget() + public function getStartTime() { - return $this->target; + return $this->startTime; } /** - * @param \OpenActive\Models\SchemaOrg\EntryPoint|string $target + * @param DateTime|string|null $startTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTarget($target) + public function setStartTime($startTime) { $types = [ - "\OpenActive\Models\SchemaOrg\EntryPoint", - "string", + "DateTime", + "Time", + "null", ]; - $target = self::checkTypes($target, $types); + $startTime = self::checkTypes($startTime, $types); - $this->target = $target; + $this->startTime = $startTime; } /** - * @return DateTime|string|null + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation */ - public function getEndTime() + public function getLocation() { - return $this->endTime; + return $this->location; } /** - * @param DateTime|string|null $endTime + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndTime($endTime) + public function setLocation($location) { $types = [ - "DateTime", - "Time", - "null", + "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $endTime = self::checkTypes($endTime, $types); + $location = self::checkTypes($location, $types); - $this->endTime = $endTime; + $this->location = $location; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getParticipant() + public function getError() { - return $this->participant; + return $this->error; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $participant + * @param \OpenActive\Models\SchemaOrg\Thing|string $error * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setParticipant($participant) + public function setError($error) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $participant = self::checkTypes($participant, $types); + $error = self::checkTypes($error, $types); - $this->participant = $participant; + $this->error = $error; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getInstrument() + public function getProvider() { - return $this->instrument; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $instrument + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInstrument($instrument) + public function setProvider($provider) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $instrument = self::checkTypes($instrument, $types); + $provider = self::checkTypes($provider, $types); - $this->instrument = $instrument; + $this->provider = $provider; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getError() + public function getParticipant() { - return $this->error; + return $this->participant; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $error + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $participant * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setError($error) + public function setParticipant($participant) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $error = self::checkTypes($error, $types); + $participant = self::checkTypes($participant, $types); - $this->error = $error; + $this->participant = $participant; } } diff --git a/src/Models/SchemaOrg/ActionAccessSpecification.php b/src/Models/SchemaOrg/ActionAccessSpecification.php index 168e3daf..be6ed5ba 100644 --- a/src/Models/SchemaOrg/ActionAccessSpecification.php +++ b/src/Models/SchemaOrg/ActionAccessSpecification.php @@ -17,249 +17,249 @@ public static function getType() public static function fieldList() { $fields = [ - "expectsAcceptanceOf" => "expectsAcceptanceOf", - "category" => "category", + "eligibleRegion" => "eligibleRegion", "ineligibleRegion" => "ineligibleRegion", + "availabilityStarts" => "availabilityStarts", + "category" => "category", "requiresSubscription" => "requiresSubscription", + "expectsAcceptanceOf" => "expectsAcceptanceOf", "availabilityEnds" => "availabilityEnds", - "eligibleRegion" => "eligibleRegion", - "availabilityStarts" => "availabilityStarts", ]; return array_merge(parent::fieldList(), $fields); } /** - * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. + * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]]. + * * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string */ - protected $expectsAcceptanceOf; + protected $eligibleRegion; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. + * * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - protected $category; + protected $ineligibleRegion; /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. - * + * The beginning of the availability of the product or service included in the offer. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @var Date|DateTime|string|null */ - protected $ineligibleRegion; + protected $availabilityStarts; /** - * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no'). + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null + * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - protected $requiresSubscription; + protected $category; /** - * The end of the availability of the product or service included in the offer. + * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no'). * * - * @var Date|DateTime|string|null + * @var bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null */ - protected $availabilityEnds; + protected $requiresSubscription; /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]]. - * + * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $eligibleRegion; + protected $expectsAcceptanceOf; /** - * The beginning of the availability of the product or service included in the offer. + * The end of the availability of the product or service included in the offer. * * * @var Date|DateTime|string|null */ - protected $availabilityStarts; + protected $availabilityEnds; /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string */ - public function getExpectsAcceptanceOf() + public function getEligibleRegion() { - return $this->expectsAcceptanceOf; + return $this->eligibleRegion; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string $eligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpectsAcceptanceOf($expectsAcceptanceOf) + public function setEligibleRegion($eligibleRegion) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", "string", ]; - $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types); + $eligibleRegion = self::checkTypes($eligibleRegion, $types); - $this->expectsAcceptanceOf = $expectsAcceptanceOf; + $this->eligibleRegion = $eligibleRegion; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - public function getCategory() + public function getIneligibleRegion() { - return $this->category; + return $this->ineligibleRegion; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setIneligibleRegion($ineligibleRegion) { $types = [ "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $category = self::checkTypes($category, $types); + $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - $this->category = $category; + $this->ineligibleRegion = $ineligibleRegion; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @return Date|DateTime|string|null */ - public function getIneligibleRegion() + public function getAvailabilityStarts() { - return $this->ineligibleRegion; + return $this->availabilityStarts; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion + * @param Date|DateTime|string|null $availabilityStarts * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIneligibleRegion($ineligibleRegion) + public function setAvailabilityStarts($availabilityStarts) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", - "\OpenActive\Models\SchemaOrg\GeoShape", + "Date", + "DateTime", + "Time", + "null", ]; - $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); + $availabilityStarts = self::checkTypes($availabilityStarts, $types); - $this->ineligibleRegion = $ineligibleRegion; + $this->availabilityStarts = $availabilityStarts; } /** - * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null + * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - public function getRequiresSubscription() + public function getCategory() { - return $this->requiresSubscription; + return $this->category; } /** - * @param \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null $requiresSubscription + * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiresSubscription($requiresSubscription) + public function setCategory($category) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaSubscription", - "bool", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Thing", "string", "null", ]; - $requiresSubscription = self::checkTypes($requiresSubscription, $types); + $category = self::checkTypes($category, $types); - $this->requiresSubscription = $requiresSubscription; + $this->category = $category; } /** - * @return Date|DateTime|string|null + * @return bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null */ - public function getAvailabilityEnds() + public function getRequiresSubscription() { - return $this->availabilityEnds; + return $this->requiresSubscription; } /** - * @param Date|DateTime|string|null $availabilityEnds + * @param bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null $requiresSubscription * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailabilityEnds($availabilityEnds) + public function setRequiresSubscription($requiresSubscription) { $types = [ - "Date", - "DateTime", - "Time", + "bool", + "\OpenActive\Models\SchemaOrg\MediaSubscription", + "string", "null", ]; - $availabilityEnds = self::checkTypes($availabilityEnds, $types); + $requiresSubscription = self::checkTypes($requiresSubscription, $types); - $this->availabilityEnds = $availabilityEnds; + $this->requiresSubscription = $requiresSubscription; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getEligibleRegion() + public function getExpectsAcceptanceOf() { - return $this->eligibleRegion; + return $this->expectsAcceptanceOf; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion + * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleRegion($eligibleRegion) + public function setExpectsAcceptanceOf($expectsAcceptanceOf) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Offer", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $eligibleRegion = self::checkTypes($eligibleRegion, $types); + $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types); - $this->eligibleRegion = $eligibleRegion; + $this->expectsAcceptanceOf = $expectsAcceptanceOf; } /** * @return Date|DateTime|string|null */ - public function getAvailabilityStarts() + public function getAvailabilityEnds() { - return $this->availabilityStarts; + return $this->availabilityEnds; } /** - * @param Date|DateTime|string|null $availabilityStarts + * @param Date|DateTime|string|null $availabilityEnds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailabilityStarts($availabilityStarts) + public function setAvailabilityEnds($availabilityEnds) { $types = [ "Date", @@ -268,9 +268,9 @@ public function setAvailabilityStarts($availabilityStarts) "null", ]; - $availabilityStarts = self::checkTypes($availabilityStarts, $types); + $availabilityEnds = self::checkTypes($availabilityEnds, $types); - $this->availabilityStarts = $availabilityStarts; + $this->availabilityEnds = $availabilityEnds; } } diff --git a/src/Models/SchemaOrg/AggregateOffer.php b/src/Models/SchemaOrg/AggregateOffer.php index 6fca86b3..928d9e23 100644 --- a/src/Models/SchemaOrg/AggregateOffer.php +++ b/src/Models/SchemaOrg/AggregateOffer.php @@ -17,9 +17,9 @@ public static function getType() public static function fieldList() { $fields = [ - "highPrice" => "highPrice", - "offers" => "offers", "lowPrice" => "lowPrice", + "offers" => "offers", + "highPrice" => "highPrice", "offerCount" => "offerCount", ]; @@ -27,12 +27,12 @@ public static function fieldList() { } /** - * The highest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * The lowest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * * @var string|Number|null */ - protected $highPrice; + protected $lowPrice; /** * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. @@ -44,12 +44,12 @@ public static function fieldList() { protected $offers; /** - * The lowest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * The highest price of all offers available.\n\nUsage guidelines:\n\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * * @var string|Number|null */ - protected $lowPrice; + protected $highPrice; /** * The number of offers for the product. @@ -62,17 +62,17 @@ public static function fieldList() { /** * @return string|Number|null */ - public function getHighPrice() + public function getLowPrice() { - return $this->highPrice; + return $this->lowPrice; } /** - * @param string|Number|null $highPrice + * @param string|Number|null $lowPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHighPrice($highPrice) + public function setLowPrice($lowPrice) { $types = [ "string", @@ -80,9 +80,9 @@ public function setHighPrice($highPrice) "null", ]; - $highPrice = self::checkTypes($highPrice, $types); + $lowPrice = self::checkTypes($lowPrice, $types); - $this->highPrice = $highPrice; + $this->lowPrice = $lowPrice; } /** @@ -114,17 +114,17 @@ public function setOffers($offers) /** * @return string|Number|null */ - public function getLowPrice() + public function getHighPrice() { - return $this->lowPrice; + return $this->highPrice; } /** - * @param string|Number|null $lowPrice + * @param string|Number|null $highPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLowPrice($lowPrice) + public function setHighPrice($highPrice) { $types = [ "string", @@ -132,9 +132,9 @@ public function setLowPrice($lowPrice) "null", ]; - $lowPrice = self::checkTypes($lowPrice, $types); + $highPrice = self::checkTypes($highPrice, $types); - $this->lowPrice = $lowPrice; + $this->highPrice = $highPrice; } /** diff --git a/src/Models/SchemaOrg/AggregateRating.php b/src/Models/SchemaOrg/AggregateRating.php index 67100854..eb1f8015 100644 --- a/src/Models/SchemaOrg/AggregateRating.php +++ b/src/Models/SchemaOrg/AggregateRating.php @@ -17,22 +17,14 @@ public static function getType() public static function fieldList() { $fields = [ - "itemReviewed" => "itemReviewed", "reviewCount" => "reviewCount", "ratingCount" => "ratingCount", + "itemReviewed" => "itemReviewed", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The item that is being reviewed/rated. - * - * - * @var \OpenActive\Models\SchemaOrg\Thing|string - */ - protected $itemReviewed; - /** * The count of total number of reviews. * @@ -50,29 +42,12 @@ public static function fieldList() { protected $ratingCount; /** - * @return \OpenActive\Models\SchemaOrg\Thing|string - */ - public function getItemReviewed() - { - return $this->itemReviewed; - } - - /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The item that is being reviewed/rated. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - public function setItemReviewed($itemReviewed) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Thing", - "string", - ]; - - $itemReviewed = self::checkTypes($itemReviewed, $types); - - $this->itemReviewed = $itemReviewed; - } + protected $itemReviewed; /** * @return int|null @@ -124,4 +99,29 @@ public function setRatingCount($ratingCount) $this->ratingCount = $ratingCount; } + /** + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getItemReviewed() + { + return $this->itemReviewed; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setItemReviewed($itemReviewed) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Thing", + "string", + ]; + + $itemReviewed = self::checkTypes($itemReviewed, $types); + + $this->itemReviewed = $itemReviewed; + } + } diff --git a/src/Models/SchemaOrg/Airline.php b/src/Models/SchemaOrg/Airline.php index a4de60d7..b93d32c8 100644 --- a/src/Models/SchemaOrg/Airline.php +++ b/src/Models/SchemaOrg/Airline.php @@ -17,76 +17,76 @@ public static function getType() public static function fieldList() { $fields = [ - "iataCode" => "iataCode", "boardingPolicy" => "boardingPolicy", + "iataCode" => "iataCode", ]; return array_merge(parent::fieldList(), $fields); } /** - * IATA identifier for an airline or airport. + * The type of boarding policy used by the airline (e.g. zone-based or group-based). * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null */ - protected $iataCode; + protected $boardingPolicy; /** - * The type of boarding policy used by the airline (e.g. zone-based or group-based). + * IATA identifier for an airline or airport. * * - * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null + * @var string */ - protected $boardingPolicy; + protected $iataCode; /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null */ - public function getIataCode() + public function getBoardingPolicy() { - return $this->iataCode; + return $this->boardingPolicy; } /** - * @param string $iataCode + * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIataCode($iataCode) + public function setBoardingPolicy($boardingPolicy) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\BoardingPolicyType", + "null", ]; - $iataCode = self::checkTypes($iataCode, $types); + $boardingPolicy = self::checkTypes($boardingPolicy, $types); - $this->iataCode = $iataCode; + $this->boardingPolicy = $boardingPolicy; } /** - * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null + * @return string */ - public function getBoardingPolicy() + public function getIataCode() { - return $this->boardingPolicy; + return $this->iataCode; } /** - * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy + * @param string $iataCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBoardingPolicy($boardingPolicy) + public function setIataCode($iataCode) { $types = [ - "\OpenActive\Enums\SchemaOrg\BoardingPolicyType", - "null", + "string", ]; - $boardingPolicy = self::checkTypes($boardingPolicy, $types); + $iataCode = self::checkTypes($iataCode, $types); - $this->boardingPolicy = $boardingPolicy; + $this->iataCode = $iataCode; } } diff --git a/src/Models/SchemaOrg/AlignmentObject.php b/src/Models/SchemaOrg/AlignmentObject.php index 88da01c9..fe28d63e 100644 --- a/src/Models/SchemaOrg/AlignmentObject.php +++ b/src/Models/SchemaOrg/AlignmentObject.php @@ -17,16 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ + "targetName" => "targetName", "alignmentType" => "alignmentType", "educationalFramework" => "educationalFramework", "targetDescription" => "targetDescription", - "targetName" => "targetName", "targetUrl" => "targetUrl", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The name of a node in an established educational framework. + * + * + * @var string + */ + protected $targetName; + /** * A category of alignment between the learning resource and the framework node. Recommended values include: 'requires', 'textComplexity', 'readingLevel', and 'educationalSubject'. * @@ -52,20 +60,36 @@ public static function fieldList() { protected $targetDescription; /** - * The name of a node in an established educational framework. + * The URL of a node in an established educational framework. * * * @var string */ - protected $targetName; + protected $targetUrl; /** - * The URL of a node in an established educational framework. - * - * - * @var string + * @return string */ - protected $targetUrl; + public function getTargetName() + { + return $this->targetName; + } + + /** + * @param string $targetName + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTargetName($targetName) + { + $types = [ + "string", + ]; + + $targetName = self::checkTypes($targetName, $types); + + $this->targetName = $targetName; + } /** * @return string @@ -139,30 +163,6 @@ public function setTargetDescription($targetDescription) $this->targetDescription = $targetDescription; } - /** - * @return string - */ - public function getTargetName() - { - return $this->targetName; - } - - /** - * @param string $targetName - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setTargetName($targetName) - { - $types = [ - "string", - ]; - - $targetName = self::checkTypes($targetName, $types); - - $this->targetName = $targetName; - } - /** * @return string */ diff --git a/src/Models/SchemaOrg/AmpStory.php b/src/Models/SchemaOrg/AmpStory.php index cc5088b0..7a4303af 100644 --- a/src/Models/SchemaOrg/AmpStory.php +++ b/src/Models/SchemaOrg/AmpStory.php @@ -5,7 +5,7 @@ /** * */ -class AmpStory extends \OpenActive\Models\SchemaOrg\CreativeWork +class AmpStory extends \OpenActive\Models\SchemaOrg\MediaObject { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/AnatomicalStructure.php b/src/Models/SchemaOrg/AnatomicalStructure.php index 7151ee2f..e16a733d 100644 --- a/src/Models/SchemaOrg/AnatomicalStructure.php +++ b/src/Models/SchemaOrg/AnatomicalStructure.php @@ -18,13 +18,13 @@ public static function getType() public static function fieldList() { $fields = [ "bodyLocation" => "bodyLocation", - "connectedTo" => "connectedTo", + "diagram" => "diagram", "partOfSystem" => "partOfSystem", + "associatedPathophysiology" => "associatedPathophysiology", + "subStructure" => "subStructure", + "connectedTo" => "connectedTo", "relatedTherapy" => "relatedTherapy", - "diagram" => "diagram", "relatedCondition" => "relatedCondition", - "subStructure" => "subStructure", - "associatedPathophysiology" => "associatedPathophysiology", ]; return array_merge(parent::fieldList(), $fields); @@ -39,12 +39,12 @@ public static function fieldList() { protected $bodyLocation; /** - * Other anatomical structures to which this structure is connected. + * An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $connectedTo; + protected $diagram; /** * The anatomical or organ system that this structure is part of. @@ -55,44 +55,44 @@ public static function fieldList() { protected $partOfSystem; /** - * A medical therapy related to this anatomy. + * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var string */ - protected $relatedTherapy; + protected $associatedPathophysiology; /** - * An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures. + * Component (sub-)structure(s) that comprise this anatomical structure. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $diagram; + protected $subStructure; /** - * A medical condition associated with this anatomy. + * Other anatomical structures to which this structure is connected. * * - * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $relatedCondition; + protected $connectedTo; /** - * Component (sub-)structure(s) that comprise this anatomical structure. + * A medical therapy related to this anatomy. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - protected $subStructure; + protected $relatedTherapy; /** - * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. + * A medical condition associated with this anatomy. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $associatedPathophysiology; + protected $relatedCondition; /** * @return string @@ -119,28 +119,28 @@ public function setBodyLocation($bodyLocation) } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getConnectedTo() + public function getDiagram() { - return $this->connectedTo; + return $this->diagram; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $connectedTo + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $diagram * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setConnectedTo($connectedTo) + public function setDiagram($diagram) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $connectedTo = self::checkTypes($connectedTo, $types); + $diagram = self::checkTypes($diagram, $types); - $this->connectedTo = $connectedTo; + $this->diagram = $diagram; } /** @@ -169,127 +169,127 @@ public function setPartOfSystem($partOfSystem) } /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return string */ - public function getRelatedTherapy() + public function getAssociatedPathophysiology() { - return $this->relatedTherapy; + return $this->associatedPathophysiology; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy + * @param string $associatedPathophysiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedTherapy($relatedTherapy) + public function setAssociatedPathophysiology($associatedPathophysiology) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $relatedTherapy = self::checkTypes($relatedTherapy, $types); + $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); - $this->relatedTherapy = $relatedTherapy; + $this->associatedPathophysiology = $associatedPathophysiology; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getDiagram() + public function getSubStructure() { - return $this->diagram; + return $this->subStructure; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $diagram + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $subStructure * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiagram($diagram) + public function setSubStructure($subStructure) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $diagram = self::checkTypes($diagram, $types); + $subStructure = self::checkTypes($subStructure, $types); - $this->diagram = $diagram; + $this->subStructure = $subStructure; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getRelatedCondition() + public function getConnectedTo() { - return $this->relatedCondition; + return $this->connectedTo; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $connectedTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedCondition($relatedCondition) + public function setConnectedTo($connectedTo) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalCondition", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $relatedCondition = self::checkTypes($relatedCondition, $types); + $connectedTo = self::checkTypes($connectedTo, $types); - $this->relatedCondition = $relatedCondition; + $this->connectedTo = $connectedTo; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getSubStructure() + public function getRelatedTherapy() { - return $this->subStructure; + return $this->relatedTherapy; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $subStructure + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubStructure($subStructure) + public function setRelatedTherapy($relatedTherapy) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $subStructure = self::checkTypes($subStructure, $types); + $relatedTherapy = self::checkTypes($relatedTherapy, $types); - $this->subStructure = $subStructure; + $this->relatedTherapy = $relatedTherapy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getAssociatedPathophysiology() + public function getRelatedCondition() { - return $this->associatedPathophysiology; + return $this->relatedCondition; } /** - * @param string $associatedPathophysiology + * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedPathophysiology($associatedPathophysiology) + public function setRelatedCondition($relatedCondition) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); + $relatedCondition = self::checkTypes($relatedCondition, $types); - $this->associatedPathophysiology = $associatedPathophysiology; + $this->relatedCondition = $relatedCondition; } } diff --git a/src/Models/SchemaOrg/AnatomicalSystem.php b/src/Models/SchemaOrg/AnatomicalSystem.php index 3c5f3391..eabc9511 100644 --- a/src/Models/SchemaOrg/AnatomicalSystem.php +++ b/src/Models/SchemaOrg/AnatomicalSystem.php @@ -17,179 +17,179 @@ public static function getType() public static function fieldList() { $fields = [ + "comprisedOf" => "comprisedOf", + "associatedPathophysiology" => "associatedPathophysiology", "relatedTherapy" => "relatedTherapy", - "relatedCondition" => "relatedCondition", "relatedStructure" => "relatedStructure", - "associatedPathophysiology" => "associatedPathophysiology", - "comprisedOf" => "comprisedOf", + "relatedCondition" => "relatedCondition", ]; return array_merge(parent::fieldList(), $fields); } /** - * A medical therapy related to this anatomy. + * Specifying something physically contained by something else. Typically used here for the underlying anatomical structures, such as organs, that comprise the anatomical system. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - protected $relatedTherapy; + protected $comprisedOf; /** - * A medical condition associated with this anatomy. + * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. * * - * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @var string */ - protected $relatedCondition; + protected $associatedPathophysiology; /** - * Related anatomical structure(s) that are not part of the system but relate or connect to it, such as vascular bundles associated with an organ system. + * A medical therapy related to this anatomy. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - protected $relatedStructure; + protected $relatedTherapy; /** - * If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system. + * Related anatomical structure(s) that are not part of the system but relate or connect to it, such as vascular bundles associated with an organ system. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $associatedPathophysiology; + protected $relatedStructure; /** - * Specifying something physically contained by something else. Typically used here for the underlying anatomical structures, such as organs, that comprise the anatomical system. + * A medical condition associated with this anatomy. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string + * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $comprisedOf; + protected $relatedCondition; /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - public function getRelatedTherapy() + public function getComprisedOf() { - return $this->relatedTherapy; + return $this->comprisedOf; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $comprisedOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedTherapy($relatedTherapy) + public function setComprisedOf($comprisedOf) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; - $relatedTherapy = self::checkTypes($relatedTherapy, $types); + $comprisedOf = self::checkTypes($comprisedOf, $types); - $this->relatedTherapy = $relatedTherapy; + $this->comprisedOf = $comprisedOf; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @return string */ - public function getRelatedCondition() + public function getAssociatedPathophysiology() { - return $this->relatedCondition; + return $this->associatedPathophysiology; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition + * @param string $associatedPathophysiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedCondition($relatedCondition) + public function setAssociatedPathophysiology($associatedPathophysiology) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $relatedCondition = self::checkTypes($relatedCondition, $types); + $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); - $this->relatedCondition = $relatedCondition; + $this->associatedPathophysiology = $associatedPathophysiology; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getRelatedStructure() + public function getRelatedTherapy() { - return $this->relatedStructure; + return $this->relatedTherapy; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $relatedStructure + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedStructure($relatedStructure) + public function setRelatedTherapy($relatedTherapy) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $relatedStructure = self::checkTypes($relatedStructure, $types); + $relatedTherapy = self::checkTypes($relatedTherapy, $types); - $this->relatedStructure = $relatedStructure; + $this->relatedTherapy = $relatedTherapy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getAssociatedPathophysiology() + public function getRelatedStructure() { - return $this->associatedPathophysiology; + return $this->relatedStructure; } /** - * @param string $associatedPathophysiology + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $relatedStructure * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedPathophysiology($associatedPathophysiology) + public function setRelatedStructure($relatedStructure) { $types = [ + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); + $relatedStructure = self::checkTypes($relatedStructure, $types); - $this->associatedPathophysiology = $associatedPathophysiology; + $this->relatedStructure = $relatedStructure; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string + * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getComprisedOf() + public function getRelatedCondition() { - return $this->comprisedOf; + return $this->relatedCondition; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $comprisedOf + * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $relatedCondition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setComprisedOf($comprisedOf) + public function setRelatedCondition($relatedCondition) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", + "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $comprisedOf = self::checkTypes($comprisedOf, $types); + $relatedCondition = self::checkTypes($relatedCondition, $types); - $this->comprisedOf = $comprisedOf; + $this->relatedCondition = $relatedCondition; } } diff --git a/src/Models/SchemaOrg/Answer.php b/src/Models/SchemaOrg/Answer.php index a188ef02..8821e1f9 100644 --- a/src/Models/SchemaOrg/Answer.php +++ b/src/Models/SchemaOrg/Answer.php @@ -17,12 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ + "parentItem" => "parentItem", "answerExplanation" => "answerExplanation", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The parent of a question, answer or item in general. Typically used for Q/A discussion threads e.g. a chain of comments with the first comment being an [[Article]] or other [[CreativeWork]]. See also [[comment]] which points from something to a comment about it. + * + * + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string + */ + protected $parentItem; + /** * A step-by-step or full explanation about Answer. Can outline how this Answer was achieved or contain more broad clarification or statement about it. * @@ -31,6 +40,32 @@ public static function fieldList() { */ protected $answerExplanation; + /** + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string + */ + public function getParentItem() + { + return $this->parentItem; + } + + /** + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string $parentItem + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setParentItem($parentItem) + { + $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Comment", + "string", + ]; + + $parentItem = self::checkTypes($parentItem, $types); + + $this->parentItem = $parentItem; + } + /** * @return \OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\Comment|string */ diff --git a/src/Models/SchemaOrg/Apartment.php b/src/Models/SchemaOrg/Apartment.php index 89cfe3f1..95533952 100644 --- a/src/Models/SchemaOrg/Apartment.php +++ b/src/Models/SchemaOrg/Apartment.php @@ -35,7 +35,7 @@ public static function fieldList() { /** * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). - * Typical unit code(s): C62 for person + * Typical unit code(s): C62 for person. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string diff --git a/src/Models/SchemaOrg/ApartmentComplex.php b/src/Models/SchemaOrg/ApartmentComplex.php index 840b9180..48ca8e52 100644 --- a/src/Models/SchemaOrg/ApartmentComplex.php +++ b/src/Models/SchemaOrg/ApartmentComplex.php @@ -17,24 +17,16 @@ public static function getType() public static function fieldList() { $fields = [ - "numberOfAccommodationUnits" => "numberOfAccommodationUnits", "numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits", "tourBookingPage" => "tourBookingPage", - "numberOfBedrooms" => "numberOfBedrooms", "petsAllowed" => "petsAllowed", + "numberOfBedrooms" => "numberOfBedrooms", + "numberOfAccommodationUnits" => "numberOfAccommodationUnits", ]; return array_merge(parent::fieldList(), $fields); } - /** - * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]]. - * - * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string - */ - protected $numberOfAccommodationUnits; - /** * Indicates the number of available accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAccommodationUnits]]. * @@ -51,6 +43,14 @@ public static function fieldList() { */ protected $tourBookingPage; + /** + * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value. + * + * + * @var bool|string|null + */ + protected $petsAllowed; + /** * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]]. * @@ -60,85 +60,86 @@ public static function fieldList() { protected $numberOfBedrooms; /** - * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value. + * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]]. * * - * @var bool|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $petsAllowed; + protected $numberOfAccommodationUnits; /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfAccommodationUnits() + public function getNumberOfAvailableAccommodationUnits() { - return $this->numberOfAccommodationUnits; + return $this->numberOfAvailableAccommodationUnits; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfAccommodationUnits($numberOfAccommodationUnits) + public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types); + $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types); - $this->numberOfAccommodationUnits = $numberOfAccommodationUnits; + $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getNumberOfAvailableAccommodationUnits() + public function getTourBookingPage() { - return $this->numberOfAvailableAccommodationUnits; + return $this->tourBookingPage; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits + * @param string $tourBookingPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits) + public function setTourBookingPage($tourBookingPage) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types); + $tourBookingPage = self::checkTypes($tourBookingPage, $types); - $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits; + $this->tourBookingPage = $tourBookingPage; } /** - * @return string + * @return bool|string|null */ - public function getTourBookingPage() + public function getPetsAllowed() { - return $this->tourBookingPage; + return $this->petsAllowed; } /** - * @param string $tourBookingPage + * @param bool|string|null $petsAllowed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTourBookingPage($tourBookingPage) + public function setPetsAllowed($petsAllowed) { $types = [ + "bool", "string", + "null", ]; - $tourBookingPage = self::checkTypes($tourBookingPage, $types); + $petsAllowed = self::checkTypes($petsAllowed, $types); - $this->tourBookingPage = $tourBookingPage; + $this->petsAllowed = $petsAllowed; } /** @@ -169,29 +170,28 @@ public function setNumberOfBedrooms($numberOfBedrooms) } /** - * @return bool|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getPetsAllowed() + public function getNumberOfAccommodationUnits() { - return $this->petsAllowed; + return $this->numberOfAccommodationUnits; } /** - * @param bool|string|null $petsAllowed + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPetsAllowed($petsAllowed) + public function setNumberOfAccommodationUnits($numberOfAccommodationUnits) { $types = [ - "bool", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $petsAllowed = self::checkTypes($petsAllowed, $types); + $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types); - $this->petsAllowed = $petsAllowed; + $this->numberOfAccommodationUnits = $numberOfAccommodationUnits; } } diff --git a/src/Models/SchemaOrg/ArchiveComponent.php b/src/Models/SchemaOrg/ArchiveComponent.php index 3aa0360c..9e014ae9 100644 --- a/src/Models/SchemaOrg/ArchiveComponent.php +++ b/src/Models/SchemaOrg/ArchiveComponent.php @@ -36,7 +36,7 @@ public static function fieldList() { * [object Object] * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place */ protected $itemLocation; @@ -66,7 +66,7 @@ public function setHoldingArchive($holdingArchive) } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place */ public function getItemLocation() { @@ -74,16 +74,16 @@ public function getItemLocation() } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $itemLocation + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place $itemLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setItemLocation($itemLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Place", ]; $itemLocation = self::checkTypes($itemLocation, $types); diff --git a/src/Models/SchemaOrg/Artery.php b/src/Models/SchemaOrg/Artery.php index 31bd6c37..d38df343 100644 --- a/src/Models/SchemaOrg/Artery.php +++ b/src/Models/SchemaOrg/Artery.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "supplyTo" => "supplyTo", "arterialBranch" => "arterialBranch", + "supplyTo" => "supplyTo", ]; return array_merge(parent::fieldList(), $fields); } /** - * The area to which the artery supplies blood. + * The branches that comprise the arterial structure. * * * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $supplyTo; + protected $arterialBranch; /** - * The branches that comprise the arterial structure. + * The area to which the artery supplies blood. * * * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - protected $arterialBranch; + protected $supplyTo; /** * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getSupplyTo() + public function getArterialBranch() { - return $this->supplyTo; + return $this->arterialBranch; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $supplyTo + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $arterialBranch * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupplyTo($supplyTo) + public function setArterialBranch($arterialBranch) { $types = [ "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $supplyTo = self::checkTypes($supplyTo, $types); + $arterialBranch = self::checkTypes($arterialBranch, $types); - $this->supplyTo = $supplyTo; + $this->arterialBranch = $arterialBranch; } /** * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getArterialBranch() + public function getSupplyTo() { - return $this->arterialBranch; + return $this->supplyTo; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $arterialBranch + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $supplyTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArterialBranch($arterialBranch) + public function setSupplyTo($supplyTo) { $types = [ "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $arterialBranch = self::checkTypes($arterialBranch, $types); + $supplyTo = self::checkTypes($supplyTo, $types); - $this->arterialBranch = $arterialBranch; + $this->supplyTo = $supplyTo; } } diff --git a/src/Models/SchemaOrg/Article.php b/src/Models/SchemaOrg/Article.php index 7191721f..11629f53 100644 --- a/src/Models/SchemaOrg/Article.php +++ b/src/Models/SchemaOrg/Article.php @@ -17,50 +17,71 @@ public static function getType() public static function fieldList() { $fields = [ + "pagination" => "pagination", + "backstory" => "backstory", + "speakable" => "speakable", "pageStart" => "pageStart", - "articleSection" => "articleSection", "pageEnd" => "pageEnd", - "backstory" => "backstory", "wordCount" => "wordCount", "articleBody" => "articleBody", - "speakable" => "speakable", - "pagination" => "pagination", + "articleSection" => "articleSection", ]; return array_merge(parent::fieldList(), $fields); } /** - * The page on which the work starts; for example "135" or "xiii". + * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". * * - * @var string|int|null + * @var string */ - protected $pageStart; + protected $pagination; /** - * Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc. + * For an [[Article]], typically a [[NewsArticle]], the backstory property provides a textual summary giving a brief explanation of why and how an article was created. In a journalistic setting this could include information about reporting process, methods, interviews, data sources, etc. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $articleSection; + protected $backstory; /** - * The page on which the work ends; for example "138" or "xvi". + * Indicates sections of a Web page that are particularly 'speakable' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the 'speakable' property serves to indicate the parts most likely to be generally useful for speech. + * + * The *speakable* property can be repeated an arbitrary number of times, with three kinds of possible 'content-locator' values: + * + * 1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned. + * + * 2.) CSS Selectors - addresses content in the annotated page, e.g. via class attribute. Use the [[cssSelector]] property. + * + * 3.) XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property. + * + * + * For more sophisticated markup of speakable sections beyond simple ID references, either CSS selectors or XPath expressions to pick out document section(s) as speakable. For this + * we define a supporting type, [[SpeakableSpecification]] which is defined to be a possible value of the *speakable* property. + * + * + * + * @var \OpenActive\Models\SchemaOrg\SpeakableSpecification|string + */ + protected $speakable; + + /** + * The page on which the work starts; for example "135" or "xiii". * * * @var string|int|null */ - protected $pageEnd; + protected $pageStart; /** - * For an [[Article]], typically a [[NewsArticle]], the backstory property provides a textual summary giving a brief explanation of why and how an article was created. In a journalistic setting this could include information about reporting process, methods, interviews, data sources, etc. + * The page on which the work ends; for example "138" or "xvi". * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var string|int|null */ - protected $backstory; + protected $pageEnd; /** * The number of words in the text of the Article. @@ -79,98 +100,101 @@ public static function fieldList() { protected $articleBody; /** - * Indicates sections of a Web page that are particularly 'speakable' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the 'speakable' property serves to indicate the parts most likely to be generally useful for speech. - * - * The *speakable* property can be repeated an arbitrary number of times, with three kinds of possible 'content-locator' values: - * - * 1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned. - * - * 2.) CSS Selectors - addresses content in the annotated page, eg. via class attribute. Use the [[cssSelector]] property. - * - * 3.) XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property. - * - * - * For more sophisticated markup of speakable sections beyond simple ID references, either CSS selectors or XPath expressions to pick out document section(s) as speakable. For this - * we define a supporting type, [[SpeakableSpecification]] which is defined to be a possible value of the *speakable* property. - * + * Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc. * * - * @var string|\OpenActive\Models\SchemaOrg\SpeakableSpecification + * @var string */ - protected $speakable; + protected $articleSection; /** - * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". - * - * - * @var string + * @return string */ - protected $pagination; + public function getPagination() + { + return $this->pagination; + } /** - * @return string|int|null + * @param string $pagination + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function getPageStart() + public function setPagination($pagination) { - return $this->pageStart; + $types = [ + "string", + ]; + + $pagination = self::checkTypes($pagination, $types); + + $this->pagination = $pagination; } /** - * @param string|int|null $pageStart + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + */ + public function getBackstory() + { + return $this->backstory; + } + + /** + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $backstory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageStart($pageStart) + public function setBackstory($backstory) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", - "int", - "null", ]; - $pageStart = self::checkTypes($pageStart, $types); + $backstory = self::checkTypes($backstory, $types); - $this->pageStart = $pageStart; + $this->backstory = $backstory; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SpeakableSpecification|string */ - public function getArticleSection() + public function getSpeakable() { - return $this->articleSection; + return $this->speakable; } /** - * @param string $articleSection + * @param \OpenActive\Models\SchemaOrg\SpeakableSpecification|string $speakable * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArticleSection($articleSection) + public function setSpeakable($speakable) { $types = [ + "\OpenActive\Models\SchemaOrg\SpeakableSpecification", "string", ]; - $articleSection = self::checkTypes($articleSection, $types); + $speakable = self::checkTypes($speakable, $types); - $this->articleSection = $articleSection; + $this->speakable = $speakable; } /** * @return string|int|null */ - public function getPageEnd() + public function getPageStart() { - return $this->pageEnd; + return $this->pageStart; } /** - * @param string|int|null $pageEnd + * @param string|int|null $pageStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageEnd($pageEnd) + public function setPageStart($pageStart) { $types = [ "string", @@ -178,34 +202,35 @@ public function setPageEnd($pageEnd) "null", ]; - $pageEnd = self::checkTypes($pageEnd, $types); + $pageStart = self::checkTypes($pageStart, $types); - $this->pageEnd = $pageEnd; + $this->pageStart = $pageStart; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return string|int|null */ - public function getBackstory() + public function getPageEnd() { - return $this->backstory; + return $this->pageEnd; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $backstory + * @param string|int|null $pageEnd * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBackstory($backstory) + public function setPageEnd($pageEnd) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "int", + "null", ]; - $backstory = self::checkTypes($backstory, $types); + $pageEnd = self::checkTypes($pageEnd, $types); - $this->backstory = $backstory; + $this->pageEnd = $pageEnd; } /** @@ -257,53 +282,28 @@ public function setArticleBody($articleBody) $this->articleBody = $articleBody; } - /** - * @return string|\OpenActive\Models\SchemaOrg\SpeakableSpecification - */ - public function getSpeakable() - { - return $this->speakable; - } - - /** - * @param string|\OpenActive\Models\SchemaOrg\SpeakableSpecification $speakable - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setSpeakable($speakable) - { - $types = [ - "string", - "\OpenActive\Models\SchemaOrg\SpeakableSpecification", - ]; - - $speakable = self::checkTypes($speakable, $types); - - $this->speakable = $speakable; - } - /** * @return string */ - public function getPagination() + public function getArticleSection() { - return $this->pagination; + return $this->articleSection; } /** - * @param string $pagination + * @param string $articleSection * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPagination($pagination) + public function setArticleSection($articleSection) { $types = [ "string", ]; - $pagination = self::checkTypes($pagination, $types); + $articleSection = self::checkTypes($articleSection, $types); - $this->pagination = $pagination; + $this->articleSection = $articleSection; } } diff --git a/src/Models/SchemaOrg/AudioObject.php b/src/Models/SchemaOrg/AudioObject.php index 6c0af6a0..b7d98c84 100644 --- a/src/Models/SchemaOrg/AudioObject.php +++ b/src/Models/SchemaOrg/AudioObject.php @@ -17,109 +17,109 @@ public static function getType() public static function fieldList() { $fields = [ + "transcript" => "transcript", "embeddedTextCaption" => "embeddedTextCaption", "caption" => "caption", - "transcript" => "transcript", ]; return array_merge(parent::fieldList(), $fields); } /** - * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. + * If this MediaObject is an AudioObject or VideoObject, the transcript of that object. * * * @var string */ - protected $embeddedTextCaption; + protected $transcript; /** - * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. + * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. * * - * @var string|\OpenActive\Models\SchemaOrg\MediaObject + * @var string */ - protected $caption; + protected $embeddedTextCaption; /** - * If this MediaObject is an AudioObject or VideoObject, the transcript of that object. + * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $transcript; + protected $caption; /** * @return string */ - public function getEmbeddedTextCaption() + public function getTranscript() { - return $this->embeddedTextCaption; + return $this->transcript; } /** - * @param string $embeddedTextCaption + * @param string $transcript * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmbeddedTextCaption($embeddedTextCaption) + public function setTranscript($transcript) { $types = [ "string", ]; - $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); + $transcript = self::checkTypes($transcript, $types); - $this->embeddedTextCaption = $embeddedTextCaption; + $this->transcript = $transcript; } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return string */ - public function getCaption() + public function getEmbeddedTextCaption() { - return $this->caption; + return $this->embeddedTextCaption; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption + * @param string $embeddedTextCaption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCaption($caption) + public function setEmbeddedTextCaption($embeddedTextCaption) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $caption = self::checkTypes($caption, $types); + $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - $this->caption = $caption; + $this->embeddedTextCaption = $embeddedTextCaption; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getTranscript() + public function getCaption() { - return $this->transcript; + return $this->caption; } /** - * @param string $transcript + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $caption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTranscript($transcript) + public function setCaption($caption) { $types = [ + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $transcript = self::checkTypes($transcript, $types); + $caption = self::checkTypes($caption, $types); - $this->transcript = $transcript; + $this->caption = $caption; } } diff --git a/src/Models/SchemaOrg/Audiobook.php b/src/Models/SchemaOrg/Audiobook.php index 86bdf5c8..28a3874c 100644 --- a/src/Models/SchemaOrg/Audiobook.php +++ b/src/Models/SchemaOrg/Audiobook.php @@ -5,7 +5,7 @@ /** * */ -class Audiobook extends \OpenActive\Models\SchemaOrg\AudioObject +class Audiobook extends \OpenActive\Models\SchemaOrg\Book { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/AuthorizeAction.php b/src/Models/SchemaOrg/AuthorizeAction.php index 8f33b194..162a3356 100644 --- a/src/Models/SchemaOrg/AuthorizeAction.php +++ b/src/Models/SchemaOrg/AuthorizeAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ public function getRecipient() { @@ -40,17 +40,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRecipient($recipient) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; diff --git a/src/Models/SchemaOrg/AutoPartsStore.php b/src/Models/SchemaOrg/AutoPartsStore.php index 92b5ba9f..c321eaea 100644 --- a/src/Models/SchemaOrg/AutoPartsStore.php +++ b/src/Models/SchemaOrg/AutoPartsStore.php @@ -5,7 +5,7 @@ /** * */ -class AutoPartsStore extends \OpenActive\Models\SchemaOrg\Store +class AutoPartsStore extends \OpenActive\Models\SchemaOrg\AutomotiveBusiness { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/BankAccount.php b/src/Models/SchemaOrg/BankAccount.php index d574381d..e2e78acb 100644 --- a/src/Models/SchemaOrg/BankAccount.php +++ b/src/Models/SchemaOrg/BankAccount.php @@ -17,110 +17,110 @@ public static function getType() public static function fieldList() { $fields = [ + "accountOverdraftLimit" => "accountOverdraftLimit", "bankAccountType" => "bankAccountType", "accountMinimumInflow" => "accountMinimumInflow", - "accountOverdraftLimit" => "accountOverdraftLimit", ]; return array_merge(parent::fieldList(), $fields); } /** - * The type of a bank account. + * An overdraft is an extension of credit from a lending institution when an account reaches zero. An overdraft allows the individual to continue withdrawing money even if the account has no funds in it. Basically the bank allows people to borrow a set amount of money. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $bankAccountType; + protected $accountOverdraftLimit; /** - * A minimum amount that has to be paid in every month. + * The type of a bank account. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var string */ - protected $accountMinimumInflow; + protected $bankAccountType; /** - * An overdraft is an extension of credit from a lending institution when an account reaches zero. An overdraft allows the individual to continue withdrawing money even if the account has no funds in it. Basically the bank allows people to borrow a set amount of money. + * A minimum amount that has to be paid in every month. * * * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $accountOverdraftLimit; + protected $accountMinimumInflow; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getBankAccountType() + public function getAccountOverdraftLimit() { - return $this->bankAccountType; + return $this->accountOverdraftLimit; } /** - * @param string $bankAccountType + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $accountOverdraftLimit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBankAccountType($bankAccountType) + public function setAccountOverdraftLimit($accountOverdraftLimit) { $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $bankAccountType = self::checkTypes($bankAccountType, $types); + $accountOverdraftLimit = self::checkTypes($accountOverdraftLimit, $types); - $this->bankAccountType = $bankAccountType; + $this->accountOverdraftLimit = $accountOverdraftLimit; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return string */ - public function getAccountMinimumInflow() + public function getBankAccountType() { - return $this->accountMinimumInflow; + return $this->bankAccountType; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $accountMinimumInflow + * @param string $bankAccountType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccountMinimumInflow($accountMinimumInflow) + public function setBankAccountType($bankAccountType) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $accountMinimumInflow = self::checkTypes($accountMinimumInflow, $types); + $bankAccountType = self::checkTypes($bankAccountType, $types); - $this->accountMinimumInflow = $accountMinimumInflow; + $this->bankAccountType = $bankAccountType; } /** * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getAccountOverdraftLimit() + public function getAccountMinimumInflow() { - return $this->accountOverdraftLimit; + return $this->accountMinimumInflow; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $accountOverdraftLimit + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $accountMinimumInflow * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccountOverdraftLimit($accountOverdraftLimit) + public function setAccountMinimumInflow($accountMinimumInflow) { $types = [ "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $accountOverdraftLimit = self::checkTypes($accountOverdraftLimit, $types); + $accountMinimumInflow = self::checkTypes($accountMinimumInflow, $types); - $this->accountOverdraftLimit = $accountOverdraftLimit; + $this->accountMinimumInflow = $accountMinimumInflow; } } diff --git a/src/Models/SchemaOrg/BioChemEntity.php b/src/Models/SchemaOrg/BioChemEntity.php index c73b1a54..748d6075 100644 --- a/src/Models/SchemaOrg/BioChemEntity.php +++ b/src/Models/SchemaOrg/BioChemEntity.php @@ -17,24 +17,32 @@ public static function getType() public static function fieldList() { $fields = [ + "hasBioChemEntityPart" => "hasBioChemEntityPart", "funding" => "funding", - "isEncodedByBioChemEntity" => "isEncodedByBioChemEntity", - "isPartOfBioChemEntity" => "isPartOfBioChemEntity", - "taxonomicRange" => "taxonomicRange", + "biologicalRole" => "biologicalRole", + "associatedDisease" => "associatedDisease", "isInvolvedInBiologicalProcess" => "isInvolvedInBiologicalProcess", + "isPartOfBioChemEntity" => "isPartOfBioChemEntity", "isLocatedInSubcellularLocation" => "isLocatedInSubcellularLocation", - "associatedDisease" => "associatedDisease", - "hasMolecularFunction" => "hasMolecularFunction", - "hasBioChemEntityPart" => "hasBioChemEntityPart", - "bioChemInteraction" => "bioChemInteraction", "hasRepresentation" => "hasRepresentation", + "isEncodedByBioChemEntity" => "isEncodedByBioChemEntity", "bioChemSimilarity" => "bioChemSimilarity", - "biologicalRole" => "biologicalRole", + "bioChemInteraction" => "bioChemInteraction", + "hasMolecularFunction" => "hasMolecularFunction", + "taxonomicRange" => "taxonomicRange", ]; return array_merge(parent::fieldList(), $fields); } + /** + * Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part. + * + * + * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string + */ + protected $hasBioChemEntityPart; + /** * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * @@ -44,68 +52,68 @@ public static function fieldList() { protected $funding; /** - * Another BioChemEntity encoding by this one. + * A role played by the BioChemEntity within a biological context. * * - * @var \OpenActive\Models\SchemaOrg\Gene|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $isEncodedByBioChemEntity; + protected $biologicalRole; /** - * Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity. + * Disease associated to this BioChemEntity. Such disease can be a MedicalCondition or a URL. If you want to add an evidence supporting the association, please use PropertyValue. * * - * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string + * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $isPartOfBioChemEntity; + protected $associatedDisease; /** - * The taxonomic grouping of the organism that expresses, encodes, or in someway related to the BioChemEntity. + * Biological process this BioChemEntity is involved in; please use PropertyValue if you want to include any evidence. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $taxonomicRange; + protected $isInvolvedInBiologicalProcess; /** - * Biological process this BioChemEntity is involved in; please use PropertyValue if you want to include any evidence. + * Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - protected $isInvolvedInBiologicalProcess; + protected $isPartOfBioChemEntity; /** * Subcellular location where this BioChemEntity is located; please use PropertyValue if you want to include any evidence. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ protected $isLocatedInSubcellularLocation; /** - * Disease associated to this BioChemEntity. Such disease can be a MedicalCondition or a URL. If you want to add an evidence supporting the association, please use PropertyValue. + * A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image. * * - * @var string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition + * @var string|\OpenActive\Models\SchemaOrg\PropertyValue */ - protected $associatedDisease; + protected $hasRepresentation; /** - * Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence. + * Another BioChemEntity encoding by this one. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\Gene|string */ - protected $hasMolecularFunction; + protected $isEncodedByBioChemEntity; /** - * Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part. + * A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms. * * * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - protected $hasBioChemEntityPart; + protected $bioChemSimilarity; /** * A BioChemEntity that is known to interact with this item. @@ -116,28 +124,45 @@ public static function fieldList() { protected $bioChemInteraction; /** - * A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image. + * Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence. * * - * @var string|\OpenActive\Models\SchemaOrg\PropertyValue + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $hasRepresentation; + protected $hasMolecularFunction; /** - * A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms. + * The taxonomic grouping of the organism that expresses, encodes, or in some way related to the BioChemEntity. * * - * @var \OpenActive\Models\SchemaOrg\BioChemEntity|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon */ - protected $bioChemSimilarity; + protected $taxonomicRange; /** - * A role played by the BioChemEntity within a biological context. - * - * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - protected $biologicalRole; + public function getHasBioChemEntityPart() + { + return $this->hasBioChemEntityPart; + } + + /** + * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $hasBioChemEntityPart + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHasBioChemEntityPart($hasBioChemEntityPart) + { + $types = [ + "\OpenActive\Models\SchemaOrg\BioChemEntity", + "string", + ]; + + $hasBioChemEntityPart = self::checkTypes($hasBioChemEntityPart, $types); + + $this->hasBioChemEntityPart = $hasBioChemEntityPart; + } /** * @return \OpenActive\Models\SchemaOrg\Grant|string @@ -165,109 +190,109 @@ public function setFunding($funding) } /** - * @return \OpenActive\Models\SchemaOrg\Gene|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getIsEncodedByBioChemEntity() + public function getBiologicalRole() { - return $this->isEncodedByBioChemEntity; + return $this->biologicalRole; } /** - * @param \OpenActive\Models\SchemaOrg\Gene|string $isEncodedByBioChemEntity + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $biologicalRole * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsEncodedByBioChemEntity($isEncodedByBioChemEntity) + public function setBiologicalRole($biologicalRole) { $types = [ - "\OpenActive\Models\SchemaOrg\Gene", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $isEncodedByBioChemEntity = self::checkTypes($isEncodedByBioChemEntity, $types); + $biologicalRole = self::checkTypes($biologicalRole, $types); - $this->isEncodedByBioChemEntity = $isEncodedByBioChemEntity; + $this->biologicalRole = $biologicalRole; } /** - * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string + * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getIsPartOfBioChemEntity() + public function getAssociatedDisease() { - return $this->isPartOfBioChemEntity; + return $this->associatedDisease; } /** - * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $isPartOfBioChemEntity + * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition|string $associatedDisease * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsPartOfBioChemEntity($isPartOfBioChemEntity) + public function setAssociatedDisease($associatedDisease) { $types = [ - "\OpenActive\Models\SchemaOrg\BioChemEntity", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $isPartOfBioChemEntity = self::checkTypes($isPartOfBioChemEntity, $types); + $associatedDisease = self::checkTypes($associatedDisease, $types); - $this->isPartOfBioChemEntity = $isPartOfBioChemEntity; + $this->associatedDisease = $associatedDisease; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getTaxonomicRange() + public function getIsInvolvedInBiologicalProcess() { - return $this->taxonomicRange; + return $this->isInvolvedInBiologicalProcess; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon $taxonomicRange + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $isInvolvedInBiologicalProcess * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTaxonomicRange($taxonomicRange) + public function setIsInvolvedInBiologicalProcess($isInvolvedInBiologicalProcess) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", - "\OpenActive\Models\SchemaOrg\Taxon", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", ]; - $taxonomicRange = self::checkTypes($taxonomicRange, $types); + $isInvolvedInBiologicalProcess = self::checkTypes($isInvolvedInBiologicalProcess, $types); - $this->taxonomicRange = $taxonomicRange; + $this->isInvolvedInBiologicalProcess = $isInvolvedInBiologicalProcess; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - public function getIsInvolvedInBiologicalProcess() + public function getIsPartOfBioChemEntity() { - return $this->isInvolvedInBiologicalProcess; + return $this->isPartOfBioChemEntity; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string|\OpenActive\Models\SchemaOrg\DefinedTerm $isInvolvedInBiologicalProcess + * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $isPartOfBioChemEntity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsInvolvedInBiologicalProcess($isInvolvedInBiologicalProcess) + public function setIsPartOfBioChemEntity($isPartOfBioChemEntity) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\BioChemEntity", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $isInvolvedInBiologicalProcess = self::checkTypes($isInvolvedInBiologicalProcess, $types); + $isPartOfBioChemEntity = self::checkTypes($isPartOfBioChemEntity, $types); - $this->isInvolvedInBiologicalProcess = $isInvolvedInBiologicalProcess; + $this->isPartOfBioChemEntity = $isPartOfBioChemEntity; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ public function getIsLocatedInSubcellularLocation() { @@ -275,15 +300,15 @@ public function getIsLocatedInSubcellularLocation() } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $isLocatedInSubcellularLocation + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $isLocatedInSubcellularLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; @@ -293,80 +318,78 @@ public function setIsLocatedInSubcellularLocation($isLocatedInSubcellularLocatio } /** - * @return string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition + * @return string|\OpenActive\Models\SchemaOrg\PropertyValue */ - public function getAssociatedDisease() + public function getHasRepresentation() { - return $this->associatedDisease; + return $this->hasRepresentation; } /** - * @param string|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\MedicalCondition $associatedDisease + * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $hasRepresentation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedDisease($associatedDisease) + public function setHasRepresentation($hasRepresentation) { $types = [ "string", "\OpenActive\Models\SchemaOrg\PropertyValue", - "\OpenActive\Models\SchemaOrg\MedicalCondition", ]; - $associatedDisease = self::checkTypes($associatedDisease, $types); + $hasRepresentation = self::checkTypes($hasRepresentation, $types); - $this->associatedDisease = $associatedDisease; + $this->hasRepresentation = $hasRepresentation; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\Gene|string */ - public function getHasMolecularFunction() + public function getIsEncodedByBioChemEntity() { - return $this->hasMolecularFunction; + return $this->isEncodedByBioChemEntity; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string $hasMolecularFunction + * @param \OpenActive\Models\SchemaOrg\Gene|string $isEncodedByBioChemEntity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMolecularFunction($hasMolecularFunction) + public function setIsEncodedByBioChemEntity($isEncodedByBioChemEntity) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Gene", "string", ]; - $hasMolecularFunction = self::checkTypes($hasMolecularFunction, $types); + $isEncodedByBioChemEntity = self::checkTypes($isEncodedByBioChemEntity, $types); - $this->hasMolecularFunction = $hasMolecularFunction; + $this->isEncodedByBioChemEntity = $isEncodedByBioChemEntity; } /** * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string */ - public function getHasBioChemEntityPart() + public function getBioChemSimilarity() { - return $this->hasBioChemEntityPart; + return $this->bioChemSimilarity; } /** - * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $hasBioChemEntityPart + * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemSimilarity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasBioChemEntityPart($hasBioChemEntityPart) + public function setBioChemSimilarity($bioChemSimilarity) { $types = [ "\OpenActive\Models\SchemaOrg\BioChemEntity", "string", ]; - $hasBioChemEntityPart = self::checkTypes($hasBioChemEntityPart, $types); + $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types); - $this->hasBioChemEntityPart = $hasBioChemEntityPart; + $this->bioChemSimilarity = $bioChemSimilarity; } /** @@ -395,78 +418,55 @@ public function setBioChemInteraction($bioChemInteraction) } /** - * @return string|\OpenActive\Models\SchemaOrg\PropertyValue + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getHasRepresentation() + public function getHasMolecularFunction() { - return $this->hasRepresentation; + return $this->hasMolecularFunction; } /** - * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $hasRepresentation + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\PropertyValue|string $hasMolecularFunction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasRepresentation($hasRepresentation) + public function setHasMolecularFunction($hasMolecularFunction) { $types = [ - "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "\OpenActive\Models\SchemaOrg\PropertyValue", - ]; - - $hasRepresentation = self::checkTypes($hasRepresentation, $types); - - $this->hasRepresentation = $hasRepresentation; - } - - /** - * @return \OpenActive\Models\SchemaOrg\BioChemEntity|string - */ - public function getBioChemSimilarity() - { - return $this->bioChemSimilarity; - } - - /** - * @param \OpenActive\Models\SchemaOrg\BioChemEntity|string $bioChemSimilarity - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setBioChemSimilarity($bioChemSimilarity) - { - $types = [ - "\OpenActive\Models\SchemaOrg\BioChemEntity", "string", ]; - $bioChemSimilarity = self::checkTypes($bioChemSimilarity, $types); + $hasMolecularFunction = self::checkTypes($hasMolecularFunction, $types); - $this->bioChemSimilarity = $bioChemSimilarity; + $this->hasMolecularFunction = $hasMolecularFunction; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon */ - public function getBiologicalRole() + public function getTaxonomicRange() { - return $this->biologicalRole; + return $this->taxonomicRange; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $biologicalRole + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\Taxon $taxonomicRange * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBiologicalRole($biologicalRole) + public function setTaxonomicRange($taxonomicRange) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Taxon", ]; - $biologicalRole = self::checkTypes($biologicalRole, $types); + $taxonomicRange = self::checkTypes($taxonomicRange, $types); - $this->biologicalRole = $biologicalRole; + $this->taxonomicRange = $taxonomicRange; } } diff --git a/src/Models/SchemaOrg/Blog.php b/src/Models/SchemaOrg/Blog.php index 723f2dad..d13aa964 100644 --- a/src/Models/SchemaOrg/Blog.php +++ b/src/Models/SchemaOrg/Blog.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "blogPosts" => "blogPosts", - "issn" => "issn", "blogPost" => "blogPost", + "issn" => "issn", ]; return array_merge(parent::fieldList(), $fields); @@ -34,20 +34,20 @@ public static function fieldList() { protected $blogPosts; /** - * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication. + * A posting that is part of this blog. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\BlogPosting|string */ - protected $issn; + protected $blogPost; /** - * A posting that is part of this blog. + * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication. * * - * @var \OpenActive\Models\SchemaOrg\BlogPosting|string + * @var string */ - protected $blogPost; + protected $issn; /** * @return \OpenActive\Models\SchemaOrg\BlogPosting|string @@ -75,52 +75,52 @@ public function setBlogPosts($blogPosts) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\BlogPosting|string */ - public function getIssn() + public function getBlogPost() { - return $this->issn; + return $this->blogPost; } /** - * @param string $issn + * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPost * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIssn($issn) + public function setBlogPost($blogPost) { $types = [ + "\OpenActive\Models\SchemaOrg\BlogPosting", "string", ]; - $issn = self::checkTypes($issn, $types); + $blogPost = self::checkTypes($blogPost, $types); - $this->issn = $issn; + $this->blogPost = $blogPost; } /** - * @return \OpenActive\Models\SchemaOrg\BlogPosting|string + * @return string */ - public function getBlogPost() + public function getIssn() { - return $this->blogPost; + return $this->issn; } /** - * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $blogPost + * @param string $issn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBlogPost($blogPost) + public function setIssn($issn) { $types = [ - "\OpenActive\Models\SchemaOrg\BlogPosting", "string", ]; - $blogPost = self::checkTypes($blogPost, $types); + $issn = self::checkTypes($issn, $types); - $this->blogPost = $blogPost; + $this->issn = $issn; } } diff --git a/src/Models/SchemaOrg/BoatTrip.php b/src/Models/SchemaOrg/BoatTrip.php index 12ae8ef7..d3c50358 100644 --- a/src/Models/SchemaOrg/BoatTrip.php +++ b/src/Models/SchemaOrg/BoatTrip.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "arrivalBoatTerminal" => "arrivalBoatTerminal", "departureBoatTerminal" => "departureBoatTerminal", + "arrivalBoatTerminal" => "arrivalBoatTerminal", ]; return array_merge(parent::fieldList(), $fields); } /** - * The terminal or port from which the boat arrives. + * The terminal or port from which the boat departs. * * * @var \OpenActive\Models\SchemaOrg\BoatTerminal|string */ - protected $arrivalBoatTerminal; + protected $departureBoatTerminal; /** - * The terminal or port from which the boat departs. + * The terminal or port from which the boat arrives. * * * @var \OpenActive\Models\SchemaOrg\BoatTerminal|string */ - protected $departureBoatTerminal; + protected $arrivalBoatTerminal; /** * @return \OpenActive\Models\SchemaOrg\BoatTerminal|string */ - public function getArrivalBoatTerminal() + public function getDepartureBoatTerminal() { - return $this->arrivalBoatTerminal; + return $this->departureBoatTerminal; } /** - * @param \OpenActive\Models\SchemaOrg\BoatTerminal|string $arrivalBoatTerminal + * @param \OpenActive\Models\SchemaOrg\BoatTerminal|string $departureBoatTerminal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalBoatTerminal($arrivalBoatTerminal) + public function setDepartureBoatTerminal($departureBoatTerminal) { $types = [ "\OpenActive\Models\SchemaOrg\BoatTerminal", "string", ]; - $arrivalBoatTerminal = self::checkTypes($arrivalBoatTerminal, $types); + $departureBoatTerminal = self::checkTypes($departureBoatTerminal, $types); - $this->arrivalBoatTerminal = $arrivalBoatTerminal; + $this->departureBoatTerminal = $departureBoatTerminal; } /** * @return \OpenActive\Models\SchemaOrg\BoatTerminal|string */ - public function getDepartureBoatTerminal() + public function getArrivalBoatTerminal() { - return $this->departureBoatTerminal; + return $this->arrivalBoatTerminal; } /** - * @param \OpenActive\Models\SchemaOrg\BoatTerminal|string $departureBoatTerminal + * @param \OpenActive\Models\SchemaOrg\BoatTerminal|string $arrivalBoatTerminal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureBoatTerminal($departureBoatTerminal) + public function setArrivalBoatTerminal($arrivalBoatTerminal) { $types = [ "\OpenActive\Models\SchemaOrg\BoatTerminal", "string", ]; - $departureBoatTerminal = self::checkTypes($departureBoatTerminal, $types); + $arrivalBoatTerminal = self::checkTypes($arrivalBoatTerminal, $types); - $this->departureBoatTerminal = $departureBoatTerminal; + $this->arrivalBoatTerminal = $arrivalBoatTerminal; } } diff --git a/src/Models/SchemaOrg/Book.php b/src/Models/SchemaOrg/Book.php index e1fc9cfc..4c2f2565 100644 --- a/src/Models/SchemaOrg/Book.php +++ b/src/Models/SchemaOrg/Book.php @@ -17,11 +17,11 @@ public static function getType() public static function fieldList() { $fields = [ + "bookFormat" => "bookFormat", "isbn" => "isbn", - "illustrator" => "illustrator", "numberOfPages" => "numberOfPages", "abridged" => "abridged", - "bookFormat" => "bookFormat", + "illustrator" => "illustrator", "bookEdition" => "bookEdition", ]; @@ -29,20 +29,20 @@ public static function fieldList() { } /** - * The ISBN of the book. + * The format of the book. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null */ - protected $isbn; + protected $bookFormat; /** - * The illustrator of the book. + * The ISBN of the book. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $illustrator; + protected $isbn; /** * The number of pages in the book. @@ -61,12 +61,12 @@ public static function fieldList() { protected $abridged; /** - * The format of the book. + * The illustrator of the book. * * - * @var \OpenActive\Enums\SchemaOrg\BookFormatType|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $bookFormat; + protected $illustrator; /** * The edition of the book. @@ -77,52 +77,52 @@ public static function fieldList() { protected $bookEdition; /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null */ - public function getIsbn() + public function getBookFormat() { - return $this->isbn; + return $this->bookFormat; } /** - * @param string $isbn + * @param \OpenActive\Enums\SchemaOrg\BookFormatType|null $bookFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsbn($isbn) + public function setBookFormat($bookFormat) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\BookFormatType", + "null", ]; - $isbn = self::checkTypes($isbn, $types); + $bookFormat = self::checkTypes($bookFormat, $types); - $this->isbn = $isbn; + $this->bookFormat = $bookFormat; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getIllustrator() + public function getIsbn() { - return $this->illustrator; + return $this->isbn; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $illustrator + * @param string $isbn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIllustrator($illustrator) + public function setIsbn($isbn) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $illustrator = self::checkTypes($illustrator, $types); + $isbn = self::checkTypes($isbn, $types); - $this->illustrator = $illustrator; + $this->isbn = $isbn; } /** @@ -176,28 +176,28 @@ public function setAbridged($abridged) } /** - * @return \OpenActive\Enums\SchemaOrg\BookFormatType|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getBookFormat() + public function getIllustrator() { - return $this->bookFormat; + return $this->illustrator; } /** - * @param \OpenActive\Enums\SchemaOrg\BookFormatType|null $bookFormat + * @param \OpenActive\Models\SchemaOrg\Person|string $illustrator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBookFormat($bookFormat) + public function setIllustrator($illustrator) { $types = [ - "\OpenActive\Enums\SchemaOrg\BookFormatType", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $bookFormat = self::checkTypes($bookFormat, $types); + $illustrator = self::checkTypes($illustrator, $types); - $this->bookFormat = $bookFormat; + $this->illustrator = $illustrator; } /** diff --git a/src/Models/SchemaOrg/Brand.php b/src/Models/SchemaOrg/Brand.php index ccca908c..86c11135 100644 --- a/src/Models/SchemaOrg/Brand.php +++ b/src/Models/SchemaOrg/Brand.php @@ -17,22 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "review" => "review", - "aggregateRating" => "aggregateRating", "slogan" => "slogan", + "aggregateRating" => "aggregateRating", "logo" => "logo", + "review" => "review", ]; return array_merge(parent::fieldList(), $fields); } /** - * A review of the item. + * A slogan or motto associated with the item. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var string */ - protected $review; + protected $slogan; /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -43,44 +43,43 @@ public static function fieldList() { protected $aggregateRating; /** - * A slogan or motto associated with the item. + * An associated logo. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $slogan; + protected $logo; /** - * An associated logo. + * A review of the item. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $logo; + protected $review; /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string */ - public function getReview() + public function getSlogan() { - return $this->review; + return $this->slogan; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setSlogan($slogan) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $review = self::checkTypes($review, $types); + $slogan = self::checkTypes($slogan, $types); - $this->review = $review; + $this->slogan = $slogan; } /** @@ -109,52 +108,53 @@ public function setAggregateRating($aggregateRating) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getSlogan() + public function getLogo() { - return $this->slogan; + return $this->logo; } /** - * @param string $slogan + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSlogan($slogan) + public function setLogo($logo) { $types = [ + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $slogan = self::checkTypes($slogan, $types); + $logo = self::checkTypes($logo, $types); - $this->slogan = $slogan; + $this->logo = $logo; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getLogo() + public function getReview() { - return $this->logo; + return $this->review; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @param \OpenActive\Models\SchemaOrg\Review|string $review * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLogo($logo) + public function setReview($review) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $review = self::checkTypes($review, $types); - $this->logo = $logo; + $this->review = $review; } } diff --git a/src/Models/SchemaOrg/BroadcastChannel.php b/src/Models/SchemaOrg/BroadcastChannel.php index 54888ffb..3eb9d669 100644 --- a/src/Models/SchemaOrg/BroadcastChannel.php +++ b/src/Models/SchemaOrg/BroadcastChannel.php @@ -17,32 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ - "genre" => "genre", - "broadcastFrequency" => "broadcastFrequency", + "broadcastServiceTier" => "broadcastServiceTier", "providesBroadcastService" => "providesBroadcastService", "broadcastChannelId" => "broadcastChannelId", + "genre" => "genre", + "broadcastFrequency" => "broadcastFrequency", "inBroadcastLineup" => "inBroadcastLineup", - "broadcastServiceTier" => "broadcastServiceTier", ]; return array_merge(parent::fieldList(), $fields); } /** - * Genre of the creative work, broadcast channel or group. + * The type of service required to have access to the channel (e.g. Standard or Premium). * * * @var string */ - protected $genre; - - /** - * The frequency used for over-the-air broadcasts. Numeric values or simple ranges e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM". - * - * - * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string - */ - protected $broadcastFrequency; + protected $broadcastServiceTier; /** * The BroadcastService offered on this channel. @@ -61,166 +53,174 @@ public static function fieldList() { protected $broadcastChannelId; /** - * The CableOrSatelliteService offering the channel. + * Genre of the creative work, broadcast channel or group. * * - * @var \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string + * @var string */ - protected $inBroadcastLineup; + protected $genre; /** - * The type of service required to have access to the channel (e.g. Standard or Premium). + * The frequency used for over-the-air broadcasts. Numeric values or simple ranges, e.g. 87-99. In addition a shortcut idiom is supported for frequencies of AM and FM radio channels, e.g. "87 FM". * * - * @var string + * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string */ - protected $broadcastServiceTier; + protected $broadcastFrequency; + + /** + * The CableOrSatelliteService offering the channel. + * + * + * @var \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string + */ + protected $inBroadcastLineup; /** * @return string */ - public function getGenre() + public function getBroadcastServiceTier() { - return $this->genre; + return $this->broadcastServiceTier; } /** - * @param string $genre + * @param string $broadcastServiceTier * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGenre($genre) + public function setBroadcastServiceTier($broadcastServiceTier) { $types = [ "string", ]; - $genre = self::checkTypes($genre, $types); + $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types); - $this->genre = $genre; + $this->broadcastServiceTier = $broadcastServiceTier; } /** - * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string + * @return \OpenActive\Models\SchemaOrg\BroadcastService|string */ - public function getBroadcastFrequency() + public function getProvidesBroadcastService() { - return $this->broadcastFrequency; + return $this->providesBroadcastService; } /** - * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency + * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $providesBroadcastService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastFrequency($broadcastFrequency) + public function setProvidesBroadcastService($providesBroadcastService) { $types = [ - "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification", + "\OpenActive\Models\SchemaOrg\BroadcastService", "string", ]; - $broadcastFrequency = self::checkTypes($broadcastFrequency, $types); + $providesBroadcastService = self::checkTypes($providesBroadcastService, $types); - $this->broadcastFrequency = $broadcastFrequency; + $this->providesBroadcastService = $providesBroadcastService; } /** - * @return \OpenActive\Models\SchemaOrg\BroadcastService|string + * @return string */ - public function getProvidesBroadcastService() + public function getBroadcastChannelId() { - return $this->providesBroadcastService; + return $this->broadcastChannelId; } /** - * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $providesBroadcastService + * @param string $broadcastChannelId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvidesBroadcastService($providesBroadcastService) + public function setBroadcastChannelId($broadcastChannelId) { $types = [ - "\OpenActive\Models\SchemaOrg\BroadcastService", "string", ]; - $providesBroadcastService = self::checkTypes($providesBroadcastService, $types); + $broadcastChannelId = self::checkTypes($broadcastChannelId, $types); - $this->providesBroadcastService = $providesBroadcastService; + $this->broadcastChannelId = $broadcastChannelId; } /** * @return string */ - public function getBroadcastChannelId() + public function getGenre() { - return $this->broadcastChannelId; + return $this->genre; } /** - * @param string $broadcastChannelId + * @param string $genre * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastChannelId($broadcastChannelId) + public function setGenre($genre) { $types = [ "string", ]; - $broadcastChannelId = self::checkTypes($broadcastChannelId, $types); + $genre = self::checkTypes($genre, $types); - $this->broadcastChannelId = $broadcastChannelId; + $this->genre = $genre; } /** - * @return \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string + * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string */ - public function getInBroadcastLineup() + public function getBroadcastFrequency() { - return $this->inBroadcastLineup; + return $this->broadcastFrequency; } /** - * @param \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string $inBroadcastLineup + * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInBroadcastLineup($inBroadcastLineup) + public function setBroadcastFrequency($broadcastFrequency) { $types = [ - "\OpenActive\Models\SchemaOrg\CableOrSatelliteService", + "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification", "string", ]; - $inBroadcastLineup = self::checkTypes($inBroadcastLineup, $types); + $broadcastFrequency = self::checkTypes($broadcastFrequency, $types); - $this->inBroadcastLineup = $inBroadcastLineup; + $this->broadcastFrequency = $broadcastFrequency; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string */ - public function getBroadcastServiceTier() + public function getInBroadcastLineup() { - return $this->broadcastServiceTier; + return $this->inBroadcastLineup; } /** - * @param string $broadcastServiceTier + * @param \OpenActive\Models\SchemaOrg\CableOrSatelliteService|string $inBroadcastLineup * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastServiceTier($broadcastServiceTier) + public function setInBroadcastLineup($inBroadcastLineup) { $types = [ + "\OpenActive\Models\SchemaOrg\CableOrSatelliteService", "string", ]; - $broadcastServiceTier = self::checkTypes($broadcastServiceTier, $types); + $inBroadcastLineup = self::checkTypes($inBroadcastLineup, $types); - $this->broadcastServiceTier = $broadcastServiceTier; + $this->inBroadcastLineup = $inBroadcastLineup; } } diff --git a/src/Models/SchemaOrg/BroadcastEvent.php b/src/Models/SchemaOrg/BroadcastEvent.php index 43106fc0..35976cc7 100644 --- a/src/Models/SchemaOrg/BroadcastEvent.php +++ b/src/Models/SchemaOrg/BroadcastEvent.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "subtitleLanguage" => "subtitleLanguage", - "videoFormat" => "videoFormat", - "broadcastOfEvent" => "broadcastOfEvent", "isLiveBroadcast" => "isLiveBroadcast", + "broadcastOfEvent" => "broadcastOfEvent", + "videoFormat" => "videoFormat", ]; return array_merge(parent::fieldList(), $fields); @@ -30,17 +30,17 @@ public static function fieldList() { * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ protected $subtitleLanguage; /** - * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). + * True if the broadcast is of a live event. * * - * @var string + * @var bool|null */ - protected $videoFormat; + protected $isLiveBroadcast; /** * The event being broadcast such as a sporting event or awards ceremony. @@ -51,15 +51,15 @@ public static function fieldList() { protected $broadcastOfEvent; /** - * True if the broadcast is of a live event. + * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). * * - * @var bool|null + * @var string */ - protected $isLiveBroadcast; + protected $videoFormat; /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ public function getSubtitleLanguage() { @@ -67,15 +67,15 @@ public function getSubtitleLanguage() } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage + * @param string|\OpenActive\Models\SchemaOrg\Language $subtitleLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSubtitleLanguage($subtitleLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); @@ -84,27 +84,28 @@ public function setSubtitleLanguage($subtitleLanguage) } /** - * @return string + * @return bool|null */ - public function getVideoFormat() + public function getIsLiveBroadcast() { - return $this->videoFormat; + return $this->isLiveBroadcast; } /** - * @param string $videoFormat + * @param bool|null $isLiveBroadcast * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVideoFormat($videoFormat) + public function setIsLiveBroadcast($isLiveBroadcast) { $types = [ - "string", + "bool", + "null", ]; - $videoFormat = self::checkTypes($videoFormat, $types); + $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types); - $this->videoFormat = $videoFormat; + $this->isLiveBroadcast = $isLiveBroadcast; } /** @@ -133,28 +134,27 @@ public function setBroadcastOfEvent($broadcastOfEvent) } /** - * @return bool|null + * @return string */ - public function getIsLiveBroadcast() + public function getVideoFormat() { - return $this->isLiveBroadcast; + return $this->videoFormat; } /** - * @param bool|null $isLiveBroadcast + * @param string $videoFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsLiveBroadcast($isLiveBroadcast) + public function setVideoFormat($videoFormat) { $types = [ - "bool", - "null", + "string", ]; - $isLiveBroadcast = self::checkTypes($isLiveBroadcast, $types); + $videoFormat = self::checkTypes($videoFormat, $types); - $this->isLiveBroadcast = $isLiveBroadcast; + $this->videoFormat = $videoFormat; } } diff --git a/src/Models/SchemaOrg/BroadcastFrequencySpecification.php b/src/Models/SchemaOrg/BroadcastFrequencySpecification.php index fab6a903..d373f3d0 100644 --- a/src/Models/SchemaOrg/BroadcastFrequencySpecification.php +++ b/src/Models/SchemaOrg/BroadcastFrequencySpecification.php @@ -37,7 +37,7 @@ public static function fieldList() { * The modulation (e.g. FM, AM, etc) used by a particular broadcast service. * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ protected $broadcastSignalModulation; @@ -74,7 +74,7 @@ public function setBroadcastSubChannel($broadcastSubChannel) } /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ public function getBroadcastSignalModulation() { @@ -82,15 +82,15 @@ public function getBroadcastSignalModulation() } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $broadcastSignalModulation + * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $broadcastSignalModulation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setBroadcastSignalModulation($broadcastSignalModulation) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "null", ]; diff --git a/src/Models/SchemaOrg/BroadcastService.php b/src/Models/SchemaOrg/BroadcastService.php index df992ffd..50ebdb5a 100644 --- a/src/Models/SchemaOrg/BroadcastService.php +++ b/src/Models/SchemaOrg/BroadcastService.php @@ -17,16 +17,16 @@ public static function getType() public static function fieldList() { $fields = [ + "broadcaster" => "broadcaster", + "hasBroadcastChannel" => "hasBroadcastChannel", + "broadcastFrequency" => "broadcastFrequency", "parentService" => "parentService", + "broadcastAffiliateOf" => "broadcastAffiliateOf", "broadcastDisplayName" => "broadcastDisplayName", - "videoFormat" => "videoFormat", "broadcastTimezone" => "broadcastTimezone", - "broadcastFrequency" => "broadcastFrequency", "callSign" => "callSign", + "videoFormat" => "videoFormat", "inLanguage" => "inLanguage", - "hasBroadcastChannel" => "hasBroadcastChannel", - "broadcaster" => "broadcaster", - "broadcastAffiliateOf" => "broadcastAffiliateOf", "area" => "area", ]; @@ -34,84 +34,84 @@ public static function fieldList() { } /** - * A broadcast service to which the broadcast service may belong to such as regional variations of a national channel. + * The organization owning or operating the broadcast service. * * - * @var \OpenActive\Models\SchemaOrg\BroadcastService|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $parentService; + protected $broadcaster; /** - * The name displayed in the channel guide. For many US affiliates, it is the network name. + * A broadcast channel of a broadcast service. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\BroadcastChannel|string */ - protected $broadcastDisplayName; + protected $hasBroadcastChannel; /** - * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). + * The frequency used for over-the-air broadcasts. Numeric values or simple ranges, e.g. 87-99. In addition a shortcut idiom is supported for frequencies of AM and FM radio channels, e.g. "87 FM". * * - * @var string + * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string */ - protected $videoFormat; + protected $broadcastFrequency; /** - * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts + * A broadcast service to which the broadcast service may belong to such as regional variations of a national channel. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\BroadcastService|string */ - protected $broadcastTimezone; + protected $parentService; /** - * The frequency used for over-the-air broadcasts. Numeric values or simple ranges e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM". + * The media network(s) whose content is broadcast on this station. * * - * @var \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $broadcastFrequency; + protected $broadcastAffiliateOf; /** - * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles. + * The name displayed in the channel guide. For many US affiliates, it is the network name. * * * @var string */ - protected $callSign; + protected $broadcastDisplayName; /** - * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. + * The timezone in [ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601) for which the service bases its broadcasts. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var string */ - protected $inLanguage; + protected $broadcastTimezone; /** - * A broadcast channel of a broadcast service. + * A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles. * * - * @var \OpenActive\Models\SchemaOrg\BroadcastChannel|string + * @var string */ - protected $hasBroadcastChannel; + protected $callSign; /** - * The organization owning or operating the broadcast service. + * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $broadcaster; + protected $videoFormat; /** - * The media network(s) whose content is broadcast on this station. + * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $broadcastAffiliateOf; + protected $inLanguage; /** * The area within which users can expect to reach the broadcast service. @@ -122,249 +122,249 @@ public static function fieldList() { protected $area; /** - * @return \OpenActive\Models\SchemaOrg\BroadcastService|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getParentService() + public function getBroadcaster() { - return $this->parentService; + return $this->broadcaster; } /** - * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $parentService + * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcaster * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setParentService($parentService) + public function setBroadcaster($broadcaster) { $types = [ - "\OpenActive\Models\SchemaOrg\BroadcastService", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $parentService = self::checkTypes($parentService, $types); + $broadcaster = self::checkTypes($broadcaster, $types); - $this->parentService = $parentService; + $this->broadcaster = $broadcaster; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\BroadcastChannel|string */ - public function getBroadcastDisplayName() + public function getHasBroadcastChannel() { - return $this->broadcastDisplayName; + return $this->hasBroadcastChannel; } /** - * @param string $broadcastDisplayName + * @param \OpenActive\Models\SchemaOrg\BroadcastChannel|string $hasBroadcastChannel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastDisplayName($broadcastDisplayName) + public function setHasBroadcastChannel($hasBroadcastChannel) { $types = [ + "\OpenActive\Models\SchemaOrg\BroadcastChannel", "string", ]; - $broadcastDisplayName = self::checkTypes($broadcastDisplayName, $types); + $hasBroadcastChannel = self::checkTypes($hasBroadcastChannel, $types); - $this->broadcastDisplayName = $broadcastDisplayName; + $this->hasBroadcastChannel = $hasBroadcastChannel; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string */ - public function getVideoFormat() + public function getBroadcastFrequency() { - return $this->videoFormat; + return $this->broadcastFrequency; } /** - * @param string $videoFormat + * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVideoFormat($videoFormat) + public function setBroadcastFrequency($broadcastFrequency) { $types = [ + "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification", "string", ]; - $videoFormat = self::checkTypes($videoFormat, $types); + $broadcastFrequency = self::checkTypes($broadcastFrequency, $types); - $this->videoFormat = $videoFormat; + $this->broadcastFrequency = $broadcastFrequency; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\BroadcastService|string */ - public function getBroadcastTimezone() + public function getParentService() { - return $this->broadcastTimezone; + return $this->parentService; } /** - * @param string $broadcastTimezone + * @param \OpenActive\Models\SchemaOrg\BroadcastService|string $parentService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastTimezone($broadcastTimezone) + public function setParentService($parentService) { $types = [ + "\OpenActive\Models\SchemaOrg\BroadcastService", "string", ]; - $broadcastTimezone = self::checkTypes($broadcastTimezone, $types); + $parentService = self::checkTypes($parentService, $types); - $this->broadcastTimezone = $broadcastTimezone; + $this->parentService = $parentService; } /** - * @return \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getBroadcastFrequency() + public function getBroadcastAffiliateOf() { - return $this->broadcastFrequency; + return $this->broadcastAffiliateOf; } /** - * @param \OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification|string $broadcastFrequency + * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcastAffiliateOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastFrequency($broadcastFrequency) + public function setBroadcastAffiliateOf($broadcastAffiliateOf) { $types = [ - "\OpenActive\Models\SchemaOrg\BroadcastFrequencySpecification", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $broadcastFrequency = self::checkTypes($broadcastFrequency, $types); + $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types); - $this->broadcastFrequency = $broadcastFrequency; + $this->broadcastAffiliateOf = $broadcastAffiliateOf; } /** * @return string */ - public function getCallSign() + public function getBroadcastDisplayName() { - return $this->callSign; + return $this->broadcastDisplayName; } /** - * @param string $callSign + * @param string $broadcastDisplayName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCallSign($callSign) + public function setBroadcastDisplayName($broadcastDisplayName) { $types = [ "string", ]; - $callSign = self::checkTypes($callSign, $types); + $broadcastDisplayName = self::checkTypes($broadcastDisplayName, $types); - $this->callSign = $callSign; + $this->broadcastDisplayName = $broadcastDisplayName; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return string */ - public function getInLanguage() + public function getBroadcastTimezone() { - return $this->inLanguage; + return $this->broadcastTimezone; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @param string $broadcastTimezone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInLanguage($inLanguage) + public function setBroadcastTimezone($broadcastTimezone) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $broadcastTimezone = self::checkTypes($broadcastTimezone, $types); - $this->inLanguage = $inLanguage; + $this->broadcastTimezone = $broadcastTimezone; } /** - * @return \OpenActive\Models\SchemaOrg\BroadcastChannel|string + * @return string */ - public function getHasBroadcastChannel() + public function getCallSign() { - return $this->hasBroadcastChannel; + return $this->callSign; } /** - * @param \OpenActive\Models\SchemaOrg\BroadcastChannel|string $hasBroadcastChannel + * @param string $callSign * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasBroadcastChannel($hasBroadcastChannel) + public function setCallSign($callSign) { $types = [ - "\OpenActive\Models\SchemaOrg\BroadcastChannel", "string", ]; - $hasBroadcastChannel = self::checkTypes($hasBroadcastChannel, $types); + $callSign = self::checkTypes($callSign, $types); - $this->hasBroadcastChannel = $hasBroadcastChannel; + $this->callSign = $callSign; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getBroadcaster() + public function getVideoFormat() { - return $this->broadcaster; + return $this->videoFormat; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcaster + * @param string $videoFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcaster($broadcaster) + public function setVideoFormat($videoFormat) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $broadcaster = self::checkTypes($broadcaster, $types); + $videoFormat = self::checkTypes($videoFormat, $types); - $this->broadcaster = $broadcaster; + $this->videoFormat = $videoFormat; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getBroadcastAffiliateOf() + public function getInLanguage() { - return $this->broadcastAffiliateOf; + return $this->inLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $broadcastAffiliateOf + * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroadcastAffiliateOf($broadcastAffiliateOf) + public function setInLanguage($inLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $broadcastAffiliateOf = self::checkTypes($broadcastAffiliateOf, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->broadcastAffiliateOf = $broadcastAffiliateOf; + $this->inLanguage = $inLanguage; } /** diff --git a/src/Models/SchemaOrg/BusTrip.php b/src/Models/SchemaOrg/BusTrip.php index ff0e89cc..c7341a22 100644 --- a/src/Models/SchemaOrg/BusTrip.php +++ b/src/Models/SchemaOrg/BusTrip.php @@ -17,15 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ + "busNumber" => "busNumber", "departureBusStop" => "departureBusStop", "busName" => "busName", "arrivalBusStop" => "arrivalBusStop", - "busNumber" => "busNumber", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The unique identifier for the bus. + * + * + * @var string + */ + protected $busNumber; + /** * The stop or station from which the bus departs. * @@ -51,12 +59,28 @@ public static function fieldList() { protected $arrivalBusStop; /** - * The unique identifier for the bus. - * - * - * @var string + * @return string */ - protected $busNumber; + public function getBusNumber() + { + return $this->busNumber; + } + + /** + * @param string $busNumber + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setBusNumber($busNumber) + { + $types = [ + "string", + ]; + + $busNumber = self::checkTypes($busNumber, $types); + + $this->busNumber = $busNumber; + } /** * @return \OpenActive\Models\SchemaOrg\BusStop|\OpenActive\Models\SchemaOrg\BusStation|string @@ -134,28 +158,4 @@ public function setArrivalBusStop($arrivalBusStop) $this->arrivalBusStop = $arrivalBusStop; } - /** - * @return string - */ - public function getBusNumber() - { - return $this->busNumber; - } - - /** - * @param string $busNumber - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setBusNumber($busNumber) - { - $types = [ - "string", - ]; - - $busNumber = self::checkTypes($busNumber, $types); - - $this->busNumber = $busNumber; - } - } diff --git a/src/Models/SchemaOrg/BusinessAudience.php b/src/Models/SchemaOrg/BusinessAudience.php index ddce1e28..39cc9449 100644 --- a/src/Models/SchemaOrg/BusinessAudience.php +++ b/src/Models/SchemaOrg/BusinessAudience.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "yearlyRevenue" => "yearlyRevenue", "numberOfEmployees" => "numberOfEmployees", + "yearlyRevenue" => "yearlyRevenue", "yearsInOperation" => "yearsInOperation", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * The size of the business in annual revenue. + * The number of employees in an organization, e.g. business. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $yearlyRevenue; + protected $numberOfEmployees; /** - * The number of employees in an organization e.g. business. + * The size of the business in annual revenue. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfEmployees; + protected $yearlyRevenue; /** * The age of the business. @@ -52,51 +52,51 @@ public static function fieldList() { /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getYearlyRevenue() + public function getNumberOfEmployees() { - return $this->yearlyRevenue; + return $this->numberOfEmployees; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $yearlyRevenue + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setYearlyRevenue($yearlyRevenue) + public function setNumberOfEmployees($numberOfEmployees) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $yearlyRevenue = self::checkTypes($yearlyRevenue, $types); + $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); - $this->yearlyRevenue = $yearlyRevenue; + $this->numberOfEmployees = $numberOfEmployees; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfEmployees() + public function getYearlyRevenue() { - return $this->numberOfEmployees; + return $this->yearlyRevenue; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $yearlyRevenue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfEmployees($numberOfEmployees) + public function setYearlyRevenue($yearlyRevenue) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); + $yearlyRevenue = self::checkTypes($yearlyRevenue, $types); - $this->numberOfEmployees = $numberOfEmployees; + $this->yearlyRevenue = $yearlyRevenue; } /** diff --git a/src/Models/SchemaOrg/BuyAction.php b/src/Models/SchemaOrg/BuyAction.php index 35beaa40..5398617a 100644 --- a/src/Models/SchemaOrg/BuyAction.php +++ b/src/Models/SchemaOrg/BuyAction.php @@ -17,103 +17,103 @@ public static function getType() public static function fieldList() { $fields = [ + "vendor" => "vendor", "warrantyPromise" => "warrantyPromise", "seller" => "seller", - "vendor" => "vendor", ]; return array_merge(parent::fieldList(), $fields); } /** - * The warranty promise(s) included in the offer. + * 'vendor' is an earlier term for 'seller'. * * - * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $warrantyPromise; + protected $vendor; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * The warranty promise(s) included in the offer. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - protected $seller; + protected $warrantyPromise; /** - * 'vendor' is an earlier term for 'seller'. + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $vendor; + protected $seller; /** - * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getWarrantyPromise() + public function getVendor() { - return $this->warrantyPromise; + return $this->vendor; } /** - * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $vendor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarrantyPromise($warrantyPromise) + public function setVendor($vendor) { $types = [ - "\OpenActive\Models\SchemaOrg\WarrantyPromise", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $warrantyPromise = self::checkTypes($warrantyPromise, $types); + $vendor = self::checkTypes($vendor, $types); - $this->warrantyPromise = $warrantyPromise; + $this->vendor = $vendor; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - public function getSeller() + public function getWarrantyPromise() { - return $this->seller; + return $this->warrantyPromise; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warrantyPromise * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeller($seller) + public function setWarrantyPromise($warrantyPromise) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\WarrantyPromise", "string", ]; - $seller = self::checkTypes($seller, $types); + $warrantyPromise = self::checkTypes($warrantyPromise, $types); - $this->seller = $seller; + $this->warrantyPromise = $warrantyPromise; } /** * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getVendor() + public function getSeller() { - return $this->vendor; + return $this->seller; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $vendor + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $seller * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVendor($vendor) + public function setSeller($seller) { $types = [ "\OpenActive\Models\SchemaOrg\Person", @@ -121,9 +121,9 @@ public function setVendor($vendor) "string", ]; - $vendor = self::checkTypes($vendor, $types); + $seller = self::checkTypes($seller, $types); - $this->vendor = $vendor; + $this->seller = $seller; } } diff --git a/src/Models/SchemaOrg/CDCPMDRecord.php b/src/Models/SchemaOrg/CDCPMDRecord.php index 824f6aca..f83af459 100644 --- a/src/Models/SchemaOrg/CDCPMDRecord.php +++ b/src/Models/SchemaOrg/CDCPMDRecord.php @@ -17,147 +17,147 @@ public static function getType() public static function fieldList() { $fields = [ - "cvdNumBedsOcc" => "cvdNumBedsOcc", - "cvdNumICUBedsOcc" => "cvdNumICUBedsOcc", "cvdNumVent" => "cvdNumVent", - "cvdNumC19Died" => "cvdNumC19Died", - "cvdNumTotBeds" => "cvdNumTotBeds", - "cvdFacilityCounty" => "cvdFacilityCounty", "cvdNumICUBeds" => "cvdNumICUBeds", - "cvdCollectionDate" => "cvdCollectionDate", - "cvdNumC19HOPats" => "cvdNumC19HOPats", - "cvdNumC19OFMechVentPats" => "cvdNumC19OFMechVentPats", + "datePosted" => "datePosted", + "cvdNumTotBeds" => "cvdNumTotBeds", + "cvdNumC19MechVentPats" => "cvdNumC19MechVentPats", "cvdFacilityId" => "cvdFacilityId", + "cvdNumC19Died" => "cvdNumC19Died", "cvdNumVentUse" => "cvdNumVentUse", + "cvdNumC19HospPats" => "cvdNumC19HospPats", + "cvdNumBedsOcc" => "cvdNumBedsOcc", + "cvdNumICUBedsOcc" => "cvdNumICUBedsOcc", "cvdNumBeds" => "cvdNumBeds", - "cvdNumC19MechVentPats" => "cvdNumC19MechVentPats", - "datePosted" => "datePosted", + "cvdCollectionDate" => "cvdCollectionDate", + "cvdFacilityCounty" => "cvdFacilityCounty", + "cvdNumC19OFMechVentPats" => "cvdNumC19OFMechVentPats", "cvdNumC19OverflowPats" => "cvdNumC19OverflowPats", - "cvdNumC19HospPats" => "cvdNumC19HospPats", + "cvdNumC19HOPats" => "cvdNumC19HOPats", ]; return array_merge(parent::fieldList(), $fields); } /** - * numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds that are occupied. + * numvent - MECHANICAL VENTILATORS: Total number of ventilators available. * * * @var Number|null */ - protected $cvdNumBedsOcc; + protected $cvdNumVent; /** - * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied. + * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds. * * * @var Number|null */ - protected $cvdNumICUBedsOcc; + protected $cvdNumICUBeds; /** - * numvent - MECHANICAL VENTILATORS: Total number of ventilators available. + * Publication date of an online listing. * * - * @var Number|null + * @var Date|DateTime|null */ - protected $cvdNumVent; + protected $datePosted; /** - * numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital, ED, or any overflow location. + * numtotbeds - ALL HOSPITAL BEDS: Total number of all inpatient and outpatient beds, including all staffed, ICU, licensed, and overflow (surge) beds used for inpatients or outpatients. * * * @var Number|null */ - protected $cvdNumC19Died; + protected $cvdNumTotBeds; /** - * numtotbeds - ALL HOSPITAL BEDS: Total number of all Inpatient and outpatient beds, including all staffed,ICU, licensed, and overflow (surge) beds used for inpatients or outpatients. + * numc19mechventpats - HOSPITALIZED and VENTILATED: Patients hospitalized in an NHSN inpatient care location who have suspected or confirmed COVID-19 and are on a mechanical ventilator. * * * @var Number|null */ - protected $cvdNumTotBeds; + protected $cvdNumC19MechVentPats; /** - * Name of the County of the NHSN facility that this data record applies to. Use [[cvdFacilityId]] to identify the facility. To provide other details, [[healthcareReportingData]] can be used on a [[Hospital]] entry. + * Identifier of the NHSN facility that this data record applies to. Use [[cvdFacilityCounty]] to indicate the county. To provide other details, [[healthcareReportingData]] can be used on a [[Hospital]] entry. * * * @var string */ - protected $cvdFacilityCounty; + protected $cvdFacilityId; /** - * numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds. + * numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital, ED, or any overflow location. * * * @var Number|null */ - protected $cvdNumICUBeds; + protected $cvdNumC19Died; /** - * collectiondate - Date for which patient counts are reported. + * numventuse - MECHANICAL VENTILATORS IN USE: Total number of ventilators in use. * * - * @var DateTime|string|null + * @var Number|null */ - protected $cvdCollectionDate; + protected $cvdNumVentUse; /** - * numc19hopats - HOSPITAL ONSET: Patients hospitalized in an NHSN inpatient care location with onset of suspected or confirmed COVID-19 14 or more days after hospitalization. + * numc19hosppats - HOSPITALIZED: Patients currently hospitalized in an inpatient care location who have suspected or confirmed COVID-19. * * * @var Number|null */ - protected $cvdNumC19HOPats; + protected $cvdNumC19HospPats; /** - * numc19ofmechventpats - ED/OVERFLOW and VENTILATED: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed and on a mechanical ventilator. + * numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds that are occupied. * * * @var Number|null */ - protected $cvdNumC19OFMechVentPats; + protected $cvdNumBedsOcc; /** - * Identifier of the NHSN facility that this data record applies to. Use [[cvdFacilityCounty]] to indicate the county. To provide other details, [[healthcareReportingData]] can be used on a [[Hospital]] entry. + * numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are occupied. * * - * @var string + * @var Number|null */ - protected $cvdFacilityId; + protected $cvdNumICUBedsOcc; /** - * numventuse - MECHANICAL VENTILATORS IN USE: Total number of ventilators in use. + * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients. * * * @var Number|null */ - protected $cvdNumVentUse; + protected $cvdNumBeds; /** - * numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed, and overflow (surge) beds used for inpatients. + * collectiondate - Date for which patient counts are reported. * * - * @var Number|null + * @var DateTime|string|null */ - protected $cvdNumBeds; + protected $cvdCollectionDate; /** - * numc19mechventpats - HOSPITALIZED and VENTILATED: Patients hospitalized in an NHSN inpatient care location who have suspected or confirmed COVID-19 and are on a mechanical ventilator. + * Name of the County of the NHSN facility that this data record applies to. Use [[cvdFacilityId]] to identify the facility. To provide other details, [[healthcareReportingData]] can be used on a [[Hospital]] entry. * * - * @var Number|null + * @var string */ - protected $cvdNumC19MechVentPats; + protected $cvdFacilityCounty; /** - * Publication date of an online listing. + * numc19ofmechventpats - ED/OVERFLOW and VENTILATED: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed and on a mechanical ventilator. * * - * @var Date|DateTime|null + * @var Number|null */ - protected $datePosted; + protected $cvdNumC19OFMechVentPats; /** * numc19overflowpats - ED/OVERFLOW: Patients with suspected or confirmed COVID-19 who are in the ED or any overflow location awaiting an inpatient bed. @@ -168,386 +168,386 @@ public static function fieldList() { protected $cvdNumC19OverflowPats; /** - * numc19hosppats - HOSPITALIZED: Patients currently hospitalized in an inpatient care location who have suspected or confirmed COVID-19. + * numc19hopats - HOSPITAL ONSET: Patients hospitalized in an NHSN inpatient care location with onset of suspected or confirmed COVID-19 14 or more days after hospitalization. * * * @var Number|null */ - protected $cvdNumC19HospPats; + protected $cvdNumC19HOPats; /** * @return Number|null */ - public function getCvdNumBedsOcc() + public function getCvdNumVent() { - return $this->cvdNumBedsOcc; + return $this->cvdNumVent; } /** - * @param Number|null $cvdNumBedsOcc + * @param Number|null $cvdNumVent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumBedsOcc($cvdNumBedsOcc) + public function setCvdNumVent($cvdNumVent) { $types = [ "Number", "null", ]; - $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types); + $cvdNumVent = self::checkTypes($cvdNumVent, $types); - $this->cvdNumBedsOcc = $cvdNumBedsOcc; + $this->cvdNumVent = $cvdNumVent; } /** * @return Number|null */ - public function getCvdNumICUBedsOcc() + public function getCvdNumICUBeds() { - return $this->cvdNumICUBedsOcc; + return $this->cvdNumICUBeds; } /** - * @param Number|null $cvdNumICUBedsOcc + * @param Number|null $cvdNumICUBeds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc) + public function setCvdNumICUBeds($cvdNumICUBeds) { $types = [ "Number", "null", ]; - $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types); + $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types); - $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc; + $this->cvdNumICUBeds = $cvdNumICUBeds; } /** - * @return Number|null + * @return Date|DateTime|null */ - public function getCvdNumVent() + public function getDatePosted() { - return $this->cvdNumVent; + return $this->datePosted; } /** - * @param Number|null $cvdNumVent + * @param Date|DateTime|null $datePosted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumVent($cvdNumVent) + public function setDatePosted($datePosted) { $types = [ - "Number", + "Date", + "DateTime", "null", ]; - $cvdNumVent = self::checkTypes($cvdNumVent, $types); + $datePosted = self::checkTypes($datePosted, $types); - $this->cvdNumVent = $cvdNumVent; + $this->datePosted = $datePosted; } /** * @return Number|null */ - public function getCvdNumC19Died() + public function getCvdNumTotBeds() { - return $this->cvdNumC19Died; + return $this->cvdNumTotBeds; } /** - * @param Number|null $cvdNumC19Died + * @param Number|null $cvdNumTotBeds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19Died($cvdNumC19Died) + public function setCvdNumTotBeds($cvdNumTotBeds) { $types = [ "Number", "null", ]; - $cvdNumC19Died = self::checkTypes($cvdNumC19Died, $types); + $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types); - $this->cvdNumC19Died = $cvdNumC19Died; + $this->cvdNumTotBeds = $cvdNumTotBeds; } /** * @return Number|null */ - public function getCvdNumTotBeds() + public function getCvdNumC19MechVentPats() { - return $this->cvdNumTotBeds; + return $this->cvdNumC19MechVentPats; } /** - * @param Number|null $cvdNumTotBeds + * @param Number|null $cvdNumC19MechVentPats * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumTotBeds($cvdNumTotBeds) + public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats) { $types = [ "Number", "null", ]; - $cvdNumTotBeds = self::checkTypes($cvdNumTotBeds, $types); + $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types); - $this->cvdNumTotBeds = $cvdNumTotBeds; + $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats; } /** * @return string */ - public function getCvdFacilityCounty() + public function getCvdFacilityId() { - return $this->cvdFacilityCounty; + return $this->cvdFacilityId; } /** - * @param string $cvdFacilityCounty + * @param string $cvdFacilityId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdFacilityCounty($cvdFacilityCounty) + public function setCvdFacilityId($cvdFacilityId) { $types = [ "string", ]; - $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types); + $cvdFacilityId = self::checkTypes($cvdFacilityId, $types); - $this->cvdFacilityCounty = $cvdFacilityCounty; + $this->cvdFacilityId = $cvdFacilityId; } /** * @return Number|null */ - public function getCvdNumICUBeds() + public function getCvdNumC19Died() { - return $this->cvdNumICUBeds; + return $this->cvdNumC19Died; } /** - * @param Number|null $cvdNumICUBeds + * @param Number|null $cvdNumC19Died * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumICUBeds($cvdNumICUBeds) + public function setCvdNumC19Died($cvdNumC19Died) { $types = [ "Number", "null", ]; - $cvdNumICUBeds = self::checkTypes($cvdNumICUBeds, $types); + $cvdNumC19Died = self::checkTypes($cvdNumC19Died, $types); - $this->cvdNumICUBeds = $cvdNumICUBeds; + $this->cvdNumC19Died = $cvdNumC19Died; } /** - * @return DateTime|string|null + * @return Number|null */ - public function getCvdCollectionDate() + public function getCvdNumVentUse() { - return $this->cvdCollectionDate; + return $this->cvdNumVentUse; } /** - * @param DateTime|string|null $cvdCollectionDate + * @param Number|null $cvdNumVentUse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdCollectionDate($cvdCollectionDate) + public function setCvdNumVentUse($cvdNumVentUse) { $types = [ - "DateTime", - "string", + "Number", "null", ]; - $cvdCollectionDate = self::checkTypes($cvdCollectionDate, $types); + $cvdNumVentUse = self::checkTypes($cvdNumVentUse, $types); - $this->cvdCollectionDate = $cvdCollectionDate; + $this->cvdNumVentUse = $cvdNumVentUse; } /** * @return Number|null */ - public function getCvdNumC19HOPats() + public function getCvdNumC19HospPats() { - return $this->cvdNumC19HOPats; + return $this->cvdNumC19HospPats; } /** - * @param Number|null $cvdNumC19HOPats + * @param Number|null $cvdNumC19HospPats * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19HOPats($cvdNumC19HOPats) + public function setCvdNumC19HospPats($cvdNumC19HospPats) { $types = [ "Number", "null", ]; - $cvdNumC19HOPats = self::checkTypes($cvdNumC19HOPats, $types); + $cvdNumC19HospPats = self::checkTypes($cvdNumC19HospPats, $types); - $this->cvdNumC19HOPats = $cvdNumC19HOPats; + $this->cvdNumC19HospPats = $cvdNumC19HospPats; } /** * @return Number|null */ - public function getCvdNumC19OFMechVentPats() + public function getCvdNumBedsOcc() { - return $this->cvdNumC19OFMechVentPats; + return $this->cvdNumBedsOcc; } /** - * @param Number|null $cvdNumC19OFMechVentPats + * @param Number|null $cvdNumBedsOcc * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19OFMechVentPats($cvdNumC19OFMechVentPats) + public function setCvdNumBedsOcc($cvdNumBedsOcc) { $types = [ "Number", "null", ]; - $cvdNumC19OFMechVentPats = self::checkTypes($cvdNumC19OFMechVentPats, $types); + $cvdNumBedsOcc = self::checkTypes($cvdNumBedsOcc, $types); - $this->cvdNumC19OFMechVentPats = $cvdNumC19OFMechVentPats; + $this->cvdNumBedsOcc = $cvdNumBedsOcc; } /** - * @return string + * @return Number|null */ - public function getCvdFacilityId() + public function getCvdNumICUBedsOcc() { - return $this->cvdFacilityId; + return $this->cvdNumICUBedsOcc; } /** - * @param string $cvdFacilityId + * @param Number|null $cvdNumICUBedsOcc * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdFacilityId($cvdFacilityId) + public function setCvdNumICUBedsOcc($cvdNumICUBedsOcc) { $types = [ - "string", + "Number", + "null", ]; - $cvdFacilityId = self::checkTypes($cvdFacilityId, $types); + $cvdNumICUBedsOcc = self::checkTypes($cvdNumICUBedsOcc, $types); - $this->cvdFacilityId = $cvdFacilityId; + $this->cvdNumICUBedsOcc = $cvdNumICUBedsOcc; } /** * @return Number|null */ - public function getCvdNumVentUse() + public function getCvdNumBeds() { - return $this->cvdNumVentUse; + return $this->cvdNumBeds; } /** - * @param Number|null $cvdNumVentUse + * @param Number|null $cvdNumBeds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumVentUse($cvdNumVentUse) + public function setCvdNumBeds($cvdNumBeds) { $types = [ "Number", "null", ]; - $cvdNumVentUse = self::checkTypes($cvdNumVentUse, $types); + $cvdNumBeds = self::checkTypes($cvdNumBeds, $types); - $this->cvdNumVentUse = $cvdNumVentUse; + $this->cvdNumBeds = $cvdNumBeds; } /** - * @return Number|null + * @return DateTime|string|null */ - public function getCvdNumBeds() + public function getCvdCollectionDate() { - return $this->cvdNumBeds; + return $this->cvdCollectionDate; } /** - * @param Number|null $cvdNumBeds + * @param DateTime|string|null $cvdCollectionDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumBeds($cvdNumBeds) + public function setCvdCollectionDate($cvdCollectionDate) { $types = [ - "Number", + "DateTime", + "string", "null", ]; - $cvdNumBeds = self::checkTypes($cvdNumBeds, $types); + $cvdCollectionDate = self::checkTypes($cvdCollectionDate, $types); - $this->cvdNumBeds = $cvdNumBeds; + $this->cvdCollectionDate = $cvdCollectionDate; } /** - * @return Number|null + * @return string */ - public function getCvdNumC19MechVentPats() + public function getCvdFacilityCounty() { - return $this->cvdNumC19MechVentPats; + return $this->cvdFacilityCounty; } /** - * @param Number|null $cvdNumC19MechVentPats + * @param string $cvdFacilityCounty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19MechVentPats($cvdNumC19MechVentPats) + public function setCvdFacilityCounty($cvdFacilityCounty) { $types = [ - "Number", - "null", + "string", ]; - $cvdNumC19MechVentPats = self::checkTypes($cvdNumC19MechVentPats, $types); + $cvdFacilityCounty = self::checkTypes($cvdFacilityCounty, $types); - $this->cvdNumC19MechVentPats = $cvdNumC19MechVentPats; + $this->cvdFacilityCounty = $cvdFacilityCounty; } /** - * @return Date|DateTime|null + * @return Number|null */ - public function getDatePosted() + public function getCvdNumC19OFMechVentPats() { - return $this->datePosted; + return $this->cvdNumC19OFMechVentPats; } /** - * @param Date|DateTime|null $datePosted + * @param Number|null $cvdNumC19OFMechVentPats * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePosted($datePosted) + public function setCvdNumC19OFMechVentPats($cvdNumC19OFMechVentPats) { $types = [ - "Date", - "DateTime", + "Number", "null", ]; - $datePosted = self::checkTypes($datePosted, $types); + $cvdNumC19OFMechVentPats = self::checkTypes($cvdNumC19OFMechVentPats, $types); - $this->datePosted = $datePosted; + $this->cvdNumC19OFMechVentPats = $cvdNumC19OFMechVentPats; } /** @@ -578,26 +578,26 @@ public function setCvdNumC19OverflowPats($cvdNumC19OverflowPats) /** * @return Number|null */ - public function getCvdNumC19HospPats() + public function getCvdNumC19HOPats() { - return $this->cvdNumC19HospPats; + return $this->cvdNumC19HOPats; } /** - * @param Number|null $cvdNumC19HospPats + * @param Number|null $cvdNumC19HOPats * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCvdNumC19HospPats($cvdNumC19HospPats) + public function setCvdNumC19HOPats($cvdNumC19HOPats) { $types = [ "Number", "null", ]; - $cvdNumC19HospPats = self::checkTypes($cvdNumC19HospPats, $types); + $cvdNumC19HOPats = self::checkTypes($cvdNumC19HOPats, $types); - $this->cvdNumC19HospPats = $cvdNumC19HospPats; + $this->cvdNumC19HOPats = $cvdNumC19HOPats; } } diff --git a/src/Models/SchemaOrg/Campground.php b/src/Models/SchemaOrg/Campground.php index 1aec6fea..ce9b8e5b 100644 --- a/src/Models/SchemaOrg/Campground.php +++ b/src/Models/SchemaOrg/Campground.php @@ -5,7 +5,7 @@ /** * */ -class Campground extends \OpenActive\Models\SchemaOrg\LodgingBusiness +class Campground extends \OpenActive\Models\SchemaOrg\CivicStructure { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/CategoryCode.php b/src/Models/SchemaOrg/CategoryCode.php index 3b1522b0..770497b2 100644 --- a/src/Models/SchemaOrg/CategoryCode.php +++ b/src/Models/SchemaOrg/CategoryCode.php @@ -17,76 +17,76 @@ public static function getType() public static function fieldList() { $fields = [ - "codeValue" => "codeValue", "inCodeSet" => "inCodeSet", + "codeValue" => "codeValue", ]; return array_merge(parent::fieldList(), $fields); } /** - * A short textual code that uniquely identifies the value. + * A [[CategoryCodeSet]] that contains this category code. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CategoryCodeSet|string */ - protected $codeValue; + protected $inCodeSet; /** - * A [[CategoryCodeSet]] that contains this category code. + * A short textual code that uniquely identifies the value. * * - * @var \OpenActive\Models\SchemaOrg\CategoryCodeSet|string + * @var string */ - protected $inCodeSet; + protected $codeValue; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CategoryCodeSet|string */ - public function getCodeValue() + public function getInCodeSet() { - return $this->codeValue; + return $this->inCodeSet; } /** - * @param string $codeValue + * @param \OpenActive\Models\SchemaOrg\CategoryCodeSet|string $inCodeSet * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCodeValue($codeValue) + public function setInCodeSet($inCodeSet) { $types = [ + "\OpenActive\Models\SchemaOrg\CategoryCodeSet", "string", ]; - $codeValue = self::checkTypes($codeValue, $types); + $inCodeSet = self::checkTypes($inCodeSet, $types); - $this->codeValue = $codeValue; + $this->inCodeSet = $inCodeSet; } /** - * @return \OpenActive\Models\SchemaOrg\CategoryCodeSet|string + * @return string */ - public function getInCodeSet() + public function getCodeValue() { - return $this->inCodeSet; + return $this->codeValue; } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCodeSet|string $inCodeSet + * @param string $codeValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInCodeSet($inCodeSet) + public function setCodeValue($codeValue) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCodeSet", "string", ]; - $inCodeSet = self::checkTypes($inCodeSet, $types); + $codeValue = self::checkTypes($codeValue, $types); - $this->inCodeSet = $inCodeSet; + $this->codeValue = $codeValue; } } diff --git a/src/Models/SchemaOrg/Certification.php b/src/Models/SchemaOrg/Certification.php new file mode 100644 index 00000000..7bdc1828 --- /dev/null +++ b/src/Models/SchemaOrg/Certification.php @@ -0,0 +1,437 @@ + "expires", + "certificationStatus" => "certificationStatus", + "about" => "about", + "issuedBy" => "issuedBy", + "certificationIdentification" => "certificationIdentification", + "certificationRating" => "certificationRating", + "validFrom" => "validFrom", + "validIn" => "validIn", + "hasMeasurement" => "hasMeasurement", + "logo" => "logo", + "datePublished" => "datePublished", + "auditDate" => "auditDate", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date, or a [[Certification]] the validity has expired. + * + * + * @var Date|DateTime|null + */ + protected $expires; + + /** + * Indicates the current status of a certification: active or inactive. See also [gs1:certificationStatus](https://www.gs1.org/voc/certificationStatus). + * + * + * @var \OpenActive\Enums\SchemaOrg\CertificationStatusEnumeration|null + */ + protected $certificationStatus; + + /** + * The subject matter of the content. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|string + */ + protected $about; + + /** + * The organization issuing the item, for example a [[Permit]], [[Ticket]], or [[Certification]]. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|string + */ + protected $issuedBy; + + /** + * Identifier of a certification instance (as registered with an independent certification body). Typically this identifier can be used to consult and verify the certification instance. See also [gs1:certificationIdentification](https://www.gs1.org/voc/certificationIdentification). + * + * + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + */ + protected $certificationIdentification; + + /** + * Rating of a certification instance (as defined by an independent certification body). Typically this rating can be used to rate the level to which the requirements of the certification instance are fulfilled. See also [gs1:certificationValue](https://www.gs1.org/voc/certificationValue). + * + * + * @var \OpenActive\Models\SchemaOrg\Rating|string + */ + protected $certificationRating; + + /** + * The date when the item becomes valid. + * + * + * @var Date|DateTime|null + */ + protected $validFrom; + + /** + * The geographic area where the item is valid. Applies for example to a [[Permit]], a [[Certification]], or an [[EducationalOccupationalCredential]]. + * + * + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string + */ + protected $validIn; + + /** + * A measurement of an item, For example, the inseam of pants, the wheel size of a bicycle, the gauge of a screw, or the carbon footprint measured for certification by an authority. Usually an exact measurement, but can also be a range of measurements for adjustable products, for example belts and ski bindings. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $hasMeasurement; + + /** + * An associated logo. + * + * + * @var \OpenActive\Models\SchemaOrg\ImageObject|string + */ + protected $logo; + + /** + * Date of first publication or broadcast. For example the date a [[CreativeWork]] was broadcast or a [[Certification]] was issued. + * + * + * @var Date|DateTime|null + */ + protected $datePublished; + + /** + * Date when a certification was last audited. See also [gs1:certificationAuditDate](https://www.gs1.org/voc/certificationAuditDate). + * + * + * @var Date|DateTime|null + */ + protected $auditDate; + + /** + * @return Date|DateTime|null + */ + public function getExpires() + { + return $this->expires; + } + + /** + * @param Date|DateTime|null $expires + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setExpires($expires) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $expires = self::checkTypes($expires, $types); + + $this->expires = $expires; + } + + /** + * @return \OpenActive\Enums\SchemaOrg\CertificationStatusEnumeration|null + */ + public function getCertificationStatus() + { + return $this->certificationStatus; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\CertificationStatusEnumeration|null $certificationStatus + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCertificationStatus($certificationStatus) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\CertificationStatusEnumeration", + "null", + ]; + + $certificationStatus = self::checkTypes($certificationStatus, $types); + + $this->certificationStatus = $certificationStatus; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getAbout() + { + return $this->about; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Thing|string $about + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAbout($about) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Thing", + "string", + ]; + + $about = self::checkTypes($about, $types); + + $this->about = $about; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|string + */ + public function getIssuedBy() + { + return $this->issuedBy; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|string $issuedBy + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIssuedBy($issuedBy) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; + + $issuedBy = self::checkTypes($issuedBy, $types); + + $this->issuedBy = $issuedBy; + } + + /** + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + */ + public function getCertificationIdentification() + { + return $this->certificationIdentification; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $certificationIdentification + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCertificationIdentification($certificationIdentification) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + ]; + + $certificationIdentification = self::checkTypes($certificationIdentification, $types); + + $this->certificationIdentification = $certificationIdentification; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Rating|string + */ + public function getCertificationRating() + { + return $this->certificationRating; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Rating|string $certificationRating + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCertificationRating($certificationRating) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Rating", + "string", + ]; + + $certificationRating = self::checkTypes($certificationRating, $types); + + $this->certificationRating = $certificationRating; + } + + /** + * @return Date|DateTime|null + */ + public function getValidFrom() + { + return $this->validFrom; + } + + /** + * @param Date|DateTime|null $validFrom + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValidFrom($validFrom) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $validFrom = self::checkTypes($validFrom, $types); + + $this->validFrom = $validFrom; + } + + /** + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + */ + public function getValidIn() + { + return $this->validIn; + } + + /** + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $validIn + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValidIn($validIn) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "string", + ]; + + $validIn = self::checkTypes($validIn, $types); + + $this->validIn = $validIn; + } + + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getHasMeasurement() + { + return $this->hasMeasurement; + } + + /** + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHasMeasurement($hasMeasurement) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $hasMeasurement = self::checkTypes($hasMeasurement, $types); + + $this->hasMeasurement = $hasMeasurement; + } + + /** + * @return \OpenActive\Models\SchemaOrg\ImageObject|string + */ + public function getLogo() + { + return $this->logo; + } + + /** + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $logo + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setLogo($logo) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ImageObject", + "string", + ]; + + $logo = self::checkTypes($logo, $types); + + $this->logo = $logo; + } + + /** + * @return Date|DateTime|null + */ + public function getDatePublished() + { + return $this->datePublished; + } + + /** + * @param Date|DateTime|null $datePublished + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDatePublished($datePublished) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $datePublished = self::checkTypes($datePublished, $types); + + $this->datePublished = $datePublished; + } + + /** + * @return Date|DateTime|null + */ + public function getAuditDate() + { + return $this->auditDate; + } + + /** + * @param Date|DateTime|null $auditDate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAuditDate($auditDate) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $auditDate = self::checkTypes($auditDate, $types); + + $this->auditDate = $auditDate; + } + +} diff --git a/src/Models/SchemaOrg/Chapter.php b/src/Models/SchemaOrg/Chapter.php index f0e6159a..6efa6618 100644 --- a/src/Models/SchemaOrg/Chapter.php +++ b/src/Models/SchemaOrg/Chapter.php @@ -17,14 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ + "pagination" => "pagination", "pageStart" => "pageStart", "pageEnd" => "pageEnd", - "pagination" => "pagination", ]; return array_merge(parent::fieldList(), $fields); } + /** + * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". + * + * + * @var string + */ + protected $pagination; + /** * The page on which the work starts; for example "135" or "xiii". * @@ -42,12 +50,28 @@ public static function fieldList() { protected $pageEnd; /** - * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". - * - * - * @var string + * @return string */ - protected $pagination; + public function getPagination() + { + return $this->pagination; + } + + /** + * @param string $pagination + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPagination($pagination) + { + $types = [ + "string", + ]; + + $pagination = self::checkTypes($pagination, $types); + + $this->pagination = $pagination; + } /** * @return string|int|null @@ -101,28 +125,4 @@ public function setPageEnd($pageEnd) $this->pageEnd = $pageEnd; } - /** - * @return string - */ - public function getPagination() - { - return $this->pagination; - } - - /** - * @param string $pagination - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setPagination($pagination) - { - $types = [ - "string", - ]; - - $pagination = self::checkTypes($pagination, $types); - - $this->pagination = $pagination; - } - } diff --git a/src/Models/SchemaOrg/ChemicalSubstance.php b/src/Models/SchemaOrg/ChemicalSubstance.php index 4000ad52..48bfa375 100644 --- a/src/Models/SchemaOrg/ChemicalSubstance.php +++ b/src/Models/SchemaOrg/ChemicalSubstance.php @@ -17,22 +17,14 @@ public static function getType() public static function fieldList() { $fields = [ - "chemicalComposition" => "chemicalComposition", "potentialUse" => "potentialUse", "chemicalRole" => "chemicalRole", + "chemicalComposition" => "chemicalComposition", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The chemical composition describes the identity and relative ratio of the chemical elements that make up the substance. - * - * - * @var string - */ - protected $chemicalComposition; - /** * Intended use of the BioChemEntity by humans. * @@ -50,28 +42,12 @@ public static function fieldList() { protected $chemicalRole; /** - * @return string - */ - public function getChemicalComposition() - { - return $this->chemicalComposition; - } - - /** - * @param string $chemicalComposition - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The chemical composition describes the identity and relative ratio of the chemical elements that make up the substance. + * + * + * @var string */ - public function setChemicalComposition($chemicalComposition) - { - $types = [ - "string", - ]; - - $chemicalComposition = self::checkTypes($chemicalComposition, $types); - - $this->chemicalComposition = $chemicalComposition; - } + protected $chemicalComposition; /** * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string @@ -123,4 +99,28 @@ public function setChemicalRole($chemicalRole) $this->chemicalRole = $chemicalRole; } + /** + * @return string + */ + public function getChemicalComposition() + { + return $this->chemicalComposition; + } + + /** + * @param string $chemicalComposition + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setChemicalComposition($chemicalComposition) + { + $types = [ + "string", + ]; + + $chemicalComposition = self::checkTypes($chemicalComposition, $types); + + $this->chemicalComposition = $chemicalComposition; + } + } diff --git a/src/Models/SchemaOrg/ChooseAction.php b/src/Models/SchemaOrg/ChooseAction.php index d1c71ddd..6e687cd7 100644 --- a/src/Models/SchemaOrg/ChooseAction.php +++ b/src/Models/SchemaOrg/ChooseAction.php @@ -28,7 +28,7 @@ public static function fieldList() { * A sub property of object. The options subject to this action. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var \OpenActive\Models\SchemaOrg\Thing|string */ protected $option; @@ -41,7 +41,7 @@ public static function fieldList() { protected $actionOption; /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return \OpenActive\Models\SchemaOrg\Thing|string */ public function getOption() { @@ -49,15 +49,15 @@ public function getOption() } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $option + * @param \OpenActive\Models\SchemaOrg\Thing|string $option * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setOption($option) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\Thing", + "string", ]; $option = self::checkTypes($option, $types); diff --git a/src/Models/SchemaOrg/Claim.php b/src/Models/SchemaOrg/Claim.php index a56747c9..5d32b346 100644 --- a/src/Models/SchemaOrg/Claim.php +++ b/src/Models/SchemaOrg/Claim.php @@ -17,25 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ - "claimInterpreter" => "claimInterpreter", - "firstAppearance" => "firstAppearance", "appearance" => "appearance", + "firstAppearance" => "firstAppearance", + "claimInterpreter" => "claimInterpreter", ]; return array_merge(parent::fieldList(), $fields); } /** - * For a [[Claim]] interpreted from [[MediaObject]] content - * sed to indicate a claim contained, implied or refined from the content of a [[MediaObject]]. + * Indicates an occurrence of a [[Claim]] in some [[CreativeWork]]. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $claimInterpreter; + protected $appearance; /** - * Indicates the first known occurence of a [[Claim]] in some [[CreativeWork]]. + * Indicates the first known occurrence of a [[Claim]] in some [[CreativeWork]]. * * * @var \OpenActive\Models\SchemaOrg\CreativeWork|string @@ -43,37 +42,36 @@ public static function fieldList() { protected $firstAppearance; /** - * Indicates an occurence of a [[Claim]] in some [[CreativeWork]]. + * For a [[Claim]] interpreted from [[MediaObject]] content, the [[interpretedAsClaim]] property can be used to indicate a claim contained, implied or refined from the content of a [[MediaObject]]. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $appearance; + protected $claimInterpreter; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getClaimInterpreter() + public function getAppearance() { - return $this->claimInterpreter; + return $this->appearance; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $claimInterpreter + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $appearance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setClaimInterpreter($claimInterpreter) + public function setAppearance($appearance) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $claimInterpreter = self::checkTypes($claimInterpreter, $types); + $appearance = self::checkTypes($appearance, $types); - $this->claimInterpreter = $claimInterpreter; + $this->appearance = $appearance; } /** @@ -102,28 +100,29 @@ public function setFirstAppearance($firstAppearance) } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAppearance() + public function getClaimInterpreter() { - return $this->appearance; + return $this->claimInterpreter; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $appearance + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $claimInterpreter * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAppearance($appearance) + public function setClaimInterpreter($claimInterpreter) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $appearance = self::checkTypes($appearance, $types); + $claimInterpreter = self::checkTypes($claimInterpreter, $types); - $this->appearance = $appearance; + $this->claimInterpreter = $claimInterpreter; } } diff --git a/src/Models/SchemaOrg/Class.php b/src/Models/SchemaOrg/Class.php index bfafaeae..a1de846e 100644 --- a/src/Models/SchemaOrg/Class.php +++ b/src/Models/SchemaOrg/Class.php @@ -27,12 +27,12 @@ public static function fieldList() { * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null */ protected $supersededBy; /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null */ public function getSupersededBy() { @@ -40,17 +40,17 @@ public function getSupersededBy() } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy + * @param \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null $supersededBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSupersededBy($supersededBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", "\OpenActive\Models\SchemaOrg\Class", - "string", "\OpenActive\Enums\PropertyEnumeration", + "\OpenActive\Models\SchemaOrg\Enumeration", + "string", "null", ]; diff --git a/src/Models/SchemaOrg/Clip.php b/src/Models/SchemaOrg/Clip.php index 152585a2..a29c314f 100644 --- a/src/Models/SchemaOrg/Clip.php +++ b/src/Models/SchemaOrg/Clip.php @@ -17,29 +17,29 @@ public static function getType() public static function fieldList() { $fields = [ - "startOffset" => "startOffset", + "partOfSeason" => "partOfSeason", "endOffset" => "endOffset", - "director" => "director", "actor" => "actor", - "partOfEpisode" => "partOfEpisode", "clipNumber" => "clipNumber", - "partOfSeries" => "partOfSeries", - "partOfSeason" => "partOfSeason", - "actors" => "actors", + "partOfEpisode" => "partOfEpisode", "musicBy" => "musicBy", "directors" => "directors", + "startOffset" => "startOffset", + "director" => "director", + "actors" => "actors", + "partOfSeries" => "partOfSeries", ]; return array_merge(parent::fieldList(), $fields); } /** - * The start time of the clip expressed as the number of seconds from the beginning of the work. + * The season to which this episode belongs. * * - * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $startOffset; + protected $partOfSeason; /** * The end time of the clip expressed as the number of seconds from the beginning of the work. @@ -50,20 +50,20 @@ public static function fieldList() { protected $endOffset; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $director; + protected $actor; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * Position of the clip within an ordered group of clips. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string|int|null */ - protected $actor; + protected $clipNumber; /** * The episode to which this clip belongs. @@ -74,78 +74,76 @@ public static function fieldList() { protected $partOfEpisode; /** - * Position of the clip within an ordered group of clips. + * The composer of the soundtrack. * * - * @var string|int|null + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $clipNumber; + protected $musicBy; /** - * The series to which this episode or season belongs. + * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $partOfSeries; + protected $directors; /** - * The season to which this episode belongs. + * The start time of the clip expressed as the number of seconds from the beginning of the work. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null */ - protected $partOfSeason; + protected $startOffset; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $actors; + protected $director; /** - * The composer of the soundtrack. + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $musicBy; + protected $actors; /** - * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. + * The series to which this episode or season belongs. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - protected $directors; + protected $partOfSeries; /** - * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getStartOffset() + public function getPartOfSeason() { - return $this->startOffset; + return $this->partOfSeason; } /** - * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartOffset($startOffset) + public function setPartOfSeason($partOfSeason) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\HyperTocEntry", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", - "null", ]; - $startOffset = self::checkTypes($startOffset, $types); + $partOfSeason = self::checkTypes($partOfSeason, $types); - $this->startOffset = $startOffset; + $this->partOfSeason = $partOfSeason; } /** @@ -178,51 +176,52 @@ public function setEndOffset($endOffset) /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDirector() + public function getActor() { - return $this->director; + return $this->actor; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param \OpenActive\Models\SchemaOrg\Person|string $actor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setActor($actor) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $director = self::checkTypes($director, $types); + $actor = self::checkTypes($actor, $types); - $this->director = $director; + $this->actor = $actor; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string|int|null */ - public function getActor() + public function getClipNumber() { - return $this->actor; + return $this->clipNumber; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param string|int|null $clipNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setClipNumber($clipNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", + "int", + "null", ]; - $actor = self::checkTypes($actor, $types); + $clipNumber = self::checkTypes($clipNumber, $types); - $this->actor = $actor; + $this->clipNumber = $clipNumber; } /** @@ -251,155 +250,156 @@ public function setPartOfEpisode($partOfEpisode) } /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getClipNumber() + public function getMusicBy() { - return $this->clipNumber; + return $this->musicBy; } /** - * @param string|int|null $clipNumber + * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setClipNumber($clipNumber) + public function setMusicBy($musicBy) { $types = [ + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", - "int", - "null", ]; - $clipNumber = self::checkTypes($clipNumber, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->clipNumber = $clipNumber; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getPartOfSeries() + public function getDirectors() { - return $this->partOfSeries; + return $this->directors; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries + * @param \OpenActive\Models\SchemaOrg\Person|string $directors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfSeries($partOfSeries) + public function setDirectors($directors) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $partOfSeries = self::checkTypes($partOfSeries, $types); + $directors = self::checkTypes($directors, $types); - $this->partOfSeries = $partOfSeries; + $this->directors = $directors; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null */ - public function getPartOfSeason() + public function getStartOffset() { - return $this->partOfSeason; + return $this->startOffset; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason + * @param Number|\OpenActive\Models\SchemaOrg\HyperTocEntry|string|null $startOffset * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfSeason($partOfSeason) + public function setStartOffset($startOffset) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "Number", + "\OpenActive\Models\SchemaOrg\HyperTocEntry", "string", + "null", ]; - $partOfSeason = self::checkTypes($partOfSeason, $types); + $startOffset = self::checkTypes($startOffset, $types); - $this->partOfSeason = $partOfSeason; + $this->startOffset = $startOffset; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getActors() + public function getDirector() { - return $this->actors; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setDirector($director) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actors = self::checkTypes($actors, $types); + $director = self::checkTypes($director, $types); - $this->actors = $actors; + $this->director = $director; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getMusicBy() + public function getActors() { - return $this->musicBy; + return $this->actors; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param \OpenActive\Models\SchemaOrg\Person|string $actors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setActors($actors) { $types = [ "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $actors = self::checkTypes($actors, $types); - $this->musicBy = $musicBy; + $this->actors = $actors; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - public function getDirectors() + public function getPartOfSeries() { - return $this->directors; + return $this->partOfSeries; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirectors($directors) + public function setPartOfSeries($partOfSeries) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", "string", ]; - $directors = self::checkTypes($directors, $types); + $partOfSeries = self::checkTypes($partOfSeries, $types); - $this->directors = $directors; + $this->partOfSeries = $partOfSeries; } } diff --git a/src/Models/SchemaOrg/ComicCoverArt.php b/src/Models/SchemaOrg/ComicCoverArt.php index 8112afb0..f8c1c408 100644 --- a/src/Models/SchemaOrg/ComicCoverArt.php +++ b/src/Models/SchemaOrg/ComicCoverArt.php @@ -5,7 +5,7 @@ /** * */ -class ComicCoverArt extends \OpenActive\Models\SchemaOrg\ComicStory +class ComicCoverArt extends \OpenActive\Models\SchemaOrg\CoverArt { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/ComicIssue.php b/src/Models/SchemaOrg/ComicIssue.php index ffd3a40f..6e23b278 100644 --- a/src/Models/SchemaOrg/ComicIssue.php +++ b/src/Models/SchemaOrg/ComicIssue.php @@ -17,32 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ - "letterer" => "letterer", - "colorist" => "colorist", - "variantCover" => "variantCover", "inker" => "inker", - "penciler" => "penciler", + "variantCover" => "variantCover", + "letterer" => "letterer", "artist" => "artist", + "penciler" => "penciler", + "colorist" => "colorist", ]; return array_merge(parent::fieldList(), $fields); } /** - * The individual who adds lettering, including speech balloons and sound effects, to artwork. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|string - */ - protected $letterer; - - /** - * The individual who adds color to inked drawings. + * The individual who traces over the pencil drawings in ink after pencils are complete. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $colorist; + protected $inker; /** * A description of the variant cover @@ -55,12 +47,22 @@ public static function fieldList() { protected $variantCover; /** - * The individual who traces over the pencil drawings in ink after pencils are complete. + * The individual who adds lettering, including speech balloons and sound effects, to artwork. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $inker; + protected $letterer; + + /** + * The primary artist for a work + * in a medium other than pencils or digital line art--for example, if the + * primary artwork is done in watercolors or digital paints. + * + * + * @var \OpenActive\Models\SchemaOrg\Person|string + */ + protected $artist; /** * The individual who draws the primary narrative artwork. @@ -71,112 +73,110 @@ public static function fieldList() { protected $penciler; /** - * The primary artist for a work - * in a medium other than pencils or digital line art--for example, if the - * primary artwork is done in watercolors or digital paints. + * The individual who adds color to inked drawings. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $artist; + protected $colorist; /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getLetterer() + public function getInker() { - return $this->letterer; + return $this->inker; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $letterer + * @param \OpenActive\Models\SchemaOrg\Person|string $inker * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLetterer($letterer) + public function setInker($inker) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $letterer = self::checkTypes($letterer, $types); + $inker = self::checkTypes($inker, $types); - $this->letterer = $letterer; + $this->inker = $inker; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getColorist() + public function getVariantCover() { - return $this->colorist; + return $this->variantCover; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colorist + * @param string $variantCover * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setColorist($colorist) + public function setVariantCover($variantCover) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $colorist = self::checkTypes($colorist, $types); + $variantCover = self::checkTypes($variantCover, $types); - $this->colorist = $colorist; + $this->variantCover = $variantCover; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getVariantCover() + public function getLetterer() { - return $this->variantCover; + return $this->letterer; } /** - * @param string $variantCover + * @param \OpenActive\Models\SchemaOrg\Person|string $letterer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVariantCover($variantCover) + public function setLetterer($letterer) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $variantCover = self::checkTypes($variantCover, $types); + $letterer = self::checkTypes($letterer, $types); - $this->variantCover = $variantCover; + $this->letterer = $letterer; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getInker() + public function getArtist() { - return $this->inker; + return $this->artist; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $inker + * @param \OpenActive\Models\SchemaOrg\Person|string $artist * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInker($inker) + public function setArtist($artist) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $inker = self::checkTypes($inker, $types); + $artist = self::checkTypes($artist, $types); - $this->inker = $inker; + $this->artist = $artist; } /** @@ -207,26 +207,26 @@ public function setPenciler($penciler) /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getArtist() + public function getColorist() { - return $this->artist; + return $this->colorist; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $artist + * @param \OpenActive\Models\SchemaOrg\Person|string $colorist * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArtist($artist) + public function setColorist($colorist) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $artist = self::checkTypes($artist, $types); + $colorist = self::checkTypes($colorist, $types); - $this->artist = $artist; + $this->colorist = $colorist; } } diff --git a/src/Models/SchemaOrg/ComicStory.php b/src/Models/SchemaOrg/ComicStory.php index 8ec03973..f091edc5 100644 --- a/src/Models/SchemaOrg/ComicStory.php +++ b/src/Models/SchemaOrg/ComicStory.php @@ -17,39 +17,41 @@ public static function getType() public static function fieldList() { $fields = [ - "letterer" => "letterer", - "colorist" => "colorist", "inker" => "inker", - "penciler" => "penciler", + "letterer" => "letterer", "artist" => "artist", + "penciler" => "penciler", + "colorist" => "colorist", ]; return array_merge(parent::fieldList(), $fields); } /** - * The individual who adds lettering, including speech balloons and sound effects, to artwork. + * The individual who traces over the pencil drawings in ink after pencils are complete. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $letterer; + protected $inker; /** - * The individual who adds color to inked drawings. + * The individual who adds lettering, including speech balloons and sound effects, to artwork. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $colorist; + protected $letterer; /** - * The individual who traces over the pencil drawings in ink after pencils are complete. + * The primary artist for a work + * in a medium other than pencils or digital line art--for example, if the + * primary artwork is done in watercolors or digital paints. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $inker; + protected $artist; /** * The individual who draws the primary narrative artwork. @@ -60,88 +62,86 @@ public static function fieldList() { protected $penciler; /** - * The primary artist for a work - * in a medium other than pencils or digital line art--for example, if the - * primary artwork is done in watercolors or digital paints. + * The individual who adds color to inked drawings. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $artist; + protected $colorist; /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getLetterer() + public function getInker() { - return $this->letterer; + return $this->inker; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $letterer + * @param \OpenActive\Models\SchemaOrg\Person|string $inker * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLetterer($letterer) + public function setInker($inker) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $letterer = self::checkTypes($letterer, $types); + $inker = self::checkTypes($inker, $types); - $this->letterer = $letterer; + $this->inker = $inker; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getColorist() + public function getLetterer() { - return $this->colorist; + return $this->letterer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colorist + * @param \OpenActive\Models\SchemaOrg\Person|string $letterer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setColorist($colorist) + public function setLetterer($letterer) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $colorist = self::checkTypes($colorist, $types); + $letterer = self::checkTypes($letterer, $types); - $this->colorist = $colorist; + $this->letterer = $letterer; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getInker() + public function getArtist() { - return $this->inker; + return $this->artist; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $inker + * @param \OpenActive\Models\SchemaOrg\Person|string $artist * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInker($inker) + public function setArtist($artist) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $inker = self::checkTypes($inker, $types); + $artist = self::checkTypes($artist, $types); - $this->inker = $inker; + $this->artist = $artist; } /** @@ -172,26 +172,26 @@ public function setPenciler($penciler) /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getArtist() + public function getColorist() { - return $this->artist; + return $this->colorist; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $artist + * @param \OpenActive\Models\SchemaOrg\Person|string $colorist * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArtist($artist) + public function setColorist($colorist) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $artist = self::checkTypes($artist, $types); + $colorist = self::checkTypes($colorist, $types); - $this->artist = $artist; + $this->colorist = $colorist; } } diff --git a/src/Models/SchemaOrg/Comment.php b/src/Models/SchemaOrg/Comment.php index e45f4dde..b0fdf588 100644 --- a/src/Models/SchemaOrg/Comment.php +++ b/src/Models/SchemaOrg/Comment.php @@ -17,19 +17,28 @@ public static function getType() public static function fieldList() { $fields = [ + "upvoteCount" => "upvoteCount", "parentItem" => "parentItem", "downvoteCount" => "downvoteCount", - "upvoteCount" => "upvoteCount", + "sharedContent" => "sharedContent", ]; return array_merge(parent::fieldList(), $fields); } /** - * The parent of a question, answer or item in general. + * The number of upvotes this question, answer or comment has received from the community. + * + * + * @var int|null + */ + protected $upvoteCount; + + /** + * The parent of a question, answer or item in general. Typically used for Q/A discussion threads e.g. a chain of comments with the first comment being an [[Article]] or other [[CreativeWork]]. See also [[comment]] which points from something to a comment about it. * * - * @var \OpenActive\Models\SchemaOrg\Comment|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string */ protected $parentItem; @@ -42,15 +51,40 @@ public static function fieldList() { protected $downvoteCount; /** - * The number of upvotes this question, answer or comment has received from the community. + * A CreativeWork such as an image, video, or audio clip shared as part of this posting. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $upvoteCount; + protected $sharedContent; + + /** + * @return int|null + */ + public function getUpvoteCount() + { + return $this->upvoteCount; + } + + /** + * @param int|null $upvoteCount + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setUpvoteCount($upvoteCount) + { + $types = [ + "int", + "null", + ]; + + $upvoteCount = self::checkTypes($upvoteCount, $types); + + $this->upvoteCount = $upvoteCount; + } /** - * @return \OpenActive\Models\SchemaOrg\Comment|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string */ public function getParentItem() { @@ -58,13 +92,14 @@ public function getParentItem() } /** - * @param \OpenActive\Models\SchemaOrg\Comment|string $parentItem + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string $parentItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setParentItem($parentItem) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "\OpenActive\Models\SchemaOrg\Comment", "string", ]; @@ -100,28 +135,28 @@ public function setDownvoteCount($downvoteCount) } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getUpvoteCount() + public function getSharedContent() { - return $this->upvoteCount; + return $this->sharedContent; } /** - * @param int|null $upvoteCount + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $sharedContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUpvoteCount($upvoteCount) + public function setSharedContent($sharedContent) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", ]; - $upvoteCount = self::checkTypes($upvoteCount, $types); + $sharedContent = self::checkTypes($sharedContent, $types); - $this->upvoteCount = $upvoteCount; + $this->sharedContent = $sharedContent; } } diff --git a/src/Models/SchemaOrg/CommunicateAction.php b/src/Models/SchemaOrg/CommunicateAction.php index 91f19d19..47fa37c8 100644 --- a/src/Models/SchemaOrg/CommunicateAction.php +++ b/src/Models/SchemaOrg/CommunicateAction.php @@ -17,30 +17,30 @@ public static function getType() public static function fieldList() { $fields = [ + "about" => "about", "recipient" => "recipient", - "inLanguage" => "inLanguage", "language" => "language", - "about" => "about", + "inLanguage" => "inLanguage", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of participant. The participant who is at the receiving end of the action. + * The subject matter of the content. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $recipient; + protected $about; /** - * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. + * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ - protected $inLanguage; + protected $recipient; /** * A sub property of instrument. The language used on this action. @@ -51,64 +51,64 @@ public static function fieldList() { protected $language; /** - * The subject matter of the content. + * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $about; + protected $inLanguage; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getRecipient() + public function getAbout() { - return $this->recipient; + return $this->about; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Thing|string $about * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipient($recipient) + public function setAbout($about) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $recipient = self::checkTypes($recipient, $types); + $about = self::checkTypes($about, $types); - $this->recipient = $recipient; + $this->about = $about; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ - public function getInLanguage() + public function getRecipient() { - return $this->inLanguage; + return $this->recipient; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInLanguage($inLanguage) + public function setRecipient($recipient) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Audience", "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $recipient = self::checkTypes($recipient, $types); - $this->inLanguage = $inLanguage; + $this->recipient = $recipient; } /** @@ -137,28 +137,28 @@ public function setLanguage($language) } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getAbout() + public function getInLanguage() { - return $this->about; + return $this->inLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $about + * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAbout($about) + public function setInLanguage($inLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $about = self::checkTypes($about, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->about = $about; + $this->inLanguage = $inLanguage; } } diff --git a/src/Models/SchemaOrg/ConstraintNode.php b/src/Models/SchemaOrg/ConstraintNode.php new file mode 100644 index 00000000..c2526daf --- /dev/null +++ b/src/Models/SchemaOrg/ConstraintNode.php @@ -0,0 +1,94 @@ + "numConstraints", + "constraintProperty" => "constraintProperty", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * Indicates the number of constraints property values defined for a particular [[ConstraintNode]] such as [[StatisticalVariable]]. This helps applications understand if they have access to a sufficiently complete description of a [[StatisticalVariable]] or other construct that is defined using properties on template-style nodes. + * + * + * @var int|null + */ + protected $numConstraints; + + /** + * Indicates a property used as a constraint. For example, in the definition of a [[StatisticalVariable]]. The value is a property, either from within Schema.org or from other compatible (e.g. RDF) systems such as DataCommons.org or Wikidata.org. + * + * + * @var string|\OpenActive\Enums\PropertyEnumeration|null + */ + protected $constraintProperty; + + /** + * @return int|null + */ + public function getNumConstraints() + { + return $this->numConstraints; + } + + /** + * @param int|null $numConstraints + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setNumConstraints($numConstraints) + { + $types = [ + "int", + "null", + ]; + + $numConstraints = self::checkTypes($numConstraints, $types); + + $this->numConstraints = $numConstraints; + } + + /** + * @return string|\OpenActive\Enums\PropertyEnumeration|null + */ + public function getConstraintProperty() + { + return $this->constraintProperty; + } + + /** + * @param string|\OpenActive\Enums\PropertyEnumeration|null $constraintProperty + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setConstraintProperty($constraintProperty) + { + $types = [ + "string", + "\OpenActive\Enums\PropertyEnumeration", + "null", + ]; + + $constraintProperty = self::checkTypes($constraintProperty, $types); + + $this->constraintProperty = $constraintProperty; + } + +} diff --git a/src/Models/SchemaOrg/ConsumeAction.php b/src/Models/SchemaOrg/ConsumeAction.php index d13f0fa1..03a79fd7 100644 --- a/src/Models/SchemaOrg/ConsumeAction.php +++ b/src/Models/SchemaOrg/ConsumeAction.php @@ -33,7 +33,7 @@ public static function fieldList() { protected $expectsAcceptanceOf; /** - * A set of requirements that a must be fulfilled in order to perform an Action. If more than one value is specied, fulfilling one set of requirements will allow the Action to be performed. + * A set of requirements that must be fulfilled in order to perform an Action. If more than one value is specified, fulfilling one set of requirements will allow the Action to be performed. * * * @var \OpenActive\Models\SchemaOrg\ActionAccessSpecification|string diff --git a/src/Models/SchemaOrg/ContactPoint.php b/src/Models/SchemaOrg/ContactPoint.php index 8541bcfa..b65fa077 100644 --- a/src/Models/SchemaOrg/ContactPoint.php +++ b/src/Models/SchemaOrg/ContactPoint.php @@ -18,15 +18,15 @@ public static function getType() public static function fieldList() { $fields = [ "telephone" => "telephone", - "hoursAvailable" => "hoursAvailable", "email" => "email", - "contactOption" => "contactOption", "availableLanguage" => "availableLanguage", + "faxNumber" => "faxNumber", + "hoursAvailable" => "hoursAvailable", + "contactOption" => "contactOption", "serviceArea" => "serviceArea", - "areaServed" => "areaServed", - "contactType" => "contactType", "productSupported" => "productSupported", - "faxNumber" => "faxNumber", + "contactType" => "contactType", + "areaServed" => "areaServed", ]; return array_merge(parent::fieldList(), $fields); @@ -40,14 +40,6 @@ public static function fieldList() { */ protected $telephone; - /** - * The hours during which this service or contact is available. - * - * - * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string - */ - protected $hoursAvailable; - /** * Email address. * @@ -57,44 +49,44 @@ public static function fieldList() { protected $email; /** - * An option available on this contact point (e.g. a toll-free number or support for hearing-impaired callers). + * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]. * * - * @var \OpenActive\Enums\SchemaOrg\ContactPointOption|null + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $contactOption; + protected $availableLanguage; /** - * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]] + * The fax number. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var string */ - protected $availableLanguage; + protected $faxNumber; /** - * The geographic area where the service is provided. + * The hours during which this service or contact is available. * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - protected $serviceArea; + protected $hoursAvailable; /** - * The geographic area where a service or offered item is provided. + * An option available on this contact point (e.g. a toll-free number or support for hearing-impaired callers). * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Enums\SchemaOrg\ContactPointOption|null */ - protected $areaServed; + protected $contactOption; /** - * A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point. + * The geographic area where the service is provided. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - protected $contactType; + protected $serviceArea; /** * The product or service this support contact point is related to (such as product support for a particular product line). This can be a specific product or product line (e.g. "iPhone") or a general category of products or services (e.g. "smartphones"). @@ -105,12 +97,20 @@ public static function fieldList() { protected $productSupported; /** - * The fax number. + * A person or organization can have different contact points, for different purposes. For example, a sales contact point, a PR contact point and so on. This property is used to specify the kind of contact point. * * * @var string */ - protected $faxNumber; + protected $contactType; + + /** + * The geographic area where a service or offered item is provided. + * + * + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place + */ + protected $areaServed; /** * @return string @@ -137,229 +137,229 @@ public function setTelephone($telephone) } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return string */ - public function getHoursAvailable() + public function getEmail() { - return $this->hoursAvailable; + return $this->email; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable + * @param string $email * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHoursAvailable($hoursAvailable) + public function setEmail($email) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $hoursAvailable = self::checkTypes($hoursAvailable, $types); + $email = self::checkTypes($email, $types); - $this->hoursAvailable = $hoursAvailable; + $this->email = $email; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getEmail() + public function getAvailableLanguage() { - return $this->email; + return $this->availableLanguage; } /** - * @param string $email + * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmail($email) + public function setAvailableLanguage($availableLanguage) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $email = self::checkTypes($email, $types); + $availableLanguage = self::checkTypes($availableLanguage, $types); - $this->email = $email; + $this->availableLanguage = $availableLanguage; } /** - * @return \OpenActive\Enums\SchemaOrg\ContactPointOption|null + * @return string */ - public function getContactOption() + public function getFaxNumber() { - return $this->contactOption; + return $this->faxNumber; } /** - * @param \OpenActive\Enums\SchemaOrg\ContactPointOption|null $contactOption + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactOption($contactOption) + public function setFaxNumber($faxNumber) { $types = [ - "\OpenActive\Enums\SchemaOrg\ContactPointOption", - "null", + "string", ]; - $contactOption = self::checkTypes($contactOption, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->contactOption = $contactOption; + $this->faxNumber = $faxNumber; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - public function getAvailableLanguage() + public function getHoursAvailable() { - return $this->availableLanguage; + return $this->hoursAvailable; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage + * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $hoursAvailable * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableLanguage($availableLanguage) + public function setHoursAvailable($hoursAvailable) { $types = [ + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $availableLanguage = self::checkTypes($availableLanguage, $types); + $hoursAvailable = self::checkTypes($hoursAvailable, $types); - $this->availableLanguage = $availableLanguage; + $this->hoursAvailable = $hoursAvailable; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Enums\SchemaOrg\ContactPointOption|null */ - public function getServiceArea() + public function getContactOption() { - return $this->serviceArea; + return $this->contactOption; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea + * @param \OpenActive\Enums\SchemaOrg\ContactPointOption|null $contactOption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceArea($serviceArea) + public function setContactOption($contactOption) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\Place", - "string", + "\OpenActive\Enums\SchemaOrg\ContactPointOption", + "null", ]; - $serviceArea = self::checkTypes($serviceArea, $types); + $contactOption = self::checkTypes($contactOption, $types); - $this->serviceArea = $serviceArea; + $this->contactOption = $contactOption; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getAreaServed() + public function getServiceArea() { - return $this->areaServed; + return $this->serviceArea; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string $serviceArea * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setServiceArea($serviceArea) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $areaServed = self::checkTypes($areaServed, $types); + $serviceArea = self::checkTypes($serviceArea, $types); - $this->areaServed = $areaServed; + $this->serviceArea = $serviceArea; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Product */ - public function getContactType() + public function getProductSupported() { - return $this->contactType; + return $this->productSupported; } /** - * @param string $contactType + * @param string|\OpenActive\Models\SchemaOrg\Product $productSupported * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactType($contactType) + public function setProductSupported($productSupported) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Product", ]; - $contactType = self::checkTypes($contactType, $types); + $productSupported = self::checkTypes($productSupported, $types); - $this->contactType = $contactType; + $this->productSupported = $productSupported; } /** - * @return string|\OpenActive\Models\SchemaOrg\Product + * @return string */ - public function getProductSupported() + public function getContactType() { - return $this->productSupported; + return $this->contactType; } /** - * @param string|\OpenActive\Models\SchemaOrg\Product $productSupported + * @param string $contactType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductSupported($productSupported) + public function setContactType($contactType) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Product", ]; - $productSupported = self::checkTypes($productSupported, $types); + $contactType = self::checkTypes($contactType, $types); - $this->productSupported = $productSupported; + $this->contactType = $contactType; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ - public function getFaxNumber() + public function getAreaServed() { - return $this->faxNumber; + return $this->areaServed; } /** - * @param string $faxNumber + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place $areaServed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFaxNumber($faxNumber) + public function setAreaServed($areaServed) { $types = [ + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", + "\OpenActive\Models\SchemaOrg\Place", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->faxNumber = $faxNumber; + $this->areaServed = $areaServed; } } diff --git a/src/Models/SchemaOrg/CookAction.php b/src/Models/SchemaOrg/CookAction.php index 0c80482f..7edb2d5b 100644 --- a/src/Models/SchemaOrg/CookAction.php +++ b/src/Models/SchemaOrg/CookAction.php @@ -17,112 +17,112 @@ public static function getType() public static function fieldList() { $fields = [ + "foodEvent" => "foodEvent", "recipe" => "recipe", "foodEstablishment" => "foodEstablishment", - "foodEvent" => "foodEvent", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of instrument. The recipe/instructions used to perform the action. + * A sub property of location. The specific food event where the action occurred. * * - * @var \OpenActive\Models\SchemaOrg\Recipe|string + * @var \OpenActive\Models\SchemaOrg\FoodEvent|string */ - protected $recipe; + protected $foodEvent; /** - * A sub property of location. The specific food establishment where the action occurred. + * A sub property of instrument. The recipe/instructions used to perform the action. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string + * @var \OpenActive\Models\SchemaOrg\Recipe|string */ - protected $foodEstablishment; + protected $recipe; /** - * A sub property of location. The specific food event where the action occurred. + * A sub property of location. The specific food establishment where the action occurred. * * - * @var \OpenActive\Models\SchemaOrg\FoodEvent|string + * @var \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string */ - protected $foodEvent; + protected $foodEstablishment; /** - * @return \OpenActive\Models\SchemaOrg\Recipe|string + * @return \OpenActive\Models\SchemaOrg\FoodEvent|string */ - public function getRecipe() + public function getFoodEvent() { - return $this->recipe; + return $this->foodEvent; } /** - * @param \OpenActive\Models\SchemaOrg\Recipe|string $recipe + * @param \OpenActive\Models\SchemaOrg\FoodEvent|string $foodEvent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipe($recipe) + public function setFoodEvent($foodEvent) { $types = [ - "\OpenActive\Models\SchemaOrg\Recipe", + "\OpenActive\Models\SchemaOrg\FoodEvent", "string", ]; - $recipe = self::checkTypes($recipe, $types); + $foodEvent = self::checkTypes($foodEvent, $types); - $this->recipe = $recipe; + $this->foodEvent = $foodEvent; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string + * @return \OpenActive\Models\SchemaOrg\Recipe|string */ - public function getFoodEstablishment() + public function getRecipe() { - return $this->foodEstablishment; + return $this->recipe; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\FoodEstablishment|string $foodEstablishment + * @param \OpenActive\Models\SchemaOrg\Recipe|string $recipe * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFoodEstablishment($foodEstablishment) + public function setRecipe($recipe) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\FoodEstablishment", + "\OpenActive\Models\SchemaOrg\Recipe", "string", ]; - $foodEstablishment = self::checkTypes($foodEstablishment, $types); + $recipe = self::checkTypes($recipe, $types); - $this->foodEstablishment = $foodEstablishment; + $this->recipe = $recipe; } /** - * @return \OpenActive\Models\SchemaOrg\FoodEvent|string + * @return \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string */ - public function getFoodEvent() + public function getFoodEstablishment() { - return $this->foodEvent; + return $this->foodEstablishment; } /** - * @param \OpenActive\Models\SchemaOrg\FoodEvent|string $foodEvent + * @param \OpenActive\Models\SchemaOrg\FoodEstablishment|\OpenActive\Models\SchemaOrg\Place|string $foodEstablishment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFoodEvent($foodEvent) + public function setFoodEstablishment($foodEstablishment) { $types = [ - "\OpenActive\Models\SchemaOrg\FoodEvent", + "\OpenActive\Models\SchemaOrg\FoodEstablishment", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $foodEvent = self::checkTypes($foodEvent, $types); + $foodEstablishment = self::checkTypes($foodEstablishment, $types); - $this->foodEvent = $foodEvent; + $this->foodEstablishment = $foodEstablishment; } } diff --git a/src/Models/SchemaOrg/Corporation.php b/src/Models/SchemaOrg/Corporation.php index 3954b7f0..13ab4280 100644 --- a/src/Models/SchemaOrg/Corporation.php +++ b/src/Models/SchemaOrg/Corporation.php @@ -24,7 +24,7 @@ public static function fieldList() { } /** - * The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we recommend using the controlled vocabulary of Market Identifier Codes (MIC) specified in ISO15022. + * The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we recommend using the controlled vocabulary of Market Identifier Codes (MIC) specified in ISO 15022. * * * @var string diff --git a/src/Models/SchemaOrg/Course.php b/src/Models/SchemaOrg/Course.php index 09300453..364c5ba9 100644 --- a/src/Models/SchemaOrg/Course.php +++ b/src/Models/SchemaOrg/Course.php @@ -17,48 +17,52 @@ public static function getType() public static function fieldList() { $fields = [ - "coursePrerequisites" => "coursePrerequisites", + "financialAidEligible" => "financialAidEligible", + "availableLanguage" => "availableLanguage", + "syllabusSections" => "syllabusSections", + "hasCourseInstance" => "hasCourseInstance", + "courseCode" => "courseCode", "educationalCredentialAwarded" => "educationalCredentialAwarded", + "totalHistoricalEnrollment" => "totalHistoricalEnrollment", "numberOfCredits" => "numberOfCredits", + "coursePrerequisites" => "coursePrerequisites", "occupationalCredentialAwarded" => "occupationalCredentialAwarded", - "courseCode" => "courseCode", - "hasCourseInstance" => "hasCourseInstance", ]; return array_merge(parent::fieldList(), $fields); } /** - * Requirements for taking the Course. May be completion of another [[Course]] or a textual description like "permission of instructor". Requirements may be a pre-requisite competency, referenced using [[AlignmentObject]]. + * A financial aid type or program which students may use to pay for tuition or fees associated with the program. * * - * @var string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $coursePrerequisites; + protected $financialAidEligible; /** - * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program. + * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]. * * - * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $educationalCredentialAwarded; + protected $availableLanguage; /** - * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram. + * Indicates (typically several) Syllabus entities that lay out what each section of the overall course will cover. * * - * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @var \OpenActive\Models\SchemaOrg\Syllabus|string */ - protected $numberOfCredits; + protected $syllabusSections; /** - * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program. + * An offering of the course at a specific time and place or through specific media or mode of study or to a specific section of students. * * - * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var \OpenActive\Models\SchemaOrg\CourseInstance|string */ - protected $occupationalCredentialAwarded; + protected $hasCourseInstance; /** * The identifier for the [[Course]] used by the course [[provider]] (e.g. CS101 or 6.001). @@ -69,37 +73,167 @@ public static function fieldList() { protected $courseCode; /** - * An offering of the course at a specific time and place or through specific media or mode of study or to a specific section of students. + * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program. * * - * @var \OpenActive\Models\SchemaOrg\CourseInstance|string + * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - protected $hasCourseInstance; + protected $educationalCredentialAwarded; /** - * @return string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course + * The total number of students that have enrolled in the history of the course. + * + * + * @var int|null */ - public function getCoursePrerequisites() + protected $totalHistoricalEnrollment; + + /** + * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram. + * + * + * @var \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null + */ + protected $numberOfCredits; + + /** + * Requirements for taking the Course. May be completion of another [[Course]] or a textual description like "permission of instructor". Requirements may be a pre-requisite competency, referenced using [[AlignmentObject]]. + * + * + * @var \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|string + */ + protected $coursePrerequisites; + + /** + * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program. + * + * + * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential + */ + protected $occupationalCredentialAwarded; + + /** + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + */ + public function getFinancialAidEligible() { - return $this->coursePrerequisites; + return $this->financialAidEligible; } /** - * @param string|\OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course $coursePrerequisites + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $financialAidEligible * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCoursePrerequisites($coursePrerequisites) + public function setFinancialAidEligible($financialAidEligible) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\AlignmentObject", - "\OpenActive\Models\SchemaOrg\Course", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $coursePrerequisites = self::checkTypes($coursePrerequisites, $types); + $financialAidEligible = self::checkTypes($financialAidEligible, $types); - $this->coursePrerequisites = $coursePrerequisites; + $this->financialAidEligible = $financialAidEligible; + } + + /** + * @return string|\OpenActive\Models\SchemaOrg\Language + */ + public function getAvailableLanguage() + { + return $this->availableLanguage; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAvailableLanguage($availableLanguage) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\Language", + ]; + + $availableLanguage = self::checkTypes($availableLanguage, $types); + + $this->availableLanguage = $availableLanguage; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Syllabus|string + */ + public function getSyllabusSections() + { + return $this->syllabusSections; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Syllabus|string $syllabusSections + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setSyllabusSections($syllabusSections) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Syllabus", + "string", + ]; + + $syllabusSections = self::checkTypes($syllabusSections, $types); + + $this->syllabusSections = $syllabusSections; + } + + /** + * @return \OpenActive\Models\SchemaOrg\CourseInstance|string + */ + public function getHasCourseInstance() + { + return $this->hasCourseInstance; + } + + /** + * @param \OpenActive\Models\SchemaOrg\CourseInstance|string $hasCourseInstance + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setHasCourseInstance($hasCourseInstance) + { + $types = [ + "\OpenActive\Models\SchemaOrg\CourseInstance", + "string", + ]; + + $hasCourseInstance = self::checkTypes($hasCourseInstance, $types); + + $this->hasCourseInstance = $hasCourseInstance; + } + + /** + * @return string + */ + public function getCourseCode() + { + return $this->courseCode; + } + + /** + * @param string $courseCode + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCourseCode($courseCode) + { + $types = [ + "string", + ]; + + $courseCode = self::checkTypes($courseCode, $types); + + $this->courseCode = $courseCode; } /** @@ -128,104 +262,106 @@ public function setEducationalCredentialAwarded($educationalCredentialAwarded) } /** - * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @return int|null */ - public function getNumberOfCredits() + public function getTotalHistoricalEnrollment() { - return $this->numberOfCredits; + return $this->totalHistoricalEnrollment; } /** - * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $numberOfCredits + * @param int|null $totalHistoricalEnrollment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfCredits($numberOfCredits) + public function setTotalHistoricalEnrollment($totalHistoricalEnrollment) { $types = [ "int", - "\OpenActive\Models\SchemaOrg\StructuredValue", - "string", "null", ]; - $numberOfCredits = self::checkTypes($numberOfCredits, $types); + $totalHistoricalEnrollment = self::checkTypes($totalHistoricalEnrollment, $types); - $this->numberOfCredits = $numberOfCredits; + $this->totalHistoricalEnrollment = $totalHistoricalEnrollment; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null */ - public function getOccupationalCredentialAwarded() + public function getNumberOfCredits() { - return $this->occupationalCredentialAwarded; + return $this->numberOfCredits; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded + * @param \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null $numberOfCredits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupationalCredentialAwarded($occupationalCredentialAwarded) + public function setNumberOfCredits($numberOfCredits) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "\OpenActive\Models\SchemaOrg\StructuredValue", "string", + "int", + "null", ]; - $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types); + $numberOfCredits = self::checkTypes($numberOfCredits, $types); - $this->occupationalCredentialAwarded = $occupationalCredentialAwarded; + $this->numberOfCredits = $numberOfCredits; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|string */ - public function getCourseCode() + public function getCoursePrerequisites() { - return $this->courseCode; + return $this->coursePrerequisites; } /** - * @param string $courseCode + * @param \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|string $coursePrerequisites * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCourseCode($courseCode) + public function setCoursePrerequisites($coursePrerequisites) { $types = [ + "\OpenActive\Models\SchemaOrg\AlignmentObject", + "\OpenActive\Models\SchemaOrg\Course", "string", ]; - $courseCode = self::checkTypes($courseCode, $types); + $coursePrerequisites = self::checkTypes($coursePrerequisites, $types); - $this->courseCode = $courseCode; + $this->coursePrerequisites = $coursePrerequisites; } /** - * @return \OpenActive\Models\SchemaOrg\CourseInstance|string + * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - public function getHasCourseInstance() + public function getOccupationalCredentialAwarded() { - return $this->hasCourseInstance; + return $this->occupationalCredentialAwarded; } /** - * @param \OpenActive\Models\SchemaOrg\CourseInstance|string $hasCourseInstance + * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $occupationalCredentialAwarded * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasCourseInstance($hasCourseInstance) + public function setOccupationalCredentialAwarded($occupationalCredentialAwarded) { $types = [ - "\OpenActive\Models\SchemaOrg\CourseInstance", "string", + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", ]; - $hasCourseInstance = self::checkTypes($hasCourseInstance, $types); + $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types); - $this->hasCourseInstance = $hasCourseInstance; + $this->occupationalCredentialAwarded = $occupationalCredentialAwarded; } } diff --git a/src/Models/SchemaOrg/CourseInstance.php b/src/Models/SchemaOrg/CourseInstance.php index 5f6f9db7..30d0b90d 100644 --- a/src/Models/SchemaOrg/CourseInstance.php +++ b/src/Models/SchemaOrg/CourseInstance.php @@ -17,14 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ + "courseMode" => "courseMode", "instructor" => "instructor", "courseWorkload" => "courseWorkload", - "courseMode" => "courseMode", + "courseSchedule" => "courseSchedule", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or as a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous). + * + * + * @var string + */ + protected $courseMode; + /** * A person assigned to instruct or provide instructional assistance for the [[CourseInstance]]. * @@ -42,12 +51,36 @@ public static function fieldList() { protected $courseWorkload; /** - * The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or as a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous ). + * Represents the length and pace of a course, expressed as a [[Schedule]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Schedule|string */ - protected $courseMode; + protected $courseSchedule; + + /** + * @return string + */ + public function getCourseMode() + { + return $this->courseMode; + } + + /** + * @param string $courseMode + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCourseMode($courseMode) + { + $types = [ + "string", + ]; + + $courseMode = self::checkTypes($courseMode, $types); + + $this->courseMode = $courseMode; + } /** * @return \OpenActive\Models\SchemaOrg\Person|string @@ -99,27 +132,28 @@ public function setCourseWorkload($courseWorkload) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Schedule|string */ - public function getCourseMode() + public function getCourseSchedule() { - return $this->courseMode; + return $this->courseSchedule; } /** - * @param string $courseMode + * @param \OpenActive\Models\SchemaOrg\Schedule|string $courseSchedule * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCourseMode($courseMode) + public function setCourseSchedule($courseSchedule) { $types = [ + "\OpenActive\Models\SchemaOrg\Schedule", "string", ]; - $courseMode = self::checkTypes($courseMode, $types); + $courseSchedule = self::checkTypes($courseSchedule, $types); - $this->courseMode = $courseMode; + $this->courseSchedule = $courseSchedule; } } diff --git a/src/Models/SchemaOrg/CreativeWork.php b/src/Models/SchemaOrg/CreativeWork.php index bf378797..50973762 100644 --- a/src/Models/SchemaOrg/CreativeWork.php +++ b/src/Models/SchemaOrg/CreativeWork.php @@ -17,218 +17,274 @@ public static function getType() public static function fieldList() { $fields = [ - "teaches" => "teaches", - "educationalLevel" => "educationalLevel", - "abstract" => "abstract", - "creativeWorkStatus" => "creativeWorkStatus", "expires" => "expires", - "contentReferenceTime" => "contentReferenceTime", - "material" => "material", - "review" => "review", - "fileFormat" => "fileFormat", - "text" => "text", - "translator" => "translator", - "award" => "award", - "assesses" => "assesses", - "copyrightNotice" => "copyrightNotice", - "schemaVersion" => "schemaVersion", - "countryOfOrigin" => "countryOfOrigin", - "pattern" => "pattern", - "accountablePerson" => "accountablePerson", + "sdPublisher" => "sdPublisher", + "contentRating" => "contentRating", + "dateModified" => "dateModified", "funding" => "funding", + "correction" => "correction", + "interactivityType" => "interactivityType", + "editEIDR" => "editEIDR", + "isPartOf" => "isPartOf", + "abstract" => "abstract", + "accessMode" => "accessMode", + "timeRequired" => "timeRequired", + "about" => "about", + "contentLocation" => "contentLocation", + "author" => "author", + "materialExtent" => "materialExtent", + "learningResourceType" => "learningResourceType", + "discussionUrl" => "discussionUrl", + "assesses" => "assesses", + "spatial" => "spatial", + "text" => "text", + "editor" => "editor", "educationalUse" => "educationalUse", - "genre" => "genre", - "keywords" => "keywords", - "position" => "position", - "accessibilityHazard" => "accessibilityHazard", - "alternativeHeadline" => "alternativeHeadline", - "audience" => "audience", + "acquireLicensePage" => "acquireLicensePage", + "citation" => "citation", + "interactionStatistic" => "interactionStatistic", + "contentReferenceTime" => "contentReferenceTime", + "dateCreated" => "dateCreated", + "workTranslation" => "workTranslation", + "isFamilyFriendly" => "isFamilyFriendly", "offers" => "offers", - "locationCreated" => "locationCreated", - "associatedMedia" => "associatedMedia", - "materialExtent" => "materialExtent", - "mainEntity" => "mainEntity", - "copyrightHolder" => "copyrightHolder", - "awards" => "awards", - "contentLocation" => "contentLocation", + "alternativeHeadline" => "alternativeHeadline", + "genre" => "genre", + "thumbnail" => "thumbnail", + "thumbnailUrl" => "thumbnailUrl", + "funder" => "funder", "sdDatePublished" => "sdDatePublished", + "keywords" => "keywords", + "accessibilityControl" => "accessibilityControl", + "encodings" => "encodings", + "size" => "size", + "releasedEvent" => "releasedEvent", + "license" => "license", + "creator" => "creator", "producer" => "producer", - "spatial" => "spatial", - "publisher" => "publisher", - "sourceOrganization" => "sourceOrganization", - "character" => "character", - "funder" => "funder", - "exampleOfWork" => "exampleOfWork", - "usageInfo" => "usageInfo", - "provider" => "provider", - "sdPublisher" => "sdPublisher", + "locationCreated" => "locationCreated", + "fileFormat" => "fileFormat", + "audio" => "audio", + "educationalAlignment" => "educationalAlignment", "comment" => "comment", "accessibilityFeature" => "accessibilityFeature", - "publication" => "publication", + "character" => "character", + "interpretedAsClaim" => "interpretedAsClaim", + "translator" => "translator", + "pattern" => "pattern", + "publisher" => "publisher", + "copyrightNotice" => "copyrightNotice", + "video" => "video", + "accountablePerson" => "accountablePerson", + "award" => "award", + "usageInfo" => "usageInfo", + "reviews" => "reviews", + "countryOfOrigin" => "countryOfOrigin", + "maintainer" => "maintainer", + "headline" => "headline", + "publishingPrinciples" => "publishingPrinciples", "translationOfWork" => "translationOfWork", - "interactivityType" => "interactivityType", - "commentCount" => "commentCount", - "accessMode" => "accessMode", + "publication" => "publication", "aggregateRating" => "aggregateRating", - "timeRequired" => "timeRequired", + "position" => "position", + "digitalSourceType" => "digitalSourceType", + "accessibilitySummary" => "accessibilitySummary", + "recordedAt" => "recordedAt", + "sourceOrganization" => "sourceOrganization", + "sdLicense" => "sdLicense", "typicalAgeRange" => "typicalAgeRange", - "interactionStatistic" => "interactionStatistic", - "copyrightYear" => "copyrightYear", + "associatedMedia" => "associatedMedia", + "temporal" => "temporal", + "educationalLevel" => "educationalLevel", + "exampleOfWork" => "exampleOfWork", + "mentions" => "mentions", + "conditionsOfAccess" => "conditionsOfAccess", + "encodingFormat" => "encodingFormat", + "material" => "material", + "isBasedOnUrl" => "isBasedOnUrl", + "publisherImprint" => "publisherImprint", + "isAccessibleForFree" => "isAccessibleForFree", + "awards" => "awards", "isBasedOn" => "isBasedOn", + "accessibilityHazard" => "accessibilityHazard", + "copyrightYear" => "copyrightYear", + "encoding" => "encoding", + "spatialCoverage" => "spatialCoverage", + "sponsor" => "sponsor", "workExample" => "workExample", - "publishingPrinciples" => "publishingPrinciples", - "discussionUrl" => "discussionUrl", - "releasedEvent" => "releasedEvent", - "dateCreated" => "dateCreated", - "workTranslation" => "workTranslation", - "editor" => "editor", "creditText" => "creditText", - "recordedAt" => "recordedAt", - "editEIDR" => "editEIDR", - "author" => "author", - "dateModified" => "dateModified", - "sponsor" => "sponsor", - "accessibilitySummary" => "accessibilitySummary", - "encodingFormat" => "encodingFormat", - "maintainer" => "maintainer", - "educationalAlignment" => "educationalAlignment", - "acquireLicensePage" => "acquireLicensePage", - "isAccessibleForFree" => "isAccessibleForFree", "datePublished" => "datePublished", - "spatialCoverage" => "spatialCoverage", - "sdLicense" => "sdLicense", - "conditionsOfAccess" => "conditionsOfAccess", - "correction" => "correction", - "contentRating" => "contentRating", - "size" => "size", - "isPartOf" => "isPartOf", - "temporal" => "temporal", - "thumbnailUrl" => "thumbnailUrl", - "inLanguage" => "inLanguage", - "license" => "license", - "creator" => "creator", - "reviews" => "reviews", - "about" => "about", - "isFamilyFriendly" => "isFamilyFriendly", - "headline" => "headline", "accessibilityAPI" => "accessibilityAPI", - "publisherImprint" => "publisherImprint", - "isBasedOnUrl" => "isBasedOnUrl", - "encodings" => "encodings", - "interpretedAsClaim" => "interpretedAsClaim", - "accessibilityControl" => "accessibilityControl", - "citation" => "citation", + "mainEntity" => "mainEntity", + "teaches" => "teaches", + "provider" => "provider", + "temporalCoverage" => "temporalCoverage", + "schemaVersion" => "schemaVersion", + "copyrightHolder" => "copyrightHolder", + "commentCount" => "commentCount", "version" => "version", + "review" => "review", + "hasPart" => "hasPart", + "inLanguage" => "inLanguage", "archivedAt" => "archivedAt", - "learningResourceType" => "learningResourceType", - "encoding" => "encoding", - "audio" => "audio", - "mentions" => "mentions", + "audience" => "audience", + "creativeWorkStatus" => "creativeWorkStatus", "accessModeSufficient" => "accessModeSufficient", - "hasPart" => "hasPart", - "temporalCoverage" => "temporalCoverage", "contributor" => "contributor", - "video" => "video", ]; return array_merge(parent::fieldList(), $fields); } /** - * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. + * Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date, or a [[Certification]] the validity has expired. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var Date|DateTime|null */ - protected $teaches; + protected $expires; /** - * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. + * Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The + * [[sdPublisher]] property helps make such practices more explicit. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $educationalLevel; + protected $sdPublisher; /** - * An abstract is a short description that summarizes a [[CreativeWork]]. + * Official rating of a piece of content—for example, 'MPAA PG-13'. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\Rating */ - protected $abstract; + protected $contentRating; /** - * The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle. + * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var Date|DateTime|null */ - protected $creativeWorkStatus; + protected $dateModified; /** - * Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $expires; + protected $funding; /** - * The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event. + * Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document. * * - * @var DateTime|null + * @var string|\OpenActive\Models\SchemaOrg\CorrectionComment */ - protected $contentReferenceTime; + protected $correction; /** - * A material that something is made from, e.g. leather, wool, cotton, paper. + * The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'. * * - * @var string|\OpenActive\Models\SchemaOrg\Product + * @var string */ - protected $material; + protected $interactivityType; /** - * A review of the item. + * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television. + * + * For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3". + * + * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. + * * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var string */ - protected $review; + protected $editEIDR; /** - * Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, 'encoding' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry. + * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of. + * + * + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + */ + protected $isPartOf; + + /** + * An abstract is a short description that summarizes a [[CreativeWork]]. * * * @var string */ - protected $fileFormat; + protected $abstract; /** - * The textual content of this CreativeWork. + * The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary). * * * @var string */ - protected $text; + protected $accessMode; /** - * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event. + * Approximate or typical time it usually takes to work with or through the content of this work for the typical or target audience. + * + * + * @var DateInterval|string|null + */ + protected $timeRequired; + + /** + * The subject matter of the content. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|string + */ + protected $about; + + /** + * The location depicted or described in the content. For example, the location in a photograph or painting. + * + * + * @var \OpenActive\Models\SchemaOrg\Place|string + */ + protected $contentLocation; + + /** + * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably. * * * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $translator; + protected $author; /** - * An award won by or for this item. + * [object Object] + * + * + * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue + */ + protected $materialExtent; + + /** + * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + */ + protected $learningResourceType; + + /** + * A link to the page containing the comments of the CreativeWork. * * * @var string */ - protected $award; + protected $discussionUrl; /** * The item being described is intended to assess the competency or learning outcome defined by the referenced term. @@ -239,65 +295,110 @@ public static function fieldList() { protected $assesses; /** - * Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work. + * The "spatial" property can be used in cases when more specific properties + * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $copyrightNotice; + protected $spatial; /** - * Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to - * indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community. + * The textual content of this CreativeWork. * * * @var string */ - protected $schemaVersion; + protected $text; /** - * The country of origin of something, including products as well as creative works such as movie and TV content. - * - * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. - * - * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here. + * Specifies the Person who edited the CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $countryOfOrigin; + protected $editor; /** - * A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'. Values are typically expressed as text, although links to controlled value schemes are also supported. + * The purpose of a work in the context of education; for example, 'assignment', 'group work'. * * * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $pattern; + protected $educationalUse; /** - * Specifies the Person that is legally accountable for the CreativeWork. + * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $accountablePerson; + protected $acquireLicensePage; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc. * * - * @var \OpenActive\Models\SchemaOrg\Grant|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $funding; + protected $citation; + + /** + * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * + * + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string + */ + protected $interactionStatistic; + + /** + * The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event. + * + * + * @var DateTime|null + */ + protected $contentReferenceTime; + + /** + * The date on which the CreativeWork was created or the item was added to a DataFeed. + * + * + * @var Date|DateTime|null + */ + protected $dateCreated; + + /** + * A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo. + * + * + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + */ + protected $workTranslation; + + /** + * Indicates whether this content is family friendly. + * + * + * @var bool|null + */ + protected $isFamilyFriendly; + + /** + * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. + * + * + * + * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + */ + protected $offers; /** - * The purpose of a work in the context of education; for example, 'assignment', 'group work'. + * A secondary title of the CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string */ - protected $educationalUse; + protected $alternativeHeadline; /** * Genre of the creative work, broadcast channel or group. @@ -308,150 +409,150 @@ public static function fieldList() { protected $genre; /** - * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property. + * Thumbnail image for an image or video. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $keywords; + protected $thumbnail; /** - * The position of an item in a series or sequence of items. + * A thumbnail image relevant to the Thing. * * - * @var string|int|null + * @var string */ - protected $position; + protected $thumbnailUrl; /** - * A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary). + * A person or organization that supports (sponsors) something through some kind of financial contribution. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $accessibilityHazard; + protected $funder; /** - * A secondary title of the CreativeWork. + * Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]. * * - * @var string + * @var Date|null */ - protected $alternativeHeadline; + protected $sdDatePublished; /** - * An intended audience, i.e. a group for whom something was created. + * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $audience; + protected $keywords; /** - * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. - * + * Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary). * * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var string */ - protected $offers; + protected $accessibilityControl; /** - * The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork. + * A media object that encodes this CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $locationCreated; + protected $encodings; /** - * A media object that encodes this CreativeWork. This property is a synonym for encoding. + * A standardized size of a product or creative work, specified either through a simple textual string (for example 'XL', '32Wx34L'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. * * - * @var \OpenActive\Models\SchemaOrg\MediaObject|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - protected $associatedMedia; + protected $size; /** - * [object Object] + * The place and time the release was issued, expressed as a PublicationEvent. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string */ - protected $materialExtent; + protected $releasedEvent; /** - * Indicates the primary entity described in some page or other CreativeWork. + * A license document that applies to this content, typically indicated by URL. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $mainEntity; + protected $license; /** - * The party holding the legal copyright to the CreativeWork. + * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $copyrightHolder; + protected $creator; /** - * Awards won by or for this item. + * The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $awards; + protected $producer; /** - * The location depicted or described in the content. For example, the location in a photograph or painting. + * The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $contentLocation; + protected $locationCreated; /** - * Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]] + * Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, 'encoding' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry. * * - * @var Date|null + * @var string */ - protected $sdDatePublished; + protected $fileFormat; /** - * The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.). + * An embedded audio object. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\AudioObject|string */ - protected $producer; + protected $audio; /** - * The "spatial" property can be used in cases when more specific properties - * (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate. + * An alignment to an established educational framework. + * + * This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string */ - protected $spatial; + protected $educationalAlignment; /** - * The publisher of the creative work. + * Comments, typically from users. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Comment|string */ - protected $publisher; + protected $comment; /** - * The Organization on whose behalf the creator was working. + * Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary). * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $sourceOrganization; + protected $accessibilityFeature; /** * Fictional person connected with a creative work. @@ -462,274 +563,258 @@ public static function fieldList() { protected $character; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. - * - * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string - */ - protected $funder; - - /** - * A creative work that this work is an example/instance/realization/derivation of. - * - * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string - */ - protected $exampleOfWork; - - /** - * The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options. - * - * This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses. + * Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]]. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Claim|string */ - protected $usageInfo; + protected $interpretedAsClaim; /** - * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. + * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $provider; + protected $translator; /** - * Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The - * [[sdPublisher]] property helps make such practices more explicit. + * A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'. Values are typically expressed as text, although links to controlled value schemes are also supported. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $sdPublisher; + protected $pattern; /** - * Comments, typically from users. + * The publisher of the creative work. * * - * @var \OpenActive\Models\SchemaOrg\Comment|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $comment; + protected $publisher; /** - * Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary). + * Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work. * * * @var string */ - protected $accessibilityFeature; + protected $copyrightNotice; /** - * A publication event associated with the item. + * An embedded video object. * * - * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string + * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $publication; + protected $video; /** - * The work that this work has been translated from. e.g. 物种起源 is a translationOf “On the Origin of Species” + * Specifies the Person that is legally accountable for the CreativeWork. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $translationOfWork; + protected $accountablePerson; /** - * The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'. + * An award won by or for this item. * * * @var string */ - protected $interactivityType; + protected $award; /** - * The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere. + * The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options. + * + * This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses. * * - * @var int|null + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $commentCount; + protected $usageInfo; /** - * The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary). + * Review of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $accessMode; + protected $reviews; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * The country of origin of something, including products as well as creative works such as movie and TV content. + * + * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. + * + * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $aggregateRating; + protected $countryOfOrigin; /** - * Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. 'PT30M', 'PT1H25M'. + * A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work. + * * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $timeRequired; + protected $maintainer; /** - * The typical expected age range, e.g. '7-9', '11-'. + * Headline of the article. * * * @var string */ - protected $typicalAgeRange; + protected $headline; /** - * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]]. + * + * While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. + * * * - * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $interactionStatistic; + protected $publishingPrinciples; /** - * The year during which the claimed copyright for the CreativeWork was first asserted. + * The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $copyrightYear; + protected $translationOfWork; /** - * A resource from which this work is derived or from which it is a modification or adaption. + * A publication event associated with the item. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product + * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string */ - protected $isBasedOn; + protected $publication; /** - * Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $workExample; + protected $aggregateRating; /** - * The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]]. - * - * While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. - * + * The position of an item in a series or sequence of items. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var string|int|null */ - protected $publishingPrinciples; + protected $position; /** - * A link to the page containing the comments of the CreativeWork. + * Indicates an IPTCDigitalSourceEnumeration code indicating the nature of the digital source(s) for some [[CreativeWork]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string */ - protected $discussionUrl; + protected $digitalSourceType; /** - * The place and time the release was issued, expressed as a PublicationEvent. + * A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed". * * - * @var \OpenActive\Models\SchemaOrg\PublicationEvent|string + * @var string */ - protected $releasedEvent; + protected $accessibilitySummary; /** - * The date on which the CreativeWork was created or the item was added to a DataFeed. + * The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $dateCreated; + protected $recordedAt; /** - * A work that is a translation of the content of this work. e.g. 西遊記 has an English workTranslation “Journey to the West”,a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo. + * The Organization on whose behalf the creator was working. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $workTranslation; + protected $sourceOrganization; /** - * Specifies the Person who edited the CreativeWork. + * A license document that applies to this structured data, typically indicated by URL. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $editor; + protected $sdLicense; /** - * Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work. + * The typical expected age range, e.g. '7-9', '11-'. * * * @var string */ - protected $creditText; + protected $typicalAgeRange; /** - * The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event. + * A media object that encodes this CreativeWork. This property is a synonym for encoding. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $recordedAt; + protected $associatedMedia; /** - * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television. - * - * For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J", has several edits e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3". - * - * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. - * + * The "temporal" property can be used in cases where more specific properties + * (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate. * * - * @var string + * @var DateTime|string|null */ - protected $editEIDR; + protected $temporal; /** - * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably. + * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $author; + protected $educationalLevel; /** - * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed. + * A creative work that this work is an example/instance/realization/derivation of. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $dateModified; + protected $exampleOfWork; /** - * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event. + * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $sponsor; + protected $mentions; /** - * A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed." + * Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language.\n\nFor example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". * * * @var string */ - protected $accessibilitySummary; + protected $conditionsOfAccess; /** - * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)) e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.). + * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc. * * In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information. * @@ -741,31 +826,28 @@ public static function fieldList() { protected $encodingFormat; /** - * A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work. - * + * A material that something is made from, e.g. leather, wool, cotton, paper. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string|\OpenActive\Models\SchemaOrg\Product */ - protected $maintainer; + protected $material; /** - * An alignment to an established educational framework. - * - * This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency. + * A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html. * * - * @var \OpenActive\Models\SchemaOrg\AlignmentObject|string + * @var string|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $educationalAlignment; + protected $isBasedOnUrl; /** - * Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item. + * The publishing division which published the comic. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $acquireLicensePage; + protected $publisherImprint; /** * A flag to signal that the item, event, or place is accessible for free. @@ -776,207 +858,187 @@ public static function fieldList() { protected $isAccessibleForFree; /** - * Date of first broadcast/publication. - * - * - * @var Date|DateTime|null - */ - protected $datePublished; - - /** - * The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of - * contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates - * areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York. + * Awards won by or for this item. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $spatialCoverage; + protected $awards; /** - * A license document that applies to this structured data, typically indicated by URL. + * A resource from which this work is derived or from which it is a modification or adaptation. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string */ - protected $sdLicense; + protected $isBasedOn; /** - * Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language.\n\nFor example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". + * A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary). * * * @var string */ - protected $conditionsOfAccess; + protected $accessibilityHazard; /** - * Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document. + * The year during which the claimed copyright for the CreativeWork was first asserted. * * - * @var string|\OpenActive\Models\SchemaOrg\CorrectionComment + * @var Number|null */ - protected $correction; + protected $copyrightYear; /** - * Official rating of a piece of content—for example,'MPAA PG-13'. + * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia. * * - * @var string|\OpenActive\Models\SchemaOrg\Rating + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $contentRating; + protected $encoding; /** - * A standardized size of a product or creative work, specified either through a simple textual string (for example 'XL', '32Wx34L'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. + * The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of + * contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates + * areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $size; + protected $spatialCoverage; /** - * Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of. + * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $isPartOf; + protected $sponsor; /** - * The "temporal" property can be used in cases where more specific properties - * (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate. + * Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book. * * - * @var DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $temporal; + protected $workExample; /** - * A thumbnail image relevant to the Thing. + * Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work. * * * @var string */ - protected $thumbnailUrl; - - /** - * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. - * - * - * @var string|\OpenActive\Models\SchemaOrg\Language - */ - protected $inLanguage; - - /** - * A license document that applies to this content, typically indicated by URL. - * - * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork - */ - protected $license; + protected $creditText; /** - * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. + * Date of first publication or broadcast. For example the date a [[CreativeWork]] was broadcast or a [[Certification]] was issued. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var Date|DateTime|null */ - protected $creator; + protected $datePublished; /** - * Review of the item. + * Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary). * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var string */ - protected $reviews; + protected $accessibilityAPI; /** - * The subject matter of the content. + * Indicates the primary entity described in some page or other CreativeWork. * * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $about; + protected $mainEntity; /** - * Indicates whether this content is family friendly. + * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $isFamilyFriendly; + protected $teaches; /** - * Headline of the article. + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $headline; + protected $provider; /** - * Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary). + * The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In + * the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL. + * Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". + * + * Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated. * * - * @var string + * @var DateTime|string|null */ - protected $accessibilityAPI; + protected $temporalCoverage; /** - * The publishing division which published the comic. + * Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to + * indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $publisherImprint; + protected $schemaVersion; /** - * A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html. + * The party holding the legal copyright to the CreativeWork. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $isBasedOnUrl; + protected $copyrightHolder; /** - * A media object that encodes this CreativeWork. + * The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere. * * - * @var \OpenActive\Models\SchemaOrg\MediaObject|string + * @var int|null */ - protected $encodings; + protected $commentCount; /** - * Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]]. + * The version of the CreativeWork embodied by a specified resource. * * - * @var \OpenActive\Models\SchemaOrg\Claim|string + * @var string|Number|null */ - protected $interpretedAsClaim; + protected $version; /** - * Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary). + * A review of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $accessibilityControl; + protected $review; /** - * A citation or reference to another creative work, such as another publication, web page, scholarly article, etc. + * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense). * * * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $citation; + protected $hasPart; /** - * The version of the CreativeWork embodied by a specified resource. + * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. * * - * @var string|Number|null + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $version; + protected $inLanguage; /** * Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content. @@ -987,923 +1049,934 @@ public static function fieldList() { protected $archivedAt; /** - * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. + * An intended audience, i.e. a group for whom something was created. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $learningResourceType; + protected $audience; /** - * A media object that encodes this CreativeWork. This property is a synonym for associatedMedia. + * The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle. * * - * @var \OpenActive\Models\SchemaOrg\MediaObject|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $encoding; + protected $creativeWorkStatus; /** - * An embedded audio object. + * A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary). * * - * @var \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string + * @var \OpenActive\Models\SchemaOrg\ItemList|string */ - protected $audio; + protected $accessModeSufficient; /** - * Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept. + * A secondary contributor to the CreativeWork or Event. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $mentions; + protected $contributor; /** - * A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary). - * - * - * @var \OpenActive\Models\SchemaOrg\ItemList|string + * @return Date|DateTime|null */ - protected $accessModeSufficient; + public function getExpires() + { + return $this->expires; + } + + /** + * @param Date|DateTime|null $expires + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setExpires($expires) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $expires = self::checkTypes($expires, $types); + + $this->expires = $expires; + } /** - * Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense). - * - * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $hasPart; + public function getSdPublisher() + { + return $this->sdPublisher; + } /** - * The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In - * the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content e.g. ScholarlyArticle, Book, TVSeries or TVEpisode may indicate their temporalCoverage in broader terms - textually or via well-known URL. - * Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". - * - * Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated. - * - * - * @var DateTime|string|null + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $sdPublisher + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $temporalCoverage; + public function setSdPublisher($sdPublisher) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; - /** - * A secondary contributor to the CreativeWork or Event. - * - * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string - */ - protected $contributor; + $sdPublisher = self::checkTypes($sdPublisher, $types); - /** - * An embedded video object. - * - * - * @var \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string - */ - protected $video; + $this->sdPublisher = $sdPublisher; + } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string|\OpenActive\Models\SchemaOrg\Rating */ - public function getTeaches() + public function getContentRating() { - return $this->teaches; + return $this->contentRating; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches + * @param string|\OpenActive\Models\SchemaOrg\Rating $contentRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTeaches($teaches) + public function setContentRating($contentRating) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", + "\OpenActive\Models\SchemaOrg\Rating", ]; - $teaches = self::checkTypes($teaches, $types); + $contentRating = self::checkTypes($contentRating, $types); - $this->teaches = $teaches; + $this->contentRating = $contentRating; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return Date|DateTime|null */ - public function getEducationalLevel() + public function getDateModified() { - return $this->educationalLevel; + return $this->dateModified; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel + * @param Date|DateTime|null $dateModified * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalLevel($educationalLevel) + public function setDateModified($dateModified) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "Date", + "DateTime", + "null", ]; - $educationalLevel = self::checkTypes($educationalLevel, $types); + $dateModified = self::checkTypes($dateModified, $types); - $this->educationalLevel = $educationalLevel; + $this->dateModified = $dateModified; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - public function getAbstract() + public function getFunding() { - return $this->abstract; + return $this->funding; } /** - * @param string $abstract + * @param \OpenActive\Models\SchemaOrg\Grant|string $funding * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAbstract($abstract) + public function setFunding($funding) { $types = [ + "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $abstract = self::checkTypes($abstract, $types); + $funding = self::checkTypes($funding, $types); - $this->abstract = $abstract; + $this->funding = $funding; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return string|\OpenActive\Models\SchemaOrg\CorrectionComment */ - public function getCreativeWorkStatus() + public function getCorrection() { - return $this->creativeWorkStatus; + return $this->correction; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $creativeWorkStatus + * @param string|\OpenActive\Models\SchemaOrg\CorrectionComment $correction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCreativeWorkStatus($creativeWorkStatus) + public function setCorrection($correction) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\CorrectionComment", ]; - $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types); + $correction = self::checkTypes($correction, $types); - $this->creativeWorkStatus = $creativeWorkStatus; + $this->correction = $correction; } /** - * @return Date|null + * @return string */ - public function getExpires() + public function getInteractivityType() { - return $this->expires; + return $this->interactivityType; } /** - * @param Date|null $expires + * @param string $interactivityType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpires($expires) + public function setInteractivityType($interactivityType) { $types = [ - "Date", - "null", + "string", ]; - $expires = self::checkTypes($expires, $types); + $interactivityType = self::checkTypes($interactivityType, $types); - $this->expires = $expires; + $this->interactivityType = $interactivityType; } /** - * @return DateTime|null + * @return string */ - public function getContentReferenceTime() + public function getEditEIDR() { - return $this->contentReferenceTime; + return $this->editEIDR; } /** - * @param DateTime|null $contentReferenceTime + * @param string $editEIDR * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContentReferenceTime($contentReferenceTime) + public function setEditEIDR($editEIDR) { $types = [ - "DateTime", - "null", + "string", ]; - $contentReferenceTime = self::checkTypes($contentReferenceTime, $types); + $editEIDR = self::checkTypes($editEIDR, $types); - $this->contentReferenceTime = $contentReferenceTime; + $this->editEIDR = $editEIDR; } /** - * @return string|\OpenActive\Models\SchemaOrg\Product + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getMaterial() + public function getIsPartOf() { - return $this->material; + return $this->isPartOf; } /** - * @param string|\OpenActive\Models\SchemaOrg\Product $material + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $isPartOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaterial($material) + public function setIsPartOf($isPartOf) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", - "\OpenActive\Models\SchemaOrg\Product", ]; - $material = self::checkTypes($material, $types); + $isPartOf = self::checkTypes($isPartOf, $types); - $this->material = $material; + $this->isPartOf = $isPartOf; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string */ - public function getReview() + public function getAbstract() { - return $this->review; + return $this->abstract; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param string $abstract * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setAbstract($abstract) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $review = self::checkTypes($review, $types); + $abstract = self::checkTypes($abstract, $types); - $this->review = $review; + $this->abstract = $abstract; } /** * @return string */ - public function getFileFormat() + public function getAccessMode() { - return $this->fileFormat; + return $this->accessMode; } /** - * @param string $fileFormat + * @param string $accessMode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFileFormat($fileFormat) + public function setAccessMode($accessMode) { $types = [ "string", ]; - $fileFormat = self::checkTypes($fileFormat, $types); + $accessMode = self::checkTypes($accessMode, $types); - $this->fileFormat = $fileFormat; + $this->accessMode = $accessMode; } /** - * @return string + * @return DateInterval|string|null */ - public function getText() + public function getTimeRequired() { - return $this->text; + return $this->timeRequired; } /** - * @param string $text + * @param DateInterval|string|null $timeRequired * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setText($text) + public function setTimeRequired($timeRequired) { $types = [ + "DateInterval", "string", + "null", ]; - $text = self::checkTypes($text, $types); + $timeRequired = self::checkTypes($timeRequired, $types); - $this->text = $text; + $this->timeRequired = $timeRequired; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getTranslator() + public function getAbout() { - return $this->translator; + return $this->about; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator + * @param \OpenActive\Models\SchemaOrg\Thing|string $about * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTranslator($translator) + public function setAbout($about) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $translator = self::checkTypes($translator, $types); + $about = self::checkTypes($about, $types); - $this->translator = $translator; + $this->about = $about; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getAward() + public function getContentLocation() { - return $this->award; + return $this->contentLocation; } /** - * @param string $award + * @param \OpenActive\Models\SchemaOrg\Place|string $contentLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAward($award) + public function setContentLocation($contentLocation) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $award = self::checkTypes($award, $types); + $contentLocation = self::checkTypes($contentLocation, $types); - $this->award = $award; + $this->contentLocation = $contentLocation; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getAssesses() + public function getAuthor() { - return $this->assesses; + return $this->author; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $author * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssesses($assesses) + public function setAuthor($author) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $assesses = self::checkTypes($assesses, $types); + $author = self::checkTypes($author, $types); - $this->assesses = $assesses; + $this->author = $author; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - public function getCopyrightNotice() + public function getMaterialExtent() { - return $this->copyrightNotice; + return $this->materialExtent; } /** - * @param string $copyrightNotice + * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $materialExtent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCopyrightNotice($copyrightNotice) + public function setMaterialExtent($materialExtent) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $copyrightNotice = self::checkTypes($copyrightNotice, $types); + $materialExtent = self::checkTypes($materialExtent, $types); - $this->copyrightNotice = $copyrightNotice; + $this->materialExtent = $materialExtent; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getSchemaVersion() + public function getLearningResourceType() { - return $this->schemaVersion; + return $this->learningResourceType; } /** - * @param string $schemaVersion + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSchemaVersion($schemaVersion) + public function setLearningResourceType($learningResourceType) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $schemaVersion = self::checkTypes($schemaVersion, $types); + $learningResourceType = self::checkTypes($learningResourceType, $types); - $this->schemaVersion = $schemaVersion; + $this->learningResourceType = $learningResourceType; } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string */ - public function getCountryOfOrigin() + public function getDiscussionUrl() { - return $this->countryOfOrigin; + return $this->discussionUrl; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @param string $discussionUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfOrigin($countryOfOrigin) + public function setDiscussionUrl($discussionUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $discussionUrl = self::checkTypes($discussionUrl, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->discussionUrl = $discussionUrl; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getPattern() + public function getAssesses() { - return $this->pattern; + return $this->assesses; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPattern($pattern) + public function setAssesses($assesses) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $pattern = self::checkTypes($pattern, $types); + $assesses = self::checkTypes($assesses, $types); - $this->pattern = $pattern; + $this->assesses = $assesses; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getAccountablePerson() + public function getSpatial() { - return $this->accountablePerson; + return $this->spatial; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $accountablePerson + * @param \OpenActive\Models\SchemaOrg\Place|string $spatial * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccountablePerson($accountablePerson) + public function setSpatial($spatial) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $accountablePerson = self::checkTypes($accountablePerson, $types); + $spatial = self::checkTypes($spatial, $types); - $this->accountablePerson = $accountablePerson; + $this->spatial = $spatial; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return string */ - public function getFunding() + public function getText() { - return $this->funding; + return $this->text; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @param string $text * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunding($funding) + public function setText($text) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $funding = self::checkTypes($funding, $types); + $text = self::checkTypes($text, $types); - $this->funding = $funding; + $this->text = $text; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getEducationalUse() + public function getEditor() { - return $this->educationalUse; + return $this->editor; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse + * @param \OpenActive\Models\SchemaOrg\Person|string $editor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalUse($educationalUse) + public function setEditor($editor) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $educationalUse = self::checkTypes($educationalUse, $types); + $editor = self::checkTypes($editor, $types); - $this->educationalUse = $educationalUse; + $this->editor = $editor; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getGenre() + public function getEducationalUse() { - return $this->genre; + return $this->educationalUse; } /** - * @param string $genre + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $educationalUse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGenre($genre) + public function setEducationalUse($educationalUse) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $genre = self::checkTypes($genre, $types); + $educationalUse = self::checkTypes($educationalUse, $types); - $this->genre = $genre; + $this->educationalUse = $educationalUse; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getKeywords() + public function getAcquireLicensePage() { - return $this->keywords; + return $this->acquireLicensePage; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $acquireLicensePage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setAcquireLicensePage($acquireLicensePage) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $acquireLicensePage = self::checkTypes($acquireLicensePage, $types); - $this->keywords = $keywords; + $this->acquireLicensePage = $acquireLicensePage; } /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getPosition() + public function getCitation() { - return $this->position; + return $this->citation; } /** - * @param string|int|null $position + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $citation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPosition($position) + public function setCitation($citation) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", - "int", - "null", ]; - $position = self::checkTypes($position, $types); + $citation = self::checkTypes($citation, $types); - $this->position = $position; + $this->citation = $citation; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getAccessibilityHazard() + public function getInteractionStatistic() { - return $this->accessibilityHazard; + return $this->interactionStatistic; } /** - * @param string $accessibilityHazard + * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessibilityHazard($accessibilityHazard) + public function setInteractionStatistic($interactionStatistic) { $types = [ + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $accessibilityHazard = self::checkTypes($accessibilityHazard, $types); + $interactionStatistic = self::checkTypes($interactionStatistic, $types); - $this->accessibilityHazard = $accessibilityHazard; + $this->interactionStatistic = $interactionStatistic; } /** - * @return string + * @return DateTime|null */ - public function getAlternativeHeadline() + public function getContentReferenceTime() { - return $this->alternativeHeadline; + return $this->contentReferenceTime; } /** - * @param string $alternativeHeadline + * @param DateTime|null $contentReferenceTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlternativeHeadline($alternativeHeadline) + public function setContentReferenceTime($contentReferenceTime) { $types = [ - "string", + "DateTime", + "null", ]; - $alternativeHeadline = self::checkTypes($alternativeHeadline, $types); + $contentReferenceTime = self::checkTypes($contentReferenceTime, $types); - $this->alternativeHeadline = $alternativeHeadline; + $this->contentReferenceTime = $contentReferenceTime; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return Date|DateTime|null */ - public function getAudience() + public function getDateCreated() { - return $this->audience; + return $this->dateCreated; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param Date|DateTime|null $dateCreated * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setDateCreated($dateCreated) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", - "string", + "Date", + "DateTime", + "null", ]; - $audience = self::checkTypes($audience, $types); + $dateCreated = self::checkTypes($dateCreated, $types); - $this->audience = $audience; + $this->dateCreated = $dateCreated; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getOffers() + public function getWorkTranslation() { - return $this->offers; + return $this->workTranslation; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workTranslation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setWorkTranslation($workTranslation) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $offers = self::checkTypes($offers, $types); + $workTranslation = self::checkTypes($workTranslation, $types); - $this->offers = $offers; + $this->workTranslation = $workTranslation; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return bool|null */ - public function getLocationCreated() + public function getIsFamilyFriendly() { - return $this->locationCreated; + return $this->isFamilyFriendly; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $locationCreated + * @param bool|null $isFamilyFriendly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLocationCreated($locationCreated) + public function setIsFamilyFriendly($isFamilyFriendly) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", + "bool", + "null", ]; - $locationCreated = self::checkTypes($locationCreated, $types); + $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); - $this->locationCreated = $locationCreated; + $this->isFamilyFriendly = $isFamilyFriendly; } /** - * @return \OpenActive\Models\SchemaOrg\MediaObject|string + * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - public function getAssociatedMedia() + public function getOffers() { - return $this->associatedMedia; + return $this->offers; } /** - * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia + * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedMedia($associatedMedia) + public function setOffers($offers) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaObject", + "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Demand", "string", ]; - $associatedMedia = self::checkTypes($associatedMedia, $types); + $offers = self::checkTypes($offers, $types); - $this->associatedMedia = $associatedMedia; + $this->offers = $offers; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getMaterialExtent() + public function getAlternativeHeadline() { - return $this->materialExtent; + return $this->alternativeHeadline; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $materialExtent + * @param string $alternativeHeadline * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaterialExtent($materialExtent) + public function setAlternativeHeadline($alternativeHeadline) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $materialExtent = self::checkTypes($materialExtent, $types); + $alternativeHeadline = self::checkTypes($alternativeHeadline, $types); - $this->materialExtent = $materialExtent; + $this->alternativeHeadline = $alternativeHeadline; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return string */ - public function getMainEntity() + public function getGenre() { - return $this->mainEntity; + return $this->genre; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $mainEntity + * @param string $genre * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMainEntity($mainEntity) + public function setGenre($genre) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $mainEntity = self::checkTypes($mainEntity, $types); + $genre = self::checkTypes($genre, $types); - $this->mainEntity = $mainEntity; + $this->genre = $genre; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getCopyrightHolder() + public function getThumbnail() { - return $this->copyrightHolder; + return $this->thumbnail; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $copyrightHolder + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCopyrightHolder($copyrightHolder) + public function setThumbnail($thumbnail) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $copyrightHolder = self::checkTypes($copyrightHolder, $types); + $thumbnail = self::checkTypes($thumbnail, $types); - $this->copyrightHolder = $copyrightHolder; + $this->thumbnail = $thumbnail; } /** * @return string */ - public function getAwards() + public function getThumbnailUrl() { - return $this->awards; + return $this->thumbnailUrl; } /** - * @param string $awards + * @param string $thumbnailUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setThumbnailUrl($thumbnailUrl) { $types = [ "string", ]; - $awards = self::checkTypes($awards, $types); + $thumbnailUrl = self::checkTypes($thumbnailUrl, $types); - $this->awards = $awards; + $this->thumbnailUrl = $thumbnailUrl; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getContentLocation() + public function getFunder() { - return $this->contentLocation; + return $this->funder; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $contentLocation + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContentLocation($contentLocation) + public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $contentLocation = self::checkTypes($contentLocation, $types); + $funder = self::checkTypes($funder, $types); - $this->contentLocation = $contentLocation; + $this->funder = $funder; } /** @@ -1932,1938 +2005,1934 @@ public function setSdDatePublished($sdDatePublished) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getProducer() + public function getKeywords() { - return $this->producer; + return $this->keywords; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $producer + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProducer($producer) + public function setKeywords($keywords) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $producer = self::checkTypes($producer, $types); + $keywords = self::checkTypes($keywords, $types); - $this->producer = $producer; + $this->keywords = $keywords; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getSpatial() + public function getAccessibilityControl() { - return $this->spatial; + return $this->accessibilityControl; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $spatial + * @param string $accessibilityControl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpatial($spatial) + public function setAccessibilityControl($accessibilityControl) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $spatial = self::checkTypes($spatial, $types); + $accessibilityControl = self::checkTypes($accessibilityControl, $types); - $this->spatial = $spatial; + $this->accessibilityControl = $accessibilityControl; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getPublisher() + public function getEncodings() { - return $this->publisher; + return $this->encodings; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $publisher + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encodings * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublisher($publisher) + public function setEncodings($encodings) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $publisher = self::checkTypes($publisher, $types); + $encodings = self::checkTypes($encodings, $types); - $this->publisher = $publisher; + $this->encodings = $encodings; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - public function getSourceOrganization() + public function getSize() { - return $this->sourceOrganization; + return $this->size; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $sourceOrganization + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\QuantitativeValue $size * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSourceOrganization($sourceOrganization) + public function setSize($size) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\SizeSpecification", "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $sourceOrganization = self::checkTypes($sourceOrganization, $types); + $size = self::checkTypes($size, $types); - $this->sourceOrganization = $sourceOrganization; + $this->size = $size; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string */ - public function getCharacter() + public function getReleasedEvent() { - return $this->character; + return $this->releasedEvent; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $character + * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $releasedEvent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCharacter($character) + public function setReleasedEvent($releasedEvent) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\PublicationEvent", "string", ]; - $character = self::checkTypes($character, $types); + $releasedEvent = self::checkTypes($releasedEvent, $types); - $this->character = $character; + $this->releasedEvent = $releasedEvent; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getFunder() + public function getLicense() { - return $this->funder; + return $this->license; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $license * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunder($funder) + public function setLicense($license) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $funder = self::checkTypes($funder, $types); + $license = self::checkTypes($license, $types); - $this->funder = $funder; + $this->license = $license; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getExampleOfWork() + public function getCreator() { - return $this->exampleOfWork; + return $this->creator; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $exampleOfWork + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $creator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExampleOfWork($exampleOfWork) + public function setCreator($creator) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $exampleOfWork = self::checkTypes($exampleOfWork, $types); + $creator = self::checkTypes($creator, $types); - $this->exampleOfWork = $exampleOfWork; + $this->creator = $creator; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getUsageInfo() + public function getProducer() { - return $this->usageInfo; + return $this->producer; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $usageInfo + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $producer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUsageInfo($usageInfo) + public function setProducer($producer) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $usageInfo = self::checkTypes($usageInfo, $types); + $producer = self::checkTypes($producer, $types); - $this->usageInfo = $usageInfo; + $this->producer = $producer; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getProvider() + public function getLocationCreated() { - return $this->provider; + return $this->locationCreated; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param \OpenActive\Models\SchemaOrg\Place|string $locationCreated * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setLocationCreated($locationCreated) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $provider = self::checkTypes($provider, $types); + $locationCreated = self::checkTypes($locationCreated, $types); - $this->provider = $provider; + $this->locationCreated = $locationCreated; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getSdPublisher() + public function getFileFormat() { - return $this->sdPublisher; + return $this->fileFormat; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sdPublisher + * @param string $fileFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSdPublisher($sdPublisher) + public function setFileFormat($fileFormat) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $sdPublisher = self::checkTypes($sdPublisher, $types); + $fileFormat = self::checkTypes($fileFormat, $types); - $this->sdPublisher = $sdPublisher; + $this->fileFormat = $fileFormat; } /** - * @return \OpenActive\Models\SchemaOrg\Comment|string + * @return \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\AudioObject|string */ - public function getComment() + public function getAudio() { - return $this->comment; + return $this->audio; } /** - * @param \OpenActive\Models\SchemaOrg\Comment|string $comment + * @param \OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\AudioObject|string $audio * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setComment($comment) + public function setAudio($audio) { $types = [ - "\OpenActive\Models\SchemaOrg\Comment", + "\OpenActive\Models\SchemaOrg\MusicRecording", + "\OpenActive\Models\SchemaOrg\Clip", + "\OpenActive\Models\SchemaOrg\AudioObject", "string", ]; - $comment = self::checkTypes($comment, $types); + $audio = self::checkTypes($audio, $types); - $this->comment = $comment; + $this->audio = $audio; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string */ - public function getAccessibilityFeature() + public function getEducationalAlignment() { - return $this->accessibilityFeature; + return $this->educationalAlignment; } /** - * @param string $accessibilityFeature + * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessibilityFeature($accessibilityFeature) + public function setEducationalAlignment($educationalAlignment) { $types = [ + "\OpenActive\Models\SchemaOrg\AlignmentObject", "string", ]; - $accessibilityFeature = self::checkTypes($accessibilityFeature, $types); + $educationalAlignment = self::checkTypes($educationalAlignment, $types); - $this->accessibilityFeature = $accessibilityFeature; + $this->educationalAlignment = $educationalAlignment; } /** - * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string + * @return \OpenActive\Models\SchemaOrg\Comment|string */ - public function getPublication() + public function getComment() { - return $this->publication; + return $this->comment; } /** - * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $publication + * @param \OpenActive\Models\SchemaOrg\Comment|string $comment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublication($publication) + public function setComment($comment) { $types = [ - "\OpenActive\Models\SchemaOrg\PublicationEvent", + "\OpenActive\Models\SchemaOrg\Comment", "string", ]; - $publication = self::checkTypes($publication, $types); + $comment = self::checkTypes($comment, $types); - $this->publication = $publication; + $this->comment = $comment; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getTranslationOfWork() + public function getAccessibilityFeature() { - return $this->translationOfWork; + return $this->accessibilityFeature; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $translationOfWork + * @param string $accessibilityFeature * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTranslationOfWork($translationOfWork) + public function setAccessibilityFeature($accessibilityFeature) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $translationOfWork = self::checkTypes($translationOfWork, $types); + $accessibilityFeature = self::checkTypes($accessibilityFeature, $types); - $this->translationOfWork = $translationOfWork; + $this->accessibilityFeature = $accessibilityFeature; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getInteractivityType() + public function getCharacter() { - return $this->interactivityType; + return $this->character; } /** - * @param string $interactivityType + * @param \OpenActive\Models\SchemaOrg\Person|string $character * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractivityType($interactivityType) + public function setCharacter($character) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $interactivityType = self::checkTypes($interactivityType, $types); + $character = self::checkTypes($character, $types); - $this->interactivityType = $interactivityType; + $this->character = $character; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Claim|string */ - public function getCommentCount() + public function getInterpretedAsClaim() { - return $this->commentCount; + return $this->interpretedAsClaim; } /** - * @param int|null $commentCount + * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCommentCount($commentCount) + public function setInterpretedAsClaim($interpretedAsClaim) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Claim", + "string", ]; - $commentCount = self::checkTypes($commentCount, $types); + $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types); - $this->commentCount = $commentCount; + $this->interpretedAsClaim = $interpretedAsClaim; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getAccessMode() + public function getTranslator() { - return $this->accessMode; + return $this->translator; } /** - * @param string $accessMode + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessMode($accessMode) + public function setTranslator($translator) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $accessMode = self::checkTypes($accessMode, $types); + $translator = self::checkTypes($translator, $types); - $this->accessMode = $accessMode; + $this->translator = $translator; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getAggregateRating() + public function getPattern() { - return $this->aggregateRating; + return $this->pattern; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setPattern($pattern) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $pattern = self::checkTypes($pattern, $types); - $this->aggregateRating = $aggregateRating; + $this->pattern = $pattern; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getTimeRequired() + public function getPublisher() { - return $this->timeRequired; + return $this->publisher; } /** - * @param DateInterval|string|null $timeRequired + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $publisher * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTimeRequired($timeRequired) + public function setPublisher($publisher) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "null", ]; - $timeRequired = self::checkTypes($timeRequired, $types); + $publisher = self::checkTypes($publisher, $types); - $this->timeRequired = $timeRequired; + $this->publisher = $publisher; } /** * @return string */ - public function getTypicalAgeRange() + public function getCopyrightNotice() { - return $this->typicalAgeRange; + return $this->copyrightNotice; } /** - * @param string $typicalAgeRange + * @param string $copyrightNotice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypicalAgeRange($typicalAgeRange) + public function setCopyrightNotice($copyrightNotice) { $types = [ "string", ]; - $typicalAgeRange = self::checkTypes($typicalAgeRange, $types); + $copyrightNotice = self::checkTypes($copyrightNotice, $types); - $this->typicalAgeRange = $typicalAgeRange; + $this->copyrightNotice = $copyrightNotice; } /** - * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getInteractionStatistic() + public function getVideo() { - return $this->interactionStatistic; + return $this->video; } /** - * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic + * @param \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string $video * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionStatistic($interactionStatistic) + public function setVideo($video) { $types = [ - "\OpenActive\Models\SchemaOrg\InteractionCounter", + "\OpenActive\Models\SchemaOrg\Clip", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $interactionStatistic = self::checkTypes($interactionStatistic, $types); + $video = self::checkTypes($video, $types); - $this->interactionStatistic = $interactionStatistic; + $this->video = $video; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getCopyrightYear() + public function getAccountablePerson() { - return $this->copyrightYear; + return $this->accountablePerson; } /** - * @param Number|null $copyrightYear + * @param \OpenActive\Models\SchemaOrg\Person|string $accountablePerson * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCopyrightYear($copyrightYear) + public function setAccountablePerson($accountablePerson) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $copyrightYear = self::checkTypes($copyrightYear, $types); + $accountablePerson = self::checkTypes($accountablePerson, $types); - $this->copyrightYear = $copyrightYear; + $this->accountablePerson = $accountablePerson; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product + * @return string */ - public function getIsBasedOn() + public function getAward() { - return $this->isBasedOn; + return $this->award; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\Product $isBasedOn + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsBasedOn($isBasedOn) + public function setAward($award) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", - "\OpenActive\Models\SchemaOrg\Product", ]; - $isBasedOn = self::checkTypes($isBasedOn, $types); + $award = self::checkTypes($award, $types); - $this->isBasedOn = $isBasedOn; + $this->award = $award; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getWorkExample() + public function getUsageInfo() { - return $this->workExample; + return $this->usageInfo; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workExample + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $usageInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkExample($workExample) + public function setUsageInfo($usageInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $workExample = self::checkTypes($workExample, $types); + $usageInfo = self::checkTypes($usageInfo, $types); - $this->workExample = $workExample; + $this->usageInfo = $usageInfo; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getPublishingPrinciples() + public function getReviews() { - return $this->publishingPrinciples; + return $this->reviews; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples + * @param \OpenActive\Models\SchemaOrg\Review|string $reviews * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublishingPrinciples($publishingPrinciples) + public function setReviews($reviews) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); + $reviews = self::checkTypes($reviews, $types); - $this->publishingPrinciples = $publishingPrinciples; + $this->reviews = $reviews; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getDiscussionUrl() + public function getCountryOfOrigin() { - return $this->discussionUrl; + return $this->countryOfOrigin; } /** - * @param string $discussionUrl + * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscussionUrl($discussionUrl) + public function setCountryOfOrigin($countryOfOrigin) { $types = [ + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $discussionUrl = self::checkTypes($discussionUrl, $types); + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); - $this->discussionUrl = $discussionUrl; + $this->countryOfOrigin = $countryOfOrigin; } /** - * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getReleasedEvent() + public function getMaintainer() { - return $this->releasedEvent; + return $this->maintainer; } /** - * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $releasedEvent + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $maintainer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReleasedEvent($releasedEvent) + public function setMaintainer($maintainer) { $types = [ - "\OpenActive\Models\SchemaOrg\PublicationEvent", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $releasedEvent = self::checkTypes($releasedEvent, $types); + $maintainer = self::checkTypes($maintainer, $types); - $this->releasedEvent = $releasedEvent; + $this->maintainer = $maintainer; } /** - * @return Date|DateTime|null + * @return string */ - public function getDateCreated() + public function getHeadline() { - return $this->dateCreated; + return $this->headline; } /** - * @param Date|DateTime|null $dateCreated + * @param string $headline * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateCreated($dateCreated) + public function setHeadline($headline) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $dateCreated = self::checkTypes($dateCreated, $types); + $headline = self::checkTypes($headline, $types); - $this->dateCreated = $dateCreated; + $this->headline = $headline; } /** * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getWorkTranslation() + public function getPublishingPrinciples() { - return $this->workTranslation; + return $this->publishingPrinciples; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workTranslation + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $publishingPrinciples * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkTranslation($workTranslation) + public function setPublishingPrinciples($publishingPrinciples) { $types = [ "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $workTranslation = self::checkTypes($workTranslation, $types); + $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); - $this->workTranslation = $workTranslation; + $this->publishingPrinciples = $publishingPrinciples; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getEditor() + public function getTranslationOfWork() { - return $this->editor; + return $this->translationOfWork; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $editor + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $translationOfWork * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEditor($editor) + public function setTranslationOfWork($translationOfWork) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $editor = self::checkTypes($editor, $types); + $translationOfWork = self::checkTypes($translationOfWork, $types); - $this->editor = $editor; + $this->translationOfWork = $translationOfWork; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\PublicationEvent|string */ - public function getCreditText() + public function getPublication() { - return $this->creditText; + return $this->publication; } /** - * @param string $creditText + * @param \OpenActive\Models\SchemaOrg\PublicationEvent|string $publication * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCreditText($creditText) + public function setPublication($publication) { $types = [ + "\OpenActive\Models\SchemaOrg\PublicationEvent", "string", ]; - $creditText = self::checkTypes($creditText, $types); + $publication = self::checkTypes($publication, $types); - $this->creditText = $creditText; + $this->publication = $publication; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getRecordedAt() + public function getAggregateRating() { - return $this->recordedAt; + return $this->aggregateRating; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $recordedAt + * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecordedAt($recordedAt) + public function setAggregateRating($aggregateRating) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $recordedAt = self::checkTypes($recordedAt, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->recordedAt = $recordedAt; + $this->aggregateRating = $aggregateRating; } /** - * @return string + * @return string|int|null */ - public function getEditEIDR() + public function getPosition() { - return $this->editEIDR; + return $this->position; } /** - * @param string $editEIDR + * @param string|int|null $position * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEditEIDR($editEIDR) + public function setPosition($position) { $types = [ "string", + "int", + "null", ]; - $editEIDR = self::checkTypes($editEIDR, $types); + $position = self::checkTypes($position, $types); - $this->editEIDR = $editEIDR; + $this->position = $position; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string */ - public function getAuthor() + public function getDigitalSourceType() { - return $this->author; + return $this->digitalSourceType; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $author + * @param \OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration|string $digitalSourceType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAuthor($author) + public function setDigitalSourceType($digitalSourceType) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\IPTCDigitalSourceEnumeration", "string", ]; - $author = self::checkTypes($author, $types); + $digitalSourceType = self::checkTypes($digitalSourceType, $types); - $this->author = $author; + $this->digitalSourceType = $digitalSourceType; } /** - * @return Date|DateTime|null + * @return string */ - public function getDateModified() + public function getAccessibilitySummary() { - return $this->dateModified; + return $this->accessibilitySummary; } /** - * @param Date|DateTime|null $dateModified + * @param string $accessibilitySummary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateModified($dateModified) + public function setAccessibilitySummary($accessibilitySummary) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $dateModified = self::checkTypes($dateModified, $types); + $accessibilitySummary = self::checkTypes($accessibilitySummary, $types); - $this->dateModified = $dateModified; + $this->accessibilitySummary = $accessibilitySummary; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getSponsor() + public function getRecordedAt() { - return $this->sponsor; + return $this->recordedAt; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @param \OpenActive\Models\SchemaOrg\Event|string $recordedAt * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSponsor($sponsor) + public function setRecordedAt($recordedAt) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $sponsor = self::checkTypes($sponsor, $types); + $recordedAt = self::checkTypes($recordedAt, $types); - $this->sponsor = $sponsor; + $this->recordedAt = $recordedAt; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getAccessibilitySummary() + public function getSourceOrganization() { - return $this->accessibilitySummary; + return $this->sourceOrganization; } /** - * @param string $accessibilitySummary + * @param \OpenActive\Models\SchemaOrg\Organization|string $sourceOrganization * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessibilitySummary($accessibilitySummary) + public function setSourceOrganization($sourceOrganization) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $accessibilitySummary = self::checkTypes($accessibilitySummary, $types); + $sourceOrganization = self::checkTypes($sourceOrganization, $types); - $this->accessibilitySummary = $accessibilitySummary; + $this->sourceOrganization = $sourceOrganization; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getEncodingFormat() + public function getSdLicense() { - return $this->encodingFormat; + return $this->sdLicense; } /** - * @param string $encodingFormat + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $sdLicense * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEncodingFormat($encodingFormat) + public function setSdLicense($sdLicense) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $encodingFormat = self::checkTypes($encodingFormat, $types); + $sdLicense = self::checkTypes($sdLicense, $types); - $this->encodingFormat = $encodingFormat; + $this->sdLicense = $sdLicense; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getMaintainer() + public function getTypicalAgeRange() { - return $this->maintainer; + return $this->typicalAgeRange; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $maintainer + * @param string $typicalAgeRange * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaintainer($maintainer) + public function setTypicalAgeRange($typicalAgeRange) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $maintainer = self::checkTypes($maintainer, $types); + $typicalAgeRange = self::checkTypes($typicalAgeRange, $types); - $this->maintainer = $maintainer; + $this->typicalAgeRange = $typicalAgeRange; } /** - * @return \OpenActive\Models\SchemaOrg\AlignmentObject|string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getEducationalAlignment() + public function getAssociatedMedia() { - return $this->educationalAlignment; + return $this->associatedMedia; } /** - * @param \OpenActive\Models\SchemaOrg\AlignmentObject|string $educationalAlignment + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalAlignment($educationalAlignment) + public function setAssociatedMedia($associatedMedia) { $types = [ - "\OpenActive\Models\SchemaOrg\AlignmentObject", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $educationalAlignment = self::checkTypes($educationalAlignment, $types); + $associatedMedia = self::checkTypes($associatedMedia, $types); - $this->educationalAlignment = $educationalAlignment; + $this->associatedMedia = $associatedMedia; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return DateTime|string|null */ - public function getAcquireLicensePage() + public function getTemporal() { - return $this->acquireLicensePage; + return $this->temporal; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $acquireLicensePage + * @param DateTime|string|null $temporal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcquireLicensePage($acquireLicensePage) + public function setTemporal($temporal) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "DateTime", "string", + "null", ]; - $acquireLicensePage = self::checkTypes($acquireLicensePage, $types); + $temporal = self::checkTypes($temporal, $types); - $this->acquireLicensePage = $acquireLicensePage; + $this->temporal = $temporal; } /** - * @return bool|null + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getIsAccessibleForFree() + public function getEducationalLevel() { - return $this->isAccessibleForFree; + return $this->educationalLevel; } /** - * @param bool|null $isAccessibleForFree + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsAccessibleForFree($isAccessibleForFree) + public function setEducationalLevel($educationalLevel) { $types = [ - "bool", - "null", + "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); + $educationalLevel = self::checkTypes($educationalLevel, $types); - $this->isAccessibleForFree = $isAccessibleForFree; + $this->educationalLevel = $educationalLevel; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getDatePublished() + public function getExampleOfWork() { - return $this->datePublished; + return $this->exampleOfWork; } /** - * @param Date|DateTime|null $datePublished + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $exampleOfWork * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePublished($datePublished) + public function setExampleOfWork($exampleOfWork) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", ]; - $datePublished = self::checkTypes($datePublished, $types); + $exampleOfWork = self::checkTypes($exampleOfWork, $types); - $this->datePublished = $datePublished; + $this->exampleOfWork = $exampleOfWork; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getSpatialCoverage() + public function getMentions() { - return $this->spatialCoverage; + return $this->mentions; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $spatialCoverage + * @param \OpenActive\Models\SchemaOrg\Thing|string $mentions * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpatialCoverage($spatialCoverage) + public function setMentions($mentions) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $spatialCoverage = self::checkTypes($spatialCoverage, $types); + $mentions = self::checkTypes($mentions, $types); - $this->spatialCoverage = $spatialCoverage; + $this->mentions = $mentions; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getSdLicense() + public function getConditionsOfAccess() { - return $this->sdLicense; + return $this->conditionsOfAccess; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $sdLicense + * @param string $conditionsOfAccess * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSdLicense($sdLicense) + public function setConditionsOfAccess($conditionsOfAccess) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $sdLicense = self::checkTypes($sdLicense, $types); + $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types); - $this->sdLicense = $sdLicense; + $this->conditionsOfAccess = $conditionsOfAccess; } /** * @return string */ - public function getConditionsOfAccess() + public function getEncodingFormat() { - return $this->conditionsOfAccess; + return $this->encodingFormat; } /** - * @param string $conditionsOfAccess + * @param string $encodingFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setConditionsOfAccess($conditionsOfAccess) + public function setEncodingFormat($encodingFormat) { $types = [ "string", ]; - $conditionsOfAccess = self::checkTypes($conditionsOfAccess, $types); + $encodingFormat = self::checkTypes($encodingFormat, $types); - $this->conditionsOfAccess = $conditionsOfAccess; + $this->encodingFormat = $encodingFormat; } /** - * @return string|\OpenActive\Models\SchemaOrg\CorrectionComment + * @return string|\OpenActive\Models\SchemaOrg\Product */ - public function getCorrection() + public function getMaterial() { - return $this->correction; + return $this->material; } /** - * @param string|\OpenActive\Models\SchemaOrg\CorrectionComment $correction + * @param string|\OpenActive\Models\SchemaOrg\Product $material * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCorrection($correction) + public function setMaterial($material) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\CorrectionComment", + "\OpenActive\Models\SchemaOrg\Product", ]; - $correction = self::checkTypes($correction, $types); + $material = self::checkTypes($material, $types); - $this->correction = $correction; + $this->material = $material; } /** - * @return string|\OpenActive\Models\SchemaOrg\Rating + * @return string|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getContentRating() + public function getIsBasedOnUrl() { - return $this->contentRating; + return $this->isBasedOnUrl; } /** - * @param string|\OpenActive\Models\SchemaOrg\Rating $contentRating + * @param string|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\CreativeWork $isBasedOnUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContentRating($contentRating) + public function setIsBasedOnUrl($isBasedOnUrl) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Rating", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $contentRating = self::checkTypes($contentRating, $types); + $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types); - $this->contentRating = $contentRating; + $this->isBasedOnUrl = $isBasedOnUrl; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getSize() + public function getPublisherImprint() { - return $this->size; + return $this->publisherImprint; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification $size + * @param \OpenActive\Models\SchemaOrg\Organization|string $publisherImprint * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSize($size) + public function setPublisherImprint($publisherImprint) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "\OpenActive\Models\SchemaOrg\SizeSpecification", ]; - $size = self::checkTypes($size, $types); + $publisherImprint = self::checkTypes($publisherImprint, $types); - $this->size = $size; + $this->publisherImprint = $publisherImprint; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return bool|null */ - public function getIsPartOf() + public function getIsAccessibleForFree() { - return $this->isPartOf; + return $this->isAccessibleForFree; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $isPartOf + * @param bool|null $isAccessibleForFree * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsPartOf($isPartOf) + public function setIsAccessibleForFree($isAccessibleForFree) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "bool", + "null", ]; - $isPartOf = self::checkTypes($isPartOf, $types); + $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); - $this->isPartOf = $isPartOf; + $this->isAccessibleForFree = $isAccessibleForFree; } /** - * @return DateTime|string|null + * @return string */ - public function getTemporal() + public function getAwards() { - return $this->temporal; + return $this->awards; } /** - * @param DateTime|string|null $temporal + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTemporal($temporal) + public function setAwards($awards) { $types = [ - "DateTime", "string", - "null", ]; - $temporal = self::checkTypes($temporal, $types); + $awards = self::checkTypes($awards, $types); - $this->temporal = $temporal; + $this->awards = $awards; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string */ - public function getThumbnailUrl() + public function getIsBasedOn() { - return $this->thumbnailUrl; + return $this->isBasedOn; } /** - * @param string $thumbnailUrl + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product|string $isBasedOn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setThumbnailUrl($thumbnailUrl) + public function setIsBasedOn($isBasedOn) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $thumbnailUrl = self::checkTypes($thumbnailUrl, $types); + $isBasedOn = self::checkTypes($isBasedOn, $types); - $this->thumbnailUrl = $thumbnailUrl; + $this->isBasedOn = $isBasedOn; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return string */ - public function getInLanguage() + public function getAccessibilityHazard() { - return $this->inLanguage; + return $this->accessibilityHazard; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @param string $accessibilityHazard * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInLanguage($inLanguage) + public function setAccessibilityHazard($accessibilityHazard) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $accessibilityHazard = self::checkTypes($accessibilityHazard, $types); - $this->inLanguage = $inLanguage; + $this->accessibilityHazard = $accessibilityHazard; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return Number|null */ - public function getLicense() + public function getCopyrightYear() { - return $this->license; + return $this->copyrightYear; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $license + * @param Number|null $copyrightYear * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLicense($license) + public function setCopyrightYear($copyrightYear) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "Number", + "null", ]; - $license = self::checkTypes($license, $types); + $copyrightYear = self::checkTypes($copyrightYear, $types); - $this->license = $license; + $this->copyrightYear = $copyrightYear; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getCreator() + public function getEncoding() { - return $this->creator; + return $this->encoding; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creator + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encoding * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCreator($creator) + public function setEncoding($encoding) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $creator = self::checkTypes($creator, $types); + $encoding = self::checkTypes($encoding, $types); - $this->creator = $creator; + $this->encoding = $encoding; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getReviews() + public function getSpatialCoverage() { - return $this->reviews; + return $this->spatialCoverage; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @param \OpenActive\Models\SchemaOrg\Place|string $spatialCoverage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviews($reviews) + public function setSpatialCoverage($spatialCoverage) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $spatialCoverage = self::checkTypes($spatialCoverage, $types); - $this->reviews = $reviews; + $this->spatialCoverage = $spatialCoverage; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAbout() + public function getSponsor() { - return $this->about; + return $this->sponsor; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $about + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAbout($about) + public function setSponsor($sponsor) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $about = self::checkTypes($about, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->about = $about; + $this->sponsor = $sponsor; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getIsFamilyFriendly() + public function getWorkExample() { - return $this->isFamilyFriendly; + return $this->workExample; } /** - * @param bool|null $isFamilyFriendly + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workExample * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsFamilyFriendly($isFamilyFriendly) + public function setWorkExample($workExample) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", ]; - $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); + $workExample = self::checkTypes($workExample, $types); - $this->isFamilyFriendly = $isFamilyFriendly; + $this->workExample = $workExample; } /** * @return string */ - public function getHeadline() + public function getCreditText() { - return $this->headline; + return $this->creditText; } /** - * @param string $headline + * @param string $creditText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeadline($headline) + public function setCreditText($creditText) { $types = [ "string", ]; - $headline = self::checkTypes($headline, $types); + $creditText = self::checkTypes($creditText, $types); - $this->headline = $headline; + $this->creditText = $creditText; } /** - * @return string + * @return Date|DateTime|null */ - public function getAccessibilityAPI() + public function getDatePublished() { - return $this->accessibilityAPI; + return $this->datePublished; } /** - * @param string $accessibilityAPI + * @param Date|DateTime|null $datePublished * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessibilityAPI($accessibilityAPI) + public function setDatePublished($datePublished) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $accessibilityAPI = self::checkTypes($accessibilityAPI, $types); + $datePublished = self::checkTypes($datePublished, $types); - $this->accessibilityAPI = $accessibilityAPI; + $this->datePublished = $datePublished; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getPublisherImprint() + public function getAccessibilityAPI() { - return $this->publisherImprint; + return $this->accessibilityAPI; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $publisherImprint + * @param string $accessibilityAPI * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublisherImprint($publisherImprint) + public function setAccessibilityAPI($accessibilityAPI) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $publisherImprint = self::checkTypes($publisherImprint, $types); + $accessibilityAPI = self::checkTypes($accessibilityAPI, $types); - $this->publisherImprint = $publisherImprint; + $this->accessibilityAPI = $accessibilityAPI; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getIsBasedOnUrl() + public function getMainEntity() { - return $this->isBasedOnUrl; + return $this->mainEntity; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Product $isBasedOnUrl + * @param \OpenActive\Models\SchemaOrg\Thing|string $mainEntity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsBasedOnUrl($isBasedOnUrl) + public function setMainEntity($mainEntity) { $types = [ + "\OpenActive\Models\SchemaOrg\Thing", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", - "\OpenActive\Models\SchemaOrg\Product", ]; - $isBasedOnUrl = self::checkTypes($isBasedOnUrl, $types); + $mainEntity = self::checkTypes($mainEntity, $types); - $this->isBasedOnUrl = $isBasedOnUrl; + $this->mainEntity = $mainEntity; } /** - * @return \OpenActive\Models\SchemaOrg\MediaObject|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getEncodings() + public function getTeaches() { - return $this->encodings; + return $this->teaches; } /** - * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encodings + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEncodings($encodings) + public function setTeaches($teaches) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaObject", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $encodings = self::checkTypes($encodings, $types); + $teaches = self::checkTypes($teaches, $types); - $this->encodings = $encodings; + $this->teaches = $teaches; } /** - * @return \OpenActive\Models\SchemaOrg\Claim|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getInterpretedAsClaim() + public function getProvider() { - return $this->interpretedAsClaim; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInterpretedAsClaim($interpretedAsClaim) + public function setProvider($provider) { $types = [ - "\OpenActive\Models\SchemaOrg\Claim", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types); + $provider = self::checkTypes($provider, $types); - $this->interpretedAsClaim = $interpretedAsClaim; + $this->provider = $provider; } /** - * @return string + * @return DateTime|string|null */ - public function getAccessibilityControl() + public function getTemporalCoverage() { - return $this->accessibilityControl; + return $this->temporalCoverage; } /** - * @param string $accessibilityControl + * @param DateTime|string|null $temporalCoverage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessibilityControl($accessibilityControl) + public function setTemporalCoverage($temporalCoverage) { $types = [ + "DateTime", "string", + "null", ]; - $accessibilityControl = self::checkTypes($accessibilityControl, $types); + $temporalCoverage = self::checkTypes($temporalCoverage, $types); - $this->accessibilityControl = $accessibilityControl; + $this->temporalCoverage = $temporalCoverage; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getCitation() + public function getSchemaVersion() { - return $this->citation; + return $this->schemaVersion; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $citation + * @param string $schemaVersion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCitation($citation) + public function setSchemaVersion($schemaVersion) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $citation = self::checkTypes($citation, $types); + $schemaVersion = self::checkTypes($schemaVersion, $types); - $this->citation = $citation; + $this->schemaVersion = $schemaVersion; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getVersion() + public function getCopyrightHolder() { - return $this->version; + return $this->copyrightHolder; } /** - * @param string|Number|null $version + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $copyrightHolder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVersion($version) + public function setCopyrightHolder($copyrightHolder) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "Number", - "null", ]; - $version = self::checkTypes($version, $types); + $copyrightHolder = self::checkTypes($copyrightHolder, $types); - $this->version = $version; + $this->copyrightHolder = $copyrightHolder; } /** - * @return \OpenActive\Models\SchemaOrg\WebPage|string + * @return int|null */ - public function getArchivedAt() + public function getCommentCount() { - return $this->archivedAt; + return $this->commentCount; } /** - * @param \OpenActive\Models\SchemaOrg\WebPage|string $archivedAt + * @param int|null $commentCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArchivedAt($archivedAt) + public function setCommentCount($commentCount) { $types = [ - "\OpenActive\Models\SchemaOrg\WebPage", - "string", + "int", + "null", ]; - $archivedAt = self::checkTypes($archivedAt, $types); + $commentCount = self::checkTypes($commentCount, $types); - $this->archivedAt = $archivedAt; + $this->commentCount = $commentCount; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string|Number|null */ - public function getLearningResourceType() + public function getVersion() { - return $this->learningResourceType; + return $this->version; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType + * @param string|Number|null $version * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLearningResourceType($learningResourceType) + public function setVersion($version) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", + "Number", + "null", ]; - $learningResourceType = self::checkTypes($learningResourceType, $types); + $version = self::checkTypes($version, $types); - $this->learningResourceType = $learningResourceType; + $this->version = $version; } /** - * @return \OpenActive\Models\SchemaOrg\MediaObject|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getEncoding() + public function getReview() { - return $this->encoding; + return $this->review; } /** - * @param \OpenActive\Models\SchemaOrg\MediaObject|string $encoding + * @param \OpenActive\Models\SchemaOrg\Review|string $review * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEncoding($encoding) + public function setReview($review) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaObject", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $encoding = self::checkTypes($encoding, $types); + $review = self::checkTypes($review, $types); - $this->encoding = $encoding; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getAudio() + public function getHasPart() { - return $this->audio; + return $this->hasPart; } /** - * @param \OpenActive\Models\SchemaOrg\AudioObject|\OpenActive\Models\SchemaOrg\MusicRecording|\OpenActive\Models\SchemaOrg\Clip|string $audio + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $hasPart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudio($audio) + public function setHasPart($hasPart) { $types = [ - "\OpenActive\Models\SchemaOrg\AudioObject", - "\OpenActive\Models\SchemaOrg\MusicRecording", - "\OpenActive\Models\SchemaOrg\Clip", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $audio = self::checkTypes($audio, $types); + $hasPart = self::checkTypes($hasPart, $types); - $this->audio = $audio; + $this->hasPart = $hasPart; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getMentions() + public function getInLanguage() { - return $this->mentions; + return $this->inLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $mentions + * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMentions($mentions) + public function setInLanguage($inLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $mentions = self::checkTypes($mentions, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->mentions = $mentions; + $this->inLanguage = $inLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\ItemList|string + * @return \OpenActive\Models\SchemaOrg\WebPage|string */ - public function getAccessModeSufficient() + public function getArchivedAt() { - return $this->accessModeSufficient; + return $this->archivedAt; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|string $accessModeSufficient + * @param \OpenActive\Models\SchemaOrg\WebPage|string $archivedAt * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessModeSufficient($accessModeSufficient) + public function setArchivedAt($archivedAt) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\WebPage", "string", ]; - $accessModeSufficient = self::checkTypes($accessModeSufficient, $types); + $archivedAt = self::checkTypes($archivedAt, $types); - $this->accessModeSufficient = $accessModeSufficient; + $this->archivedAt = $archivedAt; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getHasPart() + public function getAudience() { - return $this->hasPart; + return $this->audience; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $hasPart + * @param \OpenActive\Models\SchemaOrg\Audience|string $audience * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasPart($hasPart) + public function setAudience($audience) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $hasPart = self::checkTypes($hasPart, $types); + $audience = self::checkTypes($audience, $types); - $this->hasPart = $hasPart; + $this->audience = $audience; } /** - * @return DateTime|string|null + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getTemporalCoverage() + public function getCreativeWorkStatus() { - return $this->temporalCoverage; + return $this->creativeWorkStatus; } /** - * @param DateTime|string|null $temporalCoverage + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $creativeWorkStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTemporalCoverage($temporalCoverage) + public function setCreativeWorkStatus($creativeWorkStatus) { $types = [ - "DateTime", "string", - "null", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $temporalCoverage = self::checkTypes($temporalCoverage, $types); + $creativeWorkStatus = self::checkTypes($creativeWorkStatus, $types); - $this->temporalCoverage = $temporalCoverage; + $this->creativeWorkStatus = $creativeWorkStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\ItemList|string */ - public function getContributor() + public function getAccessModeSufficient() { - return $this->contributor; + return $this->accessModeSufficient; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor + * @param \OpenActive\Models\SchemaOrg\ItemList|string $accessModeSufficient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContributor($contributor) + public function setAccessModeSufficient($accessModeSufficient) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\ItemList", "string", ]; - $contributor = self::checkTypes($contributor, $types); + $accessModeSufficient = self::checkTypes($accessModeSufficient, $types); - $this->contributor = $contributor; + $this->accessModeSufficient = $accessModeSufficient; } /** - * @return \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getVideo() + public function getContributor() { - return $this->video; + return $this->contributor; } /** - * @param \OpenActive\Models\SchemaOrg\Clip|\OpenActive\Models\SchemaOrg\VideoObject|string $video + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $contributor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVideo($video) + public function setContributor($contributor) { $types = [ - "\OpenActive\Models\SchemaOrg\Clip", - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $video = self::checkTypes($video, $types); + $contributor = self::checkTypes($contributor, $types); - $this->video = $video; + $this->contributor = $contributor; } } diff --git a/src/Models/SchemaOrg/CreativeWorkSeason.php b/src/Models/SchemaOrg/CreativeWorkSeason.php index e094eb1e..66451c3f 100644 --- a/src/Models/SchemaOrg/CreativeWorkSeason.php +++ b/src/Models/SchemaOrg/CreativeWorkSeason.php @@ -17,40 +17,40 @@ public static function getType() public static function fieldList() { $fields = [ - "startDate" => "startDate", - "director" => "director", - "actor" => "actor", + "numberOfEpisodes" => "numberOfEpisodes", "trailer" => "trailer", + "actor" => "actor", + "startDate" => "startDate", "endDate" => "endDate", - "episodes" => "episodes", - "numberOfEpisodes" => "numberOfEpisodes", - "partOfSeries" => "partOfSeries", "productionCompany" => "productionCompany", "seasonNumber" => "seasonNumber", + "director" => "director", "episode" => "episode", + "episodes" => "episodes", + "partOfSeries" => "partOfSeries", ]; return array_merge(parent::fieldList(), $fields); } /** - * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * The number of episodes in this season or series. * * - * @var Date|DateTime|null + * @var int|null */ - protected $startDate; + protected $numberOfEpisodes; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $director; + protected $trailer; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string @@ -58,12 +58,12 @@ public static function fieldList() { protected $actor; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var Date|DateTime|null */ - protected $trailer; + protected $startDate; /** * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). @@ -74,102 +74,101 @@ public static function fieldList() { protected $endDate; /** - * An episode of a TV/radio series or season. + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $episodes; + protected $productionCompany; /** - * The number of episodes in this season or series. + * Position of the season within an ordered group of seasons. * * - * @var int|null + * @var string|int|null */ - protected $numberOfEpisodes; + protected $seasonNumber; /** - * The series to which this episode or season belongs. + * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $partOfSeries; + protected $director; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * An episode of a TV, radio or game media within a series or season. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $productionCompany; + protected $episode; /** - * Position of the season within an ordered group of seasons. + * An episode of a TV/radio series or season. * * - * @var string|int|null + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $seasonNumber; + protected $episodes; /** - * An episode of a tv, radio or game media within a series or season. + * The series to which this episode or season belongs. * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - protected $episode; + protected $partOfSeries; /** - * @return Date|DateTime|null + * @return int|null */ - public function getStartDate() + public function getNumberOfEpisodes() { - return $this->startDate; + return $this->numberOfEpisodes; } /** - * @param Date|DateTime|null $startDate + * @param int|null $numberOfEpisodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartDate($startDate) + public function setNumberOfEpisodes($numberOfEpisodes) { $types = [ - "Date", - "DateTime", + "int", "null", ]; - $startDate = self::checkTypes($startDate, $types); + $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); - $this->startDate = $startDate; + $this->numberOfEpisodes = $numberOfEpisodes; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getDirector() + public function getTrailer() { - return $this->director; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $director = self::checkTypes($director, $types); + $trailer = self::checkTypes($trailer, $types); - $this->director = $director; + $this->trailer = $trailer; } /** @@ -198,28 +197,29 @@ public function setActor($actor) } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return Date|DateTime|null */ - public function getTrailer() + public function getStartDate() { - return $this->trailer; + return $this->startDate; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setStartDate($startDate) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", - "string", + "Date", + "DateTime", + "null", ]; - $trailer = self::checkTypes($trailer, $types); + $startDate = self::checkTypes($startDate, $types); - $this->trailer = $trailer; + $this->startDate = $startDate; } /** @@ -249,154 +249,154 @@ public function setEndDate($endDate) } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getEpisodes() + public function getProductionCompany() { - return $this->episodes; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes + * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisodes($episodes) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $episodes = self::checkTypes($episodes, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->episodes = $episodes; + $this->productionCompany = $productionCompany; } /** - * @return int|null + * @return string|int|null */ - public function getNumberOfEpisodes() + public function getSeasonNumber() { - return $this->numberOfEpisodes; + return $this->seasonNumber; } /** - * @param int|null $numberOfEpisodes + * @param string|int|null $seasonNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfEpisodes($numberOfEpisodes) + public function setSeasonNumber($seasonNumber) { $types = [ + "string", "int", "null", ]; - $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); + $seasonNumber = self::checkTypes($seasonNumber, $types); - $this->numberOfEpisodes = $numberOfEpisodes; + $this->seasonNumber = $seasonNumber; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getPartOfSeries() + public function getDirector() { - return $this->partOfSeries; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfSeries($partOfSeries) + public function setDirector($director) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $partOfSeries = self::checkTypes($partOfSeries, $types); + $director = self::checkTypes($director, $types); - $this->partOfSeries = $partOfSeries; + $this->director = $director; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getProductionCompany() + public function getEpisode() { - return $this->productionCompany; + return $this->episode; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @param \OpenActive\Models\SchemaOrg\Episode|string $episode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionCompany($productionCompany) + public function setEpisode($episode) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $episode = self::checkTypes($episode, $types); - $this->productionCompany = $productionCompany; + $this->episode = $episode; } /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getSeasonNumber() + public function getEpisodes() { - return $this->seasonNumber; + return $this->episodes; } /** - * @param string|int|null $seasonNumber + * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeasonNumber($seasonNumber) + public function setEpisodes($episodes) { $types = [ + "\OpenActive\Models\SchemaOrg\Episode", "string", - "int", - "null", ]; - $seasonNumber = self::checkTypes($seasonNumber, $types); + $episodes = self::checkTypes($episodes, $types); - $this->seasonNumber = $seasonNumber; + $this->episodes = $episodes; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - public function getEpisode() + public function getPartOfSeries() { - return $this->episode; + return $this->partOfSeries; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisode($episode) + public function setPartOfSeries($partOfSeries) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", "string", ]; - $episode = self::checkTypes($episode, $types); + $partOfSeries = self::checkTypes($partOfSeries, $types); - $this->episode = $episode; + $this->partOfSeries = $partOfSeries; } } diff --git a/src/Models/SchemaOrg/CreditCard.php b/src/Models/SchemaOrg/CreditCard.php index 0df2c92b..ca17289b 100644 --- a/src/Models/SchemaOrg/CreditCard.php +++ b/src/Models/SchemaOrg/CreditCard.php @@ -5,7 +5,7 @@ /** * */ -class CreditCard extends \OpenActive\Models\SchemaOrg\PaymentCard +class CreditCard extends \OpenActive\Models\SchemaOrg\LoanOrCredit { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/DDxElement.php b/src/Models/SchemaOrg/DDxElement.php index 52fe2353..0d91c43d 100644 --- a/src/Models/SchemaOrg/DDxElement.php +++ b/src/Models/SchemaOrg/DDxElement.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "distinguishingSign" => "distinguishingSign", "diagnosis" => "diagnosis", + "distinguishingSign" => "distinguishingSign", ]; return array_merge(parent::fieldList(), $fields); } /** - * One of a set of signs and symptoms that can be used to distinguish this diagnosis from others in the differential diagnosis. + * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process. * * - * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string + * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $distinguishingSign; + protected $diagnosis; /** - * One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process. + * One of a set of signs and symptoms that can be used to distinguish this diagnosis from others in the differential diagnosis. * * - * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string */ - protected $diagnosis; + protected $distinguishingSign; /** - * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string + * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getDistinguishingSign() + public function getDiagnosis() { - return $this->distinguishingSign; + return $this->diagnosis; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $distinguishingSign + * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $diagnosis * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDistinguishingSign($distinguishingSign) + public function setDiagnosis($diagnosis) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom", + "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $distinguishingSign = self::checkTypes($distinguishingSign, $types); + $diagnosis = self::checkTypes($diagnosis, $types); - $this->distinguishingSign = $distinguishingSign; + $this->diagnosis = $diagnosis; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string */ - public function getDiagnosis() + public function getDistinguishingSign() { - return $this->diagnosis; + return $this->distinguishingSign; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $diagnosis + * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $distinguishingSign * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiagnosis($diagnosis) + public function setDistinguishingSign($distinguishingSign) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalCondition", + "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom", "string", ]; - $diagnosis = self::checkTypes($diagnosis, $types); + $distinguishingSign = self::checkTypes($distinguishingSign, $types); - $this->diagnosis = $diagnosis; + $this->distinguishingSign = $distinguishingSign; } } diff --git a/src/Models/SchemaOrg/DataCatalog.php b/src/Models/SchemaOrg/DataCatalog.php index 5f598c9d..3070cc02 100644 --- a/src/Models/SchemaOrg/DataCatalog.php +++ b/src/Models/SchemaOrg/DataCatalog.php @@ -19,24 +19,23 @@ public static function fieldList() { $fields = [ "measurementTechnique" => "measurementTechnique", "dataset" => "dataset", + "measurementMethod" => "measurementMethod", ]; return array_merge(parent::fieldList(), $fields); } /** - * A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), - * corresponding to the method used for measuring the corresponding variable(s) (described using [[variableMeasured]]). This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but rather as a high level summary for dataset discovery. + * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable. + * + * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery. * - * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". + * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". * - * If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". - * - * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. - * + * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]]. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ protected $measurementTechnique; @@ -49,7 +48,15 @@ public static function fieldList() { protected $dataset; /** - * @return string + * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]]. + * + * + * @var string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null + */ + protected $measurementMethod; + + /** + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ public function getMeasurementTechnique() { @@ -57,7 +64,7 @@ public function getMeasurementTechnique() } /** - * @param string $measurementTechnique + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -65,6 +72,9 @@ public function setMeasurementTechnique($measurementTechnique) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "null", ]; $measurementTechnique = self::checkTypes($measurementTechnique, $types); @@ -97,4 +107,31 @@ public function setDataset($dataset) $this->dataset = $dataset; } + /** + * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null + */ + public function getMeasurementMethod() + { + return $this->measurementMethod; + } + + /** + * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementMethod($measurementMethod) + { + $types = [ + "string", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "null", + ]; + + $measurementMethod = self::checkTypes($measurementMethod, $types); + + $this->measurementMethod = $measurementMethod; + } + } diff --git a/src/Models/SchemaOrg/DataDownload.php b/src/Models/SchemaOrg/DataDownload.php index 17725eeb..d1f0b358 100644 --- a/src/Models/SchemaOrg/DataDownload.php +++ b/src/Models/SchemaOrg/DataDownload.php @@ -18,29 +18,36 @@ public static function getType() public static function fieldList() { $fields = [ "measurementTechnique" => "measurementTechnique", + "measurementMethod" => "measurementMethod", ]; return array_merge(parent::fieldList(), $fields); } /** - * A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), - * corresponding to the method used for measuring the corresponding variable(s) (described using [[variableMeasured]]). This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but rather as a high level summary for dataset discovery. + * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable. + * + * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery. * - * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". + * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". * - * If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". - * - * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. - * + * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]]. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ protected $measurementTechnique; /** - * @return string + * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]]. + * + * + * @var string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null + */ + protected $measurementMethod; + + /** + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ public function getMeasurementTechnique() { @@ -48,7 +55,7 @@ public function getMeasurementTechnique() } /** - * @param string $measurementTechnique + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -56,6 +63,9 @@ public function setMeasurementTechnique($measurementTechnique) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "null", ]; $measurementTechnique = self::checkTypes($measurementTechnique, $types); @@ -63,4 +73,31 @@ public function setMeasurementTechnique($measurementTechnique) $this->measurementTechnique = $measurementTechnique; } + /** + * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null + */ + public function getMeasurementMethod() + { + return $this->measurementMethod; + } + + /** + * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementMethod($measurementMethod) + { + $types = [ + "string", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "null", + ]; + + $measurementMethod = self::checkTypes($measurementMethod, $types); + + $this->measurementMethod = $measurementMethod; + } + } diff --git a/src/Models/SchemaOrg/DataFeed.php b/src/Models/SchemaOrg/DataFeed.php index 15d9af55..faf4c430 100644 --- a/src/Models/SchemaOrg/DataFeed.php +++ b/src/Models/SchemaOrg/DataFeed.php @@ -24,15 +24,15 @@ public static function fieldList() { } /** - * An item within in a data feed. Data feeds may have many elements. + * An item within a data feed. Data feeds may have many elements. * * - * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\DataFeedItem|string + * @var \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\DataFeedItem */ protected $dataFeedElement; /** - * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\DataFeedItem|string + * @return \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\DataFeedItem */ public function getDataFeedElement() { @@ -40,7 +40,7 @@ public function getDataFeedElement() } /** - * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\DataFeedItem|string $dataFeedElement + * @param \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\DataFeedItem $dataFeedElement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -48,8 +48,8 @@ public function setDataFeedElement($dataFeedElement) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\DataFeedItem", "string", + "\OpenActive\Models\SchemaOrg\DataFeedItem", ]; $dataFeedElement = self::checkTypes($dataFeedElement, $types); diff --git a/src/Models/SchemaOrg/DataFeedItem.php b/src/Models/SchemaOrg/DataFeedItem.php index 6cd37b9f..800e688c 100644 --- a/src/Models/SchemaOrg/DataFeedItem.php +++ b/src/Models/SchemaOrg/DataFeedItem.php @@ -17,61 +17,61 @@ public static function getType() public static function fieldList() { $fields = [ - "dateDeleted" => "dateDeleted", - "dateCreated" => "dateCreated", "dateModified" => "dateModified", "item" => "item", + "dateCreated" => "dateCreated", + "dateDeleted" => "dateDeleted", ]; return array_merge(parent::fieldList(), $fields); } /** - * The datetime the item was removed from the DataFeed. + * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed. * * * @var Date|DateTime|null */ - protected $dateDeleted; + protected $dateModified; /** - * The date on which the CreativeWork was created or the item was added to a DataFeed. + * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists'). * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $dateCreated; + protected $item; /** - * The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed. + * The date on which the CreativeWork was created or the item was added to a DataFeed. * * * @var Date|DateTime|null */ - protected $dateModified; + protected $dateCreated; /** - * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists')’. + * The datetime the item was removed from the DataFeed. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var Date|DateTime|null */ - protected $item; + protected $dateDeleted; /** * @return Date|DateTime|null */ - public function getDateDeleted() + public function getDateModified() { - return $this->dateDeleted; + return $this->dateModified; } /** - * @param Date|DateTime|null $dateDeleted + * @param Date|DateTime|null $dateModified * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateDeleted($dateDeleted) + public function setDateModified($dateModified) { $types = [ "Date", @@ -79,51 +79,50 @@ public function setDateDeleted($dateDeleted) "null", ]; - $dateDeleted = self::checkTypes($dateDeleted, $types); + $dateModified = self::checkTypes($dateModified, $types); - $this->dateDeleted = $dateDeleted; + $this->dateModified = $dateModified; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getDateCreated() + public function getItem() { - return $this->dateCreated; + return $this->item; } /** - * @param Date|DateTime|null $dateCreated + * @param \OpenActive\Models\SchemaOrg\Thing|string $item * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateCreated($dateCreated) + public function setItem($item) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Thing", + "string", ]; - $dateCreated = self::checkTypes($dateCreated, $types); + $item = self::checkTypes($item, $types); - $this->dateCreated = $dateCreated; + $this->item = $item; } /** * @return Date|DateTime|null */ - public function getDateModified() + public function getDateCreated() { - return $this->dateModified; + return $this->dateCreated; } /** - * @param Date|DateTime|null $dateModified + * @param Date|DateTime|null $dateCreated * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateModified($dateModified) + public function setDateCreated($dateCreated) { $types = [ "Date", @@ -131,34 +130,35 @@ public function setDateModified($dateModified) "null", ]; - $dateModified = self::checkTypes($dateModified, $types); + $dateCreated = self::checkTypes($dateCreated, $types); - $this->dateModified = $dateModified; + $this->dateCreated = $dateCreated; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return Date|DateTime|null */ - public function getItem() + public function getDateDeleted() { - return $this->item; + return $this->dateDeleted; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $item + * @param Date|DateTime|null $dateDeleted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItem($item) + public function setDateDeleted($dateDeleted) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", - "string", + "Date", + "DateTime", + "null", ]; - $item = self::checkTypes($item, $types); + $dateDeleted = self::checkTypes($dateDeleted, $types); - $this->item = $item; + $this->dateDeleted = $dateDeleted; } } diff --git a/src/Models/SchemaOrg/Dataset.php b/src/Models/SchemaOrg/Dataset.php index 0419a3de..66d2e900 100644 --- a/src/Models/SchemaOrg/Dataset.php +++ b/src/Models/SchemaOrg/Dataset.php @@ -17,12 +17,13 @@ public static function getType() public static function fieldList() { $fields = [ - "catalog" => "catalog", - "includedDataCatalog" => "includedDataCatalog", - "variableMeasured" => "variableMeasured", "measurementTechnique" => "measurementTechnique", - "datasetTimeInterval" => "datasetTimeInterval", + "variableMeasured" => "variableMeasured", + "measurementMethod" => "measurementMethod", "distribution" => "distribution", + "includedDataCatalog" => "includedDataCatalog", + "datasetTimeInterval" => "datasetTimeInterval", + "catalog" => "catalog", "issn" => "issn", "includedInDataCatalog" => "includedInDataCatalog", ]; @@ -31,44 +32,50 @@ public static function fieldList() { } /** - * A data catalog which contains this dataset. + * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable. + * + * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery. + * + * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". + * + * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]]. * * - * @var \OpenActive\Models\SchemaOrg\DataCatalog|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - protected $catalog; + protected $measurementTechnique; /** - * A data catalog which contains this dataset (this property was previously 'catalog', preferred name is now 'includedInDataCatalog'). + * The variableMeasured property can indicate (repeated as necessary) the variables that are measured in some dataset, either described as text or as pairs of identifier and description using PropertyValue, or more explicitly as a [[StatisticalVariable]]. * * - * @var \OpenActive\Models\SchemaOrg\DataCatalog|string + * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null */ - protected $includedDataCatalog; + protected $variableMeasured; /** - * The variableMeasured property can indicate (repeated as necessary) the variables that are measured in some dataset, either described as text or as pairs of identifier and description using PropertyValue. + * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]]. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null */ - protected $variableMeasured; + protected $measurementMethod; /** - * A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), - * corresponding to the method used for measuring the corresponding variable(s) (described using [[variableMeasured]]). This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but rather as a high level summary for dataset discovery. - * - * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". - * - * If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". - * - * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. - * + * A downloadable form of this dataset, at a specific location, in a specific format. This property can be repeated if different variations are available. There is no expectation that different downloadable distributions must contain exactly equivalent information (see also [DCAT](https://www.w3.org/TR/vocab-dcat-3/#Class:Distribution) on this point). Different distributions might include or exclude different subsets of the entire dataset, for example. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DataDownload|string */ - protected $measurementTechnique; + protected $distribution; + + /** + * A data catalog which contains this dataset (this property was previously 'catalog', preferred name is now 'includedInDataCatalog'). + * + * + * @var \OpenActive\Models\SchemaOrg\DataCatalog|string + */ + protected $includedDataCatalog; /** * The range of temporal applicability of a dataset, e.g. for a 2011 census dataset, the year 2011 (in ISO 8601 time interval format). @@ -79,12 +86,12 @@ public static function fieldList() { protected $datasetTimeInterval; /** - * A downloadable form of this dataset, at a specific location, in a specific format. + * A data catalog which contains this dataset. * * - * @var \OpenActive\Models\SchemaOrg\DataDownload|string + * @var \OpenActive\Models\SchemaOrg\DataCatalog|string */ - protected $distribution; + protected $catalog; /** * The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication. @@ -103,102 +110,135 @@ public static function fieldList() { protected $includedInDataCatalog; /** - * @return \OpenActive\Models\SchemaOrg\DataCatalog|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - public function getCatalog() + public function getMeasurementTechnique() { - return $this->catalog; + return $this->measurementTechnique; } /** - * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $catalog + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCatalog($catalog) + public function setMeasurementTechnique($measurementTechnique) { $types = [ - "\OpenActive\Models\SchemaOrg\DataCatalog", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "null", ]; - $catalog = self::checkTypes($catalog, $types); + $measurementTechnique = self::checkTypes($measurementTechnique, $types); - $this->catalog = $catalog; + $this->measurementTechnique = $measurementTechnique; } /** - * @return \OpenActive\Models\SchemaOrg\DataCatalog|string + * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null */ - public function getIncludedDataCatalog() + public function getVariableMeasured() { - return $this->includedDataCatalog; + return $this->variableMeasured; } /** - * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $includedDataCatalog + * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null $variableMeasured * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludedDataCatalog($includedDataCatalog) + public function setVariableMeasured($variableMeasured) { $types = [ - "\OpenActive\Models\SchemaOrg\DataCatalog", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\StatisticalVariable", "string", + "\OpenActive\Enums\PropertyEnumeration", + "null", ]; - $includedDataCatalog = self::checkTypes($includedDataCatalog, $types); + $variableMeasured = self::checkTypes($variableMeasured, $types); - $this->includedDataCatalog = $includedDataCatalog; + $this->variableMeasured = $variableMeasured; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null */ - public function getVariableMeasured() + public function getMeasurementMethod() { - return $this->variableMeasured; + return $this->measurementMethod; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $variableMeasured + * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVariableMeasured($variableMeasured) + public function setMeasurementMethod($measurementMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", "string", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "null", ]; - $variableMeasured = self::checkTypes($variableMeasured, $types); + $measurementMethod = self::checkTypes($measurementMethod, $types); - $this->variableMeasured = $variableMeasured; + $this->measurementMethod = $measurementMethod; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DataDownload|string */ - public function getMeasurementTechnique() + public function getDistribution() { - return $this->measurementTechnique; + return $this->distribution; } /** - * @param string $measurementTechnique + * @param \OpenActive\Models\SchemaOrg\DataDownload|string $distribution * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMeasurementTechnique($measurementTechnique) + public function setDistribution($distribution) { $types = [ + "\OpenActive\Models\SchemaOrg\DataDownload", "string", ]; - $measurementTechnique = self::checkTypes($measurementTechnique, $types); + $distribution = self::checkTypes($distribution, $types); - $this->measurementTechnique = $measurementTechnique; + $this->distribution = $distribution; + } + + /** + * @return \OpenActive\Models\SchemaOrg\DataCatalog|string + */ + public function getIncludedDataCatalog() + { + return $this->includedDataCatalog; + } + + /** + * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $includedDataCatalog + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIncludedDataCatalog($includedDataCatalog) + { + $types = [ + "\OpenActive\Models\SchemaOrg\DataCatalog", + "string", + ]; + + $includedDataCatalog = self::checkTypes($includedDataCatalog, $types); + + $this->includedDataCatalog = $includedDataCatalog; } /** @@ -227,28 +267,28 @@ public function setDatasetTimeInterval($datasetTimeInterval) } /** - * @return \OpenActive\Models\SchemaOrg\DataDownload|string + * @return \OpenActive\Models\SchemaOrg\DataCatalog|string */ - public function getDistribution() + public function getCatalog() { - return $this->distribution; + return $this->catalog; } /** - * @param \OpenActive\Models\SchemaOrg\DataDownload|string $distribution + * @param \OpenActive\Models\SchemaOrg\DataCatalog|string $catalog * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDistribution($distribution) + public function setCatalog($catalog) { $types = [ - "\OpenActive\Models\SchemaOrg\DataDownload", + "\OpenActive\Models\SchemaOrg\DataCatalog", "string", ]; - $distribution = self::checkTypes($distribution, $types); + $catalog = self::checkTypes($catalog, $types); - $this->distribution = $distribution; + $this->catalog = $catalog; } /** diff --git a/src/Models/SchemaOrg/DatedMoneySpecification.php b/src/Models/SchemaOrg/DatedMoneySpecification.php index 4c29ff17..25f7102f 100644 --- a/src/Models/SchemaOrg/DatedMoneySpecification.php +++ b/src/Models/SchemaOrg/DatedMoneySpecification.php @@ -17,15 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ + "currency" => "currency", "startDate" => "startDate", "endDate" => "endDate", - "currency" => "currency", "amount" => "amount", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". + * + * + * @var string + */ + protected $currency; + /** * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * @@ -43,20 +51,36 @@ public static function fieldList() { protected $endDate; /** - * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The amount of money. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - protected $currency; + protected $amount; /** - * The amount of money. - * - * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return string */ - protected $amount; + public function getCurrency() + { + return $this->currency; + } + + /** + * @param string $currency + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCurrency($currency) + { + $types = [ + "string", + ]; + + $currency = self::checkTypes($currency, $types); + + $this->currency = $currency; + } /** * @return Date|DateTime|null @@ -111,31 +135,7 @@ public function setEndDate($endDate) } /** - * @return string - */ - public function getCurrency() - { - return $this->currency; - } - - /** - * @param string $currency - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setCurrency($currency) - { - $types = [ - "string", - ]; - - $currency = self::checkTypes($currency, $types); - - $this->currency = $currency; - } - - /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ public function getAmount() { @@ -143,16 +143,16 @@ public function getAmount() } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAmount($amount) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "Number", "null", ]; diff --git a/src/Models/SchemaOrg/DefinedRegion.php b/src/Models/SchemaOrg/DefinedRegion.php index ffbf2a32..1bfa819c 100644 --- a/src/Models/SchemaOrg/DefinedRegion.php +++ b/src/Models/SchemaOrg/DefinedRegion.php @@ -17,31 +17,31 @@ public static function getType() public static function fieldList() { $fields = [ + "postalCodePrefix" => "postalCodePrefix", "addressCountry" => "addressCountry", - "addressRegion" => "addressRegion", "postalCodeRange" => "postalCodeRange", - "postalCodePrefix" => "postalCodePrefix", "postalCode" => "postalCode", + "addressRegion" => "addressRegion", ]; return array_merge(parent::fieldList(), $fields); } /** - * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). + * A defined range of postal codes indicated by a common textual prefix. Used for non-numeric systems such as UK. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var string */ - protected $addressCountry; + protected $postalCodePrefix; /** - * The region in which the locality is, and which is in the country. For example, California or another appropriate first-level [Administrative division](https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country) + * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\Country */ - protected $addressRegion; + protected $addressCountry; /** * A defined range of postal codes. @@ -52,68 +52,68 @@ public static function fieldList() { protected $postalCodeRange; /** - * A defined range of postal codes indicated by a common textual prefix. Used for non-numeric systems such as UK. + * The postal code. For example, 94043. * * * @var string */ - protected $postalCodePrefix; + protected $postalCode; /** - * The postal code. For example, 94043. + * The region in which the locality is, and which is in the country. For example, California or another appropriate first-level [Administrative division](https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country). * * * @var string */ - protected $postalCode; + protected $addressRegion; /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string */ - public function getAddressCountry() + public function getPostalCodePrefix() { - return $this->addressCountry; + return $this->postalCodePrefix; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry + * @param string $postalCodePrefix * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddressCountry($addressCountry) + public function setPostalCodePrefix($postalCodePrefix) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $addressCountry = self::checkTypes($addressCountry, $types); + $postalCodePrefix = self::checkTypes($postalCodePrefix, $types); - $this->addressCountry = $addressCountry; + $this->postalCodePrefix = $postalCodePrefix; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Country */ - public function getAddressRegion() + public function getAddressCountry() { - return $this->addressRegion; + return $this->addressCountry; } /** - * @param string $addressRegion + * @param string|\OpenActive\Models\SchemaOrg\Country $addressCountry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddressRegion($addressRegion) + public function setAddressCountry($addressCountry) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Country", ]; - $addressRegion = self::checkTypes($addressRegion, $types); + $addressCountry = self::checkTypes($addressCountry, $types); - $this->addressRegion = $addressRegion; + $this->addressCountry = $addressCountry; } /** @@ -144,49 +144,49 @@ public function setPostalCodeRange($postalCodeRange) /** * @return string */ - public function getPostalCodePrefix() + public function getPostalCode() { - return $this->postalCodePrefix; + return $this->postalCode; } /** - * @param string $postalCodePrefix + * @param string $postalCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCodePrefix($postalCodePrefix) + public function setPostalCode($postalCode) { $types = [ "string", ]; - $postalCodePrefix = self::checkTypes($postalCodePrefix, $types); + $postalCode = self::checkTypes($postalCode, $types); - $this->postalCodePrefix = $postalCodePrefix; + $this->postalCode = $postalCode; } /** * @return string */ - public function getPostalCode() + public function getAddressRegion() { - return $this->postalCode; + return $this->addressRegion; } /** - * @param string $postalCode + * @param string $addressRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCode($postalCode) + public function setAddressRegion($addressRegion) { $types = [ "string", ]; - $postalCode = self::checkTypes($postalCode, $types); + $addressRegion = self::checkTypes($addressRegion, $types); - $this->postalCode = $postalCode; + $this->addressRegion = $addressRegion; } } diff --git a/src/Models/SchemaOrg/DefinedTerm.php b/src/Models/SchemaOrg/DefinedTerm.php index b6285c55..bd529e59 100644 --- a/src/Models/SchemaOrg/DefinedTerm.php +++ b/src/Models/SchemaOrg/DefinedTerm.php @@ -25,7 +25,7 @@ public static function fieldList() { } /** - * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]] + * A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]]. * * * @var string diff --git a/src/Models/SchemaOrg/DeliveryChargeSpecification.php b/src/Models/SchemaOrg/DeliveryChargeSpecification.php index fa5ca7f7..c0447ded 100644 --- a/src/Models/SchemaOrg/DeliveryChargeSpecification.php +++ b/src/Models/SchemaOrg/DeliveryChargeSpecification.php @@ -17,40 +17,32 @@ public static function getType() public static function fieldList() { $fields = [ - "ineligibleRegion" => "ineligibleRegion", "eligibleRegion" => "eligibleRegion", - "areaServed" => "areaServed", + "ineligibleRegion" => "ineligibleRegion", "appliesToDeliveryMethod" => "appliesToDeliveryMethod", + "areaServed" => "areaServed", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. - * - * - * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape - */ - protected $ineligibleRegion; - /** * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]]. * * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string */ protected $eligibleRegion; /** - * The geographic area where a service or offered item is provided. + * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. + * * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - protected $areaServed; + protected $ineligibleRegion; /** * The delivery method(s) to which the delivery charge or payment charge specification applies. @@ -61,33 +53,15 @@ public static function fieldList() { protected $appliesToDeliveryMethod; /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape - */ - public function getIneligibleRegion() - { - return $this->ineligibleRegion; - } - - /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The geographic area where a service or offered item is provided. + * + * + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ - public function setIneligibleRegion($ineligibleRegion) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", - "\OpenActive\Models\SchemaOrg\GeoShape", - ]; - - $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - - $this->ineligibleRegion = $ineligibleRegion; - } + protected $areaServed; /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string */ public function getEligibleRegion() { @@ -95,16 +69,16 @@ public function getEligibleRegion() } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string $eligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setEligibleRegion($eligibleRegion) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\GeoShape", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; $eligibleRegion = self::checkTypes($eligibleRegion, $types); @@ -113,30 +87,29 @@ public function setEligibleRegion($eligibleRegion) } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - public function getAreaServed() + public function getIneligibleRegion() { - return $this->areaServed; + return $this->ineligibleRegion; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setIneligibleRegion($ineligibleRegion) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", "string", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $areaServed = self::checkTypes($areaServed, $types); + $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - $this->areaServed = $areaServed; + $this->ineligibleRegion = $ineligibleRegion; } /** @@ -164,4 +137,31 @@ public function setAppliesToDeliveryMethod($appliesToDeliveryMethod) $this->appliesToDeliveryMethod = $appliesToDeliveryMethod; } + /** + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place + */ + public function getAreaServed() + { + return $this->areaServed; + } + + /** + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAreaServed($areaServed) + { + $types = [ + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "string", + "\OpenActive\Models\SchemaOrg\Place", + ]; + + $areaServed = self::checkTypes($areaServed, $types); + + $this->areaServed = $areaServed; + } + } diff --git a/src/Models/SchemaOrg/DeliveryEvent.php b/src/Models/SchemaOrg/DeliveryEvent.php index 2bb6ddc0..7a4f0e0a 100644 --- a/src/Models/SchemaOrg/DeliveryEvent.php +++ b/src/Models/SchemaOrg/DeliveryEvent.php @@ -17,22 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "accessCode" => "accessCode", + "availableFrom" => "availableFrom", "availableThrough" => "availableThrough", "hasDeliveryMethod" => "hasDeliveryMethod", - "availableFrom" => "availableFrom", + "accessCode" => "accessCode", ]; return array_merge(parent::fieldList(), $fields); } /** - * Password, PIN, or access code needed for delivery (e.g. from a locker). + * When the item is available for pickup from the store, locker, etc. * * - * @var string + * @var DateTime|null */ - protected $accessCode; + protected $availableFrom; /** * After this date, the item will no longer be available for pickup. @@ -51,35 +51,36 @@ public static function fieldList() { protected $hasDeliveryMethod; /** - * When the item is available for pickup from the store, locker, etc. + * Password, PIN, or access code needed for delivery (e.g. from a locker). * * - * @var DateTime|null + * @var string */ - protected $availableFrom; + protected $accessCode; /** - * @return string + * @return DateTime|null */ - public function getAccessCode() + public function getAvailableFrom() { - return $this->accessCode; + return $this->availableFrom; } /** - * @param string $accessCode + * @param DateTime|null $availableFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccessCode($accessCode) + public function setAvailableFrom($availableFrom) { $types = [ - "string", + "DateTime", + "null", ]; - $accessCode = self::checkTypes($accessCode, $types); + $availableFrom = self::checkTypes($availableFrom, $types); - $this->accessCode = $accessCode; + $this->availableFrom = $availableFrom; } /** @@ -133,28 +134,27 @@ public function setHasDeliveryMethod($hasDeliveryMethod) } /** - * @return DateTime|null + * @return string */ - public function getAvailableFrom() + public function getAccessCode() { - return $this->availableFrom; + return $this->accessCode; } /** - * @param DateTime|null $availableFrom + * @param string $accessCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableFrom($availableFrom) + public function setAccessCode($accessCode) { $types = [ - "DateTime", - "null", + "string", ]; - $availableFrom = self::checkTypes($availableFrom, $types); + $accessCode = self::checkTypes($accessCode, $types); - $this->availableFrom = $availableFrom; + $this->accessCode = $accessCode; } } diff --git a/src/Models/SchemaOrg/DeliveryTimeSettings.php b/src/Models/SchemaOrg/DeliveryTimeSettings.php index 3347721e..a34a1158 100644 --- a/src/Models/SchemaOrg/DeliveryTimeSettings.php +++ b/src/Models/SchemaOrg/DeliveryTimeSettings.php @@ -17,17 +17,25 @@ public static function getType() public static function fieldList() { $fields = [ + "deliveryTime" => "deliveryTime", "shippingDestination" => "shippingDestination", "transitTimeLabel" => "transitTimeLabel", "isUnlabelledFallback" => "isUnlabelledFallback", - "deliveryTime" => "deliveryTime", ]; return array_merge(parent::fieldList(), $fields); } /** - * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges. + * The total delay between the receipt of the order and the goods reaching the final customer. + * + * + * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + */ + protected $deliveryTime; + + /** + * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges. * * * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string @@ -51,12 +59,29 @@ public static function fieldList() { protected $isUnlabelledFallback; /** - * The total delay between the receipt of the order and the goods reaching the final customer. - * - * - * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string */ - protected $deliveryTime; + public function getDeliveryTime() + { + return $this->deliveryTime; + } + + /** + * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDeliveryTime($deliveryTime) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime", + "string", + ]; + + $deliveryTime = self::checkTypes($deliveryTime, $types); + + $this->deliveryTime = $deliveryTime; + } /** * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string @@ -132,29 +157,4 @@ public function setIsUnlabelledFallback($isUnlabelledFallback) $this->isUnlabelledFallback = $isUnlabelledFallback; } - /** - * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string - */ - public function getDeliveryTime() - { - return $this->deliveryTime; - } - - /** - * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setDeliveryTime($deliveryTime) - { - $types = [ - "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime", - "string", - ]; - - $deliveryTime = self::checkTypes($deliveryTime, $types); - - $this->deliveryTime = $deliveryTime; - } - } diff --git a/src/Models/SchemaOrg/Demand.php b/src/Models/SchemaOrg/Demand.php index 81f794fd..8ba4a482 100644 --- a/src/Models/SchemaOrg/Demand.php +++ b/src/Models/SchemaOrg/Demand.php @@ -17,198 +17,216 @@ public static function getType() public static function fieldList() { $fields = [ - "gtin12" => "gtin12", - "itemOffered" => "itemOffered", - "mpn" => "mpn", - "includesObject" => "includesObject", - "businessFunction" => "businessFunction", - "itemCondition" => "itemCondition", - "gtin" => "gtin", - "eligibleQuantity" => "eligibleQuantity", - "acceptedPaymentMethod" => "acceptedPaymentMethod", - "warranty" => "warranty", - "seller" => "seller", - "ineligibleRegion" => "ineligibleRegion", - "deliveryLeadTime" => "deliveryLeadTime", - "availableDeliveryMethod" => "availableDeliveryMethod", - "validFrom" => "validFrom", - "availabilityEnds" => "availabilityEnds", "eligibleRegion" => "eligibleRegion", + "deliveryLeadTime" => "deliveryLeadTime", "gtin8" => "gtin8", - "inventoryLevel" => "inventoryLevel", - "sku" => "sku", - "advanceBookingRequirement" => "advanceBookingRequirement", - "gtin14" => "gtin14", - "eligibleTransactionVolume" => "eligibleTransactionVolume", - "areaServed" => "areaServed", + "priceSpecification" => "priceSpecification", + "availableDeliveryMethod" => "availableDeliveryMethod", + "validThrough" => "validThrough", + "ineligibleRegion" => "ineligibleRegion", "eligibleCustomerType" => "eligibleCustomerType", - "availability" => "availability", + "inventoryLevel" => "inventoryLevel", "gtin13" => "gtin13", - "validThrough" => "validThrough", - "priceSpecification" => "priceSpecification", + "serialNumber" => "serialNumber", + "asin" => "asin", + "gtin" => "gtin", "availabilityStarts" => "availabilityStarts", - "eligibleDuration" => "eligibleDuration", + "businessFunction" => "businessFunction", + "mpn" => "mpn", + "eligibleTransactionVolume" => "eligibleTransactionVolume", "availableAtOrFrom" => "availableAtOrFrom", - "serialNumber" => "serialNumber", + "itemOffered" => "itemOffered", + "acceptedPaymentMethod" => "acceptedPaymentMethod", + "sku" => "sku", + "validFrom" => "validFrom", + "eligibleDuration" => "eligibleDuration", + "eligibleQuantity" => "eligibleQuantity", + "includesObject" => "includesObject", + "gtin14" => "gtin14", + "seller" => "seller", + "availability" => "availability", + "gtin12" => "gtin12", + "areaServed" => "areaServed", + "availabilityEnds" => "availabilityEnds", + "advanceBookingRequirement" => "advanceBookingRequirement", + "warranty" => "warranty", + "itemCondition" => "itemCondition", ]; return array_merge(parent::fieldList(), $fields); } /** - * The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]]. + * * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string */ - protected $gtin12; + protected $eligibleRegion; /** - * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. + * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup. * * - * @var \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $itemOffered; + protected $deliveryLeadTime; /** - * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. + * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * * @var string */ - protected $mpn; + protected $gtin8; /** - * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]]. + * One or more detailed price specifications, indicating the unit price and delivery or payment charges. * * - * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $includesObject; + protected $priceSpecification; /** - * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell. + * The delivery method(s) available for this offer. * * - * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $businessFunction; + protected $availableDeliveryMethod; /** - * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns. + * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. * * - * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @var Date|DateTime|null */ - protected $itemCondition; + protected $validThrough; /** - * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties. The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs. A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. - * + * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. + * * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - protected $gtin; + protected $ineligibleRegion; /** - * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity. + * The type(s) of customers for which the given offer is valid. + * + * + * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + */ + protected $eligibleCustomerType; + + /** + * The current approximate inventory level for the item or items. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $eligibleQuantity; + protected $inventoryLevel; /** - * The payment method(s) accepted by seller for this offer. + * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * - * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null + * @var string */ - protected $acceptedPaymentMethod; + protected $gtin13; /** - * The warranty promise(s) included in the offer. + * The serial number or any alphanumeric identifier of a particular product. When attached to an offer, it is a shortcut for the serial number of the product included in the offer. * * - * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @var string */ - protected $warranty; + protected $serialNumber; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization (summary from [Wikipedia](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)'s article). + * + * Note also that this is a definition for how to include ASINs in Schema.org data, and not a definition of ASINs in general - see documentation from Amazon for authoritative details. + * ASINs are most commonly encoded as text strings, but the [asin] property supports URL/URI as potential values too. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $seller; + protected $asin; /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. - * + * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes. + * + * A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties. + * + * The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) expresses GTINs as URLs (URIs, IRIs, etc.). + * Digital Links should be populated into the [[hasGS1DigitalLink]] attribute. + * + * Note also that this is a definition for how to include GTINs in Schema.org data, and not a definition of GTINs in general - see the GS1 documentation for authoritative details. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @var string */ - protected $ineligibleRegion; + protected $gtin; /** - * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup. + * The beginning of the availability of the product or service included in the offer. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Date|DateTime|string|null */ - protected $deliveryLeadTime; + protected $availabilityStarts; /** - * The delivery method(s) available for this offer. + * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - protected $availableDeliveryMethod; + protected $businessFunction; /** - * The date when the item becomes valid. + * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. * * - * @var Date|DateTime|null + * @var string */ - protected $validFrom; + protected $mpn; /** - * The end of the availability of the product or service included in the offer. + * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount. * * - * @var Date|DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $availabilityEnds; + protected $eligibleTransactionVolume; /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]]. - * + * The place(s) from which the offer can be obtained (e.g. store locations). * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $eligibleRegion; + protected $availableAtOrFrom; /** - * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $gtin8; + protected $itemOffered; /** - * The current approximate inventory level for the item or items. + * The payment method(s) that are accepted in general by an organization, or for some specific demand or offer. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null */ - protected $inventoryLevel; + protected $acceptedPaymentMethod; /** * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers. @@ -219,592 +237,614 @@ public static function fieldList() { protected $sku; /** - * The amount of time that is required between accepting the offer and the actual usage of the resource or service. + * The date when the item becomes valid. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Date|DateTime|null */ - protected $advanceBookingRequirement; + protected $validFrom; /** - * The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * The duration for which the given offer is valid. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $gtin14; + protected $eligibleDuration; /** - * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount. + * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $eligibleTransactionVolume; + protected $eligibleQuantity; /** - * The geographic area where a service or offered item is provided. + * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]]. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string */ - protected $areaServed; + protected $includesObject; /** - * The type(s) of customers for which the given offer is valid. + * The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * - * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + * @var string */ - protected $eligibleCustomerType; + protected $gtin14; /** - * The availability of this item—for example In stock, Out of stock, Pre-order, etc. + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * - * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $availability; + protected $seller; /** - * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * The availability of this item—for example In stock, Out of stock, Pre-order, etc. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\ItemAvailability|null */ - protected $gtin13; + protected $availability; /** - * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. + * The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * - * @var Date|DateTime|null + * @var string */ - protected $validThrough; + protected $gtin12; /** - * One or more detailed price specifications, indicating the unit price and delivery or payment charges. + * The geographic area where a service or offered item is provided. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ - protected $priceSpecification; + protected $areaServed; /** - * The beginning of the availability of the product or service included in the offer. + * The end of the availability of the product or service included in the offer. * * * @var Date|DateTime|string|null */ - protected $availabilityStarts; + protected $availabilityEnds; /** - * The duration for which the given offer is valid. + * The amount of time that is required between accepting the offer and the actual usage of the resource or service. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $eligibleDuration; + protected $advanceBookingRequirement; /** - * The place(s) from which the offer can be obtained (e.g. store locations). + * The warranty promise(s) included in the offer. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - protected $availableAtOrFrom; + protected $warranty; /** - * The serial number or any alphanumeric identifier of a particular product. When attached to an offer, it is a shortcut for the serial number of the product included in the offer. + * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - protected $serialNumber; + protected $itemCondition; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string */ - public function getGtin12() + public function getEligibleRegion() { - return $this->gtin12; + return $this->eligibleRegion; } /** - * @param string $gtin12 + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string $eligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin12($gtin12) + public function setEligibleRegion($eligibleRegion) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", "string", ]; - $gtin12 = self::checkTypes($gtin12, $types); + $eligibleRegion = self::checkTypes($eligibleRegion, $types); - $this->gtin12 = $gtin12; + $this->eligibleRegion = $eligibleRegion; } /** - * @return \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getItemOffered() + public function getDeliveryLeadTime() { - return $this->itemOffered; + return $this->deliveryLeadTime; } /** - * @param \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string $itemOffered + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemOffered($itemOffered) + public function setDeliveryLeadTime($deliveryLeadTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Trip", - "\OpenActive\Models\SchemaOrg\Event", - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\AggregateOffer", - "\OpenActive\Models\SchemaOrg\CreativeWork", - "\OpenActive\Models\SchemaOrg\MenuItem", - "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $itemOffered = self::checkTypes($itemOffered, $types); + $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); - $this->itemOffered = $itemOffered; + $this->deliveryLeadTime = $deliveryLeadTime; } /** * @return string */ - public function getMpn() + public function getGtin8() { - return $this->mpn; + return $this->gtin8; } /** - * @param string $mpn + * @param string $gtin8 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMpn($mpn) + public function setGtin8($gtin8) { $types = [ "string", ]; - $mpn = self::checkTypes($mpn, $types); + $gtin8 = self::checkTypes($gtin8, $types); - $this->mpn = $mpn; + $this->gtin8 = $gtin8; } /** - * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getIncludesObject() + public function getPriceSpecification() { - return $this->includesObject; + return $this->priceSpecification; } /** - * @param \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string $includesObject + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludesObject($includesObject) + public function setPriceSpecification($priceSpecification) { $types = [ - "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $includesObject = self::checkTypes($includesObject, $types); + $priceSpecification = self::checkTypes($priceSpecification, $types); - $this->includesObject = $includesObject; + $this->priceSpecification = $priceSpecification; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - public function getBusinessFunction() + public function getAvailableDeliveryMethod() { - return $this->businessFunction; + return $this->availableDeliveryMethod; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction + * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBusinessFunction($businessFunction) + public function setAvailableDeliveryMethod($availableDeliveryMethod) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessFunction", + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", "null", ]; - $businessFunction = self::checkTypes($businessFunction, $types); + $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); - $this->businessFunction = $businessFunction; + $this->availableDeliveryMethod = $availableDeliveryMethod; } /** - * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @return Date|DateTime|null */ - public function getItemCondition() + public function getValidThrough() { - return $this->itemCondition; + return $this->validThrough; } /** - * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition + * @param Date|DateTime|null $validThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemCondition($itemCondition) + public function setValidThrough($validThrough) { $types = [ - "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "Date", + "DateTime", "null", ]; - $itemCondition = self::checkTypes($itemCondition, $types); + $validThrough = self::checkTypes($validThrough, $types); - $this->itemCondition = $itemCondition; + $this->validThrough = $validThrough; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - public function getGtin() + public function getIneligibleRegion() { - return $this->gtin; + return $this->ineligibleRegion; } /** - * @param string $gtin + * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin($gtin) + public function setIneligibleRegion($ineligibleRegion) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $gtin = self::checkTypes($gtin, $types); + $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - $this->gtin = $gtin; + $this->ineligibleRegion = $ineligibleRegion; + } + + /** + * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + */ + public function getEligibleCustomerType() + { + return $this->eligibleCustomerType; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setEligibleCustomerType($eligibleCustomerType) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\BusinessEntityType", + "null", + ]; + + $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types); + + $this->eligibleCustomerType = $eligibleCustomerType; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEligibleQuantity() + public function getInventoryLevel() { - return $this->eligibleQuantity; + return $this->inventoryLevel; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleQuantity($eligibleQuantity) + public function setInventoryLevel($inventoryLevel) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); + $inventoryLevel = self::checkTypes($inventoryLevel, $types); - $this->eligibleQuantity = $eligibleQuantity; + $this->inventoryLevel = $inventoryLevel; } /** - * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null + * @return string */ - public function getAcceptedPaymentMethod() + public function getGtin13() { - return $this->acceptedPaymentMethod; + return $this->gtin13; } /** - * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod + * @param string $gtin13 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcceptedPaymentMethod($acceptedPaymentMethod) + public function setGtin13($gtin13) { $types = [ - "\OpenActive\Models\SchemaOrg\LoanOrCredit", - "\OpenActive\Enums\SchemaOrg\PaymentMethod", "string", - "null", ]; - $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); + $gtin13 = self::checkTypes($gtin13, $types); - $this->acceptedPaymentMethod = $acceptedPaymentMethod; + $this->gtin13 = $gtin13; } /** - * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @return string */ - public function getWarranty() + public function getSerialNumber() { - return $this->warranty; + return $this->serialNumber; } /** - * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty + * @param string $serialNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarranty($warranty) + public function setSerialNumber($serialNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\WarrantyPromise", "string", ]; - $warranty = self::checkTypes($warranty, $types); + $serialNumber = self::checkTypes($serialNumber, $types); - $this->warranty = $warranty; + $this->serialNumber = $serialNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getSeller() + public function getAsin() { - return $this->seller; + return $this->asin; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @param string $asin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeller($seller) + public function setAsin($asin) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $seller = self::checkTypes($seller, $types); + $asin = self::checkTypes($asin, $types); - $this->seller = $seller; + $this->asin = $asin; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @return string */ - public function getIneligibleRegion() + public function getGtin() { - return $this->ineligibleRegion; + return $this->gtin; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion + * @param string $gtin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIneligibleRegion($ineligibleRegion) + public function setGtin($gtin) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", - "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); + $gtin = self::checkTypes($gtin, $types); - $this->ineligibleRegion = $ineligibleRegion; + $this->gtin = $gtin; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Date|DateTime|string|null */ - public function getDeliveryLeadTime() + public function getAvailabilityStarts() { - return $this->deliveryLeadTime; + return $this->availabilityStarts; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime + * @param Date|DateTime|string|null $availabilityStarts * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeliveryLeadTime($deliveryLeadTime) + public function setAvailabilityStarts($availabilityStarts) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Date", + "DateTime", + "Time", + "null", ]; - $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); + $availabilityStarts = self::checkTypes($availabilityStarts, $types); - $this->deliveryLeadTime = $deliveryLeadTime; + $this->availabilityStarts = $availabilityStarts; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - public function getAvailableDeliveryMethod() + public function getBusinessFunction() { - return $this->availableDeliveryMethod; + return $this->businessFunction; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod + * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableDeliveryMethod($availableDeliveryMethod) + public function setBusinessFunction($businessFunction) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "\OpenActive\Enums\SchemaOrg\BusinessFunction", "null", ]; - $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); + $businessFunction = self::checkTypes($businessFunction, $types); - $this->availableDeliveryMethod = $availableDeliveryMethod; + $this->businessFunction = $businessFunction; } /** - * @return Date|DateTime|null + * @return string */ - public function getValidFrom() + public function getMpn() { - return $this->validFrom; + return $this->mpn; } /** - * @param Date|DateTime|null $validFrom + * @param string $mpn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidFrom($validFrom) + public function setMpn($mpn) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $validFrom = self::checkTypes($validFrom, $types); + $mpn = self::checkTypes($mpn, $types); - $this->validFrom = $validFrom; + $this->mpn = $mpn; } /** - * @return Date|DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getAvailabilityEnds() + public function getEligibleTransactionVolume() { - return $this->availabilityEnds; + return $this->eligibleTransactionVolume; } /** - * @param Date|DateTime|string|null $availabilityEnds + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailabilityEnds($availabilityEnds) + public function setEligibleTransactionVolume($eligibleTransactionVolume) { $types = [ - "Date", - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", ]; - $availabilityEnds = self::checkTypes($availabilityEnds, $types); + $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); - $this->availabilityEnds = $availabilityEnds; + $this->eligibleTransactionVolume = $eligibleTransactionVolume; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getEligibleRegion() + public function getAvailableAtOrFrom() { - return $this->eligibleRegion; + return $this->availableAtOrFrom; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion + * @param \OpenActive\Models\SchemaOrg\Place|string $availableAtOrFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleRegion($eligibleRegion) + public function setAvailableAtOrFrom($availableAtOrFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", - "string", "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $eligibleRegion = self::checkTypes($eligibleRegion, $types); + $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types); - $this->eligibleRegion = $eligibleRegion; + $this->availableAtOrFrom = $availableAtOrFrom; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getGtin8() + public function getItemOffered() { - return $this->gtin8; + return $this->itemOffered; } /** - * @param string $gtin8 + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string $itemOffered * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin8($gtin8) + public function setItemOffered($itemOffered) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Trip", + "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\MenuItem", + "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\AggregateOffer", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $gtin8 = self::checkTypes($gtin8, $types); + $itemOffered = self::checkTypes($itemOffered, $types); - $this->gtin8 = $gtin8; + $this->itemOffered = $itemOffered; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null */ - public function getInventoryLevel() + public function getAcceptedPaymentMethod() { - return $this->inventoryLevel; + return $this->acceptedPaymentMethod; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel + * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInventoryLevel($inventoryLevel) + public function setAcceptedPaymentMethod($acceptedPaymentMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\LoanOrCredit", + "\OpenActive\Enums\SchemaOrg\PaymentMethod", "string", + "null", ]; - $inventoryLevel = self::checkTypes($inventoryLevel, $types); + $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); - $this->inventoryLevel = $inventoryLevel; + $this->acceptedPaymentMethod = $acceptedPaymentMethod; } /** @@ -832,245 +872,246 @@ public function setSku($sku) } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Date|DateTime|null */ - public function getAdvanceBookingRequirement() + public function getValidFrom() { - return $this->advanceBookingRequirement; + return $this->validFrom; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement + * @param Date|DateTime|null $validFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdvanceBookingRequirement($advanceBookingRequirement) + public function setValidFrom($validFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Date", + "DateTime", + "null", ]; - $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types); + $validFrom = self::checkTypes($validFrom, $types); - $this->advanceBookingRequirement = $advanceBookingRequirement; + $this->validFrom = $validFrom; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getGtin14() + public function getEligibleDuration() { - return $this->gtin14; + return $this->eligibleDuration; } /** - * @param string $gtin14 + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleDuration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin14($gtin14) + public function setEligibleDuration($eligibleDuration) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $gtin14 = self::checkTypes($gtin14, $types); + $eligibleDuration = self::checkTypes($eligibleDuration, $types); - $this->gtin14 = $gtin14; + $this->eligibleDuration = $eligibleDuration; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEligibleTransactionVolume() + public function getEligibleQuantity() { - return $this->eligibleTransactionVolume; + return $this->eligibleQuantity; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleTransactionVolume($eligibleTransactionVolume) + public function setEligibleQuantity($eligibleQuantity) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); + $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); - $this->eligibleTransactionVolume = $eligibleTransactionVolume; + $this->eligibleQuantity = $eligibleQuantity; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string */ - public function getAreaServed() + public function getIncludesObject() { - return $this->areaServed; + return $this->includesObject; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string $includesObject * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setIncludesObject($includesObject) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $areaServed = self::checkTypes($areaServed, $types); + $includesObject = self::checkTypes($includesObject, $types); - $this->areaServed = $areaServed; + $this->includesObject = $includesObject; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + * @return string */ - public function getEligibleCustomerType() + public function getGtin14() { - return $this->eligibleCustomerType; + return $this->gtin14; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType + * @param string $gtin14 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleCustomerType($eligibleCustomerType) + public function setGtin14($gtin14) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessEntityType", - "null", + "string", ]; - $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types); + $gtin14 = self::checkTypes($gtin14, $types); - $this->eligibleCustomerType = $eligibleCustomerType; + $this->gtin14 = $gtin14; } /** - * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getAvailability() + public function getSeller() { - return $this->availability; + return $this->seller; } /** - * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $seller * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailability($availability) + public function setSeller($seller) { $types = [ - "\OpenActive\Enums\SchemaOrg\ItemAvailability", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $availability = self::checkTypes($availability, $types); + $seller = self::checkTypes($seller, $types); - $this->availability = $availability; + $this->seller = $seller; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null */ - public function getGtin13() + public function getAvailability() { - return $this->gtin13; + return $this->availability; } /** - * @param string $gtin13 + * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin13($gtin13) + public function setAvailability($availability) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\ItemAvailability", + "null", ]; - $gtin13 = self::checkTypes($gtin13, $types); + $availability = self::checkTypes($availability, $types); - $this->gtin13 = $gtin13; + $this->availability = $availability; } /** - * @return Date|DateTime|null + * @return string */ - public function getValidThrough() + public function getGtin12() { - return $this->validThrough; + return $this->gtin12; } /** - * @param Date|DateTime|null $validThrough + * @param string $gtin12 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidThrough($validThrough) + public function setGtin12($gtin12) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $validThrough = self::checkTypes($validThrough, $types); + $gtin12 = self::checkTypes($gtin12, $types); - $this->validThrough = $validThrough; + $this->gtin12 = $gtin12; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ - public function getPriceSpecification() + public function getAreaServed() { - return $this->priceSpecification; + return $this->areaServed; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place $areaServed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceSpecification($priceSpecification) + public function setAreaServed($areaServed) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", + "\OpenActive\Models\SchemaOrg\Place", ]; - $priceSpecification = self::checkTypes($priceSpecification, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->priceSpecification = $priceSpecification; + $this->areaServed = $areaServed; } /** * @return Date|DateTime|string|null */ - public function getAvailabilityStarts() + public function getAvailabilityEnds() { - return $this->availabilityStarts; + return $this->availabilityEnds; } /** - * @param Date|DateTime|string|null $availabilityStarts + * @param Date|DateTime|string|null $availabilityEnds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailabilityStarts($availabilityStarts) + public function setAvailabilityEnds($availabilityEnds) { $types = [ "Date", @@ -1079,83 +1120,84 @@ public function setAvailabilityStarts($availabilityStarts) "null", ]; - $availabilityStarts = self::checkTypes($availabilityStarts, $types); + $availabilityEnds = self::checkTypes($availabilityEnds, $types); - $this->availabilityStarts = $availabilityStarts; + $this->availabilityEnds = $availabilityEnds; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEligibleDuration() + public function getAdvanceBookingRequirement() { - return $this->eligibleDuration; + return $this->advanceBookingRequirement; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleDuration + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleDuration($eligibleDuration) + public function setAdvanceBookingRequirement($advanceBookingRequirement) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $eligibleDuration = self::checkTypes($eligibleDuration, $types); + $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types); - $this->eligibleDuration = $eligibleDuration; + $this->advanceBookingRequirement = $advanceBookingRequirement; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - public function getAvailableAtOrFrom() + public function getWarranty() { - return $this->availableAtOrFrom; + return $this->warranty; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $availableAtOrFrom + * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableAtOrFrom($availableAtOrFrom) + public function setWarranty($warranty) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\WarrantyPromise", "string", ]; - $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types); + $warranty = self::checkTypes($warranty, $types); - $this->availableAtOrFrom = $availableAtOrFrom; + $this->warranty = $warranty; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - public function getSerialNumber() + public function getItemCondition() { - return $this->serialNumber; + return $this->itemCondition; } /** - * @param string $serialNumber + * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSerialNumber($serialNumber) + public function setItemCondition($itemCondition) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "null", ]; - $serialNumber = self::checkTypes($serialNumber, $types); + $itemCondition = self::checkTypes($itemCondition, $types); - $this->serialNumber = $serialNumber; + $this->itemCondition = $itemCondition; } } diff --git a/src/Models/SchemaOrg/Dentist.php b/src/Models/SchemaOrg/Dentist.php index bf1c01cb..c137790d 100644 --- a/src/Models/SchemaOrg/Dentist.php +++ b/src/Models/SchemaOrg/Dentist.php @@ -5,7 +5,7 @@ /** * */ -class Dentist extends \OpenActive\Models\SchemaOrg\MedicalOrganization +class Dentist extends \OpenActive\Models\SchemaOrg\LocalBusiness { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/DepositAccount.php b/src/Models/SchemaOrg/DepositAccount.php index 20cc5638..7ac033b1 100644 --- a/src/Models/SchemaOrg/DepositAccount.php +++ b/src/Models/SchemaOrg/DepositAccount.php @@ -5,7 +5,7 @@ /** * */ -class DepositAccount extends \OpenActive\Models\SchemaOrg\InvestmentOrDeposit +class DepositAccount extends \OpenActive\Models\SchemaOrg\BankAccount { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/Diet.php b/src/Models/SchemaOrg/Diet.php index 52d35b52..677e0326 100644 --- a/src/Models/SchemaOrg/Diet.php +++ b/src/Models/SchemaOrg/Diet.php @@ -5,7 +5,7 @@ /** * */ -class Diet extends \OpenActive\Models\SchemaOrg\LifestyleModification +class Diet extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -17,176 +17,176 @@ public static function getType() public static function fieldList() { $fields = [ + "endorsers" => "endorsers", + "dietFeatures" => "dietFeatures", "expertConsiderations" => "expertConsiderations", "risks" => "risks", "physiologicalBenefits" => "physiologicalBenefits", - "endorsers" => "endorsers", - "dietFeatures" => "dietFeatures", ]; return array_merge(parent::fieldList(), $fields); } /** - * Medical expert advice related to the plan. + * People or organizations that endorse the plan. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $expertConsiderations; + protected $endorsers; /** - * Specific physiologic risks associated to the diet plan. + * Nutritional information specific to the dietary plan. May include dietary recommendations on what foods to avoid, what foods to consume, and specific alterations/deviations from the USDA or other regulatory body's approved dietary guidelines. * * * @var string */ - protected $risks; + protected $dietFeatures; /** - * Specific physiologic benefits associated to the plan. + * Medical expert advice related to the plan. * * * @var string */ - protected $physiologicalBenefits; + protected $expertConsiderations; /** - * People or organizations that endorse the plan. + * Specific physiologic risks associated to the diet plan. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $endorsers; + protected $risks; /** - * Nutritional information specific to the dietary plan. May include dietary recommendations on what foods to avoid, what foods to consume, and specific alterations/deviations from the USDA or other regulatory body's approved dietary guidelines. + * Specific physiologic benefits associated to the plan. * * * @var string */ - protected $dietFeatures; + protected $physiologicalBenefits; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getExpertConsiderations() + public function getEndorsers() { - return $this->expertConsiderations; + return $this->endorsers; } /** - * @param string $expertConsiderations + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $endorsers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpertConsiderations($expertConsiderations) + public function setEndorsers($endorsers) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $expertConsiderations = self::checkTypes($expertConsiderations, $types); + $endorsers = self::checkTypes($endorsers, $types); - $this->expertConsiderations = $expertConsiderations; + $this->endorsers = $endorsers; } /** * @return string */ - public function getRisks() + public function getDietFeatures() { - return $this->risks; + return $this->dietFeatures; } /** - * @param string $risks + * @param string $dietFeatures * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRisks($risks) + public function setDietFeatures($dietFeatures) { $types = [ "string", ]; - $risks = self::checkTypes($risks, $types); + $dietFeatures = self::checkTypes($dietFeatures, $types); - $this->risks = $risks; + $this->dietFeatures = $dietFeatures; } /** * @return string */ - public function getPhysiologicalBenefits() + public function getExpertConsiderations() { - return $this->physiologicalBenefits; + return $this->expertConsiderations; } /** - * @param string $physiologicalBenefits + * @param string $expertConsiderations * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPhysiologicalBenefits($physiologicalBenefits) + public function setExpertConsiderations($expertConsiderations) { $types = [ "string", ]; - $physiologicalBenefits = self::checkTypes($physiologicalBenefits, $types); + $expertConsiderations = self::checkTypes($expertConsiderations, $types); - $this->physiologicalBenefits = $physiologicalBenefits; + $this->expertConsiderations = $expertConsiderations; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getEndorsers() + public function getRisks() { - return $this->endorsers; + return $this->risks; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $endorsers + * @param string $risks * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndorsers($endorsers) + public function setRisks($risks) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $endorsers = self::checkTypes($endorsers, $types); + $risks = self::checkTypes($risks, $types); - $this->endorsers = $endorsers; + $this->risks = $risks; } /** * @return string */ - public function getDietFeatures() + public function getPhysiologicalBenefits() { - return $this->dietFeatures; + return $this->physiologicalBenefits; } /** - * @param string $dietFeatures + * @param string $physiologicalBenefits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDietFeatures($dietFeatures) + public function setPhysiologicalBenefits($physiologicalBenefits) { $types = [ "string", ]; - $dietFeatures = self::checkTypes($dietFeatures, $types); + $physiologicalBenefits = self::checkTypes($physiologicalBenefits, $types); - $this->dietFeatures = $dietFeatures; + $this->physiologicalBenefits = $physiologicalBenefits; } } diff --git a/src/Models/SchemaOrg/DietarySupplement.php b/src/Models/SchemaOrg/DietarySupplement.php index c611c6e1..c22aba5c 100644 --- a/src/Models/SchemaOrg/DietarySupplement.php +++ b/src/Models/SchemaOrg/DietarySupplement.php @@ -5,7 +5,7 @@ /** * */ -class DietarySupplement extends \OpenActive\Models\SchemaOrg\Substance +class DietarySupplement extends \OpenActive\Models\SchemaOrg\Product { /** * @return string[]|null @@ -18,16 +18,15 @@ public static function getType() public static function fieldList() { $fields = [ "targetPopulation" => "targetPopulation", - "recommendedIntake" => "recommendedIntake", - "legalStatus" => "legalStatus", - "mechanismOfAction" => "mechanismOfAction", - "maximumIntake" => "maximumIntake", - "activeIngredient" => "activeIngredient", "proprietaryName" => "proprietaryName", + "activeIngredient" => "activeIngredient", "nonProprietaryName" => "nonProprietaryName", - "manufacturer" => "manufacturer", + "recommendedIntake" => "recommendedIntake", + "maximumIntake" => "maximumIntake", + "legalStatus" => "legalStatus", "isProprietary" => "isProprietary", "safetyConsideration" => "safetyConsideration", + "mechanismOfAction" => "mechanismOfAction", ]; return array_merge(parent::fieldList(), $fields); @@ -42,68 +41,52 @@ public static function fieldList() { protected $targetPopulation; /** - * Recommended intake of this supplement for a given population as defined by a specific recommending authority. - * - * - * @var \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string - */ - protected $recommendedIntake; - - /** - * The drug or supplement's legal status, including any controlled substance schedules that apply. - * - * - * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null - */ - protected $legalStatus; - - /** - * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect. + * Proprietary name given to the diet plan, typically by its originator or creator. * * * @var string */ - protected $mechanismOfAction; + protected $proprietaryName; /** - * Recommended intake of this supplement for a given population as defined by a specific recommending authority. + * An active ingredient, typically chemical compounds and/or biologic substances. * * - * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string + * @var string */ - protected $maximumIntake; + protected $activeIngredient; /** - * An active ingredient, typically chemical compounds and/or biologic substances. + * The generic name of this drug or supplement. * * * @var string */ - protected $activeIngredient; + protected $nonProprietaryName; /** - * Proprietary name given to the diet plan, typically by its originator or creator. + * Recommended intake of this supplement for a given population as defined by a specific recommending authority. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string */ - protected $proprietaryName; + protected $recommendedIntake; /** - * The generic name of this drug or supplement. + * Recommended intake of this supplement for a given population as defined by a specific recommending authority. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string */ - protected $nonProprietaryName; + protected $maximumIntake; /** - * The manufacturer of the product. + * The drug or supplement's legal status, including any controlled substance schedules that apply. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null */ - protected $manufacturer; + protected $legalStatus; /** * True if this item's name is a proprietary/brand name (vs. generic name). @@ -121,6 +104,14 @@ public static function fieldList() { */ protected $safetyConsideration; + /** + * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect. + * + * + * @var string + */ + protected $mechanismOfAction; + /** * @return string */ @@ -146,250 +137,225 @@ public function setTargetPopulation($targetPopulation) } /** - * @return \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string + * @return string */ - public function getRecommendedIntake() + public function getProprietaryName() { - return $this->recommendedIntake; + return $this->proprietaryName; } /** - * @param \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string $recommendedIntake + * @param string $proprietaryName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecommendedIntake($recommendedIntake) + public function setProprietaryName($proprietaryName) { $types = [ - "\OpenActive\Models\SchemaOrg\RecommendedDoseSchedule", "string", ]; - $recommendedIntake = self::checkTypes($recommendedIntake, $types); + $proprietaryName = self::checkTypes($proprietaryName, $types); - $this->recommendedIntake = $recommendedIntake; + $this->proprietaryName = $proprietaryName; } /** - * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null + * @return string */ - public function getLegalStatus() + public function getActiveIngredient() { - return $this->legalStatus; + return $this->activeIngredient; } /** - * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus + * @param string $activeIngredient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegalStatus($legalStatus) + public function setActiveIngredient($activeIngredient) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugLegalStatus", "string", - "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", - "null", ]; - $legalStatus = self::checkTypes($legalStatus, $types); + $activeIngredient = self::checkTypes($activeIngredient, $types); - $this->legalStatus = $legalStatus; + $this->activeIngredient = $activeIngredient; } /** * @return string */ - public function getMechanismOfAction() + public function getNonProprietaryName() { - return $this->mechanismOfAction; + return $this->nonProprietaryName; } /** - * @param string $mechanismOfAction + * @param string $nonProprietaryName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMechanismOfAction($mechanismOfAction) + public function setNonProprietaryName($nonProprietaryName) { $types = [ "string", ]; - $mechanismOfAction = self::checkTypes($mechanismOfAction, $types); + $nonProprietaryName = self::checkTypes($nonProprietaryName, $types); - $this->mechanismOfAction = $mechanismOfAction; + $this->nonProprietaryName = $nonProprietaryName; } /** - * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string + * @return \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string */ - public function getMaximumIntake() + public function getRecommendedIntake() { - return $this->maximumIntake; + return $this->recommendedIntake; } /** - * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake + * @param \OpenActive\Models\SchemaOrg\RecommendedDoseSchedule|string $recommendedIntake * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumIntake($maximumIntake) + public function setRecommendedIntake($recommendedIntake) { $types = [ - "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule", + "\OpenActive\Models\SchemaOrg\RecommendedDoseSchedule", "string", ]; - $maximumIntake = self::checkTypes($maximumIntake, $types); + $recommendedIntake = self::checkTypes($recommendedIntake, $types); - $this->maximumIntake = $maximumIntake; + $this->recommendedIntake = $recommendedIntake; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string */ - public function getActiveIngredient() + public function getMaximumIntake() { - return $this->activeIngredient; + return $this->maximumIntake; } /** - * @param string $activeIngredient + * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActiveIngredient($activeIngredient) + public function setMaximumIntake($maximumIntake) { $types = [ + "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule", "string", ]; - $activeIngredient = self::checkTypes($activeIngredient, $types); + $maximumIntake = self::checkTypes($maximumIntake, $types); - $this->activeIngredient = $activeIngredient; + $this->maximumIntake = $maximumIntake; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null */ - public function getProprietaryName() + public function getLegalStatus() { - return $this->proprietaryName; + return $this->legalStatus; } /** - * @param string $proprietaryName + * @param \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null $legalStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProprietaryName($proprietaryName) + public function setLegalStatus($legalStatus) { $types = [ + "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", + "\OpenActive\Models\SchemaOrg\DrugLegalStatus", "string", + "null", ]; - $proprietaryName = self::checkTypes($proprietaryName, $types); + $legalStatus = self::checkTypes($legalStatus, $types); - $this->proprietaryName = $proprietaryName; + $this->legalStatus = $legalStatus; } /** - * @return string + * @return bool|null */ - public function getNonProprietaryName() + public function getIsProprietary() { - return $this->nonProprietaryName; + return $this->isProprietary; } /** - * @param string $nonProprietaryName + * @param bool|null $isProprietary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNonProprietaryName($nonProprietaryName) + public function setIsProprietary($isProprietary) { $types = [ - "string", + "bool", + "null", ]; - $nonProprietaryName = self::checkTypes($nonProprietaryName, $types); + $isProprietary = self::checkTypes($isProprietary, $types); - $this->nonProprietaryName = $nonProprietaryName; + $this->isProprietary = $isProprietary; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getManufacturer() + public function getSafetyConsideration() { - return $this->manufacturer; + return $this->safetyConsideration; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer + * @param string $safetyConsideration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setManufacturer($manufacturer) + public function setSafetyConsideration($safetyConsideration) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $manufacturer = self::checkTypes($manufacturer, $types); - - $this->manufacturer = $manufacturer; - } - - /** - * @return bool|null - */ - public function getIsProprietary() - { - return $this->isProprietary; - } - - /** - * @param bool|null $isProprietary - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setIsProprietary($isProprietary) - { - $types = [ - "bool", - "null", - ]; - - $isProprietary = self::checkTypes($isProprietary, $types); + $safetyConsideration = self::checkTypes($safetyConsideration, $types); - $this->isProprietary = $isProprietary; + $this->safetyConsideration = $safetyConsideration; } /** * @return string */ - public function getSafetyConsideration() + public function getMechanismOfAction() { - return $this->safetyConsideration; + return $this->mechanismOfAction; } /** - * @param string $safetyConsideration + * @param string $mechanismOfAction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSafetyConsideration($safetyConsideration) + public function setMechanismOfAction($mechanismOfAction) { $types = [ "string", ]; - $safetyConsideration = self::checkTypes($safetyConsideration, $types); + $mechanismOfAction = self::checkTypes($mechanismOfAction, $types); - $this->safetyConsideration = $safetyConsideration; + $this->mechanismOfAction = $mechanismOfAction; } } diff --git a/src/Models/SchemaOrg/DigitalDocumentPermission.php b/src/Models/SchemaOrg/DigitalDocumentPermission.php index 894e5b04..98f440ac 100644 --- a/src/Models/SchemaOrg/DigitalDocumentPermission.php +++ b/src/Models/SchemaOrg/DigitalDocumentPermission.php @@ -28,7 +28,7 @@ public static function fieldList() { * The person, organization, contact point, or audience that has been granted this permission. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string */ protected $grantee; @@ -41,7 +41,7 @@ public static function fieldList() { protected $permissionType; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string */ public function getGrantee() { @@ -49,7 +49,7 @@ public function getGrantee() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $grantee + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string $grantee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -58,8 +58,8 @@ public function setGrantee($grantee) $types = [ "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; diff --git a/src/Models/SchemaOrg/DonateAction.php b/src/Models/SchemaOrg/DonateAction.php index b95e3cae..7fef2f76 100644 --- a/src/Models/SchemaOrg/DonateAction.php +++ b/src/Models/SchemaOrg/DonateAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ public function getRecipient() { @@ -40,17 +40,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRecipient($recipient) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; diff --git a/src/Models/SchemaOrg/DoseSchedule.php b/src/Models/SchemaOrg/DoseSchedule.php index cd5742d8..466e6912 100644 --- a/src/Models/SchemaOrg/DoseSchedule.php +++ b/src/Models/SchemaOrg/DoseSchedule.php @@ -17,143 +17,143 @@ public static function getType() public static function fieldList() { $fields = [ - "targetPopulation" => "targetPopulation", - "frequency" => "frequency", "doseUnit" => "doseUnit", + "targetPopulation" => "targetPopulation", "doseValue" => "doseValue", + "frequency" => "frequency", ]; return array_merge(parent::fieldList(), $fields); } /** - * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'. + * The unit of the dose, e.g. 'mg'. * * * @var string */ - protected $targetPopulation; + protected $doseUnit; /** - * How often the dose is taken, e.g. 'daily'. + * Characteristics of the population for which this is intended, or which typically uses it, e.g. 'adults'. * * * @var string */ - protected $frequency; + protected $targetPopulation; /** - * The unit of the dose, e.g. 'mg'. + * The value of the dose, e.g. 500. * * - * @var string + * @var Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - protected $doseUnit; + protected $doseValue; /** - * The value of the dose, e.g. 500. + * How often the dose is taken, e.g. 'daily'. * * - * @var Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var string */ - protected $doseValue; + protected $frequency; /** * @return string */ - public function getTargetPopulation() + public function getDoseUnit() { - return $this->targetPopulation; + return $this->doseUnit; } /** - * @param string $targetPopulation + * @param string $doseUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTargetPopulation($targetPopulation) + public function setDoseUnit($doseUnit) { $types = [ "string", ]; - $targetPopulation = self::checkTypes($targetPopulation, $types); + $doseUnit = self::checkTypes($doseUnit, $types); - $this->targetPopulation = $targetPopulation; + $this->doseUnit = $doseUnit; } /** * @return string */ - public function getFrequency() + public function getTargetPopulation() { - return $this->frequency; + return $this->targetPopulation; } /** - * @param string $frequency + * @param string $targetPopulation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFrequency($frequency) + public function setTargetPopulation($targetPopulation) { $types = [ "string", ]; - $frequency = self::checkTypes($frequency, $types); + $targetPopulation = self::checkTypes($targetPopulation, $types); - $this->frequency = $frequency; + $this->targetPopulation = $targetPopulation; } /** - * @return string + * @return Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - public function getDoseUnit() + public function getDoseValue() { - return $this->doseUnit; + return $this->doseValue; } /** - * @param string $doseUnit + * @param Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $doseValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoseUnit($doseUnit) + public function setDoseValue($doseValue) { $types = [ - "string", + "Number", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "null", ]; - $doseUnit = self::checkTypes($doseUnit, $types); + $doseValue = self::checkTypes($doseValue, $types); - $this->doseUnit = $doseUnit; + $this->doseValue = $doseValue; } /** - * @return Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return string */ - public function getDoseValue() + public function getFrequency() { - return $this->doseValue; + return $this->frequency; } /** - * @param Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $doseValue + * @param string $frequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoseValue($doseValue) + public function setFrequency($frequency) { $types = [ - "Number", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "null", + "string", ]; - $doseValue = self::checkTypes($doseValue, $types); + $frequency = self::checkTypes($frequency, $types); - $this->doseValue = $doseValue; + $this->frequency = $frequency; } } diff --git a/src/Models/SchemaOrg/Drug.php b/src/Models/SchemaOrg/Drug.php index b48cecd6..2b9c420c 100644 --- a/src/Models/SchemaOrg/Drug.php +++ b/src/Models/SchemaOrg/Drug.php @@ -5,7 +5,7 @@ /** * */ -class Drug extends \OpenActive\Models\SchemaOrg\Substance +class Drug extends \OpenActive\Models\SchemaOrg\Product { /** * @return string[]|null @@ -17,121 +17,120 @@ public static function getType() public static function fieldList() { $fields = [ - "pregnancyCategory" => "pregnancyCategory", - "overdosage" => "overdosage", - "legalStatus" => "legalStatus", - "mechanismOfAction" => "mechanismOfAction", + "administrationRoute" => "administrationRoute", + "breastfeedingWarning" => "breastfeedingWarning", "clinicalPharmacology" => "clinicalPharmacology", - "rxcui" => "rxcui", - "interactingDrug" => "interactingDrug", - "dosageForm" => "dosageForm", "labelDetails" => "labelDetails", - "maximumIntake" => "maximumIntake", - "activeIngredient" => "activeIngredient", - "relatedDrug" => "relatedDrug", - "administrationRoute" => "administrationRoute", - "drugUnit" => "drugUnit", - "foodWarning" => "foodWarning", "warning" => "warning", - "prescriptionStatus" => "prescriptionStatus", + "includedInHealthInsurancePlan" => "includedInHealthInsurancePlan", "proprietaryName" => "proprietaryName", + "drugUnit" => "drugUnit", + "prescriptionStatus" => "prescriptionStatus", "drugClass" => "drugClass", - "prescribingInfo" => "prescribingInfo", - "includedInHealthInsurancePlan" => "includedInHealthInsurancePlan", + "activeIngredient" => "activeIngredient", "nonProprietaryName" => "nonProprietaryName", - "manufacturer" => "manufacturer", - "isProprietary" => "isProprietary", + "alcoholWarning" => "alcoholWarning", + "interactingDrug" => "interactingDrug", + "availableStrength" => "availableStrength", "clincalPharmacology" => "clincalPharmacology", + "prescribingInfo" => "prescribingInfo", + "maximumIntake" => "maximumIntake", + "legalStatus" => "legalStatus", + "isProprietary" => "isProprietary", + "pregnancyCategory" => "pregnancyCategory", + "rxcui" => "rxcui", + "doseSchedule" => "doseSchedule", + "overdosage" => "overdosage", + "dosageForm" => "dosageForm", + "relatedDrug" => "relatedDrug", "isAvailableGenerically" => "isAvailableGenerically", - "breastfeedingWarning" => "breastfeedingWarning", + "foodWarning" => "foodWarning", + "mechanismOfAction" => "mechanismOfAction", "pregnancyWarning" => "pregnancyWarning", - "alcoholWarning" => "alcoholWarning", - "doseSchedule" => "doseSchedule", - "availableStrength" => "availableStrength", ]; return array_merge(parent::fieldList(), $fields); } /** - * Pregnancy category of this drug. + * A route by which this drug may be administered, e.g. 'oral'. * * - * @var \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string + * @var string */ - protected $pregnancyCategory; + protected $administrationRoute; /** - * Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response. + * Any precaution, guidance, contraindication, etc. related to this drug's use by breastfeeding mothers. * * * @var string */ - protected $overdosage; + protected $breastfeedingWarning; /** - * The drug or supplement's legal status, including any controlled substance schedules that apply. + * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD). * * - * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null + * @var string */ - protected $legalStatus; + protected $clinicalPharmacology; /** - * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect. + * Link to the drug's label details. * * * @var string */ - protected $mechanismOfAction; + protected $labelDetails; /** - * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD). + * Any FDA or other warnings about the drug (text or URL). * * * @var string */ - protected $clinicalPharmacology; + protected $warning; /** - * The RxCUI drug identifier from RXNORM. + * The insurance plans that cover this drug. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string */ - protected $rxcui; + protected $includedInHealthInsurancePlan; /** - * Another drug that is known to interact with this drug in a way that impacts the effect of this drug or causes a risk to the patient. Note: disease interactions are typically captured as contraindications. + * Proprietary name given to the diet plan, typically by its originator or creator. * * - * @var \OpenActive\Models\SchemaOrg\Drug|string + * @var string */ - protected $interactingDrug; + protected $proprietaryName; /** - * A dosage form in which this drug/supplement is available, e.g. 'tablet', 'suspension', 'injection'. + * The unit in which the drug is measured, e.g. '5 mg tablet'. * * * @var string */ - protected $dosageForm; + protected $drugUnit; /** - * Link to the drug's label details. + * Indicates the status of drug prescription, e.g. local catalogs classifications or whether the drug is available by prescription or over-the-counter, etc. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus */ - protected $labelDetails; + protected $prescriptionStatus; /** - * Recommended intake of this supplement for a given population as defined by a specific recommending authority. + * The class of drug this belongs to (e.g., statins). * * - * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string + * @var \OpenActive\Models\SchemaOrg\DrugClass|string */ - protected $maximumIntake; + protected $drugClass; /** * An active ingredient, typically chemical compounds and/or biologic substances. @@ -142,409 +141,398 @@ public static function fieldList() { protected $activeIngredient; /** - * Any other drug related to this one, for example commonly-prescribed alternatives. + * The generic name of this drug or supplement. * * - * @var \OpenActive\Models\SchemaOrg\Drug|string + * @var string */ - protected $relatedDrug; + protected $nonProprietaryName; /** - * A route by which this drug may be administered, e.g. 'oral'. + * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug. * * * @var string */ - protected $administrationRoute; + protected $alcoholWarning; /** - * The unit in which the drug is measured, e.g. '5 mg tablet'. + * Another drug that is known to interact with this drug in a way that impacts the effect of this drug or causes a risk to the patient. Note: disease interactions are typically captured as contraindications. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Drug|string */ - protected $drugUnit; + protected $interactingDrug; /** - * Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug. + * An available dosage strength for the drug. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DrugStrength|string */ - protected $foodWarning; + protected $availableStrength; /** - * Any FDA or other warnings about the drug (text or URL). + * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD). * * * @var string */ - protected $warning; + protected $clincalPharmacology; /** - * Indicates the status of drug prescription eg. local catalogs classifications or whether the drug is available by prescription or over-the-counter, etc. + * Link to prescribing information for the drug. * * - * @var \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string + * @var string */ - protected $prescriptionStatus; + protected $prescribingInfo; /** - * Proprietary name given to the diet plan, typically by its originator or creator. + * Recommended intake of this supplement for a given population as defined by a specific recommending authority. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string */ - protected $proprietaryName; + protected $maximumIntake; /** - * The class of drug this belongs to (e.g., statins). + * The drug or supplement's legal status, including any controlled substance schedules that apply. * * - * @var \OpenActive\Models\SchemaOrg\DrugClass|string + * @var \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null */ - protected $drugClass; + protected $legalStatus; /** - * Link to prescribing information for the drug. + * True if this item's name is a proprietary/brand name (vs. generic name). * * - * @var string + * @var bool|null */ - protected $prescribingInfo; + protected $isProprietary; /** - * The insurance plans that cover this drug. + * Pregnancy category of this drug. * * - * @var \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string + * @var \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string */ - protected $includedInHealthInsurancePlan; + protected $pregnancyCategory; /** - * The generic name of this drug or supplement. + * The RxCUI drug identifier from RXNORM. * * * @var string */ - protected $nonProprietaryName; + protected $rxcui; /** - * The manufacturer of the product. + * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string */ - protected $manufacturer; + protected $doseSchedule; /** - * True if this item's name is a proprietary/brand name (vs. generic name). + * Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response. * * - * @var bool|null + * @var string */ - protected $isProprietary; + protected $overdosage; /** - * Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD). + * A dosage form in which this drug/supplement is available, e.g. 'tablet', 'suspension', 'injection'. * * * @var string */ - protected $clincalPharmacology; + protected $dosageForm; /** - * True if the drug is available in a generic form (regardless of name). + * Any other drug related to this one, for example commonly-prescribed alternatives. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\Drug|string */ - protected $isAvailableGenerically; + protected $relatedDrug; /** - * Any precaution, guidance, contraindication, etc. related to this drug's use by breastfeeding mothers. + * True if the drug is available in a generic form (regardless of name). * * - * @var string + * @var bool|null */ - protected $breastfeedingWarning; + protected $isAvailableGenerically; /** - * Any precaution, guidance, contraindication, etc. related to this drug's use during pregnancy. + * Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug. * * * @var string */ - protected $pregnancyWarning; + protected $foodWarning; /** - * Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug. + * The specific biochemical interaction through which this drug or supplement produces its pharmacological effect. * * * @var string */ - protected $alcoholWarning; - - /** - * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used. - * - * - * @var \OpenActive\Models\SchemaOrg\DoseSchedule|string - */ - protected $doseSchedule; + protected $mechanismOfAction; /** - * An available dosage strength for the drug. + * Any precaution, guidance, contraindication, etc. related to this drug's use during pregnancy. * * - * @var \OpenActive\Models\SchemaOrg\DrugStrength|string + * @var string */ - protected $availableStrength; + protected $pregnancyWarning; /** - * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string + * @return string */ - public function getPregnancyCategory() + public function getAdministrationRoute() { - return $this->pregnancyCategory; + return $this->administrationRoute; } /** - * @param \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string $pregnancyCategory + * @param string $administrationRoute * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPregnancyCategory($pregnancyCategory) + public function setAdministrationRoute($administrationRoute) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory", "string", ]; - $pregnancyCategory = self::checkTypes($pregnancyCategory, $types); + $administrationRoute = self::checkTypes($administrationRoute, $types); - $this->pregnancyCategory = $pregnancyCategory; + $this->administrationRoute = $administrationRoute; } /** * @return string */ - public function getOverdosage() + public function getBreastfeedingWarning() { - return $this->overdosage; + return $this->breastfeedingWarning; } /** - * @param string $overdosage + * @param string $breastfeedingWarning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOverdosage($overdosage) + public function setBreastfeedingWarning($breastfeedingWarning) { $types = [ "string", ]; - $overdosage = self::checkTypes($overdosage, $types); + $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types); - $this->overdosage = $overdosage; + $this->breastfeedingWarning = $breastfeedingWarning; } /** - * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null + * @return string */ - public function getLegalStatus() + public function getClinicalPharmacology() { - return $this->legalStatus; + return $this->clinicalPharmacology; } /** - * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus + * @param string $clinicalPharmacology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegalStatus($legalStatus) + public function setClinicalPharmacology($clinicalPharmacology) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugLegalStatus", "string", - "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", - "null", ]; - $legalStatus = self::checkTypes($legalStatus, $types); + $clinicalPharmacology = self::checkTypes($clinicalPharmacology, $types); - $this->legalStatus = $legalStatus; + $this->clinicalPharmacology = $clinicalPharmacology; } /** * @return string */ - public function getMechanismOfAction() + public function getLabelDetails() { - return $this->mechanismOfAction; + return $this->labelDetails; } /** - * @param string $mechanismOfAction + * @param string $labelDetails * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMechanismOfAction($mechanismOfAction) + public function setLabelDetails($labelDetails) { $types = [ "string", ]; - $mechanismOfAction = self::checkTypes($mechanismOfAction, $types); + $labelDetails = self::checkTypes($labelDetails, $types); - $this->mechanismOfAction = $mechanismOfAction; + $this->labelDetails = $labelDetails; } /** * @return string */ - public function getClinicalPharmacology() + public function getWarning() { - return $this->clinicalPharmacology; + return $this->warning; } /** - * @param string $clinicalPharmacology + * @param string $warning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setClinicalPharmacology($clinicalPharmacology) + public function setWarning($warning) { $types = [ "string", ]; - $clinicalPharmacology = self::checkTypes($clinicalPharmacology, $types); + $warning = self::checkTypes($warning, $types); - $this->clinicalPharmacology = $clinicalPharmacology; + $this->warning = $warning; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string */ - public function getRxcui() + public function getIncludedInHealthInsurancePlan() { - return $this->rxcui; + return $this->includedInHealthInsurancePlan; } /** - * @param string $rxcui + * @param \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string $includedInHealthInsurancePlan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRxcui($rxcui) + public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan) { $types = [ + "\OpenActive\Models\SchemaOrg\HealthInsurancePlan", "string", ]; - $rxcui = self::checkTypes($rxcui, $types); + $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types); - $this->rxcui = $rxcui; + $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan; } /** - * @return \OpenActive\Models\SchemaOrg\Drug|string + * @return string */ - public function getInteractingDrug() + public function getProprietaryName() { - return $this->interactingDrug; + return $this->proprietaryName; } /** - * @param \OpenActive\Models\SchemaOrg\Drug|string $interactingDrug + * @param string $proprietaryName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractingDrug($interactingDrug) + public function setProprietaryName($proprietaryName) { $types = [ - "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $interactingDrug = self::checkTypes($interactingDrug, $types); + $proprietaryName = self::checkTypes($proprietaryName, $types); - $this->interactingDrug = $interactingDrug; + $this->proprietaryName = $proprietaryName; } /** * @return string */ - public function getDosageForm() + public function getDrugUnit() { - return $this->dosageForm; + return $this->drugUnit; } /** - * @param string $dosageForm + * @param string $drugUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDosageForm($dosageForm) + public function setDrugUnit($drugUnit) { $types = [ "string", ]; - $dosageForm = self::checkTypes($dosageForm, $types); + $drugUnit = self::checkTypes($drugUnit, $types); - $this->dosageForm = $dosageForm; + $this->drugUnit = $drugUnit; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus */ - public function getLabelDetails() + public function getPrescriptionStatus() { - return $this->labelDetails; + return $this->prescriptionStatus; } /** - * @param string $labelDetails + * @param string|\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus $prescriptionStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLabelDetails($labelDetails) + public function setPrescriptionStatus($prescriptionStatus) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus", ]; - $labelDetails = self::checkTypes($labelDetails, $types); + $prescriptionStatus = self::checkTypes($prescriptionStatus, $types); - $this->labelDetails = $labelDetails; + $this->prescriptionStatus = $prescriptionStatus; } /** - * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string + * @return \OpenActive\Models\SchemaOrg\DrugClass|string */ - public function getMaximumIntake() + public function getDrugClass() { - return $this->maximumIntake; + return $this->drugClass; } /** - * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake + * @param \OpenActive\Models\SchemaOrg\DrugClass|string $drugClass * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumIntake($maximumIntake) + public function setDrugClass($drugClass) { $types = [ - "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule", + "\OpenActive\Models\SchemaOrg\DrugClass", "string", ]; - $maximumIntake = self::checkTypes($maximumIntake, $types); + $drugClass = self::checkTypes($drugClass, $types); - $this->maximumIntake = $maximumIntake; + $this->drugClass = $drugClass; } /** @@ -571,493 +559,471 @@ public function setActiveIngredient($activeIngredient) $this->activeIngredient = $activeIngredient; } - /** - * @return \OpenActive\Models\SchemaOrg\Drug|string - */ - public function getRelatedDrug() - { - return $this->relatedDrug; - } - - /** - * @param \OpenActive\Models\SchemaOrg\Drug|string $relatedDrug - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setRelatedDrug($relatedDrug) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Drug", - "string", - ]; - - $relatedDrug = self::checkTypes($relatedDrug, $types); - - $this->relatedDrug = $relatedDrug; - } - /** * @return string */ - public function getAdministrationRoute() + public function getNonProprietaryName() { - return $this->administrationRoute; + return $this->nonProprietaryName; } /** - * @param string $administrationRoute + * @param string $nonProprietaryName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdministrationRoute($administrationRoute) + public function setNonProprietaryName($nonProprietaryName) { $types = [ "string", ]; - $administrationRoute = self::checkTypes($administrationRoute, $types); + $nonProprietaryName = self::checkTypes($nonProprietaryName, $types); - $this->administrationRoute = $administrationRoute; + $this->nonProprietaryName = $nonProprietaryName; } /** * @return string */ - public function getDrugUnit() + public function getAlcoholWarning() { - return $this->drugUnit; + return $this->alcoholWarning; } /** - * @param string $drugUnit + * @param string $alcoholWarning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDrugUnit($drugUnit) + public function setAlcoholWarning($alcoholWarning) { $types = [ "string", ]; - $drugUnit = self::checkTypes($drugUnit, $types); + $alcoholWarning = self::checkTypes($alcoholWarning, $types); - $this->drugUnit = $drugUnit; + $this->alcoholWarning = $alcoholWarning; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Drug|string */ - public function getFoodWarning() + public function getInteractingDrug() { - return $this->foodWarning; + return $this->interactingDrug; } /** - * @param string $foodWarning + * @param \OpenActive\Models\SchemaOrg\Drug|string $interactingDrug * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFoodWarning($foodWarning) + public function setInteractingDrug($interactingDrug) { $types = [ + "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $foodWarning = self::checkTypes($foodWarning, $types); + $interactingDrug = self::checkTypes($interactingDrug, $types); - $this->foodWarning = $foodWarning; + $this->interactingDrug = $interactingDrug; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DrugStrength|string */ - public function getWarning() + public function getAvailableStrength() { - return $this->warning; + return $this->availableStrength; } /** - * @param string $warning + * @param \OpenActive\Models\SchemaOrg\DrugStrength|string $availableStrength * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarning($warning) + public function setAvailableStrength($availableStrength) { $types = [ + "\OpenActive\Models\SchemaOrg\DrugStrength", "string", ]; - $warning = self::checkTypes($warning, $types); + $availableStrength = self::checkTypes($availableStrength, $types); - $this->warning = $warning; + $this->availableStrength = $availableStrength; } /** - * @return \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string + * @return string */ - public function getPrescriptionStatus() + public function getClincalPharmacology() { - return $this->prescriptionStatus; + return $this->clincalPharmacology; } /** - * @param \OpenActive\Models\SchemaOrg\DrugPrescriptionStatus|string $prescriptionStatus + * @param string $clincalPharmacology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrescriptionStatus($prescriptionStatus) + public function setClincalPharmacology($clincalPharmacology) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugPrescriptionStatus", "string", ]; - $prescriptionStatus = self::checkTypes($prescriptionStatus, $types); + $clincalPharmacology = self::checkTypes($clincalPharmacology, $types); - $this->prescriptionStatus = $prescriptionStatus; + $this->clincalPharmacology = $clincalPharmacology; } /** * @return string */ - public function getProprietaryName() + public function getPrescribingInfo() { - return $this->proprietaryName; + return $this->prescribingInfo; } /** - * @param string $proprietaryName + * @param string $prescribingInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProprietaryName($proprietaryName) + public function setPrescribingInfo($prescribingInfo) { $types = [ "string", ]; - $proprietaryName = self::checkTypes($proprietaryName, $types); + $prescribingInfo = self::checkTypes($prescribingInfo, $types); - $this->proprietaryName = $proprietaryName; + $this->prescribingInfo = $prescribingInfo; } /** - * @return \OpenActive\Models\SchemaOrg\DrugClass|string + * @return \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string */ - public function getDrugClass() + public function getMaximumIntake() { - return $this->drugClass; + return $this->maximumIntake; } /** - * @param \OpenActive\Models\SchemaOrg\DrugClass|string $drugClass + * @param \OpenActive\Models\SchemaOrg\MaximumDoseSchedule|string $maximumIntake * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDrugClass($drugClass) + public function setMaximumIntake($maximumIntake) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugClass", + "\OpenActive\Models\SchemaOrg\MaximumDoseSchedule", "string", ]; - $drugClass = self::checkTypes($drugClass, $types); + $maximumIntake = self::checkTypes($maximumIntake, $types); - $this->drugClass = $drugClass; + $this->maximumIntake = $maximumIntake; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null */ - public function getPrescribingInfo() + public function getLegalStatus() { - return $this->prescribingInfo; + return $this->legalStatus; } /** - * @param string $prescribingInfo + * @param \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null $legalStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrescribingInfo($prescribingInfo) + public function setLegalStatus($legalStatus) { $types = [ + "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", + "\OpenActive\Models\SchemaOrg\DrugLegalStatus", "string", + "null", ]; - $prescribingInfo = self::checkTypes($prescribingInfo, $types); + $legalStatus = self::checkTypes($legalStatus, $types); - $this->prescribingInfo = $prescribingInfo; + $this->legalStatus = $legalStatus; } /** - * @return \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string + * @return bool|null */ - public function getIncludedInHealthInsurancePlan() + public function getIsProprietary() { - return $this->includedInHealthInsurancePlan; + return $this->isProprietary; } /** - * @param \OpenActive\Models\SchemaOrg\HealthInsurancePlan|string $includedInHealthInsurancePlan + * @param bool|null $isProprietary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludedInHealthInsurancePlan($includedInHealthInsurancePlan) + public function setIsProprietary($isProprietary) { $types = [ - "\OpenActive\Models\SchemaOrg\HealthInsurancePlan", - "string", + "bool", + "null", ]; - $includedInHealthInsurancePlan = self::checkTypes($includedInHealthInsurancePlan, $types); + $isProprietary = self::checkTypes($isProprietary, $types); - $this->includedInHealthInsurancePlan = $includedInHealthInsurancePlan; + $this->isProprietary = $isProprietary; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string */ - public function getNonProprietaryName() + public function getPregnancyCategory() { - return $this->nonProprietaryName; + return $this->pregnancyCategory; } /** - * @param string $nonProprietaryName + * @param \OpenActive\Models\SchemaOrg\DrugPregnancyCategory|string $pregnancyCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNonProprietaryName($nonProprietaryName) + public function setPregnancyCategory($pregnancyCategory) { $types = [ + "\OpenActive\Models\SchemaOrg\DrugPregnancyCategory", "string", ]; - $nonProprietaryName = self::checkTypes($nonProprietaryName, $types); + $pregnancyCategory = self::checkTypes($pregnancyCategory, $types); - $this->nonProprietaryName = $nonProprietaryName; + $this->pregnancyCategory = $pregnancyCategory; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getManufacturer() + public function getRxcui() { - return $this->manufacturer; + return $this->rxcui; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer + * @param string $rxcui * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setManufacturer($manufacturer) + public function setRxcui($rxcui) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $manufacturer = self::checkTypes($manufacturer, $types); + $rxcui = self::checkTypes($rxcui, $types); - $this->manufacturer = $manufacturer; + $this->rxcui = $rxcui; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string */ - public function getIsProprietary() + public function getDoseSchedule() { - return $this->isProprietary; + return $this->doseSchedule; } /** - * @param bool|null $isProprietary + * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsProprietary($isProprietary) + public function setDoseSchedule($doseSchedule) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\DoseSchedule", + "string", ]; - $isProprietary = self::checkTypes($isProprietary, $types); + $doseSchedule = self::checkTypes($doseSchedule, $types); - $this->isProprietary = $isProprietary; + $this->doseSchedule = $doseSchedule; } /** * @return string */ - public function getClincalPharmacology() + public function getOverdosage() { - return $this->clincalPharmacology; + return $this->overdosage; } /** - * @param string $clincalPharmacology + * @param string $overdosage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setClincalPharmacology($clincalPharmacology) + public function setOverdosage($overdosage) { $types = [ "string", ]; - $clincalPharmacology = self::checkTypes($clincalPharmacology, $types); + $overdosage = self::checkTypes($overdosage, $types); - $this->clincalPharmacology = $clincalPharmacology; + $this->overdosage = $overdosage; } /** - * @return bool|null + * @return string */ - public function getIsAvailableGenerically() + public function getDosageForm() { - return $this->isAvailableGenerically; + return $this->dosageForm; } /** - * @param bool|null $isAvailableGenerically + * @param string $dosageForm * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsAvailableGenerically($isAvailableGenerically) + public function setDosageForm($dosageForm) { $types = [ - "bool", - "null", + "string", ]; - $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types); + $dosageForm = self::checkTypes($dosageForm, $types); - $this->isAvailableGenerically = $isAvailableGenerically; + $this->dosageForm = $dosageForm; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Drug|string */ - public function getBreastfeedingWarning() + public function getRelatedDrug() { - return $this->breastfeedingWarning; + return $this->relatedDrug; } /** - * @param string $breastfeedingWarning + * @param \OpenActive\Models\SchemaOrg\Drug|string $relatedDrug * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBreastfeedingWarning($breastfeedingWarning) + public function setRelatedDrug($relatedDrug) { $types = [ + "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $breastfeedingWarning = self::checkTypes($breastfeedingWarning, $types); + $relatedDrug = self::checkTypes($relatedDrug, $types); - $this->breastfeedingWarning = $breastfeedingWarning; + $this->relatedDrug = $relatedDrug; } /** - * @return string + * @return bool|null */ - public function getPregnancyWarning() + public function getIsAvailableGenerically() { - return $this->pregnancyWarning; + return $this->isAvailableGenerically; } /** - * @param string $pregnancyWarning + * @param bool|null $isAvailableGenerically * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPregnancyWarning($pregnancyWarning) + public function setIsAvailableGenerically($isAvailableGenerically) { $types = [ - "string", + "bool", + "null", ]; - $pregnancyWarning = self::checkTypes($pregnancyWarning, $types); + $isAvailableGenerically = self::checkTypes($isAvailableGenerically, $types); - $this->pregnancyWarning = $pregnancyWarning; + $this->isAvailableGenerically = $isAvailableGenerically; } /** * @return string */ - public function getAlcoholWarning() + public function getFoodWarning() { - return $this->alcoholWarning; + return $this->foodWarning; } /** - * @param string $alcoholWarning + * @param string $foodWarning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlcoholWarning($alcoholWarning) + public function setFoodWarning($foodWarning) { $types = [ "string", ]; - $alcoholWarning = self::checkTypes($alcoholWarning, $types); + $foodWarning = self::checkTypes($foodWarning, $types); - $this->alcoholWarning = $alcoholWarning; + $this->foodWarning = $foodWarning; } /** - * @return \OpenActive\Models\SchemaOrg\DoseSchedule|string + * @return string */ - public function getDoseSchedule() + public function getMechanismOfAction() { - return $this->doseSchedule; + return $this->mechanismOfAction; } /** - * @param \OpenActive\Models\SchemaOrg\DoseSchedule|string $doseSchedule + * @param string $mechanismOfAction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoseSchedule($doseSchedule) + public function setMechanismOfAction($mechanismOfAction) { $types = [ - "\OpenActive\Models\SchemaOrg\DoseSchedule", "string", ]; - $doseSchedule = self::checkTypes($doseSchedule, $types); + $mechanismOfAction = self::checkTypes($mechanismOfAction, $types); - $this->doseSchedule = $doseSchedule; + $this->mechanismOfAction = $mechanismOfAction; } /** - * @return \OpenActive\Models\SchemaOrg\DrugStrength|string + * @return string */ - public function getAvailableStrength() + public function getPregnancyWarning() { - return $this->availableStrength; + return $this->pregnancyWarning; } /** - * @param \OpenActive\Models\SchemaOrg\DrugStrength|string $availableStrength + * @param string $pregnancyWarning * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableStrength($availableStrength) + public function setPregnancyWarning($pregnancyWarning) { $types = [ - "\OpenActive\Models\SchemaOrg\DrugStrength", "string", ]; - $availableStrength = self::checkTypes($availableStrength, $types); + $pregnancyWarning = self::checkTypes($pregnancyWarning, $types); - $this->availableStrength = $availableStrength; + $this->pregnancyWarning = $pregnancyWarning; } } diff --git a/src/Models/SchemaOrg/DrugCost.php b/src/Models/SchemaOrg/DrugCost.php index 2db962a3..9a202525 100644 --- a/src/Models/SchemaOrg/DrugCost.php +++ b/src/Models/SchemaOrg/DrugCost.php @@ -17,17 +17,25 @@ public static function getType() public static function fieldList() { $fields = [ - "applicableLocation" => "applicableLocation", "costPerUnit" => "costPerUnit", - "costCategory" => "costCategory", + "applicableLocation" => "applicableLocation", "drugUnit" => "drugUnit", - "costCurrency" => "costCurrency", + "costCategory" => "costCategory", "costOrigin" => "costOrigin", + "costCurrency" => "costCurrency", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The cost per unit of the drug. + * + * + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|Number|null + */ + protected $costPerUnit; + /** * The location in which the status applies. * @@ -37,12 +45,12 @@ public static function fieldList() { protected $applicableLocation; /** - * The cost per unit of the drug. + * The unit in which the drug is measured, e.g. '5 mg tablet'. * * - * @var string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var string */ - protected $costPerUnit; + protected $drugUnit; /** * The category of cost, such as wholesale, retail, reimbursement cap, etc. @@ -53,15 +61,15 @@ public static function fieldList() { protected $costCategory; /** - * The unit in which the drug is measured, e.g. '5 mg tablet'. + * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'. * * * @var string */ - protected $drugUnit; + protected $costOrigin; /** - * The currency (in 3-letter of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217. + * The currency (in 3-letter) of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217. * * * @var string @@ -69,12 +77,31 @@ public static function fieldList() { protected $costCurrency; /** - * Additional details to capture the origin of the cost data. For example, 'Medicare Part B'. - * - * - * @var string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|Number|null */ - protected $costOrigin; + public function getCostPerUnit() + { + return $this->costPerUnit; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|Number|null $costPerUnit + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCostPerUnit($costPerUnit) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "string", + "Number", + "null", + ]; + + $costPerUnit = self::checkTypes($costPerUnit, $types); + + $this->costPerUnit = $costPerUnit; + } /** * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string @@ -102,30 +129,27 @@ public function setApplicableLocation($applicableLocation) } /** - * @return string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return string */ - public function getCostPerUnit() + public function getDrugUnit() { - return $this->costPerUnit; + return $this->drugUnit; } /** - * @param string|Number|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $costPerUnit + * @param string $drugUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCostPerUnit($costPerUnit) + public function setDrugUnit($drugUnit) { $types = [ "string", - "Number", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "null", ]; - $costPerUnit = self::checkTypes($costPerUnit, $types); + $drugUnit = self::checkTypes($drugUnit, $types); - $this->costPerUnit = $costPerUnit; + $this->drugUnit = $drugUnit; } /** @@ -156,25 +180,25 @@ public function setCostCategory($costCategory) /** * @return string */ - public function getDrugUnit() + public function getCostOrigin() { - return $this->drugUnit; + return $this->costOrigin; } /** - * @param string $drugUnit + * @param string $costOrigin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDrugUnit($drugUnit) + public function setCostOrigin($costOrigin) { $types = [ "string", ]; - $drugUnit = self::checkTypes($drugUnit, $types); + $costOrigin = self::checkTypes($costOrigin, $types); - $this->drugUnit = $drugUnit; + $this->costOrigin = $costOrigin; } /** @@ -201,28 +225,4 @@ public function setCostCurrency($costCurrency) $this->costCurrency = $costCurrency; } - /** - * @return string - */ - public function getCostOrigin() - { - return $this->costOrigin; - } - - /** - * @param string $costOrigin - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setCostOrigin($costOrigin) - { - $types = [ - "string", - ]; - - $costOrigin = self::checkTypes($costOrigin, $types); - - $this->costOrigin = $costOrigin; - } - } diff --git a/src/Models/SchemaOrg/DrugStrength.php b/src/Models/SchemaOrg/DrugStrength.php index a5eaf983..5d1ab0ae 100644 --- a/src/Models/SchemaOrg/DrugStrength.php +++ b/src/Models/SchemaOrg/DrugStrength.php @@ -17,31 +17,31 @@ public static function getType() public static function fieldList() { $fields = [ - "availableIn" => "availableIn", - "strengthUnit" => "strengthUnit", - "maximumIntake" => "maximumIntake", "activeIngredient" => "activeIngredient", "strengthValue" => "strengthValue", + "maximumIntake" => "maximumIntake", + "availableIn" => "availableIn", + "strengthUnit" => "strengthUnit", ]; return array_merge(parent::fieldList(), $fields); } /** - * The location in which the strength is available. + * An active ingredient, typically chemical compounds and/or biologic substances. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @var string */ - protected $availableIn; + protected $activeIngredient; /** - * The units of an active ingredient's strength, e.g. mg. + * The value of an active ingredient's strength, e.g. 325. * * - * @var string + * @var Number|null */ - protected $strengthUnit; + protected $strengthValue; /** * Recommended intake of this supplement for a given population as defined by a specific recommending authority. @@ -52,68 +52,68 @@ public static function fieldList() { protected $maximumIntake; /** - * An active ingredient, typically chemical compounds and/or biologic substances. + * The location in which the strength is available. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - protected $activeIngredient; + protected $availableIn; /** - * The value of an active ingredient's strength, e.g. 325. + * The units of an active ingredient's strength, e.g. mg. * * - * @var Number|null + * @var string */ - protected $strengthValue; + protected $strengthUnit; /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @return string */ - public function getAvailableIn() + public function getActiveIngredient() { - return $this->availableIn; + return $this->activeIngredient; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $availableIn + * @param string $activeIngredient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableIn($availableIn) + public function setActiveIngredient($activeIngredient) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", ]; - $availableIn = self::checkTypes($availableIn, $types); + $activeIngredient = self::checkTypes($activeIngredient, $types); - $this->availableIn = $availableIn; + $this->activeIngredient = $activeIngredient; } /** - * @return string + * @return Number|null */ - public function getStrengthUnit() + public function getStrengthValue() { - return $this->strengthUnit; + return $this->strengthValue; } /** - * @param string $strengthUnit + * @param Number|null $strengthValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStrengthUnit($strengthUnit) + public function setStrengthValue($strengthValue) { $types = [ - "string", + "Number", + "null", ]; - $strengthUnit = self::checkTypes($strengthUnit, $types); + $strengthValue = self::checkTypes($strengthValue, $types); - $this->strengthUnit = $strengthUnit; + $this->strengthValue = $strengthValue; } /** @@ -142,52 +142,52 @@ public function setMaximumIntake($maximumIntake) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getActiveIngredient() + public function getAvailableIn() { - return $this->activeIngredient; + return $this->availableIn; } /** - * @param string $activeIngredient + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $availableIn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActiveIngredient($activeIngredient) + public function setAvailableIn($availableIn) { $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", ]; - $activeIngredient = self::checkTypes($activeIngredient, $types); + $availableIn = self::checkTypes($availableIn, $types); - $this->activeIngredient = $activeIngredient; + $this->availableIn = $availableIn; } /** - * @return Number|null + * @return string */ - public function getStrengthValue() + public function getStrengthUnit() { - return $this->strengthValue; + return $this->strengthUnit; } /** - * @param Number|null $strengthValue + * @param string $strengthUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStrengthValue($strengthValue) + public function setStrengthUnit($strengthUnit) { $types = [ - "Number", - "null", + "string", ]; - $strengthValue = self::checkTypes($strengthValue, $types); + $strengthUnit = self::checkTypes($strengthUnit, $types); - $this->strengthValue = $strengthValue; + $this->strengthUnit = $strengthUnit; } } diff --git a/src/Models/SchemaOrg/EducationEvent.php b/src/Models/SchemaOrg/EducationEvent.php index 5c799d1e..f3e89833 100644 --- a/src/Models/SchemaOrg/EducationEvent.php +++ b/src/Models/SchemaOrg/EducationEvent.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "teaches" => "teaches", - "educationalLevel" => "educationalLevel", "assesses" => "assesses", + "educationalLevel" => "educationalLevel", + "teaches" => "teaches", ]; return array_merge(parent::fieldList(), $fields); } /** - * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. + * The item being described is intended to assess the competency or learning outcome defined by the referenced term. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $teaches; + protected $assesses; /** * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. @@ -42,36 +42,36 @@ public static function fieldList() { protected $educationalLevel; /** - * The item being described is intended to assess the competency or learning outcome defined by the referenced term. + * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $assesses; + protected $teaches; /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getTeaches() + public function getAssesses() { - return $this->teaches; + return $this->assesses; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTeaches($teaches) + public function setAssesses($assesses) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $teaches = self::checkTypes($teaches, $types); + $assesses = self::checkTypes($assesses, $types); - $this->teaches = $teaches; + $this->assesses = $assesses; } /** @@ -100,28 +100,28 @@ public function setEducationalLevel($educationalLevel) } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getAssesses() + public function getTeaches() { - return $this->assesses; + return $this->teaches; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $assesses + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssesses($assesses) + public function setTeaches($teaches) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $assesses = self::checkTypes($assesses, $types); + $teaches = self::checkTypes($teaches, $types); - $this->assesses = $assesses; + $this->teaches = $teaches; } } diff --git a/src/Models/SchemaOrg/EducationalOccupationalCredential.php b/src/Models/SchemaOrg/EducationalOccupationalCredential.php index fc10910a..7ed952c4 100644 --- a/src/Models/SchemaOrg/EducationalOccupationalCredential.php +++ b/src/Models/SchemaOrg/EducationalOccupationalCredential.php @@ -18,10 +18,10 @@ public static function getType() public static function fieldList() { $fields = [ "validFor" => "validFor", - "educationalLevel" => "educationalLevel", "credentialCategory" => "credentialCategory", - "recognizedBy" => "recognizedBy", "competencyRequired" => "competencyRequired", + "educationalLevel" => "educationalLevel", + "recognizedBy" => "recognizedBy", "validIn" => "validIn", ]; @@ -37,39 +37,39 @@ public static function fieldList() { protected $validFor; /** - * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. + * The category or type of credential being described, for example "degree”, “certificate”, “badge”, or more specific term. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $educationalLevel; + protected $credentialCategory; /** - * The category or type of credential being described, for example "degree”, “certificate”, “badge”, or more specific term. + * Knowledge, skill, ability or personal attribute that must be demonstrated by a person or other entity in order to do something such as earn an Educational Occupational Credential or understand a LearningResource. * * * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $credentialCategory; + protected $competencyRequired; /** - * An organization that acknowledges the validity, value or utility of a credential. Note: recognition may include a process of quality assurance or accreditation. + * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $recognizedBy; + protected $educationalLevel; /** - * Knowledge, skill, ability or personal attribute that must be demonstrated by a person or other entity in order to do something such as earn an Educational Occupational Credential or understand a LearningResource. + * An organization that acknowledges the validity, value or utility of a credential. Note: recognition may include a process of quality assurance or accreditation. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $competencyRequired; + protected $recognizedBy; /** - * The geographic area where a permit or similar thing is valid. + * The geographic area where the item is valid. Applies for example to a [[Permit]], a [[Certification]], or an [[EducationalOccupationalCredential]]. * * * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string @@ -103,103 +103,103 @@ public function setValidFor($validFor) } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getEducationalLevel() + public function getCredentialCategory() { - return $this->educationalLevel; + return $this->credentialCategory; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $credentialCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalLevel($educationalLevel) + public function setCredentialCategory($credentialCategory) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $educationalLevel = self::checkTypes($educationalLevel, $types); + $credentialCategory = self::checkTypes($credentialCategory, $types); - $this->educationalLevel = $educationalLevel; + $this->credentialCategory = $credentialCategory; } /** * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getCredentialCategory() + public function getCompetencyRequired() { - return $this->credentialCategory; + return $this->competencyRequired; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $credentialCategory + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $competencyRequired * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCredentialCategory($credentialCategory) + public function setCompetencyRequired($competencyRequired) { $types = [ "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $credentialCategory = self::checkTypes($credentialCategory, $types); + $competencyRequired = self::checkTypes($competencyRequired, $types); - $this->credentialCategory = $credentialCategory; + $this->competencyRequired = $competencyRequired; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getRecognizedBy() + public function getEducationalLevel() { - return $this->recognizedBy; + return $this->educationalLevel; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizedBy + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecognizedBy($recognizedBy) + public function setEducationalLevel($educationalLevel) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $recognizedBy = self::checkTypes($recognizedBy, $types); + $educationalLevel = self::checkTypes($educationalLevel, $types); - $this->recognizedBy = $recognizedBy; + $this->educationalLevel = $educationalLevel; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getCompetencyRequired() + public function getRecognizedBy() { - return $this->competencyRequired; + return $this->recognizedBy; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $competencyRequired + * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCompetencyRequired($competencyRequired) + public function setRecognizedBy($recognizedBy) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $competencyRequired = self::checkTypes($competencyRequired, $types); + $recognizedBy = self::checkTypes($recognizedBy, $types); - $this->competencyRequired = $competencyRequired; + $this->recognizedBy = $recognizedBy; } /** diff --git a/src/Models/SchemaOrg/EducationalOccupationalProgram.php b/src/Models/SchemaOrg/EducationalOccupationalProgram.php index 56cf7a09..6089bfb2 100644 --- a/src/Models/SchemaOrg/EducationalOccupationalProgram.php +++ b/src/Models/SchemaOrg/EducationalOccupationalProgram.php @@ -17,182 +17,183 @@ public static function getType() public static function fieldList() { $fields = [ + "applicationStartDate" => "applicationStartDate", + "trainingSalary" => "trainingSalary", + "financialAidEligible" => "financialAidEligible", "programPrerequisites" => "programPrerequisites", - "hasCourse" => "hasCourse", "startDate" => "startDate", - "salaryUponCompletion" => "salaryUponCompletion", - "termsPerYear" => "termsPerYear", - "dayOfWeek" => "dayOfWeek", "offers" => "offers", - "typicalCreditsPerTerm" => "typicalCreditsPerTerm", - "applicationStartDate" => "applicationStartDate", - "timeOfDay" => "timeOfDay", "endDate" => "endDate", - "provider" => "provider", - "trainingSalary" => "trainingSalary", - "educationalCredentialAwarded" => "educationalCredentialAwarded", - "numberOfCredits" => "numberOfCredits", + "maximumEnrollment" => "maximumEnrollment", "timeToComplete" => "timeToComplete", - "occupationalCredentialAwarded" => "occupationalCredentialAwarded", + "dayOfWeek" => "dayOfWeek", + "salaryUponCompletion" => "salaryUponCompletion", + "educationalCredentialAwarded" => "educationalCredentialAwarded", + "occupationalCategory" => "occupationalCategory", "termDuration" => "termDuration", - "educationalProgramMode" => "educationalProgramMode", + "typicalCreditsPerTerm" => "typicalCreditsPerTerm", + "numberOfCredits" => "numberOfCredits", "programType" => "programType", - "maximumEnrollment" => "maximumEnrollment", - "financialAidEligible" => "financialAidEligible", + "provider" => "provider", + "educationalProgramMode" => "educationalProgramMode", + "termsPerYear" => "termsPerYear", + "timeOfDay" => "timeOfDay", + "hasCourse" => "hasCourse", + "occupationalCredentialAwarded" => "occupationalCredentialAwarded", "applicationDeadline" => "applicationDeadline", - "occupationalCategory" => "occupationalCategory", ]; return array_merge(parent::fieldList(), $fields); } /** - * Prerequisites for enrolling in the program. + * The date at which the program begins collecting applications for the next enrollment cycle. * * - * @var \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var Date|null */ - protected $programPrerequisites; + protected $applicationStartDate; /** - * A course or class that is one of the learning opportunities that constitute an educational / occupational program. No information is implied about whether the course is mandatory or optional; no guarantee is implied about whether the course will be available to everyone on the program. + * The estimated salary earned while in the program. * * - * @var \OpenActive\Models\SchemaOrg\Course|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - protected $hasCourse; + protected $trainingSalary; /** - * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * A financial aid type or program which students may use to pay for tuition or fees associated with the program. * * - * @var Date|DateTime|null + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $startDate; + protected $financialAidEligible; /** - * The expected salary upon completing the training. + * Prerequisites for enrolling in the program. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string + * @var \OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\AlignmentObject|string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - protected $salaryUponCompletion; + protected $programPrerequisites; /** - * The number of times terms of study are offered per year. Semesters and quarters are common units for term. For example, if the student can only take 2 semesters for the program in one year, then termsPerYear should be 2. + * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var Number|null + * @var Date|DateTime|null */ - protected $termsPerYear; + protected $startDate; /** - * The day of the week for which these opening hours are valid. + * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. + * * * - * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null + * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - protected $dayOfWeek; + protected $offers; /** - * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. - * + * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var Date|DateTime|null */ - protected $offers; + protected $endDate; /** - * The number of credits or units a full-time student would be expected to take in 1 term however 'term' is defined by the institution. + * The maximum number of students who may be enrolled in the program. * * - * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @var int|null */ - protected $typicalCreditsPerTerm; + protected $maximumEnrollment; /** - * The date at which the program begins collecting applications for the next enrollment cycle. + * The expected length of time to complete the program if attending full-time. * * - * @var Date|null + * @var DateInterval|string|null */ - protected $applicationStartDate; + protected $timeToComplete; /** - * The time of day the program normally runs. For example, "evenings". + * The day of the week for which these opening hours are valid. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|null */ - protected $timeOfDay; + protected $dayOfWeek; /** - * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * The expected salary upon completing the training. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - protected $endDate; + protected $salaryUponCompletion; /** - * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. + * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - protected $provider; + protected $educationalCredentialAwarded; /** - * The estimated salary earned while in the program. + * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n + * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string + * @var string|\OpenActive\Models\SchemaOrg\CategoryCode */ - protected $trainingSalary; + protected $occupationalCategory; /** - * A description of the qualification, award, certificate, diploma or other educational credential awarded as a consequence of successful completion of this course or program. + * The amount of time in a term as defined by the institution. A term is a length of time where students take one or more classes. Semesters and quarters are common units for term. * * - * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential + * @var DateInterval|string|null */ - protected $educationalCredentialAwarded; + protected $termDuration; /** - * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram. + * The number of credits or units a full-time student would be expected to take in 1 term however 'term' is defined by the institution. * * - * @var int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @var \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null */ - protected $numberOfCredits; + protected $typicalCreditsPerTerm; /** - * The expected length of time to complete the program if attending full-time. + * The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null */ - protected $timeToComplete; + protected $numberOfCredits; /** - * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program. + * The type of educational or occupational program. For example, classroom, internship, alternance, etc. * * - * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $occupationalCredentialAwarded; + protected $programType; /** - * The amount of time in a term as defined by the institution. A term is a length of time where students take one or more classes. Semesters and quarters are common units for term. + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $termDuration; + protected $provider; /** - * Similar to courseMode, The medium or means of delivery of the program as a whole. The value may either be a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous ). + * Similar to courseMode, the medium or means of delivery of the program as a whole. The value may either be a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous ). * * * @var string @@ -200,505 +201,505 @@ public static function fieldList() { protected $educationalProgramMode; /** - * The type of educational or occupational program. For example, classroom, internship, alternance, etc.. + * The number of times terms of study are offered per year. Semesters and quarters are common units for term. For example, if the student can only take 2 semesters for the program in one year, then termsPerYear should be 2. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var Number|null */ - protected $programType; + protected $termsPerYear; /** - * The maximum number of students who may be enrolled in the program. + * The time of day the program normally runs. For example, "evenings". * * - * @var int|null + * @var string */ - protected $maximumEnrollment; + protected $timeOfDay; /** - * A financial aid type or program which students may use to pay for tuition or fees associated with the program. + * A course or class that is one of the learning opportunities that constitute an educational / occupational program. No information is implied about whether the course is mandatory or optional; no guarantee is implied about whether the course will be available to everyone on the program. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\Course|string */ - protected $financialAidEligible; + protected $hasCourse; /** - * The date at which the program stops collecting applications for the next enrollment cycle. + * A description of the qualification, award, certificate, diploma or other occupational credential awarded as a consequence of successful completion of this course or program. * * - * @var Date|null + * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - protected $applicationDeadline; + protected $occupationalCredentialAwarded; /** - * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n - * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC. + * The date at which the program stops collecting applications for the next enrollment cycle. * * - * @var \OpenActive\Models\SchemaOrg\CategoryCode|string + * @var Date|null */ - protected $occupationalCategory; + protected $applicationDeadline; /** - * @return \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return Date|null */ - public function getProgramPrerequisites() + public function getApplicationStartDate() { - return $this->programPrerequisites; + return $this->applicationStartDate; } /** - * @param \OpenActive\Models\SchemaOrg\AlignmentObject|\OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $programPrerequisites + * @param Date|null $applicationStartDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgramPrerequisites($programPrerequisites) + public function setApplicationStartDate($applicationStartDate) { $types = [ - "\OpenActive\Models\SchemaOrg\AlignmentObject", - "\OpenActive\Models\SchemaOrg\Course", - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", - "string", + "Date", + "null", ]; - $programPrerequisites = self::checkTypes($programPrerequisites, $types); + $applicationStartDate = self::checkTypes($applicationStartDate, $types); - $this->programPrerequisites = $programPrerequisites; + $this->applicationStartDate = $applicationStartDate; } /** - * @return \OpenActive\Models\SchemaOrg\Course|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - public function getHasCourse() + public function getTrainingSalary() { - return $this->hasCourse; + return $this->trainingSalary; } /** - * @param \OpenActive\Models\SchemaOrg\Course|string $hasCourse + * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $trainingSalary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasCourse($hasCourse) + public function setTrainingSalary($trainingSalary) { $types = [ - "\OpenActive\Models\SchemaOrg\Course", + "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", "string", ]; - $hasCourse = self::checkTypes($hasCourse, $types); + $trainingSalary = self::checkTypes($trainingSalary, $types); - $this->hasCourse = $hasCourse; + $this->trainingSalary = $trainingSalary; } /** - * @return Date|DateTime|null + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getStartDate() + public function getFinancialAidEligible() { - return $this->startDate; + return $this->financialAidEligible; } /** - * @param Date|DateTime|null $startDate + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $financialAidEligible * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartDate($startDate) + public function setFinancialAidEligible($financialAidEligible) { $types = [ - "Date", - "DateTime", - "null", + "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $startDate = self::checkTypes($startDate, $types); + $financialAidEligible = self::checkTypes($financialAidEligible, $types); - $this->startDate = $startDate; + $this->financialAidEligible = $financialAidEligible; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string + * @return \OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\AlignmentObject|string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - public function getSalaryUponCompletion() + public function getProgramPrerequisites() { - return $this->salaryUponCompletion; + return $this->programPrerequisites; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $salaryUponCompletion + * @param \OpenActive\Models\SchemaOrg\Course|\OpenActive\Models\SchemaOrg\AlignmentObject|string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $programPrerequisites * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSalaryUponCompletion($salaryUponCompletion) + public function setProgramPrerequisites($programPrerequisites) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", + "\OpenActive\Models\SchemaOrg\Course", + "\OpenActive\Models\SchemaOrg\AlignmentObject", "string", + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", ]; - $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types); + $programPrerequisites = self::checkTypes($programPrerequisites, $types); - $this->salaryUponCompletion = $salaryUponCompletion; + $this->programPrerequisites = $programPrerequisites; } /** - * @return Number|null + * @return Date|DateTime|null */ - public function getTermsPerYear() + public function getStartDate() { - return $this->termsPerYear; + return $this->startDate; } /** - * @param Number|null $termsPerYear + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTermsPerYear($termsPerYear) + public function setStartDate($startDate) { $types = [ - "Number", + "Date", + "DateTime", "null", ]; - $termsPerYear = self::checkTypes($termsPerYear, $types); + $startDate = self::checkTypes($startDate, $types); - $this->termsPerYear = $termsPerYear; + $this->startDate = $startDate; } /** - * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null + * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - public function getDayOfWeek() + public function getOffers() { - return $this->dayOfWeek; + return $this->offers; } /** - * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|null $dayOfWeek + * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDayOfWeek($dayOfWeek) + public function setOffers($offers) { $types = [ - "\OpenActive\Enums\SchemaOrg\DayOfWeek", - "null", + "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Demand", + "string", ]; - $dayOfWeek = self::checkTypes($dayOfWeek, $types); + $offers = self::checkTypes($offers, $types); - $this->dayOfWeek = $dayOfWeek; + $this->offers = $offers; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return Date|DateTime|null */ - public function getOffers() + public function getEndDate() { - return $this->offers; + return $this->endDate; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setEndDate($endDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", - "string", + "Date", + "DateTime", + "null", ]; - $offers = self::checkTypes($offers, $types); + $endDate = self::checkTypes($endDate, $types); - $this->offers = $offers; + $this->endDate = $endDate; } /** - * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @return int|null */ - public function getTypicalCreditsPerTerm() + public function getMaximumEnrollment() { - return $this->typicalCreditsPerTerm; + return $this->maximumEnrollment; } /** - * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $typicalCreditsPerTerm + * @param int|null $maximumEnrollment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypicalCreditsPerTerm($typicalCreditsPerTerm) + public function setMaximumEnrollment($maximumEnrollment) { $types = [ "int", - "\OpenActive\Models\SchemaOrg\StructuredValue", - "string", "null", ]; - $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types); + $maximumEnrollment = self::checkTypes($maximumEnrollment, $types); - $this->typicalCreditsPerTerm = $typicalCreditsPerTerm; + $this->maximumEnrollment = $maximumEnrollment; } /** - * @return Date|null + * @return DateInterval|string|null */ - public function getApplicationStartDate() + public function getTimeToComplete() { - return $this->applicationStartDate; + return $this->timeToComplete; } /** - * @param Date|null $applicationStartDate + * @param DateInterval|string|null $timeToComplete * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationStartDate($applicationStartDate) + public function setTimeToComplete($timeToComplete) { $types = [ - "Date", + "DateInterval", + "string", "null", ]; - $applicationStartDate = self::checkTypes($applicationStartDate, $types); + $timeToComplete = self::checkTypes($timeToComplete, $types); - $this->applicationStartDate = $applicationStartDate; + $this->timeToComplete = $timeToComplete; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|null */ - public function getTimeOfDay() + public function getDayOfWeek() { - return $this->timeOfDay; + return $this->dayOfWeek; } /** - * @param string $timeOfDay + * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|null $dayOfWeek * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTimeOfDay($timeOfDay) + public function setDayOfWeek($dayOfWeek) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\DayOfWeek", + "null", ]; - $timeOfDay = self::checkTypes($timeOfDay, $types); + $dayOfWeek = self::checkTypes($dayOfWeek, $types); - $this->timeOfDay = $timeOfDay; + $this->dayOfWeek = $dayOfWeek; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string */ - public function getEndDate() + public function getSalaryUponCompletion() { - return $this->endDate; + return $this->salaryUponCompletion; } /** - * @param Date|DateTime|null $endDate + * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $salaryUponCompletion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndDate($endDate) + public function setSalaryUponCompletion($salaryUponCompletion) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", + "string", ]; - $endDate = self::checkTypes($endDate, $types); + $salaryUponCompletion = self::checkTypes($salaryUponCompletion, $types); - $this->endDate = $endDate; + $this->salaryUponCompletion = $salaryUponCompletion; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - public function getProvider() + public function getEducationalCredentialAwarded() { - return $this->provider; + return $this->educationalCredentialAwarded; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setEducationalCredentialAwarded($educationalCredentialAwarded) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", ]; - $provider = self::checkTypes($provider, $types); + $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types); - $this->provider = $provider; + $this->educationalCredentialAwarded = $educationalCredentialAwarded; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string + * @return string|\OpenActive\Models\SchemaOrg\CategoryCode */ - public function getTrainingSalary() + public function getOccupationalCategory() { - return $this->trainingSalary; + return $this->occupationalCategory; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string $trainingSalary + * @param string|\OpenActive\Models\SchemaOrg\CategoryCode $occupationalCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrainingSalary($trainingSalary) + public function setOccupationalCategory($occupationalCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", "string", + "\OpenActive\Models\SchemaOrg\CategoryCode", ]; - $trainingSalary = self::checkTypes($trainingSalary, $types); + $occupationalCategory = self::checkTypes($occupationalCategory, $types); - $this->trainingSalary = $trainingSalary; + $this->occupationalCategory = $occupationalCategory; } /** - * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential + * @return DateInterval|string|null */ - public function getEducationalCredentialAwarded() + public function getTermDuration() { - return $this->educationalCredentialAwarded; + return $this->termDuration; } /** - * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationalCredentialAwarded + * @param DateInterval|string|null $termDuration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalCredentialAwarded($educationalCredentialAwarded) + public function setTermDuration($termDuration) { $types = [ + "DateInterval", "string", - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "null", ]; - $educationalCredentialAwarded = self::checkTypes($educationalCredentialAwarded, $types); + $termDuration = self::checkTypes($termDuration, $types); - $this->educationalCredentialAwarded = $educationalCredentialAwarded; + $this->termDuration = $termDuration; } /** - * @return int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null + * @return \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null */ - public function getNumberOfCredits() + public function getTypicalCreditsPerTerm() { - return $this->numberOfCredits; + return $this->typicalCreditsPerTerm; } /** - * @param int|\OpenActive\Models\SchemaOrg\StructuredValue|string|null $numberOfCredits + * @param \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null $typicalCreditsPerTerm * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfCredits($numberOfCredits) + public function setTypicalCreditsPerTerm($typicalCreditsPerTerm) { $types = [ - "int", "\OpenActive\Models\SchemaOrg\StructuredValue", "string", + "int", "null", ]; - $numberOfCredits = self::checkTypes($numberOfCredits, $types); + $typicalCreditsPerTerm = self::checkTypes($typicalCreditsPerTerm, $types); - $this->numberOfCredits = $numberOfCredits; + $this->typicalCreditsPerTerm = $typicalCreditsPerTerm; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null */ - public function getTimeToComplete() + public function getNumberOfCredits() { - return $this->timeToComplete; + return $this->numberOfCredits; } /** - * @param DateInterval|string|null $timeToComplete + * @param \OpenActive\Models\SchemaOrg\StructuredValue|string|int|null $numberOfCredits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTimeToComplete($timeToComplete) + public function setNumberOfCredits($numberOfCredits) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\StructuredValue", "string", + "int", "null", ]; - $timeToComplete = self::checkTypes($timeToComplete, $types); + $numberOfCredits = self::checkTypes($numberOfCredits, $types); - $this->timeToComplete = $timeToComplete; + $this->numberOfCredits = $numberOfCredits; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getOccupationalCredentialAwarded() + public function getProgramType() { - return $this->occupationalCredentialAwarded; + return $this->programType; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $occupationalCredentialAwarded + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $programType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupationalCredentialAwarded($occupationalCredentialAwarded) + public function setProgramType($programType) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types); + $programType = self::checkTypes($programType, $types); - $this->occupationalCredentialAwarded = $occupationalCredentialAwarded; + $this->programType = $programType; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getTermDuration() + public function getProvider() { - return $this->termDuration; + return $this->provider; } /** - * @param DateInterval|string|null $termDuration + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTermDuration($termDuration) + public function setProvider($provider) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $termDuration = self::checkTypes($termDuration, $types); + $provider = self::checkTypes($provider, $types); - $this->termDuration = $termDuration; + $this->provider = $provider; } /** @@ -726,128 +727,127 @@ public function setEducationalProgramMode($educationalProgramMode) } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return Number|null */ - public function getProgramType() + public function getTermsPerYear() { - return $this->programType; + return $this->termsPerYear; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $programType + * @param Number|null $termsPerYear * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgramType($programType) + public function setTermsPerYear($termsPerYear) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "Number", + "null", ]; - $programType = self::checkTypes($programType, $types); + $termsPerYear = self::checkTypes($termsPerYear, $types); - $this->programType = $programType; + $this->termsPerYear = $termsPerYear; } /** - * @return int|null + * @return string */ - public function getMaximumEnrollment() + public function getTimeOfDay() { - return $this->maximumEnrollment; + return $this->timeOfDay; } /** - * @param int|null $maximumEnrollment + * @param string $timeOfDay * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumEnrollment($maximumEnrollment) + public function setTimeOfDay($timeOfDay) { $types = [ - "int", - "null", + "string", ]; - $maximumEnrollment = self::checkTypes($maximumEnrollment, $types); + $timeOfDay = self::checkTypes($timeOfDay, $types); - $this->maximumEnrollment = $maximumEnrollment; + $this->timeOfDay = $timeOfDay; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\Course|string */ - public function getFinancialAidEligible() + public function getHasCourse() { - return $this->financialAidEligible; + return $this->hasCourse; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $financialAidEligible + * @param \OpenActive\Models\SchemaOrg\Course|string $hasCourse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFinancialAidEligible($financialAidEligible) + public function setHasCourse($hasCourse) { $types = [ + "\OpenActive\Models\SchemaOrg\Course", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $financialAidEligible = self::checkTypes($financialAidEligible, $types); + $hasCourse = self::checkTypes($hasCourse, $types); - $this->financialAidEligible = $financialAidEligible; + $this->hasCourse = $hasCourse; } /** - * @return Date|null + * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - public function getApplicationDeadline() + public function getOccupationalCredentialAwarded() { - return $this->applicationDeadline; + return $this->occupationalCredentialAwarded; } /** - * @param Date|null $applicationDeadline + * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $occupationalCredentialAwarded * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationDeadline($applicationDeadline) + public function setOccupationalCredentialAwarded($occupationalCredentialAwarded) { $types = [ - "Date", - "null", + "string", + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", ]; - $applicationDeadline = self::checkTypes($applicationDeadline, $types); + $occupationalCredentialAwarded = self::checkTypes($occupationalCredentialAwarded, $types); - $this->applicationDeadline = $applicationDeadline; + $this->occupationalCredentialAwarded = $occupationalCredentialAwarded; } /** - * @return \OpenActive\Models\SchemaOrg\CategoryCode|string + * @return Date|null */ - public function getOccupationalCategory() + public function getApplicationDeadline() { - return $this->occupationalCategory; + return $this->applicationDeadline; } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory + * @param Date|null $applicationDeadline * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupationalCategory($occupationalCategory) + public function setApplicationDeadline($applicationDeadline) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCode", - "string", + "Date", + "null", ]; - $occupationalCategory = self::checkTypes($occupationalCategory, $types); + $applicationDeadline = self::checkTypes($applicationDeadline, $types); - $this->occupationalCategory = $occupationalCategory; + $this->applicationDeadline = $applicationDeadline; } } diff --git a/src/Models/SchemaOrg/EducationalOrganization.php b/src/Models/SchemaOrg/EducationalOrganization.php index 6a966106..03d14a41 100644 --- a/src/Models/SchemaOrg/EducationalOrganization.php +++ b/src/Models/SchemaOrg/EducationalOrganization.php @@ -5,7 +5,7 @@ /** * */ -class EducationalOrganization extends \OpenActive\Models\SchemaOrg\CivicStructure +class EducationalOrganization extends \OpenActive\Models\SchemaOrg\Organization { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/EmployeeRole.php b/src/Models/SchemaOrg/EmployeeRole.php index 6740e91d..11c67e1e 100644 --- a/src/Models/SchemaOrg/EmployeeRole.php +++ b/src/Models/SchemaOrg/EmployeeRole.php @@ -17,79 +17,79 @@ public static function getType() public static function fieldList() { $fields = [ - "salaryCurrency" => "salaryCurrency", "baseSalary" => "baseSalary", + "salaryCurrency" => "salaryCurrency", ]; return array_merge(parent::fieldList(), $fields); } /** - * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) ) used for the main salary information in this job posting or for this employee. + * The base salary of the job or of an employee in an EmployeeRole. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - protected $salaryCurrency; + protected $baseSalary; /** - * The base salary of the job or of an employee in an EmployeeRole. + * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)) used for the main salary information in this job posting or for this employee. * * - * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var string */ - protected $baseSalary; + protected $salaryCurrency; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - public function getSalaryCurrency() + public function getBaseSalary() { - return $this->salaryCurrency; + return $this->baseSalary; } /** - * @param string $salaryCurrency + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null $baseSalary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSalaryCurrency($salaryCurrency) + public function setBaseSalary($baseSalary) { $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "Number", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", + "null", ]; - $salaryCurrency = self::checkTypes($salaryCurrency, $types); + $baseSalary = self::checkTypes($baseSalary, $types); - $this->salaryCurrency = $salaryCurrency; + $this->baseSalary = $baseSalary; } /** - * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return string */ - public function getBaseSalary() + public function getSalaryCurrency() { - return $this->baseSalary; + return $this->salaryCurrency; } /** - * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary + * @param string $salaryCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBaseSalary($baseSalary) + public function setSalaryCurrency($salaryCurrency) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\PriceSpecification", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", - "null", ]; - $baseSalary = self::checkTypes($baseSalary, $types); + $salaryCurrency = self::checkTypes($salaryCurrency, $types); - $this->baseSalary = $baseSalary; + $this->salaryCurrency = $salaryCurrency; } } diff --git a/src/Models/SchemaOrg/EnergyConsumptionDetails.php b/src/Models/SchemaOrg/EnergyConsumptionDetails.php index 0233f6c3..9fba7eee 100644 --- a/src/Models/SchemaOrg/EnergyConsumptionDetails.php +++ b/src/Models/SchemaOrg/EnergyConsumptionDetails.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "energyEfficiencyScaleMin" => "energyEfficiencyScaleMin", "hasEnergyEfficiencyCategory" => "hasEnergyEfficiencyCategory", + "energyEfficiencyScaleMin" => "energyEfficiencyScaleMin", "energyEfficiencyScaleMax" => "energyEfficiencyScaleMax", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * Specifies the least energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++. + * Defines the energy efficiency Category (which could be either a rating out of range of values or a yes/no certification) for a product according to an international energy efficiency standard. * * - * @var \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string + * @var \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null */ - protected $energyEfficiencyScaleMin; + protected $hasEnergyEfficiencyCategory; /** - * Defines the energy efficiency Category (which could be either a rating out of range of values or a yes/no certification) for a product according to an international energy efficiency standard. + * Specifies the least energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++. * * - * @var \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null + * @var \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string */ - protected $hasEnergyEfficiencyCategory; + protected $energyEfficiencyScaleMin; /** * Specifies the most energy efficient class on the regulated EU energy consumption scale for the product category a product belongs to. For example, energy consumption for televisions placed on the market after January 1, 2020 is scaled from D to A+++. @@ -50,53 +50,53 @@ public static function fieldList() { protected $energyEfficiencyScaleMax; /** - * @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string + * @return \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null */ - public function getEnergyEfficiencyScaleMin() + public function getHasEnergyEfficiencyCategory() { - return $this->energyEfficiencyScaleMin; + return $this->hasEnergyEfficiencyCategory; } /** - * @param \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string $energyEfficiencyScaleMin + * @param \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null $hasEnergyEfficiencyCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEnergyEfficiencyScaleMin($energyEfficiencyScaleMin) + public function setHasEnergyEfficiencyCategory($hasEnergyEfficiencyCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration", - "string", + "\OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration", + "null", ]; - $energyEfficiencyScaleMin = self::checkTypes($energyEfficiencyScaleMin, $types); + $hasEnergyEfficiencyCategory = self::checkTypes($hasEnergyEfficiencyCategory, $types); - $this->energyEfficiencyScaleMin = $energyEfficiencyScaleMin; + $this->hasEnergyEfficiencyCategory = $hasEnergyEfficiencyCategory; } /** - * @return \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null + * @return \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string */ - public function getHasEnergyEfficiencyCategory() + public function getEnergyEfficiencyScaleMin() { - return $this->hasEnergyEfficiencyCategory; + return $this->energyEfficiencyScaleMin; } /** - * @param \OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration|null $hasEnergyEfficiencyCategory + * @param \OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration|string $energyEfficiencyScaleMin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasEnergyEfficiencyCategory($hasEnergyEfficiencyCategory) + public function setEnergyEfficiencyScaleMin($energyEfficiencyScaleMin) { $types = [ - "\OpenActive\Enums\SchemaOrg\EnergyEfficiencyEnumeration", - "null", + "\OpenActive\Models\SchemaOrg\EUEnergyEfficiencyEnumeration", + "string", ]; - $hasEnergyEfficiencyCategory = self::checkTypes($hasEnergyEfficiencyCategory, $types); + $energyEfficiencyScaleMin = self::checkTypes($energyEfficiencyScaleMin, $types); - $this->hasEnergyEfficiencyCategory = $hasEnergyEfficiencyCategory; + $this->energyEfficiencyScaleMin = $energyEfficiencyScaleMin; } /** diff --git a/src/Models/SchemaOrg/EngineSpecification.php b/src/Models/SchemaOrg/EngineSpecification.php index e534fd48..b0d5a459 100644 --- a/src/Models/SchemaOrg/EngineSpecification.php +++ b/src/Models/SchemaOrg/EngineSpecification.php @@ -18,10 +18,10 @@ public static function getType() public static function fieldList() { $fields = [ "fuelType" => "fuelType", - "torque" => "torque", - "engineDisplacement" => "engineDisplacement", "enginePower" => "enginePower", "engineType" => "engineType", + "engineDisplacement" => "engineDisplacement", + "torque" => "torque", ]; return array_merge(parent::fieldList(), $fields); @@ -36,37 +36,37 @@ public static function fieldList() { protected $fuelType; /** - * The torque (turning force) of the vehicle's engine.\n\nTypical unit code(s): NU for newton metre (N m), F17 for pound-force per foot, or F48 for pound-force per inch\n\n* Note 1: You can link to information about how the given value has been determined (e.g. reference RPM) using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges. + * The power of the vehicle's engine. + * Typical unit code(s): KWT for kilowatt, BHP for brake horsepower, N12 for metric horsepower (PS, with 1 PS = 735,49875 W)\n\n* Note 1: There are many different ways of measuring an engine's power. For an overview, see [http://en.wikipedia.org/wiki/Horsepower#Engine\_power\_test\_codes](http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes).\n* Note 2: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 3: You can use [[minValue]] and [[maxValue]] to indicate ranges. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $torque; + protected $enginePower; /** - * The volume swept by all of the pistons inside the cylinders of an internal combustion engine in a single movement. \n\nTypical unit code(s): CMQ for cubic centimeter, LTR for liters, INQ for cubic inches\n* Note 1: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges. + * The type of engine or engines powering the vehicle. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - protected $engineDisplacement; + protected $engineType; /** - * The power of the vehicle's engine. - * Typical unit code(s): KWT for kilowatt, BHP for brake horsepower, N12 for metric horsepower (PS, with 1 PS = 735,49875 W)\n\n* Note 1: There are many different ways of measuring an engine's power. For an overview, see [http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes](http://en.wikipedia.org/wiki/Horsepower#Engine_power_test_codes).\n* Note 2: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 3: You can use [[minValue]] and [[maxValue]] to indicate ranges. + * The volume swept by all of the pistons inside the cylinders of an internal combustion engine in a single movement. \n\nTypical unit code(s): CMQ for cubic centimeter, LTR for liters, INQ for cubic inches\n* Note 1: You can link to information about how the given value has been determined using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $enginePower; + protected $engineDisplacement; /** - * The type of engine or engines powering the vehicle. + * The torque (turning force) of the vehicle's engine.\n\nTypical unit code(s): NU for newton metre (N m), F17 for pound-force per foot, or F48 for pound-force per inch\n\n* Note 1: You can link to information about how the given value has been determined (e.g. reference RPM) using the [[valueReference]] property.\n* Note 2: You can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $engineType; + protected $torque; /** * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null @@ -97,102 +97,102 @@ public function setFuelType($fuelType) /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getTorque() + public function getEnginePower() { - return $this->torque; + return $this->enginePower; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $torque + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $enginePower * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTorque($torque) + public function setEnginePower($enginePower) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $torque = self::checkTypes($torque, $types); + $enginePower = self::checkTypes($enginePower, $types); - $this->torque = $torque; + $this->enginePower = $enginePower; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null */ - public function getEngineDisplacement() + public function getEngineType() { - return $this->engineDisplacement; + return $this->engineType; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $engineDisplacement + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $engineType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEngineDisplacement($engineDisplacement) + public function setEngineType($engineType) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "null", ]; - $engineDisplacement = self::checkTypes($engineDisplacement, $types); + $engineType = self::checkTypes($engineType, $types); - $this->engineDisplacement = $engineDisplacement; + $this->engineType = $engineType; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEnginePower() + public function getEngineDisplacement() { - return $this->enginePower; + return $this->engineDisplacement; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $enginePower + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $engineDisplacement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEnginePower($enginePower) + public function setEngineDisplacement($engineDisplacement) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $enginePower = self::checkTypes($enginePower, $types); + $engineDisplacement = self::checkTypes($engineDisplacement, $types); - $this->enginePower = $enginePower; + $this->engineDisplacement = $engineDisplacement; } /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEngineType() + public function getTorque() { - return $this->engineType; + return $this->torque; } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $engineType + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $torque * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEngineType($engineType) + public function setTorque($torque) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $engineType = self::checkTypes($engineType, $types); + $torque = self::checkTypes($torque, $types); - $this->engineType = $engineType; + $this->torque = $torque; } } diff --git a/src/Models/SchemaOrg/EntryPoint.php b/src/Models/SchemaOrg/EntryPoint.php index 90f87fbb..7f3fa530 100644 --- a/src/Models/SchemaOrg/EntryPoint.php +++ b/src/Models/SchemaOrg/EntryPoint.php @@ -17,57 +17,57 @@ public static function getType() public static function fieldList() { $fields = [ - "actionApplication" => "actionApplication", - "application" => "application", - "actionPlatform" => "actionPlatform", "httpMethod" => "httpMethod", + "contentType" => "contentType", "urlTemplate" => "urlTemplate", + "application" => "application", + "actionApplication" => "actionApplication", "encodingType" => "encodingType", - "contentType" => "contentType", + "actionPlatform" => "actionPlatform", ]; return array_merge(parent::fieldList(), $fields); } /** - * An application that can complete the request. + * An HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint. Values are capitalized strings as used in HTTP. * * - * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @var string */ - protected $actionApplication; + protected $httpMethod; /** - * An application that can complete the request. + * The supported content type(s) for an EntryPoint response. * * - * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @var string */ - protected $application; + protected $contentType; /** - * The high level platform(s) where the Action can be performed for the given URL. To specify a specific application or operating system instance, use actionApplication. + * An url template (RFC6570) that will be used to construct the target of the execution of the action. * * - * @var string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null + * @var string */ - protected $actionPlatform; + protected $urlTemplate; /** - * An HTTP method that specifies the appropriate HTTP method for a request to an HTTP EntryPoint. Values are capitalized strings as used in HTTP. + * An application that can complete the request. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - protected $httpMethod; + protected $application; /** - * An url template (RFC6570) that will be used to construct the target of the execution of the action. + * An application that can complete the request. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - protected $urlTemplate; + protected $actionApplication; /** * The supported encoding type(s) for an EntryPoint request. @@ -78,135 +78,133 @@ public static function fieldList() { protected $encodingType; /** - * The supported content type(s) for an EntryPoint response. + * The high level platform(s) where the Action can be performed for the given URL. To specify a specific application or operating system instance, use actionApplication. * * - * @var string + * @var string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null */ - protected $contentType; + protected $actionPlatform; /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @return string */ - public function getActionApplication() + public function getHttpMethod() { - return $this->actionApplication; + return $this->httpMethod; } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $actionApplication + * @param string $httpMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActionApplication($actionApplication) + public function setHttpMethod($httpMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $actionApplication = self::checkTypes($actionApplication, $types); + $httpMethod = self::checkTypes($httpMethod, $types); - $this->actionApplication = $actionApplication; + $this->httpMethod = $httpMethod; } /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @return string */ - public function getApplication() + public function getContentType() { - return $this->application; + return $this->contentType; } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $application + * @param string $contentType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplication($application) + public function setContentType($contentType) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $application = self::checkTypes($application, $types); + $contentType = self::checkTypes($contentType, $types); - $this->application = $application; + $this->contentType = $contentType; } /** - * @return string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null + * @return string */ - public function getActionPlatform() + public function getUrlTemplate() { - return $this->actionPlatform; + return $this->urlTemplate; } /** - * @param string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null $actionPlatform + * @param string $urlTemplate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActionPlatform($actionPlatform) + public function setUrlTemplate($urlTemplate) { $types = [ "string", - "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration", - "null", ]; - $actionPlatform = self::checkTypes($actionPlatform, $types); + $urlTemplate = self::checkTypes($urlTemplate, $types); - $this->actionPlatform = $actionPlatform; + $this->urlTemplate = $urlTemplate; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - public function getHttpMethod() + public function getApplication() { - return $this->httpMethod; + return $this->application; } /** - * @param string $httpMethod + * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $application * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHttpMethod($httpMethod) + public function setApplication($application) { $types = [ + "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $httpMethod = self::checkTypes($httpMethod, $types); + $application = self::checkTypes($application, $types); - $this->httpMethod = $httpMethod; + $this->application = $application; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - public function getUrlTemplate() + public function getActionApplication() { - return $this->urlTemplate; + return $this->actionApplication; } /** - * @param string $urlTemplate + * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $actionApplication * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUrlTemplate($urlTemplate) + public function setActionApplication($actionApplication) { $types = [ + "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $urlTemplate = self::checkTypes($urlTemplate, $types); + $actionApplication = self::checkTypes($actionApplication, $types); - $this->urlTemplate = $urlTemplate; + $this->actionApplication = $actionApplication; } /** @@ -234,27 +232,29 @@ public function setEncodingType($encodingType) } /** - * @return string + * @return string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null */ - public function getContentType() + public function getActionPlatform() { - return $this->contentType; + return $this->actionPlatform; } /** - * @param string $contentType + * @param string|\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration|null $actionPlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContentType($contentType) + public function setActionPlatform($actionPlatform) { $types = [ "string", + "\OpenActive\Enums\SchemaOrg\DigitalPlatformEnumeration", + "null", ]; - $contentType = self::checkTypes($contentType, $types); + $actionPlatform = self::checkTypes($actionPlatform, $types); - $this->contentType = $contentType; + $this->actionPlatform = $actionPlatform; } } diff --git a/src/Models/SchemaOrg/Enumeration.php b/src/Models/SchemaOrg/Enumeration.php index 62d87fa6..e1b69fdb 100644 --- a/src/Models/SchemaOrg/Enumeration.php +++ b/src/Models/SchemaOrg/Enumeration.php @@ -27,12 +27,12 @@ public static function fieldList() { * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null */ protected $supersededBy; /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null */ public function getSupersededBy() { @@ -40,17 +40,17 @@ public function getSupersededBy() } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy + * @param \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null $supersededBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSupersededBy($supersededBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", "\OpenActive\Models\SchemaOrg\Class", - "string", "\OpenActive\Enums\PropertyEnumeration", + "\OpenActive\Models\SchemaOrg\Enumeration", + "string", "null", ]; diff --git a/src/Models/SchemaOrg/Episode.php b/src/Models/SchemaOrg/Episode.php index faf85562..2d7323d7 100644 --- a/src/Models/SchemaOrg/Episode.php +++ b/src/Models/SchemaOrg/Episode.php @@ -17,40 +17,40 @@ public static function getType() public static function fieldList() { $fields = [ - "episodeNumber" => "episodeNumber", - "director" => "director", - "actor" => "actor", - "trailer" => "trailer", - "partOfSeries" => "partOfSeries", - "duration" => "duration", "partOfSeason" => "partOfSeason", + "trailer" => "trailer", + "actor" => "actor", "productionCompany" => "productionCompany", - "actors" => "actors", "musicBy" => "musicBy", "directors" => "directors", + "episodeNumber" => "episodeNumber", + "director" => "director", + "actors" => "actors", + "duration" => "duration", + "partOfSeries" => "partOfSeries", ]; return array_merge(parent::fieldList(), $fields); } /** - * Position of the episode within an ordered group of episodes. + * The season to which this episode belongs. * * - * @var string|int|null + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $episodeNumber; + protected $partOfSeason; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $director; + protected $trailer; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string @@ -58,47 +58,47 @@ public static function fieldList() { protected $actor; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $trailer; + protected $productionCompany; /** - * The series to which this episode or season belongs. + * The composer of the soundtrack. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $partOfSeries; + protected $musicBy; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $duration; + protected $directors; /** - * The season to which this episode belongs. + * Position of the episode within an ordered group of episodes. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var string|int|null */ - protected $partOfSeason; + protected $episodeNumber; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $productionCompany; + protected $director; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string @@ -106,70 +106,69 @@ public static function fieldList() { protected $actors; /** - * The composer of the soundtrack. + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var DateInterval|string|null */ - protected $musicBy; + protected $duration; /** - * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. + * The series to which this episode or season belongs. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - protected $directors; + protected $partOfSeries; /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getEpisodeNumber() + public function getPartOfSeason() { - return $this->episodeNumber; + return $this->partOfSeason; } /** - * @param string|int|null $episodeNumber + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisodeNumber($episodeNumber) + public function setPartOfSeason($partOfSeason) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", - "int", - "null", ]; - $episodeNumber = self::checkTypes($episodeNumber, $types); + $partOfSeason = self::checkTypes($partOfSeason, $types); - $this->episodeNumber = $episodeNumber; + $this->partOfSeason = $partOfSeason; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getDirector() + public function getTrailer() { - return $this->director; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $director = self::checkTypes($director, $types); + $trailer = self::checkTypes($trailer, $types); - $this->director = $director; + $this->trailer = $trailer; } /** @@ -198,129 +197,130 @@ public function setActor($actor) } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getTrailer() + public function getProductionCompany() { - return $this->trailer; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->trailer = $trailer; + $this->productionCompany = $productionCompany; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPartOfSeries() + public function getMusicBy() { - return $this->partOfSeries; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries + * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfSeries($partOfSeries) + public function setMusicBy($musicBy) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $partOfSeries = self::checkTypes($partOfSeries, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->partOfSeries = $partOfSeries; + $this->musicBy = $musicBy; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDuration() + public function getDirectors() { - return $this->duration; + return $this->directors; } /** - * @param DateInterval|string|null $duration + * @param \OpenActive\Models\SchemaOrg\Person|string $directors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setDirectors($directors) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $duration = self::checkTypes($duration, $types); + $directors = self::checkTypes($directors, $types); - $this->duration = $duration; + $this->directors = $directors; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return string|int|null */ - public function getPartOfSeason() + public function getEpisodeNumber() { - return $this->partOfSeason; + return $this->episodeNumber; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $partOfSeason + * @param string|int|null $episodeNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartOfSeason($partOfSeason) + public function setEpisodeNumber($episodeNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", + "int", + "null", ]; - $partOfSeason = self::checkTypes($partOfSeason, $types); + $episodeNumber = self::checkTypes($episodeNumber, $types); - $this->partOfSeason = $partOfSeason; + $this->episodeNumber = $episodeNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getProductionCompany() + public function getDirector() { - return $this->productionCompany; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionCompany($productionCompany) + public function setDirector($director) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $director = self::checkTypes($director, $types); - $this->productionCompany = $productionCompany; + $this->director = $director; } /** @@ -349,54 +349,54 @@ public function setActors($actors) } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return DateInterval|string|null */ - public function getMusicBy() + public function getDuration() { - return $this->musicBy; + return $this->duration; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param DateInterval|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setDuration($duration) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "DateInterval", "string", + "null", ]; - $musicBy = self::checkTypes($musicBy, $types); + $duration = self::checkTypes($duration, $types); - $this->musicBy = $musicBy; + $this->duration = $duration; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string */ - public function getDirectors() + public function getPartOfSeries() { - return $this->directors; + return $this->partOfSeries; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeries|string $partOfSeries * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirectors($directors) + public function setPartOfSeries($partOfSeries) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeries", "string", ]; - $directors = self::checkTypes($directors, $types); + $partOfSeries = self::checkTypes($partOfSeries, $types); - $this->directors = $directors; + $this->partOfSeries = $partOfSeries; } } diff --git a/src/Models/SchemaOrg/Event.php b/src/Models/SchemaOrg/Event.php index ece71294..63e86968 100644 --- a/src/Models/SchemaOrg/Event.php +++ b/src/Models/SchemaOrg/Event.php @@ -17,131 +17,140 @@ public static function getType() public static function fieldList() { $fields = [ - "superEvent" => "superEvent", - "eventAttendanceMode" => "eventAttendanceMode", - "review" => "review", - "translator" => "translator", - "startDate" => "startDate", - "composer" => "composer", - "maximumAttendeeCapacity" => "maximumAttendeeCapacity", - "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity", - "director" => "director", "funding" => "funding", - "keywords" => "keywords", - "audience" => "audience", - "offers" => "offers", - "subEvent" => "subEvent", + "about" => "about", + "performer" => "performer", "actor" => "actor", - "eventStatus" => "eventStatus", + "subEvents" => "subEvents", + "maximumAttendeeCapacity" => "maximumAttendeeCapacity", + "startDate" => "startDate", + "previousStartDate" => "previousStartDate", + "offers" => "offers", "endDate" => "endDate", "funder" => "funder", - "performer" => "performer", + "keywords" => "keywords", + "workFeatured" => "workFeatured", + "attendees" => "attendees", + "attendee" => "attendee", + "translator" => "translator", + "remainingAttendeeCapacity" => "remainingAttendeeCapacity", + "superEvent" => "superEvent", + "eventAttendanceMode" => "eventAttendanceMode", + "maximumVirtualAttendeeCapacity" => "maximumVirtualAttendeeCapacity", "aggregateRating" => "aggregateRating", + "performers" => "performers", "typicalAgeRange" => "typicalAgeRange", + "subEvent" => "subEvent", + "doorTime" => "doorTime", + "eventSchedule" => "eventSchedule", "location" => "location", - "performers" => "performers", - "duration" => "duration", - "organizer" => "organizer", - "sponsor" => "sponsor", - "previousStartDate" => "previousStartDate", + "eventStatus" => "eventStatus", "isAccessibleForFree" => "isAccessibleForFree", - "remainingAttendeeCapacity" => "remainingAttendeeCapacity", - "subEvents" => "subEvents", + "director" => "director", "workPerformed" => "workPerformed", - "doorTime" => "doorTime", - "inLanguage" => "inLanguage", - "about" => "about", "recordedIn" => "recordedIn", + "sponsor" => "sponsor", + "organizer" => "organizer", + "composer" => "composer", + "review" => "review", + "duration" => "duration", + "inLanguage" => "inLanguage", + "audience" => "audience", "maximumPhysicalAttendeeCapacity" => "maximumPhysicalAttendeeCapacity", - "attendee" => "attendee", - "workFeatured" => "workFeatured", - "eventSchedule" => "eventSchedule", "contributor" => "contributor", - "attendees" => "attendees", ]; return array_merge(parent::fieldList(), $fields); } /** - * An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $superEvent; + protected $funding; /** - * The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix. + * The subject matter of the content. * * - * @var \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $eventAttendanceMode; + protected $about; /** - * A review of the item. + * A performer at the event—for example, a presenter, musician, musical group or actor. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $review; + protected $performer; /** - * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event. + * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $translator; + protected $actor; /** - * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $startDate; + protected $subEvents; /** - * The person or organization who wrote a composition, or who is the composer of a work performed at some event. + * The total number of individuals that may attend an event or venue. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var int|null */ - protected $composer; + protected $maximumAttendeeCapacity; /** - * The total number of individuals that may attend an event or venue. + * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var int|null + * @var Date|DateTime|null */ - protected $maximumAttendeeCapacity; + protected $startDate; /** - * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). + * Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated. * * - * @var int|null + * @var Date|null */ - protected $maximumVirtualAttendeeCapacity; + protected $previousStartDate; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. + * * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - protected $director; + protected $offers; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * * - * @var \OpenActive\Models\SchemaOrg\Grant|string + * @var Date|DateTime|null */ - protected $funding; + protected $endDate; + + /** + * A person or organization that supports (sponsors) something through some kind of financial contribution. + * + * + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + */ + protected $funder; /** * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property. @@ -152,69 +161,69 @@ public static function fieldList() { protected $keywords; /** - * An intended audience, i.e. a group for whom something was created. + * A work featured in some event, e.g. exhibited in an ExhibitionEvent. + * Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent). * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $audience; + protected $workFeatured; /** - * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. - * + * A person attending the event. * * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $offers; + protected $attendees; /** - * An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference. + * A person or organization attending the event. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $subEvent; + protected $attendee; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $actor; + protected $translator; /** - * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled. + * The number of attendee places for an event that remain unallocated. * * - * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null + * @var int|null */ - protected $eventStatus; + protected $remainingAttendeeCapacity; /** - * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $endDate; + protected $superEvent; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null */ - protected $funder; + protected $eventAttendanceMode; /** - * A performer at the event—for example, a presenter, musician, musical group or actor. + * The maximum virtual attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var int|null */ - protected $performer; + protected $maximumVirtualAttendeeCapacity; /** * The overall rating, based on a collection of reviews or ratings, of the item. @@ -225,60 +234,65 @@ public static function fieldList() { protected $aggregateRating; /** - * The typical expected age range, e.g. '7-9', '11-'. + * The main performer or performers of the event—for example, a presenter, musician, or actor. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $typicalAgeRange; + protected $performers; /** - * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. + * The typical expected age range, e.g. '7-9', '11-'. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @var string */ - protected $location; + protected $typicalAgeRange; /** - * The main performer or performers of the event—for example, a presenter, musician, or actor. + * An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $performers; + protected $subEvent; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * The time admission will commence. * * - * @var DateInterval|string|null + * @var DateTime|string|null */ - protected $duration; + protected $doorTime; /** - * An organizer of an Event. + * Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of + * repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly + * gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that + * is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated + * [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months + * or seasons. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Schedule|string */ - protected $organizer; + protected $eventSchedule; /** - * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event. + * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation */ - protected $sponsor; + protected $location; /** - * Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated. + * An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled. * * - * @var Date|null + * @var \OpenActive\Enums\SchemaOrg\EventStatusType|null */ - protected $previousStartDate; + protected $eventStatus; /** * A flag to signal that the item, event, or place is accessible for free. @@ -289,366 +303,379 @@ public static function fieldList() { protected $isAccessibleForFree; /** - * The number of attendee places for an event that remain unallocated. + * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $remainingAttendeeCapacity; + protected $director; /** - * Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference. + * A work performed in some event, for example a play performed in a TheaterEvent. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $subEvents; + protected $workPerformed; /** - * A work performed in some event, for example a play performed in a TheaterEvent. + * The CreativeWork that captured all or part of this Event. * * * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $workPerformed; + protected $recordedIn; /** - * The time admission will commence. + * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event. * * - * @var DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $doorTime; + protected $sponsor; /** - * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. + * An organizer of an Event. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $inLanguage; + protected $organizer; /** - * The subject matter of the content. + * The person or organization who wrote a composition, or who is the composer of a work performed at some event. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $about; + protected $composer; /** - * The CreativeWork that captured all or part of this Event. + * A review of the item. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $recordedIn; + protected $review; /** - * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var int|null + * @var DateInterval|string|null */ - protected $maximumPhysicalAttendeeCapacity; + protected $duration; /** - * A person or organization attending the event. + * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $attendee; + protected $inLanguage; /** - * A work featured in some event, e.g. exhibited in an ExhibitionEvent. - * Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent). + * An intended audience, i.e. a group for whom something was created. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $workFeatured; + protected $audience; /** - * Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of - * repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly - * gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that - * is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated - * [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months - * or seasons. + * The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). * * - * @var \OpenActive\Models\SchemaOrg\Schedule|string + * @var int|null */ - protected $eventSchedule; + protected $maximumPhysicalAttendeeCapacity; /** * A secondary contributor to the CreativeWork or Event. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ protected $contributor; /** - * A person attending the event. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - protected $attendees; + public function getFunding() + { + return $this->funding; + } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function getSuperEvent() + public function setFunding($funding) { - return $this->superEvent; + $types = [ + "\OpenActive\Models\SchemaOrg\Grant", + "string", + ]; + + $funding = self::checkTypes($funding, $types); + + $this->funding = $funding; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $superEvent + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getAbout() + { + return $this->about; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Thing|string $about * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuperEvent($superEvent) + public function setAbout($about) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $superEvent = self::checkTypes($superEvent, $types); + $about = self::checkTypes($about, $types); - $this->superEvent = $superEvent; + $this->about = $about; } /** - * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getEventAttendanceMode() + public function getPerformer() { - return $this->eventAttendanceMode; + return $this->performer; } /** - * @param \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null $eventAttendanceMode + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $performer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEventAttendanceMode($eventAttendanceMode) + public function setPerformer($performer) { $types = [ - "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types); + $performer = self::checkTypes($performer, $types); - $this->eventAttendanceMode = $eventAttendanceMode; + $this->performer = $performer; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getReview() + public function getActor() { - return $this->review; + return $this->actor; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param \OpenActive\Models\SchemaOrg\Person|string $actor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setActor($actor) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $review = self::checkTypes($review, $types); + $actor = self::checkTypes($actor, $types); - $this->review = $review; + $this->actor = $actor; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getTranslator() + public function getSubEvents() { - return $this->translator; + return $this->subEvents; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator + * @param \OpenActive\Models\SchemaOrg\Event|string $subEvents * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTranslator($translator) + public function setSubEvents($subEvents) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $translator = self::checkTypes($translator, $types); + $subEvents = self::checkTypes($subEvents, $types); - $this->translator = $translator; + $this->subEvents = $subEvents; } /** - * @return Date|DateTime|null + * @return int|null */ - public function getStartDate() + public function getMaximumAttendeeCapacity() { - return $this->startDate; + return $this->maximumAttendeeCapacity; } /** - * @param Date|DateTime|null $startDate + * @param int|null $maximumAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartDate($startDate) + public function setMaximumAttendeeCapacity($maximumAttendeeCapacity) { $types = [ - "Date", - "DateTime", + "int", "null", ]; - $startDate = self::checkTypes($startDate, $types); + $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); - $this->startDate = $startDate; + $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return Date|DateTime|null */ - public function getComposer() + public function getStartDate() { - return $this->composer; + return $this->startDate; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setComposer($composer) + public function setStartDate($startDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "DateTime", + "null", ]; - $composer = self::checkTypes($composer, $types); + $startDate = self::checkTypes($startDate, $types); - $this->composer = $composer; + $this->startDate = $startDate; } /** - * @return int|null + * @return Date|null */ - public function getMaximumAttendeeCapacity() + public function getPreviousStartDate() { - return $this->maximumAttendeeCapacity; + return $this->previousStartDate; } /** - * @param int|null $maximumAttendeeCapacity + * @param Date|null $previousStartDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumAttendeeCapacity($maximumAttendeeCapacity) + public function setPreviousStartDate($previousStartDate) { $types = [ - "int", + "Date", "null", ]; - $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); + $previousStartDate = self::checkTypes($previousStartDate, $types); - $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; + $this->previousStartDate = $previousStartDate; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - public function getMaximumVirtualAttendeeCapacity() + public function getOffers() { - return $this->maximumVirtualAttendeeCapacity; + return $this->offers; } /** - * @param int|null $maximumVirtualAttendeeCapacity + * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity) + public function setOffers($offers) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Demand", + "string", ]; - $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types); + $offers = self::checkTypes($offers, $types); - $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity; + $this->offers = $offers; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return Date|DateTime|null */ - public function getDirector() + public function getEndDate() { - return $this->director; + return $this->endDate; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setEndDate($endDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "DateTime", + "null", ]; - $director = self::checkTypes($director, $types); + $endDate = self::checkTypes($endDate, $types); - $this->director = $director; + $this->endDate = $endDate; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getFunding() + public function getFunder() { - return $this->funding; + return $this->funder; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunding($funding) + public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $funding = self::checkTypes($funding, $types); + $funder = self::checkTypes($funder, $types); - $this->funding = $funding; + $this->funder = $funder; } /** @@ -677,207 +704,206 @@ public function setKeywords($keywords) } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getAudience() + public function getWorkFeatured() { - return $this->audience; + return $this->workFeatured; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workFeatured * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setWorkFeatured($workFeatured) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $audience = self::checkTypes($audience, $types); + $workFeatured = self::checkTypes($workFeatured, $types); - $this->audience = $audience; + $this->workFeatured = $workFeatured; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getOffers() + public function getAttendees() { - return $this->offers; + return $this->attendees; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $attendees * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setAttendees($attendees) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $offers = self::checkTypes($offers, $types); + $attendees = self::checkTypes($attendees, $types); - $this->offers = $offers; + $this->attendees = $attendees; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getSubEvent() + public function getAttendee() { - return $this->subEvent; + return $this->attendee; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $subEvent + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubEvent($subEvent) + public function setAttendee($attendee) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $subEvent = self::checkTypes($subEvent, $types); + $attendee = self::checkTypes($attendee, $types); - $this->subEvent = $subEvent; + $this->attendee = $attendee; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getActor() + public function getTranslator() { - return $this->actor; + return $this->translator; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $translator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setTranslator($translator) { $types = [ "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $actor = self::checkTypes($actor, $types); + $translator = self::checkTypes($translator, $types); - $this->actor = $actor; + $this->translator = $translator; } /** - * @return \OpenActive\Enums\SchemaOrg\EventStatusType|null + * @return int|null */ - public function getEventStatus() + public function getRemainingAttendeeCapacity() { - return $this->eventStatus; + return $this->remainingAttendeeCapacity; } /** - * @param \OpenActive\Enums\SchemaOrg\EventStatusType|null $eventStatus + * @param int|null $remainingAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEventStatus($eventStatus) + public function setRemainingAttendeeCapacity($remainingAttendeeCapacity) { $types = [ - "\OpenActive\Enums\SchemaOrg\EventStatusType", + "int", "null", ]; - $eventStatus = self::checkTypes($eventStatus, $types); + $remainingAttendeeCapacity = self::checkTypes($remainingAttendeeCapacity, $types); - $this->eventStatus = $eventStatus; + $this->remainingAttendeeCapacity = $remainingAttendeeCapacity; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getEndDate() + public function getSuperEvent() { - return $this->endDate; + return $this->superEvent; } /** - * @param Date|DateTime|null $endDate + * @param \OpenActive\Models\SchemaOrg\Event|string $superEvent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndDate($endDate) + public function setSuperEvent($superEvent) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Event", + "string", ]; - $endDate = self::checkTypes($endDate, $types); + $superEvent = self::checkTypes($superEvent, $types); - $this->endDate = $endDate; + $this->superEvent = $superEvent; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null */ - public function getFunder() + public function getEventAttendanceMode() { - return $this->funder; + return $this->eventAttendanceMode; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @param \OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration|null $eventAttendanceMode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunder($funder) + public function setEventAttendanceMode($eventAttendanceMode) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "\OpenActive\Enums\SchemaOrg\EventAttendanceModeEnumeration", + "null", ]; - $funder = self::checkTypes($funder, $types); + $eventAttendanceMode = self::checkTypes($eventAttendanceMode, $types); - $this->funder = $funder; + $this->eventAttendanceMode = $eventAttendanceMode; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return int|null */ - public function getPerformer() + public function getMaximumVirtualAttendeeCapacity() { - return $this->performer; + return $this->maximumVirtualAttendeeCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $performer + * @param int|null $maximumVirtualAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPerformer($performer) + public function setMaximumVirtualAttendeeCapacity($maximumVirtualAttendeeCapacity) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "int", + "null", ]; - $performer = self::checkTypes($performer, $types); + $maximumVirtualAttendeeCapacity = self::checkTypes($maximumVirtualAttendeeCapacity, $types); - $this->performer = $performer; + $this->maximumVirtualAttendeeCapacity = $maximumVirtualAttendeeCapacity; } /** @@ -906,183 +932,181 @@ public function setAggregateRating($aggregateRating) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getTypicalAgeRange() + public function getPerformers() { - return $this->typicalAgeRange; + return $this->performers; } /** - * @param string $typicalAgeRange + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $performers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypicalAgeRange($typicalAgeRange) + public function setPerformers($performers) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $typicalAgeRange = self::checkTypes($typicalAgeRange, $types); + $performers = self::checkTypes($performers, $types); - $this->typicalAgeRange = $typicalAgeRange; + $this->performers = $performers; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @return string */ - public function getLocation() + public function getTypicalAgeRange() { - return $this->location; + return $this->typicalAgeRange; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @param string $typicalAgeRange * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLocation($location) + public function setTypicalAgeRange($typicalAgeRange) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", "string", - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $location = self::checkTypes($location, $types); + $typicalAgeRange = self::checkTypes($typicalAgeRange, $types); - $this->location = $location; + $this->typicalAgeRange = $typicalAgeRange; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getPerformers() + public function getSubEvent() { - return $this->performers; + return $this->subEvent; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $performers + * @param \OpenActive\Models\SchemaOrg\Event|string $subEvent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPerformers($performers) + public function setSubEvent($subEvent) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $performers = self::checkTypes($performers, $types); + $subEvent = self::checkTypes($subEvent, $types); - $this->performers = $performers; + $this->subEvent = $subEvent; } /** - * @return DateInterval|string|null + * @return DateTime|string|null */ - public function getDuration() + public function getDoorTime() { - return $this->duration; + return $this->doorTime; } /** - * @param DateInterval|string|null $duration + * @param DateTime|string|null $doorTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setDoorTime($doorTime) { $types = [ - "DateInterval", - "string", + "DateTime", + "Time", "null", ]; - $duration = self::checkTypes($duration, $types); + $doorTime = self::checkTypes($doorTime, $types); - $this->duration = $duration; + $this->doorTime = $doorTime; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Schedule|string */ - public function getOrganizer() + public function getEventSchedule() { - return $this->organizer; + return $this->eventSchedule; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $organizer + * @param \OpenActive\Models\SchemaOrg\Schedule|string $eventSchedule * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrganizer($organizer) + public function setEventSchedule($eventSchedule) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Schedule", "string", ]; - $organizer = self::checkTypes($organizer, $types); + $eventSchedule = self::checkTypes($eventSchedule, $types); - $this->organizer = $organizer; + $this->eventSchedule = $eventSchedule; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation */ - public function getSponsor() + public function getLocation() { - return $this->sponsor; + return $this->location; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSponsor($sponsor) + public function setLocation($location) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $sponsor = self::checkTypes($sponsor, $types); + $location = self::checkTypes($location, $types); - $this->sponsor = $sponsor; + $this->location = $location; } /** - * @return Date|null + * @return \OpenActive\Enums\SchemaOrg\EventStatusType|null */ - public function getPreviousStartDate() + public function getEventStatus() { - return $this->previousStartDate; + return $this->eventStatus; } /** - * @param Date|null $previousStartDate + * @param \OpenActive\Enums\SchemaOrg\EventStatusType|null $eventStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPreviousStartDate($previousStartDate) + public function setEventStatus($eventStatus) { $types = [ - "Date", + "\OpenActive\Enums\SchemaOrg\EventStatusType", "null", ]; - $previousStartDate = self::checkTypes($previousStartDate, $types); + $eventStatus = self::checkTypes($eventStatus, $types); - $this->previousStartDate = $previousStartDate; + $this->eventStatus = $eventStatus; } /** @@ -1111,53 +1135,28 @@ public function setIsAccessibleForFree($isAccessibleForFree) } /** - * @return int|null - */ - public function getRemainingAttendeeCapacity() - { - return $this->remainingAttendeeCapacity; - } - - /** - * @param int|null $remainingAttendeeCapacity - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setRemainingAttendeeCapacity($remainingAttendeeCapacity) - { - $types = [ - "int", - "null", - ]; - - $remainingAttendeeCapacity = self::checkTypes($remainingAttendeeCapacity, $types); - - $this->remainingAttendeeCapacity = $remainingAttendeeCapacity; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSubEvents() + public function getDirector() { - return $this->subEvents; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $subEvents + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubEvents($subEvents) + public function setDirector($director) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $subEvents = self::checkTypes($subEvents, $types); + $director = self::checkTypes($director, $types); - $this->subEvents = $subEvents; + $this->director = $director; } /** @@ -1186,247 +1185,248 @@ public function setWorkPerformed($workPerformed) } /** - * @return DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getDoorTime() + public function getRecordedIn() { - return $this->doorTime; + return $this->recordedIn; } /** - * @param DateTime|string|null $doorTime + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $recordedIn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoorTime($doorTime) + public function setRecordedIn($recordedIn) { $types = [ - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", ]; - $doorTime = self::checkTypes($doorTime, $types); + $recordedIn = self::checkTypes($recordedIn, $types); - $this->doorTime = $doorTime; + $this->recordedIn = $recordedIn; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getInLanguage() + public function getSponsor() { - return $this->inLanguage; + return $this->sponsor; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInLanguage($inLanguage) + public function setSponsor($sponsor) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->inLanguage = $inLanguage; + $this->sponsor = $sponsor; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getAbout() + public function getOrganizer() { - return $this->about; + return $this->organizer; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $about + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $organizer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAbout($about) + public function setOrganizer($organizer) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $about = self::checkTypes($about, $types); + $organizer = self::checkTypes($organizer, $types); - $this->about = $about; + $this->organizer = $organizer; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getRecordedIn() + public function getComposer() { - return $this->recordedIn; + return $this->composer; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $recordedIn + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecordedIn($recordedIn) + public function setComposer($composer) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $recordedIn = self::checkTypes($recordedIn, $types); + $composer = self::checkTypes($composer, $types); - $this->recordedIn = $recordedIn; + $this->composer = $composer; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getMaximumPhysicalAttendeeCapacity() + public function getReview() { - return $this->maximumPhysicalAttendeeCapacity; + return $this->review; } /** - * @param int|null $maximumPhysicalAttendeeCapacity + * @param \OpenActive\Models\SchemaOrg\Review|string $review * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity) + public function setReview($review) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Review", + "string", ]; - $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types); + $review = self::checkTypes($review, $types); - $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return DateInterval|string|null */ - public function getAttendee() + public function getDuration() { - return $this->attendee; + return $this->duration; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendee + * @param DateInterval|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAttendee($attendee) + public function setDuration($duration) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "DateInterval", "string", + "null", ]; - $attendee = self::checkTypes($attendee, $types); + $duration = self::checkTypes($duration, $types); - $this->attendee = $attendee; + $this->duration = $duration; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getWorkFeatured() + public function getInLanguage() { - return $this->workFeatured; + return $this->inLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $workFeatured + * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkFeatured($workFeatured) + public function setInLanguage($inLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $workFeatured = self::checkTypes($workFeatured, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->workFeatured = $workFeatured; + $this->inLanguage = $inLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\Schedule|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getEventSchedule() + public function getAudience() { - return $this->eventSchedule; + return $this->audience; } /** - * @param \OpenActive\Models\SchemaOrg\Schedule|string $eventSchedule + * @param \OpenActive\Models\SchemaOrg\Audience|string $audience * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEventSchedule($eventSchedule) + public function setAudience($audience) { $types = [ - "\OpenActive\Models\SchemaOrg\Schedule", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $eventSchedule = self::checkTypes($eventSchedule, $types); + $audience = self::checkTypes($audience, $types); - $this->eventSchedule = $eventSchedule; + $this->audience = $audience; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return int|null */ - public function getContributor() + public function getMaximumPhysicalAttendeeCapacity() { - return $this->contributor; + return $this->maximumPhysicalAttendeeCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $contributor + * @param int|null $maximumPhysicalAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContributor($contributor) + public function setMaximumPhysicalAttendeeCapacity($maximumPhysicalAttendeeCapacity) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "int", + "null", ]; - $contributor = self::checkTypes($contributor, $types); + $maximumPhysicalAttendeeCapacity = self::checkTypes($maximumPhysicalAttendeeCapacity, $types); - $this->contributor = $contributor; + $this->maximumPhysicalAttendeeCapacity = $maximumPhysicalAttendeeCapacity; } /** * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getAttendees() + public function getContributor() { - return $this->attendees; + return $this->contributor; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $attendees + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $contributor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAttendees($attendees) + public function setContributor($contributor) { $types = [ "\OpenActive\Models\SchemaOrg\Person", @@ -1434,9 +1434,9 @@ public function setAttendees($attendees) "string", ]; - $attendees = self::checkTypes($attendees, $types); + $contributor = self::checkTypes($contributor, $types); - $this->attendees = $attendees; + $this->contributor = $contributor; } } diff --git a/src/Models/SchemaOrg/ExchangeRateSpecification.php b/src/Models/SchemaOrg/ExchangeRateSpecification.php index 46d61d52..0c8bd4ff 100644 --- a/src/Models/SchemaOrg/ExchangeRateSpecification.php +++ b/src/Models/SchemaOrg/ExchangeRateSpecification.php @@ -17,65 +17,64 @@ public static function getType() public static function fieldList() { $fields = [ - "currentExchangeRate" => "currentExchangeRate", - "exchangeRateSpread" => "exchangeRateSpread", "currency" => "currency", + "exchangeRateSpread" => "exchangeRateSpread", + "currentExchangeRate" => "currentExchangeRate", ]; return array_merge(parent::fieldList(), $fields); } /** - * The current price of a currency. + * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * - * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string + * @var string */ - protected $currentExchangeRate; + protected $currency; /** * The difference between the price at which a broker or other intermediary buys and sells foreign currency. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ protected $exchangeRateSpread; /** - * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The current price of a currency. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string */ - protected $currency; + protected $currentExchangeRate; /** - * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string + * @return string */ - public function getCurrentExchangeRate() + public function getCurrency() { - return $this->currentExchangeRate; + return $this->currency; } /** - * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $currentExchangeRate + * @param string $currency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCurrentExchangeRate($currentExchangeRate) + public function setCurrency($currency) { $types = [ - "\OpenActive\Models\SchemaOrg\UnitPriceSpecification", "string", ]; - $currentExchangeRate = self::checkTypes($currentExchangeRate, $types); + $currency = self::checkTypes($currency, $types); - $this->currentExchangeRate = $currentExchangeRate; + $this->currency = $currency; } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ public function getExchangeRateSpread() { @@ -83,16 +82,16 @@ public function getExchangeRateSpread() } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $exchangeRateSpread + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $exchangeRateSpread * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setExchangeRateSpread($exchangeRateSpread) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "Number", "null", ]; @@ -102,27 +101,28 @@ public function setExchangeRateSpread($exchangeRateSpread) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string */ - public function getCurrency() + public function getCurrentExchangeRate() { - return $this->currency; + return $this->currentExchangeRate; } /** - * @param string $currency + * @param \OpenActive\Models\SchemaOrg\UnitPriceSpecification|string $currentExchangeRate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCurrency($currency) + public function setCurrentExchangeRate($currentExchangeRate) { $types = [ + "\OpenActive\Models\SchemaOrg\UnitPriceSpecification", "string", ]; - $currency = self::checkTypes($currency, $types); + $currentExchangeRate = self::checkTypes($currentExchangeRate, $types); - $this->currency = $currency; + $this->currentExchangeRate = $currentExchangeRate; } } diff --git a/src/Models/SchemaOrg/ExerciseAction.php b/src/Models/SchemaOrg/ExerciseAction.php index 77e1786e..2961ddd4 100644 --- a/src/Models/SchemaOrg/ExerciseAction.php +++ b/src/Models/SchemaOrg/ExerciseAction.php @@ -17,47 +17,47 @@ public static function getType() public static function fieldList() { $fields = [ - "sportsTeam" => "sportsTeam", "course" => "course", - "fromLocation" => "fromLocation", - "diet" => "diet", - "sportsActivityLocation" => "sportsActivityLocation", - "distance" => "distance", - "exercisePlan" => "exercisePlan", - "sportsEvent" => "sportsEvent", "exerciseRelatedDiet" => "exerciseRelatedDiet", + "sportsEvent" => "sportsEvent", + "diet" => "diet", "opponent" => "opponent", - "exerciseCourse" => "exerciseCourse", - "toLocation" => "toLocation", "exerciseType" => "exerciseType", + "exercisePlan" => "exercisePlan", + "toLocation" => "toLocation", + "sportsActivityLocation" => "sportsActivityLocation", + "exerciseCourse" => "exerciseCourse", + "fromLocation" => "fromLocation", + "distance" => "distance", + "sportsTeam" => "sportsTeam", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of participant. The sports team that participated on this action. + * A sub property of location. The course where this action was taken. * * - * @var \OpenActive\Models\SchemaOrg\SportsTeam|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $sportsTeam; + protected $course; /** - * A sub property of location. The course where this action was taken. + * A sub property of instrument. The diet used in this action. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Diet|string */ - protected $course; + protected $exerciseRelatedDiet; /** - * A sub property of location. The original location of the object or the agent before the action. + * A sub property of location. The sports event where this action occurred. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\SportsEvent|string */ - protected $fromLocation; + protected $sportsEvent; /** * A sub property of instrument. The diet used in this action. @@ -68,20 +68,20 @@ public static function fieldList() { protected $diet; /** - * A sub property of location. The sports activity location where this action occurred. + * A sub property of participant. The opponent on this action. * * - * @var \OpenActive\Models\SchemaOrg\SportsActivityLocation|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $sportsActivityLocation; + protected $opponent; /** - * The distance travelled, e.g. exercising or travelling. + * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc. * * - * @var \OpenActive\Models\SchemaOrg\Distance|string + * @var string */ - protected $distance; + protected $exerciseType; /** * A sub property of instrument. The exercise plan used on this action. @@ -92,126 +92,126 @@ public static function fieldList() { protected $exercisePlan; /** - * A sub property of location. The sports event where this action occurred. + * A sub property of location. The final location of the object or the agent after the action. * * - * @var \OpenActive\Models\SchemaOrg\SportsEvent|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $sportsEvent; + protected $toLocation; /** - * A sub property of instrument. The diet used in this action. + * A sub property of location. The sports activity location where this action occurred. * * - * @var \OpenActive\Models\SchemaOrg\Diet|string + * @var \OpenActive\Models\SchemaOrg\SportsActivityLocation|string */ - protected $exerciseRelatedDiet; + protected $sportsActivityLocation; /** - * A sub property of participant. The opponent on this action. + * A sub property of location. The course where this action was taken. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $opponent; + protected $exerciseCourse; /** - * A sub property of location. The course where this action was taken. + * A sub property of location. The original location of the object or the agent before the action. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $exerciseCourse; + protected $fromLocation; /** - * A sub property of location. The final location of the object or the agent after the action. + * The distance travelled, e.g. exercising or travelling. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Distance|string */ - protected $toLocation; + protected $distance; /** - * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc. + * A sub property of participant. The sports team that participated on this action. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SportsTeam|string */ - protected $exerciseType; + protected $sportsTeam; /** - * @return \OpenActive\Models\SchemaOrg\SportsTeam|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getSportsTeam() + public function getCourse() { - return $this->sportsTeam; + return $this->course; } /** - * @param \OpenActive\Models\SchemaOrg\SportsTeam|string $sportsTeam + * @param \OpenActive\Models\SchemaOrg\Place|string $course * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSportsTeam($sportsTeam) + public function setCourse($course) { $types = [ - "\OpenActive\Models\SchemaOrg\SportsTeam", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $sportsTeam = self::checkTypes($sportsTeam, $types); + $course = self::checkTypes($course, $types); - $this->sportsTeam = $sportsTeam; + $this->course = $course; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Diet|string */ - public function getCourse() + public function getExerciseRelatedDiet() { - return $this->course; + return $this->exerciseRelatedDiet; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $course + * @param \OpenActive\Models\SchemaOrg\Diet|string $exerciseRelatedDiet * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCourse($course) + public function setExerciseRelatedDiet($exerciseRelatedDiet) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Diet", "string", ]; - $course = self::checkTypes($course, $types); + $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types); - $this->course = $course; + $this->exerciseRelatedDiet = $exerciseRelatedDiet; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\SportsEvent|string */ - public function getFromLocation() + public function getSportsEvent() { - return $this->fromLocation; + return $this->sportsEvent; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation + * @param \OpenActive\Models\SchemaOrg\SportsEvent|string $sportsEvent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFromLocation($fromLocation) + public function setSportsEvent($sportsEvent) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\SportsEvent", "string", ]; - $fromLocation = self::checkTypes($fromLocation, $types); + $sportsEvent = self::checkTypes($sportsEvent, $types); - $this->fromLocation = $fromLocation; + $this->sportsEvent = $sportsEvent; } /** @@ -240,53 +240,52 @@ public function setDiet($diet) } /** - * @return \OpenActive\Models\SchemaOrg\SportsActivityLocation|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSportsActivityLocation() + public function getOpponent() { - return $this->sportsActivityLocation; + return $this->opponent; } /** - * @param \OpenActive\Models\SchemaOrg\SportsActivityLocation|string $sportsActivityLocation + * @param \OpenActive\Models\SchemaOrg\Person|string $opponent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSportsActivityLocation($sportsActivityLocation) + public function setOpponent($opponent) { $types = [ - "\OpenActive\Models\SchemaOrg\SportsActivityLocation", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $sportsActivityLocation = self::checkTypes($sportsActivityLocation, $types); + $opponent = self::checkTypes($opponent, $types); - $this->sportsActivityLocation = $sportsActivityLocation; + $this->opponent = $opponent; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|string + * @return string */ - public function getDistance() + public function getExerciseType() { - return $this->distance; + return $this->exerciseType; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|string $distance + * @param string $exerciseType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDistance($distance) + public function setExerciseType($exerciseType) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", "string", ]; - $distance = self::checkTypes($distance, $types); + $exerciseType = self::checkTypes($exerciseType, $types); - $this->distance = $distance; + $this->exerciseType = $exerciseType; } /** @@ -315,152 +314,153 @@ public function setExercisePlan($exercisePlan) } /** - * @return \OpenActive\Models\SchemaOrg\SportsEvent|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getSportsEvent() + public function getToLocation() { - return $this->sportsEvent; + return $this->toLocation; } /** - * @param \OpenActive\Models\SchemaOrg\SportsEvent|string $sportsEvent + * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSportsEvent($sportsEvent) + public function setToLocation($toLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\SportsEvent", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $sportsEvent = self::checkTypes($sportsEvent, $types); + $toLocation = self::checkTypes($toLocation, $types); - $this->sportsEvent = $sportsEvent; + $this->toLocation = $toLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Diet|string + * @return \OpenActive\Models\SchemaOrg\SportsActivityLocation|string */ - public function getExerciseRelatedDiet() + public function getSportsActivityLocation() { - return $this->exerciseRelatedDiet; + return $this->sportsActivityLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Diet|string $exerciseRelatedDiet + * @param \OpenActive\Models\SchemaOrg\SportsActivityLocation|string $sportsActivityLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExerciseRelatedDiet($exerciseRelatedDiet) + public function setSportsActivityLocation($sportsActivityLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Diet", + "\OpenActive\Models\SchemaOrg\SportsActivityLocation", "string", ]; - $exerciseRelatedDiet = self::checkTypes($exerciseRelatedDiet, $types); + $sportsActivityLocation = self::checkTypes($sportsActivityLocation, $types); - $this->exerciseRelatedDiet = $exerciseRelatedDiet; + $this->sportsActivityLocation = $sportsActivityLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getOpponent() + public function getExerciseCourse() { - return $this->opponent; + return $this->exerciseCourse; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $opponent + * @param \OpenActive\Models\SchemaOrg\Place|string $exerciseCourse * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOpponent($opponent) + public function setExerciseCourse($exerciseCourse) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $opponent = self::checkTypes($opponent, $types); + $exerciseCourse = self::checkTypes($exerciseCourse, $types); - $this->opponent = $opponent; + $this->exerciseCourse = $exerciseCourse; } /** * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getExerciseCourse() + public function getFromLocation() { - return $this->exerciseCourse; + return $this->fromLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $exerciseCourse + * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExerciseCourse($exerciseCourse) + public function setFromLocation($fromLocation) { $types = [ "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $exerciseCourse = self::checkTypes($exerciseCourse, $types); + $fromLocation = self::checkTypes($fromLocation, $types); - $this->exerciseCourse = $exerciseCourse; + $this->fromLocation = $fromLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Distance|string */ - public function getToLocation() + public function getDistance() { - return $this->toLocation; + return $this->distance; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation + * @param \OpenActive\Models\SchemaOrg\Distance|string $distance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setToLocation($toLocation) + public function setDistance($distance) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Distance", "string", ]; - $toLocation = self::checkTypes($toLocation, $types); + $distance = self::checkTypes($distance, $types); - $this->toLocation = $toLocation; + $this->distance = $distance; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function getExerciseType() + public function getSportsTeam() { - return $this->exerciseType; + return $this->sportsTeam; } /** - * @param string $exerciseType + * @param \OpenActive\Models\SchemaOrg\SportsTeam|string $sportsTeam * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExerciseType($exerciseType) + public function setSportsTeam($sportsTeam) { $types = [ + "\OpenActive\Models\SchemaOrg\SportsTeam", "string", ]; - $exerciseType = self::checkTypes($exerciseType, $types); + $sportsTeam = self::checkTypes($sportsTeam, $types); - $this->exerciseType = $exerciseType; + $this->sportsTeam = $sportsTeam; } } diff --git a/src/Models/SchemaOrg/ExercisePlan.php b/src/Models/SchemaOrg/ExercisePlan.php index df458ebc..6700602f 100644 --- a/src/Models/SchemaOrg/ExercisePlan.php +++ b/src/Models/SchemaOrg/ExercisePlan.php @@ -17,58 +17,50 @@ public static function getType() public static function fieldList() { $fields = [ - "repetitions" => "repetitions", - "intensity" => "intensity", - "workload" => "workload", - "activityDuration" => "activityDuration", "restPeriods" => "restPeriods", - "activityFrequency" => "activityFrequency", + "workload" => "workload", "additionalVariable" => "additionalVariable", + "intensity" => "intensity", + "activityFrequency" => "activityFrequency", "exerciseType" => "exerciseType", + "repetitions" => "repetitions", + "activityDuration" => "activityDuration", ]; return array_merge(parent::fieldList(), $fields); } /** - * Number of times one should repeat the activity. - * - * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null - */ - protected $repetitions; - - /** - * Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement. + * How often one should break from the activity. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - protected $intensity; + protected $restPeriods; /** * Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string + * @var \OpenActive\Models\SchemaOrg\Energy|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ protected $workload; /** - * Length of time to engage in the activity. + * Any additional component of the exercise prescription that may need to be articulated to the patient. This may include the order of exercises, the number of repetitions of movement, quantitative distance, progressions over time, etc. * * - * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var string */ - protected $activityDuration; + protected $additionalVariable; /** - * How often one should break from the activity. + * Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement. * * * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - protected $restPeriods; + protected $intensity; /** * How often one should engage in the activity. @@ -78,14 +70,6 @@ public static function fieldList() { */ protected $activityFrequency; - /** - * Any additional component of the exercise prescription that may need to be articulated to the patient. This may include the order of exercises, the number of repetitions of movement, quantitative distance, progressions over time, etc. - * - * - * @var string - */ - protected $additionalVariable; - /** * Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc. * @@ -95,59 +79,48 @@ public static function fieldList() { protected $exerciseType; /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * Number of times one should repeat the activity. + * + * + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getRepetitions() - { - return $this->repetitions; - } + protected $repetitions; /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $repetitions - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * Length of time to engage in the activity. + * + * + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function setRepetitions($repetitions) - { - $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", - "null", - ]; - - $repetitions = self::checkTypes($repetitions, $types); - - $this->repetitions = $repetitions; - } + protected $activityDuration; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - public function getIntensity() + public function getRestPeriods() { - return $this->intensity; + return $this->restPeriods; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $intensity + * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $restPeriods * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIntensity($intensity) + public function setRestPeriods($restPeriods) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $intensity = self::checkTypes($intensity, $types); + $restPeriods = self::checkTypes($restPeriods, $types); - $this->intensity = $intensity; + $this->restPeriods = $restPeriods; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string + * @return \OpenActive\Models\SchemaOrg\Energy|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ public function getWorkload() { @@ -155,15 +128,15 @@ public function getWorkload() } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Energy|string $workload + * @param \OpenActive\Models\SchemaOrg\Energy|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $workload * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setWorkload($workload) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "\OpenActive\Models\SchemaOrg\Energy", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; @@ -173,55 +146,52 @@ public function setWorkload($workload) } /** - * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return string */ - public function getActivityDuration() + public function getAdditionalVariable() { - return $this->activityDuration; + return $this->additionalVariable; } /** - * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $activityDuration + * @param string $additionalVariable * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActivityDuration($activityDuration) + public function setAdditionalVariable($additionalVariable) { $types = [ - "DateInterval", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $activityDuration = self::checkTypes($activityDuration, $types); + $additionalVariable = self::checkTypes($additionalVariable, $types); - $this->activityDuration = $activityDuration; + $this->additionalVariable = $additionalVariable; } /** * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - public function getRestPeriods() + public function getIntensity() { - return $this->restPeriods; + return $this->intensity; } /** - * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $restPeriods + * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $intensity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRestPeriods($restPeriods) + public function setIntensity($intensity) { $types = [ "string", "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $restPeriods = self::checkTypes($restPeriods, $types); + $intensity = self::checkTypes($intensity, $types); - $this->restPeriods = $restPeriods; + $this->intensity = $intensity; } /** @@ -252,49 +222,79 @@ public function setActivityFrequency($activityFrequency) /** * @return string */ - public function getAdditionalVariable() + public function getExerciseType() { - return $this->additionalVariable; + return $this->exerciseType; } /** - * @param string $additionalVariable + * @param string $exerciseType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalVariable($additionalVariable) + public function setExerciseType($exerciseType) { $types = [ "string", ]; - $additionalVariable = self::checkTypes($additionalVariable, $types); + $exerciseType = self::checkTypes($exerciseType, $types); - $this->additionalVariable = $additionalVariable; + $this->exerciseType = $exerciseType; } /** - * @return string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getExerciseType() + public function getRepetitions() { - return $this->exerciseType; + return $this->repetitions; } /** - * @param string $exerciseType + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $repetitions * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExerciseType($exerciseType) + public function setRepetitions($repetitions) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $exerciseType = self::checkTypes($exerciseType, $types); + $repetitions = self::checkTypes($repetitions, $types); - $this->exerciseType = $exerciseType; + $this->repetitions = $repetitions; + } + + /** + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + */ + public function getActivityDuration() + { + return $this->activityDuration; + } + + /** + * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $activityDuration + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setActivityDuration($activityDuration) + { + $types = [ + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + "null", + ]; + + $activityDuration = self::checkTypes($activityDuration, $types); + + $this->activityDuration = $activityDuration; } } diff --git a/src/Models/SchemaOrg/FinancialProduct.php b/src/Models/SchemaOrg/FinancialProduct.php index b823898c..3cca89da 100644 --- a/src/Models/SchemaOrg/FinancialProduct.php +++ b/src/Models/SchemaOrg/FinancialProduct.php @@ -17,103 +17,103 @@ public static function getType() public static function fieldList() { $fields = [ - "annualPercentageRate" => "annualPercentageRate", "feesAndCommissionsSpecification" => "feesAndCommissionsSpecification", "interestRate" => "interestRate", + "annualPercentageRate" => "annualPercentageRate", ]; return array_merge(parent::fieldList(), $fields); } /** - * The annual rate that is charged for borrowing (or made by investing), expressed as a single percentage number that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction. + * Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization. * * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var string */ - protected $annualPercentageRate; + protected $feesAndCommissionsSpecification; /** - * Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization. + * The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - protected $feesAndCommissionsSpecification; + protected $interestRate; /** - * The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate. + * The annual rate that is charged for borrowing (or made by investing), expressed as a single percentage number that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction. * * * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $interestRate; + protected $annualPercentageRate; /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return string */ - public function getAnnualPercentageRate() + public function getFeesAndCommissionsSpecification() { - return $this->annualPercentageRate; + return $this->feesAndCommissionsSpecification; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $annualPercentageRate + * @param string $feesAndCommissionsSpecification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAnnualPercentageRate($annualPercentageRate) + public function setFeesAndCommissionsSpecification($feesAndCommissionsSpecification) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $annualPercentageRate = self::checkTypes($annualPercentageRate, $types); + $feesAndCommissionsSpecification = self::checkTypes($feesAndCommissionsSpecification, $types); - $this->annualPercentageRate = $annualPercentageRate; + $this->feesAndCommissionsSpecification = $feesAndCommissionsSpecification; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - public function getFeesAndCommissionsSpecification() + public function getInterestRate() { - return $this->feesAndCommissionsSpecification; + return $this->interestRate; } /** - * @param string $feesAndCommissionsSpecification + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $interestRate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFeesAndCommissionsSpecification($feesAndCommissionsSpecification) + public function setInterestRate($interestRate) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "Number", + "null", ]; - $feesAndCommissionsSpecification = self::checkTypes($feesAndCommissionsSpecification, $types); + $interestRate = self::checkTypes($interestRate, $types); - $this->feesAndCommissionsSpecification = $feesAndCommissionsSpecification; + $this->interestRate = $interestRate; } /** * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getInterestRate() + public function getAnnualPercentageRate() { - return $this->interestRate; + return $this->annualPercentageRate; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $interestRate + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $annualPercentageRate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInterestRate($interestRate) + public function setAnnualPercentageRate($annualPercentageRate) { $types = [ "Number", @@ -122,9 +122,9 @@ public function setInterestRate($interestRate) "null", ]; - $interestRate = self::checkTypes($interestRate, $types); + $annualPercentageRate = self::checkTypes($annualPercentageRate, $types); - $this->interestRate = $interestRate; + $this->annualPercentageRate = $annualPercentageRate; } } diff --git a/src/Models/SchemaOrg/FireStation.php b/src/Models/SchemaOrg/FireStation.php index 8cdd4a08..bacba6c2 100644 --- a/src/Models/SchemaOrg/FireStation.php +++ b/src/Models/SchemaOrg/FireStation.php @@ -5,7 +5,7 @@ /** * */ -class FireStation extends \OpenActive\Models\SchemaOrg\CivicStructure +class FireStation extends \OpenActive\Models\SchemaOrg\EmergencyService { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/Flight.php b/src/Models/SchemaOrg/Flight.php index 884e8838..be1a4ceb 100644 --- a/src/Models/SchemaOrg/Flight.php +++ b/src/Models/SchemaOrg/Flight.php @@ -17,65 +17,65 @@ public static function getType() public static function fieldList() { $fields = [ - "flightDistance" => "flightDistance", - "webCheckinTime" => "webCheckinTime", - "aircraft" => "aircraft", - "seller" => "seller", - "arrivalAirport" => "arrivalAirport", - "arrivalTerminal" => "arrivalTerminal", - "departureAirport" => "departureAirport", - "arrivalGate" => "arrivalGate", + "boardingPolicy" => "boardingPolicy", "departureTerminal" => "departureTerminal", - "carrier" => "carrier", - "estimatedFlightDuration" => "estimatedFlightDuration", + "flightDistance" => "flightDistance", "departureGate" => "departureGate", "flightNumber" => "flightNumber", + "arrivalTerminal" => "arrivalTerminal", + "arrivalAirport" => "arrivalAirport", + "aircraft" => "aircraft", + "webCheckinTime" => "webCheckinTime", "mealService" => "mealService", - "boardingPolicy" => "boardingPolicy", + "estimatedFlightDuration" => "estimatedFlightDuration", + "carrier" => "carrier", + "departureAirport" => "departureAirport", + "seller" => "seller", + "arrivalGate" => "arrivalGate", ]; return array_merge(parent::fieldList(), $fields); } /** - * The distance of the flight. + * The type of boarding policy used by the airline (e.g. zone-based or group-based). * * - * @var \OpenActive\Models\SchemaOrg\Distance|string + * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null */ - protected $flightDistance; + protected $boardingPolicy; /** - * The time when a passenger can check into the flight online. + * Identifier of the flight's departure terminal. * * - * @var DateTime|null + * @var string */ - protected $webCheckinTime; + protected $departureTerminal; /** - * The kind of aircraft (e.g., "Boeing 747"). + * The distance of the flight. * * - * @var \OpenActive\Models\SchemaOrg\Vehicle|string + * @var \OpenActive\Models\SchemaOrg\Distance|string */ - protected $aircraft; + protected $flightDistance; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * Identifier of the flight's departure gate. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $seller; + protected $departureGate; /** - * The airport where the flight terminates. + * The unique identifier for a flight including the airline IATA code. For example, if describing United flight 110, where the IATA code for United is 'UA', the flightNumber is 'UA110'. * * - * @var \OpenActive\Models\SchemaOrg\Airport|string + * @var string */ - protected $arrivalAirport; + protected $flightNumber; /** * Identifier of the flight's arrival terminal. @@ -86,36 +86,36 @@ public static function fieldList() { protected $arrivalTerminal; /** - * The airport where the flight originates. + * The airport where the flight terminates. * * * @var \OpenActive\Models\SchemaOrg\Airport|string */ - protected $departureAirport; + protected $arrivalAirport; /** - * Identifier of the flight's arrival gate. + * The kind of aircraft (e.g., "Boeing 747"). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Vehicle|string */ - protected $arrivalGate; + protected $aircraft; /** - * Identifier of the flight's departure terminal. + * The time when a passenger can check into the flight online. * * - * @var string + * @var DateTime|null */ - protected $departureTerminal; + protected $webCheckinTime; /** - * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. + * Description of the meals that will be provided or available for purchase. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $carrier; + protected $mealService; /** * The estimated time the flight will take. @@ -126,161 +126,157 @@ public static function fieldList() { protected $estimatedFlightDuration; /** - * Identifier of the flight's departure gate. + * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $departureGate; + protected $carrier; /** - * The unique identifier for a flight including the airline IATA code. For example, if describing United flight 110, where the IATA code for United is 'UA', the flightNumber is 'UA110'. + * The airport where the flight originates. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Airport|string */ - protected $flightNumber; + protected $departureAirport; /** - * Description of the meals that will be provided or available for purchase. + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $mealService; + protected $seller; /** - * The type of boarding policy used by the airline (e.g. zone-based or group-based). + * Identifier of the flight's arrival gate. * * - * @var \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null + * @var string */ - protected $boardingPolicy; + protected $arrivalGate; /** - * @return \OpenActive\Models\SchemaOrg\Distance|string + * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null */ - public function getFlightDistance() + public function getBoardingPolicy() { - return $this->flightDistance; + return $this->boardingPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|string $flightDistance + * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFlightDistance($flightDistance) + public function setBoardingPolicy($boardingPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "string", + "\OpenActive\Enums\SchemaOrg\BoardingPolicyType", + "null", ]; - $flightDistance = self::checkTypes($flightDistance, $types); + $boardingPolicy = self::checkTypes($boardingPolicy, $types); - $this->flightDistance = $flightDistance; + $this->boardingPolicy = $boardingPolicy; } /** - * @return DateTime|null + * @return string */ - public function getWebCheckinTime() + public function getDepartureTerminal() { - return $this->webCheckinTime; + return $this->departureTerminal; } /** - * @param DateTime|null $webCheckinTime + * @param string $departureTerminal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWebCheckinTime($webCheckinTime) + public function setDepartureTerminal($departureTerminal) { $types = [ - "DateTime", - "null", + "string", ]; - $webCheckinTime = self::checkTypes($webCheckinTime, $types); + $departureTerminal = self::checkTypes($departureTerminal, $types); - $this->webCheckinTime = $webCheckinTime; + $this->departureTerminal = $departureTerminal; } /** - * @return \OpenActive\Models\SchemaOrg\Vehicle|string + * @return \OpenActive\Models\SchemaOrg\Distance|string */ - public function getAircraft() + public function getFlightDistance() { - return $this->aircraft; + return $this->flightDistance; } /** - * @param \OpenActive\Models\SchemaOrg\Vehicle|string $aircraft + * @param \OpenActive\Models\SchemaOrg\Distance|string $flightDistance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAircraft($aircraft) + public function setFlightDistance($flightDistance) { $types = [ - "\OpenActive\Models\SchemaOrg\Vehicle", + "\OpenActive\Models\SchemaOrg\Distance", "string", ]; - $aircraft = self::checkTypes($aircraft, $types); + $flightDistance = self::checkTypes($flightDistance, $types); - $this->aircraft = $aircraft; + $this->flightDistance = $flightDistance; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getSeller() + public function getDepartureGate() { - return $this->seller; + return $this->departureGate; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @param string $departureGate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeller($seller) + public function setDepartureGate($departureGate) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $seller = self::checkTypes($seller, $types); + $departureGate = self::checkTypes($departureGate, $types); - $this->seller = $seller; + $this->departureGate = $departureGate; } /** - * @return \OpenActive\Models\SchemaOrg\Airport|string + * @return string */ - public function getArrivalAirport() + public function getFlightNumber() { - return $this->arrivalAirport; + return $this->flightNumber; } /** - * @param \OpenActive\Models\SchemaOrg\Airport|string $arrivalAirport + * @param string $flightNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalAirport($arrivalAirport) + public function setFlightNumber($flightNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\Airport", "string", ]; - $arrivalAirport = self::checkTypes($arrivalAirport, $types); + $flightNumber = self::checkTypes($flightNumber, $types); - $this->arrivalAirport = $arrivalAirport; + $this->flightNumber = $flightNumber; } /** @@ -310,99 +306,100 @@ public function setArrivalTerminal($arrivalTerminal) /** * @return \OpenActive\Models\SchemaOrg\Airport|string */ - public function getDepartureAirport() + public function getArrivalAirport() { - return $this->departureAirport; + return $this->arrivalAirport; } /** - * @param \OpenActive\Models\SchemaOrg\Airport|string $departureAirport + * @param \OpenActive\Models\SchemaOrg\Airport|string $arrivalAirport * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureAirport($departureAirport) + public function setArrivalAirport($arrivalAirport) { $types = [ "\OpenActive\Models\SchemaOrg\Airport", "string", ]; - $departureAirport = self::checkTypes($departureAirport, $types); + $arrivalAirport = self::checkTypes($arrivalAirport, $types); - $this->departureAirport = $departureAirport; + $this->arrivalAirport = $arrivalAirport; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Vehicle|string */ - public function getArrivalGate() + public function getAircraft() { - return $this->arrivalGate; + return $this->aircraft; } /** - * @param string $arrivalGate + * @param \OpenActive\Models\SchemaOrg\Vehicle|string $aircraft * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalGate($arrivalGate) + public function setAircraft($aircraft) { $types = [ + "\OpenActive\Models\SchemaOrg\Vehicle", "string", ]; - $arrivalGate = self::checkTypes($arrivalGate, $types); + $aircraft = self::checkTypes($aircraft, $types); - $this->arrivalGate = $arrivalGate; + $this->aircraft = $aircraft; } /** - * @return string + * @return DateTime|null */ - public function getDepartureTerminal() + public function getWebCheckinTime() { - return $this->departureTerminal; + return $this->webCheckinTime; } /** - * @param string $departureTerminal + * @param DateTime|null $webCheckinTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureTerminal($departureTerminal) + public function setWebCheckinTime($webCheckinTime) { $types = [ - "string", + "DateTime", + "null", ]; - $departureTerminal = self::checkTypes($departureTerminal, $types); + $webCheckinTime = self::checkTypes($webCheckinTime, $types); - $this->departureTerminal = $departureTerminal; + $this->webCheckinTime = $webCheckinTime; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getCarrier() + public function getMealService() { - return $this->carrier; + return $this->mealService; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier + * @param string $mealService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCarrier($carrier) + public function setMealService($mealService) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $carrier = self::checkTypes($carrier, $types); + $mealService = self::checkTypes($mealService, $types); - $this->carrier = $carrier; + $this->mealService = $mealService; } /** @@ -432,100 +429,103 @@ public function setEstimatedFlightDuration($estimatedFlightDuration) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getDepartureGate() + public function getCarrier() { - return $this->departureGate; + return $this->carrier; } /** - * @param string $departureGate + * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepartureGate($departureGate) + public function setCarrier($carrier) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $departureGate = self::checkTypes($departureGate, $types); + $carrier = self::checkTypes($carrier, $types); - $this->departureGate = $departureGate; + $this->carrier = $carrier; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Airport|string */ - public function getFlightNumber() + public function getDepartureAirport() { - return $this->flightNumber; + return $this->departureAirport; } /** - * @param string $flightNumber + * @param \OpenActive\Models\SchemaOrg\Airport|string $departureAirport * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFlightNumber($flightNumber) + public function setDepartureAirport($departureAirport) { $types = [ + "\OpenActive\Models\SchemaOrg\Airport", "string", ]; - $flightNumber = self::checkTypes($flightNumber, $types); + $departureAirport = self::checkTypes($departureAirport, $types); - $this->flightNumber = $flightNumber; + $this->departureAirport = $departureAirport; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getMealService() + public function getSeller() { - return $this->mealService; + return $this->seller; } /** - * @param string $mealService + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $seller * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMealService($mealService) + public function setSeller($seller) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $mealService = self::checkTypes($mealService, $types); + $seller = self::checkTypes($seller, $types); - $this->mealService = $mealService; + $this->seller = $seller; } /** - * @return \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null + * @return string */ - public function getBoardingPolicy() + public function getArrivalGate() { - return $this->boardingPolicy; + return $this->arrivalGate; } /** - * @param \OpenActive\Enums\SchemaOrg\BoardingPolicyType|null $boardingPolicy + * @param string $arrivalGate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBoardingPolicy($boardingPolicy) + public function setArrivalGate($arrivalGate) { $types = [ - "\OpenActive\Enums\SchemaOrg\BoardingPolicyType", - "null", + "string", ]; - $boardingPolicy = self::checkTypes($boardingPolicy, $types); + $arrivalGate = self::checkTypes($arrivalGate, $types); - $this->boardingPolicy = $boardingPolicy; + $this->arrivalGate = $arrivalGate; } } diff --git a/src/Models/SchemaOrg/FlightReservation.php b/src/Models/SchemaOrg/FlightReservation.php index 86c2d57b..ee916a5e 100644 --- a/src/Models/SchemaOrg/FlightReservation.php +++ b/src/Models/SchemaOrg/FlightReservation.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "passengerPriorityStatus" => "passengerPriorityStatus", - "boardingGroup" => "boardingGroup", "securityScreening" => "securityScreening", + "boardingGroup" => "boardingGroup", "passengerSequenceNumber" => "passengerSequenceNumber", ]; @@ -35,20 +35,20 @@ public static function fieldList() { protected $passengerPriorityStatus; /** - * The airline-specific indicator of boarding order / preference. + * The type of security screening the passenger is subject to. * * * @var string */ - protected $boardingGroup; + protected $securityScreening; /** - * The type of security screening the passenger is subject to. + * The airline-specific indicator of boarding order / preference. * * * @var string */ - protected $securityScreening; + protected $boardingGroup; /** * The passenger's sequence number as assigned by the airline. @@ -87,49 +87,49 @@ public function setPassengerPriorityStatus($passengerPriorityStatus) /** * @return string */ - public function getBoardingGroup() + public function getSecurityScreening() { - return $this->boardingGroup; + return $this->securityScreening; } /** - * @param string $boardingGroup + * @param string $securityScreening * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBoardingGroup($boardingGroup) + public function setSecurityScreening($securityScreening) { $types = [ "string", ]; - $boardingGroup = self::checkTypes($boardingGroup, $types); + $securityScreening = self::checkTypes($securityScreening, $types); - $this->boardingGroup = $boardingGroup; + $this->securityScreening = $securityScreening; } /** * @return string */ - public function getSecurityScreening() + public function getBoardingGroup() { - return $this->securityScreening; + return $this->boardingGroup; } /** - * @param string $securityScreening + * @param string $boardingGroup * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSecurityScreening($securityScreening) + public function setBoardingGroup($boardingGroup) { $types = [ "string", ]; - $securityScreening = self::checkTypes($securityScreening, $types); + $boardingGroup = self::checkTypes($boardingGroup, $types); - $this->securityScreening = $securityScreening; + $this->boardingGroup = $boardingGroup; } /** diff --git a/src/Models/SchemaOrg/FloorPlan.php b/src/Models/SchemaOrg/FloorPlan.php index 118aa873..e17163e4 100644 --- a/src/Models/SchemaOrg/FloorPlan.php +++ b/src/Models/SchemaOrg/FloorPlan.php @@ -18,17 +18,17 @@ public static function getType() public static function fieldList() { $fields = [ "isPlanForApartment" => "isPlanForApartment", - "numberOfBathroomsTotal" => "numberOfBathroomsTotal", "numberOfRooms" => "numberOfRooms", - "numberOfAccommodationUnits" => "numberOfAccommodationUnits", "numberOfAvailableAccommodationUnits" => "numberOfAvailableAccommodationUnits", + "floorSize" => "floorSize", "amenityFeature" => "amenityFeature", - "numberOfBedrooms" => "numberOfBedrooms", "numberOfPartialBathrooms" => "numberOfPartialBathrooms", - "floorSize" => "floorSize", - "numberOfFullBathrooms" => "numberOfFullBathrooms", + "numberOfBathroomsTotal" => "numberOfBathroomsTotal", "petsAllowed" => "petsAllowed", + "numberOfBedrooms" => "numberOfBedrooms", + "numberOfAccommodationUnits" => "numberOfAccommodationUnits", "layoutImage" => "layoutImage", + "numberOfFullBathrooms" => "numberOfFullBathrooms", ]; return array_merge(parent::fieldList(), $fields); @@ -42,14 +42,6 @@ public static function fieldList() { */ protected $isPlanForApartment; - /** - * The total integer number of bathrooms in a some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]]. - * - * - * @var int|null - */ - protected $numberOfBathroomsTotal; - /** * The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. * Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue. @@ -60,20 +52,21 @@ public static function fieldList() { protected $numberOfRooms; /** - * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]]. + * Indicates the number of available accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAccommodationUnits]]. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfAccommodationUnits; + protected $numberOfAvailableAccommodationUnits; /** - * Indicates the number of available accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAccommodationUnits]]. + * The size of the accommodation, e.g. in square meter or squarefoot. + * Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfAvailableAccommodationUnits; + protected $floorSize; /** * An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs. @@ -84,45 +77,44 @@ public static function fieldList() { protected $amenityFeature; /** - * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]]. + * Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). * * - * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var Number|null */ - protected $numberOfBedrooms; + protected $numberOfPartialBathrooms; /** - * Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). + * The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]]. * * - * @var Number|null + * @var int|null */ - protected $numberOfPartialBathrooms; + protected $numberOfBathroomsTotal; /** - * The size of the accommodation, e.g. in square meter or squarefoot. - * Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard + * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var bool|string|null */ - protected $floorSize; + protected $petsAllowed; /** - * Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field). + * The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]]. * * - * @var Number|null + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $numberOfFullBathrooms; + protected $numberOfBedrooms; /** - * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value. + * Indicates the total (available plus unavailable) number of accommodation units in an [[ApartmentComplex]], or the number of accommodation units for a specific [[FloorPlan]] (within its specific [[ApartmentComplex]]). See also [[numberOfAvailableAccommodationUnits]]. * * - * @var bool|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $petsAllowed; + protected $numberOfAccommodationUnits; /** * A schematic image showing the floorplan layout. @@ -132,6 +124,14 @@ public static function fieldList() { */ protected $layoutImage; + /** + * Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field). + * + * + * @var Number|null + */ + protected $numberOfFullBathrooms; + /** * @return \OpenActive\Models\SchemaOrg\Accommodation|string */ @@ -157,31 +157,6 @@ public function setIsPlanForApartment($isPlanForApartment) $this->isPlanForApartment = $isPlanForApartment; } - /** - * @return int|null - */ - public function getNumberOfBathroomsTotal() - { - return $this->numberOfBathroomsTotal; - } - - /** - * @param int|null $numberOfBathroomsTotal - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setNumberOfBathroomsTotal($numberOfBathroomsTotal) - { - $types = [ - "int", - "null", - ]; - - $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types); - - $this->numberOfBathroomsTotal = $numberOfBathroomsTotal; - } - /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ @@ -212,51 +187,51 @@ public function setNumberOfRooms($numberOfRooms) /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfAccommodationUnits() + public function getNumberOfAvailableAccommodationUnits() { - return $this->numberOfAccommodationUnits; + return $this->numberOfAvailableAccommodationUnits; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfAccommodationUnits($numberOfAccommodationUnits) + public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types); + $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types); - $this->numberOfAccommodationUnits = $numberOfAccommodationUnits; + $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfAvailableAccommodationUnits() + public function getFloorSize() { - return $this->numberOfAvailableAccommodationUnits; + return $this->floorSize; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAvailableAccommodationUnits + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfAvailableAccommodationUnits($numberOfAvailableAccommodationUnits) + public function setFloorSize($floorSize) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $numberOfAvailableAccommodationUnits = self::checkTypes($numberOfAvailableAccommodationUnits, $types); + $floorSize = self::checkTypes($floorSize, $types); - $this->numberOfAvailableAccommodationUnits = $numberOfAvailableAccommodationUnits; + $this->floorSize = $floorSize; } /** @@ -285,131 +260,131 @@ public function setAmenityFeature($amenityFeature) } /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return Number|null */ - public function getNumberOfBedrooms() + public function getNumberOfPartialBathrooms() { - return $this->numberOfBedrooms; + return $this->numberOfPartialBathrooms; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms + * @param Number|null $numberOfPartialBathrooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfBedrooms($numberOfBedrooms) + public function setNumberOfPartialBathrooms($numberOfPartialBathrooms) { $types = [ "Number", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", "null", ]; - $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types); + $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types); - $this->numberOfBedrooms = $numberOfBedrooms; + $this->numberOfPartialBathrooms = $numberOfPartialBathrooms; } /** - * @return Number|null + * @return int|null */ - public function getNumberOfPartialBathrooms() + public function getNumberOfBathroomsTotal() { - return $this->numberOfPartialBathrooms; + return $this->numberOfBathroomsTotal; } /** - * @param Number|null $numberOfPartialBathrooms + * @param int|null $numberOfBathroomsTotal * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfPartialBathrooms($numberOfPartialBathrooms) + public function setNumberOfBathroomsTotal($numberOfBathroomsTotal) { $types = [ - "Number", + "int", "null", ]; - $numberOfPartialBathrooms = self::checkTypes($numberOfPartialBathrooms, $types); + $numberOfBathroomsTotal = self::checkTypes($numberOfBathroomsTotal, $types); - $this->numberOfPartialBathrooms = $numberOfPartialBathrooms; + $this->numberOfBathroomsTotal = $numberOfBathroomsTotal; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return bool|string|null */ - public function getFloorSize() + public function getPetsAllowed() { - return $this->floorSize; + return $this->petsAllowed; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $floorSize + * @param bool|string|null $petsAllowed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFloorSize($floorSize) + public function setPetsAllowed($petsAllowed) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "bool", "string", + "null", ]; - $floorSize = self::checkTypes($floorSize, $types); + $petsAllowed = self::checkTypes($petsAllowed, $types); - $this->floorSize = $floorSize; + $this->petsAllowed = $petsAllowed; } /** - * @return Number|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getNumberOfFullBathrooms() + public function getNumberOfBedrooms() { - return $this->numberOfFullBathrooms; + return $this->numberOfBedrooms; } /** - * @param Number|null $numberOfFullBathrooms + * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfBedrooms * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfFullBathrooms($numberOfFullBathrooms) + public function setNumberOfBedrooms($numberOfBedrooms) { $types = [ "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types); + $numberOfBedrooms = self::checkTypes($numberOfBedrooms, $types); - $this->numberOfFullBathrooms = $numberOfFullBathrooms; + $this->numberOfBedrooms = $numberOfBedrooms; } /** - * @return bool|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getPetsAllowed() + public function getNumberOfAccommodationUnits() { - return $this->petsAllowed; + return $this->numberOfAccommodationUnits; } /** - * @param bool|string|null $petsAllowed + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfAccommodationUnits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPetsAllowed($petsAllowed) + public function setNumberOfAccommodationUnits($numberOfAccommodationUnits) { $types = [ - "bool", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $petsAllowed = self::checkTypes($petsAllowed, $types); + $numberOfAccommodationUnits = self::checkTypes($numberOfAccommodationUnits, $types); - $this->petsAllowed = $petsAllowed; + $this->numberOfAccommodationUnits = $numberOfAccommodationUnits; } /** @@ -437,4 +412,29 @@ public function setLayoutImage($layoutImage) $this->layoutImage = $layoutImage; } + /** + * @return Number|null + */ + public function getNumberOfFullBathrooms() + { + return $this->numberOfFullBathrooms; + } + + /** + * @param Number|null $numberOfFullBathrooms + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setNumberOfFullBathrooms($numberOfFullBathrooms) + { + $types = [ + "Number", + "null", + ]; + + $numberOfFullBathrooms = self::checkTypes($numberOfFullBathrooms, $types); + + $this->numberOfFullBathrooms = $numberOfFullBathrooms; + } + } diff --git a/src/Models/SchemaOrg/FollowAction.php b/src/Models/SchemaOrg/FollowAction.php index 6508e81b..6d9f8462 100644 --- a/src/Models/SchemaOrg/FollowAction.php +++ b/src/Models/SchemaOrg/FollowAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * A sub property of object. The person or organization being followed. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ protected $followee; /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ public function getFollowee() { @@ -40,15 +40,15 @@ public function getFollowee() } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $followee + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $followee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setFollowee($followee) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; diff --git a/src/Models/SchemaOrg/FoodEstablishment.php b/src/Models/SchemaOrg/FoodEstablishment.php index 554150aa..93be0a3b 100644 --- a/src/Models/SchemaOrg/FoodEstablishment.php +++ b/src/Models/SchemaOrg/FoodEstablishment.php @@ -17,179 +17,179 @@ public static function getType() public static function fieldList() { $fields = [ - "starRating" => "starRating", - "servesCuisine" => "servesCuisine", "acceptsReservations" => "acceptsReservations", "hasMenu" => "hasMenu", "menu" => "menu", + "starRating" => "starRating", + "servesCuisine" => "servesCuisine", ]; return array_merge(parent::fieldList(), $fields); } /** - * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars). + * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```. * * - * @var \OpenActive\Models\SchemaOrg\Rating|string + * @var bool|string|null */ - protected $starRating; + protected $acceptsReservations; /** - * The cuisine of the restaurant. + * Either the actual menu as a structured representation, as text, or a URL of the menu. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\Menu */ - protected $servesCuisine; + protected $hasMenu; /** - * Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```. + * Either the actual menu as a structured representation, as text, or a URL of the menu. * * - * @var bool|string|null + * @var string|\OpenActive\Models\SchemaOrg\Menu */ - protected $acceptsReservations; + protected $menu; /** - * Either the actual menu as a structured representation, as text, or a URL of the menu. + * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars). * * - * @var string|\OpenActive\Models\SchemaOrg\Menu + * @var \OpenActive\Models\SchemaOrg\Rating|string */ - protected $hasMenu; + protected $starRating; /** - * Either the actual menu as a structured representation, as text, or a URL of the menu. + * The cuisine of the restaurant. * * - * @var string|\OpenActive\Models\SchemaOrg\Menu + * @var string */ - protected $menu; + protected $servesCuisine; /** - * @return \OpenActive\Models\SchemaOrg\Rating|string + * @return bool|string|null */ - public function getStarRating() + public function getAcceptsReservations() { - return $this->starRating; + return $this->acceptsReservations; } /** - * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating + * @param bool|string|null $acceptsReservations * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStarRating($starRating) + public function setAcceptsReservations($acceptsReservations) { $types = [ - "\OpenActive\Models\SchemaOrg\Rating", + "bool", "string", + "null", ]; - $starRating = self::checkTypes($starRating, $types); + $acceptsReservations = self::checkTypes($acceptsReservations, $types); - $this->starRating = $starRating; + $this->acceptsReservations = $acceptsReservations; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Menu */ - public function getServesCuisine() + public function getHasMenu() { - return $this->servesCuisine; + return $this->hasMenu; } /** - * @param string $servesCuisine + * @param string|\OpenActive\Models\SchemaOrg\Menu $hasMenu * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServesCuisine($servesCuisine) + public function setHasMenu($hasMenu) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Menu", ]; - $servesCuisine = self::checkTypes($servesCuisine, $types); + $hasMenu = self::checkTypes($hasMenu, $types); - $this->servesCuisine = $servesCuisine; + $this->hasMenu = $hasMenu; } /** - * @return bool|string|null + * @return string|\OpenActive\Models\SchemaOrg\Menu */ - public function getAcceptsReservations() + public function getMenu() { - return $this->acceptsReservations; + return $this->menu; } /** - * @param bool|string|null $acceptsReservations + * @param string|\OpenActive\Models\SchemaOrg\Menu $menu * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcceptsReservations($acceptsReservations) + public function setMenu($menu) { $types = [ - "bool", "string", - "null", + "\OpenActive\Models\SchemaOrg\Menu", ]; - $acceptsReservations = self::checkTypes($acceptsReservations, $types); + $menu = self::checkTypes($menu, $types); - $this->acceptsReservations = $acceptsReservations; + $this->menu = $menu; } /** - * @return string|\OpenActive\Models\SchemaOrg\Menu + * @return \OpenActive\Models\SchemaOrg\Rating|string */ - public function getHasMenu() + public function getStarRating() { - return $this->hasMenu; + return $this->starRating; } /** - * @param string|\OpenActive\Models\SchemaOrg\Menu $hasMenu + * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMenu($hasMenu) + public function setStarRating($starRating) { $types = [ + "\OpenActive\Models\SchemaOrg\Rating", "string", - "\OpenActive\Models\SchemaOrg\Menu", ]; - $hasMenu = self::checkTypes($hasMenu, $types); + $starRating = self::checkTypes($starRating, $types); - $this->hasMenu = $hasMenu; + $this->starRating = $starRating; } /** - * @return string|\OpenActive\Models\SchemaOrg\Menu + * @return string */ - public function getMenu() + public function getServesCuisine() { - return $this->menu; + return $this->servesCuisine; } /** - * @param string|\OpenActive\Models\SchemaOrg\Menu $menu + * @param string $servesCuisine * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMenu($menu) + public function setServesCuisine($servesCuisine) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Menu", ]; - $menu = self::checkTypes($menu, $types); + $servesCuisine = self::checkTypes($servesCuisine, $types); - $this->menu = $menu; + $this->servesCuisine = $servesCuisine; } } diff --git a/src/Models/SchemaOrg/FoodEstablishmentReservation.php b/src/Models/SchemaOrg/FoodEstablishmentReservation.php index 15f0143c..c8565723 100644 --- a/src/Models/SchemaOrg/FoodEstablishmentReservation.php +++ b/src/Models/SchemaOrg/FoodEstablishmentReservation.php @@ -17,24 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ - "partySize" => "partySize", - "startTime" => "startTime", "endTime" => "endTime", + "startTime" => "startTime", + "partySize" => "partySize", ]; return array_merge(parent::fieldList(), $fields); } /** - * Number of people the reservation should accommodate. + * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * - * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var DateTime|string|null */ - protected $partySize; + protected $endTime; /** - * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * * @var DateTime|string|null @@ -42,38 +42,37 @@ public static function fieldList() { protected $startTime; /** - * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * Number of people the reservation should accommodate. * * - * @var DateTime|string|null + * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $endTime; + protected $partySize; /** - * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return DateTime|string|null */ - public function getPartySize() + public function getEndTime() { - return $this->partySize; + return $this->endTime; } /** - * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $partySize + * @param DateTime|string|null $endTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartySize($partySize) + public function setEndTime($endTime) { $types = [ - "int", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "DateTime", + "Time", "null", ]; - $partySize = self::checkTypes($partySize, $types); + $endTime = self::checkTypes($endTime, $types); - $this->partySize = $partySize; + $this->endTime = $endTime; } /** @@ -103,29 +102,30 @@ public function setStartTime($startTime) } /** - * @return DateTime|string|null + * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getEndTime() + public function getPartySize() { - return $this->endTime; + return $this->partySize; } /** - * @param DateTime|string|null $endTime + * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $partySize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndTime($endTime) + public function setPartySize($partySize) { $types = [ - "DateTime", - "Time", + "int", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $endTime = self::checkTypes($endTime, $types); + $partySize = self::checkTypes($partySize, $types); - $this->endTime = $endTime; + $this->partySize = $partySize; } } diff --git a/src/Models/SchemaOrg/Game.php b/src/Models/SchemaOrg/Game.php index c575597b..a4bdc8a4 100644 --- a/src/Models/SchemaOrg/Game.php +++ b/src/Models/SchemaOrg/Game.php @@ -17,180 +17,180 @@ public static function getType() public static function fieldList() { $fields = [ + "quest" => "quest", "characterAttribute" => "characterAttribute", "gameItem" => "gameItem", - "numberOfPlayers" => "numberOfPlayers", - "quest" => "quest", "gameLocation" => "gameLocation", + "numberOfPlayers" => "numberOfPlayers", ]; return array_merge(parent::fieldList(), $fields); } /** - * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage). + * The task that a player-controlled character, or group of characters may complete in order to gain a reward. * * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $characterAttribute; + protected $quest; /** - * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character. + * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage). * * * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $gameItem; + protected $characterAttribute; /** - * Indicate how many people can play this game (minimum, maximum, or range). + * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $numberOfPlayers; + protected $gameItem; /** - * The task that a player-controlled character, or group of characters may complete in order to gain a reward. + * Real or fictional location of the game (or part of game). * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place */ - protected $quest; + protected $gameLocation; /** - * Real or fictional location of the game (or part of game). + * Indicate how many people can play this game (minimum, maximum, or range). * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $gameLocation; + protected $numberOfPlayers; /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getCharacterAttribute() + public function getQuest() { - return $this->characterAttribute; + return $this->quest; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $characterAttribute + * @param \OpenActive\Models\SchemaOrg\Thing|string $quest * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCharacterAttribute($characterAttribute) + public function setQuest($quest) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $characterAttribute = self::checkTypes($characterAttribute, $types); + $quest = self::checkTypes($quest, $types); - $this->characterAttribute = $characterAttribute; + $this->quest = $quest; } /** * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getGameItem() + public function getCharacterAttribute() { - return $this->gameItem; + return $this->characterAttribute; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem + * @param \OpenActive\Models\SchemaOrg\Thing|string $characterAttribute * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGameItem($gameItem) + public function setCharacterAttribute($characterAttribute) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $gameItem = self::checkTypes($gameItem, $types); + $characterAttribute = self::checkTypes($characterAttribute, $types); - $this->gameItem = $gameItem; + $this->characterAttribute = $characterAttribute; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getNumberOfPlayers() + public function getGameItem() { - return $this->numberOfPlayers; + return $this->gameItem; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers + * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfPlayers($numberOfPlayers) + public function setGameItem($gameItem) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); + $gameItem = self::checkTypes($gameItem, $types); - $this->numberOfPlayers = $numberOfPlayers; + $this->gameItem = $gameItem; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place */ - public function getQuest() + public function getGameLocation() { - return $this->quest; + return $this->gameLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $quest + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place $gameLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setQuest($quest) + public function setGameLocation($gameLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", + "\OpenActive\Models\SchemaOrg\Place", ]; - $quest = self::checkTypes($quest, $types); + $gameLocation = self::checkTypes($gameLocation, $types); - $this->quest = $quest; + $this->gameLocation = $gameLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getGameLocation() + public function getNumberOfPlayers() { - return $this->gameLocation; + return $this->numberOfPlayers; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGameLocation($gameLocation) + public function setNumberOfPlayers($numberOfPlayers) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $gameLocation = self::checkTypes($gameLocation, $types); + $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); - $this->gameLocation = $gameLocation; + $this->numberOfPlayers = $numberOfPlayers; } } diff --git a/src/Models/SchemaOrg/GameServer.php b/src/Models/SchemaOrg/GameServer.php index a673a844..b2450aed 100644 --- a/src/Models/SchemaOrg/GameServer.php +++ b/src/Models/SchemaOrg/GameServer.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "serverStatus" => "serverStatus", - "game" => "game", "playersOnline" => "playersOnline", + "game" => "game", + "serverStatus" => "serverStatus", ]; return array_merge(parent::fieldList(), $fields); } /** - * Status of a game server. + * Number of players on the server. * * - * @var \OpenActive\Models\SchemaOrg\GameServerStatus|string + * @var int|null */ - protected $serverStatus; + protected $playersOnline; /** * Video game which is played on this server. @@ -42,36 +42,36 @@ public static function fieldList() { protected $game; /** - * Number of players on the server. + * Status of a game server. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\GameServerStatus|string */ - protected $playersOnline; + protected $serverStatus; /** - * @return \OpenActive\Models\SchemaOrg\GameServerStatus|string + * @return int|null */ - public function getServerStatus() + public function getPlayersOnline() { - return $this->serverStatus; + return $this->playersOnline; } /** - * @param \OpenActive\Models\SchemaOrg\GameServerStatus|string $serverStatus + * @param int|null $playersOnline * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServerStatus($serverStatus) + public function setPlayersOnline($playersOnline) { $types = [ - "\OpenActive\Models\SchemaOrg\GameServerStatus", - "string", + "int", + "null", ]; - $serverStatus = self::checkTypes($serverStatus, $types); + $playersOnline = self::checkTypes($playersOnline, $types); - $this->serverStatus = $serverStatus; + $this->playersOnline = $playersOnline; } /** @@ -100,28 +100,28 @@ public function setGame($game) } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\GameServerStatus|string */ - public function getPlayersOnline() + public function getServerStatus() { - return $this->playersOnline; + return $this->serverStatus; } /** - * @param int|null $playersOnline + * @param \OpenActive\Models\SchemaOrg\GameServerStatus|string $serverStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPlayersOnline($playersOnline) + public function setServerStatus($serverStatus) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\GameServerStatus", + "string", ]; - $playersOnline = self::checkTypes($playersOnline, $types); + $serverStatus = self::checkTypes($serverStatus, $types); - $this->playersOnline = $playersOnline; + $this->serverStatus = $serverStatus; } } diff --git a/src/Models/SchemaOrg/Gene.php b/src/Models/SchemaOrg/Gene.php index 7ecc5fa5..588deb5c 100644 --- a/src/Models/SchemaOrg/Gene.php +++ b/src/Models/SchemaOrg/Gene.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "alternativeOf" => "alternativeOf", "hasBioPolymerSequence" => "hasBioPolymerSequence", + "alternativeOf" => "alternativeOf", "encodesBioChemEntity" => "encodesBioChemEntity", "expressedIn" => "expressedIn", ]; @@ -27,20 +27,20 @@ public static function fieldList() { } /** - * Another gene which is a variation of this one. + * A symbolic representation of a BioChemEntity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein. * * - * @var \OpenActive\Models\SchemaOrg\Gene|string + * @var string */ - protected $alternativeOf; + protected $hasBioPolymerSequence; /** - * A symbolic representation of a BioChemEnity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein. + * Another gene which is a variation of this one. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Gene|string */ - protected $hasBioPolymerSequence; + protected $alternativeOf; /** * Another BioChemEntity encoded by this one. @@ -54,57 +54,57 @@ public static function fieldList() { * Tissue, organ, biological sample, etc in which activity of this gene has been observed experimentally. For example brain, digestive system. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\BioChemEntity|string */ protected $expressedIn; /** - * @return \OpenActive\Models\SchemaOrg\Gene|string + * @return string */ - public function getAlternativeOf() + public function getHasBioPolymerSequence() { - return $this->alternativeOf; + return $this->hasBioPolymerSequence; } /** - * @param \OpenActive\Models\SchemaOrg\Gene|string $alternativeOf + * @param string $hasBioPolymerSequence * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlternativeOf($alternativeOf) + public function setHasBioPolymerSequence($hasBioPolymerSequence) { $types = [ - "\OpenActive\Models\SchemaOrg\Gene", "string", ]; - $alternativeOf = self::checkTypes($alternativeOf, $types); + $hasBioPolymerSequence = self::checkTypes($hasBioPolymerSequence, $types); - $this->alternativeOf = $alternativeOf; + $this->hasBioPolymerSequence = $hasBioPolymerSequence; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Gene|string */ - public function getHasBioPolymerSequence() + public function getAlternativeOf() { - return $this->hasBioPolymerSequence; + return $this->alternativeOf; } /** - * @param string $hasBioPolymerSequence + * @param \OpenActive\Models\SchemaOrg\Gene|string $alternativeOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasBioPolymerSequence($hasBioPolymerSequence) + public function setAlternativeOf($alternativeOf) { $types = [ + "\OpenActive\Models\SchemaOrg\Gene", "string", ]; - $hasBioPolymerSequence = self::checkTypes($hasBioPolymerSequence, $types); + $alternativeOf = self::checkTypes($alternativeOf, $types); - $this->hasBioPolymerSequence = $hasBioPolymerSequence; + $this->alternativeOf = $alternativeOf; } /** @@ -133,7 +133,7 @@ public function setEncodesBioChemEntity($encodesBioChemEntity) } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\BioChemEntity|string */ public function getExpressedIn() { @@ -141,7 +141,7 @@ public function getExpressedIn() } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $expressedIn + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\BioChemEntity|string $expressedIn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -149,9 +149,9 @@ public function setExpressedIn($expressedIn) { $types = [ "\OpenActive\Models\SchemaOrg\AnatomicalStructure", - "\OpenActive\Models\SchemaOrg\BioChemEntity", - "\OpenActive\Models\SchemaOrg\DefinedTerm", "\OpenActive\Models\SchemaOrg\AnatomicalSystem", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\BioChemEntity", "string", ]; diff --git a/src/Models/SchemaOrg/GeoCircle.php b/src/Models/SchemaOrg/GeoCircle.php index 81008cf6..83f7dca6 100644 --- a/src/Models/SchemaOrg/GeoCircle.php +++ b/src/Models/SchemaOrg/GeoCircle.php @@ -17,79 +17,79 @@ public static function getType() public static function fieldList() { $fields = [ - "geoRadius" => "geoRadius", "geoMidpoint" => "geoMidpoint", + "geoRadius" => "geoRadius", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation). + * Indicates the GeoCoordinates at the centre of a GeoShape, e.g. GeoCircle. * * - * @var string|Number|\OpenActive\Models\SchemaOrg\Distance|null + * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|string */ - protected $geoRadius; + protected $geoMidpoint; /** - * Indicates the GeoCoordinates at the centre of a GeoShape e.g. GeoCircle. + * Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise via Distance notation). * * - * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|string + * @var Number|\OpenActive\Models\SchemaOrg\Distance|string|null */ - protected $geoMidpoint; + protected $geoRadius; /** - * @return string|Number|\OpenActive\Models\SchemaOrg\Distance|null + * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|string */ - public function getGeoRadius() + public function getGeoMidpoint() { - return $this->geoRadius; + return $this->geoMidpoint; } /** - * @param string|Number|\OpenActive\Models\SchemaOrg\Distance|null $geoRadius + * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|string $geoMidpoint * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoRadius($geoRadius) + public function setGeoMidpoint($geoMidpoint) { $types = [ + "\OpenActive\Models\SchemaOrg\GeoCoordinates", "string", - "Number", - "\OpenActive\Models\SchemaOrg\Distance", - "null", ]; - $geoRadius = self::checkTypes($geoRadius, $types); + $geoMidpoint = self::checkTypes($geoMidpoint, $types); - $this->geoRadius = $geoRadius; + $this->geoMidpoint = $geoMidpoint; } /** - * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|string + * @return Number|\OpenActive\Models\SchemaOrg\Distance|string|null */ - public function getGeoMidpoint() + public function getGeoRadius() { - return $this->geoMidpoint; + return $this->geoRadius; } /** - * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|string $geoMidpoint + * @param Number|\OpenActive\Models\SchemaOrg\Distance|string|null $geoRadius * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoMidpoint($geoMidpoint) + public function setGeoRadius($geoRadius) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoCoordinates", + "Number", + "\OpenActive\Models\SchemaOrg\Distance", "string", + "null", ]; - $geoMidpoint = self::checkTypes($geoMidpoint, $types); + $geoRadius = self::checkTypes($geoRadius, $types); - $this->geoMidpoint = $geoMidpoint; + $this->geoRadius = $geoRadius; } } diff --git a/src/Models/SchemaOrg/GeoCoordinates.php b/src/Models/SchemaOrg/GeoCoordinates.php index 9e61906e..48a6ffec 100644 --- a/src/Models/SchemaOrg/GeoCoordinates.php +++ b/src/Models/SchemaOrg/GeoCoordinates.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "addressCountry" => "addressCountry", + "postalCode" => "postalCode", "latitude" => "latitude", "address" => "address", - "postalCode" => "postalCode", "elevation" => "elevation", "longitude" => "longitude", ]; @@ -32,10 +32,18 @@ public static function fieldList() { * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var string|\OpenActive\Models\SchemaOrg\Country */ protected $addressCountry; + /** + * The postal code. For example, 94043. + * + * + * @var string + */ + protected $postalCode; + /** * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). * @@ -53,15 +61,7 @@ public static function fieldList() { protected $address; /** - * The postal code. For example, 94043. - * - * - * @var string - */ - protected $postalCode; - - /** - * The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT_OF_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters. + * The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT\_OF\_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters. * * * @var string|Number|null @@ -77,7 +77,7 @@ public static function fieldList() { protected $longitude; /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string|\OpenActive\Models\SchemaOrg\Country */ public function getAddressCountry() { @@ -85,15 +85,15 @@ public function getAddressCountry() } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry + * @param string|\OpenActive\Models\SchemaOrg\Country $addressCountry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAddressCountry($addressCountry) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", + "\OpenActive\Models\SchemaOrg\Country", ]; $addressCountry = self::checkTypes($addressCountry, $types); @@ -102,78 +102,78 @@ public function setAddressCountry($addressCountry) } /** - * @return string|Number|null + * @return string */ - public function getLatitude() + public function getPostalCode() { - return $this->latitude; + return $this->postalCode; } /** - * @param string|Number|null $latitude + * @param string $postalCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLatitude($latitude) + public function setPostalCode($postalCode) { $types = [ "string", - "Number", - "null", ]; - $latitude = self::checkTypes($latitude, $types); + $postalCode = self::checkTypes($postalCode, $types); - $this->latitude = $latitude; + $this->postalCode = $postalCode; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return string|Number|null */ - public function getAddress() + public function getLatitude() { - return $this->address; + return $this->latitude; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @param string|Number|null $latitude * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddress($address) + public function setLatitude($latitude) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", + "Number", + "null", ]; - $address = self::checkTypes($address, $types); + $latitude = self::checkTypes($latitude, $types); - $this->address = $address; + $this->latitude = $latitude; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress */ - public function getPostalCode() + public function getAddress() { - return $this->postalCode; + return $this->address; } /** - * @param string $postalCode + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCode($postalCode) + public function setAddress($address) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $postalCode = self::checkTypes($postalCode, $types); + $address = self::checkTypes($address, $types); - $this->postalCode = $postalCode; + $this->address = $address; } /** diff --git a/src/Models/SchemaOrg/GeoShape.php b/src/Models/SchemaOrg/GeoShape.php index 3a4ebf30..491790aa 100644 --- a/src/Models/SchemaOrg/GeoShape.php +++ b/src/Models/SchemaOrg/GeoShape.php @@ -18,13 +18,13 @@ public static function getType() public static function fieldList() { $fields = [ "addressCountry" => "addressCountry", - "circle" => "circle", "line" => "line", + "box" => "box", "polygon" => "polygon", - "address" => "address", "postalCode" => "postalCode", + "address" => "address", "elevation" => "elevation", - "box" => "box", + "circle" => "circle", ]; return array_merge(parent::fieldList(), $fields); @@ -34,25 +34,25 @@ public static function fieldList() { * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var string|\OpenActive\Models\SchemaOrg\Country */ protected $addressCountry; /** - * A circle is the circular region of a specified radius centered at a specified latitude and longitude. A circle is expressed as a pair followed by a radius in meters. + * A line is a point-to-point path consisting of two or more points. A line is expressed as a series of two or more point objects separated by space. * * * @var string */ - protected $circle; + protected $line; /** - * A line is a point-to-point path consisting of two or more points. A line is expressed as a series of two or more point objects separated by space. + * A box is the area enclosed by the rectangle formed by two points. The first point is the lower corner, the second point is the upper corner. A box is expressed as two points separated by a space character. * * * @var string */ - protected $line; + protected $box; /** * A polygon is the area enclosed by a point-to-point path for which the starting and ending points are the same. A polygon is expressed as a series of four or more space delimited points where the first and final points are identical. @@ -63,23 +63,23 @@ public static function fieldList() { protected $polygon; /** - * Physical address of the item. + * The postal code. For example, 94043. * * - * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var string */ - protected $address; + protected $postalCode; /** - * The postal code. For example, 94043. + * Physical address of the item. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress */ - protected $postalCode; + protected $address; /** - * The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT_OF_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters. + * The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). Values may be of the form 'NUMBER UNIT\_OF\_MEASUREMENT' (e.g., '1,000 m', '3,200 ft') while numbers alone should be assumed to be a value in meters. * * * @var string|Number|null @@ -87,15 +87,15 @@ public static function fieldList() { protected $elevation; /** - * A box is the area enclosed by the rectangle formed by two points. The first point is the lower corner, the second point is the upper corner. A box is expressed as two points separated by a space character. + * A circle is the circular region of a specified radius centered at a specified latitude and longitude. A circle is expressed as a pair followed by a radius in meters. * * * @var string */ - protected $box; + protected $circle; /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string|\OpenActive\Models\SchemaOrg\Country */ public function getAddressCountry() { @@ -103,15 +103,15 @@ public function getAddressCountry() } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry + * @param string|\OpenActive\Models\SchemaOrg\Country $addressCountry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAddressCountry($addressCountry) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", + "\OpenActive\Models\SchemaOrg\Country", ]; $addressCountry = self::checkTypes($addressCountry, $types); @@ -122,49 +122,49 @@ public function setAddressCountry($addressCountry) /** * @return string */ - public function getCircle() + public function getLine() { - return $this->circle; + return $this->line; } /** - * @param string $circle + * @param string $line * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCircle($circle) + public function setLine($line) { $types = [ "string", ]; - $circle = self::checkTypes($circle, $types); + $line = self::checkTypes($line, $types); - $this->circle = $circle; + $this->line = $line; } /** * @return string */ - public function getLine() + public function getBox() { - return $this->line; + return $this->box; } /** - * @param string $line + * @param string $box * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLine($line) + public function setBox($box) { $types = [ "string", ]; - $line = self::checkTypes($line, $types); + $box = self::checkTypes($box, $types); - $this->line = $line; + $this->box = $box; } /** @@ -192,52 +192,52 @@ public function setPolygon($polygon) } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return string */ - public function getAddress() + public function getPostalCode() { - return $this->address; + return $this->postalCode; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @param string $postalCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddress($address) + public function setPostalCode($postalCode) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $address = self::checkTypes($address, $types); + $postalCode = self::checkTypes($postalCode, $types); - $this->address = $address; + $this->postalCode = $postalCode; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress */ - public function getPostalCode() + public function getAddress() { - return $this->postalCode; + return $this->address; } /** - * @param string $postalCode + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCode($postalCode) + public function setAddress($address) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $postalCode = self::checkTypes($postalCode, $types); + $address = self::checkTypes($address, $types); - $this->postalCode = $postalCode; + $this->address = $address; } /** @@ -269,25 +269,25 @@ public function setElevation($elevation) /** * @return string */ - public function getBox() + public function getCircle() { - return $this->box; + return $this->circle; } /** - * @param string $box + * @param string $circle * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBox($box) + public function setCircle($circle) { $types = [ "string", ]; - $box = self::checkTypes($box, $types); + $circle = self::checkTypes($circle, $types); - $this->box = $box; + $this->circle = $circle; } } diff --git a/src/Models/SchemaOrg/GeospatialGeometry.php b/src/Models/SchemaOrg/GeospatialGeometry.php index 41a3ac0f..ea68b1a3 100644 --- a/src/Models/SchemaOrg/GeospatialGeometry.php +++ b/src/Models/SchemaOrg/GeospatialGeometry.php @@ -17,115 +17,115 @@ public static function getType() public static function fieldList() { $fields = [ - "geoContains" => "geoContains", + "geoWithin" => "geoWithin", + "geoDisjoint" => "geoDisjoint", "geoIntersects" => "geoIntersects", - "geoTouches" => "geoTouches", + "geoContains" => "geoContains", "geoCoveredBy" => "geoCoveredBy", - "geoEquals" => "geoEquals", - "geoCrosses" => "geoCrosses", + "geoTouches" => "geoTouches", "geoCovers" => "geoCovers", - "geoWithin" => "geoWithin", - "geoDisjoint" => "geoDisjoint", + "geoEquals" => "geoEquals", "geoOverlaps" => "geoOverlaps", + "geoCrosses" => "geoCrosses", ]; return array_merge(parent::fieldList(), $fields); } /** - * Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $geoContains; + protected $geoWithin; /** - * Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).) * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $geoIntersects; + protected $geoDisjoint; /** - * Represents spatial relations in which two geometries (or the places they represent) touch: they have at least one boundary point in common, but no interior points." (a symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM) ) + * Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $geoTouches; + protected $geoIntersects; /** - * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $geoCoveredBy; + protected $geoContains; /** - * Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship) + * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $geoEquals; + protected $geoCoveredBy; /** - * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).) * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $geoCrosses; + protected $geoTouches; /** * Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ protected $geoCovers; /** - * Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship). * * * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $geoWithin; + protected $geoEquals; /** - * Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: they have no point in common. They form a set of disconnected geometries." (a symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM)) + * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $geoDisjoint; + protected $geoOverlaps; /** - * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $geoOverlaps; + protected $geoCrosses; /** * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getGeoContains() + public function getGeoWithin() { - return $this->geoContains; + return $this->geoWithin; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoContains($geoContains) + public function setGeoWithin($geoWithin) { $types = [ "\OpenActive\Models\SchemaOrg\Place", @@ -133,51 +133,51 @@ public function setGeoContains($geoContains) "string", ]; - $geoContains = self::checkTypes($geoContains, $types); + $geoWithin = self::checkTypes($geoWithin, $types); - $this->geoContains = $geoContains; + $this->geoWithin = $geoWithin; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getGeoIntersects() + public function getGeoDisjoint() { - return $this->geoIntersects; + return $this->geoDisjoint; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoDisjoint * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoIntersects($geoIntersects) + public function setGeoDisjoint($geoDisjoint) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $geoIntersects = self::checkTypes($geoIntersects, $types); + $geoDisjoint = self::checkTypes($geoDisjoint, $types); - $this->geoIntersects = $geoIntersects; + $this->geoDisjoint = $geoDisjoint; } /** * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getGeoTouches() + public function getGeoIntersects() { - return $this->geoTouches; + return $this->geoIntersects; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoIntersects * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoTouches($geoTouches) + public function setGeoIntersects($geoIntersects) { $types = [ "\OpenActive\Models\SchemaOrg\Place", @@ -185,51 +185,51 @@ public function setGeoTouches($geoTouches) "string", ]; - $geoTouches = self::checkTypes($geoTouches, $types); + $geoIntersects = self::checkTypes($geoIntersects, $types); - $this->geoTouches = $geoTouches; + $this->geoIntersects = $geoIntersects; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoCoveredBy() + public function getGeoContains() { - return $this->geoCoveredBy; + return $this->geoContains; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCoveredBy + * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoContains * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoCoveredBy($geoCoveredBy) + public function setGeoContains($geoContains) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geoCoveredBy = self::checkTypes($geoCoveredBy, $types); + $geoContains = self::checkTypes($geoContains, $types); - $this->geoCoveredBy = $geoCoveredBy; + $this->geoContains = $geoContains; } /** * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getGeoEquals() + public function getGeoCoveredBy() { - return $this->geoEquals; + return $this->geoCoveredBy; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCoveredBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoEquals($geoEquals) + public function setGeoCoveredBy($geoCoveredBy) { $types = [ "\OpenActive\Models\SchemaOrg\Place", @@ -237,39 +237,39 @@ public function setGeoEquals($geoEquals) "string", ]; - $geoEquals = self::checkTypes($geoEquals, $types); + $geoCoveredBy = self::checkTypes($geoCoveredBy, $types); - $this->geoEquals = $geoEquals; + $this->geoCoveredBy = $geoCoveredBy; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getGeoCrosses() + public function getGeoTouches() { - return $this->geoCrosses; + return $this->geoTouches; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCrosses + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoCrosses($geoCrosses) + public function setGeoTouches($geoTouches) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $geoCrosses = self::checkTypes($geoCrosses, $types); + $geoTouches = self::checkTypes($geoTouches, $types); - $this->geoCrosses = $geoCrosses; + $this->geoTouches = $geoTouches; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ public function getGeoCovers() { @@ -277,15 +277,15 @@ public function getGeoCovers() } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCovers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setGeoCovers($geoCovers) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; @@ -297,17 +297,17 @@ public function setGeoCovers($geoCovers) /** * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getGeoWithin() + public function getGeoEquals() { - return $this->geoWithin; + return $this->geoEquals; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoWithin($geoWithin) + public function setGeoEquals($geoEquals) { $types = [ "\OpenActive\Models\SchemaOrg\Place", @@ -315,61 +315,61 @@ public function setGeoWithin($geoWithin) "string", ]; - $geoWithin = self::checkTypes($geoWithin, $types); + $geoEquals = self::checkTypes($geoEquals, $types); - $this->geoWithin = $geoWithin; + $this->geoEquals = $geoEquals; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getGeoDisjoint() + public function getGeoOverlaps() { - return $this->geoDisjoint; + return $this->geoOverlaps; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoOverlaps * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoDisjoint($geoDisjoint) + public function setGeoOverlaps($geoOverlaps) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $geoDisjoint = self::checkTypes($geoDisjoint, $types); + $geoOverlaps = self::checkTypes($geoOverlaps, $types); - $this->geoDisjoint = $geoDisjoint; + $this->geoOverlaps = $geoOverlaps; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getGeoOverlaps() + public function getGeoCrosses() { - return $this->geoOverlaps; + return $this->geoCrosses; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCrosses * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoOverlaps($geoOverlaps) + public function setGeoCrosses($geoCrosses) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $geoOverlaps = self::checkTypes($geoOverlaps, $types); + $geoCrosses = self::checkTypes($geoCrosses, $types); - $this->geoOverlaps = $geoOverlaps; + $this->geoCrosses = $geoCrosses; } } diff --git a/src/Models/SchemaOrg/GiveAction.php b/src/Models/SchemaOrg/GiveAction.php index c6617005..66fef1cf 100644 --- a/src/Models/SchemaOrg/GiveAction.php +++ b/src/Models/SchemaOrg/GiveAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ public function getRecipient() { @@ -40,17 +40,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRecipient($recipient) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; diff --git a/src/Models/SchemaOrg/GovernmentService.php b/src/Models/SchemaOrg/GovernmentService.php index 524869a5..0facdb9c 100644 --- a/src/Models/SchemaOrg/GovernmentService.php +++ b/src/Models/SchemaOrg/GovernmentService.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "jurisdiction" => "jurisdiction", "serviceOperator" => "serviceOperator", + "jurisdiction" => "jurisdiction", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based. + * The operating organization, if different from the provider. This enables the representation of services that are provided by an organization, but operated by another organization like a subcontractor. * * - * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $jurisdiction; + protected $serviceOperator; /** - * The operating organization, if different from the provider. This enables the representation of services that are provided by an organization, but operated by another organization like a subcontractor. + * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea */ - protected $serviceOperator; + protected $jurisdiction; /** - * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getJurisdiction() + public function getServiceOperator() { - return $this->jurisdiction; + return $this->serviceOperator; } /** - * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction + * @param \OpenActive\Models\SchemaOrg\Organization|string $serviceOperator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJurisdiction($jurisdiction) + public function setServiceOperator($serviceOperator) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", ]; - $jurisdiction = self::checkTypes($jurisdiction, $types); + $serviceOperator = self::checkTypes($serviceOperator, $types); - $this->jurisdiction = $jurisdiction; + $this->serviceOperator = $serviceOperator; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea */ - public function getServiceOperator() + public function getJurisdiction() { - return $this->serviceOperator; + return $this->jurisdiction; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $serviceOperator + * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceOperator($serviceOperator) + public function setJurisdiction($jurisdiction) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", ]; - $serviceOperator = self::checkTypes($serviceOperator, $types); + $jurisdiction = self::checkTypes($jurisdiction, $types); - $this->serviceOperator = $serviceOperator; + $this->jurisdiction = $jurisdiction; } } diff --git a/src/Models/SchemaOrg/Grant.php b/src/Models/SchemaOrg/Grant.php index bfd1d00e..6db8a1cd 100644 --- a/src/Models/SchemaOrg/Grant.php +++ b/src/Models/SchemaOrg/Grant.php @@ -29,7 +29,7 @@ public static function fieldList() { * A person or organization that supports (sponsors) something through some kind of financial contribution. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ protected $funder; @@ -37,12 +37,12 @@ public static function fieldList() { * Indicates something directly or indirectly funded or sponsored through a [[Grant]]. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Event|string */ protected $fundedItem; /** - * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event. + * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string @@ -50,7 +50,7 @@ public static function fieldList() { protected $sponsor; /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ public function getFunder() { @@ -58,15 +58,15 @@ public function getFunder() } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; @@ -76,7 +76,7 @@ public function setFunder($funder) } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Event|string */ public function getFundedItem() { @@ -84,20 +84,20 @@ public function getFundedItem() } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|string $fundedItem + * @param \OpenActive\Models\SchemaOrg\BioChemEntity|\OpenActive\Models\SchemaOrg\MedicalEntity|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Event|string $fundedItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setFundedItem($fundedItem) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\BioChemEntity", - "\OpenActive\Models\SchemaOrg\Event", "\OpenActive\Models\SchemaOrg\MedicalEntity", + "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\CreativeWork", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; diff --git a/src/Models/SchemaOrg/HealthInsurancePlan.php b/src/Models/SchemaOrg/HealthInsurancePlan.php index 80f8844e..80ce66d5 100644 --- a/src/Models/SchemaOrg/HealthInsurancePlan.php +++ b/src/Models/SchemaOrg/HealthInsurancePlan.php @@ -17,28 +17,20 @@ public static function getType() public static function fieldList() { $fields = [ - "includesHealthPlanFormulary" => "includesHealthPlanFormulary", "benefitsSummaryUrl" => "benefitsSummaryUrl", - "healthPlanDrugOption" => "healthPlanDrugOption", + "usesHealthPlanIdStandard" => "usesHealthPlanIdStandard", "healthPlanDrugTier" => "healthPlanDrugTier", - "healthPlanId" => "healthPlanId", "contactPoint" => "contactPoint", - "usesHealthPlanIdStandard" => "usesHealthPlanIdStandard", - "includesHealthPlanNetwork" => "includesHealthPlanNetwork", + "healthPlanId" => "healthPlanId", + "healthPlanDrugOption" => "healthPlanDrugOption", + "includesHealthPlanFormulary" => "includesHealthPlanFormulary", "healthPlanMarketingUrl" => "healthPlanMarketingUrl", + "includesHealthPlanNetwork" => "includesHealthPlanNetwork", ]; return array_merge(parent::fieldList(), $fields); } - /** - * Formularies covered by this plan. - * - * - * @var \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string - */ - protected $includesHealthPlanFormulary; - /** * The URL that goes directly to the summary of benefits and coverage for the specific standard plan or plan variation. * @@ -48,12 +40,12 @@ public static function fieldList() { protected $benefitsSummaryUrl; /** - * TODO. + * The standard for interpreting the Plan ID. The preferred is "HIOS". See the Centers for Medicare & Medicaid Services for more details. * * * @var string */ - protected $healthPlanDrugOption; + protected $usesHealthPlanIdStandard; /** * The tier(s) of drugs offered by this formulary or insurance plan. @@ -64,36 +56,36 @@ public static function fieldList() { protected $healthPlanDrugTier; /** - * The 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.) + * A contact point for a person or organization. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $healthPlanId; + protected $contactPoint; /** - * A contact point for a person or organization. + * The 14-character, HIOS-generated Plan ID number. (Plan IDs must be unique, even across different markets.) * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var string */ - protected $contactPoint; + protected $healthPlanId; /** - * The standard for interpreting thePlan ID. The preferred is "HIOS". See the Centers for Medicare & Medicaid Services for more details. + * TODO. * * * @var string */ - protected $usesHealthPlanIdStandard; + protected $healthPlanDrugOption; /** - * Networks covered by this plan. + * Formularies covered by this plan. * * - * @var \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string + * @var \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string */ - protected $includesHealthPlanNetwork; + protected $includesHealthPlanFormulary; /** * The URL that goes directly to the plan brochure for the specific standard plan or plan variation. @@ -104,29 +96,12 @@ public static function fieldList() { protected $healthPlanMarketingUrl; /** - * @return \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string - */ - public function getIncludesHealthPlanFormulary() - { - return $this->includesHealthPlanFormulary; - } - - /** - * @param \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string $includesHealthPlanFormulary - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * Networks covered by this plan. + * + * + * @var \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string */ - public function setIncludesHealthPlanFormulary($includesHealthPlanFormulary) - { - $types = [ - "\OpenActive\Models\SchemaOrg\HealthPlanFormulary", - "string", - ]; - - $includesHealthPlanFormulary = self::checkTypes($includesHealthPlanFormulary, $types); - - $this->includesHealthPlanFormulary = $includesHealthPlanFormulary; - } + protected $includesHealthPlanNetwork; /** * @return string @@ -155,25 +130,25 @@ public function setBenefitsSummaryUrl($benefitsSummaryUrl) /** * @return string */ - public function getHealthPlanDrugOption() + public function getUsesHealthPlanIdStandard() { - return $this->healthPlanDrugOption; + return $this->usesHealthPlanIdStandard; } /** - * @param string $healthPlanDrugOption + * @param string $usesHealthPlanIdStandard * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanDrugOption($healthPlanDrugOption) + public function setUsesHealthPlanIdStandard($usesHealthPlanIdStandard) { $types = [ "string", ]; - $healthPlanDrugOption = self::checkTypes($healthPlanDrugOption, $types); + $usesHealthPlanIdStandard = self::checkTypes($usesHealthPlanIdStandard, $types); - $this->healthPlanDrugOption = $healthPlanDrugOption; + $this->usesHealthPlanIdStandard = $usesHealthPlanIdStandard; } /** @@ -201,101 +176,101 @@ public function setHealthPlanDrugTier($healthPlanDrugTier) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getHealthPlanId() + public function getContactPoint() { - return $this->healthPlanId; + return $this->contactPoint; } /** - * @param string $healthPlanId + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanId($healthPlanId) + public function setContactPoint($contactPoint) { $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $healthPlanId = self::checkTypes($healthPlanId, $types); + $contactPoint = self::checkTypes($contactPoint, $types); - $this->healthPlanId = $healthPlanId; + $this->contactPoint = $contactPoint; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return string */ - public function getContactPoint() + public function getHealthPlanId() { - return $this->contactPoint; + return $this->healthPlanId; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint + * @param string $healthPlanId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoint($contactPoint) + public function setHealthPlanId($healthPlanId) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $contactPoint = self::checkTypes($contactPoint, $types); + $healthPlanId = self::checkTypes($healthPlanId, $types); - $this->contactPoint = $contactPoint; + $this->healthPlanId = $healthPlanId; } /** * @return string */ - public function getUsesHealthPlanIdStandard() + public function getHealthPlanDrugOption() { - return $this->usesHealthPlanIdStandard; + return $this->healthPlanDrugOption; } /** - * @param string $usesHealthPlanIdStandard + * @param string $healthPlanDrugOption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUsesHealthPlanIdStandard($usesHealthPlanIdStandard) + public function setHealthPlanDrugOption($healthPlanDrugOption) { $types = [ "string", ]; - $usesHealthPlanIdStandard = self::checkTypes($usesHealthPlanIdStandard, $types); + $healthPlanDrugOption = self::checkTypes($healthPlanDrugOption, $types); - $this->usesHealthPlanIdStandard = $usesHealthPlanIdStandard; + $this->healthPlanDrugOption = $healthPlanDrugOption; } /** - * @return \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string + * @return \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string */ - public function getIncludesHealthPlanNetwork() + public function getIncludesHealthPlanFormulary() { - return $this->includesHealthPlanNetwork; + return $this->includesHealthPlanFormulary; } /** - * @param \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string $includesHealthPlanNetwork + * @param \OpenActive\Models\SchemaOrg\HealthPlanFormulary|string $includesHealthPlanFormulary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludesHealthPlanNetwork($includesHealthPlanNetwork) + public function setIncludesHealthPlanFormulary($includesHealthPlanFormulary) { $types = [ - "\OpenActive\Models\SchemaOrg\HealthPlanNetwork", + "\OpenActive\Models\SchemaOrg\HealthPlanFormulary", "string", ]; - $includesHealthPlanNetwork = self::checkTypes($includesHealthPlanNetwork, $types); + $includesHealthPlanFormulary = self::checkTypes($includesHealthPlanFormulary, $types); - $this->includesHealthPlanNetwork = $includesHealthPlanNetwork; + $this->includesHealthPlanFormulary = $includesHealthPlanFormulary; } /** @@ -322,4 +297,29 @@ public function setHealthPlanMarketingUrl($healthPlanMarketingUrl) $this->healthPlanMarketingUrl = $healthPlanMarketingUrl; } + /** + * @return \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string + */ + public function getIncludesHealthPlanNetwork() + { + return $this->includesHealthPlanNetwork; + } + + /** + * @param \OpenActive\Models\SchemaOrg\HealthPlanNetwork|string $includesHealthPlanNetwork + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setIncludesHealthPlanNetwork($includesHealthPlanNetwork) + { + $types = [ + "\OpenActive\Models\SchemaOrg\HealthPlanNetwork", + "string", + ]; + + $includesHealthPlanNetwork = self::checkTypes($includesHealthPlanNetwork, $types); + + $this->includesHealthPlanNetwork = $includesHealthPlanNetwork; + } + } diff --git a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php index f1110c97..0860bf32 100644 --- a/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php +++ b/src/Models/SchemaOrg/HealthPlanCostSharingSpecification.php @@ -17,23 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ - "healthPlanCoinsuranceRate" => "healthPlanCoinsuranceRate", - "healthPlanCoinsuranceOption" => "healthPlanCoinsuranceOption", - "healthPlanPharmacyCategory" => "healthPlanPharmacyCategory", "healthPlanCopay" => "healthPlanCopay", + "healthPlanCoinsuranceOption" => "healthPlanCoinsuranceOption", + "healthPlanCoinsuranceRate" => "healthPlanCoinsuranceRate", "healthPlanCopayOption" => "healthPlanCopayOption", + "healthPlanPharmacyCategory" => "healthPlanPharmacyCategory", ]; return array_merge(parent::fieldList(), $fields); } /** - * Whether The rate of coinsurance expressed as a number between 0.0 and 1.0. + * The copay amount. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $healthPlanCoinsuranceRate; + protected $healthPlanCopay; /** * Whether the coinsurance applies before or after deductible, etc. TODO: Is this a closed set? @@ -44,52 +44,52 @@ public static function fieldList() { protected $healthPlanCoinsuranceOption; /** - * The category or type of pharmacy associated with this cost sharing. + * The rate of coinsurance expressed as a number between 0.0 and 1.0. * * - * @var string + * @var Number|null */ - protected $healthPlanPharmacyCategory; + protected $healthPlanCoinsuranceRate; /** - * Whether The copay amount. + * Whether the copay is before or after deductible, etc. TODO: Is this a closed set? * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var string */ - protected $healthPlanCopay; + protected $healthPlanCopayOption; /** - * Whether the copay is before or after deductible, etc. TODO: Is this a closed set? + * The category or type of pharmacy associated with this cost sharing. * * * @var string */ - protected $healthPlanCopayOption; + protected $healthPlanPharmacyCategory; /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getHealthPlanCoinsuranceRate() + public function getHealthPlanCopay() { - return $this->healthPlanCoinsuranceRate; + return $this->healthPlanCopay; } /** - * @param Number|null $healthPlanCoinsuranceRate + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $healthPlanCopay * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanCoinsuranceRate($healthPlanCoinsuranceRate) + public function setHealthPlanCopay($healthPlanCopay) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", ]; - $healthPlanCoinsuranceRate = self::checkTypes($healthPlanCoinsuranceRate, $types); + $healthPlanCopay = self::checkTypes($healthPlanCopay, $types); - $this->healthPlanCoinsuranceRate = $healthPlanCoinsuranceRate; + $this->healthPlanCopay = $healthPlanCopay; } /** @@ -117,76 +117,76 @@ public function setHealthPlanCoinsuranceOption($healthPlanCoinsuranceOption) } /** - * @return string + * @return Number|null */ - public function getHealthPlanPharmacyCategory() + public function getHealthPlanCoinsuranceRate() { - return $this->healthPlanPharmacyCategory; + return $this->healthPlanCoinsuranceRate; } /** - * @param string $healthPlanPharmacyCategory + * @param Number|null $healthPlanCoinsuranceRate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanPharmacyCategory($healthPlanPharmacyCategory) + public function setHealthPlanCoinsuranceRate($healthPlanCoinsuranceRate) { $types = [ - "string", + "Number", + "null", ]; - $healthPlanPharmacyCategory = self::checkTypes($healthPlanPharmacyCategory, $types); + $healthPlanCoinsuranceRate = self::checkTypes($healthPlanCoinsuranceRate, $types); - $this->healthPlanPharmacyCategory = $healthPlanPharmacyCategory; + $this->healthPlanCoinsuranceRate = $healthPlanCoinsuranceRate; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return string */ - public function getHealthPlanCopay() + public function getHealthPlanCopayOption() { - return $this->healthPlanCopay; + return $this->healthPlanCopayOption; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $healthPlanCopay + * @param string $healthPlanCopayOption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanCopay($healthPlanCopay) + public function setHealthPlanCopayOption($healthPlanCopayOption) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $healthPlanCopay = self::checkTypes($healthPlanCopay, $types); + $healthPlanCopayOption = self::checkTypes($healthPlanCopayOption, $types); - $this->healthPlanCopay = $healthPlanCopay; + $this->healthPlanCopayOption = $healthPlanCopayOption; } /** * @return string */ - public function getHealthPlanCopayOption() + public function getHealthPlanPharmacyCategory() { - return $this->healthPlanCopayOption; + return $this->healthPlanPharmacyCategory; } /** - * @param string $healthPlanCopayOption + * @param string $healthPlanPharmacyCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanCopayOption($healthPlanCopayOption) + public function setHealthPlanPharmacyCategory($healthPlanPharmacyCategory) { $types = [ "string", ]; - $healthPlanCopayOption = self::checkTypes($healthPlanCopayOption, $types); + $healthPlanPharmacyCategory = self::checkTypes($healthPlanPharmacyCategory, $types); - $this->healthPlanCopayOption = $healthPlanCopayOption; + $this->healthPlanPharmacyCategory = $healthPlanPharmacyCategory; } } diff --git a/src/Models/SchemaOrg/HealthPlanFormulary.php b/src/Models/SchemaOrg/HealthPlanFormulary.php index 52a8bfb6..535a68ad 100644 --- a/src/Models/SchemaOrg/HealthPlanFormulary.php +++ b/src/Models/SchemaOrg/HealthPlanFormulary.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "offersPrescriptionByMail" => "offersPrescriptionByMail", - "healthPlanDrugTier" => "healthPlanDrugTier", "healthPlanCostSharing" => "healthPlanCostSharing", + "healthPlanDrugTier" => "healthPlanDrugTier", + "offersPrescriptionByMail" => "offersPrescriptionByMail", ]; return array_merge(parent::fieldList(), $fields); } /** - * Whether prescriptions can be delivered by mail. + * The costs to the patient for services under this network or formulary. * * * @var bool|null */ - protected $offersPrescriptionByMail; + protected $healthPlanCostSharing; /** * The tier(s) of drugs offered by this formulary or insurance plan. @@ -42,36 +42,36 @@ public static function fieldList() { protected $healthPlanDrugTier; /** - * Whether The costs to the patient for services under this network or formulary. + * Whether prescriptions can be delivered by mail. * * * @var bool|null */ - protected $healthPlanCostSharing; + protected $offersPrescriptionByMail; /** * @return bool|null */ - public function getOffersPrescriptionByMail() + public function getHealthPlanCostSharing() { - return $this->offersPrescriptionByMail; + return $this->healthPlanCostSharing; } /** - * @param bool|null $offersPrescriptionByMail + * @param bool|null $healthPlanCostSharing * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffersPrescriptionByMail($offersPrescriptionByMail) + public function setHealthPlanCostSharing($healthPlanCostSharing) { $types = [ "bool", "null", ]; - $offersPrescriptionByMail = self::checkTypes($offersPrescriptionByMail, $types); + $healthPlanCostSharing = self::checkTypes($healthPlanCostSharing, $types); - $this->offersPrescriptionByMail = $offersPrescriptionByMail; + $this->healthPlanCostSharing = $healthPlanCostSharing; } /** @@ -101,26 +101,26 @@ public function setHealthPlanDrugTier($healthPlanDrugTier) /** * @return bool|null */ - public function getHealthPlanCostSharing() + public function getOffersPrescriptionByMail() { - return $this->healthPlanCostSharing; + return $this->offersPrescriptionByMail; } /** - * @param bool|null $healthPlanCostSharing + * @param bool|null $offersPrescriptionByMail * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanCostSharing($healthPlanCostSharing) + public function setOffersPrescriptionByMail($offersPrescriptionByMail) { $types = [ "bool", "null", ]; - $healthPlanCostSharing = self::checkTypes($healthPlanCostSharing, $types); + $offersPrescriptionByMail = self::checkTypes($offersPrescriptionByMail, $types); - $this->healthPlanCostSharing = $healthPlanCostSharing; + $this->offersPrescriptionByMail = $offersPrescriptionByMail; } } diff --git a/src/Models/SchemaOrg/HealthPlanNetwork.php b/src/Models/SchemaOrg/HealthPlanNetwork.php index 5f18dd0a..7ff43d67 100644 --- a/src/Models/SchemaOrg/HealthPlanNetwork.php +++ b/src/Models/SchemaOrg/HealthPlanNetwork.php @@ -17,24 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ - "healthPlanNetworkId" => "healthPlanNetworkId", - "healthPlanCostSharing" => "healthPlanCostSharing", "healthPlanNetworkTier" => "healthPlanNetworkTier", + "healthPlanCostSharing" => "healthPlanCostSharing", + "healthPlanNetworkId" => "healthPlanNetworkId", ]; return array_merge(parent::fieldList(), $fields); } /** - * Name or unique ID of network. (Networks are often reused across different insurance plans). + * The tier(s) for this network. * * * @var string */ - protected $healthPlanNetworkId; + protected $healthPlanNetworkTier; /** - * Whether The costs to the patient for services under this network or formulary. + * The costs to the patient for services under this network or formulary. * * * @var bool|null @@ -42,35 +42,35 @@ public static function fieldList() { protected $healthPlanCostSharing; /** - * The tier(s) for this network. + * Name or unique ID of network. (Networks are often reused across different insurance plans.) * * * @var string */ - protected $healthPlanNetworkTier; + protected $healthPlanNetworkId; /** * @return string */ - public function getHealthPlanNetworkId() + public function getHealthPlanNetworkTier() { - return $this->healthPlanNetworkId; + return $this->healthPlanNetworkTier; } /** - * @param string $healthPlanNetworkId + * @param string $healthPlanNetworkTier * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanNetworkId($healthPlanNetworkId) + public function setHealthPlanNetworkTier($healthPlanNetworkTier) { $types = [ "string", ]; - $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types); + $healthPlanNetworkTier = self::checkTypes($healthPlanNetworkTier, $types); - $this->healthPlanNetworkId = $healthPlanNetworkId; + $this->healthPlanNetworkTier = $healthPlanNetworkTier; } /** @@ -101,25 +101,25 @@ public function setHealthPlanCostSharing($healthPlanCostSharing) /** * @return string */ - public function getHealthPlanNetworkTier() + public function getHealthPlanNetworkId() { - return $this->healthPlanNetworkTier; + return $this->healthPlanNetworkId; } /** - * @param string $healthPlanNetworkTier + * @param string $healthPlanNetworkId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthPlanNetworkTier($healthPlanNetworkTier) + public function setHealthPlanNetworkId($healthPlanNetworkId) { $types = [ "string", ]; - $healthPlanNetworkTier = self::checkTypes($healthPlanNetworkTier, $types); + $healthPlanNetworkId = self::checkTypes($healthPlanNetworkId, $types); - $this->healthPlanNetworkTier = $healthPlanNetworkTier; + $this->healthPlanNetworkId = $healthPlanNetworkId; } } diff --git a/src/Models/SchemaOrg/Hospital.php b/src/Models/SchemaOrg/Hospital.php index 57b3d032..cf5616dd 100644 --- a/src/Models/SchemaOrg/Hospital.php +++ b/src/Models/SchemaOrg/Hospital.php @@ -17,114 +17,114 @@ public static function getType() public static function fieldList() { $fields = [ + "medicalSpecialty" => "medicalSpecialty", "availableService" => "availableService", "healthcareReportingData" => "healthcareReportingData", - "medicalSpecialty" => "medicalSpecialty", ]; return array_merge(parent::fieldList(), $fields); } /** - * A medical service available from this provider. + * A medical specialty of the provider. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string */ - protected $availableService; + protected $medicalSpecialty; /** - * Indicates data describing a hospital, e.g. a CDC [[CDCPMDRecord]] or as some kind of [[Dataset]]. + * A medical service available from this provider. * * - * @var \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string */ - protected $healthcareReportingData; + protected $availableService; /** - * A medical specialty of the provider. + * Indicates data describing a hospital, e.g. a CDC [[CDCPMDRecord]] or as some kind of [[Dataset]]. * * - * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string + * @var \OpenActive\Models\SchemaOrg\CDCPMDRecord|\OpenActive\Models\SchemaOrg\Dataset|string */ - protected $medicalSpecialty; + protected $healthcareReportingData; /** - * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string */ - public function getAvailableService() + public function getMedicalSpecialty() { - return $this->availableService; + return $this->medicalSpecialty; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService + * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableService($availableService) + public function setMedicalSpecialty($medicalSpecialty) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTest", - "\OpenActive\Models\SchemaOrg\MedicalProcedure", - "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\MedicalSpecialty", "string", ]; - $availableService = self::checkTypes($availableService, $types); + $medicalSpecialty = self::checkTypes($medicalSpecialty, $types); - $this->availableService = $availableService; + $this->medicalSpecialty = $medicalSpecialty; } /** - * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string */ - public function getHealthcareReportingData() + public function getAvailableService() { - return $this->healthcareReportingData; + return $this->availableService; } /** - * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\CDCPMDRecord|string $healthcareReportingData + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string $availableService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthcareReportingData($healthcareReportingData) + public function setAvailableService($availableService) { $types = [ - "\OpenActive\Models\SchemaOrg\Dataset", - "\OpenActive\Models\SchemaOrg\CDCPMDRecord", + "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\MedicalTest", + "\OpenActive\Models\SchemaOrg\MedicalProcedure", "string", ]; - $healthcareReportingData = self::checkTypes($healthcareReportingData, $types); + $availableService = self::checkTypes($availableService, $types); - $this->healthcareReportingData = $healthcareReportingData; + $this->availableService = $availableService; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string + * @return \OpenActive\Models\SchemaOrg\CDCPMDRecord|\OpenActive\Models\SchemaOrg\Dataset|string */ - public function getMedicalSpecialty() + public function getHealthcareReportingData() { - return $this->medicalSpecialty; + return $this->healthcareReportingData; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty + * @param \OpenActive\Models\SchemaOrg\CDCPMDRecord|\OpenActive\Models\SchemaOrg\Dataset|string $healthcareReportingData * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMedicalSpecialty($medicalSpecialty) + public function setHealthcareReportingData($healthcareReportingData) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalSpecialty", + "\OpenActive\Models\SchemaOrg\CDCPMDRecord", + "\OpenActive\Models\SchemaOrg\Dataset", "string", ]; - $medicalSpecialty = self::checkTypes($medicalSpecialty, $types); + $healthcareReportingData = self::checkTypes($healthcareReportingData, $types); - $this->medicalSpecialty = $medicalSpecialty; + $this->healthcareReportingData = $healthcareReportingData; } } diff --git a/src/Models/SchemaOrg/HotelRoom.php b/src/Models/SchemaOrg/HotelRoom.php index f44e621d..4d609eec 100644 --- a/src/Models/SchemaOrg/HotelRoom.php +++ b/src/Models/SchemaOrg/HotelRoom.php @@ -17,80 +17,80 @@ public static function getType() public static function fieldList() { $fields = [ - "bed" => "bed", "occupancy" => "occupancy", + "bed" => "bed", ]; return array_merge(parent::fieldList(), $fields); } /** - * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text. - * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property. + * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). + * Typical unit code(s): C62 for person. * * - * @var \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $bed; + protected $occupancy; /** - * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). - * Typical unit code(s): C62 for person + * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text. + * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType */ - protected $occupancy; + protected $bed; /** - * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getBed() + public function getOccupancy() { - return $this->bed; + return $this->occupancy; } /** - * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBed($bed) + public function setOccupancy($occupancy) { $types = [ - "\OpenActive\Models\SchemaOrg\BedDetails", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Models\SchemaOrg\BedType", ]; - $bed = self::checkTypes($bed, $types); + $occupancy = self::checkTypes($occupancy, $types); - $this->bed = $bed; + $this->occupancy = $occupancy; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType */ - public function getOccupancy() + public function getBed() { - return $this->occupancy; + return $this->bed; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy + * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupancy($occupancy) + public function setBed($bed) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\BedDetails", "string", + "\OpenActive\Models\SchemaOrg\BedType", ]; - $occupancy = self::checkTypes($occupancy, $types); + $bed = self::checkTypes($bed, $types); - $this->occupancy = $occupancy; + $this->bed = $bed; } } diff --git a/src/Models/SchemaOrg/HowTo.php b/src/Models/SchemaOrg/HowTo.php index 61090b30..9a8b6e88 100644 --- a/src/Models/SchemaOrg/HowTo.php +++ b/src/Models/SchemaOrg/HowTo.php @@ -17,27 +17,27 @@ public static function getType() public static function fieldList() { $fields = [ - "yield" => "yield", - "estimatedCost" => "estimatedCost", "supply" => "supply", - "step" => "step", - "totalTime" => "totalTime", + "estimatedCost" => "estimatedCost", + "yield" => "yield", "tool" => "tool", + "totalTime" => "totalTime", "prepTime" => "prepTime", - "steps" => "steps", "performTime" => "performTime", + "step" => "step", + "steps" => "steps", ]; return array_merge(parent::fieldList(), $fields); } /** - * The quantity that results by performing instructions. For example, a paper airplane, 10 personalized candles. + * A sub-property of instrument. A supply consumed when performing instructions or a direction. * * - * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @var \OpenActive\Models\SchemaOrg\HowToSupply|string */ - protected $yield; + protected $supply; /** * The estimated cost of the supply or supplies consumed when performing instructions. @@ -48,20 +48,20 @@ public static function fieldList() { protected $estimatedCost; /** - * A sub-property of instrument. A supply consumed when performing instructions or a direction. + * The quantity that results by performing instructions. For example, a paper airplane, 10 personalized candles. * * - * @var \OpenActive\Models\SchemaOrg\HowToSupply|string + * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - protected $supply; + protected $yield; /** - * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection. + * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction. * * - * @var \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\HowToTool|string */ - protected $step; + protected $tool; /** * The total time required to perform instructions or a direction (including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). @@ -72,60 +72,60 @@ public static function fieldList() { protected $totalTime; /** - * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction. + * The length of time it takes to prepare the items to be used in instructions or a direction, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var \OpenActive\Models\SchemaOrg\HowToTool|string + * @var DateInterval|string|null */ - protected $tool; + protected $prepTime; /** - * The length of time it takes to prepare the items to be used in instructions or a direction, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). + * The length of time it takes to perform instructions or a direction (not including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). * * * @var DateInterval|string|null */ - protected $prepTime; + protected $performTime; /** - * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred). + * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection. * * - * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string|\OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection */ - protected $steps; + protected $step; /** - * The length of time it takes to perform instructions or a direction (not including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). + * A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally misnamed 'steps'; 'step' is preferred). * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $performTime; + protected $steps; /** - * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @return \OpenActive\Models\SchemaOrg\HowToSupply|string */ - public function getYield() + public function getSupply() { - return $this->yield; + return $this->supply; } /** - * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $yield + * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setYield($yield) + public function setSupply($supply) { $types = [ + "\OpenActive\Models\SchemaOrg\HowToSupply", "string", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $yield = self::checkTypes($yield, $types); + $supply = self::checkTypes($supply, $types); - $this->yield = $yield; + $this->supply = $supply; } /** @@ -154,55 +154,53 @@ public function setEstimatedCost($estimatedCost) } /** - * @return \OpenActive\Models\SchemaOrg\HowToSupply|string + * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - public function getSupply() + public function getYield() { - return $this->supply; + return $this->yield; } /** - * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply + * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $yield * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupply($supply) + public function setYield($yield) { $types = [ - "\OpenActive\Models\SchemaOrg\HowToSupply", "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $supply = self::checkTypes($supply, $types); + $yield = self::checkTypes($yield, $types); - $this->supply = $supply; + $this->yield = $yield; } /** - * @return \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\HowToTool|string */ - public function getStep() + public function getTool() { - return $this->step; + return $this->tool; } /** - * @param \OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\HowToSection|string|\OpenActive\Models\SchemaOrg\CreativeWork $step + * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStep($step) + public function setTool($tool) { $types = [ - "\OpenActive\Models\SchemaOrg\HowToStep", - "\OpenActive\Models\SchemaOrg\HowToSection", + "\OpenActive\Models\SchemaOrg\HowToTool", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $step = self::checkTypes($step, $types); + $tool = self::checkTypes($tool, $types); - $this->step = $step; + $this->tool = $tool; } /** @@ -232,44 +230,45 @@ public function setTotalTime($totalTime) } /** - * @return \OpenActive\Models\SchemaOrg\HowToTool|string + * @return DateInterval|string|null */ - public function getTool() + public function getPrepTime() { - return $this->tool; + return $this->prepTime; } /** - * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool + * @param DateInterval|string|null $prepTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTool($tool) + public function setPrepTime($prepTime) { $types = [ - "\OpenActive\Models\SchemaOrg\HowToTool", + "DateInterval", "string", + "null", ]; - $tool = self::checkTypes($tool, $types); + $prepTime = self::checkTypes($prepTime, $types); - $this->tool = $tool; + $this->prepTime = $prepTime; } /** * @return DateInterval|string|null */ - public function getPrepTime() + public function getPerformTime() { - return $this->prepTime; + return $this->performTime; } /** - * @param DateInterval|string|null $prepTime + * @param DateInterval|string|null $performTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrepTime($prepTime) + public function setPerformTime($performTime) { $types = [ "DateInterval", @@ -277,61 +276,62 @@ public function setPrepTime($prepTime) "null", ]; - $prepTime = self::checkTypes($prepTime, $types); + $performTime = self::checkTypes($performTime, $types); - $this->prepTime = $prepTime; + $this->performTime = $performTime; } /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string|\OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection */ - public function getSteps() + public function getStep() { - return $this->steps; + return $this->step; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string $steps + * @param string|\OpenActive\Models\SchemaOrg\HowToStep|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\HowToSection $step * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSteps($steps) + public function setStep($step) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", + "\OpenActive\Models\SchemaOrg\HowToStep", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\HowToSection", ]; - $steps = self::checkTypes($steps, $types); + $step = self::checkTypes($step, $types); - $this->steps = $steps; + $this->step = $step; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getPerformTime() + public function getSteps() { - return $this->performTime; + return $this->steps; } /** - * @param DateInterval|string|null $performTime + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\CreativeWork|string $steps * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPerformTime($performTime) + public function setSteps($steps) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", - "null", ]; - $performTime = self::checkTypes($performTime, $types); + $steps = self::checkTypes($steps, $types); - $this->performTime = $performTime; + $this->steps = $steps; } } diff --git a/src/Models/SchemaOrg/HowToDirection.php b/src/Models/SchemaOrg/HowToDirection.php index c1650da5..0ef4c200 100644 --- a/src/Models/SchemaOrg/HowToDirection.php +++ b/src/Models/SchemaOrg/HowToDirection.php @@ -5,7 +5,7 @@ /** * */ -class HowToDirection extends \OpenActive\Models\SchemaOrg\ListItem +class HowToDirection extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -17,42 +17,42 @@ public static function getType() public static function fieldList() { $fields = [ - "afterMedia" => "afterMedia", "supply" => "supply", - "duringMedia" => "duringMedia", - "totalTime" => "totalTime", "beforeMedia" => "beforeMedia", "tool" => "tool", + "totalTime" => "totalTime", + "duringMedia" => "duringMedia", "prepTime" => "prepTime", "performTime" => "performTime", + "afterMedia" => "afterMedia", ]; return array_merge(parent::fieldList(), $fields); } /** - * A media object representing the circumstances after performing this direction. + * A sub-property of instrument. A supply consumed when performing instructions or a direction. * * - * @var string|\OpenActive\Models\SchemaOrg\MediaObject + * @var \OpenActive\Models\SchemaOrg\HowToSupply|string */ - protected $afterMedia; + protected $supply; /** - * A sub-property of instrument. A supply consumed when performing instructions or a direction. + * A media object representing the circumstances before performing this direction. * * - * @var \OpenActive\Models\SchemaOrg\HowToSupply|string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $supply; + protected $beforeMedia; /** - * A media object representing the circumstances while performing this direction. + * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction. * * - * @var string|\OpenActive\Models\SchemaOrg\MediaObject + * @var \OpenActive\Models\SchemaOrg\HowToTool|string */ - protected $duringMedia; + protected $tool; /** * The total time required to perform instructions or a direction (including time to prepare the supplies), in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). @@ -63,20 +63,12 @@ public static function fieldList() { protected $totalTime; /** - * A media object representing the circumstances before performing this direction. + * A media object representing the circumstances while performing this direction. * * * @var string|\OpenActive\Models\SchemaOrg\MediaObject */ - protected $beforeMedia; - - /** - * A sub property of instrument. An object used (but not consumed) when performing instructions or a direction. - * - * - * @var \OpenActive\Models\SchemaOrg\HowToTool|string - */ - protected $tool; + protected $duringMedia; /** * The length of time it takes to prepare the items to be used in instructions or a direction, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601). @@ -95,78 +87,86 @@ public static function fieldList() { protected $performTime; /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * A media object representing the circumstances after performing this direction. + * + * + * @var string|\OpenActive\Models\SchemaOrg\MediaObject */ - public function getAfterMedia() + protected $afterMedia; + + /** + * @return \OpenActive\Models\SchemaOrg\HowToSupply|string + */ + public function getSupply() { - return $this->afterMedia; + return $this->supply; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $afterMedia + * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAfterMedia($afterMedia) + public function setSupply($supply) { $types = [ + "\OpenActive\Models\SchemaOrg\HowToSupply", "string", - "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $afterMedia = self::checkTypes($afterMedia, $types); + $supply = self::checkTypes($supply, $types); - $this->afterMedia = $afterMedia; + $this->supply = $supply; } /** - * @return \OpenActive\Models\SchemaOrg\HowToSupply|string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getSupply() + public function getBeforeMedia() { - return $this->supply; + return $this->beforeMedia; } /** - * @param \OpenActive\Models\SchemaOrg\HowToSupply|string $supply + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $beforeMedia * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupply($supply) + public function setBeforeMedia($beforeMedia) { $types = [ - "\OpenActive\Models\SchemaOrg\HowToSupply", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $supply = self::checkTypes($supply, $types); + $beforeMedia = self::checkTypes($beforeMedia, $types); - $this->supply = $supply; + $this->beforeMedia = $beforeMedia; } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return \OpenActive\Models\SchemaOrg\HowToTool|string */ - public function getDuringMedia() + public function getTool() { - return $this->duringMedia; + return $this->tool; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $duringMedia + * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuringMedia($duringMedia) + public function setTool($tool) { $types = [ + "\OpenActive\Models\SchemaOrg\HowToTool", "string", - "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $duringMedia = self::checkTypes($duringMedia, $types); + $tool = self::checkTypes($tool, $types); - $this->duringMedia = $duringMedia; + $this->tool = $tool; } /** @@ -198,67 +198,68 @@ public function setTotalTime($totalTime) /** * @return string|\OpenActive\Models\SchemaOrg\MediaObject */ - public function getBeforeMedia() + public function getDuringMedia() { - return $this->beforeMedia; + return $this->duringMedia; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $beforeMedia + * @param string|\OpenActive\Models\SchemaOrg\MediaObject $duringMedia * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBeforeMedia($beforeMedia) + public function setDuringMedia($duringMedia) { $types = [ "string", "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $beforeMedia = self::checkTypes($beforeMedia, $types); + $duringMedia = self::checkTypes($duringMedia, $types); - $this->beforeMedia = $beforeMedia; + $this->duringMedia = $duringMedia; } /** - * @return \OpenActive\Models\SchemaOrg\HowToTool|string + * @return DateInterval|string|null */ - public function getTool() + public function getPrepTime() { - return $this->tool; + return $this->prepTime; } /** - * @param \OpenActive\Models\SchemaOrg\HowToTool|string $tool + * @param DateInterval|string|null $prepTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTool($tool) + public function setPrepTime($prepTime) { $types = [ - "\OpenActive\Models\SchemaOrg\HowToTool", + "DateInterval", "string", + "null", ]; - $tool = self::checkTypes($tool, $types); + $prepTime = self::checkTypes($prepTime, $types); - $this->tool = $tool; + $this->prepTime = $prepTime; } /** * @return DateInterval|string|null */ - public function getPrepTime() + public function getPerformTime() { - return $this->prepTime; + return $this->performTime; } /** - * @param DateInterval|string|null $prepTime + * @param DateInterval|string|null $performTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrepTime($prepTime) + public function setPerformTime($performTime) { $types = [ "DateInterval", @@ -266,35 +267,34 @@ public function setPrepTime($prepTime) "null", ]; - $prepTime = self::checkTypes($prepTime, $types); + $performTime = self::checkTypes($performTime, $types); - $this->prepTime = $prepTime; + $this->performTime = $performTime; } /** - * @return DateInterval|string|null + * @return string|\OpenActive\Models\SchemaOrg\MediaObject */ - public function getPerformTime() + public function getAfterMedia() { - return $this->performTime; + return $this->afterMedia; } /** - * @param DateInterval|string|null $performTime + * @param string|\OpenActive\Models\SchemaOrg\MediaObject $afterMedia * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPerformTime($performTime) + public function setAfterMedia($afterMedia) { $types = [ - "DateInterval", "string", - "null", + "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $performTime = self::checkTypes($performTime, $types); + $afterMedia = self::checkTypes($afterMedia, $types); - $this->performTime = $performTime; + $this->afterMedia = $afterMedia; } } diff --git a/src/Models/SchemaOrg/HowToItem.php b/src/Models/SchemaOrg/HowToItem.php index 0792f4f3..0a0d05b8 100644 --- a/src/Models/SchemaOrg/HowToItem.php +++ b/src/Models/SchemaOrg/HowToItem.php @@ -27,12 +27,12 @@ public static function fieldList() { * The required quantity of the item(s). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue|Number|null */ protected $requiredQuantity; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue|Number|null */ public function getRequiredQuantity() { @@ -40,15 +40,15 @@ public function getRequiredQuantity() } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $requiredQuantity + * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue|Number|null $requiredQuantity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRequiredQuantity($requiredQuantity) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "Number", "null", ]; diff --git a/src/Models/SchemaOrg/HowToStep.php b/src/Models/SchemaOrg/HowToStep.php index f3a75a5f..be17f111 100644 --- a/src/Models/SchemaOrg/HowToStep.php +++ b/src/Models/SchemaOrg/HowToStep.php @@ -5,7 +5,7 @@ /** * */ -class HowToStep extends \OpenActive\Models\SchemaOrg\ListItem +class HowToStep extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/HyperToc.php b/src/Models/SchemaOrg/HyperToc.php index d2dfb384..83cea49f 100644 --- a/src/Models/SchemaOrg/HyperToc.php +++ b/src/Models/SchemaOrg/HyperToc.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "tocEntry" => "tocEntry", "associatedMedia" => "associatedMedia", + "tocEntry" => "tocEntry", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates a [[HyperTocEntry]] in a [[HyperToc]]. + * A media object that encodes this CreativeWork. This property is a synonym for encoding. * * - * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $tocEntry; + protected $associatedMedia; /** - * A media object that encodes this CreativeWork. This property is a synonym for encoding. + * Indicates a [[HyperTocEntry]] in a [[HyperToc]]. * * - * @var \OpenActive\Models\SchemaOrg\MediaObject|string + * @var \OpenActive\Models\SchemaOrg\HyperTocEntry|string */ - protected $associatedMedia; + protected $tocEntry; /** - * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getTocEntry() + public function getAssociatedMedia() { - return $this->tocEntry; + return $this->associatedMedia; } /** - * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string $tocEntry + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTocEntry($tocEntry) + public function setAssociatedMedia($associatedMedia) { $types = [ - "\OpenActive\Models\SchemaOrg\HyperTocEntry", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $tocEntry = self::checkTypes($tocEntry, $types); + $associatedMedia = self::checkTypes($associatedMedia, $types); - $this->tocEntry = $tocEntry; + $this->associatedMedia = $associatedMedia; } /** - * @return \OpenActive\Models\SchemaOrg\MediaObject|string + * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string */ - public function getAssociatedMedia() + public function getTocEntry() { - return $this->associatedMedia; + return $this->tocEntry; } /** - * @param \OpenActive\Models\SchemaOrg\MediaObject|string $associatedMedia + * @param \OpenActive\Models\SchemaOrg\HyperTocEntry|string $tocEntry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedMedia($associatedMedia) + public function setTocEntry($tocEntry) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaObject", + "\OpenActive\Models\SchemaOrg\HyperTocEntry", "string", ]; - $associatedMedia = self::checkTypes($associatedMedia, $types); + $tocEntry = self::checkTypes($tocEntry, $types); - $this->associatedMedia = $associatedMedia; + $this->tocEntry = $tocEntry; } } diff --git a/src/Models/SchemaOrg/HyperTocEntry.php b/src/Models/SchemaOrg/HyperTocEntry.php index 3ec838dc..ba406acf 100644 --- a/src/Models/SchemaOrg/HyperTocEntry.php +++ b/src/Models/SchemaOrg/HyperTocEntry.php @@ -17,14 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ + "utterances" => "utterances", "tocContinuation" => "tocContinuation", "associatedMedia" => "associatedMedia", - "utterances" => "utterances", ]; return array_merge(parent::fieldList(), $fields); } + /** + * Text of an utterances (spoken words, lyrics etc.) that occurs at a certain section of a media object, represented as a [[HyperTocEntry]]. + * + * + * @var string + */ + protected $utterances; + /** * A [[HyperTocEntry]] can have a [[tocContinuation]] indicated, which is another [[HyperTocEntry]] that would be the default next item to play or render. * @@ -42,12 +50,28 @@ public static function fieldList() { protected $associatedMedia; /** - * Text of an utterances (spoken words, lyrics etc.) that occurs at a certain section of a media object, represented as a [[HyperTocEntry]]. - * - * - * @var string + * @return string */ - protected $utterances; + public function getUtterances() + { + return $this->utterances; + } + + /** + * @param string $utterances + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setUtterances($utterances) + { + $types = [ + "string", + ]; + + $utterances = self::checkTypes($utterances, $types); + + $this->utterances = $utterances; + } /** * @return \OpenActive\Models\SchemaOrg\HyperTocEntry|string @@ -99,28 +123,4 @@ public function setAssociatedMedia($associatedMedia) $this->associatedMedia = $associatedMedia; } - /** - * @return string - */ - public function getUtterances() - { - return $this->utterances; - } - - /** - * @param string $utterances - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setUtterances($utterances) - { - $types = [ - "string", - ]; - - $utterances = self::checkTypes($utterances, $types); - - $this->utterances = $utterances; - } - } diff --git a/src/Models/SchemaOrg/IPTCDigitalSourceEnumeration.php b/src/Models/SchemaOrg/IPTCDigitalSourceEnumeration.php new file mode 100644 index 00000000..0ac84b42 --- /dev/null +++ b/src/Models/SchemaOrg/IPTCDigitalSourceEnumeration.php @@ -0,0 +1,25 @@ + "embeddedTextCaption", "representativeOfPage" => "representativeOfPage", - "caption" => "caption", - "thumbnail" => "thumbnail", "exifData" => "exifData", + "embeddedTextCaption" => "embeddedTextCaption", + "caption" => "caption", ]; return array_merge(parent::fieldList(), $fields); } - /** - * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. - * - * - * @var string - */ - protected $embeddedTextCaption; - /** * Indicates whether this image is representative of the content of the page. * @@ -44,52 +35,28 @@ public static function fieldList() { protected $representativeOfPage; /** - * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. + * exif data for this object. * * - * @var string|\OpenActive\Models\SchemaOrg\MediaObject + * @var string|\OpenActive\Models\SchemaOrg\PropertyValue */ - protected $caption; + protected $exifData; /** - * Thumbnail image for an image or video. + * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var string */ - protected $thumbnail; + protected $embeddedTextCaption; /** - * exif data for this object. + * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string - */ - protected $exifData; - - /** - * @return string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getEmbeddedTextCaption() - { - return $this->embeddedTextCaption; - } - - /** - * @param string $embeddedTextCaption - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setEmbeddedTextCaption($embeddedTextCaption) - { - $types = [ - "string", - ]; - - $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - - $this->embeddedTextCaption = $embeddedTextCaption; - } + protected $caption; /** * @return bool|null @@ -117,78 +84,77 @@ public function setRepresentativeOfPage($representativeOfPage) } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return string|\OpenActive\Models\SchemaOrg\PropertyValue */ - public function getCaption() + public function getExifData() { - return $this->caption; + return $this->exifData; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption + * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $exifData * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCaption($caption) + public function setExifData($exifData) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\MediaObject", + "\OpenActive\Models\SchemaOrg\PropertyValue", ]; - $caption = self::checkTypes($caption, $types); + $exifData = self::checkTypes($exifData, $types); - $this->caption = $caption; + $this->exifData = $exifData; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return string */ - public function getThumbnail() + public function getEmbeddedTextCaption() { - return $this->thumbnail; + return $this->embeddedTextCaption; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail + * @param string $embeddedTextCaption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setThumbnail($thumbnail) + public function setEmbeddedTextCaption($embeddedTextCaption) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $thumbnail = self::checkTypes($thumbnail, $types); + $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - $this->thumbnail = $thumbnail; + $this->embeddedTextCaption = $embeddedTextCaption; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return \OpenActive\Models\SchemaOrg\MediaObject|string */ - public function getExifData() + public function getCaption() { - return $this->exifData; + return $this->caption; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $exifData + * @param \OpenActive\Models\SchemaOrg\MediaObject|string $caption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExifData($exifData) + public function setCaption($caption) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $exifData = self::checkTypes($exifData, $types); + $caption = self::checkTypes($caption, $types); - $this->exifData = $exifData; + $this->caption = $caption; } } diff --git a/src/Models/SchemaOrg/IndividualPhysician.php b/src/Models/SchemaOrg/IndividualPhysician.php new file mode 100644 index 00000000..c1ee47d2 --- /dev/null +++ b/src/Models/SchemaOrg/IndividualPhysician.php @@ -0,0 +1,59 @@ + "practicesAt", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * A [[MedicalOrganization]] where the [[IndividualPhysician]] practices. + * + * + * @var \OpenActive\Models\SchemaOrg\MedicalOrganization|string + */ + protected $practicesAt; + + /** + * @return \OpenActive\Models\SchemaOrg\MedicalOrganization|string + */ + public function getPracticesAt() + { + return $this->practicesAt; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MedicalOrganization|string $practicesAt + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPracticesAt($practicesAt) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MedicalOrganization", + "string", + ]; + + $practicesAt = self::checkTypes($practicesAt, $types); + + $this->practicesAt = $practicesAt; + } + +} diff --git a/src/Models/SchemaOrg/InteractionCounter.php b/src/Models/SchemaOrg/InteractionCounter.php index 09f2c22b..7a7e95dd 100644 --- a/src/Models/SchemaOrg/InteractionCounter.php +++ b/src/Models/SchemaOrg/InteractionCounter.php @@ -17,25 +17,17 @@ public static function getType() public static function fieldList() { $fields = [ - "startTime" => "startTime", "userInteractionCount" => "userInteractionCount", - "location" => "location", "interactionType" => "interactionType", - "interactionService" => "interactionService", "endTime" => "endTime", + "interactionService" => "interactionService", + "startTime" => "startTime", + "location" => "location", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. - * - * - * @var DateTime|string|null - */ - protected $startTime; - /** * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. * @@ -45,62 +37,44 @@ public static function fieldList() { protected $userInteractionCount; /** - * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. + * The Action representing the type of interaction. For up votes, +1s, etc. use [[LikeAction]]. For down votes use [[DislikeAction]]. Otherwise, use the most specific Action. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @var \OpenActive\Models\SchemaOrg\Action|string */ - protected $location; + protected $interactionType; /** - * The Action representing the type of interaction. For up votes, +1s, etc. use [[LikeAction]]. For down votes use [[DislikeAction]]. Otherwise, use the most specific Action. + * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * - * @var \OpenActive\Models\SchemaOrg\Action|string + * @var DateTime|string|null */ - protected $interactionType; + protected $endTime; /** * The WebSite or SoftwareApplication where the interactions took place. * * - * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string + * @var \OpenActive\Models\SchemaOrg\WebSite|\OpenActive\Models\SchemaOrg\SoftwareApplication|string */ protected $interactionService; /** - * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * * @var DateTime|string|null */ - protected $endTime; - - /** - * @return DateTime|string|null - */ - public function getStartTime() - { - return $this->startTime; - } + protected $startTime; /** - * @param DateTime|string|null $startTime - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. + * + * + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation */ - public function setStartTime($startTime) - { - $types = [ - "DateTime", - "Time", - "null", - ]; - - $startTime = self::checkTypes($startTime, $types); - - $this->startTime = $startTime; - } + protected $location; /** * @return int|null @@ -128,59 +102,58 @@ public function setUserInteractionCount($userInteractionCount) } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @return \OpenActive\Models\SchemaOrg\Action|string */ - public function getLocation() + public function getInteractionType() { - return $this->location; + return $this->interactionType; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @param \OpenActive\Models\SchemaOrg\Action|string $interactionType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLocation($location) + public function setInteractionType($interactionType) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Action", "string", - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $location = self::checkTypes($location, $types); + $interactionType = self::checkTypes($interactionType, $types); - $this->location = $location; + $this->interactionType = $interactionType; } /** - * @return \OpenActive\Models\SchemaOrg\Action|string + * @return DateTime|string|null */ - public function getInteractionType() + public function getEndTime() { - return $this->interactionType; + return $this->endTime; } /** - * @param \OpenActive\Models\SchemaOrg\Action|string $interactionType + * @param DateTime|string|null $endTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionType($interactionType) + public function setEndTime($endTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Action", - "string", + "DateTime", + "Time", + "null", ]; - $interactionType = self::checkTypes($interactionType, $types); + $endTime = self::checkTypes($endTime, $types); - $this->interactionType = $interactionType; + $this->endTime = $endTime; } /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string + * @return \OpenActive\Models\SchemaOrg\WebSite|\OpenActive\Models\SchemaOrg\SoftwareApplication|string */ public function getInteractionService() { @@ -188,15 +161,15 @@ public function getInteractionService() } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|\OpenActive\Models\SchemaOrg\WebSite|string $interactionService + * @param \OpenActive\Models\SchemaOrg\WebSite|\OpenActive\Models\SchemaOrg\SoftwareApplication|string $interactionService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setInteractionService($interactionService) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", "\OpenActive\Models\SchemaOrg\WebSite", + "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; @@ -208,17 +181,17 @@ public function setInteractionService($interactionService) /** * @return DateTime|string|null */ - public function getEndTime() + public function getStartTime() { - return $this->endTime; + return $this->startTime; } /** - * @param DateTime|string|null $endTime + * @param DateTime|string|null $startTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndTime($endTime) + public function setStartTime($startTime) { $types = [ "DateTime", @@ -226,9 +199,36 @@ public function setEndTime($endTime) "null", ]; - $endTime = self::checkTypes($endTime, $types); + $startTime = self::checkTypes($startTime, $types); - $this->endTime = $endTime; + $this->startTime = $startTime; + } + + /** + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + */ + public function getLocation() + { + return $this->location; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setLocation($location) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\VirtualLocation", + ]; + + $location = self::checkTypes($location, $types); + + $this->location = $location; } } diff --git a/src/Models/SchemaOrg/InvestmentOrDeposit.php b/src/Models/SchemaOrg/InvestmentOrDeposit.php index 0886a6e1..f33079e4 100644 --- a/src/Models/SchemaOrg/InvestmentOrDeposit.php +++ b/src/Models/SchemaOrg/InvestmentOrDeposit.php @@ -27,12 +27,12 @@ public static function fieldList() { * The amount of money. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ protected $amount; /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ public function getAmount() { @@ -40,16 +40,16 @@ public function getAmount() } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAmount($amount) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "Number", "null", ]; diff --git a/src/Models/SchemaOrg/Invoice.php b/src/Models/SchemaOrg/Invoice.php index d9aa9ed8..8d876f9d 100644 --- a/src/Models/SchemaOrg/Invoice.php +++ b/src/Models/SchemaOrg/Invoice.php @@ -17,122 +17,122 @@ public static function getType() public static function fieldList() { $fields = [ - "totalPaymentDue" => "totalPaymentDue", + "minimumPaymentDue" => "minimumPaymentDue", + "customer" => "customer", + "paymentMethodId" => "paymentMethodId", + "scheduledPaymentDate" => "scheduledPaymentDate", "billingPeriod" => "billingPeriod", - "referencesOrder" => "referencesOrder", "accountId" => "accountId", - "category" => "category", - "scheduledPaymentDate" => "scheduledPaymentDate", + "paymentMethod" => "paymentMethod", + "broker" => "broker", + "paymentDue" => "paymentDue", "confirmationNumber" => "confirmationNumber", - "customer" => "customer", - "provider" => "provider", - "minimumPaymentDue" => "minimumPaymentDue", + "category" => "category", "paymentDueDate" => "paymentDueDate", - "broker" => "broker", "paymentStatus" => "paymentStatus", - "paymentMethodId" => "paymentMethodId", - "paymentDue" => "paymentDue", - "paymentMethod" => "paymentMethod", + "provider" => "provider", + "totalPaymentDue" => "totalPaymentDue", + "referencesOrder" => "referencesOrder", ]; return array_merge(parent::fieldList(), $fields); } /** - * The total amount due. + * The minimum payment required at this time. * * * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $totalPaymentDue; + protected $minimumPaymentDue; /** - * The time interval used to compute the invoice. + * Party placing the order or paying the invoice. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $billingPeriod; + protected $customer; /** - * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice. + * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). * * - * @var \OpenActive\Models\SchemaOrg\Order|string + * @var string */ - protected $referencesOrder; + protected $paymentMethodId; /** - * The identifier for the account the payment will be applied to. + * The date the invoice is scheduled to be paid. * * - * @var string + * @var Date|null */ - protected $accountId; + protected $scheduledPaymentDate; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * The time interval used to compute the invoice. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var DateInterval|string|null */ - protected $category; + protected $billingPeriod; /** - * The date the invoice is scheduled to be paid. + * The identifier for the account the payment will be applied to. * * - * @var Date|null + * @var string */ - protected $scheduledPaymentDate; + protected $accountId; /** - * A number that confirms the given order or payment has been received. + * The name of the credit card or other method of payment for the order. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null */ - protected $confirmationNumber; + protected $paymentMethod; /** - * Party placing the order or paying the invoice. + * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $customer; + protected $broker; /** - * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. + * The date that payment is due. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var DateTime|null */ - protected $provider; + protected $paymentDue; /** - * The minimum payment required at this time. + * A number that confirms the given order or payment has been received. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var string */ - protected $minimumPaymentDue; + protected $confirmationNumber; /** - * The date that payment is due. + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var Date|DateTime|null + * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - protected $paymentDueDate; + protected $category; /** - * An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred. + * The date that payment is due. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var Date|DateTime|null */ - protected $broker; + protected $paymentDueDate; /** * The status of payment; whether the invoice has been paid or not. @@ -143,43 +143,43 @@ public static function fieldList() { protected $paymentStatus; /** - * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $paymentMethodId; + protected $provider; /** - * The date that payment is due. + * The total amount due. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $paymentDue; + protected $totalPaymentDue; /** - * The name of the credit card or other method of payment for the order. + * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice. * * - * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @var \OpenActive\Models\SchemaOrg\Order|string */ - protected $paymentMethod; + protected $referencesOrder; /** * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getTotalPaymentDue() + public function getMinimumPaymentDue() { - return $this->totalPaymentDue; + return $this->minimumPaymentDue; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $totalPaymentDue + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $minimumPaymentDue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalPaymentDue($totalPaymentDue) + public function setMinimumPaymentDue($minimumPaymentDue) { $types = [ "\OpenActive\Models\SchemaOrg\MonetaryAmount", @@ -187,177 +187,175 @@ public function setTotalPaymentDue($totalPaymentDue) "string", ]; - $totalPaymentDue = self::checkTypes($totalPaymentDue, $types); + $minimumPaymentDue = self::checkTypes($minimumPaymentDue, $types); - $this->totalPaymentDue = $totalPaymentDue; + $this->minimumPaymentDue = $minimumPaymentDue; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getBillingPeriod() + public function getCustomer() { - return $this->billingPeriod; + return $this->customer; } /** - * @param DateInterval|string|null $billingPeriod + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $customer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBillingPeriod($billingPeriod) + public function setCustomer($customer) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", - "null", ]; - $billingPeriod = self::checkTypes($billingPeriod, $types); + $customer = self::checkTypes($customer, $types); - $this->billingPeriod = $billingPeriod; + $this->customer = $customer; } /** - * @return \OpenActive\Models\SchemaOrg\Order|string + * @return string */ - public function getReferencesOrder() + public function getPaymentMethodId() { - return $this->referencesOrder; + return $this->paymentMethodId; } /** - * @param \OpenActive\Models\SchemaOrg\Order|string $referencesOrder + * @param string $paymentMethodId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReferencesOrder($referencesOrder) + public function setPaymentMethodId($paymentMethodId) { $types = [ - "\OpenActive\Models\SchemaOrg\Order", "string", ]; - $referencesOrder = self::checkTypes($referencesOrder, $types); + $paymentMethodId = self::checkTypes($paymentMethodId, $types); - $this->referencesOrder = $referencesOrder; + $this->paymentMethodId = $paymentMethodId; } /** - * @return string + * @return Date|null */ - public function getAccountId() + public function getScheduledPaymentDate() { - return $this->accountId; + return $this->scheduledPaymentDate; } /** - * @param string $accountId + * @param Date|null $scheduledPaymentDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccountId($accountId) + public function setScheduledPaymentDate($scheduledPaymentDate) { $types = [ - "string", + "Date", + "null", ]; - $accountId = self::checkTypes($accountId, $types); + $scheduledPaymentDate = self::checkTypes($scheduledPaymentDate, $types); - $this->accountId = $accountId; + $this->scheduledPaymentDate = $scheduledPaymentDate; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return DateInterval|string|null */ - public function getCategory() + public function getBillingPeriod() { - return $this->category; + return $this->billingPeriod; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param DateInterval|string|null $billingPeriod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setBillingPeriod($billingPeriod) { $types = [ + "DateInterval", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", "null", ]; - $category = self::checkTypes($category, $types); + $billingPeriod = self::checkTypes($billingPeriod, $types); - $this->category = $category; + $this->billingPeriod = $billingPeriod; } /** - * @return Date|null + * @return string */ - public function getScheduledPaymentDate() + public function getAccountId() { - return $this->scheduledPaymentDate; + return $this->accountId; } /** - * @param Date|null $scheduledPaymentDate + * @param string $accountId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setScheduledPaymentDate($scheduledPaymentDate) + public function setAccountId($accountId) { $types = [ - "Date", - "null", + "string", ]; - $scheduledPaymentDate = self::checkTypes($scheduledPaymentDate, $types); + $accountId = self::checkTypes($accountId, $types); - $this->scheduledPaymentDate = $scheduledPaymentDate; + $this->accountId = $accountId; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null */ - public function getConfirmationNumber() + public function getPaymentMethod() { - return $this->confirmationNumber; + return $this->paymentMethod; } /** - * @param string $confirmationNumber + * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setConfirmationNumber($confirmationNumber) + public function setPaymentMethod($paymentMethod) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\PaymentMethod", + "null", ]; - $confirmationNumber = self::checkTypes($confirmationNumber, $types); + $paymentMethod = self::checkTypes($paymentMethod, $types); - $this->confirmationNumber = $confirmationNumber; + $this->paymentMethod = $paymentMethod; } /** * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getCustomer() + public function getBroker() { - return $this->customer; + return $this->broker; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $broker * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCustomer($customer) + public function setBroker($broker) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", @@ -365,113 +363,112 @@ public function setCustomer($customer) "string", ]; - $customer = self::checkTypes($customer, $types); + $broker = self::checkTypes($broker, $types); - $this->customer = $customer; + $this->broker = $broker; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return DateTime|null */ - public function getProvider() + public function getPaymentDue() { - return $this->provider; + return $this->paymentDue; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param DateTime|null $paymentDue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setPaymentDue($paymentDue) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "DateTime", + "null", ]; - $provider = self::checkTypes($provider, $types); + $paymentDue = self::checkTypes($paymentDue, $types); - $this->provider = $provider; + $this->paymentDue = $paymentDue; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return string */ - public function getMinimumPaymentDue() + public function getConfirmationNumber() { - return $this->minimumPaymentDue; + return $this->confirmationNumber; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $minimumPaymentDue + * @param string $confirmationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinimumPaymentDue($minimumPaymentDue) + public function setConfirmationNumber($confirmationNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $minimumPaymentDue = self::checkTypes($minimumPaymentDue, $types); + $confirmationNumber = self::checkTypes($confirmationNumber, $types); - $this->minimumPaymentDue = $minimumPaymentDue; + $this->confirmationNumber = $confirmationNumber; } /** - * @return Date|DateTime|null + * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - public function getPaymentDueDate() + public function getCategory() { - return $this->paymentDueDate; + return $this->category; } /** - * @param Date|DateTime|null $paymentDueDate + * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentDueDate($paymentDueDate) + public function setCategory($category) { $types = [ - "Date", - "DateTime", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Thing", + "string", "null", ]; - $paymentDueDate = self::checkTypes($paymentDueDate, $types); + $category = self::checkTypes($category, $types); - $this->paymentDueDate = $paymentDueDate; + $this->category = $category; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return Date|DateTime|null */ - public function getBroker() + public function getPaymentDueDate() { - return $this->broker; + return $this->paymentDueDate; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker + * @param Date|DateTime|null $paymentDueDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroker($broker) + public function setPaymentDueDate($paymentDueDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", - "string", + "Date", + "DateTime", + "null", ]; - $broker = self::checkTypes($broker, $types); + $paymentDueDate = self::checkTypes($paymentDueDate, $types); - $this->broker = $broker; + $this->paymentDueDate = $paymentDueDate; } /** @@ -500,77 +497,80 @@ public function setPaymentStatus($paymentStatus) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPaymentMethodId() + public function getProvider() { - return $this->paymentMethodId; + return $this->provider; } /** - * @param string $paymentMethodId + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentMethodId($paymentMethodId) + public function setProvider($provider) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $paymentMethodId = self::checkTypes($paymentMethodId, $types); + $provider = self::checkTypes($provider, $types); - $this->paymentMethodId = $paymentMethodId; + $this->provider = $provider; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getPaymentDue() + public function getTotalPaymentDue() { - return $this->paymentDue; + return $this->totalPaymentDue; } /** - * @param DateTime|null $paymentDue + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string $totalPaymentDue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentDue($paymentDue) + public function setTotalPaymentDue($totalPaymentDue) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", ]; - $paymentDue = self::checkTypes($paymentDue, $types); + $totalPaymentDue = self::checkTypes($totalPaymentDue, $types); - $this->paymentDue = $paymentDue; + $this->totalPaymentDue = $totalPaymentDue; } /** - * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @return \OpenActive\Models\SchemaOrg\Order|string */ - public function getPaymentMethod() + public function getReferencesOrder() { - return $this->paymentMethod; + return $this->referencesOrder; } /** - * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod + * @param \OpenActive\Models\SchemaOrg\Order|string $referencesOrder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentMethod($paymentMethod) + public function setReferencesOrder($referencesOrder) { $types = [ - "\OpenActive\Enums\SchemaOrg\PaymentMethod", - "null", + "\OpenActive\Models\SchemaOrg\Order", + "string", ]; - $paymentMethod = self::checkTypes($paymentMethod, $types); + $referencesOrder = self::checkTypes($referencesOrder, $types); - $this->paymentMethod = $paymentMethod; + $this->referencesOrder = $referencesOrder; } } diff --git a/src/Models/SchemaOrg/ItemList.php b/src/Models/SchemaOrg/ItemList.php index 358f73ce..80631083 100644 --- a/src/Models/SchemaOrg/ItemList.php +++ b/src/Models/SchemaOrg/ItemList.php @@ -17,14 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ + "itemListOrder" => "itemListOrder", "numberOfItems" => "numberOfItems", "itemListElement" => "itemListElement", - "itemListOrder" => "itemListOrder", ]; return array_merge(parent::fieldList(), $fields); } + /** + * Type of ordering (e.g. Ascending, Descending, Unordered). + * + * + * @var string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null + */ + protected $itemListOrder; + /** * The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list. * @@ -37,17 +45,35 @@ public static function fieldList() { * For itemListElement values, you can use simple strings (e.g. "Peter", "Paul", "Mary"), existing entities, or use ListItem.\n\nText values are best if the elements in the list are plain strings. Existing entities are best for a simple, unordered list of existing things in your data. ListItem is used with ordered lists when you want to provide additional context about the element in that list or when the same item might be in different places in different lists.\n\nNote: The order of elements in your mark-up is not sufficient for indicating the order or elements. Use ListItem with a 'position' property in such cases. * * - * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string + * @var \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\ListItem */ protected $itemListElement; /** - * Type of ordering (e.g. Ascending, Descending, Unordered). - * - * - * @var string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null + * @return string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null */ - protected $itemListOrder; + public function getItemListOrder() + { + return $this->itemListOrder; + } + + /** + * @param string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null $itemListOrder + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setItemListOrder($itemListOrder) + { + $types = [ + "string", + "\OpenActive\Enums\SchemaOrg\ItemListOrderType", + "null", + ]; + + $itemListOrder = self::checkTypes($itemListOrder, $types); + + $this->itemListOrder = $itemListOrder; + } /** * @return int|null @@ -75,7 +101,7 @@ public function setNumberOfItems($numberOfItems) } /** - * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string + * @return \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\ListItem */ public function getItemListElement() { @@ -83,7 +109,7 @@ public function getItemListElement() } /** - * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\ListItem|string $itemListElement + * @param \OpenActive\Models\SchemaOrg\Thing|string|\OpenActive\Models\SchemaOrg\ListItem $itemListElement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -91,8 +117,8 @@ public function setItemListElement($itemListElement) { $types = [ "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\ListItem", "string", + "\OpenActive\Models\SchemaOrg\ListItem", ]; $itemListElement = self::checkTypes($itemListElement, $types); @@ -100,30 +126,4 @@ public function setItemListElement($itemListElement) $this->itemListElement = $itemListElement; } - /** - * @return string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null - */ - public function getItemListOrder() - { - return $this->itemListOrder; - } - - /** - * @param string|\OpenActive\Enums\SchemaOrg\ItemListOrderType|null $itemListOrder - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setItemListOrder($itemListOrder) - { - $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\ItemListOrderType", - "null", - ]; - - $itemListOrder = self::checkTypes($itemListOrder, $types); - - $this->itemListOrder = $itemListOrder; - } - } diff --git a/src/Models/SchemaOrg/JobPosting.php b/src/Models/SchemaOrg/JobPosting.php index ae041535..57ccc7a4 100644 --- a/src/Models/SchemaOrg/JobPosting.php +++ b/src/Models/SchemaOrg/JobPosting.php @@ -18,42 +18,42 @@ public static function getType() public static function fieldList() { $fields = [ "title" => "title", - "employerOverview" => "employerOverview", + "jobLocation" => "jobLocation", + "applicantLocationRequirements" => "applicantLocationRequirements", + "eligibilityToWorkRequirement" => "eligibilityToWorkRequirement", + "totalJobOpenings" => "totalJobOpenings", + "datePosted" => "datePosted", + "workHours" => "workHours", + "baseSalary" => "baseSalary", "estimatedSalary" => "estimatedSalary", + "experienceInPlaceOfEducation" => "experienceInPlaceOfEducation", "jobLocationType" => "jobLocationType", - "responsibilities" => "responsibilities", - "jobLocation" => "jobLocation", - "physicalRequirement" => "physicalRequirement", - "incentives" => "incentives", + "industry" => "industry", "directApply" => "directApply", + "validThrough" => "validThrough", + "hiringOrganization" => "hiringOrganization", + "salaryCurrency" => "salaryCurrency", "sensoryRequirement" => "sensoryRequirement", - "applicantLocationRequirements" => "applicantLocationRequirements", - "workHours" => "workHours", - "jobStartDate" => "jobStartDate", - "employmentType" => "employmentType", - "specialCommitments" => "specialCommitments", - "applicationContact" => "applicationContact", "incentiveCompensation" => "incentiveCompensation", - "relevantOccupation" => "relevantOccupation", - "totalJobOpenings" => "totalJobOpenings", - "experienceRequirements" => "experienceRequirements", - "jobBenefits" => "jobBenefits", - "salaryCurrency" => "salaryCurrency", - "experienceInPlaceOfEducation" => "experienceInPlaceOfEducation", + "incentives" => "incentives", "securityClearanceRequirement" => "securityClearanceRequirement", - "eligibilityToWorkRequirement" => "eligibilityToWorkRequirement", - "educationRequirements" => "educationRequirements", + "jobBenefits" => "jobBenefits", + "specialCommitments" => "specialCommitments", + "experienceRequirements" => "experienceRequirements", + "occupationalCategory" => "occupationalCategory", + "qualifications" => "qualifications", + "employmentType" => "employmentType", + "employerOverview" => "employerOverview", "benefits" => "benefits", - "industry" => "industry", - "baseSalary" => "baseSalary", - "datePosted" => "datePosted", "skills" => "skills", - "hiringOrganization" => "hiringOrganization", + "physicalRequirement" => "physicalRequirement", "jobImmediateStart" => "jobImmediateStart", - "validThrough" => "validThrough", + "educationRequirements" => "educationRequirements", + "responsibilities" => "responsibilities", + "jobStartDate" => "jobStartDate", + "applicationContact" => "applicationContact", "employmentUnit" => "employmentUnit", - "qualifications" => "qualifications", - "occupationalCategory" => "occupationalCategory", + "relevantOccupation" => "relevantOccupation", ]; return array_merge(parent::fieldList(), $fields); @@ -68,124 +68,132 @@ public static function fieldList() { protected $title; /** - * A description of the employer, career opportunities and work environment for this position. + * A (typically single) geographic location associated with the job position. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $employerOverview; + protected $jobLocation; /** - * An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value. + * The location(s) applicants can apply from. This is usually used for telecommuting jobs where the applicant does not need to be in a physical office. Note: This should not be used for citizenship or work visa requirements. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - protected $estimatedSalary; + protected $applicantLocationRequirements; /** - * A description of the job location (e.g TELECOMMUTE for telecommute jobs). + * The legal requirements such as citizenship, visa and other documentation required for an applicant to this job. * * * @var string */ - protected $jobLocationType; + protected $eligibilityToWorkRequirement; /** - * Responsibilities associated with this role or Occupation. + * The number of positions open for this job posting. Use a positive integer. Do not use if the number of positions is unclear or not known. * * - * @var string + * @var int|null */ - protected $responsibilities; + protected $totalJobOpenings; /** - * A (typically single) geographic location associated with the job position. + * Publication date of an online listing. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var Date|DateTime|null */ - protected $jobLocation; + protected $datePosted; /** - * A description of the types of physical activity associated with the job. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term. + * The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm). * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var string */ - protected $physicalRequirement; + protected $workHours; /** - * Description of bonus and commission compensation aspects of the job. + * The base salary of the job or of an employee in an EmployeeRole. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - protected $incentives; + protected $baseSalary; /** - * Indicates whether an [[url]] that is associated with a [[JobPosting]] enables direct application for the job, via the posting website. A job posting is considered to have directApply of [[True]] if an application process for the specified job can be directly initiated via the url(s) given (noting that e.g. multiple internet domains might nevertheless be involved at an implementation level). A value of [[False]] is appropriate if there is no clear path to applying directly online for the specified job, navigating directly from the JobPosting url(s) supplied. + * An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value. + * + * + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null + */ + protected $estimatedSalary; + + /** + * Indicates whether a [[JobPosting]] will accept experience (as indicated by [[OccupationalExperienceRequirements]]) in place of its formal educational qualifications (as indicated by [[educationRequirements]]). If true, indicates that satisfying one of these requirements is sufficient. * * * @var bool|null */ - protected $directApply; + protected $experienceInPlaceOfEducation; /** - * A description of any sensory requirements and levels necessary to function on the job, including hearing and vision. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term. + * A description of the job location (e.g. TELECOMMUTE for telecommute jobs). * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string */ - protected $sensoryRequirement; + protected $jobLocationType; /** - * The location(s) applicants can apply from. This is usually used for telecommuting jobs where the applicant does not need to be in a physical office. Note: This should not be used for citizenship or work visa requirements. + * The industry associated with the job position. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $applicantLocationRequirements; + protected $industry; /** - * The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm). + * Indicates whether an [[url]] that is associated with a [[JobPosting]] enables direct application for the job, via the posting website. A job posting is considered to have directApply of [[True]] if an application process for the specified job can be directly initiated via the url(s) given (noting that e.g. multiple internet domains might nevertheless be involved at an implementation level). A value of [[False]] is appropriate if there is no clear path to applying directly online for the specified job, navigating directly from the JobPosting url(s) supplied. * * - * @var string + * @var bool|null */ - protected $workHours; + protected $directApply; /** - * The date on which a successful applicant for this job would be expected to start work. Choose a specific date in the future or use the jobImmediateStart property to indicate the position is to be filled as soon as possible. + * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. * * - * @var Date|string|null + * @var Date|DateTime|null */ - protected $jobStartDate; + protected $validThrough; /** - * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship). + * Organization or Person offering the job position. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $employmentType; + protected $hiringOrganization; /** - * Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc. + * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)) used for the main salary information in this job posting or for this employee. * * * @var string */ - protected $specialCommitments; + protected $salaryCurrency; /** - * Contact details for further information relevant to this job posting. + * A description of any sensory requirements and levels necessary to function on the job, including hearing and vision. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $applicationContact; + protected $sensoryRequirement; /** * Description of bonus and commission compensation aspects of the job. @@ -196,76 +204,77 @@ public static function fieldList() { protected $incentiveCompensation; /** - * The Occupation for the JobPosting. + * Description of bonus and commission compensation aspects of the job. * * - * @var \OpenActive\Models\SchemaOrg\Occupation|string + * @var string */ - protected $relevantOccupation; + protected $incentives; /** - * The number of positions open for this job posting. Use a positive integer. Do not use if the number of positions is unclear or not known. + * A description of any security clearance requirements of the job. * * - * @var int|null + * @var string */ - protected $totalJobOpenings; + protected $securityClearanceRequirement; /** - * Description of skills and experience needed for the position or Occupation. + * Description of benefits associated with the job. * * - * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements + * @var string */ - protected $experienceRequirements; + protected $jobBenefits; /** - * Description of benefits associated with the job. + * Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc. * * * @var string */ - protected $jobBenefits; + protected $specialCommitments; /** - * The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) ) used for the main salary information in this job posting or for this employee. + * Description of skills and experience needed for the position or Occupation. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements */ - protected $salaryCurrency; + protected $experienceRequirements; /** - * Indicates whether a [[JobPosting]] will accept experience (as indicated by [[OccupationalExperienceRequirements]]) in place of its formal educational qualifications (as indicated by [[educationRequirements]]). If true, indicates that satisfying one of these requirements is sufficient. + * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n + * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC. * * - * @var bool|null + * @var string|\OpenActive\Models\SchemaOrg\CategoryCode */ - protected $experienceInPlaceOfEducation; + protected $occupationalCategory; /** - * A description of any security clearance requirements of the job. + * Specific qualifications required for this role or Occupation. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - protected $securityClearanceRequirement; + protected $qualifications; /** - * The legal requirements such as citizenship, visa and other documentation required for an applicant to this job. + * Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship). * * * @var string */ - protected $eligibilityToWorkRequirement; + protected $employmentType; /** - * Educational background needed for the position or Occupation. + * A description of the employer, career opportunities and work environment for this position. * * - * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var string */ - protected $educationRequirements; + protected $employerOverview; /** * Description of benefits associated with the job. @@ -276,60 +285,60 @@ public static function fieldList() { protected $benefits; /** - * The industry associated with the job position. + * A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $industry; + protected $skills; /** - * The base salary of the job or of an employee in an EmployeeRole. + * A description of the types of physical activity associated with the job. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term. * * - * @var Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $baseSalary; + protected $physicalRequirement; /** - * Publication date of an online listing. + * An indicator as to whether a position is available for an immediate start. * * - * @var Date|DateTime|null + * @var bool|null */ - protected $datePosted; + protected $jobImmediateStart; /** - * A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation. + * Educational background needed for the position or Occupation. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - protected $skills; + protected $educationRequirements; /** - * Organization offering the job position. + * Responsibilities associated with this role or Occupation. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $hiringOrganization; + protected $responsibilities; /** - * An indicator as to whether a position is available for an immediate start. + * The date on which a successful applicant for this job would be expected to start work. Choose a specific date in the future or use the jobImmediateStart property to indicate the position is to be filled as soon as possible. * * - * @var bool|null + * @var Date|string|null */ - protected $jobImmediateStart; + protected $jobStartDate; /** - * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. + * Contact details for further information relevant to this job posting. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $validThrough; + protected $applicationContact; /** * Indicates the department, unit and/or facility where the employee reports and/or in which the job is to be performed. @@ -340,21 +349,12 @@ public static function fieldList() { protected $employmentUnit; /** - * Specific qualifications required for this role or Occupation. - * - * - * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential - */ - protected $qualifications; - - /** - * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n - * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC. + * The Occupation for the JobPosting. * * - * @var \OpenActive\Models\SchemaOrg\CategoryCode|string + * @var \OpenActive\Models\SchemaOrg\Occupation|string */ - protected $occupationalCategory; + protected $relevantOccupation; /** * @return string @@ -381,375 +381,408 @@ public function setTitle($title) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getEmployerOverview() + public function getJobLocation() { - return $this->employerOverview; + return $this->jobLocation; } /** - * @param string $employerOverview + * @param \OpenActive\Models\SchemaOrg\Place|string $jobLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmployerOverview($employerOverview) + public function setJobLocation($jobLocation) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $employerOverview = self::checkTypes($employerOverview, $types); + $jobLocation = self::checkTypes($jobLocation, $types); - $this->employerOverview = $employerOverview; + $this->jobLocation = $jobLocation; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getEstimatedSalary() + public function getApplicantLocationRequirements() + { + return $this->applicantLocationRequirements; + } + + /** + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicantLocationRequirements + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setApplicantLocationRequirements($applicantLocationRequirements) + { + $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "string", + ]; + + $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types); + + $this->applicantLocationRequirements = $applicantLocationRequirements; + } + + /** + * @return string + */ + public function getEligibilityToWorkRequirement() { - return $this->estimatedSalary; + return $this->eligibilityToWorkRequirement; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary + * @param string $eligibilityToWorkRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEstimatedSalary($estimatedSalary) + public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", - "Number", - "null", ]; - $estimatedSalary = self::checkTypes($estimatedSalary, $types); + $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types); - $this->estimatedSalary = $estimatedSalary; + $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement; } /** - * @return string + * @return int|null */ - public function getJobLocationType() + public function getTotalJobOpenings() { - return $this->jobLocationType; + return $this->totalJobOpenings; } /** - * @param string $jobLocationType + * @param int|null $totalJobOpenings * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobLocationType($jobLocationType) + public function setTotalJobOpenings($totalJobOpenings) { $types = [ - "string", + "int", + "null", ]; - $jobLocationType = self::checkTypes($jobLocationType, $types); + $totalJobOpenings = self::checkTypes($totalJobOpenings, $types); - $this->jobLocationType = $jobLocationType; + $this->totalJobOpenings = $totalJobOpenings; } /** - * @return string + * @return Date|DateTime|null */ - public function getResponsibilities() + public function getDatePosted() { - return $this->responsibilities; + return $this->datePosted; } /** - * @param string $responsibilities + * @param Date|DateTime|null $datePosted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setResponsibilities($responsibilities) + public function setDatePosted($datePosted) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $responsibilities = self::checkTypes($responsibilities, $types); + $datePosted = self::checkTypes($datePosted, $types); - $this->responsibilities = $responsibilities; + $this->datePosted = $datePosted; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getJobLocation() + public function getWorkHours() { - return $this->jobLocation; + return $this->workHours; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $jobLocation + * @param string $workHours * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobLocation($jobLocation) + public function setWorkHours($workHours) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $jobLocation = self::checkTypes($jobLocation, $types); + $workHours = self::checkTypes($workHours, $types); - $this->jobLocation = $jobLocation; + $this->workHours = $workHours; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null */ - public function getPhysicalRequirement() + public function getBaseSalary() { - return $this->physicalRequirement; + return $this->baseSalary; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $physicalRequirement + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|Number|\OpenActive\Models\SchemaOrg\PriceSpecification|string|null $baseSalary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPhysicalRequirement($physicalRequirement) + public function setBaseSalary($baseSalary) { $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "Number", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "null", ]; - $physicalRequirement = self::checkTypes($physicalRequirement, $types); + $baseSalary = self::checkTypes($baseSalary, $types); - $this->physicalRequirement = $physicalRequirement; + $this->baseSalary = $baseSalary; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null */ - public function getIncentives() + public function getEstimatedSalary() { - return $this->incentives; + return $this->estimatedSalary; } /** - * @param string $incentives + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null $estimatedSalary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncentives($incentives) + public function setEstimatedSalary($estimatedSalary) { $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", "string", + "Number", + "null", ]; - $incentives = self::checkTypes($incentives, $types); + $estimatedSalary = self::checkTypes($estimatedSalary, $types); - $this->incentives = $incentives; + $this->estimatedSalary = $estimatedSalary; } /** * @return bool|null */ - public function getDirectApply() + public function getExperienceInPlaceOfEducation() { - return $this->directApply; + return $this->experienceInPlaceOfEducation; } /** - * @param bool|null $directApply + * @param bool|null $experienceInPlaceOfEducation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirectApply($directApply) + public function setExperienceInPlaceOfEducation($experienceInPlaceOfEducation) { $types = [ "bool", "null", ]; - $directApply = self::checkTypes($directApply, $types); + $experienceInPlaceOfEducation = self::checkTypes($experienceInPlaceOfEducation, $types); - $this->directApply = $directApply; + $this->experienceInPlaceOfEducation = $experienceInPlaceOfEducation; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string */ - public function getSensoryRequirement() + public function getJobLocationType() { - return $this->sensoryRequirement; + return $this->jobLocationType; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $sensoryRequirement + * @param string $jobLocationType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSensoryRequirement($sensoryRequirement) + public function setJobLocationType($jobLocationType) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $sensoryRequirement = self::checkTypes($sensoryRequirement, $types); + $jobLocationType = self::checkTypes($jobLocationType, $types); - $this->sensoryRequirement = $sensoryRequirement; + $this->jobLocationType = $jobLocationType; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getApplicantLocationRequirements() + public function getIndustry() { - return $this->applicantLocationRequirements; + return $this->industry; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $applicantLocationRequirements + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $industry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicantLocationRequirements($applicantLocationRequirements) + public function setIndustry($industry) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $applicantLocationRequirements = self::checkTypes($applicantLocationRequirements, $types); + $industry = self::checkTypes($industry, $types); - $this->applicantLocationRequirements = $applicantLocationRequirements; + $this->industry = $industry; } /** - * @return string + * @return bool|null */ - public function getWorkHours() + public function getDirectApply() { - return $this->workHours; + return $this->directApply; } /** - * @param string $workHours + * @param bool|null $directApply * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkHours($workHours) + public function setDirectApply($directApply) { $types = [ - "string", + "bool", + "null", ]; - $workHours = self::checkTypes($workHours, $types); + $directApply = self::checkTypes($directApply, $types); - $this->workHours = $workHours; + $this->directApply = $directApply; } /** - * @return Date|string|null + * @return Date|DateTime|null */ - public function getJobStartDate() + public function getValidThrough() { - return $this->jobStartDate; + return $this->validThrough; } /** - * @param Date|string|null $jobStartDate + * @param Date|DateTime|null $validThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobStartDate($jobStartDate) + public function setValidThrough($validThrough) { $types = [ "Date", - "string", + "DateTime", "null", ]; - $jobStartDate = self::checkTypes($jobStartDate, $types); + $validThrough = self::checkTypes($validThrough, $types); - $this->jobStartDate = $jobStartDate; + $this->validThrough = $validThrough; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getEmploymentType() + public function getHiringOrganization() { - return $this->employmentType; + return $this->hiringOrganization; } /** - * @param string $employmentType + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $hiringOrganization * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmploymentType($employmentType) + public function setHiringOrganization($hiringOrganization) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $employmentType = self::checkTypes($employmentType, $types); + $hiringOrganization = self::checkTypes($hiringOrganization, $types); - $this->employmentType = $employmentType; + $this->hiringOrganization = $hiringOrganization; } /** * @return string */ - public function getSpecialCommitments() + public function getSalaryCurrency() { - return $this->specialCommitments; + return $this->salaryCurrency; } /** - * @param string $specialCommitments + * @param string $salaryCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpecialCommitments($specialCommitments) + public function setSalaryCurrency($salaryCurrency) { $types = [ "string", ]; - $specialCommitments = self::checkTypes($specialCommitments, $types); + $salaryCurrency = self::checkTypes($salaryCurrency, $types); - $this->specialCommitments = $specialCommitments; + $this->salaryCurrency = $salaryCurrency; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getApplicationContact() + public function getSensoryRequirement() { - return $this->applicationContact; + return $this->sensoryRequirement; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $applicationContact + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $sensoryRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationContact($applicationContact) + public function setSensoryRequirement($sensoryRequirement) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $applicationContact = self::checkTypes($applicationContact, $types); + $sensoryRequirement = self::checkTypes($sensoryRequirement, $types); - $this->applicationContact = $applicationContact; + $this->sensoryRequirement = $sensoryRequirement; } /** @@ -777,78 +810,51 @@ public function setIncentiveCompensation($incentiveCompensation) } /** - * @return \OpenActive\Models\SchemaOrg\Occupation|string + * @return string */ - public function getRelevantOccupation() + public function getIncentives() { - return $this->relevantOccupation; + return $this->incentives; } /** - * @param \OpenActive\Models\SchemaOrg\Occupation|string $relevantOccupation + * @param string $incentives * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelevantOccupation($relevantOccupation) + public function setIncentives($incentives) { $types = [ - "\OpenActive\Models\SchemaOrg\Occupation", "string", ]; - $relevantOccupation = self::checkTypes($relevantOccupation, $types); - - $this->relevantOccupation = $relevantOccupation; - } - - /** - * @return int|null - */ - public function getTotalJobOpenings() - { - return $this->totalJobOpenings; - } - - /** - * @param int|null $totalJobOpenings - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setTotalJobOpenings($totalJobOpenings) - { - $types = [ - "int", - "null", - ]; - - $totalJobOpenings = self::checkTypes($totalJobOpenings, $types); + $incentives = self::checkTypes($incentives, $types); - $this->totalJobOpenings = $totalJobOpenings; + $this->incentives = $incentives; } /** - * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements + * @return string */ - public function getExperienceRequirements() + public function getSecurityClearanceRequirement() { - return $this->experienceRequirements; + return $this->securityClearanceRequirement; } /** - * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements + * @param string $securityClearanceRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExperienceRequirements($experienceRequirements) + public function setSecurityClearanceRequirement($securityClearanceRequirement) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements", ]; - $experienceRequirements = self::checkTypes($experienceRequirements, $types); + $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types); - $this->experienceRequirements = $experienceRequirements; + $this->securityClearanceRequirement = $securityClearanceRequirement; } /** @@ -878,402 +884,397 @@ public function setJobBenefits($jobBenefits) /** * @return string */ - public function getSalaryCurrency() + public function getSpecialCommitments() { - return $this->salaryCurrency; + return $this->specialCommitments; } /** - * @param string $salaryCurrency + * @param string $specialCommitments * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSalaryCurrency($salaryCurrency) + public function setSpecialCommitments($specialCommitments) { $types = [ "string", ]; - $salaryCurrency = self::checkTypes($salaryCurrency, $types); + $specialCommitments = self::checkTypes($specialCommitments, $types); - $this->salaryCurrency = $salaryCurrency; + $this->specialCommitments = $specialCommitments; } /** - * @return bool|null + * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements */ - public function getExperienceInPlaceOfEducation() + public function getExperienceRequirements() { - return $this->experienceInPlaceOfEducation; + return $this->experienceRequirements; } /** - * @param bool|null $experienceInPlaceOfEducation + * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExperienceInPlaceOfEducation($experienceInPlaceOfEducation) + public function setExperienceRequirements($experienceRequirements) { $types = [ - "bool", - "null", + "string", + "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements", ]; - $experienceInPlaceOfEducation = self::checkTypes($experienceInPlaceOfEducation, $types); + $experienceRequirements = self::checkTypes($experienceRequirements, $types); - $this->experienceInPlaceOfEducation = $experienceInPlaceOfEducation; + $this->experienceRequirements = $experienceRequirements; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\CategoryCode */ - public function getSecurityClearanceRequirement() + public function getOccupationalCategory() { - return $this->securityClearanceRequirement; + return $this->occupationalCategory; } /** - * @param string $securityClearanceRequirement + * @param string|\OpenActive\Models\SchemaOrg\CategoryCode $occupationalCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSecurityClearanceRequirement($securityClearanceRequirement) + public function setOccupationalCategory($occupationalCategory) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\CategoryCode", ]; - $securityClearanceRequirement = self::checkTypes($securityClearanceRequirement, $types); + $occupationalCategory = self::checkTypes($occupationalCategory, $types); - $this->securityClearanceRequirement = $securityClearanceRequirement; + $this->occupationalCategory = $occupationalCategory; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - public function getEligibilityToWorkRequirement() + public function getQualifications() { - return $this->eligibilityToWorkRequirement; + return $this->qualifications; } /** - * @param string $eligibilityToWorkRequirement + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $qualifications * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibilityToWorkRequirement($eligibilityToWorkRequirement) + public function setQualifications($qualifications) { $types = [ + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", ]; - $eligibilityToWorkRequirement = self::checkTypes($eligibilityToWorkRequirement, $types); + $qualifications = self::checkTypes($qualifications, $types); - $this->eligibilityToWorkRequirement = $eligibilityToWorkRequirement; + $this->qualifications = $qualifications; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return string */ - public function getEducationRequirements() + public function getEmploymentType() { - return $this->educationRequirements; + return $this->employmentType; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements + * @param string $employmentType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationRequirements($educationRequirements) + public function setEmploymentType($employmentType) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", ]; - $educationRequirements = self::checkTypes($educationRequirements, $types); + $employmentType = self::checkTypes($employmentType, $types); - $this->educationRequirements = $educationRequirements; + $this->employmentType = $employmentType; } /** * @return string */ - public function getBenefits() + public function getEmployerOverview() { - return $this->benefits; + return $this->employerOverview; } /** - * @param string $benefits + * @param string $employerOverview * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBenefits($benefits) + public function setEmployerOverview($employerOverview) { $types = [ "string", ]; - $benefits = self::checkTypes($benefits, $types); + $employerOverview = self::checkTypes($employerOverview, $types); - $this->benefits = $benefits; + $this->employerOverview = $employerOverview; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string */ - public function getIndustry() + public function getBenefits() { - return $this->industry; + return $this->benefits; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $industry + * @param string $benefits * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIndustry($industry) + public function setBenefits($benefits) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $industry = self::checkTypes($industry, $types); + $benefits = self::checkTypes($benefits, $types); - $this->industry = $industry; + $this->benefits = $benefits; } /** - * @return Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getBaseSalary() + public function getSkills() { - return $this->baseSalary; + return $this->skills; } /** - * @param Number|\OpenActive\Models\SchemaOrg\PriceSpecification|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $baseSalary + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBaseSalary($baseSalary) + public function setSkills($skills) { $types = [ - "Number", - "\OpenActive\Models\SchemaOrg\PriceSpecification", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", - "null", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $baseSalary = self::checkTypes($baseSalary, $types); + $skills = self::checkTypes($skills, $types); - $this->baseSalary = $baseSalary; + $this->skills = $skills; } /** - * @return Date|DateTime|null + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getDatePosted() + public function getPhysicalRequirement() { - return $this->datePosted; + return $this->physicalRequirement; } /** - * @param Date|DateTime|null $datePosted + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $physicalRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePosted($datePosted) + public function setPhysicalRequirement($physicalRequirement) { $types = [ - "Date", - "DateTime", - "null", + "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $datePosted = self::checkTypes($datePosted, $types); + $physicalRequirement = self::checkTypes($physicalRequirement, $types); - $this->datePosted = $datePosted; + $this->physicalRequirement = $physicalRequirement; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return bool|null */ - public function getSkills() + public function getJobImmediateStart() { - return $this->skills; + return $this->jobImmediateStart; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $skills + * @param bool|null $jobImmediateStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSkills($skills) + public function setJobImmediateStart($jobImmediateStart) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "bool", + "null", ]; - $skills = self::checkTypes($skills, $types); + $jobImmediateStart = self::checkTypes($jobImmediateStart, $types); - $this->skills = $skills; + $this->jobImmediateStart = $jobImmediateStart; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - public function getHiringOrganization() + public function getEducationRequirements() { - return $this->hiringOrganization; + return $this->educationRequirements; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $hiringOrganization + * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHiringOrganization($hiringOrganization) + public function setEducationRequirements($educationRequirements) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", ]; - $hiringOrganization = self::checkTypes($hiringOrganization, $types); + $educationRequirements = self::checkTypes($educationRequirements, $types); - $this->hiringOrganization = $hiringOrganization; + $this->educationRequirements = $educationRequirements; } /** - * @return bool|null + * @return string */ - public function getJobImmediateStart() + public function getResponsibilities() { - return $this->jobImmediateStart; + return $this->responsibilities; } /** - * @param bool|null $jobImmediateStart + * @param string $responsibilities * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJobImmediateStart($jobImmediateStart) + public function setResponsibilities($responsibilities) { $types = [ - "bool", - "null", + "string", ]; - $jobImmediateStart = self::checkTypes($jobImmediateStart, $types); + $responsibilities = self::checkTypes($responsibilities, $types); - $this->jobImmediateStart = $jobImmediateStart; + $this->responsibilities = $responsibilities; } /** - * @return Date|DateTime|null + * @return Date|string|null */ - public function getValidThrough() + public function getJobStartDate() { - return $this->validThrough; + return $this->jobStartDate; } /** - * @param Date|DateTime|null $validThrough + * @param Date|string|null $jobStartDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidThrough($validThrough) + public function setJobStartDate($jobStartDate) { $types = [ "Date", - "DateTime", + "string", "null", ]; - $validThrough = self::checkTypes($validThrough, $types); + $jobStartDate = self::checkTypes($jobStartDate, $types); - $this->validThrough = $validThrough; + $this->jobStartDate = $jobStartDate; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getEmploymentUnit() + public function getApplicationContact() { - return $this->employmentUnit; + return $this->applicationContact; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $employmentUnit + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $applicationContact * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmploymentUnit($employmentUnit) + public function setApplicationContact($applicationContact) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $employmentUnit = self::checkTypes($employmentUnit, $types); + $applicationContact = self::checkTypes($applicationContact, $types); - $this->employmentUnit = $employmentUnit; + $this->applicationContact = $applicationContact; } /** - * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getQualifications() + public function getEmploymentUnit() { - return $this->qualifications; + return $this->employmentUnit; } /** - * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications + * @param \OpenActive\Models\SchemaOrg\Organization|string $employmentUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setQualifications($qualifications) + public function setEmploymentUnit($employmentUnit) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", ]; - $qualifications = self::checkTypes($qualifications, $types); + $employmentUnit = self::checkTypes($employmentUnit, $types); - $this->qualifications = $qualifications; + $this->employmentUnit = $employmentUnit; } /** - * @return \OpenActive\Models\SchemaOrg\CategoryCode|string + * @return \OpenActive\Models\SchemaOrg\Occupation|string */ - public function getOccupationalCategory() + public function getRelevantOccupation() { - return $this->occupationalCategory; + return $this->relevantOccupation; } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory + * @param \OpenActive\Models\SchemaOrg\Occupation|string $relevantOccupation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupationalCategory($occupationalCategory) + public function setRelevantOccupation($relevantOccupation) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Occupation", "string", ]; - $occupationalCategory = self::checkTypes($occupationalCategory, $types); + $relevantOccupation = self::checkTypes($relevantOccupation, $types); - $this->occupationalCategory = $occupationalCategory; + $this->relevantOccupation = $relevantOccupation; } } diff --git a/src/Models/SchemaOrg/Joint.php b/src/Models/SchemaOrg/Joint.php index c7958355..a028c3dc 100644 --- a/src/Models/SchemaOrg/Joint.php +++ b/src/Models/SchemaOrg/Joint.php @@ -17,109 +17,109 @@ public static function getType() public static function fieldList() { $fields = [ + "functionalClass" => "functionalClass", "structuralClass" => "structuralClass", "biomechnicalClass" => "biomechnicalClass", - "functionalClass" => "functionalClass", ]; return array_merge(parent::fieldList(), $fields); } /** - * The name given to how bone physically connects to each other. + * The degree of mobility the joint allows. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - protected $structuralClass; + protected $functionalClass; /** - * The biomechanical properties of the bone. + * The name given to how bone physically connects to each other. * * * @var string */ - protected $biomechnicalClass; + protected $structuralClass; /** - * The degree of mobility the joint allows. + * The biomechanical properties of the bone. * * - * @var string|\OpenActive\Models\SchemaOrg\MedicalEntity + * @var string */ - protected $functionalClass; + protected $biomechnicalClass; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - public function getStructuralClass() + public function getFunctionalClass() { - return $this->structuralClass; + return $this->functionalClass; } /** - * @param string $structuralClass + * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $functionalClass * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStructuralClass($structuralClass) + public function setFunctionalClass($functionalClass) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalEntity", "string", ]; - $structuralClass = self::checkTypes($structuralClass, $types); + $functionalClass = self::checkTypes($functionalClass, $types); - $this->structuralClass = $structuralClass; + $this->functionalClass = $functionalClass; } /** * @return string */ - public function getBiomechnicalClass() + public function getStructuralClass() { - return $this->biomechnicalClass; + return $this->structuralClass; } /** - * @param string $biomechnicalClass + * @param string $structuralClass * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBiomechnicalClass($biomechnicalClass) + public function setStructuralClass($structuralClass) { $types = [ "string", ]; - $biomechnicalClass = self::checkTypes($biomechnicalClass, $types); + $structuralClass = self::checkTypes($structuralClass, $types); - $this->biomechnicalClass = $biomechnicalClass; + $this->structuralClass = $structuralClass; } /** - * @return string|\OpenActive\Models\SchemaOrg\MedicalEntity + * @return string */ - public function getFunctionalClass() + public function getBiomechnicalClass() { - return $this->functionalClass; + return $this->biomechnicalClass; } /** - * @param string|\OpenActive\Models\SchemaOrg\MedicalEntity $functionalClass + * @param string $biomechnicalClass * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunctionalClass($functionalClass) + public function setBiomechnicalClass($biomechnicalClass) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\MedicalEntity", ]; - $functionalClass = self::checkTypes($functionalClass, $types); + $biomechnicalClass = self::checkTypes($biomechnicalClass, $types); - $this->functionalClass = $functionalClass; + $this->biomechnicalClass = $biomechnicalClass; } } diff --git a/src/Models/SchemaOrg/LearningResource.php b/src/Models/SchemaOrg/LearningResource.php index c9f5b932..20ea8deb 100644 --- a/src/Models/SchemaOrg/LearningResource.php +++ b/src/Models/SchemaOrg/LearningResource.php @@ -17,33 +17,25 @@ public static function getType() public static function fieldList() { $fields = [ - "teaches" => "teaches", - "educationalLevel" => "educationalLevel", + "learningResourceType" => "learningResourceType", "assesses" => "assesses", "educationalUse" => "educationalUse", "educationalAlignment" => "educationalAlignment", "competencyRequired" => "competencyRequired", - "learningResourceType" => "learningResourceType", + "educationalLevel" => "educationalLevel", + "teaches" => "teaches", ]; return array_merge(parent::fieldList(), $fields); } /** - * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. + * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. * * * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $teaches; - - /** - * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. - * - * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm - */ - protected $educationalLevel; + protected $learningResourceType; /** * The item being described is intended to assess the competency or learning outcome defined by the referenced term. @@ -80,61 +72,44 @@ public static function fieldList() { protected $competencyRequired; /** - * The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. + * The level in terms of progression through an educational or training context. Examples of educational levels include 'beginner', 'intermediate' or 'advanced', and formal sets of level indicators. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string - */ - protected $learningResourceType; - - /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getTeaches() - { - return $this->teaches; - } + protected $educationalLevel; /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function setTeaches($teaches) - { - $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", - "string", - ]; - - $teaches = self::checkTypes($teaches, $types); - - $this->teaches = $teaches; - } + protected $teaches; /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getEducationalLevel() + public function getLearningResourceType() { - return $this->educationalLevel; + return $this->learningResourceType; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationalLevel($educationalLevel) + public function setLearningResourceType($learningResourceType) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $educationalLevel = self::checkTypes($educationalLevel, $types); + $learningResourceType = self::checkTypes($learningResourceType, $types); - $this->educationalLevel = $educationalLevel; + $this->learningResourceType = $learningResourceType; } /** @@ -237,29 +212,54 @@ public function setCompetencyRequired($competencyRequired) $this->competencyRequired = $competencyRequired; } + /** + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + */ + public function getEducationalLevel() + { + return $this->educationalLevel; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $educationalLevel + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setEducationalLevel($educationalLevel) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + ]; + + $educationalLevel = self::checkTypes($educationalLevel, $types); + + $this->educationalLevel = $educationalLevel; + } + /** * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getLearningResourceType() + public function getTeaches() { - return $this->learningResourceType; + return $this->teaches; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $learningResourceType + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $teaches * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLearningResourceType($learningResourceType) + public function setTeaches($teaches) { $types = [ "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $learningResourceType = self::checkTypes($learningResourceType, $types); + $teaches = self::checkTypes($teaches, $types); - $this->learningResourceType = $learningResourceType; + $this->teaches = $teaches; } } diff --git a/src/Models/SchemaOrg/Legislation.php b/src/Models/SchemaOrg/Legislation.php index 8567e99e..3a814fee 100644 --- a/src/Models/SchemaOrg/Legislation.php +++ b/src/Models/SchemaOrg/Legislation.php @@ -17,31 +17,31 @@ public static function getType() public static function fieldList() { $fields = [ - "legislationTransposes" => "legislationTransposes", + "legislationPassedBy" => "legislationPassedBy", "legislationLegalForce" => "legislationLegalForce", + "legislationChanges" => "legislationChanges", + "legislationJurisdiction" => "legislationJurisdiction", "legislationType" => "legislationType", "jurisdiction" => "jurisdiction", + "legislationDateVersion" => "legislationDateVersion", + "legislationTransposes" => "legislationTransposes", + "legislationApplies" => "legislationApplies", "legislationIdentifier" => "legislationIdentifier", - "legislationChanges" => "legislationChanges", "legislationResponsible" => "legislationResponsible", - "legislationJurisdiction" => "legislationJurisdiction", - "legislationDate" => "legislationDate", - "legislationPassedBy" => "legislationPassedBy", "legislationConsolidates" => "legislationConsolidates", - "legislationApplies" => "legislationApplies", - "legislationDateVersion" => "legislationDateVersion", + "legislationDate" => "legislationDate", ]; return array_merge(parent::fieldList(), $fields); } /** - * Indicates that this legislation (or part of legislation) fulfills the objectives set by another legislation, by passing appropriate implementation measures. Typically, some legislations of European Union's member states or regions transpose European Directives. This indicates a legally binding link between the 2 legislations. + * The person or organization that originally passed or made the law: typically parliament (for primary legislation) or government (for secondary legislation). This indicates the "legal author" of the law, as opposed to its physical author. * * - * @var \OpenActive\Models\SchemaOrg\Legislation|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $legislationTransposes; + protected $legislationPassedBy; /** * Whether the legislation is currently in force, not in force, or partially in force. @@ -52,116 +52,117 @@ public static function fieldList() { protected $legislationLegalForce; /** - * The type of the legislation. Examples of values are "law", "act", "directive", "decree", "regulation", "statutory instrument", "loi organique", "règlement grand-ducal", etc., depending on the country. + * Another legislation that this legislation changes. This encompasses the notions of amendment, replacement, correction, repeal, or other types of change. This may be a direct change (textual or non-textual amendment) or a consequential or indirect change. The property is to be used to express the existence of a change relationship between two acts rather than the existence of a consolidated version of the text that shows the result of the change. For consolidation relationships, use the legislationConsolidates property. * * - * @var \OpenActive\Models\SchemaOrg\CategoryCode|string + * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationType; + protected $legislationChanges; /** - * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based. + * The jurisdiction from which the legislation originates. * * - * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea + * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - protected $jurisdiction; + protected $legislationJurisdiction; /** - * An identifier for the legislation. This can be either a string-based identifier, like the CELEX at EU level or the NOR in France, or a web-based, URL/URI identifier, like an ELI (European Legislation Identifier) or an URN-Lex. + * The type of the legislation. Examples of values are "law", "act", "directive", "decree", "regulation", "statutory instrument", "loi organique", "règlement grand-ducal", etc., depending on the country. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CategoryCode|string */ - protected $legislationIdentifier; + protected $legislationType; /** - * Another legislation that this legislation changes. This encompasses the notions of amendment, replacement, correction, repeal, or other types of change. This may be a direct change (textual or non-textual amendment) or a consequential or indirect change. The property is to be used to express the existence of a change relationship between two acts rather than the existence of a consolidated version of the text that shows the result of the change. For consolidation relationships, use the legislationConsolidates property. + * Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based. * * - * @var \OpenActive\Models\SchemaOrg\Legislation|string + * @var string|\OpenActive\Models\SchemaOrg\AdministrativeArea */ - protected $legislationChanges; + protected $jurisdiction; /** - * An individual or organization that has some kind of responsibility for the legislation. Typically the ministry who is/was in charge of elaborating the legislation, or the adressee for potential questions about the legislation once it is published. + * The point-in-time at which the provided description of the legislation is valid (e.g.: when looking at the law on the 2016-04-07 (= dateVersion), I get the consolidation of 2015-04-12 of the "National Insurance Contributions Act 2015") * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var Date|null */ - protected $legislationResponsible; + protected $legislationDateVersion; /** - * The jurisdiction from which the legislation originates. + * Indicates that this legislation (or part of legislation) fulfills the objectives set by another legislation, by passing appropriate implementation measures. Typically, some legislations of European Union's member states or regions transpose European Directives. This indicates a legally binding link between the 2 legislations. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationJurisdiction; + protected $legislationTransposes; /** - * The date of adoption or signature of the legislation. This is the date at which the text is officially aknowledged to be a legislation, even though it might not even be published or in force. + * Indicates that this legislation (or part of a legislation) somehow transfers another legislation in a different legislative context. This is an informative link, and it has no legal value. For legally-binding links of transposition, use the legislationTransposes property. For example an informative consolidated law of a European Union's member state "applies" the consolidated version of the European Directive implemented in it. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationDate; + protected $legislationApplies; /** - * The person or organization that originally passed or made the law : typically parliament (for primary legislation) or government (for secondary legislation). This indicates the "legal author" of the law, as opposed to its physical author. + * An identifier for the legislation. This can be either a string-based identifier, like the CELEX at EU level or the NOR in France, or a web-based, URL/URI identifier, like an ELI (European Legislation Identifier) or an URN-Lex. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $legislationPassedBy; + protected $legislationIdentifier; /** - * Indicates another legislation taken into account in this consolidated legislation (which is usually the product of an editorial process that revises the legislation). This property should be used multiple times to refer to both the original version or the previous consolidated version, and to the legislations making the change. + * An individual or organization that has some kind of responsibility for the legislation. Typically the ministry who is/was in charge of elaborating the legislation, or the adressee for potential questions about the legislation once it is published. * * - * @var \OpenActive\Models\SchemaOrg\Legislation|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $legislationConsolidates; + protected $legislationResponsible; /** - * Indicates that this legislation (or part of a legislation) somehow transfers another legislation in a different legislative context. This is an informative link, and it has no legal value. For legally-binding links of transposition, use the legislationTransposes property. For example an informative consolidated law of a European Union's member state "applies" the consolidated version of the European Directive implemented in it. + * Indicates another legislation taken into account in this consolidated legislation (which is usually the product of an editorial process that revises the legislation). This property should be used multiple times to refer to both the original version or the previous consolidated version, and to the legislations making the change. * * * @var \OpenActive\Models\SchemaOrg\Legislation|string */ - protected $legislationApplies; + protected $legislationConsolidates; /** - * The point-in-time at which the provided description of the legislation is valid (e.g. : when looking at the law on the 2016-04-07 (= dateVersion), I get the consolidation of 2015-04-12 of the "National Insurance Contributions Act 2015") + * The date of adoption or signature of the legislation. This is the date at which the text is officially aknowledged to be a legislation, even though it might not even be published or in force. * * * @var Date|null */ - protected $legislationDateVersion; + protected $legislationDate; /** - * @return \OpenActive\Models\SchemaOrg\Legislation|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getLegislationTransposes() + public function getLegislationPassedBy() { - return $this->legislationTransposes; + return $this->legislationPassedBy; } /** - * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationTransposes + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationPassedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationTransposes($legislationTransposes) + public function setLegislationPassedBy($legislationPassedBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Legislation", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $legislationTransposes = self::checkTypes($legislationTransposes, $types); + $legislationPassedBy = self::checkTypes($legislationPassedBy, $types); - $this->legislationTransposes = $legislationTransposes; + $this->legislationPassedBy = $legislationPassedBy; } /** @@ -190,279 +191,278 @@ public function setLegislationLegalForce($legislationLegalForce) } /** - * @return \OpenActive\Models\SchemaOrg\CategoryCode|string + * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationType() + public function getLegislationChanges() { - return $this->legislationType; + return $this->legislationChanges; } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $legislationType + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationChanges * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationType($legislationType) + public function setLegislationChanges($legislationChanges) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationType = self::checkTypes($legislationType, $types); + $legislationChanges = self::checkTypes($legislationChanges, $types); - $this->legislationType = $legislationType; + $this->legislationChanges = $legislationChanges; } /** - * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getJurisdiction() + public function getLegislationJurisdiction() { - return $this->jurisdiction; + return $this->legislationJurisdiction; } /** - * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $legislationJurisdiction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setJurisdiction($jurisdiction) + public function setLegislationJurisdiction($legislationJurisdiction) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "string", ]; - $jurisdiction = self::checkTypes($jurisdiction, $types); + $legislationJurisdiction = self::checkTypes($legislationJurisdiction, $types); - $this->jurisdiction = $jurisdiction; + $this->legislationJurisdiction = $legislationJurisdiction; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CategoryCode|string */ - public function getLegislationIdentifier() + public function getLegislationType() { - return $this->legislationIdentifier; + return $this->legislationType; } /** - * @param string $legislationIdentifier + * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $legislationType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationIdentifier($legislationIdentifier) + public function setLegislationType($legislationType) { $types = [ + "\OpenActive\Models\SchemaOrg\CategoryCode", "string", ]; - $legislationIdentifier = self::checkTypes($legislationIdentifier, $types); + $legislationType = self::checkTypes($legislationType, $types); - $this->legislationIdentifier = $legislationIdentifier; + $this->legislationType = $legislationType; } /** - * @return \OpenActive\Models\SchemaOrg\Legislation|string + * @return string|\OpenActive\Models\SchemaOrg\AdministrativeArea */ - public function getLegislationChanges() + public function getJurisdiction() { - return $this->legislationChanges; + return $this->jurisdiction; } /** - * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationChanges + * @param string|\OpenActive\Models\SchemaOrg\AdministrativeArea $jurisdiction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationChanges($legislationChanges) + public function setJurisdiction($jurisdiction) { $types = [ - "\OpenActive\Models\SchemaOrg\Legislation", "string", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", ]; - $legislationChanges = self::checkTypes($legislationChanges, $types); + $jurisdiction = self::checkTypes($jurisdiction, $types); - $this->legislationChanges = $legislationChanges; + $this->jurisdiction = $jurisdiction; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return Date|null */ - public function getLegislationResponsible() + public function getLegislationDateVersion() { - return $this->legislationResponsible; + return $this->legislationDateVersion; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $legislationResponsible + * @param Date|null $legislationDateVersion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationResponsible($legislationResponsible) + public function setLegislationDateVersion($legislationDateVersion) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "null", ]; - $legislationResponsible = self::checkTypes($legislationResponsible, $types); + $legislationDateVersion = self::checkTypes($legislationDateVersion, $types); - $this->legislationResponsible = $legislationResponsible; + $this->legislationDateVersion = $legislationDateVersion; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationJurisdiction() + public function getLegislationTransposes() { - return $this->legislationJurisdiction; + return $this->legislationTransposes; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $legislationJurisdiction + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationTransposes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationJurisdiction($legislationJurisdiction) + public function setLegislationTransposes($legislationTransposes) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationJurisdiction = self::checkTypes($legislationJurisdiction, $types); + $legislationTransposes = self::checkTypes($legislationTransposes, $types); - $this->legislationJurisdiction = $legislationJurisdiction; + $this->legislationTransposes = $legislationTransposes; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationDate() + public function getLegislationApplies() { - return $this->legislationDate; + return $this->legislationApplies; } /** - * @param Date|null $legislationDate + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationApplies * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationDate($legislationDate) + public function setLegislationApplies($legislationApplies) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Legislation", + "string", ]; - $legislationDate = self::checkTypes($legislationDate, $types); + $legislationApplies = self::checkTypes($legislationApplies, $types); - $this->legislationDate = $legislationDate; + $this->legislationApplies = $legislationApplies; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getLegislationPassedBy() + public function getLegislationIdentifier() { - return $this->legislationPassedBy; + return $this->legislationIdentifier; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $legislationPassedBy + * @param string $legislationIdentifier * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationPassedBy($legislationPassedBy) + public function setLegislationIdentifier($legislationIdentifier) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $legislationPassedBy = self::checkTypes($legislationPassedBy, $types); + $legislationIdentifier = self::checkTypes($legislationIdentifier, $types); - $this->legislationPassedBy = $legislationPassedBy; + $this->legislationIdentifier = $legislationIdentifier; } /** - * @return \OpenActive\Models\SchemaOrg\Legislation|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getLegislationConsolidates() + public function getLegislationResponsible() { - return $this->legislationConsolidates; + return $this->legislationResponsible; } /** - * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationConsolidates + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $legislationResponsible * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationConsolidates($legislationConsolidates) + public function setLegislationResponsible($legislationResponsible) { $types = [ - "\OpenActive\Models\SchemaOrg\Legislation", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $legislationConsolidates = self::checkTypes($legislationConsolidates, $types); + $legislationResponsible = self::checkTypes($legislationResponsible, $types); - $this->legislationConsolidates = $legislationConsolidates; + $this->legislationResponsible = $legislationResponsible; } /** * @return \OpenActive\Models\SchemaOrg\Legislation|string */ - public function getLegislationApplies() + public function getLegislationConsolidates() { - return $this->legislationApplies; + return $this->legislationConsolidates; } /** - * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationApplies + * @param \OpenActive\Models\SchemaOrg\Legislation|string $legislationConsolidates * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationApplies($legislationApplies) + public function setLegislationConsolidates($legislationConsolidates) { $types = [ "\OpenActive\Models\SchemaOrg\Legislation", "string", ]; - $legislationApplies = self::checkTypes($legislationApplies, $types); + $legislationConsolidates = self::checkTypes($legislationConsolidates, $types); - $this->legislationApplies = $legislationApplies; + $this->legislationConsolidates = $legislationConsolidates; } /** * @return Date|null */ - public function getLegislationDateVersion() + public function getLegislationDate() { - return $this->legislationDateVersion; + return $this->legislationDate; } /** - * @param Date|null $legislationDateVersion + * @param Date|null $legislationDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegislationDateVersion($legislationDateVersion) + public function setLegislationDate($legislationDate) { $types = [ "Date", "null", ]; - $legislationDateVersion = self::checkTypes($legislationDateVersion, $types); + $legislationDate = self::checkTypes($legislationDate, $types); - $this->legislationDateVersion = $legislationDateVersion; + $this->legislationDate = $legislationDate; } } diff --git a/src/Models/SchemaOrg/ListItem.php b/src/Models/SchemaOrg/ListItem.php index ac5d7ffd..34514940 100644 --- a/src/Models/SchemaOrg/ListItem.php +++ b/src/Models/SchemaOrg/ListItem.php @@ -17,146 +17,146 @@ public static function getType() public static function fieldList() { $fields = [ - "position" => "position", - "nextItem" => "nextItem", "item" => "item", + "position" => "position", "previousItem" => "previousItem", + "nextItem" => "nextItem", ]; return array_merge(parent::fieldList(), $fields); } /** - * The position of an item in a series or sequence of items. + * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists'). * * - * @var string|int|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $position; + protected $item; /** - * A link to the ListItem that follows the current one. + * The position of an item in a series or sequence of items. * * - * @var \OpenActive\Models\SchemaOrg\ListItem|string + * @var string|int|null */ - protected $nextItem; + protected $position; /** - * An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists')’. + * A link to the ListItem that precedes the current one. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\ListItem|string */ - protected $item; + protected $previousItem; /** - * A link to the ListItem that preceeds the current one. + * A link to the ListItem that follows the current one. * * * @var \OpenActive\Models\SchemaOrg\ListItem|string */ - protected $previousItem; + protected $nextItem; /** - * @return string|int|null + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getPosition() + public function getItem() { - return $this->position; + return $this->item; } /** - * @param string|int|null $position + * @param \OpenActive\Models\SchemaOrg\Thing|string $item * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPosition($position) + public function setItem($item) { $types = [ + "\OpenActive\Models\SchemaOrg\Thing", "string", - "int", - "null", ]; - $position = self::checkTypes($position, $types); + $item = self::checkTypes($item, $types); - $this->position = $position; + $this->item = $item; } /** - * @return \OpenActive\Models\SchemaOrg\ListItem|string + * @return string|int|null */ - public function getNextItem() + public function getPosition() { - return $this->nextItem; + return $this->position; } /** - * @param \OpenActive\Models\SchemaOrg\ListItem|string $nextItem + * @param string|int|null $position * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNextItem($nextItem) + public function setPosition($position) { $types = [ - "\OpenActive\Models\SchemaOrg\ListItem", "string", + "int", + "null", ]; - $nextItem = self::checkTypes($nextItem, $types); + $position = self::checkTypes($position, $types); - $this->nextItem = $nextItem; + $this->position = $position; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\ListItem|string */ - public function getItem() + public function getPreviousItem() { - return $this->item; + return $this->previousItem; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $item + * @param \OpenActive\Models\SchemaOrg\ListItem|string $previousItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItem($item) + public function setPreviousItem($previousItem) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\ListItem", "string", ]; - $item = self::checkTypes($item, $types); + $previousItem = self::checkTypes($previousItem, $types); - $this->item = $item; + $this->previousItem = $previousItem; } /** * @return \OpenActive\Models\SchemaOrg\ListItem|string */ - public function getPreviousItem() + public function getNextItem() { - return $this->previousItem; + return $this->nextItem; } /** - * @param \OpenActive\Models\SchemaOrg\ListItem|string $previousItem + * @param \OpenActive\Models\SchemaOrg\ListItem|string $nextItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPreviousItem($previousItem) + public function setNextItem($nextItem) { $types = [ "\OpenActive\Models\SchemaOrg\ListItem", "string", ]; - $previousItem = self::checkTypes($previousItem, $types); + $nextItem = self::checkTypes($nextItem, $types); - $this->previousItem = $previousItem; + $this->nextItem = $nextItem; } } diff --git a/src/Models/SchemaOrg/LiveBlogPosting.php b/src/Models/SchemaOrg/LiveBlogPosting.php index 2c6d2ebf..80c5f7e3 100644 --- a/src/Models/SchemaOrg/LiveBlogPosting.php +++ b/src/Models/SchemaOrg/LiveBlogPosting.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "coverageEndTime" => "coverageEndTime", - "coverageStartTime" => "coverageStartTime", "liveBlogUpdate" => "liveBlogUpdate", + "coverageStartTime" => "coverageStartTime", ]; return array_merge(parent::fieldList(), $fields); @@ -34,20 +34,20 @@ public static function fieldList() { protected $coverageEndTime; /** - * The time when the live blog will begin covering the Event. Note that coverage may begin before the Event's start time. The LiveBlogPosting may also be created before coverage begins. + * An update to the LiveBlog. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\BlogPosting|string */ - protected $coverageStartTime; + protected $liveBlogUpdate; /** - * An update to the LiveBlog. + * The time when the live blog will begin covering the Event. Note that coverage may begin before the Event's start time. The LiveBlogPosting may also be created before coverage begins. * * - * @var \OpenActive\Models\SchemaOrg\BlogPosting|string + * @var DateTime|null */ - protected $liveBlogUpdate; + protected $coverageStartTime; /** * @return DateTime|null @@ -75,53 +75,53 @@ public function setCoverageEndTime($coverageEndTime) } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\BlogPosting|string */ - public function getCoverageStartTime() + public function getLiveBlogUpdate() { - return $this->coverageStartTime; + return $this->liveBlogUpdate; } /** - * @param DateTime|null $coverageStartTime + * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $liveBlogUpdate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCoverageStartTime($coverageStartTime) + public function setLiveBlogUpdate($liveBlogUpdate) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\BlogPosting", + "string", ]; - $coverageStartTime = self::checkTypes($coverageStartTime, $types); + $liveBlogUpdate = self::checkTypes($liveBlogUpdate, $types); - $this->coverageStartTime = $coverageStartTime; + $this->liveBlogUpdate = $liveBlogUpdate; } /** - * @return \OpenActive\Models\SchemaOrg\BlogPosting|string + * @return DateTime|null */ - public function getLiveBlogUpdate() + public function getCoverageStartTime() { - return $this->liveBlogUpdate; + return $this->coverageStartTime; } /** - * @param \OpenActive\Models\SchemaOrg\BlogPosting|string $liveBlogUpdate + * @param DateTime|null $coverageStartTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLiveBlogUpdate($liveBlogUpdate) + public function setCoverageStartTime($coverageStartTime) { $types = [ - "\OpenActive\Models\SchemaOrg\BlogPosting", - "string", + "DateTime", + "null", ]; - $liveBlogUpdate = self::checkTypes($liveBlogUpdate, $types); + $coverageStartTime = self::checkTypes($coverageStartTime, $types); - $this->liveBlogUpdate = $liveBlogUpdate; + $this->coverageStartTime = $coverageStartTime; } } diff --git a/src/Models/SchemaOrg/LoanOrCredit.php b/src/Models/SchemaOrg/LoanOrCredit.php index 2d6710bb..df981902 100644 --- a/src/Models/SchemaOrg/LoanOrCredit.php +++ b/src/Models/SchemaOrg/LoanOrCredit.php @@ -17,13 +17,13 @@ public static function getType() public static function fieldList() { $fields = [ - "renegotiableLoan" => "renegotiableLoan", - "loanType" => "loanType", - "recourseLoan" => "recourseLoan", + "currency" => "currency", "loanTerm" => "loanTerm", - "gracePeriod" => "gracePeriod", + "loanType" => "loanType", "requiredCollateral" => "requiredCollateral", - "currency" => "currency", + "renegotiableLoan" => "renegotiableLoan", + "gracePeriod" => "gracePeriod", + "recourseLoan" => "recourseLoan", "amount" => "amount", "loanRepaymentForm" => "loanRepaymentForm", ]; @@ -32,12 +32,20 @@ public static function fieldList() { } /** - * Whether the terms for payment of interest can be renegotiated during the life of the loan. + * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * - * @var bool|null + * @var string */ - protected $renegotiableLoan; + protected $currency; + + /** + * The duration of the loan or credit agreement. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $loanTerm; /** * The type of a loan or credit. @@ -48,20 +56,20 @@ public static function fieldList() { protected $loanType; /** - * The only way you get the money back in the event of default is the security. Recourse is where you still have the opportunity to go back to the borrower for the rest of the money. + * Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.) * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $recourseLoan; + protected $requiredCollateral; /** - * The duration of the loan or credit agreement. + * Whether the terms for payment of interest can be renegotiated during the life of the loan. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var bool|null */ - protected $loanTerm; + protected $renegotiableLoan; /** * The period of time after any due date that the borrower has to fulfil its obligations before a default (failure to pay) is deemed to have occurred. @@ -72,26 +80,18 @@ public static function fieldList() { protected $gracePeriod; /** - * Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.) - * - * - * @var string|\OpenActive\Models\SchemaOrg\Thing - */ - protected $requiredCollateral; - - /** - * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The only way you get the money back in the event of default is the security. Recourse is where you still have the opportunity to go back to the borrower for the rest of the money. * * - * @var string + * @var bool|null */ - protected $currency; + protected $recourseLoan; /** * The amount of money. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ protected $amount; @@ -104,181 +104,181 @@ public static function fieldList() { protected $loanRepaymentForm; /** - * @return bool|null + * @return string */ - public function getRenegotiableLoan() + public function getCurrency() { - return $this->renegotiableLoan; + return $this->currency; } /** - * @param bool|null $renegotiableLoan + * @param string $currency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRenegotiableLoan($renegotiableLoan) + public function setCurrency($currency) { $types = [ - "bool", - "null", + "string", ]; - $renegotiableLoan = self::checkTypes($renegotiableLoan, $types); + $currency = self::checkTypes($currency, $types); - $this->renegotiableLoan = $renegotiableLoan; + $this->currency = $currency; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getLoanType() + public function getLoanTerm() { - return $this->loanType; + return $this->loanTerm; } /** - * @param string $loanType + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $loanTerm * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLoanType($loanType) + public function setLoanTerm($loanTerm) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $loanType = self::checkTypes($loanType, $types); + $loanTerm = self::checkTypes($loanTerm, $types); - $this->loanType = $loanType; + $this->loanTerm = $loanTerm; } /** - * @return bool|null + * @return string */ - public function getRecourseLoan() + public function getLoanType() { - return $this->recourseLoan; + return $this->loanType; } /** - * @param bool|null $recourseLoan + * @param string $loanType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecourseLoan($recourseLoan) + public function setLoanType($loanType) { $types = [ - "bool", - "null", + "string", ]; - $recourseLoan = self::checkTypes($recourseLoan, $types); + $loanType = self::checkTypes($loanType, $types); - $this->recourseLoan = $recourseLoan; + $this->loanType = $loanType; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getLoanTerm() + public function getRequiredCollateral() { - return $this->loanTerm; + return $this->requiredCollateral; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $loanTerm + * @param \OpenActive\Models\SchemaOrg\Thing|string $requiredCollateral * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLoanTerm($loanTerm) + public function setRequiredCollateral($requiredCollateral) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $loanTerm = self::checkTypes($loanTerm, $types); + $requiredCollateral = self::checkTypes($requiredCollateral, $types); - $this->loanTerm = $loanTerm; + $this->requiredCollateral = $requiredCollateral; } /** - * @return DateInterval|string|null + * @return bool|null */ - public function getGracePeriod() + public function getRenegotiableLoan() { - return $this->gracePeriod; + return $this->renegotiableLoan; } /** - * @param DateInterval|string|null $gracePeriod + * @param bool|null $renegotiableLoan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGracePeriod($gracePeriod) + public function setRenegotiableLoan($renegotiableLoan) { $types = [ - "DateInterval", - "string", + "bool", "null", ]; - $gracePeriod = self::checkTypes($gracePeriod, $types); + $renegotiableLoan = self::checkTypes($renegotiableLoan, $types); - $this->gracePeriod = $gracePeriod; + $this->renegotiableLoan = $renegotiableLoan; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return DateInterval|string|null */ - public function getRequiredCollateral() + public function getGracePeriod() { - return $this->requiredCollateral; + return $this->gracePeriod; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $requiredCollateral + * @param DateInterval|string|null $gracePeriod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiredCollateral($requiredCollateral) + public function setGracePeriod($gracePeriod) { $types = [ + "DateInterval", "string", - "\OpenActive\Models\SchemaOrg\Thing", + "null", ]; - $requiredCollateral = self::checkTypes($requiredCollateral, $types); + $gracePeriod = self::checkTypes($gracePeriod, $types); - $this->requiredCollateral = $requiredCollateral; + $this->gracePeriod = $gracePeriod; } /** - * @return string + * @return bool|null */ - public function getCurrency() + public function getRecourseLoan() { - return $this->currency; + return $this->recourseLoan; } /** - * @param string $currency + * @param bool|null $recourseLoan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCurrency($currency) + public function setRecourseLoan($recourseLoan) { $types = [ - "string", + "bool", + "null", ]; - $currency = self::checkTypes($currency, $types); + $recourseLoan = self::checkTypes($recourseLoan, $types); - $this->currency = $currency; + $this->recourseLoan = $recourseLoan; } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ public function getAmount() { @@ -286,16 +286,16 @@ public function getAmount() } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAmount($amount) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "Number", "null", ]; diff --git a/src/Models/SchemaOrg/LocalBusiness.php b/src/Models/SchemaOrg/LocalBusiness.php index 5dc0f3df..a4282c36 100644 --- a/src/Models/SchemaOrg/LocalBusiness.php +++ b/src/Models/SchemaOrg/LocalBusiness.php @@ -5,7 +5,7 @@ /** * */ -class LocalBusiness extends \OpenActive\Models\SchemaOrg\Organization +class LocalBusiness extends \OpenActive\Models\SchemaOrg\Place { /** * @return string[]|null @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "branchOf" => "branchOf", + "paymentAccepted" => "paymentAccepted", "openingHours" => "openingHours", "priceRange" => "priceRange", - "paymentAccepted" => "paymentAccepted", "currenciesAccepted" => "currenciesAccepted", ]; @@ -28,7 +28,7 @@ public static function fieldList() { } /** - * The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical)[[branch]]. + * The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]]. * * * @var \OpenActive\Models\SchemaOrg\Organization|string @@ -36,31 +36,31 @@ public static function fieldList() { protected $branchOf; /** - * The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.\n\n* Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```.\n* Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. \n* Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.\n* If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. + * Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc. * * * @var string */ - protected $openingHours; + protected $paymentAccepted; /** - * The price range of the business, for example ```$$$```. + * The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'.\n\n* Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```.\n* Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. \n* Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>.\n* If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>. * * * @var string */ - protected $priceRange; + protected $openingHours; /** - * Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc. + * The price range of the business, for example ```$$$```. * * * @var string */ - protected $paymentAccepted; + protected $priceRange; /** - * The currency accepted.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The currency accepted.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * * @var string @@ -95,73 +95,73 @@ public function setBranchOf($branchOf) /** * @return string */ - public function getOpeningHours() + public function getPaymentAccepted() { - return $this->openingHours; + return $this->paymentAccepted; } /** - * @param string $openingHours + * @param string $paymentAccepted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOpeningHours($openingHours) + public function setPaymentAccepted($paymentAccepted) { $types = [ "string", ]; - $openingHours = self::checkTypes($openingHours, $types); + $paymentAccepted = self::checkTypes($paymentAccepted, $types); - $this->openingHours = $openingHours; + $this->paymentAccepted = $paymentAccepted; } /** * @return string */ - public function getPriceRange() + public function getOpeningHours() { - return $this->priceRange; + return $this->openingHours; } /** - * @param string $priceRange + * @param string $openingHours * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceRange($priceRange) + public function setOpeningHours($openingHours) { $types = [ "string", ]; - $priceRange = self::checkTypes($priceRange, $types); + $openingHours = self::checkTypes($openingHours, $types); - $this->priceRange = $priceRange; + $this->openingHours = $openingHours; } /** * @return string */ - public function getPaymentAccepted() + public function getPriceRange() { - return $this->paymentAccepted; + return $this->priceRange; } /** - * @param string $paymentAccepted + * @param string $priceRange * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentAccepted($paymentAccepted) + public function setPriceRange($priceRange) { $types = [ "string", ]; - $paymentAccepted = self::checkTypes($paymentAccepted, $types); + $priceRange = self::checkTypes($priceRange, $types); - $this->paymentAccepted = $paymentAccepted; + $this->priceRange = $priceRange; } /** diff --git a/src/Models/SchemaOrg/LocationFeatureSpecification.php b/src/Models/SchemaOrg/LocationFeatureSpecification.php index 95978749..6f190875 100644 --- a/src/Models/SchemaOrg/LocationFeatureSpecification.php +++ b/src/Models/SchemaOrg/LocationFeatureSpecification.php @@ -17,14 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ + "validThrough" => "validThrough", "hoursAvailable" => "hoursAvailable", "validFrom" => "validFrom", - "validThrough" => "validThrough", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. + * + * + * @var Date|DateTime|null + */ + protected $validThrough; + /** * The hours during which this service or contact is available. * @@ -42,12 +50,30 @@ public static function fieldList() { protected $validFrom; /** - * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. - * - * - * @var Date|DateTime|null + * @return Date|DateTime|null */ - protected $validThrough; + public function getValidThrough() + { + return $this->validThrough; + } + + /** + * @param Date|DateTime|null $validThrough + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValidThrough($validThrough) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $validThrough = self::checkTypes($validThrough, $types); + + $this->validThrough = $validThrough; + } /** * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string @@ -100,30 +126,4 @@ public function setValidFrom($validFrom) $this->validFrom = $validFrom; } - /** - * @return Date|DateTime|null - */ - public function getValidThrough() - { - return $this->validThrough; - } - - /** - * @param Date|DateTime|null $validThrough - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setValidThrough($validThrough) - { - $types = [ - "Date", - "DateTime", - "null", - ]; - - $validThrough = self::checkTypes($validThrough, $types); - - $this->validThrough = $validThrough; - } - } diff --git a/src/Models/SchemaOrg/LodgingBusiness.php b/src/Models/SchemaOrg/LodgingBusiness.php index af55db3b..b97886ef 100644 --- a/src/Models/SchemaOrg/LodgingBusiness.php +++ b/src/Models/SchemaOrg/LodgingBusiness.php @@ -18,13 +18,13 @@ public static function getType() public static function fieldList() { $fields = [ "numberOfRooms" => "numberOfRooms", - "audience" => "audience", - "starRating" => "starRating", - "amenityFeature" => "amenityFeature", - "availableLanguage" => "availableLanguage", - "checkoutTime" => "checkoutTime", "checkinTime" => "checkinTime", + "availableLanguage" => "availableLanguage", + "amenityFeature" => "amenityFeature", "petsAllowed" => "petsAllowed", + "starRating" => "starRating", + "checkoutTime" => "checkoutTime", + "audience" => "audience", ]; return array_merge(parent::fieldList(), $fields); @@ -40,20 +40,20 @@ public static function fieldList() { protected $numberOfRooms; /** - * An intended audience, i.e. a group for whom something was created. + * The earliest someone may check into a lodging establishment. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var DateTime|string|null */ - protected $audience; + protected $checkinTime; /** - * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars). + * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]]. * * - * @var \OpenActive\Models\SchemaOrg\Rating|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $starRating; + protected $availableLanguage; /** * An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs. @@ -64,36 +64,36 @@ public static function fieldList() { protected $amenityFeature; /** - * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]] + * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var bool|string|null */ - protected $availableLanguage; + protected $petsAllowed; /** - * The latest someone may check out of a lodging establishment. + * An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars). * * - * @var DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\Rating|string */ - protected $checkoutTime; + protected $starRating; /** - * The earliest someone may check into a lodging establishment. + * The latest someone may check out of a lodging establishment. * * * @var DateTime|string|null */ - protected $checkinTime; + protected $checkoutTime; /** - * Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value. + * An intended audience, i.e. a group for whom something was created. * * - * @var bool|string|null + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $petsAllowed; + protected $audience; /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null @@ -123,53 +123,54 @@ public function setNumberOfRooms($numberOfRooms) } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return DateTime|string|null */ - public function getAudience() + public function getCheckinTime() { - return $this->audience; + return $this->checkinTime; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param DateTime|string|null $checkinTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setCheckinTime($checkinTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", - "string", + "DateTime", + "Time", + "null", ]; - $audience = self::checkTypes($audience, $types); + $checkinTime = self::checkTypes($checkinTime, $types); - $this->audience = $audience; + $this->checkinTime = $checkinTime; } /** - * @return \OpenActive\Models\SchemaOrg\Rating|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getStarRating() + public function getAvailableLanguage() { - return $this->starRating; + return $this->availableLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating + * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStarRating($starRating) + public function setAvailableLanguage($availableLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Rating", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $starRating = self::checkTypes($starRating, $types); + $availableLanguage = self::checkTypes($availableLanguage, $types); - $this->starRating = $starRating; + $this->availableLanguage = $availableLanguage; } /** @@ -198,70 +199,70 @@ public function setAmenityFeature($amenityFeature) } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return bool|string|null */ - public function getAvailableLanguage() + public function getPetsAllowed() { - return $this->availableLanguage; + return $this->petsAllowed; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage + * @param bool|string|null $petsAllowed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableLanguage($availableLanguage) + public function setPetsAllowed($petsAllowed) { $types = [ + "bool", "string", - "\OpenActive\Models\SchemaOrg\Language", + "null", ]; - $availableLanguage = self::checkTypes($availableLanguage, $types); + $petsAllowed = self::checkTypes($petsAllowed, $types); - $this->availableLanguage = $availableLanguage; + $this->petsAllowed = $petsAllowed; } /** - * @return DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Rating|string */ - public function getCheckoutTime() + public function getStarRating() { - return $this->checkoutTime; + return $this->starRating; } /** - * @param DateTime|string|null $checkoutTime + * @param \OpenActive\Models\SchemaOrg\Rating|string $starRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCheckoutTime($checkoutTime) + public function setStarRating($starRating) { $types = [ - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\Rating", + "string", ]; - $checkoutTime = self::checkTypes($checkoutTime, $types); + $starRating = self::checkTypes($starRating, $types); - $this->checkoutTime = $checkoutTime; + $this->starRating = $starRating; } /** * @return DateTime|string|null */ - public function getCheckinTime() + public function getCheckoutTime() { - return $this->checkinTime; + return $this->checkoutTime; } /** - * @param DateTime|string|null $checkinTime + * @param DateTime|string|null $checkoutTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCheckinTime($checkinTime) + public function setCheckoutTime($checkoutTime) { $types = [ "DateTime", @@ -269,35 +270,34 @@ public function setCheckinTime($checkinTime) "null", ]; - $checkinTime = self::checkTypes($checkinTime, $types); + $checkoutTime = self::checkTypes($checkoutTime, $types); - $this->checkinTime = $checkinTime; + $this->checkoutTime = $checkoutTime; } /** - * @return bool|string|null + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getPetsAllowed() + public function getAudience() { - return $this->petsAllowed; + return $this->audience; } /** - * @param bool|string|null $petsAllowed + * @param \OpenActive\Models\SchemaOrg\Audience|string $audience * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPetsAllowed($petsAllowed) + public function setAudience($audience) { $types = [ - "bool", + "\OpenActive\Models\SchemaOrg\Audience", "string", - "null", ]; - $petsAllowed = self::checkTypes($petsAllowed, $types); + $audience = self::checkTypes($audience, $types); - $this->petsAllowed = $petsAllowed; + $this->audience = $audience; } } diff --git a/src/Models/SchemaOrg/LodgingReservation.php b/src/Models/SchemaOrg/LodgingReservation.php index bd520b20..ae49d516 100644 --- a/src/Models/SchemaOrg/LodgingReservation.php +++ b/src/Models/SchemaOrg/LodgingReservation.php @@ -17,182 +17,185 @@ public static function getType() public static function fieldList() { $fields = [ - "lodgingUnitType" => "lodgingUnitType", - "lodgingUnitDescription" => "lodgingUnitDescription", - "checkoutTime" => "checkoutTime", - "numAdults" => "numAdults", "checkinTime" => "checkinTime", "numChildren" => "numChildren", + "numAdults" => "numAdults", + "lodgingUnitType" => "lodgingUnitType", + "checkoutTime" => "checkoutTime", + "lodgingUnitDescription" => "lodgingUnitDescription", ]; return array_merge(parent::fieldList(), $fields); } /** - * Textual description of the unit type (including suite vs. room, size of bed, etc.). + * The earliest someone may check into a lodging establishment. * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var DateTime|string|null */ - protected $lodgingUnitType; + protected $checkinTime; /** - * A full description of the lodging unit. + * The number of children staying in the unit. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null */ - protected $lodgingUnitDescription; + protected $numChildren; /** - * The latest someone may check out of a lodging establishment. + * The number of adults staying in the unit. * * - * @var DateTime|string|null + * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $checkoutTime; + protected $numAdults; /** - * The number of adults staying in the unit. + * Textual description of the unit type (including suite vs. room, size of bed, etc.). * * - * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - protected $numAdults; + protected $lodgingUnitType; /** - * The earliest someone may check into a lodging establishment. + * The latest someone may check out of a lodging establishment. * * * @var DateTime|string|null */ - protected $checkinTime; + protected $checkoutTime; /** - * The number of children staying in the unit. + * A full description of the lodging unit. * * - * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var string */ - protected $numChildren; + protected $lodgingUnitDescription; /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return DateTime|string|null */ - public function getLodgingUnitType() + public function getCheckinTime() { - return $this->lodgingUnitType; + return $this->checkinTime; } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $lodgingUnitType + * @param DateTime|string|null $checkinTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLodgingUnitType($lodgingUnitType) + public function setCheckinTime($checkinTime) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "string", + "DateTime", + "Time", "null", ]; - $lodgingUnitType = self::checkTypes($lodgingUnitType, $types); + $checkinTime = self::checkTypes($checkinTime, $types); - $this->lodgingUnitType = $lodgingUnitType; + $this->checkinTime = $checkinTime; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null */ - public function getLodgingUnitDescription() + public function getNumChildren() { - return $this->lodgingUnitDescription; + return $this->numChildren; } /** - * @param string $lodgingUnitDescription + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|int|null $numChildren * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLodgingUnitDescription($lodgingUnitDescription) + public function setNumChildren($numChildren) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "int", + "null", ]; - $lodgingUnitDescription = self::checkTypes($lodgingUnitDescription, $types); + $numChildren = self::checkTypes($numChildren, $types); - $this->lodgingUnitDescription = $lodgingUnitDescription; + $this->numChildren = $numChildren; } /** - * @return DateTime|string|null + * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getCheckoutTime() + public function getNumAdults() { - return $this->checkoutTime; + return $this->numAdults; } /** - * @param DateTime|string|null $checkoutTime + * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numAdults * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCheckoutTime($checkoutTime) + public function setNumAdults($numAdults) { $types = [ - "DateTime", - "Time", + "int", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $checkoutTime = self::checkTypes($checkoutTime, $types); + $numAdults = self::checkTypes($numAdults, $types); - $this->checkoutTime = $checkoutTime; + $this->numAdults = $numAdults; } /** - * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - public function getNumAdults() + public function getLodgingUnitType() { - return $this->numAdults; + return $this->lodgingUnitType; } /** - * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numAdults + * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $lodgingUnitType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumAdults($numAdults) + public function setLodgingUnitType($lodgingUnitType) { $types = [ - "int", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "null", ]; - $numAdults = self::checkTypes($numAdults, $types); + $lodgingUnitType = self::checkTypes($lodgingUnitType, $types); - $this->numAdults = $numAdults; + $this->lodgingUnitType = $lodgingUnitType; } /** * @return DateTime|string|null */ - public function getCheckinTime() + public function getCheckoutTime() { - return $this->checkinTime; + return $this->checkoutTime; } /** - * @param DateTime|string|null $checkinTime + * @param DateTime|string|null $checkoutTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCheckinTime($checkinTime) + public function setCheckoutTime($checkoutTime) { $types = [ "DateTime", @@ -200,36 +203,33 @@ public function setCheckinTime($checkinTime) "null", ]; - $checkinTime = self::checkTypes($checkinTime, $types); + $checkoutTime = self::checkTypes($checkoutTime, $types); - $this->checkinTime = $checkinTime; + $this->checkoutTime = $checkoutTime; } /** - * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return string */ - public function getNumChildren() + public function getLodgingUnitDescription() { - return $this->numChildren; + return $this->lodgingUnitDescription; } /** - * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numChildren + * @param string $lodgingUnitDescription * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumChildren($numChildren) + public function setLodgingUnitDescription($lodgingUnitDescription) { $types = [ - "int", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $numChildren = self::checkTypes($numChildren, $types); + $lodgingUnitDescription = self::checkTypes($lodgingUnitDescription, $types); - $this->numChildren = $numChildren; + $this->lodgingUnitDescription = $lodgingUnitDescription; } } diff --git a/src/Models/SchemaOrg/LymphaticVessel.php b/src/Models/SchemaOrg/LymphaticVessel.php index de4fecdf..f2bdde69 100644 --- a/src/Models/SchemaOrg/LymphaticVessel.php +++ b/src/Models/SchemaOrg/LymphaticVessel.php @@ -17,112 +17,112 @@ public static function getType() public static function fieldList() { $fields = [ + "originatesFrom" => "originatesFrom", "runsTo" => "runsTo", "regionDrained" => "regionDrained", - "originatesFrom" => "originatesFrom", ]; return array_merge(parent::fieldList(), $fields); } /** - * The vasculature the lymphatic structure runs, or efferents, to. + * The vasculature the lymphatic structure originates, or afferents, from. * * * @var \OpenActive\Models\SchemaOrg\Vessel|string */ - protected $runsTo; + protected $originatesFrom; /** - * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ. + * The vasculature the lymphatic structure runs, or efferents, to. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\Vessel|string */ - protected $regionDrained; + protected $runsTo; /** - * The vasculature the lymphatic structure originates, or afferents, from. + * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ. * * - * @var \OpenActive\Models\SchemaOrg\Vessel|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - protected $originatesFrom; + protected $regionDrained; /** * @return \OpenActive\Models\SchemaOrg\Vessel|string */ - public function getRunsTo() + public function getOriginatesFrom() { - return $this->runsTo; + return $this->originatesFrom; } /** - * @param \OpenActive\Models\SchemaOrg\Vessel|string $runsTo + * @param \OpenActive\Models\SchemaOrg\Vessel|string $originatesFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRunsTo($runsTo) + public function setOriginatesFrom($originatesFrom) { $types = [ "\OpenActive\Models\SchemaOrg\Vessel", "string", ]; - $runsTo = self::checkTypes($runsTo, $types); + $originatesFrom = self::checkTypes($originatesFrom, $types); - $this->runsTo = $runsTo; + $this->originatesFrom = $originatesFrom; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\Vessel|string */ - public function getRegionDrained() + public function getRunsTo() { - return $this->regionDrained; + return $this->runsTo; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained + * @param \OpenActive\Models\SchemaOrg\Vessel|string $runsTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRegionDrained($regionDrained) + public function setRunsTo($runsTo) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\Vessel", "string", ]; - $regionDrained = self::checkTypes($regionDrained, $types); + $runsTo = self::checkTypes($runsTo, $types); - $this->regionDrained = $regionDrained; + $this->runsTo = $runsTo; } /** - * @return \OpenActive\Models\SchemaOrg\Vessel|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - public function getOriginatesFrom() + public function getRegionDrained() { - return $this->originatesFrom; + return $this->regionDrained; } /** - * @param \OpenActive\Models\SchemaOrg\Vessel|string $originatesFrom + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $regionDrained * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOriginatesFrom($originatesFrom) + public function setRegionDrained($regionDrained) { $types = [ - "\OpenActive\Models\SchemaOrg\Vessel", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; - $originatesFrom = self::checkTypes($originatesFrom, $types); + $regionDrained = self::checkTypes($regionDrained, $types); - $this->originatesFrom = $originatesFrom; + $this->regionDrained = $regionDrained; } } diff --git a/src/Models/SchemaOrg/MediaObject.php b/src/Models/SchemaOrg/MediaObject.php index 959cbe73..e1710e44 100644 --- a/src/Models/SchemaOrg/MediaObject.php +++ b/src/Models/SchemaOrg/MediaObject.php @@ -17,130 +17,130 @@ public static function getType() public static function fieldList() { $fields = [ - "contentSize" => "contentSize", - "contentUrl" => "contentUrl", - "width" => "width", - "height" => "height", - "regionsAllowed" => "regionsAllowed", - "startTime" => "startTime", - "associatedArticle" => "associatedArticle", - "ineligibleRegion" => "ineligibleRegion", - "requiresSubscription" => "requiresSubscription", - "playerType" => "playerType", - "encodesCreativeWork" => "encodesCreativeWork", - "duration" => "duration", - "encodingFormat" => "encodingFormat", - "uploadDate" => "uploadDate", - "embedUrl" => "embedUrl", "bitrate" => "bitrate", + "encodesCreativeWork" => "encodesCreativeWork", + "ineligibleRegion" => "ineligibleRegion", "endTime" => "endTime", "productionCompany" => "productionCompany", - "sha256" => "sha256", "interpretedAsClaim" => "interpretedAsClaim", + "embedUrl" => "embedUrl", + "playerType" => "playerType", + "width" => "width", + "uploadDate" => "uploadDate", + "contentSize" => "contentSize", + "requiresSubscription" => "requiresSubscription", + "encodingFormat" => "encodingFormat", + "startTime" => "startTime", + "height" => "height", + "associatedArticle" => "associatedArticle", + "sha256" => "sha256", + "regionsAllowed" => "regionsAllowed", + "duration" => "duration", + "contentUrl" => "contentUrl", ]; return array_merge(parent::fieldList(), $fields); } /** - * File size in (mega/kilo) bytes. + * The bitrate of the media object. * * * @var string */ - protected $contentSize; + protected $bitrate; /** - * Actual bytes of the media object, for example the image file or video file. + * The CreativeWork encoded by this media object. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $contentUrl; + protected $encodesCreativeWork; /** - * The width of the item. + * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. + * * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - protected $width; + protected $ineligibleRegion; /** - * The height of the item. + * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var DateTime|string|null */ - protected $height; + protected $endTime; /** - * The regions where the media is allowed. If not specified, then it's assumed to be allowed everywhere. Specify the countries in [ISO 3166 format](http://en.wikipedia.org/wiki/ISO_3166). + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $regionsAllowed; + protected $productionCompany; /** - * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]]. * * - * @var DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\Claim|string */ - protected $startTime; + protected $interpretedAsClaim; /** - * A NewsArticle associated with the Media Object. + * A URL pointing to a player for a specific video. In general, this is the information in the ```src``` element of an ```embed``` tag and should not be the same as the content of the ```loc``` tag. * * - * @var \OpenActive\Models\SchemaOrg\NewsArticle|string + * @var string */ - protected $associatedArticle; + protected $embedUrl; /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. - * + * Player type required—for example, Flash or Silverlight. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @var string */ - protected $ineligibleRegion; + protected $playerType; /** - * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no'). + * The width of the item. * * - * @var \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $requiresSubscription; + protected $width; /** - * Player type required—for example, Flash or Silverlight. + * Date (including time if available) when this media object was uploaded to this site. * * - * @var string + * @var Date|DateTime|null */ - protected $playerType; + protected $uploadDate; /** - * The CreativeWork encoded by this media object. + * File size in (mega/kilo)bytes. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string */ - protected $encodesCreativeWork; + protected $contentSize; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no'). * * - * @var DateInterval|string|null + * @var bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null */ - protected $duration; + protected $requiresSubscription; /** - * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)) e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.). + * Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc. * * In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information. * @@ -152,363 +152,361 @@ public static function fieldList() { protected $encodingFormat; /** - * Date when this media object was uploaded to this site. + * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * - * @var Date|null + * @var DateTime|string|null */ - protected $uploadDate; + protected $startTime; /** - * A URL pointing to a player for a specific video. In general, this is the information in the ```src``` element of an ```embed``` tag and should not be the same as the content of the ```loc``` tag. + * The height of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $embedUrl; + protected $height; /** - * The bitrate of the media object. + * A NewsArticle associated with the Media Object. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\NewsArticle|string */ - protected $bitrate; + protected $associatedArticle; /** - * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * The [SHA-2](https://en.wikipedia.org/wiki/SHA-2) SHA256 hash of the content of the item. For example, a zero-length input has value 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'. * * - * @var DateTime|string|null + * @var string */ - protected $endTime; + protected $sha256; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * The regions where the media is allowed. If not specified, then it's assumed to be allowed everywhere. Specify the countries in [ISO 3166 format](http://en.wikipedia.org/wiki/ISO_3166). * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $productionCompany; + protected $regionsAllowed; /** - * The [SHA-2](https://en.wikipedia.org/wiki/SHA-2) SHA256 hash of the content of the item. For example, a zero-length input has value 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var string + * @var DateInterval|string|null */ - protected $sha256; + protected $duration; /** - * Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]]. + * Actual bytes of the media object, for example the image file or video file. * * - * @var \OpenActive\Models\SchemaOrg\Claim|string + * @var string */ - protected $interpretedAsClaim; + protected $contentUrl; /** * @return string */ - public function getContentSize() + public function getBitrate() { - return $this->contentSize; + return $this->bitrate; } /** - * @param string $contentSize + * @param string $bitrate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContentSize($contentSize) + public function setBitrate($bitrate) { $types = [ "string", ]; - $contentSize = self::checkTypes($contentSize, $types); + $bitrate = self::checkTypes($bitrate, $types); - $this->contentSize = $contentSize; + $this->bitrate = $bitrate; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getContentUrl() + public function getEncodesCreativeWork() { - return $this->contentUrl; + return $this->encodesCreativeWork; } /** - * @param string $contentUrl + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $encodesCreativeWork * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContentUrl($contentUrl) + public function setEncodesCreativeWork($encodesCreativeWork) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $contentUrl = self::checkTypes($contentUrl, $types); + $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types); - $this->contentUrl = $contentUrl; + $this->encodesCreativeWork = $encodesCreativeWork; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - public function getWidth() + public function getIneligibleRegion() { - return $this->width; + return $this->ineligibleRegion; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width + * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWidth($width) + public function setIneligibleRegion($ineligibleRegion) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\Distance", "string", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $width = self::checkTypes($width, $types); + $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - $this->width = $width; + $this->ineligibleRegion = $ineligibleRegion; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return DateTime|string|null */ - public function getHeight() + public function getEndTime() { - return $this->height; + return $this->endTime; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @param DateTime|string|null $endTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeight($height) + public function setEndTime($endTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "DateTime", + "Time", + "null", ]; - $height = self::checkTypes($height, $types); + $endTime = self::checkTypes($endTime, $types); - $this->height = $height; + $this->endTime = $endTime; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getRegionsAllowed() + public function getProductionCompany() { - return $this->regionsAllowed; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $regionsAllowed + * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRegionsAllowed($regionsAllowed) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $regionsAllowed = self::checkTypes($regionsAllowed, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->regionsAllowed = $regionsAllowed; + $this->productionCompany = $productionCompany; } /** - * @return DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Claim|string */ - public function getStartTime() + public function getInterpretedAsClaim() { - return $this->startTime; + return $this->interpretedAsClaim; } /** - * @param DateTime|string|null $startTime + * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartTime($startTime) + public function setInterpretedAsClaim($interpretedAsClaim) { $types = [ - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\Claim", + "string", ]; - $startTime = self::checkTypes($startTime, $types); + $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types); - $this->startTime = $startTime; + $this->interpretedAsClaim = $interpretedAsClaim; } /** - * @return \OpenActive\Models\SchemaOrg\NewsArticle|string + * @return string */ - public function getAssociatedArticle() + public function getEmbedUrl() { - return $this->associatedArticle; + return $this->embedUrl; } /** - * @param \OpenActive\Models\SchemaOrg\NewsArticle|string $associatedArticle + * @param string $embedUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedArticle($associatedArticle) + public function setEmbedUrl($embedUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\NewsArticle", "string", ]; - $associatedArticle = self::checkTypes($associatedArticle, $types); + $embedUrl = self::checkTypes($embedUrl, $types); - $this->associatedArticle = $associatedArticle; + $this->embedUrl = $embedUrl; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @return string */ - public function getIneligibleRegion() + public function getPlayerType() { - return $this->ineligibleRegion; + return $this->playerType; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion + * @param string $playerType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIneligibleRegion($ineligibleRegion) + public function setPlayerType($playerType) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", - "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); + $playerType = self::checkTypes($playerType, $types); - $this->ineligibleRegion = $ineligibleRegion; + $this->playerType = $playerType; } /** - * @return \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getRequiresSubscription() + public function getWidth() { - return $this->requiresSubscription; + return $this->width; } /** - * @param \OpenActive\Models\SchemaOrg\MediaSubscription|bool|string|null $requiresSubscription + * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $width * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequiresSubscription($requiresSubscription) + public function setWidth($width) { $types = [ - "\OpenActive\Models\SchemaOrg\MediaSubscription", - "bool", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $requiresSubscription = self::checkTypes($requiresSubscription, $types); + $width = self::checkTypes($width, $types); - $this->requiresSubscription = $requiresSubscription; + $this->width = $width; } /** - * @return string + * @return Date|DateTime|null */ - public function getPlayerType() + public function getUploadDate() { - return $this->playerType; + return $this->uploadDate; } /** - * @param string $playerType + * @param Date|DateTime|null $uploadDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPlayerType($playerType) + public function setUploadDate($uploadDate) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $playerType = self::checkTypes($playerType, $types); + $uploadDate = self::checkTypes($uploadDate, $types); - $this->playerType = $playerType; + $this->uploadDate = $uploadDate; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getEncodesCreativeWork() + public function getContentSize() { - return $this->encodesCreativeWork; + return $this->contentSize; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $encodesCreativeWork + * @param string $contentSize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEncodesCreativeWork($encodesCreativeWork) + public function setContentSize($contentSize) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $encodesCreativeWork = self::checkTypes($encodesCreativeWork, $types); + $contentSize = self::checkTypes($contentSize, $types); - $this->encodesCreativeWork = $encodesCreativeWork; + $this->contentSize = $contentSize; } /** - * @return DateInterval|string|null + * @return bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null */ - public function getDuration() + public function getRequiresSubscription() { - return $this->duration; + return $this->requiresSubscription; } /** - * @param DateInterval|string|null $duration + * @param bool|\OpenActive\Models\SchemaOrg\MediaSubscription|string|null $requiresSubscription * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setRequiresSubscription($requiresSubscription) { $types = [ - "DateInterval", + "bool", + "\OpenActive\Models\SchemaOrg\MediaSubscription", "string", "null", ]; - $duration = self::checkTypes($duration, $types); + $requiresSubscription = self::checkTypes($requiresSubscription, $types); - $this->duration = $duration; + $this->requiresSubscription = $requiresSubscription; } /** @@ -536,176 +534,179 @@ public function setEncodingFormat($encodingFormat) } /** - * @return Date|null + * @return DateTime|string|null */ - public function getUploadDate() + public function getStartTime() { - return $this->uploadDate; + return $this->startTime; } /** - * @param Date|null $uploadDate + * @param DateTime|string|null $startTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUploadDate($uploadDate) + public function setStartTime($startTime) { $types = [ - "Date", + "DateTime", + "Time", "null", ]; - $uploadDate = self::checkTypes($uploadDate, $types); + $startTime = self::checkTypes($startTime, $types); - $this->uploadDate = $uploadDate; + $this->startTime = $startTime; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEmbedUrl() + public function getHeight() { - return $this->embedUrl; + return $this->height; } /** - * @param string $embedUrl + * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmbedUrl($embedUrl) + public function setHeight($height) { $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $embedUrl = self::checkTypes($embedUrl, $types); + $height = self::checkTypes($height, $types); - $this->embedUrl = $embedUrl; + $this->height = $height; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\NewsArticle|string */ - public function getBitrate() + public function getAssociatedArticle() { - return $this->bitrate; + return $this->associatedArticle; } /** - * @param string $bitrate + * @param \OpenActive\Models\SchemaOrg\NewsArticle|string $associatedArticle * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBitrate($bitrate) + public function setAssociatedArticle($associatedArticle) { $types = [ + "\OpenActive\Models\SchemaOrg\NewsArticle", "string", ]; - $bitrate = self::checkTypes($bitrate, $types); + $associatedArticle = self::checkTypes($associatedArticle, $types); - $this->bitrate = $bitrate; + $this->associatedArticle = $associatedArticle; } /** - * @return DateTime|string|null + * @return string */ - public function getEndTime() + public function getSha256() { - return $this->endTime; + return $this->sha256; } /** - * @param DateTime|string|null $endTime + * @param string $sha256 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndTime($endTime) + public function setSha256($sha256) { $types = [ - "DateTime", - "Time", - "null", + "string", ]; - $endTime = self::checkTypes($endTime, $types); + $sha256 = self::checkTypes($sha256, $types); - $this->endTime = $endTime; + $this->sha256 = $sha256; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getProductionCompany() + public function getRegionsAllowed() { - return $this->productionCompany; + return $this->regionsAllowed; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @param \OpenActive\Models\SchemaOrg\Place|string $regionsAllowed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionCompany($productionCompany) + public function setRegionsAllowed($regionsAllowed) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $regionsAllowed = self::checkTypes($regionsAllowed, $types); - $this->productionCompany = $productionCompany; + $this->regionsAllowed = $regionsAllowed; } /** - * @return string + * @return DateInterval|string|null */ - public function getSha256() + public function getDuration() { - return $this->sha256; + return $this->duration; } /** - * @param string $sha256 + * @param DateInterval|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSha256($sha256) + public function setDuration($duration) { $types = [ + "DateInterval", "string", + "null", ]; - $sha256 = self::checkTypes($sha256, $types); + $duration = self::checkTypes($duration, $types); - $this->sha256 = $sha256; + $this->duration = $duration; } /** - * @return \OpenActive\Models\SchemaOrg\Claim|string + * @return string */ - public function getInterpretedAsClaim() + public function getContentUrl() { - return $this->interpretedAsClaim; + return $this->contentUrl; } /** - * @param \OpenActive\Models\SchemaOrg\Claim|string $interpretedAsClaim + * @param string $contentUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInterpretedAsClaim($interpretedAsClaim) + public function setContentUrl($contentUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\Claim", "string", ]; - $interpretedAsClaim = self::checkTypes($interpretedAsClaim, $types); + $contentUrl = self::checkTypes($contentUrl, $types); - $this->interpretedAsClaim = $interpretedAsClaim; + $this->contentUrl = $contentUrl; } } diff --git a/src/Models/SchemaOrg/MediaReview.php b/src/Models/SchemaOrg/MediaReview.php index f0f371ee..d7745f2d 100644 --- a/src/Models/SchemaOrg/MediaReview.php +++ b/src/Models/SchemaOrg/MediaReview.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "originalMediaContextDescription" => "originalMediaContextDescription", - "mediaAuthenticityCategory" => "mediaAuthenticityCategory", "originalMediaLink" => "originalMediaLink", + "mediaAuthenticityCategory" => "mediaAuthenticityCategory", + "originalMediaContextDescription" => "originalMediaContextDescription", ]; return array_merge(parent::fieldList(), $fields); } /** - * Describes, in a [[MediaReview]] when dealing with [[DecontextualizedContent]], background information that can contribute to better interpretation of the [[MediaObject]]. + * Link to the page containing an original version of the content, or directly to an online copy of the original [[MediaObject]] content, e.g. video file. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\WebPage|string|\OpenActive\Models\SchemaOrg\MediaObject */ - protected $originalMediaContextDescription; + protected $originalMediaLink; /** * Indicates a MediaManipulationRatingEnumeration classification of a media object (in the context of how it was published or shared). @@ -42,35 +42,37 @@ public static function fieldList() { protected $mediaAuthenticityCategory; /** - * Link to the page containing an original version of the content, or directly to an online copy of the original [[MediaObject]] content, e.g. video file. + * Describes, in a [[MediaReview]] when dealing with [[DecontextualizedContent]], background information that can contribute to better interpretation of the [[MediaObject]]. * * - * @var string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage + * @var string */ - protected $originalMediaLink; + protected $originalMediaContextDescription; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\WebPage|string|\OpenActive\Models\SchemaOrg\MediaObject */ - public function getOriginalMediaContextDescription() + public function getOriginalMediaLink() { - return $this->originalMediaContextDescription; + return $this->originalMediaLink; } /** - * @param string $originalMediaContextDescription + * @param \OpenActive\Models\SchemaOrg\WebPage|string|\OpenActive\Models\SchemaOrg\MediaObject $originalMediaLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOriginalMediaContextDescription($originalMediaContextDescription) + public function setOriginalMediaLink($originalMediaLink) { $types = [ + "\OpenActive\Models\SchemaOrg\WebPage", "string", + "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $originalMediaContextDescription = self::checkTypes($originalMediaContextDescription, $types); + $originalMediaLink = self::checkTypes($originalMediaLink, $types); - $this->originalMediaContextDescription = $originalMediaContextDescription; + $this->originalMediaLink = $originalMediaLink; } /** @@ -99,29 +101,27 @@ public function setMediaAuthenticityCategory($mediaAuthenticityCategory) } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage + * @return string */ - public function getOriginalMediaLink() + public function getOriginalMediaContextDescription() { - return $this->originalMediaLink; + return $this->originalMediaContextDescription; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject|\OpenActive\Models\SchemaOrg\WebPage $originalMediaLink + * @param string $originalMediaContextDescription * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOriginalMediaLink($originalMediaLink) + public function setOriginalMediaContextDescription($originalMediaContextDescription) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\MediaObject", - "\OpenActive\Models\SchemaOrg\WebPage", ]; - $originalMediaLink = self::checkTypes($originalMediaLink, $types); + $originalMediaContextDescription = self::checkTypes($originalMediaContextDescription, $types); - $this->originalMediaLink = $originalMediaLink; + $this->originalMediaContextDescription = $originalMediaContextDescription; } } diff --git a/src/Models/SchemaOrg/MediaSubscription.php b/src/Models/SchemaOrg/MediaSubscription.php index d0219893..83527aab 100644 --- a/src/Models/SchemaOrg/MediaSubscription.php +++ b/src/Models/SchemaOrg/MediaSubscription.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "expectsAcceptanceOf" => "expectsAcceptanceOf", "authenticator" => "authenticator", + "expectsAcceptanceOf" => "expectsAcceptanceOf", ]; return array_merge(parent::fieldList(), $fields); } /** - * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. + * The Organization responsible for authenticating the user's subscription. For example, many media apps require a cable/satellite provider to authenticate your subscription before playing media. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $expectsAcceptanceOf; + protected $authenticator; /** - * The Organization responsible for authenticating the user's subscription. For example, many media apps require a cable/satellite provider to authenticate your subscription before playing media. + * An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $authenticator; + protected $expectsAcceptanceOf; /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getExpectsAcceptanceOf() + public function getAuthenticator() { - return $this->expectsAcceptanceOf; + return $this->authenticator; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf + * @param \OpenActive\Models\SchemaOrg\Organization|string $authenticator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpectsAcceptanceOf($expectsAcceptanceOf) + public function setAuthenticator($authenticator) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types); + $authenticator = self::checkTypes($authenticator, $types); - $this->expectsAcceptanceOf = $expectsAcceptanceOf; + $this->authenticator = $authenticator; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getAuthenticator() + public function getExpectsAcceptanceOf() { - return $this->authenticator; + return $this->expectsAcceptanceOf; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $authenticator + * @param \OpenActive\Models\SchemaOrg\Offer|string $expectsAcceptanceOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAuthenticator($authenticator) + public function setExpectsAcceptanceOf($expectsAcceptanceOf) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $authenticator = self::checkTypes($authenticator, $types); + $expectsAcceptanceOf = self::checkTypes($expectsAcceptanceOf, $types); - $this->authenticator = $authenticator; + $this->expectsAcceptanceOf = $expectsAcceptanceOf; } } diff --git a/src/Models/SchemaOrg/MedicalAudience.php b/src/Models/SchemaOrg/MedicalAudience.php index 7dcae546..9fb0434c 100644 --- a/src/Models/SchemaOrg/MedicalAudience.php +++ b/src/Models/SchemaOrg/MedicalAudience.php @@ -5,7 +5,7 @@ /** * */ -class MedicalAudience extends \OpenActive\Models\SchemaOrg\Audience +class MedicalAudience extends \OpenActive\Models\SchemaOrg\PeopleAudience { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/MedicalClinic.php b/src/Models/SchemaOrg/MedicalClinic.php index 9a1a5e33..db4fe771 100644 --- a/src/Models/SchemaOrg/MedicalClinic.php +++ b/src/Models/SchemaOrg/MedicalClinic.php @@ -5,7 +5,7 @@ /** * */ -class MedicalClinic extends \OpenActive\Models\SchemaOrg\MedicalOrganization +class MedicalClinic extends \OpenActive\Models\SchemaOrg\MedicalBusiness { /** * @return string[]|null @@ -17,79 +17,79 @@ public static function getType() public static function fieldList() { $fields = [ - "availableService" => "availableService", "medicalSpecialty" => "medicalSpecialty", + "availableService" => "availableService", ]; return array_merge(parent::fieldList(), $fields); } /** - * A medical service available from this provider. + * A medical specialty of the provider. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string */ - protected $availableService; + protected $medicalSpecialty; /** - * A medical specialty of the provider. + * A medical service available from this provider. * * - * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string */ - protected $medicalSpecialty; + protected $availableService; /** - * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string */ - public function getAvailableService() + public function getMedicalSpecialty() { - return $this->availableService; + return $this->medicalSpecialty; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService + * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableService($availableService) + public function setMedicalSpecialty($medicalSpecialty) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTest", - "\OpenActive\Models\SchemaOrg\MedicalProcedure", - "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\MedicalSpecialty", "string", ]; - $availableService = self::checkTypes($availableService, $types); + $medicalSpecialty = self::checkTypes($medicalSpecialty, $types); - $this->availableService = $availableService; + $this->medicalSpecialty = $medicalSpecialty; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string */ - public function getMedicalSpecialty() + public function getAvailableService() { - return $this->medicalSpecialty; + return $this->availableService; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string $availableService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMedicalSpecialty($medicalSpecialty) + public function setAvailableService($availableService) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalSpecialty", + "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\MedicalTest", + "\OpenActive\Models\SchemaOrg\MedicalProcedure", "string", ]; - $medicalSpecialty = self::checkTypes($medicalSpecialty, $types); + $availableService = self::checkTypes($availableService, $types); - $this->medicalSpecialty = $medicalSpecialty; + $this->availableService = $availableService; } } diff --git a/src/Models/SchemaOrg/MedicalCode.php b/src/Models/SchemaOrg/MedicalCode.php index 6a82a1c9..441f98ff 100644 --- a/src/Models/SchemaOrg/MedicalCode.php +++ b/src/Models/SchemaOrg/MedicalCode.php @@ -17,75 +17,75 @@ public static function getType() public static function fieldList() { $fields = [ - "codeValue" => "codeValue", "codingSystem" => "codingSystem", + "codeValue" => "codeValue", ]; return array_merge(parent::fieldList(), $fields); } /** - * A short textual code that uniquely identifies the value. + * The coding system, e.g. 'ICD-10'. * * * @var string */ - protected $codeValue; + protected $codingSystem; /** - * The coding system, e.g. 'ICD-10'. + * A short textual code that uniquely identifies the value. * * * @var string */ - protected $codingSystem; + protected $codeValue; /** * @return string */ - public function getCodeValue() + public function getCodingSystem() { - return $this->codeValue; + return $this->codingSystem; } /** - * @param string $codeValue + * @param string $codingSystem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCodeValue($codeValue) + public function setCodingSystem($codingSystem) { $types = [ "string", ]; - $codeValue = self::checkTypes($codeValue, $types); + $codingSystem = self::checkTypes($codingSystem, $types); - $this->codeValue = $codeValue; + $this->codingSystem = $codingSystem; } /** * @return string */ - public function getCodingSystem() + public function getCodeValue() { - return $this->codingSystem; + return $this->codeValue; } /** - * @param string $codingSystem + * @param string $codeValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCodingSystem($codingSystem) + public function setCodeValue($codeValue) { $types = [ "string", ]; - $codingSystem = self::checkTypes($codingSystem, $types); + $codeValue = self::checkTypes($codeValue, $types); - $this->codingSystem = $codingSystem; + $this->codeValue = $codeValue; } } diff --git a/src/Models/SchemaOrg/MedicalCondition.php b/src/Models/SchemaOrg/MedicalCondition.php index 3c751533..da3f91b3 100644 --- a/src/Models/SchemaOrg/MedicalCondition.php +++ b/src/Models/SchemaOrg/MedicalCondition.php @@ -17,552 +17,552 @@ public static function getType() public static function fieldList() { $fields = [ - "possibleComplication" => "possibleComplication", - "naturalProgression" => "naturalProgression", - "primaryPrevention" => "primaryPrevention", - "status" => "status", - "differentialDiagnosis" => "differentialDiagnosis", "stage" => "stage", - "pathophysiology" => "pathophysiology", + "differentialDiagnosis" => "differentialDiagnosis", + "typicalTest" => "typicalTest", "drug" => "drug", "secondaryPrevention" => "secondaryPrevention", - "associatedAnatomy" => "associatedAnatomy", "signOrSymptom" => "signOrSymptom", - "typicalTest" => "typicalTest", - "epidemiology" => "epidemiology", + "naturalProgression" => "naturalProgression", "riskFactor" => "riskFactor", - "expectedPrognosis" => "expectedPrognosis", + "possibleComplication" => "possibleComplication", + "epidemiology" => "epidemiology", + "pathophysiology" => "pathophysiology", "possibleTreatment" => "possibleTreatment", + "status" => "status", + "expectedPrognosis" => "expectedPrognosis", + "primaryPrevention" => "primaryPrevention", + "associatedAnatomy" => "associatedAnatomy", ]; return array_merge(parent::fieldList(), $fields); } /** - * A possible unexpected and unfavorable evolution of a medical condition. Complications may include worsening of the signs or symptoms of the disease, extension of the condition to other organ systems, etc. + * The stage of the condition, if applicable. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalConditionStage|string */ - protected $possibleComplication; + protected $stage; /** - * The expected progression of the condition if it is not treated and allowed to progress naturally. + * One of a set of differential diagnoses for the condition. Specifically, a closely-related or competing diagnosis typically considered later in the cognitive process whereby this medical condition is distinguished from others most likely responsible for a similar collection of signs and symptoms to reach the most parsimonious diagnosis or diagnoses in a patient. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DDxElement|string */ - protected $naturalProgression; + protected $differentialDiagnosis; /** - * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination. + * A medical test typically performed given this condition. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var \OpenActive\Models\SchemaOrg\MedicalTest|string */ - protected $primaryPrevention; + protected $typicalTest; /** - * The status of the study (enumerated). + * Specifying a drug or medicine used in a medication procedure. * * - * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null + * @var \OpenActive\Models\SchemaOrg\Drug|string */ - protected $status; + protected $drug; /** - * One of a set of differential diagnoses for the condition. Specifically, a closely-related or competing diagnosis typically considered later in the cognitive process whereby this medical condition is distinguished from others most likely responsible for a similar collection of signs and symptoms to reach the most parsimonious diagnosis or diagnoses in a patient. + * A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition. * * - * @var \OpenActive\Models\SchemaOrg\DDxElement|string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - protected $differentialDiagnosis; + protected $secondaryPrevention; /** - * The stage of the condition, if applicable. + * A sign or symptom of this condition. Signs are objective or physically observable manifestations of the medical condition while symptoms are the subjective experience of the medical condition. * * - * @var \OpenActive\Models\SchemaOrg\MedicalConditionStage|string + * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string */ - protected $stage; + protected $signOrSymptom; /** - * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition. + * The expected progression of the condition if it is not treated and allowed to progress naturally. * * * @var string */ - protected $pathophysiology; + protected $naturalProgression; /** - * Specifying a drug or medicine used in a medication procedure. + * A modifiable or non-modifiable factor that increases the risk of a patient contracting this condition, e.g. age, coexisting condition. * * - * @var \OpenActive\Models\SchemaOrg\Drug|string + * @var \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string */ - protected $drug; + protected $riskFactor; /** - * A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition. + * A possible unexpected and unfavorable evolution of a medical condition. Complications may include worsening of the signs or symptoms of the disease, extension of the condition to other organ systems, etc. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var string */ - protected $secondaryPrevention; + protected $possibleComplication; /** - * The anatomy of the underlying organ system or structures associated with this entity. + * The characteristics of associated patients, such as age, gender, race etc. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string + * @var string */ - protected $associatedAnatomy; + protected $epidemiology; /** - * A sign or symptom of this condition. Signs are objective or physically observable manifestations of the medical condition while symptoms are the subjective experience of the medical condition. + * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition. * * - * @var \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string + * @var string */ - protected $signOrSymptom; + protected $pathophysiology; /** - * A medical test typically performed given this condition. + * A possible treatment to address this condition, sign or symptom. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTest|string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - protected $typicalTest; + protected $possibleTreatment; /** - * The characteristics of associated patients, such as age, gender, race etc. + * The status of the study (enumerated). * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null */ - protected $epidemiology; + protected $status; /** - * A modifiable or non-modifiable factor that increases the risk of a patient contracting this condition, e.g. age, coexisting condition. + * The likely outcome in either the short term or long term of the medical condition. * * - * @var \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string + * @var string */ - protected $riskFactor; + protected $expectedPrognosis; /** - * The likely outcome in either the short term or long term of the medical condition. + * A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - protected $expectedPrognosis; + protected $primaryPrevention; /** - * A possible treatment to address this condition, sign or symptom. + * The anatomy of the underlying organ system or structures associated with this entity. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - protected $possibleTreatment; + protected $associatedAnatomy; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MedicalConditionStage|string */ - public function getPossibleComplication() + public function getStage() { - return $this->possibleComplication; + return $this->stage; } /** - * @param string $possibleComplication + * @param \OpenActive\Models\SchemaOrg\MedicalConditionStage|string $stage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPossibleComplication($possibleComplication) + public function setStage($stage) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalConditionStage", "string", ]; - $possibleComplication = self::checkTypes($possibleComplication, $types); + $stage = self::checkTypes($stage, $types); - $this->possibleComplication = $possibleComplication; + $this->stage = $stage; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DDxElement|string */ - public function getNaturalProgression() + public function getDifferentialDiagnosis() { - return $this->naturalProgression; + return $this->differentialDiagnosis; } /** - * @param string $naturalProgression + * @param \OpenActive\Models\SchemaOrg\DDxElement|string $differentialDiagnosis * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNaturalProgression($naturalProgression) + public function setDifferentialDiagnosis($differentialDiagnosis) { $types = [ + "\OpenActive\Models\SchemaOrg\DDxElement", "string", ]; - $naturalProgression = self::checkTypes($naturalProgression, $types); + $differentialDiagnosis = self::checkTypes($differentialDiagnosis, $types); - $this->naturalProgression = $naturalProgression; + $this->differentialDiagnosis = $differentialDiagnosis; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return \OpenActive\Models\SchemaOrg\MedicalTest|string */ - public function getPrimaryPrevention() + public function getTypicalTest() { - return $this->primaryPrevention; + return $this->typicalTest; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $primaryPrevention + * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $typicalTest * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrimaryPrevention($primaryPrevention) + public function setTypicalTest($typicalTest) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\MedicalTest", "string", ]; - $primaryPrevention = self::checkTypes($primaryPrevention, $types); + $typicalTest = self::checkTypes($typicalTest, $types); - $this->primaryPrevention = $primaryPrevention; + $this->typicalTest = $typicalTest; } /** - * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null + * @return \OpenActive\Models\SchemaOrg\Drug|string */ - public function getStatus() + public function getDrug() { - return $this->status; + return $this->drug; } /** - * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status + * @param \OpenActive\Models\SchemaOrg\Drug|string $drug * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStatus($status) + public function setDrug($drug) { $types = [ + "\OpenActive\Models\SchemaOrg\Drug", "string", - "\OpenActive\Enums\SchemaOrg\EventStatusType", - "\OpenActive\Models\SchemaOrg\MedicalStudyStatus", - "null", ]; - $status = self::checkTypes($status, $types); + $drug = self::checkTypes($drug, $types); - $this->status = $status; + $this->drug = $drug; } /** - * @return \OpenActive\Models\SchemaOrg\DDxElement|string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getDifferentialDiagnosis() + public function getSecondaryPrevention() { - return $this->differentialDiagnosis; + return $this->secondaryPrevention; } /** - * @param \OpenActive\Models\SchemaOrg\DDxElement|string $differentialDiagnosis + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $secondaryPrevention * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDifferentialDiagnosis($differentialDiagnosis) + public function setSecondaryPrevention($secondaryPrevention) { $types = [ - "\OpenActive\Models\SchemaOrg\DDxElement", + "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $differentialDiagnosis = self::checkTypes($differentialDiagnosis, $types); + $secondaryPrevention = self::checkTypes($secondaryPrevention, $types); - $this->differentialDiagnosis = $differentialDiagnosis; + $this->secondaryPrevention = $secondaryPrevention; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalConditionStage|string + * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string */ - public function getStage() + public function getSignOrSymptom() { - return $this->stage; + return $this->signOrSymptom; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalConditionStage|string $stage + * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $signOrSymptom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStage($stage) + public function setSignOrSymptom($signOrSymptom) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalConditionStage", + "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom", "string", ]; - $stage = self::checkTypes($stage, $types); + $signOrSymptom = self::checkTypes($signOrSymptom, $types); - $this->stage = $stage; + $this->signOrSymptom = $signOrSymptom; } /** * @return string */ - public function getPathophysiology() + public function getNaturalProgression() { - return $this->pathophysiology; + return $this->naturalProgression; } /** - * @param string $pathophysiology + * @param string $naturalProgression * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPathophysiology($pathophysiology) + public function setNaturalProgression($naturalProgression) { $types = [ "string", ]; - $pathophysiology = self::checkTypes($pathophysiology, $types); + $naturalProgression = self::checkTypes($naturalProgression, $types); - $this->pathophysiology = $pathophysiology; + $this->naturalProgression = $naturalProgression; } /** - * @return \OpenActive\Models\SchemaOrg\Drug|string + * @return \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string */ - public function getDrug() + public function getRiskFactor() { - return $this->drug; + return $this->riskFactor; } /** - * @param \OpenActive\Models\SchemaOrg\Drug|string $drug + * @param \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string $riskFactor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDrug($drug) + public function setRiskFactor($riskFactor) { $types = [ - "\OpenActive\Models\SchemaOrg\Drug", + "\OpenActive\Models\SchemaOrg\MedicalRiskFactor", "string", ]; - $drug = self::checkTypes($drug, $types); + $riskFactor = self::checkTypes($riskFactor, $types); - $this->drug = $drug; + $this->riskFactor = $riskFactor; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return string */ - public function getSecondaryPrevention() + public function getPossibleComplication() { - return $this->secondaryPrevention; + return $this->possibleComplication; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $secondaryPrevention + * @param string $possibleComplication * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSecondaryPrevention($secondaryPrevention) + public function setPossibleComplication($possibleComplication) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $secondaryPrevention = self::checkTypes($secondaryPrevention, $types); + $possibleComplication = self::checkTypes($possibleComplication, $types); - $this->secondaryPrevention = $secondaryPrevention; + $this->possibleComplication = $possibleComplication; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string + * @return string */ - public function getAssociatedAnatomy() + public function getEpidemiology() { - return $this->associatedAnatomy; + return $this->epidemiology; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $associatedAnatomy + * @param string $epidemiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedAnatomy($associatedAnatomy) + public function setEpidemiology($epidemiology) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", - "\OpenActive\Models\SchemaOrg\SuperficialAnatomy", "string", ]; - $associatedAnatomy = self::checkTypes($associatedAnatomy, $types); + $epidemiology = self::checkTypes($epidemiology, $types); - $this->associatedAnatomy = $associatedAnatomy; + $this->epidemiology = $epidemiology; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string + * @return string */ - public function getSignOrSymptom() + public function getPathophysiology() { - return $this->signOrSymptom; + return $this->pathophysiology; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalSignOrSymptom|string $signOrSymptom + * @param string $pathophysiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSignOrSymptom($signOrSymptom) + public function setPathophysiology($pathophysiology) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalSignOrSymptom", "string", ]; - $signOrSymptom = self::checkTypes($signOrSymptom, $types); + $pathophysiology = self::checkTypes($pathophysiology, $types); - $this->signOrSymptom = $signOrSymptom; + $this->pathophysiology = $pathophysiology; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalTest|string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getTypicalTest() + public function getPossibleTreatment() { - return $this->typicalTest; + return $this->possibleTreatment; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $typicalTest + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypicalTest($typicalTest) + public function setPossibleTreatment($possibleTreatment) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTest", + "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $typicalTest = self::checkTypes($typicalTest, $types); + $possibleTreatment = self::checkTypes($possibleTreatment, $types); - $this->typicalTest = $typicalTest; + $this->possibleTreatment = $possibleTreatment; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null */ - public function getEpidemiology() + public function getStatus() { - return $this->epidemiology; + return $this->status; } /** - * @param string $epidemiology + * @param \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpidemiology($epidemiology) + public function setStatus($status) { $types = [ + "\OpenActive\Enums\SchemaOrg\EventStatusType", "string", + "\OpenActive\Models\SchemaOrg\MedicalStudyStatus", + "null", ]; - $epidemiology = self::checkTypes($epidemiology, $types); + $status = self::checkTypes($status, $types); - $this->epidemiology = $epidemiology; + $this->status = $status; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string + * @return string */ - public function getRiskFactor() + public function getExpectedPrognosis() { - return $this->riskFactor; + return $this->expectedPrognosis; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalRiskFactor|string $riskFactor + * @param string $expectedPrognosis * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRiskFactor($riskFactor) + public function setExpectedPrognosis($expectedPrognosis) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalRiskFactor", "string", ]; - $riskFactor = self::checkTypes($riskFactor, $types); + $expectedPrognosis = self::checkTypes($expectedPrognosis, $types); - $this->riskFactor = $riskFactor; + $this->expectedPrognosis = $expectedPrognosis; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getExpectedPrognosis() + public function getPrimaryPrevention() { - return $this->expectedPrognosis; + return $this->primaryPrevention; } /** - * @param string $expectedPrognosis + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $primaryPrevention * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExpectedPrognosis($expectedPrognosis) + public function setPrimaryPrevention($primaryPrevention) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $expectedPrognosis = self::checkTypes($expectedPrognosis, $types); + $primaryPrevention = self::checkTypes($primaryPrevention, $types); - $this->expectedPrognosis = $expectedPrognosis; + $this->primaryPrevention = $primaryPrevention; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - public function getPossibleTreatment() + public function getAssociatedAnatomy() { - return $this->possibleTreatment; + return $this->associatedAnatomy; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $possibleTreatment + * @param \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $associatedAnatomy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPossibleTreatment($possibleTreatment) + public function setAssociatedAnatomy($associatedAnatomy) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\SuperficialAnatomy", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; - $possibleTreatment = self::checkTypes($possibleTreatment, $types); + $associatedAnatomy = self::checkTypes($associatedAnatomy, $types); - $this->possibleTreatment = $possibleTreatment; + $this->associatedAnatomy = $associatedAnatomy; } } diff --git a/src/Models/SchemaOrg/MedicalConditionStage.php b/src/Models/SchemaOrg/MedicalConditionStage.php index e9661a42..6e94fd2b 100644 --- a/src/Models/SchemaOrg/MedicalConditionStage.php +++ b/src/Models/SchemaOrg/MedicalConditionStage.php @@ -17,76 +17,76 @@ public static function getType() public static function fieldList() { $fields = [ - "subStageSuffix" => "subStageSuffix", "stageAsNumber" => "stageAsNumber", + "subStageSuffix" => "subStageSuffix", ]; return array_merge(parent::fieldList(), $fields); } /** - * The substage, e.g. 'a' for Stage IIIa. + * The stage represented as a number, e.g. 3. * * - * @var string + * @var Number|null */ - protected $subStageSuffix; + protected $stageAsNumber; /** - * The stage represented as a number, e.g. 3. + * The substage, e.g. 'a' for Stage IIIa. * * - * @var Number|null + * @var string */ - protected $stageAsNumber; + protected $subStageSuffix; /** - * @return string + * @return Number|null */ - public function getSubStageSuffix() + public function getStageAsNumber() { - return $this->subStageSuffix; + return $this->stageAsNumber; } /** - * @param string $subStageSuffix + * @param Number|null $stageAsNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubStageSuffix($subStageSuffix) + public function setStageAsNumber($stageAsNumber) { $types = [ - "string", + "Number", + "null", ]; - $subStageSuffix = self::checkTypes($subStageSuffix, $types); + $stageAsNumber = self::checkTypes($stageAsNumber, $types); - $this->subStageSuffix = $subStageSuffix; + $this->stageAsNumber = $stageAsNumber; } /** - * @return Number|null + * @return string */ - public function getStageAsNumber() + public function getSubStageSuffix() { - return $this->stageAsNumber; + return $this->subStageSuffix; } /** - * @param Number|null $stageAsNumber + * @param string $subStageSuffix * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStageAsNumber($stageAsNumber) + public function setSubStageSuffix($subStageSuffix) { $types = [ - "Number", - "null", + "string", ]; - $stageAsNumber = self::checkTypes($stageAsNumber, $types); + $subStageSuffix = self::checkTypes($subStageSuffix, $types); - $this->stageAsNumber = $stageAsNumber; + $this->subStageSuffix = $subStageSuffix; } } diff --git a/src/Models/SchemaOrg/MedicalDevice.php b/src/Models/SchemaOrg/MedicalDevice.php index 31653148..253b2542 100644 --- a/src/Models/SchemaOrg/MedicalDevice.php +++ b/src/Models/SchemaOrg/MedicalDevice.php @@ -17,11 +17,11 @@ public static function getType() public static function fieldList() { $fields = [ + "postOp" => "postOp", + "procedure" => "procedure", "adverseOutcome" => "adverseOutcome", "preOp" => "preOp", "seriousAdverseOutcome" => "seriousAdverseOutcome", - "postOp" => "postOp", - "procedure" => "procedure", "contraindication" => "contraindication", ]; @@ -29,177 +29,177 @@ public static function fieldList() { } /** - * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. + * A description of the postoperative procedures, care, and/or followups for this device. * * - * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string + * @var string */ - protected $adverseOutcome; + protected $postOp; /** - * A description of the workup, testing, and other preparations required before implanting this device. + * A description of the procedure involved in setting up, using, and/or installing the device. * * * @var string */ - protected $preOp; + protected $procedure; /** - * A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition. + * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or otherwise life-threatening or requiring immediate medical attention), tag it as a seriousAdverseOutcome instead. * * * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - protected $seriousAdverseOutcome; + protected $adverseOutcome; /** - * A description of the postoperative procedures, care, and/or followups for this device. + * A description of the workup, testing, and other preparations required before implanting this device. * * * @var string */ - protected $postOp; + protected $preOp; /** - * A description of the procedure involved in setting up, using, and/or installing the device. + * A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - protected $procedure; + protected $seriousAdverseOutcome; /** * A contraindication for this therapy. * * - * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication + * @var \OpenActive\Models\SchemaOrg\MedicalContraindication|string */ protected $contraindication; /** - * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string + * @return string */ - public function getAdverseOutcome() + public function getPostOp() { - return $this->adverseOutcome; + return $this->postOp; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome + * @param string $postOp * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdverseOutcome($adverseOutcome) + public function setPostOp($postOp) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalEntity", "string", ]; - $adverseOutcome = self::checkTypes($adverseOutcome, $types); + $postOp = self::checkTypes($postOp, $types); - $this->adverseOutcome = $adverseOutcome; + $this->postOp = $postOp; } /** * @return string */ - public function getPreOp() + public function getProcedure() { - return $this->preOp; + return $this->procedure; } /** - * @param string $preOp + * @param string $procedure * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPreOp($preOp) + public function setProcedure($procedure) { $types = [ "string", ]; - $preOp = self::checkTypes($preOp, $types); + $procedure = self::checkTypes($procedure, $types); - $this->preOp = $preOp; + $this->procedure = $procedure; } /** * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - public function getSeriousAdverseOutcome() + public function getAdverseOutcome() { - return $this->seriousAdverseOutcome; + return $this->adverseOutcome; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $seriousAdverseOutcome + * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeriousAdverseOutcome($seriousAdverseOutcome) + public function setAdverseOutcome($adverseOutcome) { $types = [ "\OpenActive\Models\SchemaOrg\MedicalEntity", "string", ]; - $seriousAdverseOutcome = self::checkTypes($seriousAdverseOutcome, $types); + $adverseOutcome = self::checkTypes($adverseOutcome, $types); - $this->seriousAdverseOutcome = $seriousAdverseOutcome; + $this->adverseOutcome = $adverseOutcome; } /** * @return string */ - public function getPostOp() + public function getPreOp() { - return $this->postOp; + return $this->preOp; } /** - * @param string $postOp + * @param string $preOp * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostOp($postOp) + public function setPreOp($preOp) { $types = [ "string", ]; - $postOp = self::checkTypes($postOp, $types); + $preOp = self::checkTypes($preOp, $types); - $this->postOp = $postOp; + $this->preOp = $preOp; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - public function getProcedure() + public function getSeriousAdverseOutcome() { - return $this->procedure; + return $this->seriousAdverseOutcome; } /** - * @param string $procedure + * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $seriousAdverseOutcome * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProcedure($procedure) + public function setSeriousAdverseOutcome($seriousAdverseOutcome) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalEntity", "string", ]; - $procedure = self::checkTypes($procedure, $types); + $seriousAdverseOutcome = self::checkTypes($seriousAdverseOutcome, $types); - $this->procedure = $procedure; + $this->seriousAdverseOutcome = $seriousAdverseOutcome; } /** - * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication + * @return \OpenActive\Models\SchemaOrg\MedicalContraindication|string */ public function getContraindication() { @@ -207,15 +207,15 @@ public function getContraindication() } /** - * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication + * @param \OpenActive\Models\SchemaOrg\MedicalContraindication|string $contraindication * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setContraindication($contraindication) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\MedicalContraindication", + "string", ]; $contraindication = self::checkTypes($contraindication, $types); diff --git a/src/Models/SchemaOrg/MedicalEntity.php b/src/Models/SchemaOrg/MedicalEntity.php index 3d730b94..0730e2e4 100644 --- a/src/Models/SchemaOrg/MedicalEntity.php +++ b/src/Models/SchemaOrg/MedicalEntity.php @@ -17,27 +17,19 @@ public static function getType() public static function fieldList() { $fields = [ - "legalStatus" => "legalStatus", "funding" => "funding", - "study" => "study", - "code" => "code", "guideline" => "guideline", - "recognizingAuthority" => "recognizingAuthority", + "code" => "code", + "study" => "study", "medicineSystem" => "medicineSystem", + "legalStatus" => "legalStatus", + "recognizingAuthority" => "recognizingAuthority", "relevantSpecialty" => "relevantSpecialty", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The drug or supplement's legal status, including any controlled substance schedules that apply. - * - * - * @var \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null - */ - protected $legalStatus; - /** * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * @@ -47,12 +39,12 @@ public static function fieldList() { protected $funding; /** - * A medical study or trial related to this entity. + * A medical guideline related to this entity. * * - * @var \OpenActive\Models\SchemaOrg\MedicalStudy|string + * @var \OpenActive\Models\SchemaOrg\MedicalGuideline|string */ - protected $study; + protected $guideline; /** * A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc. @@ -63,20 +55,12 @@ public static function fieldList() { protected $code; /** - * A medical guideline related to this entity. - * - * - * @var \OpenActive\Models\SchemaOrg\MedicalGuideline|string - */ - protected $guideline; - - /** - * If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine. + * A medical study or trial related to this entity. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\MedicalStudy|string */ - protected $recognizingAuthority; + protected $study; /** * The system of medicine that includes this MedicalEntity, for example 'evidence-based', 'homeopathic', 'chiropractic', etc. @@ -87,39 +71,28 @@ public static function fieldList() { protected $medicineSystem; /** - * If applicable, a medical specialty in which this entity is relevant. + * The drug or supplement's legal status, including any controlled substance schedules that apply. * * - * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string + * @var \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null */ - protected $relevantSpecialty; + protected $legalStatus; /** - * @return \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null + * If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - public function getLegalStatus() - { - return $this->legalStatus; - } + protected $recognizingAuthority; /** - * @param \OpenActive\Models\SchemaOrg\DrugLegalStatus|string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $legalStatus - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * If applicable, a medical specialty in which this entity is relevant. + * + * + * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string */ - public function setLegalStatus($legalStatus) - { - $types = [ - "\OpenActive\Models\SchemaOrg\DrugLegalStatus", - "string", - "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", - "null", - ]; - - $legalStatus = self::checkTypes($legalStatus, $types); - - $this->legalStatus = $legalStatus; - } + protected $relevantSpecialty; /** * @return \OpenActive\Models\SchemaOrg\Grant|string @@ -147,28 +120,28 @@ public function setFunding($funding) } /** - * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string + * @return \OpenActive\Models\SchemaOrg\MedicalGuideline|string */ - public function getStudy() + public function getGuideline() { - return $this->study; + return $this->guideline; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalStudy|string $study + * @param \OpenActive\Models\SchemaOrg\MedicalGuideline|string $guideline * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStudy($study) + public function setGuideline($guideline) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalStudy", + "\OpenActive\Models\SchemaOrg\MedicalGuideline", "string", ]; - $study = self::checkTypes($study, $types); + $guideline = self::checkTypes($guideline, $types); - $this->study = $study; + $this->guideline = $guideline; } /** @@ -197,78 +170,105 @@ public function setCode($code) } /** - * @return \OpenActive\Models\SchemaOrg\MedicalGuideline|string + * @return \OpenActive\Models\SchemaOrg\MedicalStudy|string */ - public function getGuideline() + public function getStudy() { - return $this->guideline; + return $this->study; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalGuideline|string $guideline + * @param \OpenActive\Models\SchemaOrg\MedicalStudy|string $study * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGuideline($guideline) + public function setStudy($study) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalGuideline", + "\OpenActive\Models\SchemaOrg\MedicalStudy", "string", ]; - $guideline = self::checkTypes($guideline, $types); + $study = self::checkTypes($study, $types); - $this->guideline = $guideline; + $this->study = $study; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\MedicineSystem|string */ - public function getRecognizingAuthority() + public function getMedicineSystem() { - return $this->recognizingAuthority; + return $this->medicineSystem; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizingAuthority + * @param \OpenActive\Models\SchemaOrg\MedicineSystem|string $medicineSystem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecognizingAuthority($recognizingAuthority) + public function setMedicineSystem($medicineSystem) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\MedicineSystem", "string", ]; - $recognizingAuthority = self::checkTypes($recognizingAuthority, $types); + $medicineSystem = self::checkTypes($medicineSystem, $types); - $this->recognizingAuthority = $recognizingAuthority; + $this->medicineSystem = $medicineSystem; } /** - * @return \OpenActive\Models\SchemaOrg\MedicineSystem|string + * @return \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null */ - public function getMedicineSystem() + public function getLegalStatus() { - return $this->medicineSystem; + return $this->legalStatus; } /** - * @param \OpenActive\Models\SchemaOrg\MedicineSystem|string $medicineSystem + * @param \OpenActive\Enums\SchemaOrg\MedicalEnumeration|\OpenActive\Models\SchemaOrg\DrugLegalStatus|string|null $legalStatus * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMedicineSystem($medicineSystem) + public function setLegalStatus($legalStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicineSystem", + "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", + "\OpenActive\Models\SchemaOrg\DrugLegalStatus", "string", + "null", ]; - $medicineSystem = self::checkTypes($medicineSystem, $types); + $legalStatus = self::checkTypes($legalStatus, $types); - $this->medicineSystem = $medicineSystem; + $this->legalStatus = $legalStatus; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Organization|string + */ + public function getRecognizingAuthority() + { + return $this->recognizingAuthority; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Organization|string $recognizingAuthority + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setRecognizingAuthority($recognizingAuthority) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "string", + ]; + + $recognizingAuthority = self::checkTypes($recognizingAuthority, $types); + + $this->recognizingAuthority = $recognizingAuthority; } /** diff --git a/src/Models/SchemaOrg/MedicalGuideline.php b/src/Models/SchemaOrg/MedicalGuideline.php index 63d3aa89..c876f9d6 100644 --- a/src/Models/SchemaOrg/MedicalGuideline.php +++ b/src/Models/SchemaOrg/MedicalGuideline.php @@ -17,30 +17,30 @@ public static function getType() public static function fieldList() { $fields = [ - "evidenceLevel" => "evidenceLevel", "evidenceOrigin" => "evidenceOrigin", - "guidelineSubject" => "guidelineSubject", "guidelineDate" => "guidelineDate", + "guidelineSubject" => "guidelineSubject", + "evidenceLevel" => "evidenceLevel", ]; return array_merge(parent::fieldList(), $fields); } /** - * Strength of evidence of the data used to formulate the guideline (enumerated). + * Source of the data used to formulate the guidance, e.g. RCT, consensus opinion, etc. * * - * @var \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string + * @var string */ - protected $evidenceLevel; + protected $evidenceOrigin; /** - * Source of the data used to formulate the guidance, e.g. RCT, consensus opinion, etc. + * Date on which this guideline's recommendation was made. * * - * @var string + * @var Date|null */ - protected $evidenceOrigin; + protected $guidelineDate; /** * The medical conditions, treatments, etc. that are the subject of the guideline. @@ -51,60 +51,60 @@ public static function fieldList() { protected $guidelineSubject; /** - * Date on which this guideline's recommendation was made. + * Strength of evidence of the data used to formulate the guideline (enumerated). * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string */ - protected $guidelineDate; + protected $evidenceLevel; /** - * @return \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string + * @return string */ - public function getEvidenceLevel() + public function getEvidenceOrigin() { - return $this->evidenceLevel; + return $this->evidenceOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string $evidenceLevel + * @param string $evidenceOrigin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvidenceLevel($evidenceLevel) + public function setEvidenceOrigin($evidenceOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalEvidenceLevel", "string", ]; - $evidenceLevel = self::checkTypes($evidenceLevel, $types); + $evidenceOrigin = self::checkTypes($evidenceOrigin, $types); - $this->evidenceLevel = $evidenceLevel; + $this->evidenceOrigin = $evidenceOrigin; } /** - * @return string + * @return Date|null */ - public function getEvidenceOrigin() + public function getGuidelineDate() { - return $this->evidenceOrigin; + return $this->guidelineDate; } /** - * @param string $evidenceOrigin + * @param Date|null $guidelineDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvidenceOrigin($evidenceOrigin) + public function setGuidelineDate($guidelineDate) { $types = [ - "string", + "Date", + "null", ]; - $evidenceOrigin = self::checkTypes($evidenceOrigin, $types); + $guidelineDate = self::checkTypes($guidelineDate, $types); - $this->evidenceOrigin = $evidenceOrigin; + $this->guidelineDate = $guidelineDate; } /** @@ -133,28 +133,28 @@ public function setGuidelineSubject($guidelineSubject) } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string */ - public function getGuidelineDate() + public function getEvidenceLevel() { - return $this->guidelineDate; + return $this->evidenceLevel; } /** - * @param Date|null $guidelineDate + * @param \OpenActive\Models\SchemaOrg\MedicalEvidenceLevel|string $evidenceLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGuidelineDate($guidelineDate) + public function setEvidenceLevel($evidenceLevel) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\MedicalEvidenceLevel", + "string", ]; - $guidelineDate = self::checkTypes($guidelineDate, $types); + $evidenceLevel = self::checkTypes($evidenceLevel, $types); - $this->guidelineDate = $guidelineDate; + $this->evidenceLevel = $evidenceLevel; } } diff --git a/src/Models/SchemaOrg/MedicalOrganization.php b/src/Models/SchemaOrg/MedicalOrganization.php index f726aab1..779b6956 100644 --- a/src/Models/SchemaOrg/MedicalOrganization.php +++ b/src/Models/SchemaOrg/MedicalOrganization.php @@ -17,14 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ + "medicalSpecialty" => "medicalSpecialty", "isAcceptingNewPatients" => "isAcceptingNewPatients", "healthPlanNetworkId" => "healthPlanNetworkId", - "medicalSpecialty" => "medicalSpecialty", ]; return array_merge(parent::fieldList(), $fields); } + /** + * A medical specialty of the provider. + * + * + * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string + */ + protected $medicalSpecialty; + /** * Whether the provider is accepting new patients. * @@ -34,7 +42,7 @@ public static function fieldList() { protected $isAcceptingNewPatients; /** - * Name or unique ID of network. (Networks are often reused across different insurance plans). + * Name or unique ID of network. (Networks are often reused across different insurance plans.) * * * @var string @@ -42,12 +50,29 @@ public static function fieldList() { protected $healthPlanNetworkId; /** - * A medical specialty of the provider. - * - * - * @var \OpenActive\Models\SchemaOrg\MedicalSpecialty|string + * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string */ - protected $medicalSpecialty; + public function getMedicalSpecialty() + { + return $this->medicalSpecialty; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMedicalSpecialty($medicalSpecialty) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MedicalSpecialty", + "string", + ]; + + $medicalSpecialty = self::checkTypes($medicalSpecialty, $types); + + $this->medicalSpecialty = $medicalSpecialty; + } /** * @return bool|null @@ -98,29 +123,4 @@ public function setHealthPlanNetworkId($healthPlanNetworkId) $this->healthPlanNetworkId = $healthPlanNetworkId; } - /** - * @return \OpenActive\Models\SchemaOrg\MedicalSpecialty|string - */ - public function getMedicalSpecialty() - { - return $this->medicalSpecialty; - } - - /** - * @param \OpenActive\Models\SchemaOrg\MedicalSpecialty|string $medicalSpecialty - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setMedicalSpecialty($medicalSpecialty) - { - $types = [ - "\OpenActive\Models\SchemaOrg\MedicalSpecialty", - "string", - ]; - - $medicalSpecialty = self::checkTypes($medicalSpecialty, $types); - - $this->medicalSpecialty = $medicalSpecialty; - } - } diff --git a/src/Models/SchemaOrg/MedicalProcedure.php b/src/Models/SchemaOrg/MedicalProcedure.php index e92c5117..0032f8d1 100644 --- a/src/Models/SchemaOrg/MedicalProcedure.php +++ b/src/Models/SchemaOrg/MedicalProcedure.php @@ -17,212 +17,212 @@ public static function getType() public static function fieldList() { $fields = [ - "procedureType" => "procedureType", - "preparation" => "preparation", "bodyLocation" => "bodyLocation", - "status" => "status", - "howPerformed" => "howPerformed", "followup" => "followup", + "howPerformed" => "howPerformed", + "preparation" => "preparation", + "status" => "status", + "procedureType" => "procedureType", ]; return array_merge(parent::fieldList(), $fields); } /** - * The type of procedure, for example Surgical, Noninvasive, or Percutaneous. + * Location in the body of the anatomical structure. * * - * @var \OpenActive\Models\SchemaOrg\MedicalProcedureType|string + * @var string */ - protected $procedureType; + protected $bodyLocation; /** - * Typical preparation that a patient must undergo before having the procedure performed. + * Typical or recommended followup care after the procedure is performed. * * - * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string + * @var string */ - protected $preparation; + protected $followup; /** - * Location in the body of the anatomical structure. + * How the procedure is performed. * * * @var string */ - protected $bodyLocation; + protected $howPerformed; /** - * The status of the study (enumerated). + * Typical preparation that a patient must undergo before having the procedure performed. * * - * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null + * @var string|\OpenActive\Models\SchemaOrg\MedicalEntity */ - protected $status; + protected $preparation; /** - * How the procedure is performed. + * The status of the study (enumerated). * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null */ - protected $howPerformed; + protected $status; /** - * Typical or recommended followup care after the procedure is performed. + * The type of procedure, for example Surgical, Noninvasive, or Percutaneous. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalProcedureType|string */ - protected $followup; + protected $procedureType; /** - * @return \OpenActive\Models\SchemaOrg\MedicalProcedureType|string + * @return string */ - public function getProcedureType() + public function getBodyLocation() { - return $this->procedureType; + return $this->bodyLocation; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalProcedureType|string $procedureType + * @param string $bodyLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProcedureType($procedureType) + public function setBodyLocation($bodyLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalProcedureType", "string", ]; - $procedureType = self::checkTypes($procedureType, $types); + $bodyLocation = self::checkTypes($bodyLocation, $types); - $this->procedureType = $procedureType; + $this->bodyLocation = $bodyLocation; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string + * @return string */ - public function getPreparation() + public function getFollowup() { - return $this->preparation; + return $this->followup; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $preparation + * @param string $followup * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPreparation($preparation) + public function setFollowup($followup) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalEntity", "string", ]; - $preparation = self::checkTypes($preparation, $types); + $followup = self::checkTypes($followup, $types); - $this->preparation = $preparation; + $this->followup = $followup; } /** * @return string */ - public function getBodyLocation() + public function getHowPerformed() { - return $this->bodyLocation; + return $this->howPerformed; } /** - * @param string $bodyLocation + * @param string $howPerformed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBodyLocation($bodyLocation) + public function setHowPerformed($howPerformed) { $types = [ "string", ]; - $bodyLocation = self::checkTypes($bodyLocation, $types); + $howPerformed = self::checkTypes($howPerformed, $types); - $this->bodyLocation = $bodyLocation; + $this->howPerformed = $howPerformed; } /** - * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null + * @return string|\OpenActive\Models\SchemaOrg\MedicalEntity */ - public function getStatus() + public function getPreparation() { - return $this->status; + return $this->preparation; } /** - * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status + * @param string|\OpenActive\Models\SchemaOrg\MedicalEntity $preparation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStatus($status) + public function setPreparation($preparation) { $types = [ "string", - "\OpenActive\Enums\SchemaOrg\EventStatusType", - "\OpenActive\Models\SchemaOrg\MedicalStudyStatus", - "null", + "\OpenActive\Models\SchemaOrg\MedicalEntity", ]; - $status = self::checkTypes($status, $types); + $preparation = self::checkTypes($preparation, $types); - $this->status = $status; + $this->preparation = $preparation; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null */ - public function getHowPerformed() + public function getStatus() { - return $this->howPerformed; + return $this->status; } /** - * @param string $howPerformed + * @param \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHowPerformed($howPerformed) + public function setStatus($status) { $types = [ + "\OpenActive\Enums\SchemaOrg\EventStatusType", "string", + "\OpenActive\Models\SchemaOrg\MedicalStudyStatus", + "null", ]; - $howPerformed = self::checkTypes($howPerformed, $types); + $status = self::checkTypes($status, $types); - $this->howPerformed = $howPerformed; + $this->status = $status; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MedicalProcedureType|string */ - public function getFollowup() + public function getProcedureType() { - return $this->followup; + return $this->procedureType; } /** - * @param string $followup + * @param \OpenActive\Models\SchemaOrg\MedicalProcedureType|string $procedureType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFollowup($followup) + public function setProcedureType($procedureType) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalProcedureType", "string", ]; - $followup = self::checkTypes($followup, $types); + $procedureType = self::checkTypes($procedureType, $types); - $this->followup = $followup; + $this->procedureType = $procedureType; } } diff --git a/src/Models/SchemaOrg/MedicalSign.php b/src/Models/SchemaOrg/MedicalSign.php index cb6ceebf..3842b425 100644 --- a/src/Models/SchemaOrg/MedicalSign.php +++ b/src/Models/SchemaOrg/MedicalSign.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "identifyingTest" => "identifyingTest", "identifyingExam" => "identifyingExam", + "identifyingTest" => "identifyingTest", ]; return array_merge(parent::fieldList(), $fields); } /** - * A diagnostic test that can identify this sign. + * A physical examination that can identify this sign. * * - * @var \OpenActive\Models\SchemaOrg\MedicalTest|string + * @var \OpenActive\Models\SchemaOrg\PhysicalExam|string */ - protected $identifyingTest; + protected $identifyingExam; /** - * A physical examination that can identify this sign. + * A diagnostic test that can identify this sign. * * - * @var \OpenActive\Models\SchemaOrg\PhysicalExam|string + * @var \OpenActive\Models\SchemaOrg\MedicalTest|string */ - protected $identifyingExam; + protected $identifyingTest; /** - * @return \OpenActive\Models\SchemaOrg\MedicalTest|string + * @return \OpenActive\Models\SchemaOrg\PhysicalExam|string */ - public function getIdentifyingTest() + public function getIdentifyingExam() { - return $this->identifyingTest; + return $this->identifyingExam; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $identifyingTest + * @param \OpenActive\Models\SchemaOrg\PhysicalExam|string $identifyingExam * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIdentifyingTest($identifyingTest) + public function setIdentifyingExam($identifyingExam) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTest", + "\OpenActive\Models\SchemaOrg\PhysicalExam", "string", ]; - $identifyingTest = self::checkTypes($identifyingTest, $types); + $identifyingExam = self::checkTypes($identifyingExam, $types); - $this->identifyingTest = $identifyingTest; + $this->identifyingExam = $identifyingExam; } /** - * @return \OpenActive\Models\SchemaOrg\PhysicalExam|string + * @return \OpenActive\Models\SchemaOrg\MedicalTest|string */ - public function getIdentifyingExam() + public function getIdentifyingTest() { - return $this->identifyingExam; + return $this->identifyingTest; } /** - * @param \OpenActive\Models\SchemaOrg\PhysicalExam|string $identifyingExam + * @param \OpenActive\Models\SchemaOrg\MedicalTest|string $identifyingTest * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIdentifyingExam($identifyingExam) + public function setIdentifyingTest($identifyingTest) { $types = [ - "\OpenActive\Models\SchemaOrg\PhysicalExam", + "\OpenActive\Models\SchemaOrg\MedicalTest", "string", ]; - $identifyingExam = self::checkTypes($identifyingExam, $types); + $identifyingTest = self::checkTypes($identifyingTest, $types); - $this->identifyingExam = $identifyingExam; + $this->identifyingTest = $identifyingTest; } } diff --git a/src/Models/SchemaOrg/MedicalStudy.php b/src/Models/SchemaOrg/MedicalStudy.php index 080b8780..dce17008 100644 --- a/src/Models/SchemaOrg/MedicalStudy.php +++ b/src/Models/SchemaOrg/MedicalStudy.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "healthCondition" => "healthCondition", - "status" => "status", "studySubject" => "studySubject", "studyLocation" => "studyLocation", + "status" => "status", "sponsor" => "sponsor", ]; @@ -35,14 +35,6 @@ public static function fieldList() { */ protected $healthCondition; - /** - * The status of the study (enumerated). - * - * - * @var string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null - */ - protected $status; - /** * A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study. * @@ -60,7 +52,15 @@ public static function fieldList() { protected $studyLocation; /** - * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event. + * The status of the study (enumerated). + * + * + * @var \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null + */ + protected $status; + + /** + * A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string @@ -93,80 +93,80 @@ public function setHealthCondition($healthCondition) } /** - * @return string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null + * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - public function getStatus() + public function getStudySubject() { - return $this->status; + return $this->studySubject; } /** - * @param string|\OpenActive\Enums\SchemaOrg\EventStatusType|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status + * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $studySubject * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStatus($status) + public function setStudySubject($studySubject) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalEntity", "string", - "\OpenActive\Enums\SchemaOrg\EventStatusType", - "\OpenActive\Models\SchemaOrg\MedicalStudyStatus", - "null", ]; - $status = self::checkTypes($status, $types); + $studySubject = self::checkTypes($studySubject, $types); - $this->status = $status; + $this->studySubject = $studySubject; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getStudySubject() + public function getStudyLocation() { - return $this->studySubject; + return $this->studyLocation; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $studySubject + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $studyLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStudySubject($studySubject) + public function setStudyLocation($studyLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalEntity", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", ]; - $studySubject = self::checkTypes($studySubject, $types); + $studyLocation = self::checkTypes($studyLocation, $types); - $this->studySubject = $studySubject; + $this->studyLocation = $studyLocation; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @return \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null */ - public function getStudyLocation() + public function getStatus() { - return $this->studyLocation; + return $this->status; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $studyLocation + * @param \OpenActive\Enums\SchemaOrg\EventStatusType|string|\OpenActive\Models\SchemaOrg\MedicalStudyStatus|null $status * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStudyLocation($studyLocation) + public function setStatus($status) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", + "\OpenActive\Enums\SchemaOrg\EventStatusType", "string", + "\OpenActive\Models\SchemaOrg\MedicalStudyStatus", + "null", ]; - $studyLocation = self::checkTypes($studyLocation, $types); + $status = self::checkTypes($status, $types); - $this->studyLocation = $studyLocation; + $this->status = $status; } /** diff --git a/src/Models/SchemaOrg/MedicalTest.php b/src/Models/SchemaOrg/MedicalTest.php index 76a74b88..0e9a83f2 100644 --- a/src/Models/SchemaOrg/MedicalTest.php +++ b/src/Models/SchemaOrg/MedicalTest.php @@ -17,39 +17,39 @@ public static function getType() public static function fieldList() { $fields = [ - "usedToDiagnose" => "usedToDiagnose", - "affectedBy" => "affectedBy", "normalRange" => "normalRange", - "signDetected" => "signDetected", + "usedToDiagnose" => "usedToDiagnose", "usesDevice" => "usesDevice", + "signDetected" => "signDetected", + "affectedBy" => "affectedBy", ]; return array_merge(parent::fieldList(), $fields); } /** - * A condition the test is used to diagnose. + * Range of acceptable values for a typical patient, when applicable. * * - * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @var string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null */ - protected $usedToDiagnose; + protected $normalRange; /** - * Drugs that affect the test's results. + * A condition the test is used to diagnose. * * - * @var \OpenActive\Models\SchemaOrg\Drug|string + * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $affectedBy; + protected $usedToDiagnose; /** - * Range of acceptable values for a typical patient, when applicable. + * Device used to perform the test. * * - * @var string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null + * @var \OpenActive\Models\SchemaOrg\MedicalDevice|string */ - protected $normalRange; + protected $usesDevice; /** * A sign detected by the test. @@ -60,87 +60,87 @@ public static function fieldList() { protected $signDetected; /** - * Device used to perform the test. + * Drugs that affect the test's results. * * - * @var \OpenActive\Models\SchemaOrg\MedicalDevice|string + * @var \OpenActive\Models\SchemaOrg\Drug|string */ - protected $usesDevice; + protected $affectedBy; /** - * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @return string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null */ - public function getUsedToDiagnose() + public function getNormalRange() { - return $this->usedToDiagnose; + return $this->normalRange; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $usedToDiagnose + * @param string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $normalRange * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUsedToDiagnose($usedToDiagnose) + public function setNormalRange($normalRange) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", + "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", + "null", ]; - $usedToDiagnose = self::checkTypes($usedToDiagnose, $types); + $normalRange = self::checkTypes($normalRange, $types); - $this->usedToDiagnose = $usedToDiagnose; + $this->normalRange = $normalRange; } /** - * @return \OpenActive\Models\SchemaOrg\Drug|string + * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getAffectedBy() + public function getUsedToDiagnose() { - return $this->affectedBy; + return $this->usedToDiagnose; } /** - * @param \OpenActive\Models\SchemaOrg\Drug|string $affectedBy + * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $usedToDiagnose * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAffectedBy($affectedBy) + public function setUsedToDiagnose($usedToDiagnose) { $types = [ - "\OpenActive\Models\SchemaOrg\Drug", + "\OpenActive\Models\SchemaOrg\MedicalCondition", "string", ]; - $affectedBy = self::checkTypes($affectedBy, $types); + $usedToDiagnose = self::checkTypes($usedToDiagnose, $types); - $this->affectedBy = $affectedBy; + $this->usedToDiagnose = $usedToDiagnose; } /** - * @return string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null + * @return \OpenActive\Models\SchemaOrg\MedicalDevice|string */ - public function getNormalRange() + public function getUsesDevice() { - return $this->normalRange; + return $this->usesDevice; } /** - * @param string|\OpenActive\Enums\SchemaOrg\MedicalEnumeration|null $normalRange + * @param \OpenActive\Models\SchemaOrg\MedicalDevice|string $usesDevice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNormalRange($normalRange) + public function setUsesDevice($usesDevice) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalDevice", "string", - "\OpenActive\Enums\SchemaOrg\MedicalEnumeration", - "null", ]; - $normalRange = self::checkTypes($normalRange, $types); + $usesDevice = self::checkTypes($usesDevice, $types); - $this->normalRange = $normalRange; + $this->usesDevice = $usesDevice; } /** @@ -169,28 +169,28 @@ public function setSignDetected($signDetected) } /** - * @return \OpenActive\Models\SchemaOrg\MedicalDevice|string + * @return \OpenActive\Models\SchemaOrg\Drug|string */ - public function getUsesDevice() + public function getAffectedBy() { - return $this->usesDevice; + return $this->affectedBy; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalDevice|string $usesDevice + * @param \OpenActive\Models\SchemaOrg\Drug|string $affectedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUsesDevice($usesDevice) + public function setAffectedBy($affectedBy) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalDevice", + "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $usesDevice = self::checkTypes($usesDevice, $types); + $affectedBy = self::checkTypes($affectedBy, $types); - $this->usesDevice = $usesDevice; + $this->affectedBy = $affectedBy; } } diff --git a/src/Models/SchemaOrg/MedicalTherapy.php b/src/Models/SchemaOrg/MedicalTherapy.php index 74a5c5cb..7ebaf3b0 100644 --- a/src/Models/SchemaOrg/MedicalTherapy.php +++ b/src/Models/SchemaOrg/MedicalTherapy.php @@ -45,7 +45,7 @@ public static function fieldList() { * A contraindication for this therapy. * * - * @var string|\OpenActive\Models\SchemaOrg\MedicalContraindication + * @var \OpenActive\Models\SchemaOrg\MedicalContraindication|string */ protected $contraindication; @@ -100,7 +100,7 @@ public function setSeriousAdverseOutcome($seriousAdverseOutcome) } /** - * @return string|\OpenActive\Models\SchemaOrg\MedicalContraindication + * @return \OpenActive\Models\SchemaOrg\MedicalContraindication|string */ public function getContraindication() { @@ -108,15 +108,15 @@ public function getContraindication() } /** - * @param string|\OpenActive\Models\SchemaOrg\MedicalContraindication $contraindication + * @param \OpenActive\Models\SchemaOrg\MedicalContraindication|string $contraindication * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setContraindication($contraindication) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\MedicalContraindication", + "string", ]; $contraindication = self::checkTypes($contraindication, $types); diff --git a/src/Models/SchemaOrg/MedicalWebPage.php b/src/Models/SchemaOrg/MedicalWebPage.php index ae5b9502..b998f4b4 100644 --- a/src/Models/SchemaOrg/MedicalWebPage.php +++ b/src/Models/SchemaOrg/MedicalWebPage.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "aspect" => "aspect", "medicalAudience" => "medicalAudience", + "aspect" => "aspect", ]; return array_merge(parent::fieldList(), $fields); } /** - * An aspect of medical practice that is considered on the page, such as 'diagnosis', 'treatment', 'causes', 'prognosis', 'etiology', 'epidemiology', etc. + * Medical audience for page. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string */ - protected $aspect; + protected $medicalAudience; /** - * Medical audience for page. + * An aspect of medical practice that is considered on the page, such as 'diagnosis', 'treatment', 'causes', 'prognosis', 'etiology', 'epidemiology', etc. * * - * @var \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string + * @var string */ - protected $medicalAudience; + protected $aspect; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string */ - public function getAspect() + public function getMedicalAudience() { - return $this->aspect; + return $this->medicalAudience; } /** - * @param string $aspect + * @param \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string $medicalAudience * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAspect($aspect) + public function setMedicalAudience($medicalAudience) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalAudienceType", + "\OpenActive\Models\SchemaOrg\MedicalAudience", "string", ]; - $aspect = self::checkTypes($aspect, $types); + $medicalAudience = self::checkTypes($medicalAudience, $types); - $this->aspect = $aspect; + $this->medicalAudience = $medicalAudience; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string + * @return string */ - public function getMedicalAudience() + public function getAspect() { - return $this->medicalAudience; + return $this->aspect; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalAudienceType|\OpenActive\Models\SchemaOrg\MedicalAudience|string $medicalAudience + * @param string $aspect * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMedicalAudience($medicalAudience) + public function setAspect($aspect) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalAudienceType", - "\OpenActive\Models\SchemaOrg\MedicalAudience", "string", ]; - $medicalAudience = self::checkTypes($medicalAudience, $types); + $aspect = self::checkTypes($aspect, $types); - $this->medicalAudience = $medicalAudience; + $this->aspect = $aspect; } } diff --git a/src/Models/SchemaOrg/MenuItem.php b/src/Models/SchemaOrg/MenuItem.php index 1dc921ac..8ca78522 100644 --- a/src/Models/SchemaOrg/MenuItem.php +++ b/src/Models/SchemaOrg/MenuItem.php @@ -17,22 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "menuAddOn" => "menuAddOn", - "offers" => "offers", "suitableForDiet" => "suitableForDiet", + "offers" => "offers", "nutrition" => "nutrition", + "menuAddOn" => "menuAddOn", ]; return array_merge(parent::fieldList(), $fields); } /** - * Additional menu item(s) such as a side dish of salad or side order of fries that can be added to this menu item. Additionally it can be a menu section containing allowed add-on menu items for this menu item. + * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc. * * - * @var \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string + * @var \OpenActive\Enums\SchemaOrg\RestrictedDiet|null */ - protected $menuAddOn; + protected $suitableForDiet; /** * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. @@ -44,45 +44,44 @@ public static function fieldList() { protected $offers; /** - * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc. + * Nutrition information about the recipe or menu item. * * - * @var \OpenActive\Enums\SchemaOrg\RestrictedDiet|null + * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string */ - protected $suitableForDiet; + protected $nutrition; /** - * Nutrition information about the recipe or menu item. + * Additional menu item(s) such as a side dish of salad or side order of fries that can be added to this menu item. Additionally it can be a menu section containing allowed add-on menu items for this menu item. * * - * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string + * @var \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string */ - protected $nutrition; + protected $menuAddOn; /** - * @return \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string + * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null */ - public function getMenuAddOn() + public function getSuitableForDiet() { - return $this->menuAddOn; + return $this->suitableForDiet; } /** - * @param \OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\MenuSection|string $menuAddOn + * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMenuAddOn($menuAddOn) + public function setSuitableForDiet($suitableForDiet) { $types = [ - "\OpenActive\Models\SchemaOrg\MenuItem", - "\OpenActive\Models\SchemaOrg\MenuSection", - "string", + "\OpenActive\Enums\SchemaOrg\RestrictedDiet", + "null", ]; - $menuAddOn = self::checkTypes($menuAddOn, $types); + $suitableForDiet = self::checkTypes($suitableForDiet, $types); - $this->menuAddOn = $menuAddOn; + $this->suitableForDiet = $suitableForDiet; } /** @@ -112,53 +111,54 @@ public function setOffers($offers) } /** - * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null + * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string */ - public function getSuitableForDiet() + public function getNutrition() { - return $this->suitableForDiet; + return $this->nutrition; } /** - * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet + * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuitableForDiet($suitableForDiet) + public function setNutrition($nutrition) { $types = [ - "\OpenActive\Enums\SchemaOrg\RestrictedDiet", - "null", + "\OpenActive\Models\SchemaOrg\NutritionInformation", + "string", ]; - $suitableForDiet = self::checkTypes($suitableForDiet, $types); + $nutrition = self::checkTypes($nutrition, $types); - $this->suitableForDiet = $suitableForDiet; + $this->nutrition = $nutrition; } /** - * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string + * @return \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string */ - public function getNutrition() + public function getMenuAddOn() { - return $this->nutrition; + return $this->menuAddOn; } /** - * @param \OpenActive\Models\SchemaOrg\NutritionInformation|string $nutrition + * @param \OpenActive\Models\SchemaOrg\MenuSection|\OpenActive\Models\SchemaOrg\MenuItem|string $menuAddOn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNutrition($nutrition) + public function setMenuAddOn($menuAddOn) { $types = [ - "\OpenActive\Models\SchemaOrg\NutritionInformation", + "\OpenActive\Models\SchemaOrg\MenuSection", + "\OpenActive\Models\SchemaOrg\MenuItem", "string", ]; - $nutrition = self::checkTypes($nutrition, $types); + $menuAddOn = self::checkTypes($menuAddOn, $types); - $this->nutrition = $nutrition; + $this->menuAddOn = $menuAddOn; } } diff --git a/src/Models/SchemaOrg/MerchantReturnPolicy.php b/src/Models/SchemaOrg/MerchantReturnPolicy.php index e57e8719..911b9358 100644 --- a/src/Models/SchemaOrg/MerchantReturnPolicy.php +++ b/src/Models/SchemaOrg/MerchantReturnPolicy.php @@ -17,135 +17,136 @@ public static function getType() public static function fieldList() { $fields = [ - "returnPolicyCategory" => "returnPolicyCategory", - "returnPolicyCountry" => "returnPolicyCountry", - "merchantReturnLink" => "merchantReturnLink", - "restockingFee" => "restockingFee", - "itemDefectReturnShippingFeesAmount" => "itemDefectReturnShippingFeesAmount", "itemDefectReturnFees" => "itemDefectReturnFees", - "inStoreReturnsOffered" => "inStoreReturnsOffered", - "itemCondition" => "itemCondition", - "itemDefectReturnLabelSource" => "itemDefectReturnLabelSource", - "returnLabelSource" => "returnLabelSource", "customerRemorseReturnShippingFeesAmount" => "customerRemorseReturnShippingFeesAmount", - "refundType" => "refundType", - "returnShippingFeesAmount" => "returnShippingFeesAmount", - "merchantReturnDays" => "merchantReturnDays", - "returnMethod" => "returnMethod", + "restockingFee" => "restockingFee", + "returnFees" => "returnFees", + "inStoreReturnsOffered" => "inStoreReturnsOffered", + "returnPolicySeasonalOverride" => "returnPolicySeasonalOverride", "additionalProperty" => "additionalProperty", - "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource", "customerRemorseReturnFees" => "customerRemorseReturnFees", - "returnPolicySeasonalOverride" => "returnPolicySeasonalOverride", + "customerRemorseReturnLabelSource" => "customerRemorseReturnLabelSource", + "merchantReturnLink" => "merchantReturnLink", + "returnPolicyCategory" => "returnPolicyCategory", + "returnMethod" => "returnMethod", + "refundType" => "refundType", + "merchantReturnDays" => "merchantReturnDays", + "returnLabelSource" => "returnLabelSource", + "itemDefectReturnShippingFeesAmount" => "itemDefectReturnShippingFeesAmount", "applicableCountry" => "applicableCountry", - "returnFees" => "returnFees", + "returnPolicyCountry" => "returnPolicyCountry", + "returnShippingFeesAmount" => "returnShippingFeesAmount", + "itemDefectReturnLabelSource" => "itemDefectReturnLabelSource", + "itemCondition" => "itemCondition", ]; return array_merge(parent::fieldList(), $fields); } /** - * Specifies an applicable return policy (from an enumeration). + * The type of return fees for returns of defect products. * * - * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null + * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null */ - protected $returnPolicyCategory; + protected $itemDefectReturnFees; /** - * The country where the product has to be sent to for returns, for example "Ireland" using the [[name]] property of [[Country]]. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). Note that this can be different from the country where the product was originally shipped from or sent too. + * The amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]]. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $returnPolicyCountry; + protected $customerRemorseReturnShippingFeesAmount; /** - * Specifies a Web page or service by URL, for product returns. + * Use [[MonetaryAmount]] to specify a fixed restocking fee for product returns, or use [[Number]] to specify a percentage of the product price paid by the customer. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - protected $merchantReturnLink; + protected $restockingFee; /** - * Use [[MonetaryAmount]] to specify a fixed restocking fee for product returns, or use [[Number]] to specify a percentage of the product price paid by the customer. + * The type of return fees for purchased products (for any return reason). * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null */ - protected $restockingFee; + protected $returnFees; /** - * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]]. + * Are in-store returns offered? (For more advanced return methods use the [[returnMethod]] property.) * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var bool|null */ - protected $itemDefectReturnShippingFeesAmount; + protected $inStoreReturnsOffered; /** - * The type of return fees for returns of defect products. + * Seasonal override of a return policy. * * - * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null + * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string */ - protected $itemDefectReturnFees; + protected $returnPolicySeasonalOverride; /** - * Are in-store returns offered? (for more advanced return methods use the [[returnMethod]] property) + * A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. + * * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $inStoreReturnsOffered; + protected $additionalProperty; /** - * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns. + * The type of return fees if the product is returned due to customer remorse. * * - * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null */ - protected $itemCondition; + protected $customerRemorseReturnFees; /** - * The method (from an enumeration) by which the customer obtains a return shipping label for a defect product. + * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned due to customer remorse. * * * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null */ - protected $itemDefectReturnLabelSource; + protected $customerRemorseReturnLabelSource; /** - * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned for any reason. + * Specifies a Web page or service by URL, for product returns. * * - * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null + * @var string */ - protected $returnLabelSource; + protected $merchantReturnLink; /** - * The amount of shipping costs if a product is returned due to customer remorse. Applicable when property [[customerRemorseReturnFees]] equals [[ReturnShippingFees]]. + * Specifies an applicable return policy (from an enumeration). * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null */ - protected $customerRemorseReturnShippingFeesAmount; + protected $returnPolicyCategory; /** - * A refund type, from an enumerated list. + * The type of return method offered, specified from an enumeration. * * - * @var \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null + * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null */ - protected $refundType; + protected $returnMethod; /** - * Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]]. + * A refund type, from an enumerated list. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null */ - protected $returnShippingFeesAmount; + protected $refundType; /** * Specifies either a fixed return date or the number of days (from the delivery date) that a product can be returned. Used when the [[returnPolicyCategory]] property is specified as [[MerchantReturnFiniteReturnWindow]]. @@ -156,386 +157,385 @@ public static function fieldList() { protected $merchantReturnDays; /** - * The type of return method offered, specified from an enumeration. + * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned for any reason. * * - * @var \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null + * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null */ - protected $returnMethod; + protected $returnLabelSource; /** - * A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. - * + * Amount of shipping costs for defect product returns. Applicable when property [[itemDefectReturnFees]] equals [[ReturnShippingFees]]. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $additionalProperty; + protected $itemDefectReturnShippingFeesAmount; /** - * The method (from an enumeration) by which the customer obtains a return shipping label for a product returned due to customer remorse. + * A country where a particular merchant return policy applies to, for example the two-letter ISO 3166-1 alpha-2 country code. * * - * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $customerRemorseReturnLabelSource; + protected $applicableCountry; /** - * The type of return fees if the product is returned due to customer remorse. + * The country where the product has to be sent to for returns, for example "Ireland" using the [[name]] property of [[Country]]. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). Note that this can be different from the country where the product was originally shipped from or sent to. * * - * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null + * @var string|\OpenActive\Models\SchemaOrg\Country */ - protected $customerRemorseReturnFees; + protected $returnPolicyCountry; /** - * Seasonal override of a return policy. + * Amount of shipping costs for product returns (for any reason). Applicable when property [[returnFees]] equals [[ReturnShippingFees]]. * * - * @var \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $returnPolicySeasonalOverride; + protected $returnShippingFeesAmount; /** - * A country where a particular merchant return policy applies to, for example the two-letter ISO 3166-1 alpha-2 country code. + * The method (from an enumeration) by which the customer obtains a return shipping label for a defect product. * * - * @var string|\OpenActive\Models\SchemaOrg\Country + * @var \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null */ - protected $applicableCountry; + protected $itemDefectReturnLabelSource; /** - * The type of return fees for purchased products (for any return reason) + * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns. * * - * @var \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null + * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - protected $returnFees; + protected $itemCondition; /** - * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null + * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null */ - public function getReturnPolicyCategory() + public function getItemDefectReturnFees() { - return $this->returnPolicyCategory; + return $this->itemDefectReturnFees; } /** - * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory + * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $itemDefectReturnFees * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReturnPolicyCategory($returnPolicyCategory) + public function setItemDefectReturnFees($itemDefectReturnFees) { $types = [ - "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration", + "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration", "null", ]; - $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types); + $itemDefectReturnFees = self::checkTypes($itemDefectReturnFees, $types); - $this->returnPolicyCategory = $returnPolicyCategory; + $this->itemDefectReturnFees = $itemDefectReturnFees; } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getReturnPolicyCountry() + public function getCustomerRemorseReturnShippingFeesAmount() { - return $this->returnPolicyCountry; + return $this->customerRemorseReturnShippingFeesAmount; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $returnPolicyCountry + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $customerRemorseReturnShippingFeesAmount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReturnPolicyCountry($returnPolicyCountry) + public function setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types); + $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types); - $this->returnPolicyCountry = $returnPolicyCountry; + $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ - public function getMerchantReturnLink() + public function getRestockingFee() { - return $this->merchantReturnLink; + return $this->restockingFee; } /** - * @param string $merchantReturnLink + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $restockingFee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMerchantReturnLink($merchantReturnLink) + public function setRestockingFee($restockingFee) { $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "Number", + "null", ]; - $merchantReturnLink = self::checkTypes($merchantReturnLink, $types); + $restockingFee = self::checkTypes($restockingFee, $types); - $this->merchantReturnLink = $merchantReturnLink; + $this->restockingFee = $restockingFee; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null */ - public function getRestockingFee() + public function getReturnFees() { - return $this->restockingFee; + return $this->returnFees; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $restockingFee + * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $returnFees * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRestockingFee($restockingFee) + public function setReturnFees($returnFees) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", - "Number", + "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration", "null", ]; - $restockingFee = self::checkTypes($restockingFee, $types); + $returnFees = self::checkTypes($returnFees, $types); - $this->restockingFee = $restockingFee; + $this->returnFees = $returnFees; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return bool|null */ - public function getItemDefectReturnShippingFeesAmount() + public function getInStoreReturnsOffered() { - return $this->itemDefectReturnShippingFeesAmount; + return $this->inStoreReturnsOffered; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $itemDefectReturnShippingFeesAmount + * @param bool|null $inStoreReturnsOffered * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount) + public function setInStoreReturnsOffered($inStoreReturnsOffered) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "bool", + "null", ]; - $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types); + $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types); - $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount; + $this->inStoreReturnsOffered = $inStoreReturnsOffered; } /** - * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string */ - public function getItemDefectReturnFees() + public function getReturnPolicySeasonalOverride() { - return $this->itemDefectReturnFees; + return $this->returnPolicySeasonalOverride; } /** - * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $itemDefectReturnFees + * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string $returnPolicySeasonalOverride * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemDefectReturnFees($itemDefectReturnFees) + public function setReturnPolicySeasonalOverride($returnPolicySeasonalOverride) { $types = [ - "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration", - "null", + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride", + "string", ]; - $itemDefectReturnFees = self::checkTypes($itemDefectReturnFees, $types); + $returnPolicySeasonalOverride = self::checkTypes($returnPolicySeasonalOverride, $types); - $this->itemDefectReturnFees = $itemDefectReturnFees; + $this->returnPolicySeasonalOverride = $returnPolicySeasonalOverride; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getInStoreReturnsOffered() + public function getAdditionalProperty() { - return $this->inStoreReturnsOffered; + return $this->additionalProperty; } /** - * @param bool|null $inStoreReturnsOffered + * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInStoreReturnsOffered($inStoreReturnsOffered) + public function setAdditionalProperty($additionalProperty) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "string", ]; - $inStoreReturnsOffered = self::checkTypes($inStoreReturnsOffered, $types); + $additionalProperty = self::checkTypes($additionalProperty, $types); - $this->inStoreReturnsOffered = $inStoreReturnsOffered; + $this->additionalProperty = $additionalProperty; } /** - * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null */ - public function getItemCondition() + public function getCustomerRemorseReturnFees() { - return $this->itemCondition; + return $this->customerRemorseReturnFees; } /** - * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition + * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $customerRemorseReturnFees * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemCondition($itemCondition) + public function setCustomerRemorseReturnFees($customerRemorseReturnFees) { $types = [ - "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration", "null", ]; - $itemCondition = self::checkTypes($itemCondition, $types); + $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types); - $this->itemCondition = $itemCondition; + $this->customerRemorseReturnFees = $customerRemorseReturnFees; } /** * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null */ - public function getItemDefectReturnLabelSource() + public function getCustomerRemorseReturnLabelSource() { - return $this->itemDefectReturnLabelSource; + return $this->customerRemorseReturnLabelSource; } /** - * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $itemDefectReturnLabelSource + * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $customerRemorseReturnLabelSource * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemDefectReturnLabelSource($itemDefectReturnLabelSource) + public function setCustomerRemorseReturnLabelSource($customerRemorseReturnLabelSource) { $types = [ "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration", "null", ]; - $itemDefectReturnLabelSource = self::checkTypes($itemDefectReturnLabelSource, $types); + $customerRemorseReturnLabelSource = self::checkTypes($customerRemorseReturnLabelSource, $types); - $this->itemDefectReturnLabelSource = $itemDefectReturnLabelSource; + $this->customerRemorseReturnLabelSource = $customerRemorseReturnLabelSource; } /** - * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null + * @return string */ - public function getReturnLabelSource() + public function getMerchantReturnLink() { - return $this->returnLabelSource; + return $this->merchantReturnLink; } /** - * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $returnLabelSource + * @param string $merchantReturnLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReturnLabelSource($returnLabelSource) + public function setMerchantReturnLink($merchantReturnLink) { $types = [ - "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration", - "null", + "string", ]; - $returnLabelSource = self::checkTypes($returnLabelSource, $types); + $merchantReturnLink = self::checkTypes($merchantReturnLink, $types); - $this->returnLabelSource = $returnLabelSource; + $this->merchantReturnLink = $merchantReturnLink; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null */ - public function getCustomerRemorseReturnShippingFeesAmount() + public function getReturnPolicyCategory() { - return $this->customerRemorseReturnShippingFeesAmount; + return $this->returnPolicyCategory; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $customerRemorseReturnShippingFeesAmount + * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCustomerRemorseReturnShippingFeesAmount($customerRemorseReturnShippingFeesAmount) + public function setReturnPolicyCategory($returnPolicyCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration", + "null", ]; - $customerRemorseReturnShippingFeesAmount = self::checkTypes($customerRemorseReturnShippingFeesAmount, $types); + $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types); - $this->customerRemorseReturnShippingFeesAmount = $customerRemorseReturnShippingFeesAmount; + $this->returnPolicyCategory = $returnPolicyCategory; } /** - * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null + * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null */ - public function getRefundType() + public function getReturnMethod() { - return $this->refundType; + return $this->returnMethod; } /** - * @param \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null $refundType + * @param \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null $returnMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRefundType($refundType) + public function setReturnMethod($returnMethod) { $types = [ - "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration", + "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration", "null", ]; - $refundType = self::checkTypes($refundType, $types); + $returnMethod = self::checkTypes($returnMethod, $types); - $this->refundType = $refundType; + $this->returnMethod = $returnMethod; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null */ - public function getReturnShippingFeesAmount() + public function getRefundType() { - return $this->returnShippingFeesAmount; + return $this->refundType; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $returnShippingFeesAmount + * @param \OpenActive\Enums\SchemaOrg\RefundTypeEnumeration|null $refundType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReturnShippingFeesAmount($returnShippingFeesAmount) + public function setRefundType($refundType) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "\OpenActive\Enums\SchemaOrg\RefundTypeEnumeration", + "null", ]; - $returnShippingFeesAmount = self::checkTypes($returnShippingFeesAmount, $types); + $refundType = self::checkTypes($refundType, $types); - $this->returnShippingFeesAmount = $returnShippingFeesAmount; + $this->refundType = $refundType; } /** @@ -566,178 +566,178 @@ public function setMerchantReturnDays($merchantReturnDays) } /** - * @return \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null + * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null */ - public function getReturnMethod() + public function getReturnLabelSource() { - return $this->returnMethod; + return $this->returnLabelSource; } /** - * @param \OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration|null $returnMethod + * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $returnLabelSource * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReturnMethod($returnMethod) + public function setReturnLabelSource($returnLabelSource) { $types = [ - "\OpenActive\Enums\SchemaOrg\ReturnMethodEnumeration", + "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration", "null", ]; - $returnMethod = self::checkTypes($returnMethod, $types); + $returnLabelSource = self::checkTypes($returnLabelSource, $types); - $this->returnMethod = $returnMethod; + $this->returnLabelSource = $returnLabelSource; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getAdditionalProperty() + public function getItemDefectReturnShippingFeesAmount() { - return $this->additionalProperty; + return $this->itemDefectReturnShippingFeesAmount; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $itemDefectReturnShippingFeesAmount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalProperty($additionalProperty) + public function setItemDefectReturnShippingFeesAmount($itemDefectReturnShippingFeesAmount) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $itemDefectReturnShippingFeesAmount = self::checkTypes($itemDefectReturnShippingFeesAmount, $types); - $this->additionalProperty = $additionalProperty; + $this->itemDefectReturnShippingFeesAmount = $itemDefectReturnShippingFeesAmount; } /** - * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getCustomerRemorseReturnLabelSource() + public function getApplicableCountry() { - return $this->customerRemorseReturnLabelSource; + return $this->applicableCountry; } /** - * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $customerRemorseReturnLabelSource + * @param \OpenActive\Models\SchemaOrg\Country|string $applicableCountry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCustomerRemorseReturnLabelSource($customerRemorseReturnLabelSource) + public function setApplicableCountry($applicableCountry) { $types = [ - "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration", - "null", + "\OpenActive\Models\SchemaOrg\Country", + "string", ]; - $customerRemorseReturnLabelSource = self::checkTypes($customerRemorseReturnLabelSource, $types); + $applicableCountry = self::checkTypes($applicableCountry, $types); - $this->customerRemorseReturnLabelSource = $customerRemorseReturnLabelSource; + $this->applicableCountry = $applicableCountry; } /** - * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null + * @return string|\OpenActive\Models\SchemaOrg\Country */ - public function getCustomerRemorseReturnFees() + public function getReturnPolicyCountry() { - return $this->customerRemorseReturnFees; + return $this->returnPolicyCountry; } /** - * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $customerRemorseReturnFees + * @param string|\OpenActive\Models\SchemaOrg\Country $returnPolicyCountry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCustomerRemorseReturnFees($customerRemorseReturnFees) + public function setReturnPolicyCountry($returnPolicyCountry) { $types = [ - "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration", - "null", + "string", + "\OpenActive\Models\SchemaOrg\Country", ]; - $customerRemorseReturnFees = self::checkTypes($customerRemorseReturnFees, $types); + $returnPolicyCountry = self::checkTypes($returnPolicyCountry, $types); - $this->customerRemorseReturnFees = $customerRemorseReturnFees; + $this->returnPolicyCountry = $returnPolicyCountry; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getReturnPolicySeasonalOverride() + public function getReturnShippingFeesAmount() { - return $this->returnPolicySeasonalOverride; + return $this->returnShippingFeesAmount; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride|string $returnPolicySeasonalOverride + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $returnShippingFeesAmount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReturnPolicySeasonalOverride($returnPolicySeasonalOverride) + public function setReturnShippingFeesAmount($returnShippingFeesAmount) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicySeasonalOverride", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $returnPolicySeasonalOverride = self::checkTypes($returnPolicySeasonalOverride, $types); + $returnShippingFeesAmount = self::checkTypes($returnShippingFeesAmount, $types); - $this->returnPolicySeasonalOverride = $returnPolicySeasonalOverride; + $this->returnShippingFeesAmount = $returnShippingFeesAmount; } /** - * @return string|\OpenActive\Models\SchemaOrg\Country + * @return \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null */ - public function getApplicableCountry() + public function getItemDefectReturnLabelSource() { - return $this->applicableCountry; + return $this->itemDefectReturnLabelSource; } /** - * @param string|\OpenActive\Models\SchemaOrg\Country $applicableCountry + * @param \OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration|null $itemDefectReturnLabelSource * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicableCountry($applicableCountry) + public function setItemDefectReturnLabelSource($itemDefectReturnLabelSource) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Enums\SchemaOrg\ReturnLabelSourceEnumeration", + "null", ]; - $applicableCountry = self::checkTypes($applicableCountry, $types); + $itemDefectReturnLabelSource = self::checkTypes($itemDefectReturnLabelSource, $types); - $this->applicableCountry = $applicableCountry; + $this->itemDefectReturnLabelSource = $itemDefectReturnLabelSource; } /** - * @return \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null + * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - public function getReturnFees() + public function getItemCondition() { - return $this->returnFees; + return $this->itemCondition; } /** - * @param \OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration|null $returnFees + * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReturnFees($returnFees) + public function setItemCondition($itemCondition) { $types = [ - "\OpenActive\Enums\SchemaOrg\ReturnFeesEnumeration", + "\OpenActive\Enums\SchemaOrg\OfferItemCondition", "null", ]; - $returnFees = self::checkTypes($returnFees, $types); + $itemCondition = self::checkTypes($itemCondition, $types); - $this->returnFees = $returnFees; + $this->itemCondition = $itemCondition; } } diff --git a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php index 042d983d..ddd8b93f 100644 --- a/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php +++ b/src/Models/SchemaOrg/MerchantReturnPolicySeasonalOverride.php @@ -17,23 +17,15 @@ public static function getType() public static function fieldList() { $fields = [ - "returnPolicyCategory" => "returnPolicyCategory", "startDate" => "startDate", "endDate" => "endDate", + "returnPolicyCategory" => "returnPolicyCategory", "merchantReturnDays" => "merchantReturnDays", ]; return array_merge(parent::fieldList(), $fields); } - /** - * Specifies an applicable return policy (from an enumeration). - * - * - * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null - */ - protected $returnPolicyCategory; - /** * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). * @@ -50,6 +42,14 @@ public static function fieldList() { */ protected $endDate; + /** + * Specifies an applicable return policy (from an enumeration). + * + * + * @var \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null + */ + protected $returnPolicyCategory; + /** * Specifies either a fixed return date or the number of days (from the delivery date) that a product can be returned. Used when the [[returnPolicyCategory]] property is specified as [[MerchantReturnFiniteReturnWindow]]. * @@ -59,44 +59,45 @@ public static function fieldList() { protected $merchantReturnDays; /** - * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null + * @return Date|DateTime|null */ - public function getReturnPolicyCategory() + public function getStartDate() { - return $this->returnPolicyCategory; + return $this->startDate; } /** - * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory + * @param Date|DateTime|null $startDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReturnPolicyCategory($returnPolicyCategory) + public function setStartDate($startDate) { $types = [ - "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration", + "Date", + "DateTime", "null", ]; - $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types); + $startDate = self::checkTypes($startDate, $types); - $this->returnPolicyCategory = $returnPolicyCategory; + $this->startDate = $startDate; } /** * @return Date|DateTime|null */ - public function getStartDate() + public function getEndDate() { - return $this->startDate; + return $this->endDate; } /** - * @param Date|DateTime|null $startDate + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartDate($startDate) + public function setEndDate($endDate) { $types = [ "Date", @@ -104,35 +105,34 @@ public function setStartDate($startDate) "null", ]; - $startDate = self::checkTypes($startDate, $types); + $endDate = self::checkTypes($endDate, $types); - $this->startDate = $startDate; + $this->endDate = $endDate; } /** - * @return Date|DateTime|null + * @return \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null */ - public function getEndDate() + public function getReturnPolicyCategory() { - return $this->endDate; + return $this->returnPolicyCategory; } /** - * @param Date|DateTime|null $endDate + * @param \OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration|null $returnPolicyCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndDate($endDate) + public function setReturnPolicyCategory($returnPolicyCategory) { $types = [ - "Date", - "DateTime", + "\OpenActive\Enums\SchemaOrg\MerchantReturnEnumeration", "null", ]; - $endDate = self::checkTypes($endDate, $types); + $returnPolicyCategory = self::checkTypes($returnPolicyCategory, $types); - $this->endDate = $endDate; + $this->returnPolicyCategory = $returnPolicyCategory; } /** diff --git a/src/Models/SchemaOrg/Message.php b/src/Models/SchemaOrg/Message.php index 6803a9a6..b8a107d7 100644 --- a/src/Models/SchemaOrg/Message.php +++ b/src/Models/SchemaOrg/Message.php @@ -17,121 +17,122 @@ public static function getType() public static function fieldList() { $fields = [ - "bccRecipient" => "bccRecipient", + "toRecipient" => "toRecipient", "recipient" => "recipient", - "dateReceived" => "dateReceived", - "ccRecipient" => "ccRecipient", "messageAttachment" => "messageAttachment", - "toRecipient" => "toRecipient", "dateSent" => "dateSent", - "dateRead" => "dateRead", + "bccRecipient" => "bccRecipient", + "dateReceived" => "dateReceived", + "ccRecipient" => "ccRecipient", "sender" => "sender", + "dateRead" => "dateRead", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of recipient. The recipient blind copied on a message. + * A sub property of recipient. The recipient who was directly sent the message. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $bccRecipient; + protected $toRecipient; /** * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ protected $recipient; /** - * The date/time the message was received if a single recipient exists. + * A CreativeWork attached to the message. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $dateReceived; + protected $messageAttachment; /** - * A sub property of recipient. The recipient copied on a message. + * The date/time at which the message was sent. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @var DateTime|null */ - protected $ccRecipient; + protected $dateSent; /** - * A CreativeWork attached to the message. + * A sub property of recipient. The recipient blind copied on a message. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $messageAttachment; + protected $bccRecipient; /** - * A sub property of recipient. The recipient who was directly sent the message. + * The date/time the message was received if a single recipient exists. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string + * @var DateTime|null */ - protected $toRecipient; + protected $dateReceived; /** - * The date/time at which the message was sent. + * A sub property of recipient. The recipient copied on a message. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|string */ - protected $dateSent; + protected $ccRecipient; /** - * The date/time at which the message has been read by the recipient if a single recipient exists. + * A sub property of participant. The participant who is at the sending end of the action. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $dateRead; + protected $sender; /** - * A sub property of participant. The participant who is at the sending end of the action. + * The date/time at which the message has been read by the recipient if a single recipient exists. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string + * @var Date|DateTime|null */ - protected $sender; + protected $dateRead; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getBccRecipient() + public function getToRecipient() { - return $this->bccRecipient; + return $this->toRecipient; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $bccRecipient + * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $toRecipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBccRecipient($bccRecipient) + public function setToRecipient($toRecipient) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Audience", "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $bccRecipient = self::checkTypes($bccRecipient, $types); + $toRecipient = self::checkTypes($toRecipient, $types); - $this->bccRecipient = $bccRecipient; + $this->toRecipient = $toRecipient; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ public function getRecipient() { @@ -139,17 +140,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRecipient($recipient) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; @@ -159,159 +160,132 @@ public function setRecipient($recipient) } /** - * @return DateTime|null - */ - public function getDateReceived() - { - return $this->dateReceived; - } - - /** - * @param DateTime|null $dateReceived - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setDateReceived($dateReceived) - { - $types = [ - "DateTime", - "null", - ]; - - $dateReceived = self::checkTypes($dateReceived, $types); - - $this->dateReceived = $dateReceived; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getCcRecipient() + public function getMessageAttachment() { - return $this->ccRecipient; + return $this->messageAttachment; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|string $ccRecipient + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $messageAttachment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCcRecipient($ccRecipient) + public function setMessageAttachment($messageAttachment) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $ccRecipient = self::checkTypes($ccRecipient, $types); + $messageAttachment = self::checkTypes($messageAttachment, $types); - $this->ccRecipient = $ccRecipient; + $this->messageAttachment = $messageAttachment; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return DateTime|null */ - public function getMessageAttachment() + public function getDateSent() { - return $this->messageAttachment; + return $this->dateSent; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $messageAttachment + * @param DateTime|null $dateSent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMessageAttachment($messageAttachment) + public function setDateSent($dateSent) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", - "string", + "DateTime", + "null", ]; - $messageAttachment = self::checkTypes($messageAttachment, $types); + $dateSent = self::checkTypes($dateSent, $types); - $this->messageAttachment = $messageAttachment; + $this->dateSent = $dateSent; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getToRecipient() + public function getBccRecipient() { - return $this->toRecipient; + return $this->bccRecipient; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string $toRecipient + * @param \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $bccRecipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setToRecipient($toRecipient) + public function setBccRecipient($bccRecipient) { $types = [ "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Audience", "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $toRecipient = self::checkTypes($toRecipient, $types); + $bccRecipient = self::checkTypes($bccRecipient, $types); - $this->toRecipient = $toRecipient; + $this->bccRecipient = $bccRecipient; } /** * @return DateTime|null */ - public function getDateSent() + public function getDateReceived() { - return $this->dateSent; + return $this->dateReceived; } /** - * @param DateTime|null $dateSent + * @param DateTime|null $dateReceived * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateSent($dateSent) + public function setDateReceived($dateReceived) { $types = [ "DateTime", "null", ]; - $dateSent = self::checkTypes($dateSent, $types); + $dateReceived = self::checkTypes($dateReceived, $types); - $this->dateSent = $dateSent; + $this->dateReceived = $dateReceived; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|string */ - public function getDateRead() + public function getCcRecipient() { - return $this->dateRead; + return $this->ccRecipient; } /** - * @param Date|DateTime|null $dateRead + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|string $ccRecipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateRead($dateRead) + public function setCcRecipient($ccRecipient) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $dateRead = self::checkTypes($dateRead, $types); + $ccRecipient = self::checkTypes($ccRecipient, $types); - $this->dateRead = $dateRead; + $this->ccRecipient = $ccRecipient; } /** @@ -341,4 +315,30 @@ public function setSender($sender) $this->sender = $sender; } + /** + * @return Date|DateTime|null + */ + public function getDateRead() + { + return $this->dateRead; + } + + /** + * @param Date|DateTime|null $dateRead + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setDateRead($dateRead) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $dateRead = self::checkTypes($dateRead, $types); + + $this->dateRead = $dateRead; + } + } diff --git a/src/Models/SchemaOrg/MolecularEntity.php b/src/Models/SchemaOrg/MolecularEntity.php index 4a7fb865..a44b6885 100644 --- a/src/Models/SchemaOrg/MolecularEntity.php +++ b/src/Models/SchemaOrg/MolecularEntity.php @@ -17,28 +17,20 @@ public static function getType() public static function fieldList() { $fields = [ - "inChIKey" => "inChIKey", "iupacName" => "iupacName", - "monoisotopicMolecularWeight" => "monoisotopicMolecularWeight", - "molecularFormula" => "molecularFormula", + "molecularWeight" => "molecularWeight", + "smiles" => "smiles", "potentialUse" => "potentialUse", "chemicalRole" => "chemicalRole", - "molecularWeight" => "molecularWeight", + "inChIKey" => "inChIKey", "inChI" => "inChI", - "smiles" => "smiles", + "monoisotopicMolecularWeight" => "monoisotopicMolecularWeight", + "molecularFormula" => "molecularFormula", ]; return array_merge(parent::fieldList(), $fields); } - /** - * InChIKey is a hashed version of the full InChI (using the SHA-256 algorithm). - * - * - * @var string - */ - protected $inChIKey; - /** * Systematic method of naming chemical compounds as recommended by the International Union of Pure and Applied Chemistry (IUPAC). * @@ -48,20 +40,20 @@ public static function fieldList() { protected $iupacName; /** - * The monoisotopic mass is the sum of the masses of the atoms in a molecule using the unbound, ground-state, rest mass of the principal (most abundant) isotope for each element instead of the isotopic average mass. Please include the units the form '<Number> <unit>', for example '770.230488 g/mol' or as '<QuantitativeValue>. + * This is the molecular weight of the entity being described, not of the parent. Units should be included in the form '<Number> <unit>', for example '12 amu' or as '<QuantitativeValue>. * * * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - protected $monoisotopicMolecularWeight; + protected $molecularWeight; /** - * The empirical formula is the simplest whole number ratio of all the atoms in a molecule. + * A specification in form of a line notation for describing the structure of chemical species using short ASCII strings. Double bond stereochemistry \ indicators may need to be escaped in the string in formats where the backslash is an escape character. * * * @var string */ - protected $molecularFormula; + protected $smiles; /** * Intended use of the BioChemEntity by humans. @@ -80,12 +72,12 @@ public static function fieldList() { protected $chemicalRole; /** - * This is the molecular weight of the entity being described, not of the parent. Units should be included in the form '<Number> <unit>', for example '12 amu' or as '<QuantitativeValue>. + * InChIKey is a hashed version of the full InChI (using the SHA-256 algorithm). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $molecularWeight; + protected $inChIKey; /** * Non-proprietary identifier for molecular entity that can be used in printed and electronic data sources thus enabling easier linking of diverse data compilations. @@ -96,36 +88,20 @@ public static function fieldList() { protected $inChI; /** - * A specification in form of a line notation for describing the structure of chemical species using short ASCII strings. Double bond stereochemistry \ indicators may need to be escaped in the string in formats where the backslash is an escape character. + * The monoisotopic mass is the sum of the masses of the atoms in a molecule using the unbound, ground-state, rest mass of the principal (most abundant) isotope for each element instead of the isotopic average mass. Please include the units in the form '<Number> <unit>', for example '770.230488 g/mol' or as '<QuantitativeValue>. * * - * @var string - */ - protected $smiles; - - /** - * @return string + * @var string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - public function getInChIKey() - { - return $this->inChIKey; - } + protected $monoisotopicMolecularWeight; /** - * @param string $inChIKey - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The empirical formula is the simplest whole number ratio of all the atoms in a molecule. + * + * + * @var string */ - public function setInChIKey($inChIKey) - { - $types = [ - "string", - ]; - - $inChIKey = self::checkTypes($inChIKey, $types); - - $this->inChIKey = $inChIKey; - } + protected $molecularFormula; /** * @return string @@ -154,50 +130,50 @@ public function setIupacName($iupacName) /** * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - public function getMonoisotopicMolecularWeight() + public function getMolecularWeight() { - return $this->monoisotopicMolecularWeight; + return $this->molecularWeight; } /** - * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $monoisotopicMolecularWeight + * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $molecularWeight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight) + public function setMolecularWeight($molecularWeight) { $types = [ "string", "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types); + $molecularWeight = self::checkTypes($molecularWeight, $types); - $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight; + $this->molecularWeight = $molecularWeight; } /** * @return string */ - public function getMolecularFormula() + public function getSmiles() { - return $this->molecularFormula; + return $this->smiles; } /** - * @param string $molecularFormula + * @param string $smiles * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMolecularFormula($molecularFormula) + public function setSmiles($smiles) { $types = [ "string", ]; - $molecularFormula = self::checkTypes($molecularFormula, $types); + $smiles = self::checkTypes($smiles, $types); - $this->molecularFormula = $molecularFormula; + $this->smiles = $smiles; } /** @@ -251,28 +227,27 @@ public function setChemicalRole($chemicalRole) } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getMolecularWeight() + public function getInChIKey() { - return $this->molecularWeight; + return $this->inChIKey; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $molecularWeight + * @param string $inChIKey * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMolecularWeight($molecularWeight) + public function setInChIKey($inChIKey) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $molecularWeight = self::checkTypes($molecularWeight, $types); + $inChIKey = self::checkTypes($inChIKey, $types); - $this->molecularWeight = $molecularWeight; + $this->inChIKey = $inChIKey; } /** @@ -299,28 +274,53 @@ public function setInChI($inChI) $this->inChI = $inChI; } + /** + * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue + */ + public function getMonoisotopicMolecularWeight() + { + return $this->monoisotopicMolecularWeight; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $monoisotopicMolecularWeight + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMonoisotopicMolecularWeight($monoisotopicMolecularWeight) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + ]; + + $monoisotopicMolecularWeight = self::checkTypes($monoisotopicMolecularWeight, $types); + + $this->monoisotopicMolecularWeight = $monoisotopicMolecularWeight; + } + /** * @return string */ - public function getSmiles() + public function getMolecularFormula() { - return $this->smiles; + return $this->molecularFormula; } /** - * @param string $smiles + * @param string $molecularFormula * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSmiles($smiles) + public function setMolecularFormula($molecularFormula) { $types = [ "string", ]; - $smiles = self::checkTypes($smiles, $types); + $molecularFormula = self::checkTypes($molecularFormula, $types); - $this->smiles = $smiles; + $this->molecularFormula = $molecularFormula; } } diff --git a/src/Models/SchemaOrg/MonetaryAmount.php b/src/Models/SchemaOrg/MonetaryAmount.php index 016e1527..5f9d3c38 100644 --- a/src/Models/SchemaOrg/MonetaryAmount.php +++ b/src/Models/SchemaOrg/MonetaryAmount.php @@ -17,17 +17,33 @@ public static function getType() public static function fieldList() { $fields = [ + "currency" => "currency", + "validThrough" => "validThrough", "maxValue" => "maxValue", "minValue" => "minValue", "validFrom" => "validFrom", "value" => "value", - "currency" => "currency", - "validThrough" => "validThrough", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". + * + * + * @var string + */ + protected $currency; + + /** + * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. + * + * + * @var Date|DateTime|null + */ + protected $validThrough; + /** * The upper value of some characteristic or property. * @@ -53,28 +69,62 @@ public static function fieldList() { protected $validFrom; /** - * The value of the quantitative value or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text;', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. + * The value of a [[QuantitativeValue]] (including [[Observation]]) or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * - * @var string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @var Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null */ protected $value; /** - * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". - * - * - * @var string + * @return string */ - protected $currency; + public function getCurrency() + { + return $this->currency; + } /** - * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. - * - * - * @var Date|DateTime|null + * @param string $currency + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $validThrough; + public function setCurrency($currency) + { + $types = [ + "string", + ]; + + $currency = self::checkTypes($currency, $types); + + $this->currency = $currency; + } + + /** + * @return Date|DateTime|null + */ + public function getValidThrough() + { + return $this->validThrough; + } + + /** + * @param Date|DateTime|null $validThrough + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValidThrough($validThrough) + { + $types = [ + "Date", + "DateTime", + "null", + ]; + + $validThrough = self::checkTypes($validThrough, $types); + + $this->validThrough = $validThrough; + } /** * @return Number|null @@ -153,7 +203,7 @@ public function setValidFrom($validFrom) } /** - * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @return Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null */ public function getValue() { @@ -161,17 +211,17 @@ public function getValue() } /** - * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value + * @param Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null $value * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setValue($value) { $types = [ - "string", "Number", "\OpenActive\Models\SchemaOrg\StructuredValue", "bool", + "string", "null", ]; @@ -180,54 +230,4 @@ public function setValue($value) $this->value = $value; } - /** - * @return string - */ - public function getCurrency() - { - return $this->currency; - } - - /** - * @param string $currency - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setCurrency($currency) - { - $types = [ - "string", - ]; - - $currency = self::checkTypes($currency, $types); - - $this->currency = $currency; - } - - /** - * @return Date|DateTime|null - */ - public function getValidThrough() - { - return $this->validThrough; - } - - /** - * @param Date|DateTime|null $validThrough - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setValidThrough($validThrough) - { - $types = [ - "Date", - "DateTime", - "null", - ]; - - $validThrough = self::checkTypes($validThrough, $types); - - $this->validThrough = $validThrough; - } - } diff --git a/src/Models/SchemaOrg/MonetaryAmountDistribution.php b/src/Models/SchemaOrg/MonetaryAmountDistribution.php index 1de2d02e..002b3783 100644 --- a/src/Models/SchemaOrg/MonetaryAmountDistribution.php +++ b/src/Models/SchemaOrg/MonetaryAmountDistribution.php @@ -24,7 +24,7 @@ public static function fieldList() { } /** - * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * The currency in which the monetary amount is expressed.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * * @var string diff --git a/src/Models/SchemaOrg/MonetaryGrant.php b/src/Models/SchemaOrg/MonetaryGrant.php index fd9e0a14..85b9513b 100644 --- a/src/Models/SchemaOrg/MonetaryGrant.php +++ b/src/Models/SchemaOrg/MonetaryGrant.php @@ -28,7 +28,7 @@ public static function fieldList() { * A person or organization that supports (sponsors) something through some kind of financial contribution. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ protected $funder; @@ -36,12 +36,12 @@ public static function fieldList() { * The amount of money. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ protected $amount; /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ public function getFunder() { @@ -49,15 +49,15 @@ public function getFunder() } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; @@ -67,7 +67,7 @@ public function setFunder($funder) } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ public function getAmount() { @@ -75,16 +75,16 @@ public function getAmount() } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAmount($amount) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "Number", "null", ]; diff --git a/src/Models/SchemaOrg/MoneyTransfer.php b/src/Models/SchemaOrg/MoneyTransfer.php index 840cab16..5db69c9d 100644 --- a/src/Models/SchemaOrg/MoneyTransfer.php +++ b/src/Models/SchemaOrg/MoneyTransfer.php @@ -36,7 +36,7 @@ public static function fieldList() { * The amount of money. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ protected $amount; @@ -66,7 +66,7 @@ public function setBeneficiaryBank($beneficiaryBank) } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null */ public function getAmount() { @@ -74,16 +74,16 @@ public function getAmount() } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $amount + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $amount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAmount($amount) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "Number", "null", ]; diff --git a/src/Models/SchemaOrg/MortgageLoan.php b/src/Models/SchemaOrg/MortgageLoan.php index ced7eb4d..cd7c3768 100644 --- a/src/Models/SchemaOrg/MortgageLoan.php +++ b/src/Models/SchemaOrg/MortgageLoan.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "loanMortgageMandateAmount" => "loanMortgageMandateAmount", "domiciledMortgage" => "domiciledMortgage", + "loanMortgageMandateAmount" => "loanMortgageMandateAmount", ]; return array_merge(parent::fieldList(), $fields); } /** - * Amount of mortgage mandate that can be converted into a proper mortgage at a later stage. + * Whether borrower is a resident of the jurisdiction where the property is located. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var bool|null */ - protected $loanMortgageMandateAmount; + protected $domiciledMortgage; /** - * Whether borrower is a resident of the jurisdiction where the property is located. + * Amount of mortgage mandate that can be converted into a proper mortgage at a later stage. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $domiciledMortgage; + protected $loanMortgageMandateAmount; /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return bool|null */ - public function getLoanMortgageMandateAmount() + public function getDomiciledMortgage() { - return $this->loanMortgageMandateAmount; + return $this->domiciledMortgage; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $loanMortgageMandateAmount + * @param bool|null $domiciledMortgage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLoanMortgageMandateAmount($loanMortgageMandateAmount) + public function setDomiciledMortgage($domiciledMortgage) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "bool", + "null", ]; - $loanMortgageMandateAmount = self::checkTypes($loanMortgageMandateAmount, $types); + $domiciledMortgage = self::checkTypes($domiciledMortgage, $types); - $this->loanMortgageMandateAmount = $loanMortgageMandateAmount; + $this->domiciledMortgage = $domiciledMortgage; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getDomiciledMortgage() + public function getLoanMortgageMandateAmount() { - return $this->domiciledMortgage; + return $this->loanMortgageMandateAmount; } /** - * @param bool|null $domiciledMortgage + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $loanMortgageMandateAmount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDomiciledMortgage($domiciledMortgage) + public function setLoanMortgageMandateAmount($loanMortgageMandateAmount) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", ]; - $domiciledMortgage = self::checkTypes($domiciledMortgage, $types); + $loanMortgageMandateAmount = self::checkTypes($loanMortgageMandateAmount, $types); - $this->domiciledMortgage = $domiciledMortgage; + $this->loanMortgageMandateAmount = $loanMortgageMandateAmount; } } diff --git a/src/Models/SchemaOrg/MoveAction.php b/src/Models/SchemaOrg/MoveAction.php index 03efe8fd..ee53b750 100644 --- a/src/Models/SchemaOrg/MoveAction.php +++ b/src/Models/SchemaOrg/MoveAction.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "fromLocation" => "fromLocation", "toLocation" => "toLocation", + "fromLocation" => "fromLocation", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of location. The original location of the object or the agent before the action. + * A sub property of location. The final location of the object or the agent after the action. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $fromLocation; + protected $toLocation; /** - * A sub property of location. The final location of the object or the agent after the action. + * A sub property of location. The original location of the object or the agent before the action. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $toLocation; + protected $fromLocation; /** * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getFromLocation() + public function getToLocation() { - return $this->fromLocation; + return $this->toLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation + * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFromLocation($fromLocation) + public function setToLocation($toLocation) { $types = [ "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $fromLocation = self::checkTypes($fromLocation, $types); + $toLocation = self::checkTypes($toLocation, $types); - $this->fromLocation = $fromLocation; + $this->toLocation = $toLocation; } /** * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getToLocation() + public function getFromLocation() { - return $this->toLocation; + return $this->fromLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation + * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setToLocation($toLocation) + public function setFromLocation($fromLocation) { $types = [ "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $toLocation = self::checkTypes($toLocation, $types); + $fromLocation = self::checkTypes($fromLocation, $types); - $this->toLocation = $toLocation; + $this->fromLocation = $fromLocation; } } diff --git a/src/Models/SchemaOrg/Movie.php b/src/Models/SchemaOrg/Movie.php index c86efcb6..1aca978f 100644 --- a/src/Models/SchemaOrg/Movie.php +++ b/src/Models/SchemaOrg/Movie.php @@ -17,97 +17,92 @@ public static function getType() public static function fieldList() { $fields = [ - "countryOfOrigin" => "countryOfOrigin", - "director" => "director", - "titleEIDR" => "titleEIDR", - "subtitleLanguage" => "subtitleLanguage", - "actor" => "actor", "trailer" => "trailer", - "duration" => "duration", + "actor" => "actor", + "subtitleLanguage" => "subtitleLanguage", "productionCompany" => "productionCompany", - "actors" => "actors", "musicBy" => "musicBy", + "countryOfOrigin" => "countryOfOrigin", "directors" => "directors", + "director" => "director", + "actors" => "actors", + "duration" => "duration", + "titleEIDR" => "titleEIDR", ]; return array_merge(parent::fieldList(), $fields); } /** - * The country of origin of something, including products as well as creative works such as movie and TV content. - * - * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. - * - * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $countryOfOrigin; + protected $trailer; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $director; + protected $actor; /** - * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television. - * - * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]]. - * - * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. - * + * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $titleEIDR; + protected $subtitleLanguage; /** - * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $subtitleLanguage; + protected $productionCompany; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * The composer of the soundtrack. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $actor; + protected $musicBy; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * The country of origin of something, including products as well as creative works such as movie and TV content. + * + * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. + * + * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $trailer; + protected $countryOfOrigin; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $duration; + protected $directors; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $productionCompany; + protected $director; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string @@ -115,219 +110,225 @@ public static function fieldList() { protected $actors; /** - * The composer of the soundtrack. + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var DateInterval|string|null */ - protected $musicBy; + protected $duration; /** - * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. + * An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing at the most general/abstract level, a work of film or television. + * + * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]]. + * + * Since schema.org types like [[Movie]], [[TVEpisode]], [[TVSeason]], and [[TVSeries]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. + * * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $directors; + protected $titleEIDR; /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getCountryOfOrigin() + public function getTrailer() { - return $this->countryOfOrigin; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfOrigin($countryOfOrigin) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $trailer = self::checkTypes($trailer, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->trailer = $trailer; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDirector() + public function getActor() { - return $this->director; + return $this->actor; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param \OpenActive\Models\SchemaOrg\Person|string $actor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setActor($actor) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $director = self::checkTypes($director, $types); + $actor = self::checkTypes($actor, $types); - $this->director = $director; + $this->actor = $actor; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getTitleEIDR() + public function getSubtitleLanguage() { - return $this->titleEIDR; + return $this->subtitleLanguage; } /** - * @param string $titleEIDR + * @param string|\OpenActive\Models\SchemaOrg\Language $subtitleLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTitleEIDR($titleEIDR) + public function setSubtitleLanguage($subtitleLanguage) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $titleEIDR = self::checkTypes($titleEIDR, $types); + $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); - $this->titleEIDR = $titleEIDR; + $this->subtitleLanguage = $subtitleLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getSubtitleLanguage() + public function getProductionCompany() { - return $this->subtitleLanguage; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage + * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubtitleLanguage($subtitleLanguage) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->subtitleLanguage = $subtitleLanguage; + $this->productionCompany = $productionCompany; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getActor() + public function getMusicBy() { - return $this->actor; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setMusicBy($musicBy) { $types = [ + "\OpenActive\Models\SchemaOrg\MusicGroup", "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actor = self::checkTypes($actor, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->actor = $actor; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getTrailer() + public function getCountryOfOrigin() { - return $this->trailer; + return $this->countryOfOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setCountryOfOrigin($countryOfOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); - $this->trailer = $trailer; + $this->countryOfOrigin = $countryOfOrigin; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDuration() + public function getDirectors() { - return $this->duration; + return $this->directors; } /** - * @param DateInterval|string|null $duration + * @param \OpenActive\Models\SchemaOrg\Person|string $directors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setDirectors($directors) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $duration = self::checkTypes($duration, $types); + $directors = self::checkTypes($directors, $types); - $this->duration = $duration; + $this->directors = $directors; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getProductionCompany() + public function getDirector() { - return $this->productionCompany; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionCompany($productionCompany) + public function setDirector($director) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $director = self::checkTypes($director, $types); - $this->productionCompany = $productionCompany; + $this->director = $director; } /** @@ -356,54 +357,53 @@ public function setActors($actors) } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return DateInterval|string|null */ - public function getMusicBy() + public function getDuration() { - return $this->musicBy; + return $this->duration; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param DateInterval|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setDuration($duration) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "DateInterval", "string", + "null", ]; - $musicBy = self::checkTypes($musicBy, $types); + $duration = self::checkTypes($duration, $types); - $this->musicBy = $musicBy; + $this->duration = $duration; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getDirectors() + public function getTitleEIDR() { - return $this->directors; + return $this->titleEIDR; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @param string $titleEIDR * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirectors($directors) + public function setTitleEIDR($titleEIDR) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $directors = self::checkTypes($directors, $types); + $titleEIDR = self::checkTypes($titleEIDR, $types); - $this->directors = $directors; + $this->titleEIDR = $titleEIDR; } } diff --git a/src/Models/SchemaOrg/MovieSeries.php b/src/Models/SchemaOrg/MovieSeries.php index e262dec2..00136798 100644 --- a/src/Models/SchemaOrg/MovieSeries.php +++ b/src/Models/SchemaOrg/MovieSeries.php @@ -17,28 +17,28 @@ public static function getType() public static function fieldList() { $fields = [ - "director" => "director", - "actor" => "actor", "trailer" => "trailer", + "actor" => "actor", "productionCompany" => "productionCompany", - "actors" => "actors", "musicBy" => "musicBy", "directors" => "directors", + "director" => "director", + "actors" => "actors", ]; return array_merge(parent::fieldList(), $fields); } /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $director; + protected $trailer; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string @@ -46,68 +46,68 @@ public static function fieldList() { protected $actor; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $trailer; + protected $productionCompany; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * The composer of the soundtrack. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $productionCompany; + protected $musicBy; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $actors; + protected $directors; /** - * The composer of the soundtrack. + * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $musicBy; + protected $director; /** - * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $directors; + protected $actors; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getDirector() + public function getTrailer() { - return $this->director; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $director = self::checkTypes($director, $types); + $trailer = self::checkTypes($trailer, $types); - $this->director = $director; + $this->trailer = $trailer; } /** @@ -136,129 +136,129 @@ public function setActor($actor) } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getTrailer() + public function getProductionCompany() { - return $this->trailer; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrailer($trailer) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->trailer = $trailer; + $this->productionCompany = $productionCompany; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getProductionCompany() + public function getMusicBy() { - return $this->productionCompany; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionCompany($productionCompany) + public function setMusicBy($musicBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->productionCompany = $productionCompany; + $this->musicBy = $musicBy; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getActors() + public function getDirectors() { - return $this->actors; + return $this->directors; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param \OpenActive\Models\SchemaOrg\Person|string $directors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setDirectors($directors) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actors = self::checkTypes($actors, $types); + $directors = self::checkTypes($directors, $types); - $this->actors = $actors; + $this->directors = $directors; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getMusicBy() + public function getDirector() { - return $this->musicBy; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setDirector($director) { $types = [ "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $director = self::checkTypes($director, $types); - $this->musicBy = $musicBy; + $this->director = $director; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDirectors() + public function getActors() { - return $this->directors; + return $this->actors; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @param \OpenActive\Models\SchemaOrg\Person|string $actors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirectors($directors) + public function setActors($actors) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $directors = self::checkTypes($directors, $types); + $actors = self::checkTypes($actors, $types); - $this->directors = $directors; + $this->actors = $actors; } } diff --git a/src/Models/SchemaOrg/MovieTheater.php b/src/Models/SchemaOrg/MovieTheater.php index e895b704..00b8bf52 100644 --- a/src/Models/SchemaOrg/MovieTheater.php +++ b/src/Models/SchemaOrg/MovieTheater.php @@ -5,7 +5,7 @@ /** * */ -class MovieTheater extends \OpenActive\Models\SchemaOrg\CivicStructure +class MovieTheater extends \OpenActive\Models\SchemaOrg\EntertainmentBusiness { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/Muscle.php b/src/Models/SchemaOrg/Muscle.php index c9754755..28020bd8 100644 --- a/src/Models/SchemaOrg/Muscle.php +++ b/src/Models/SchemaOrg/Muscle.php @@ -18,10 +18,10 @@ public static function getType() public static function fieldList() { $fields = [ "insertion" => "insertion", - "antagonist" => "antagonist", - "nerve" => "nerve", "bloodSupply" => "bloodSupply", "muscleAction" => "muscleAction", + "nerve" => "nerve", + "antagonist" => "antagonist", ]; return array_merge(parent::fieldList(), $fields); @@ -36,36 +36,36 @@ public static function fieldList() { protected $insertion; /** - * The muscle whose action counteracts the specified muscle. + * The blood vessel that carries blood from the heart to the muscle. * * - * @var \OpenActive\Models\SchemaOrg\Muscle|string + * @var \OpenActive\Models\SchemaOrg\Vessel|string */ - protected $antagonist; + protected $bloodSupply; /** - * The underlying innervation associated with the muscle. + * The movement the muscle generates. * * - * @var \OpenActive\Models\SchemaOrg\Nerve|string + * @var string */ - protected $nerve; + protected $muscleAction; /** - * The blood vessel that carries blood from the heart to the muscle. + * The underlying innervation associated with the muscle. * * - * @var \OpenActive\Models\SchemaOrg\Vessel|string + * @var \OpenActive\Models\SchemaOrg\Nerve|string */ - protected $bloodSupply; + protected $nerve; /** - * The movement the muscle generates. + * The muscle whose action counteracts the specified muscle. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Muscle|string */ - protected $muscleAction; + protected $antagonist; /** * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string @@ -93,102 +93,102 @@ public function setInsertion($insertion) } /** - * @return \OpenActive\Models\SchemaOrg\Muscle|string + * @return \OpenActive\Models\SchemaOrg\Vessel|string */ - public function getAntagonist() + public function getBloodSupply() { - return $this->antagonist; + return $this->bloodSupply; } /** - * @param \OpenActive\Models\SchemaOrg\Muscle|string $antagonist + * @param \OpenActive\Models\SchemaOrg\Vessel|string $bloodSupply * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAntagonist($antagonist) + public function setBloodSupply($bloodSupply) { $types = [ - "\OpenActive\Models\SchemaOrg\Muscle", + "\OpenActive\Models\SchemaOrg\Vessel", "string", ]; - $antagonist = self::checkTypes($antagonist, $types); + $bloodSupply = self::checkTypes($bloodSupply, $types); - $this->antagonist = $antagonist; + $this->bloodSupply = $bloodSupply; } /** - * @return \OpenActive\Models\SchemaOrg\Nerve|string + * @return string */ - public function getNerve() + public function getMuscleAction() { - return $this->nerve; + return $this->muscleAction; } /** - * @param \OpenActive\Models\SchemaOrg\Nerve|string $nerve + * @param string $muscleAction * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNerve($nerve) + public function setMuscleAction($muscleAction) { $types = [ - "\OpenActive\Models\SchemaOrg\Nerve", "string", ]; - $nerve = self::checkTypes($nerve, $types); + $muscleAction = self::checkTypes($muscleAction, $types); - $this->nerve = $nerve; + $this->muscleAction = $muscleAction; } /** - * @return \OpenActive\Models\SchemaOrg\Vessel|string + * @return \OpenActive\Models\SchemaOrg\Nerve|string */ - public function getBloodSupply() + public function getNerve() { - return $this->bloodSupply; + return $this->nerve; } /** - * @param \OpenActive\Models\SchemaOrg\Vessel|string $bloodSupply + * @param \OpenActive\Models\SchemaOrg\Nerve|string $nerve * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBloodSupply($bloodSupply) + public function setNerve($nerve) { $types = [ - "\OpenActive\Models\SchemaOrg\Vessel", + "\OpenActive\Models\SchemaOrg\Nerve", "string", ]; - $bloodSupply = self::checkTypes($bloodSupply, $types); + $nerve = self::checkTypes($nerve, $types); - $this->bloodSupply = $bloodSupply; + $this->nerve = $nerve; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Muscle|string */ - public function getMuscleAction() + public function getAntagonist() { - return $this->muscleAction; + return $this->antagonist; } /** - * @param string $muscleAction + * @param \OpenActive\Models\SchemaOrg\Muscle|string $antagonist * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMuscleAction($muscleAction) + public function setAntagonist($antagonist) { $types = [ + "\OpenActive\Models\SchemaOrg\Muscle", "string", ]; - $muscleAction = self::checkTypes($muscleAction, $types); + $antagonist = self::checkTypes($antagonist, $types); - $this->muscleAction = $muscleAction; + $this->antagonist = $antagonist; } } diff --git a/src/Models/SchemaOrg/MusicAlbum.php b/src/Models/SchemaOrg/MusicAlbum.php index 004dcd17..6fdf7843 100644 --- a/src/Models/SchemaOrg/MusicAlbum.php +++ b/src/Models/SchemaOrg/MusicAlbum.php @@ -17,22 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "albumProductionType" => "albumProductionType", + "byArtist" => "byArtist", "albumReleaseType" => "albumReleaseType", + "albumProductionType" => "albumProductionType", "albumRelease" => "albumRelease", - "byArtist" => "byArtist", ]; return array_merge(parent::fieldList(), $fields); } /** - * Classification of the album by it's type of content: soundtrack, live album, studio album, etc. + * The artist that performed this album or recording. * * - * @var \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $albumProductionType; + protected $byArtist; /** * The kind of release which this album is: single, EP or album. @@ -43,44 +43,45 @@ public static function fieldList() { protected $albumReleaseType; /** - * A release of this album. + * Classification of the album by its type of content: soundtrack, live album, studio album, etc. * * - * @var \OpenActive\Models\SchemaOrg\MusicRelease|string + * @var \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null */ - protected $albumRelease; + protected $albumProductionType; /** - * The artist that performed this album or recording. + * A release of this album. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\MusicRelease|string */ - protected $byArtist; + protected $albumRelease; /** - * @return \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getAlbumProductionType() + public function getByArtist() { - return $this->albumProductionType; + return $this->byArtist; } /** - * @param \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null $albumProductionType + * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $byArtist * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlbumProductionType($albumProductionType) + public function setByArtist($byArtist) { $types = [ - "\OpenActive\Enums\SchemaOrg\MusicAlbumProductionType", - "null", + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $albumProductionType = self::checkTypes($albumProductionType, $types); + $byArtist = self::checkTypes($byArtist, $types); - $this->albumProductionType = $albumProductionType; + $this->byArtist = $byArtist; } /** @@ -109,54 +110,53 @@ public function setAlbumReleaseType($albumReleaseType) } /** - * @return \OpenActive\Models\SchemaOrg\MusicRelease|string + * @return \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null */ - public function getAlbumRelease() + public function getAlbumProductionType() { - return $this->albumRelease; + return $this->albumProductionType; } /** - * @param \OpenActive\Models\SchemaOrg\MusicRelease|string $albumRelease + * @param \OpenActive\Enums\SchemaOrg\MusicAlbumProductionType|null $albumProductionType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlbumRelease($albumRelease) + public function setAlbumProductionType($albumProductionType) { $types = [ - "\OpenActive\Models\SchemaOrg\MusicRelease", - "string", + "\OpenActive\Enums\SchemaOrg\MusicAlbumProductionType", + "null", ]; - $albumRelease = self::checkTypes($albumRelease, $types); + $albumProductionType = self::checkTypes($albumProductionType, $types); - $this->albumRelease = $albumRelease; + $this->albumProductionType = $albumProductionType; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\MusicRelease|string */ - public function getByArtist() + public function getAlbumRelease() { - return $this->byArtist; + return $this->albumRelease; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $byArtist + * @param \OpenActive\Models\SchemaOrg\MusicRelease|string $albumRelease * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByArtist($byArtist) + public function setAlbumRelease($albumRelease) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\MusicRelease", "string", ]; - $byArtist = self::checkTypes($byArtist, $types); + $albumRelease = self::checkTypes($albumRelease, $types); - $this->byArtist = $byArtist; + $this->albumRelease = $albumRelease; } } diff --git a/src/Models/SchemaOrg/MusicComposition.php b/src/Models/SchemaOrg/MusicComposition.php index c1427176..29a6b157 100644 --- a/src/Models/SchemaOrg/MusicComposition.php +++ b/src/Models/SchemaOrg/MusicComposition.php @@ -17,347 +17,347 @@ public static function getType() public static function fieldList() { $fields = [ + "lyrics" => "lyrics", + "musicArrangement" => "musicArrangement", + "firstPerformance" => "firstPerformance", + "lyricist" => "lyricist", "iswcCode" => "iswcCode", - "composer" => "composer", "musicCompositionForm" => "musicCompositionForm", - "includedComposition" => "includedComposition", - "recordedAs" => "recordedAs", - "firstPerformance" => "firstPerformance", - "musicArrangement" => "musicArrangement", - "lyrics" => "lyrics", + "composer" => "composer", "musicalKey" => "musicalKey", - "lyricist" => "lyricist", + "recordedAs" => "recordedAs", + "includedComposition" => "includedComposition", ]; return array_merge(parent::fieldList(), $fields); } /** - * The International Standard Musical Work Code for the composition. + * The words in the song. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $iswcCode; + protected $lyrics; /** - * The person or organization who wrote a composition, or who is the composer of a work performed at some event. + * An arrangement derived from the composition. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\MusicComposition|string */ - protected $composer; + protected $musicArrangement; /** - * The type of composition (e.g. overture, sonata, symphony, etc.). + * The date and place the work was first performed. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $musicCompositionForm; + protected $firstPerformance; /** - * Smaller compositions included in this work (e.g. a movement in a symphony). + * The person who wrote the words. * * - * @var \OpenActive\Models\SchemaOrg\MusicComposition|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $includedComposition; + protected $lyricist; /** - * An audio recording of the work. + * The International Standard Musical Work Code for the composition. * * - * @var \OpenActive\Models\SchemaOrg\MusicRecording|string + * @var string */ - protected $recordedAs; + protected $iswcCode; /** - * The date and place the work was first performed. + * The type of composition (e.g. overture, sonata, symphony, etc.). * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var string */ - protected $firstPerformance; + protected $musicCompositionForm; /** - * An arrangement derived from the composition. + * The person or organization who wrote a composition, or who is the composer of a work performed at some event. * * - * @var \OpenActive\Models\SchemaOrg\MusicComposition|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $musicArrangement; + protected $composer; /** - * The words in the song. + * The key, mode, or scale this composition uses. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string */ - protected $lyrics; + protected $musicalKey; /** - * The key, mode, or scale this composition uses. + * An audio recording of the work. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\MusicRecording|string */ - protected $musicalKey; + protected $recordedAs; /** - * The person who wrote the words. + * Smaller compositions included in this work (e.g. a movement in a symphony). * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\MusicComposition|string */ - protected $lyricist; + protected $includedComposition; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getIswcCode() + public function getLyrics() { - return $this->iswcCode; + return $this->lyrics; } /** - * @param string $iswcCode + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $lyrics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIswcCode($iswcCode) + public function setLyrics($lyrics) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $iswcCode = self::checkTypes($iswcCode, $types); + $lyrics = self::checkTypes($lyrics, $types); - $this->iswcCode = $iswcCode; + $this->lyrics = $lyrics; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\MusicComposition|string */ - public function getComposer() + public function getMusicArrangement() { - return $this->composer; + return $this->musicArrangement; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer + * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $musicArrangement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setComposer($composer) + public function setMusicArrangement($musicArrangement) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\MusicComposition", "string", ]; - $composer = self::checkTypes($composer, $types); + $musicArrangement = self::checkTypes($musicArrangement, $types); - $this->composer = $composer; + $this->musicArrangement = $musicArrangement; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getMusicCompositionForm() + public function getFirstPerformance() { - return $this->musicCompositionForm; + return $this->firstPerformance; } /** - * @param string $musicCompositionForm + * @param \OpenActive\Models\SchemaOrg\Event|string $firstPerformance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicCompositionForm($musicCompositionForm) + public function setFirstPerformance($firstPerformance) { $types = [ + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $musicCompositionForm = self::checkTypes($musicCompositionForm, $types); + $firstPerformance = self::checkTypes($firstPerformance, $types); - $this->musicCompositionForm = $musicCompositionForm; + $this->firstPerformance = $firstPerformance; } /** - * @return \OpenActive\Models\SchemaOrg\MusicComposition|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getIncludedComposition() + public function getLyricist() { - return $this->includedComposition; + return $this->lyricist; } /** - * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $includedComposition + * @param \OpenActive\Models\SchemaOrg\Person|string $lyricist * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludedComposition($includedComposition) + public function setLyricist($lyricist) { $types = [ - "\OpenActive\Models\SchemaOrg\MusicComposition", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $includedComposition = self::checkTypes($includedComposition, $types); + $lyricist = self::checkTypes($lyricist, $types); - $this->includedComposition = $includedComposition; + $this->lyricist = $lyricist; } /** - * @return \OpenActive\Models\SchemaOrg\MusicRecording|string + * @return string */ - public function getRecordedAs() + public function getIswcCode() { - return $this->recordedAs; + return $this->iswcCode; } /** - * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $recordedAs + * @param string $iswcCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecordedAs($recordedAs) + public function setIswcCode($iswcCode) { $types = [ - "\OpenActive\Models\SchemaOrg\MusicRecording", "string", ]; - $recordedAs = self::checkTypes($recordedAs, $types); + $iswcCode = self::checkTypes($iswcCode, $types); - $this->recordedAs = $recordedAs; + $this->iswcCode = $iswcCode; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return string */ - public function getFirstPerformance() + public function getMusicCompositionForm() { - return $this->firstPerformance; + return $this->musicCompositionForm; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $firstPerformance + * @param string $musicCompositionForm * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFirstPerformance($firstPerformance) + public function setMusicCompositionForm($musicCompositionForm) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $firstPerformance = self::checkTypes($firstPerformance, $types); + $musicCompositionForm = self::checkTypes($musicCompositionForm, $types); - $this->firstPerformance = $firstPerformance; + $this->musicCompositionForm = $musicCompositionForm; } /** - * @return \OpenActive\Models\SchemaOrg\MusicComposition|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getMusicArrangement() + public function getComposer() { - return $this->musicArrangement; + return $this->composer; } /** - * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $musicArrangement + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $composer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicArrangement($musicArrangement) + public function setComposer($composer) { $types = [ - "\OpenActive\Models\SchemaOrg\MusicComposition", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $musicArrangement = self::checkTypes($musicArrangement, $types); + $composer = self::checkTypes($composer, $types); - $this->musicArrangement = $musicArrangement; + $this->composer = $composer; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getLyrics() + public function getMusicalKey() { - return $this->lyrics; + return $this->musicalKey; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $lyrics + * @param string $musicalKey * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLyrics($lyrics) + public function setMusicalKey($musicalKey) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $lyrics = self::checkTypes($lyrics, $types); + $musicalKey = self::checkTypes($musicalKey, $types); - $this->lyrics = $lyrics; + $this->musicalKey = $musicalKey; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MusicRecording|string */ - public function getMusicalKey() + public function getRecordedAs() { - return $this->musicalKey; + return $this->recordedAs; } /** - * @param string $musicalKey + * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $recordedAs * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicalKey($musicalKey) + public function setRecordedAs($recordedAs) { $types = [ + "\OpenActive\Models\SchemaOrg\MusicRecording", "string", ]; - $musicalKey = self::checkTypes($musicalKey, $types); + $recordedAs = self::checkTypes($recordedAs, $types); - $this->musicalKey = $musicalKey; + $this->recordedAs = $recordedAs; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\MusicComposition|string */ - public function getLyricist() + public function getIncludedComposition() { - return $this->lyricist; + return $this->includedComposition; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $lyricist + * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $includedComposition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLyricist($lyricist) + public function setIncludedComposition($includedComposition) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\MusicComposition", "string", ]; - $lyricist = self::checkTypes($lyricist, $types); + $includedComposition = self::checkTypes($includedComposition, $types); - $this->lyricist = $lyricist; + $this->includedComposition = $includedComposition; } } diff --git a/src/Models/SchemaOrg/MusicGroup.php b/src/Models/SchemaOrg/MusicGroup.php index 6d520149..564c9c89 100644 --- a/src/Models/SchemaOrg/MusicGroup.php +++ b/src/Models/SchemaOrg/MusicGroup.php @@ -17,24 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ - "tracks" => "tracks", + "album" => "album", "genre" => "genre", - "musicGroupMember" => "musicGroupMember", - "albums" => "albums", "track" => "track", - "album" => "album", + "albums" => "albums", + "musicGroupMember" => "musicGroupMember", + "tracks" => "tracks", ]; return array_merge(parent::fieldList(), $fields); } /** - * A music recording (track)—usually a single song. + * A music album. * * - * @var \OpenActive\Models\SchemaOrg\MusicRecording|string + * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string */ - protected $tracks; + protected $album; /** * Genre of the creative work, broadcast channel or group. @@ -45,12 +45,12 @@ public static function fieldList() { protected $genre; /** - * A member of a music group—for example, John, Paul, George, or Ringo. + * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string */ - protected $musicGroupMember; + protected $track; /** * A collection of music albums. @@ -61,44 +61,44 @@ public static function fieldList() { protected $albums; /** - * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording. + * A member of a music group—for example, John, Paul, George, or Ringo. * * - * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $track; + protected $musicGroupMember; /** - * A music album. + * A music recording (track)—usually a single song. * * - * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string + * @var \OpenActive\Models\SchemaOrg\MusicRecording|string */ - protected $album; + protected $tracks; /** - * @return \OpenActive\Models\SchemaOrg\MusicRecording|string + * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string */ - public function getTracks() + public function getAlbum() { - return $this->tracks; + return $this->album; } /** - * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks + * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $album * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTracks($tracks) + public function setAlbum($album) { $types = [ - "\OpenActive\Models\SchemaOrg\MusicRecording", + "\OpenActive\Models\SchemaOrg\MusicAlbum", "string", ]; - $tracks = self::checkTypes($tracks, $types); + $album = self::checkTypes($album, $types); - $this->tracks = $tracks; + $this->album = $album; } /** @@ -126,28 +126,29 @@ public function setGenre($genre) } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string */ - public function getMusicGroupMember() + public function getTrack() { - return $this->musicGroupMember; + return $this->track; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $musicGroupMember + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string $track * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicGroupMember($musicGroupMember) + public function setTrack($track) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\MusicRecording", "string", ]; - $musicGroupMember = self::checkTypes($musicGroupMember, $types); + $track = self::checkTypes($track, $types); - $this->musicGroupMember = $musicGroupMember; + $this->track = $track; } /** @@ -176,54 +177,53 @@ public function setAlbums($albums) } /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getTrack() + public function getMusicGroupMember() { - return $this->track; + return $this->musicGroupMember; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string $track + * @param \OpenActive\Models\SchemaOrg\Person|string $musicGroupMember * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrack($track) + public function setMusicGroupMember($musicGroupMember) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", - "\OpenActive\Models\SchemaOrg\MusicRecording", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $track = self::checkTypes($track, $types); + $musicGroupMember = self::checkTypes($musicGroupMember, $types); - $this->track = $track; + $this->musicGroupMember = $musicGroupMember; } /** - * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string + * @return \OpenActive\Models\SchemaOrg\MusicRecording|string */ - public function getAlbum() + public function getTracks() { - return $this->album; + return $this->tracks; } /** - * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $album + * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlbum($album) + public function setTracks($tracks) { $types = [ - "\OpenActive\Models\SchemaOrg\MusicAlbum", + "\OpenActive\Models\SchemaOrg\MusicRecording", "string", ]; - $album = self::checkTypes($album, $types); + $tracks = self::checkTypes($tracks, $types); - $this->album = $album; + $this->tracks = $tracks; } } diff --git a/src/Models/SchemaOrg/MusicPlaylist.php b/src/Models/SchemaOrg/MusicPlaylist.php index b445413a..3a19e0aa 100644 --- a/src/Models/SchemaOrg/MusicPlaylist.php +++ b/src/Models/SchemaOrg/MusicPlaylist.php @@ -17,21 +17,21 @@ public static function getType() public static function fieldList() { $fields = [ - "tracks" => "tracks", - "numTracks" => "numTracks", "track" => "track", + "numTracks" => "numTracks", + "tracks" => "tracks", ]; return array_merge(parent::fieldList(), $fields); } /** - * A music recording (track)—usually a single song. + * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording. * * - * @var \OpenActive\Models\SchemaOrg\MusicRecording|string + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string */ - protected $tracks; + protected $track; /** * The number of tracks in this album or playlist. @@ -42,36 +42,37 @@ public static function fieldList() { protected $numTracks; /** - * A music recording (track)—usually a single song. If an ItemList is given, the list should contain items of type MusicRecording. + * A music recording (track)—usually a single song. * * - * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string + * @var \OpenActive\Models\SchemaOrg\MusicRecording|string */ - protected $track; + protected $tracks; /** - * @return \OpenActive\Models\SchemaOrg\MusicRecording|string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string */ - public function getTracks() + public function getTrack() { - return $this->tracks; + return $this->track; } /** - * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string $track * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTracks($tracks) + public function setTrack($track) { $types = [ + "\OpenActive\Models\SchemaOrg\ItemList", "\OpenActive\Models\SchemaOrg\MusicRecording", "string", ]; - $tracks = self::checkTypes($tracks, $types); + $track = self::checkTypes($track, $types); - $this->tracks = $tracks; + $this->track = $track; } /** @@ -100,29 +101,28 @@ public function setNumTracks($numTracks) } /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string + * @return \OpenActive\Models\SchemaOrg\MusicRecording|string */ - public function getTrack() + public function getTracks() { - return $this->track; + return $this->tracks; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\MusicRecording|string $track + * @param \OpenActive\Models\SchemaOrg\MusicRecording|string $tracks * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrack($track) + public function setTracks($tracks) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", "\OpenActive\Models\SchemaOrg\MusicRecording", "string", ]; - $track = self::checkTypes($track, $types); + $tracks = self::checkTypes($tracks, $types); - $this->track = $track; + $this->tracks = $tracks; } } diff --git a/src/Models/SchemaOrg/MusicRecording.php b/src/Models/SchemaOrg/MusicRecording.php index 9784c961..c48cbac2 100644 --- a/src/Models/SchemaOrg/MusicRecording.php +++ b/src/Models/SchemaOrg/MusicRecording.php @@ -17,17 +17,25 @@ public static function getType() public static function fieldList() { $fields = [ + "byArtist" => "byArtist", "isrcCode" => "isrcCode", "inPlaylist" => "inPlaylist", - "inAlbum" => "inAlbum", "recordingOf" => "recordingOf", + "inAlbum" => "inAlbum", "duration" => "duration", - "byArtist" => "byArtist", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The artist that performed this album or recording. + * + * + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string + */ + protected $byArtist; + /** * The International Standard Recording Code for the recording. * @@ -45,20 +53,20 @@ public static function fieldList() { protected $inPlaylist; /** - * The album to which this recording belongs. + * The composition this track is a recording of. * * - * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string + * @var \OpenActive\Models\SchemaOrg\MusicComposition|string */ - protected $inAlbum; + protected $recordingOf; /** - * The composition this track is a recording of. + * The album to which this recording belongs. * * - * @var \OpenActive\Models\SchemaOrg\MusicComposition|string + * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string */ - protected $recordingOf; + protected $inAlbum; /** * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). @@ -69,12 +77,30 @@ public static function fieldList() { protected $duration; /** - * The artist that performed this album or recording. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $byArtist; + public function getByArtist() + { + return $this->byArtist; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $byArtist + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setByArtist($byArtist) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $byArtist = self::checkTypes($byArtist, $types); + + $this->byArtist = $byArtist; + } /** * @return string @@ -126,53 +152,53 @@ public function setInPlaylist($inPlaylist) } /** - * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string + * @return \OpenActive\Models\SchemaOrg\MusicComposition|string */ - public function getInAlbum() + public function getRecordingOf() { - return $this->inAlbum; + return $this->recordingOf; } /** - * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $inAlbum + * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $recordingOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInAlbum($inAlbum) + public function setRecordingOf($recordingOf) { $types = [ - "\OpenActive\Models\SchemaOrg\MusicAlbum", + "\OpenActive\Models\SchemaOrg\MusicComposition", "string", ]; - $inAlbum = self::checkTypes($inAlbum, $types); + $recordingOf = self::checkTypes($recordingOf, $types); - $this->inAlbum = $inAlbum; + $this->recordingOf = $recordingOf; } /** - * @return \OpenActive\Models\SchemaOrg\MusicComposition|string + * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string */ - public function getRecordingOf() + public function getInAlbum() { - return $this->recordingOf; + return $this->inAlbum; } /** - * @param \OpenActive\Models\SchemaOrg\MusicComposition|string $recordingOf + * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $inAlbum * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecordingOf($recordingOf) + public function setInAlbum($inAlbum) { $types = [ - "\OpenActive\Models\SchemaOrg\MusicComposition", + "\OpenActive\Models\SchemaOrg\MusicAlbum", "string", ]; - $recordingOf = self::checkTypes($recordingOf, $types); + $inAlbum = self::checkTypes($inAlbum, $types); - $this->recordingOf = $recordingOf; + $this->inAlbum = $inAlbum; } /** @@ -201,30 +227,4 @@ public function setDuration($duration) $this->duration = $duration; } - /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string - */ - public function getByArtist() - { - return $this->byArtist; - } - - /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $byArtist - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setByArtist($byArtist) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", - "string", - ]; - - $byArtist = self::checkTypes($byArtist, $types); - - $this->byArtist = $byArtist; - } - } diff --git a/src/Models/SchemaOrg/MusicRelease.php b/src/Models/SchemaOrg/MusicRelease.php index 163cea5a..5e6a72c0 100644 --- a/src/Models/SchemaOrg/MusicRelease.php +++ b/src/Models/SchemaOrg/MusicRelease.php @@ -17,27 +17,27 @@ public static function getType() public static function fieldList() { $fields = [ - "releaseOf" => "releaseOf", - "musicReleaseFormat" => "musicReleaseFormat", - "duration" => "duration", - "creditedTo" => "creditedTo", "recordLabel" => "recordLabel", + "musicReleaseFormat" => "musicReleaseFormat", + "releaseOf" => "releaseOf", "catalogNumber" => "catalogNumber", + "creditedTo" => "creditedTo", + "duration" => "duration", ]; return array_merge(parent::fieldList(), $fields); } /** - * The album this is a release of. + * The label that issued the release. * * - * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $releaseOf; + protected $recordLabel; /** - * Format of this release (the type of recording media used, ie. compact disc, digital media, LP, etc.). + * Format of this release (the type of recording media used, i.e. compact disc, digital media, LP, etc.). * * * @var \OpenActive\Enums\SchemaOrg\MusicReleaseFormatType|null @@ -45,60 +45,60 @@ public static function fieldList() { protected $musicReleaseFormat; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * The album this is a release of. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\MusicAlbum|string */ - protected $duration; + protected $releaseOf; /** - * The group the release is credited to if different than the byArtist. For example, Red and Blue is credited to "Stefani Germanotta Band", but by Lady Gaga. + * The catalog number for the release. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $creditedTo; + protected $catalogNumber; /** - * The label that issued the release. + * The group the release is credited to if different than the byArtist. For example, Red and Blue is credited to "Stefani Germanotta Band", but by Lady Gaga. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $recordLabel; + protected $creditedTo; /** - * The catalog number for the release. + * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var string + * @var DateInterval|string|null */ - protected $catalogNumber; + protected $duration; /** - * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getReleaseOf() + public function getRecordLabel() { - return $this->releaseOf; + return $this->recordLabel; } /** - * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $releaseOf + * @param \OpenActive\Models\SchemaOrg\Organization|string $recordLabel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReleaseOf($releaseOf) + public function setRecordLabel($recordLabel) { $types = [ - "\OpenActive\Models\SchemaOrg\MusicAlbum", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $releaseOf = self::checkTypes($releaseOf, $types); + $recordLabel = self::checkTypes($recordLabel, $types); - $this->releaseOf = $releaseOf; + $this->recordLabel = $recordLabel; } /** @@ -127,104 +127,104 @@ public function setMusicReleaseFormat($musicReleaseFormat) } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\MusicAlbum|string */ - public function getDuration() + public function getReleaseOf() { - return $this->duration; + return $this->releaseOf; } /** - * @param DateInterval|string|null $duration + * @param \OpenActive\Models\SchemaOrg\MusicAlbum|string $releaseOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setReleaseOf($releaseOf) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\MusicAlbum", "string", - "null", ]; - $duration = self::checkTypes($duration, $types); + $releaseOf = self::checkTypes($releaseOf, $types); - $this->duration = $duration; + $this->releaseOf = $releaseOf; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getCreditedTo() + public function getCatalogNumber() { - return $this->creditedTo; + return $this->catalogNumber; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $creditedTo + * @param string $catalogNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCreditedTo($creditedTo) + public function setCatalogNumber($catalogNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $creditedTo = self::checkTypes($creditedTo, $types); + $catalogNumber = self::checkTypes($catalogNumber, $types); - $this->creditedTo = $creditedTo; + $this->catalogNumber = $catalogNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getRecordLabel() + public function getCreditedTo() { - return $this->recordLabel; + return $this->creditedTo; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $recordLabel + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $creditedTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecordLabel($recordLabel) + public function setCreditedTo($creditedTo) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $recordLabel = self::checkTypes($recordLabel, $types); + $creditedTo = self::checkTypes($creditedTo, $types); - $this->recordLabel = $recordLabel; + $this->creditedTo = $creditedTo; } /** - * @return string + * @return DateInterval|string|null */ - public function getCatalogNumber() + public function getDuration() { - return $this->catalogNumber; + return $this->duration; } /** - * @param string $catalogNumber + * @param DateInterval|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCatalogNumber($catalogNumber) + public function setDuration($duration) { $types = [ + "DateInterval", "string", + "null", ]; - $catalogNumber = self::checkTypes($catalogNumber, $types); + $duration = self::checkTypes($duration, $types); - $this->catalogNumber = $catalogNumber; + $this->duration = $duration; } } diff --git a/src/Models/SchemaOrg/Nerve.php b/src/Models/SchemaOrg/Nerve.php index 3063b8b5..3077d16d 100644 --- a/src/Models/SchemaOrg/Nerve.php +++ b/src/Models/SchemaOrg/Nerve.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "sensoryUnit" => "sensoryUnit", + "nerveMotor" => "nerveMotor", "branch" => "branch", "sourcedFrom" => "sourcedFrom", - "nerveMotor" => "nerveMotor", ]; return array_merge(parent::fieldList(), $fields); @@ -30,10 +30,18 @@ public static function fieldList() { * The neurological pathway extension that inputs and sends information to the brain or spinal cord. * * - * @var \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string */ protected $sensoryUnit; + /** + * The neurological pathway extension that involves muscle control. + * + * + * @var \OpenActive\Models\SchemaOrg\Muscle|string + */ + protected $nerveMotor; + /** * The branches that delineate from the nerve bundle. Not to be confused with [[branchOf]]. * @@ -51,15 +59,7 @@ public static function fieldList() { protected $sourcedFrom; /** - * The neurological pathway extension that involves muscle control. - * - * - * @var \OpenActive\Models\SchemaOrg\Muscle|string - */ - protected $nerveMotor; - - /** - * @return \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string */ public function getSensoryUnit() { @@ -67,15 +67,15 @@ public function getSensoryUnit() } /** - * @param \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $sensoryUnit + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $sensoryUnit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSensoryUnit($sensoryUnit) { $types = [ - "\OpenActive\Models\SchemaOrg\SuperficialAnatomy", "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\SuperficialAnatomy", "string", ]; @@ -85,78 +85,78 @@ public function setSensoryUnit($sensoryUnit) } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return \OpenActive\Models\SchemaOrg\Muscle|string */ - public function getBranch() + public function getNerveMotor() { - return $this->branch; + return $this->nerveMotor; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $branch + * @param \OpenActive\Models\SchemaOrg\Muscle|string $nerveMotor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBranch($branch) + public function setNerveMotor($nerveMotor) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\Muscle", "string", ]; - $branch = self::checkTypes($branch, $types); + $nerveMotor = self::checkTypes($nerveMotor, $types); - $this->branch = $branch; + $this->nerveMotor = $nerveMotor; } /** - * @return \OpenActive\Models\SchemaOrg\BrainStructure|string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string */ - public function getSourcedFrom() + public function getBranch() { - return $this->sourcedFrom; + return $this->branch; } /** - * @param \OpenActive\Models\SchemaOrg\BrainStructure|string $sourcedFrom + * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|string $branch * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSourcedFrom($sourcedFrom) + public function setBranch($branch) { $types = [ - "\OpenActive\Models\SchemaOrg\BrainStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $sourcedFrom = self::checkTypes($sourcedFrom, $types); + $branch = self::checkTypes($branch, $types); - $this->sourcedFrom = $sourcedFrom; + $this->branch = $branch; } /** - * @return \OpenActive\Models\SchemaOrg\Muscle|string + * @return \OpenActive\Models\SchemaOrg\BrainStructure|string */ - public function getNerveMotor() + public function getSourcedFrom() { - return $this->nerveMotor; + return $this->sourcedFrom; } /** - * @param \OpenActive\Models\SchemaOrg\Muscle|string $nerveMotor + * @param \OpenActive\Models\SchemaOrg\BrainStructure|string $sourcedFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNerveMotor($nerveMotor) + public function setSourcedFrom($sourcedFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\Muscle", + "\OpenActive\Models\SchemaOrg\BrainStructure", "string", ]; - $nerveMotor = self::checkTypes($nerveMotor, $types); + $sourcedFrom = self::checkTypes($sourcedFrom, $types); - $this->nerveMotor = $nerveMotor; + $this->sourcedFrom = $sourcedFrom; } } diff --git a/src/Models/SchemaOrg/NewsArticle.php b/src/Models/SchemaOrg/NewsArticle.php index b020062d..c9c2a801 100644 --- a/src/Models/SchemaOrg/NewsArticle.php +++ b/src/Models/SchemaOrg/NewsArticle.php @@ -18,10 +18,10 @@ public static function getType() public static function fieldList() { $fields = [ "printEdition" => "printEdition", + "dateline" => "dateline", "printColumn" => "printColumn", - "printPage" => "printPage", "printSection" => "printSection", - "dateline" => "dateline", + "printPage" => "printPage", ]; return array_merge(parent::fieldList(), $fields); @@ -36,20 +36,25 @@ public static function fieldList() { protected $printEdition; /** - * The number of the column in which the NewsArticle appears in the print edition. + * A [dateline](https://en.wikipedia.org/wiki/Dateline) is a brief piece of text included in news articles that describes where and when the story was written or filed though the date is often omitted. Sometimes only a placename is provided. + * + * Structured representations of dateline-related information can also be expressed more explicitly using [[locationCreated]] (which represents where a work was created, e.g. where a news report was written). For location depicted or described in the content, use [[contentLocation]]. + * + * Dateline summaries are oriented more towards human readers than towards automated processing, and can vary substantially. Some examples: "BEIRUT, Lebanon, June 2.", "Paris, France", "December 19, 2017 11:43AM Reporting from Washington", "Beijing/Moscow", "QUEZON CITY, Philippines". + * * * * @var string */ - protected $printColumn; + protected $dateline; /** - * If this NewsArticle appears in print, this field indicates the name of the page on which the article is found. Please note that this field is intended for the exact page name (e.g. A5, B18). + * The number of the column in which the NewsArticle appears in the print edition. * * * @var string */ - protected $printPage; + protected $printColumn; /** * If this NewsArticle appears in print, this field indicates the print section in which the article appeared. @@ -60,17 +65,12 @@ public static function fieldList() { protected $printSection; /** - * A [dateline](https://en.wikipedia.org/wiki/Dateline) is a brief piece of text included in news articles that describes where and when the story was written or filed though the date is often omitted. Sometimes only a placename is provided. - * - * Structured representations of dateline-related information can also be expressed more explicitly using [[locationCreated]] (which represents where a work was created e.g. where a news report was written). For location depicted or described in the content, use [[contentLocation]]. - * - * Dateline summaries are oriented more towards human readers than towards automated processing, and can vary substantially. Some examples: "BEIRUT, Lebanon, June 2.", "Paris, France", "December 19, 2017 11:43AM Reporting from Washington", "Beijing/Moscow", "QUEZON CITY, Philippines". - * + * If this NewsArticle appears in print, this field indicates the name of the page on which the article is found. Please note that this field is intended for the exact page name (e.g. A5, B18). * * * @var string */ - protected $dateline; + protected $printPage; /** * @return string @@ -99,49 +99,49 @@ public function setPrintEdition($printEdition) /** * @return string */ - public function getPrintColumn() + public function getDateline() { - return $this->printColumn; + return $this->dateline; } /** - * @param string $printColumn + * @param string $dateline * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrintColumn($printColumn) + public function setDateline($dateline) { $types = [ "string", ]; - $printColumn = self::checkTypes($printColumn, $types); + $dateline = self::checkTypes($dateline, $types); - $this->printColumn = $printColumn; + $this->dateline = $dateline; } /** * @return string */ - public function getPrintPage() + public function getPrintColumn() { - return $this->printPage; + return $this->printColumn; } /** - * @param string $printPage + * @param string $printColumn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrintPage($printPage) + public function setPrintColumn($printColumn) { $types = [ "string", ]; - $printPage = self::checkTypes($printPage, $types); + $printColumn = self::checkTypes($printColumn, $types); - $this->printPage = $printPage; + $this->printColumn = $printColumn; } /** @@ -171,25 +171,25 @@ public function setPrintSection($printSection) /** * @return string */ - public function getDateline() + public function getPrintPage() { - return $this->dateline; + return $this->printPage; } /** - * @param string $dateline + * @param string $printPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateline($dateline) + public function setPrintPage($printPage) { $types = [ "string", ]; - $dateline = self::checkTypes($dateline, $types); + $printPage = self::checkTypes($printPage, $types); - $this->dateline = $dateline; + $this->printPage = $printPage; } } diff --git a/src/Models/SchemaOrg/NewsMediaOrganization.php b/src/Models/SchemaOrg/NewsMediaOrganization.php index fc8abd3d..23ff7598 100644 --- a/src/Models/SchemaOrg/NewsMediaOrganization.php +++ b/src/Models/SchemaOrg/NewsMediaOrganization.php @@ -17,61 +17,69 @@ public static function getType() public static function fieldList() { $fields = [ - "ownershipFundingInfo" => "ownershipFundingInfo", + "noBylinesPolicy" => "noBylinesPolicy", + "diversityPolicy" => "diversityPolicy", + "masthead" => "masthead", "correctionsPolicy" => "correctionsPolicy", + "verificationFactCheckingPolicy" => "verificationFactCheckingPolicy", "diversityStaffingReport" => "diversityStaffingReport", - "diversityPolicy" => "diversityPolicy", - "ethicsPolicy" => "ethicsPolicy", "missionCoveragePrioritiesPolicy" => "missionCoveragePrioritiesPolicy", "actionableFeedbackPolicy" => "actionableFeedbackPolicy", - "masthead" => "masthead", + "ethicsPolicy" => "ethicsPolicy", + "ownershipFundingInfo" => "ownershipFundingInfo", "unnamedSourcesPolicy" => "unnamedSourcesPolicy", - "verificationFactCheckingPolicy" => "verificationFactCheckingPolicy", - "noBylinesPolicy" => "noBylinesPolicy", ]; return array_merge(parent::fieldList(), $fields); } /** - * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable. + * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement explaining when authors of articles are not named in bylines. * * - * @var string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $ownershipFundingInfo; + protected $noBylinesPolicy; /** - * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors. + * Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data. * * * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $correctionsPolicy; + protected $diversityPolicy; /** - * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported. + * For a [[NewsMediaOrganization]], a link to the masthead page or a page listing top editorial management. * * - * @var string|\OpenActive\Models\SchemaOrg\Article + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $diversityStaffingReport; + protected $masthead; /** - * Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data. + * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors. + * + * + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + */ + protected $correctionsPolicy; + + /** + * Disclosure about verification and fact-checking processes for a [[NewsMediaOrganization]] or other fact-checking [[Organization]]. * * * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $diversityPolicy; + protected $verificationFactCheckingPolicy; /** - * Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization. + * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Article|string */ - protected $ethicsPolicy; + protected $diversityStaffingReport; /** * For a [[NewsMediaOrganization]], a statement on coverage priorities, including any public agenda or stance on issues. @@ -90,12 +98,20 @@ public static function fieldList() { protected $actionableFeedbackPolicy; /** - * For a [[NewsMediaOrganization]], a link to the masthead page or a page listing top editorial management. + * Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization. * * * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $masthead; + protected $ethicsPolicy; + + /** + * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable. + * + * + * @var \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string + */ + protected $ownershipFundingInfo; /** * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required. @@ -106,145 +122,153 @@ public static function fieldList() { protected $unnamedSourcesPolicy; /** - * Disclosure about verification and fact-checking processes for a [[NewsMediaOrganization]] or other fact-checking [[Organization]]. - * - * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $verificationFactCheckingPolicy; + public function getNoBylinesPolicy() + { + return $this->noBylinesPolicy; + } /** - * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement explaining when authors of articles are not named in bylines. - * - * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $noBylinesPolicy + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $noBylinesPolicy; + public function setNoBylinesPolicy($noBylinesPolicy) + { + $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", + ]; + + $noBylinesPolicy = self::checkTypes($noBylinesPolicy, $types); + + $this->noBylinesPolicy = $noBylinesPolicy; + } /** - * @return string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getOwnershipFundingInfo() + public function getDiversityPolicy() { - return $this->ownershipFundingInfo; + return $this->diversityPolicy; } /** - * @param string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork $ownershipFundingInfo + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $diversityPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOwnershipFundingInfo($ownershipFundingInfo) + public function setDiversityPolicy($diversityPolicy) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\AboutPage", "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types); + $diversityPolicy = self::checkTypes($diversityPolicy, $types); - $this->ownershipFundingInfo = $ownershipFundingInfo; + $this->diversityPolicy = $diversityPolicy; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getCorrectionsPolicy() + public function getMasthead() { - return $this->correctionsPolicy; + return $this->masthead; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $masthead * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCorrectionsPolicy($correctionsPolicy) + public function setMasthead($masthead) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", ]; - $correctionsPolicy = self::checkTypes($correctionsPolicy, $types); + $masthead = self::checkTypes($masthead, $types); - $this->correctionsPolicy = $correctionsPolicy; + $this->masthead = $masthead; } /** - * @return string|\OpenActive\Models\SchemaOrg\Article + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getDiversityStaffingReport() + public function getCorrectionsPolicy() { - return $this->diversityStaffingReport; + return $this->correctionsPolicy; } /** - * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiversityStaffingReport($diversityStaffingReport) + public function setCorrectionsPolicy($correctionsPolicy) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Article", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types); + $correctionsPolicy = self::checkTypes($correctionsPolicy, $types); - $this->diversityStaffingReport = $diversityStaffingReport; + $this->correctionsPolicy = $correctionsPolicy; } /** * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getDiversityPolicy() + public function getVerificationFactCheckingPolicy() { - return $this->diversityPolicy; + return $this->verificationFactCheckingPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $verificationFactCheckingPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiversityPolicy($diversityPolicy) + public function setVerificationFactCheckingPolicy($verificationFactCheckingPolicy) { $types = [ "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $diversityPolicy = self::checkTypes($diversityPolicy, $types); + $verificationFactCheckingPolicy = self::checkTypes($verificationFactCheckingPolicy, $types); - $this->diversityPolicy = $diversityPolicy; + $this->verificationFactCheckingPolicy = $verificationFactCheckingPolicy; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\Article|string */ - public function getEthicsPolicy() + public function getDiversityStaffingReport() { - return $this->ethicsPolicy; + return $this->diversityStaffingReport; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy + * @param \OpenActive\Models\SchemaOrg\Article|string $diversityStaffingReport * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEthicsPolicy($ethicsPolicy) + public function setDiversityStaffingReport($diversityStaffingReport) { $types = [ + "\OpenActive\Models\SchemaOrg\Article", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $ethicsPolicy = self::checkTypes($ethicsPolicy, $types); + $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types); - $this->ethicsPolicy = $ethicsPolicy; + $this->diversityStaffingReport = $diversityStaffingReport; } /** @@ -300,101 +324,77 @@ public function setActionableFeedbackPolicy($actionableFeedbackPolicy) /** * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getMasthead() + public function getEthicsPolicy() { - return $this->masthead; + return $this->ethicsPolicy; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $masthead + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMasthead($masthead) + public function setEthicsPolicy($ethicsPolicy) { $types = [ "string", "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $masthead = self::checkTypes($masthead, $types); + $ethicsPolicy = self::checkTypes($ethicsPolicy, $types); - $this->masthead = $masthead; + $this->ethicsPolicy = $ethicsPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getUnnamedSourcesPolicy() + public function getOwnershipFundingInfo() { - return $this->unnamedSourcesPolicy; + return $this->ownershipFundingInfo; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy + * @param \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string $ownershipFundingInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnnamedSourcesPolicy($unnamedSourcesPolicy) + public function setOwnershipFundingInfo($ownershipFundingInfo) { $types = [ + "\OpenActive\Models\SchemaOrg\AboutPage", "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types); - - $this->unnamedSourcesPolicy = $unnamedSourcesPolicy; - } - - /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork - */ - public function getVerificationFactCheckingPolicy() - { - return $this->verificationFactCheckingPolicy; - } - - /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $verificationFactCheckingPolicy - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setVerificationFactCheckingPolicy($verificationFactCheckingPolicy) - { - $types = [ - "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", - ]; - - $verificationFactCheckingPolicy = self::checkTypes($verificationFactCheckingPolicy, $types); + $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types); - $this->verificationFactCheckingPolicy = $verificationFactCheckingPolicy; + $this->ownershipFundingInfo = $ownershipFundingInfo; } /** * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getNoBylinesPolicy() + public function getUnnamedSourcesPolicy() { - return $this->noBylinesPolicy; + return $this->unnamedSourcesPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $noBylinesPolicy + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNoBylinesPolicy($noBylinesPolicy) + public function setUnnamedSourcesPolicy($unnamedSourcesPolicy) { $types = [ "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $noBylinesPolicy = self::checkTypes($noBylinesPolicy, $types); + $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types); - $this->noBylinesPolicy = $noBylinesPolicy; + $this->unnamedSourcesPolicy = $unnamedSourcesPolicy; } } diff --git a/src/Models/SchemaOrg/NutritionInformation.php b/src/Models/SchemaOrg/NutritionInformation.php index ec66b0a4..4c077731 100644 --- a/src/Models/SchemaOrg/NutritionInformation.php +++ b/src/Models/SchemaOrg/NutritionInformation.php @@ -17,416 +17,416 @@ public static function getType() public static function fieldList() { $fields = [ - "fatContent" => "fatContent", - "servingSize" => "servingSize", - "proteinContent" => "proteinContent", - "calories" => "calories", - "sodiumContent" => "sodiumContent", - "cholesterolContent" => "cholesterolContent", "sugarContent" => "sugarContent", - "carbohydrateContent" => "carbohydrateContent", "transFatContent" => "transFatContent", + "servingSize" => "servingSize", "fiberContent" => "fiberContent", + "cholesterolContent" => "cholesterolContent", + "carbohydrateContent" => "carbohydrateContent", "unsaturatedFatContent" => "unsaturatedFatContent", "saturatedFatContent" => "saturatedFatContent", + "sodiumContent" => "sodiumContent", + "calories" => "calories", + "proteinContent" => "proteinContent", + "fatContent" => "fatContent", ]; return array_merge(parent::fieldList(), $fields); } /** - * The number of grams of fat. + * The number of grams of sugar. * * * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $fatContent; + protected $sugarContent; /** - * The serving size, in terms of the number of volume or mass. + * The number of grams of trans fat. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $servingSize; + protected $transFatContent; /** - * The number of grams of protein. + * The serving size, in terms of the number of volume or mass. * * - * @var \OpenActive\Models\SchemaOrg\Mass|string + * @var string */ - protected $proteinContent; + protected $servingSize; /** - * The number of calories. + * The number of grams of fiber. * * - * @var \OpenActive\Models\SchemaOrg\Energy|string + * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $calories; + protected $fiberContent; /** - * The number of milligrams of sodium. + * The number of milligrams of cholesterol. * * * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $sodiumContent; + protected $cholesterolContent; /** - * The number of milligrams of cholesterol. + * The number of grams of carbohydrates. * * * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $cholesterolContent; + protected $carbohydrateContent; /** - * The number of grams of sugar. + * The number of grams of unsaturated fat. * * * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $sugarContent; + protected $unsaturatedFatContent; /** - * The number of grams of carbohydrates. + * The number of grams of saturated fat. * * * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $carbohydrateContent; + protected $saturatedFatContent; /** - * The number of grams of trans fat. + * The number of milligrams of sodium. * * * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $transFatContent; + protected $sodiumContent; /** - * The number of grams of fiber. + * The number of calories. * * - * @var \OpenActive\Models\SchemaOrg\Mass|string + * @var \OpenActive\Models\SchemaOrg\Energy|string */ - protected $fiberContent; + protected $calories; /** - * The number of grams of unsaturated fat. + * The number of grams of protein. * * * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $unsaturatedFatContent; + protected $proteinContent; /** - * The number of grams of saturated fat. + * The number of grams of fat. * * * @var \OpenActive\Models\SchemaOrg\Mass|string */ - protected $saturatedFatContent; + protected $fatContent; /** * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getFatContent() + public function getSugarContent() { - return $this->fatContent; + return $this->sugarContent; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $fatContent + * @param \OpenActive\Models\SchemaOrg\Mass|string $sugarContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFatContent($fatContent) + public function setSugarContent($sugarContent) { $types = [ "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $fatContent = self::checkTypes($fatContent, $types); + $sugarContent = self::checkTypes($sugarContent, $types); - $this->fatContent = $fatContent; + $this->sugarContent = $sugarContent; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getServingSize() + public function getTransFatContent() { - return $this->servingSize; + return $this->transFatContent; } /** - * @param string $servingSize + * @param \OpenActive\Models\SchemaOrg\Mass|string $transFatContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServingSize($servingSize) + public function setTransFatContent($transFatContent) { $types = [ + "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $servingSize = self::checkTypes($servingSize, $types); + $transFatContent = self::checkTypes($transFatContent, $types); - $this->servingSize = $servingSize; + $this->transFatContent = $transFatContent; } /** - * @return \OpenActive\Models\SchemaOrg\Mass|string + * @return string */ - public function getProteinContent() + public function getServingSize() { - return $this->proteinContent; + return $this->servingSize; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $proteinContent + * @param string $servingSize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProteinContent($proteinContent) + public function setServingSize($servingSize) { $types = [ - "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $proteinContent = self::checkTypes($proteinContent, $types); + $servingSize = self::checkTypes($servingSize, $types); - $this->proteinContent = $proteinContent; + $this->servingSize = $servingSize; } /** - * @return \OpenActive\Models\SchemaOrg\Energy|string + * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getCalories() + public function getFiberContent() { - return $this->calories; + return $this->fiberContent; } /** - * @param \OpenActive\Models\SchemaOrg\Energy|string $calories + * @param \OpenActive\Models\SchemaOrg\Mass|string $fiberContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCalories($calories) + public function setFiberContent($fiberContent) { $types = [ - "\OpenActive\Models\SchemaOrg\Energy", + "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $calories = self::checkTypes($calories, $types); + $fiberContent = self::checkTypes($fiberContent, $types); - $this->calories = $calories; + $this->fiberContent = $fiberContent; } /** * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getSodiumContent() + public function getCholesterolContent() { - return $this->sodiumContent; + return $this->cholesterolContent; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $sodiumContent + * @param \OpenActive\Models\SchemaOrg\Mass|string $cholesterolContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSodiumContent($sodiumContent) + public function setCholesterolContent($cholesterolContent) { $types = [ "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $sodiumContent = self::checkTypes($sodiumContent, $types); + $cholesterolContent = self::checkTypes($cholesterolContent, $types); - $this->sodiumContent = $sodiumContent; + $this->cholesterolContent = $cholesterolContent; } /** * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getCholesterolContent() + public function getCarbohydrateContent() { - return $this->cholesterolContent; + return $this->carbohydrateContent; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $cholesterolContent + * @param \OpenActive\Models\SchemaOrg\Mass|string $carbohydrateContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCholesterolContent($cholesterolContent) + public function setCarbohydrateContent($carbohydrateContent) { $types = [ "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $cholesterolContent = self::checkTypes($cholesterolContent, $types); + $carbohydrateContent = self::checkTypes($carbohydrateContent, $types); - $this->cholesterolContent = $cholesterolContent; + $this->carbohydrateContent = $carbohydrateContent; } /** * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getSugarContent() + public function getUnsaturatedFatContent() { - return $this->sugarContent; + return $this->unsaturatedFatContent; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $sugarContent + * @param \OpenActive\Models\SchemaOrg\Mass|string $unsaturatedFatContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSugarContent($sugarContent) + public function setUnsaturatedFatContent($unsaturatedFatContent) { $types = [ "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $sugarContent = self::checkTypes($sugarContent, $types); + $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types); - $this->sugarContent = $sugarContent; + $this->unsaturatedFatContent = $unsaturatedFatContent; } /** * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getCarbohydrateContent() + public function getSaturatedFatContent() { - return $this->carbohydrateContent; + return $this->saturatedFatContent; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $carbohydrateContent + * @param \OpenActive\Models\SchemaOrg\Mass|string $saturatedFatContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCarbohydrateContent($carbohydrateContent) + public function setSaturatedFatContent($saturatedFatContent) { $types = [ "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $carbohydrateContent = self::checkTypes($carbohydrateContent, $types); + $saturatedFatContent = self::checkTypes($saturatedFatContent, $types); - $this->carbohydrateContent = $carbohydrateContent; + $this->saturatedFatContent = $saturatedFatContent; } /** * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getTransFatContent() + public function getSodiumContent() { - return $this->transFatContent; + return $this->sodiumContent; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $transFatContent + * @param \OpenActive\Models\SchemaOrg\Mass|string $sodiumContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTransFatContent($transFatContent) + public function setSodiumContent($sodiumContent) { $types = [ "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $transFatContent = self::checkTypes($transFatContent, $types); + $sodiumContent = self::checkTypes($sodiumContent, $types); - $this->transFatContent = $transFatContent; + $this->sodiumContent = $sodiumContent; } /** - * @return \OpenActive\Models\SchemaOrg\Mass|string + * @return \OpenActive\Models\SchemaOrg\Energy|string */ - public function getFiberContent() + public function getCalories() { - return $this->fiberContent; + return $this->calories; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $fiberContent + * @param \OpenActive\Models\SchemaOrg\Energy|string $calories * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFiberContent($fiberContent) + public function setCalories($calories) { $types = [ - "\OpenActive\Models\SchemaOrg\Mass", + "\OpenActive\Models\SchemaOrg\Energy", "string", ]; - $fiberContent = self::checkTypes($fiberContent, $types); + $calories = self::checkTypes($calories, $types); - $this->fiberContent = $fiberContent; + $this->calories = $calories; } /** * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getUnsaturatedFatContent() + public function getProteinContent() { - return $this->unsaturatedFatContent; + return $this->proteinContent; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $unsaturatedFatContent + * @param \OpenActive\Models\SchemaOrg\Mass|string $proteinContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnsaturatedFatContent($unsaturatedFatContent) + public function setProteinContent($proteinContent) { $types = [ "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $unsaturatedFatContent = self::checkTypes($unsaturatedFatContent, $types); + $proteinContent = self::checkTypes($proteinContent, $types); - $this->unsaturatedFatContent = $unsaturatedFatContent; + $this->proteinContent = $proteinContent; } /** * @return \OpenActive\Models\SchemaOrg\Mass|string */ - public function getSaturatedFatContent() + public function getFatContent() { - return $this->saturatedFatContent; + return $this->fatContent; } /** - * @param \OpenActive\Models\SchemaOrg\Mass|string $saturatedFatContent + * @param \OpenActive\Models\SchemaOrg\Mass|string $fatContent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSaturatedFatContent($saturatedFatContent) + public function setFatContent($fatContent) { $types = [ "\OpenActive\Models\SchemaOrg\Mass", "string", ]; - $saturatedFatContent = self::checkTypes($saturatedFatContent, $types); + $fatContent = self::checkTypes($fatContent, $types); - $this->saturatedFatContent = $saturatedFatContent; + $this->fatContent = $fatContent; } } diff --git a/src/Models/SchemaOrg/Observation.php b/src/Models/SchemaOrg/Observation.php index 95b9a4a5..2d33eab6 100644 --- a/src/Models/SchemaOrg/Observation.php +++ b/src/Models/SchemaOrg/Observation.php @@ -17,50 +17,93 @@ public static function getType() public static function fieldList() { $fields = [ - "measuredValue" => "measuredValue", - "observedNode" => "observedNode", - "measuredProperty" => "measuredProperty", + "measurementTechnique" => "measurementTechnique", "observationDate" => "observationDate", + "observationPeriod" => "observationPeriod", + "measurementDenominator" => "measurementDenominator", + "variableMeasured" => "variableMeasured", + "measurementMethod" => "measurementMethod", + "measurementQualifier" => "measurementQualifier", + "measuredProperty" => "measuredProperty", "marginOfError" => "marginOfError", + "observationAbout" => "observationAbout", ]; return array_merge(parent::fieldList(), $fields); } /** - * The measuredValue of an [[Observation]]. + * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable. + * + * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery. + * + * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". + * + * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]]. * * - * @var \OpenActive\Models\SchemaOrg\DataType + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - protected $measuredValue; + protected $measurementTechnique; /** - * The observedNode of an [[Observation]], often a [[StatisticalPopulation]]. + * The observationDate of an [[Observation]]. * * - * @var \OpenActive\Models\SchemaOrg\StatisticalPopulation|string + * @var DateTime|null */ - protected $observedNode; + protected $observationDate; /** - * The measuredProperty of an [[Observation]], either a schema.org property, a property from other RDF-compatible systems e.g. W3C RDF Data Cube, or schema.org extensions such as [GS1's](https://www.gs1.org/voc/?show=properties). + * The length of time an Observation took place over. The format follows `P[0-9]*[Y|M|D|h|m|s]`. For example, P1Y is Period 1 Year, P3M is Period 3 Months, P3h is Period 3 hours. * * - * @var string|\OpenActive\Enums\PropertyEnumeration|null + * @var string */ - protected $measuredProperty; + protected $observationPeriod; /** - * The observationDate of an [[Observation]]. + * Identifies the denominator variable when an observation represents a ratio or percentage. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\StatisticalVariable|string */ - protected $observationDate; + protected $measurementDenominator; + + /** + * The variableMeasured property can indicate (repeated as necessary) the variables that are measured in some dataset, either described as text or as pairs of identifier and description using PropertyValue, or more explicitly as a [[StatisticalVariable]]. + * + * + * @var \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null + */ + protected $variableMeasured; + + /** + * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]]. + * + * + * @var string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null + */ + protected $measurementMethod; /** - * A marginOfError for an [[Observation]]. + * Provides additional qualification to an observation. For example, a GDP observation measures the Nominal value. + * + * + * @var \OpenActive\Models\SchemaOrg\Enumeration|string + */ + protected $measurementQualifier; + + /** + * The measuredProperty of an [[Observation]], typically via its [[StatisticalVariable]]. There are various kinds of applicable [[Property]]: a schema.org property, a property from other RDF-compatible systems, e.g. W3C RDF Data Cube, Data Commons, Wikidata, or schema.org extensions such as [GS1's](https://www.gs1.org/voc/?show=properties). + * + * + * @var string|\OpenActive\Enums\PropertyEnumeration|null + */ + protected $measuredProperty; + + /** + * A [[marginOfError]] for an [[Observation]]. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string @@ -68,103 +111,218 @@ public static function fieldList() { protected $marginOfError; /** - * @return \OpenActive\Models\SchemaOrg\DataType + * The [[observationAbout]] property identifies an entity, often a [[Place]], associated with an [[Observation]]. + * + * + * @var \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\Place|string + */ + protected $observationAbout; + + /** + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - public function getMeasuredValue() + public function getMeasurementTechnique() { - return $this->measuredValue; + return $this->measurementTechnique; } /** - * @param \OpenActive\Models\SchemaOrg\DataType $measuredValue + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMeasuredValue($measuredValue) + public function setMeasurementTechnique($measurementTechnique) { $types = [ - "\OpenActive\Models\SchemaOrg\DataType", + "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "null", ]; - $measuredValue = self::checkTypes($measuredValue, $types); + $measurementTechnique = self::checkTypes($measurementTechnique, $types); - $this->measuredValue = $measuredValue; + $this->measurementTechnique = $measurementTechnique; } /** - * @return \OpenActive\Models\SchemaOrg\StatisticalPopulation|string + * @return DateTime|null */ - public function getObservedNode() + public function getObservationDate() { - return $this->observedNode; + return $this->observationDate; } /** - * @param \OpenActive\Models\SchemaOrg\StatisticalPopulation|string $observedNode + * @param DateTime|null $observationDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setObservedNode($observedNode) + public function setObservationDate($observationDate) + { + $types = [ + "DateTime", + "null", + ]; + + $observationDate = self::checkTypes($observationDate, $types); + + $this->observationDate = $observationDate; + } + + /** + * @return string + */ + public function getObservationPeriod() + { + return $this->observationPeriod; + } + + /** + * @param string $observationPeriod + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setObservationPeriod($observationPeriod) { $types = [ - "\OpenActive\Models\SchemaOrg\StatisticalPopulation", "string", ]; - $observedNode = self::checkTypes($observedNode, $types); + $observationPeriod = self::checkTypes($observationPeriod, $types); - $this->observedNode = $observedNode; + $this->observationPeriod = $observationPeriod; } /** - * @return string|\OpenActive\Enums\PropertyEnumeration|null + * @return \OpenActive\Models\SchemaOrg\StatisticalVariable|string */ - public function getMeasuredProperty() + public function getMeasurementDenominator() { - return $this->measuredProperty; + return $this->measurementDenominator; } /** - * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty + * @param \OpenActive\Models\SchemaOrg\StatisticalVariable|string $measurementDenominator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMeasuredProperty($measuredProperty) + public function setMeasurementDenominator($measurementDenominator) { $types = [ + "\OpenActive\Models\SchemaOrg\StatisticalVariable", + "string", + ]; + + $measurementDenominator = self::checkTypes($measurementDenominator, $types); + + $this->measurementDenominator = $measurementDenominator; + } + + /** + * @return \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null + */ + public function getVariableMeasured() + { + return $this->variableMeasured; + } + + /** + * @param \OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\StatisticalVariable|string|\OpenActive\Enums\PropertyEnumeration|null $variableMeasured + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setVariableMeasured($variableMeasured) + { + $types = [ + "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\StatisticalVariable", "string", "\OpenActive\Enums\PropertyEnumeration", "null", ]; - $measuredProperty = self::checkTypes($measuredProperty, $types); + $variableMeasured = self::checkTypes($variableMeasured, $types); - $this->measuredProperty = $measuredProperty; + $this->variableMeasured = $variableMeasured; } /** - * @return DateTime|null + * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null */ - public function getObservationDate() + public function getMeasurementMethod() { - return $this->observationDate; + return $this->measurementMethod; } /** - * @param DateTime|null $observationDate + * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setObservationDate($observationDate) + public function setMeasurementMethod($measurementMethod) { $types = [ - "DateTime", + "string", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "\OpenActive\Models\SchemaOrg\DefinedTerm", "null", ]; - $observationDate = self::checkTypes($observationDate, $types); + $measurementMethod = self::checkTypes($measurementMethod, $types); - $this->observationDate = $observationDate; + $this->measurementMethod = $measurementMethod; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Enumeration|string + */ + public function getMeasurementQualifier() + { + return $this->measurementQualifier; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Enumeration|string $measurementQualifier + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementQualifier($measurementQualifier) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Enumeration", + "string", + ]; + + $measurementQualifier = self::checkTypes($measurementQualifier, $types); + + $this->measurementQualifier = $measurementQualifier; + } + + /** + * @return string|\OpenActive\Enums\PropertyEnumeration|null + */ + public function getMeasuredProperty() + { + return $this->measuredProperty; + } + + /** + * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasuredProperty($measuredProperty) + { + $types = [ + "string", + "\OpenActive\Enums\PropertyEnumeration", + "null", + ]; + + $measuredProperty = self::checkTypes($measuredProperty, $types); + + $this->measuredProperty = $measuredProperty; } /** @@ -192,4 +350,30 @@ public function setMarginOfError($marginOfError) $this->marginOfError = $marginOfError; } + /** + * @return \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\Place|string + */ + public function getObservationAbout() + { + return $this->observationAbout; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\Place|string $observationAbout + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setObservationAbout($observationAbout) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Place", + "string", + ]; + + $observationAbout = self::checkTypes($observationAbout, $types); + + $this->observationAbout = $observationAbout; + } + } diff --git a/src/Models/SchemaOrg/Occupation.php b/src/Models/SchemaOrg/Occupation.php index ea516342..f2fddac5 100644 --- a/src/Models/SchemaOrg/Occupation.php +++ b/src/Models/SchemaOrg/Occupation.php @@ -18,13 +18,13 @@ public static function getType() public static function fieldList() { $fields = [ "estimatedSalary" => "estimatedSalary", - "responsibilities" => "responsibilities", "occupationLocation" => "occupationLocation", "experienceRequirements" => "experienceRequirements", - "educationRequirements" => "educationRequirements", - "skills" => "skills", - "qualifications" => "qualifications", "occupationalCategory" => "occupationalCategory", + "qualifications" => "qualifications", + "skills" => "skills", + "educationRequirements" => "educationRequirements", + "responsibilities" => "responsibilities", ]; return array_merge(parent::fieldList(), $fields); @@ -34,18 +34,10 @@ public static function fieldList() { * An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null */ protected $estimatedSalary; - /** - * Responsibilities associated with this role or Occupation. - * - * - * @var string - */ - protected $responsibilities; - /** * The region/country for which this occupational description is appropriate. Note that educational requirements and qualifications can vary between jurisdictions. * @@ -63,12 +55,21 @@ public static function fieldList() { protected $experienceRequirements; /** - * Educational background needed for the position or Occupation. + * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n + * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC. + * + * + * @var string|\OpenActive\Models\SchemaOrg\CategoryCode + */ + protected $occupationalCategory; + + /** + * Specific qualifications required for this role or Occupation. * * * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - protected $educationRequirements; + protected $qualifications; /** * A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation. @@ -79,24 +80,23 @@ public static function fieldList() { protected $skills; /** - * Specific qualifications required for this role or Occupation. + * Educational background needed for the position or Occupation. * * * @var string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - protected $qualifications; + protected $educationRequirements; /** - * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n - * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC. + * Responsibilities associated with this role or Occupation. * * - * @var \OpenActive\Models\SchemaOrg\CategoryCode|string + * @var string */ - protected $occupationalCategory; + protected $responsibilities; /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null */ public function getEstimatedSalary() { @@ -104,15 +104,15 @@ public function getEstimatedSalary() } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $estimatedSalary + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution|string|Number|null $estimatedSalary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setEstimatedSalary($estimatedSalary) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\MonetaryAmountDistribution", "string", "Number", "null", @@ -124,102 +124,103 @@ public function setEstimatedSalary($estimatedSalary) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getResponsibilities() + public function getOccupationLocation() { - return $this->responsibilities; + return $this->occupationLocation; } /** - * @param string $responsibilities + * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $occupationLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setResponsibilities($responsibilities) + public function setOccupationLocation($occupationLocation) { $types = [ + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", ]; - $responsibilities = self::checkTypes($responsibilities, $types); + $occupationLocation = self::checkTypes($occupationLocation, $types); - $this->responsibilities = $responsibilities; + $this->occupationLocation = $occupationLocation; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|string + * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements */ - public function getOccupationLocation() + public function getExperienceRequirements() { - return $this->occupationLocation; + return $this->experienceRequirements; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|string $occupationLocation + * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupationLocation($occupationLocation) + public function setExperienceRequirements($experienceRequirements) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", + "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements", ]; - $occupationLocation = self::checkTypes($occupationLocation, $types); + $experienceRequirements = self::checkTypes($experienceRequirements, $types); - $this->occupationLocation = $occupationLocation; + $this->experienceRequirements = $experienceRequirements; } /** - * @return string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements + * @return string|\OpenActive\Models\SchemaOrg\CategoryCode */ - public function getExperienceRequirements() + public function getOccupationalCategory() { - return $this->experienceRequirements; + return $this->occupationalCategory; } /** - * @param string|\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements $experienceRequirements + * @param string|\OpenActive\Models\SchemaOrg\CategoryCode $occupationalCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExperienceRequirements($experienceRequirements) + public function setOccupationalCategory($occupationalCategory) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\OccupationalExperienceRequirements", + "\OpenActive\Models\SchemaOrg\CategoryCode", ]; - $experienceRequirements = self::checkTypes($experienceRequirements, $types); + $occupationalCategory = self::checkTypes($occupationalCategory, $types); - $this->experienceRequirements = $experienceRequirements; + $this->occupationalCategory = $occupationalCategory; } /** * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - public function getEducationRequirements() + public function getQualifications() { - return $this->educationRequirements; + return $this->qualifications; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $educationRequirements + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $qualifications * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEducationRequirements($educationRequirements) + public function setQualifications($qualifications) { $types = [ "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", ]; - $educationRequirements = self::checkTypes($educationRequirements, $types); + $qualifications = self::checkTypes($qualifications, $types); - $this->educationRequirements = $educationRequirements; + $this->qualifications = $qualifications; } /** @@ -250,51 +251,50 @@ public function setSkills($skills) /** * @return string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential */ - public function getQualifications() + public function getEducationRequirements() { - return $this->qualifications; + return $this->educationRequirements; } /** - * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $qualifications + * @param string|\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential $educationRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setQualifications($qualifications) + public function setEducationRequirements($educationRequirements) { $types = [ "string", "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", ]; - $qualifications = self::checkTypes($qualifications, $types); + $educationRequirements = self::checkTypes($educationRequirements, $types); - $this->qualifications = $qualifications; + $this->educationRequirements = $educationRequirements; } /** - * @return \OpenActive\Models\SchemaOrg\CategoryCode|string + * @return string */ - public function getOccupationalCategory() + public function getResponsibilities() { - return $this->occupationalCategory; + return $this->responsibilities; } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory + * @param string $responsibilities * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupationalCategory($occupationalCategory) + public function setResponsibilities($responsibilities) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCode", "string", ]; - $occupationalCategory = self::checkTypes($occupationalCategory, $types); + $responsibilities = self::checkTypes($responsibilities, $types); - $this->occupationalCategory = $occupationalCategory; + $this->responsibilities = $responsibilities; } } diff --git a/src/Models/SchemaOrg/Offer.php b/src/Models/SchemaOrg/Offer.php index 34933e9b..a0d5f7b6 100644 --- a/src/Models/SchemaOrg/Offer.php +++ b/src/Models/SchemaOrg/Offer.php @@ -17,285 +17,324 @@ public static function getType() public static function fieldList() { $fields = [ + "eligibleRegion" => "eligibleRegion", + "deliveryLeadTime" => "deliveryLeadTime", + "gtin8" => "gtin8", + "priceSpecification" => "priceSpecification", + "availableDeliveryMethod" => "availableDeliveryMethod", + "leaseLength" => "leaseLength", + "validThrough" => "validThrough", + "ineligibleRegion" => "ineligibleRegion", + "additionalProperty" => "additionalProperty", + "isFamilyFriendly" => "isFamilyFriendly", + "eligibleCustomerType" => "eligibleCustomerType", "hasAdultConsideration" => "hasAdultConsideration", - "gtin12" => "gtin12", - "review" => "review", - "itemOffered" => "itemOffered", - "category" => "category", + "inventoryLevel" => "inventoryLevel", + "gtin13" => "gtin13", + "priceCurrency" => "priceCurrency", + "serialNumber" => "serialNumber", + "addOn" => "addOn", + "asin" => "asin", + "gtin" => "gtin", + "availabilityStarts" => "availabilityStarts", + "businessFunction" => "businessFunction", "priceValidUntil" => "priceValidUntil", "shippingDetails" => "shippingDetails", "mpn" => "mpn", - "includesObject" => "includesObject", - "businessFunction" => "businessFunction", - "itemCondition" => "itemCondition", - "gtin" => "gtin", - "eligibleQuantity" => "eligibleQuantity", - "acceptedPaymentMethod" => "acceptedPaymentMethod", - "warranty" => "warranty", - "seller" => "seller", - "ineligibleRegion" => "ineligibleRegion", - "leaseLength" => "leaseLength", + "reviews" => "reviews", + "eligibleTransactionVolume" => "eligibleTransactionVolume", + "availableAtOrFrom" => "availableAtOrFrom", + "itemOffered" => "itemOffered", + "category" => "category", "aggregateRating" => "aggregateRating", - "offeredBy" => "offeredBy", - "deliveryLeadTime" => "deliveryLeadTime", - "availableDeliveryMethod" => "availableDeliveryMethod", - "validFrom" => "validFrom", - "availabilityEnds" => "availabilityEnds", - "eligibleRegion" => "eligibleRegion", - "hasMeasurement" => "hasMeasurement", - "gtin8" => "gtin8", - "inventoryLevel" => "inventoryLevel", + "acceptedPaymentMethod" => "acceptedPaymentMethod", "sku" => "sku", - "addOn" => "addOn", + "validFrom" => "validFrom", + "mobileUrl" => "mobileUrl", + "hasGS1DigitalLink" => "hasGS1DigitalLink", + "eligibleDuration" => "eligibleDuration", + "eligibleQuantity" => "eligibleQuantity", "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", - "advanceBookingRequirement" => "advanceBookingRequirement", + "includesObject" => "includesObject", + "hasMeasurement" => "hasMeasurement", "gtin14" => "gtin14", - "priceCurrency" => "priceCurrency", - "eligibleTransactionVolume" => "eligibleTransactionVolume", - "areaServed" => "areaServed", - "eligibleCustomerType" => "eligibleCustomerType", - "availability" => "availability", - "gtin13" => "gtin13", - "reviews" => "reviews", - "isFamilyFriendly" => "isFamilyFriendly", - "validThrough" => "validThrough", - "priceSpecification" => "priceSpecification", + "checkoutPageURLTemplate" => "checkoutPageURLTemplate", + "offeredBy" => "offeredBy", "price" => "price", - "availabilityStarts" => "availabilityStarts", - "eligibleDuration" => "eligibleDuration", - "availableAtOrFrom" => "availableAtOrFrom", - "serialNumber" => "serialNumber", + "seller" => "seller", + "availability" => "availability", + "gtin12" => "gtin12", + "areaServed" => "areaServed", + "availabilityEnds" => "availabilityEnds", + "review" => "review", + "advanceBookingRequirement" => "advanceBookingRequirement", + "warranty" => "warranty", + "itemCondition" => "itemCondition", ]; return array_merge(parent::fieldList(), $fields); } /** - * Used to tag an item to be intended or suitable for consumption or use by adults only. + * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]]. + * * * - * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string */ - protected $hasAdultConsideration; + protected $eligibleRegion; /** - * The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $deliveryLeadTime; + + /** + * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * * @var string */ - protected $gtin12; + protected $gtin8; /** - * A review of the item. + * One or more detailed price specifications, indicating the unit price and delivery or payment charges. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $review; + protected $priceSpecification; /** - * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. + * The delivery method(s) available for this offer. * * - * @var \OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|string + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null */ - protected $itemOffered; + protected $availableDeliveryMethod; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $category; + protected $leaseLength; /** - * The date after which the price is no longer available. + * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. * * - * @var Date|null + * @var Date|DateTime|null */ - protected $priceValidUntil; + protected $validThrough; /** - * Indicates information about the shipping policies and options associated with an [[Offer]]. + * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. + * * * - * @var \OpenActive\Models\SchemaOrg\OfferShippingDetails|string + * @var string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - protected $shippingDetails; + protected $ineligibleRegion; /** - * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. + * A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\n\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. + * * * - * @var string + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $mpn; + protected $additionalProperty; /** - * This links to a node or nodes indicating the exact quantity of the products included in an [[Offer]] or [[ProductCollection]]. + * Indicates whether this content is family friendly. * * - * @var \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string + * @var bool|null */ - protected $includesObject; + protected $isFamilyFriendly; /** - * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell. + * The type(s) of customers for which the given offer is valid. * * - * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null + * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null */ - protected $businessFunction; + protected $eligibleCustomerType; /** - * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns. + * Used to tag an item to be intended or suitable for consumption or use by adults only. * * - * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null */ - protected $itemCondition; + protected $hasAdultConsideration; /** - * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties. The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs. A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. - * + * The current approximate inventory level for the item or items. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $inventoryLevel; + + /** + * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * * @var string */ - protected $gtin; + protected $gtin13; /** - * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity. + * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $eligibleQuantity; + protected $priceCurrency; /** - * The payment method(s) accepted by seller for this offer. + * The serial number or any alphanumeric identifier of a particular product. When attached to an offer, it is a shortcut for the serial number of the product included in the offer. * * - * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null + * @var string */ - protected $acceptedPaymentMethod; + protected $serialNumber; /** - * The warranty promise(s) included in the offer. + * An additional offer that can only be obtained in combination with the first base offer (e.g. supplements and extensions that are available for a surcharge). * * - * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $warranty; + protected $addOn; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization (summary from [Wikipedia](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)'s article). + * + * Note also that this is a definition for how to include ASINs in Schema.org data, and not a definition of ASINs in general - see documentation from Amazon for authoritative details. + * ASINs are most commonly encoded as text strings, but the [asin] property supports URL/URI as potential values too. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $seller; + protected $asin; /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\n\nSee also [[eligibleRegion]]. - * + * A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes. + * + * A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1's GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties. + * + * The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) expresses GTINs as URLs (URIs, IRIs, etc.). + * Digital Links should be populated into the [[hasGS1DigitalLink]] attribute. + * + * Note also that this is a definition for how to include GTINs in Schema.org data, and not a definition of GTINs in general - see the GS1 documentation for authoritative details. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @var string */ - protected $ineligibleRegion; + protected $gtin; /** - * Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property. + * The beginning of the availability of the product or service included in the offer. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @var Date|DateTime|string|null */ - protected $leaseLength; + protected $availabilityStarts; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * The business function (e.g. sell, lease, repair, dispose) of the offer or component of a bundle (TypeAndQuantityNode). The default is http://purl.org/goodrelations/v1#Sell. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - protected $aggregateRating; + protected $businessFunction; /** - * A pointer to the organization or person making the offer. + * The date after which the price is no longer available. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var Date|null */ - protected $offeredBy; + protected $priceValidUntil; /** - * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup. + * Indicates information about the shipping policies and options associated with an [[Offer]]. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\OfferShippingDetails|string */ - protected $deliveryLeadTime; + protected $shippingDetails; /** - * The delivery method(s) available for this offer. + * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var string */ - protected $availableDeliveryMethod; + protected $mpn; /** - * The date when the item becomes valid. + * Review of the item. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $validFrom; + protected $reviews; /** - * The end of the availability of the product or service included in the offer. + * The transaction volume, in a monetary unit, for which the offer or price specification is valid, e.g. for indicating a minimal purchasing volume, to express free shipping above a certain order volume, or to limit the acceptance of credit cards to purchases to a certain minimal amount. * * - * @var Date|DateTime|string|null + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $availabilityEnds; + protected $eligibleTransactionVolume; /** - * The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\n\nSee also [[ineligibleRegion]]. - * + * The place(s) from which the offer can be obtained (e.g. store locations). * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $eligibleRegion; + protected $availableAtOrFrom; /** - * A product measurement, for example the inseam of pants, the wheel size of a bicycle, or the gauge of a screw. Usually an exact measurement, but can also be a range of measurements for adjustable products, for example belts and ski bindings. + * An item being offered (or demanded). The transactional nature of the offer or demand is documented using [[businessFunction]], e.g. sell, lease etc. While several common expected types are listed explicitly in this definition, others can be used. Using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $hasMeasurement; + protected $itemOffered; /** - * The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - protected $gtin8; + protected $category; /** - * The current approximate inventory level for the item or items. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $inventoryLevel; + protected $aggregateRating; + + /** + * The payment method(s) that are accepted in general by an organization, or for some specific demand or offer. + * + * + * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null + */ + protected $acceptedPaymentMethod; /** * The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers. @@ -306,12 +345,47 @@ public static function fieldList() { protected $sku; /** - * An additional offer that can only be obtained in combination with the first base offer (e.g. supplements and extensions that are available for a surcharge). + * The date when the item becomes valid. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var Date|DateTime|null */ - protected $addOn; + protected $validFrom; + + /** + * The [[mobileUrl]] property is provided for specific situations in which data consumers need to determine whether one of several provided URLs is a dedicated 'mobile site'. + * + * To discourage over-use, and reflecting intial usecases, the property is expected only on [[Product]] and [[Offer]], rather than [[Thing]]. The general trend in web technology is towards [responsive design](https://en.wikipedia.org/wiki/Responsive_web_design) in which content can be flexibly adapted to a wide range of browsing environments. Pages and sites referenced with the long-established [[url]] property should ideally also be usable on a wide variety of devices, including mobile phones. In most cases, it would be pointless and counter productive to attempt to update all [[url]] markup to use [[mobileUrl]] for more mobile-oriented pages. The property is intended for the case when items (primarily [[Product]] and [[Offer]]) have extra URLs hosted on an additional "mobile site" alongside the main one. It should not be taken as an endorsement of this publication style. + * + * + * + * @var string + */ + protected $mobileUrl; + + /** + * The GS1 digital link associated with the object. This URL should conform to the particular requirements of digital links. The link should only contain the Application Identifiers (AIs) that are relevant for the entity being annotated, for instance a [[Product]] or an [[Organization]], and for the correct granularity. In particular, for products: Other item types should be adapted similarly. + * + * + * @var string + */ + protected $hasGS1DigitalLink; + + /** + * The duration for which the given offer is valid. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $eligibleDuration; + + /** + * 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\QuantitativeValue|string + */ + protected $eligibleQuantity; /** * Specifies a MerchantReturnPolicy that may be applicable. @@ -322,12 +396,20 @@ public static function fieldList() { protected $hasMerchantReturnPolicy; /** - * The amount of time that is required between accepting the offer and the actual usage of the resource or service. + * 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; + + /** + * 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 $advanceBookingRequirement; + protected $hasMeasurement; /** * 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. @@ -338,36 +420,37 @@ public static function fieldList() { protected $gtin14; /** - * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies e.g. "BTC"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types e.g. "Ithaca HOUR". + * A 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 $priceCurrency; + protected $checkoutPageURLTemplate; /** - * 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\Person|\OpenActive\Models\SchemaOrg\Organization|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. + * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. * * - * @var \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $eligibleCustomerType; + protected $seller; /** * The availability of this item—for example In stock, Out of stock, Pre-order, etc. @@ -378,1301 +461,1397 @@ public static function fieldList() { protected $availability; /** - * 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 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 $gtin13; + protected $gtin12; /** - * Review of the item. + * The geographic area where a service or offered item is provided. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ - protected $reviews; + protected $areaServed; /** - * Indicates whether this content is family friendly. + * The end of the availability of the product or service included in the offer. * * - * @var bool|null + * @var Date|DateTime|string|null */ - protected $isFamilyFriendly; + protected $availabilityEnds; /** - * 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 review of the item. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $validThrough; + protected $review; /** - * One or more detailed price specifications, indicating the unit price and delivery or payment charges. + * The amount of time that is required between accepting the offer and the actual usage of the resource or service. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $priceSpecification; + protected $advanceBookingRequirement; /** - * 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 warranty promise(s) included in the offer. * * - * @var string|Number|null + * @var \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - protected $price; + protected $warranty; /** - * The beginning of the availability of the product or service included in the offer. + * A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns. * * - * @var Date|DateTime|string|null + * @var \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - protected $availabilityStarts; + protected $itemCondition; /** - * The duration for which the given offer is valid. - * - * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string */ - protected $eligibleDuration; + public function getEligibleRegion() + { + return $this->eligibleRegion; + } /** - * The place(s) from which the offer can be obtained (e.g. store locations). - * - * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|string $eligibleRegion + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $availableAtOrFrom; + public function setEligibleRegion($eligibleRegion) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", + "string", + ]; + + $eligibleRegion = self::checkTypes($eligibleRegion, $types); + + $this->eligibleRegion = $eligibleRegion; + } /** - * The serial number or any alphanumeric identifier of a particular product. When attached to an offer, it is a shortcut for the serial number of the product included in the offer. - * - * - * @var string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $serialNumber; + public function getDeliveryLeadTime() + { + return $this->deliveryLeadTime; + } + + /** + * @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 setDeliveryLeadTime($deliveryLeadTime) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); + + $this->deliveryLeadTime = $deliveryLeadTime; + } + + /** + * @return string + */ + public function getGtin8() + { + return $this->gtin8; + } + + /** + * @param string $gtin8 + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setGtin8($gtin8) + { + $types = [ + "string", + ]; + + $gtin8 = self::checkTypes($gtin8, $types); + + $this->gtin8 = $gtin8; + } + + /** + * @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\Enums\SchemaOrg\DeliveryMethod|null + */ + public function getAvailableDeliveryMethod() + { + return $this->availableDeliveryMethod; + } + + /** + * @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 setAvailableDeliveryMethod($availableDeliveryMethod) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", + ]; + + $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); + + $this->availableDeliveryMethod = $availableDeliveryMethod; + } /** - * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null + * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getHasAdultConsideration() + public function getLeaseLength() { - return $this->hasAdultConsideration; + return $this->leaseLength; } /** - * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration + * @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 setHasAdultConsideration($hasAdultConsideration) + public function setLeaseLength($leaseLength) { $types = [ - "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", + "DateInterval", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); + $leaseLength = self::checkTypes($leaseLength, $types); - $this->hasAdultConsideration = $hasAdultConsideration; + $this->leaseLength = $leaseLength; } /** - * @return string + * @return Date|DateTime|null */ - public function getGtin12() + public function getValidThrough() { - return $this->gtin12; + return $this->validThrough; } /** - * @param string $gtin12 + * @param Date|DateTime|null $validThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin12($gtin12) + public function setValidThrough($validThrough) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $gtin12 = self::checkTypes($gtin12, $types); + $validThrough = self::checkTypes($validThrough, $types); - $this->gtin12 = $gtin12; + $this->validThrough = $validThrough; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape */ - public function getReview() + public function getIneligibleRegion() { - return $this->review; + return $this->ineligibleRegion; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setIneligibleRegion($ineligibleRegion) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", ]; - $review = self::checkTypes($review, $types); + $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); - $this->review = $review; + $this->ineligibleRegion = $ineligibleRegion; } /** - * @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\PropertyValue|string */ - public function getItemOffered() + public function getAdditionalProperty() { - return $this->itemOffered; + return $this->additionalProperty; } /** - * @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\PropertyValue|string $additionalProperty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemOffered($itemOffered) + public function setAdditionalProperty($additionalProperty) { $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\PropertyValue", "string", ]; - $itemOffered = self::checkTypes($itemOffered, $types); + $additionalProperty = self::checkTypes($additionalProperty, $types); - $this->itemOffered = $itemOffered; + $this->additionalProperty = $additionalProperty; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return bool|null */ - public function getCategory() + public function getIsFamilyFriendly() { - return $this->category; + return $this->isFamilyFriendly; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param bool|null $isFamilyFriendly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setIsFamilyFriendly($isFamilyFriendly) { $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", + "bool", "null", ]; - $category = self::checkTypes($category, $types); + $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); - $this->category = $category; + $this->isFamilyFriendly = $isFamilyFriendly; } /** - * @return Date|null + * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null */ - public function getPriceValidUntil() + public function getEligibleCustomerType() { - return $this->priceValidUntil; + return $this->eligibleCustomerType; } /** - * @param Date|null $priceValidUntil + * @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 setPriceValidUntil($priceValidUntil) + public function setEligibleCustomerType($eligibleCustomerType) { $types = [ - "Date", + "\OpenActive\Enums\SchemaOrg\BusinessEntityType", "null", ]; - $priceValidUntil = self::checkTypes($priceValidUntil, $types); + $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types); - $this->priceValidUntil = $priceValidUntil; + $this->eligibleCustomerType = $eligibleCustomerType; } /** - * @return \OpenActive\Models\SchemaOrg\OfferShippingDetails|string + * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null */ - public function getShippingDetails() + public function getHasAdultConsideration() { - return $this->shippingDetails; + return $this->hasAdultConsideration; } /** - * @param \OpenActive\Models\SchemaOrg\OfferShippingDetails|string $shippingDetails + * @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 setShippingDetails($shippingDetails) + public function setHasAdultConsideration($hasAdultConsideration) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferShippingDetails", - "string", + "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", + "null", ]; - $shippingDetails = self::checkTypes($shippingDetails, $types); + $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); - $this->shippingDetails = $shippingDetails; + $this->hasAdultConsideration = $hasAdultConsideration; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getMpn() + public function getInventoryLevel() { - return $this->mpn; + return $this->inventoryLevel; } /** - * @param string $mpn + * @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 setMpn($mpn) + public function setInventoryLevel($inventoryLevel) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $mpn = self::checkTypes($mpn, $types); + $inventoryLevel = self::checkTypes($inventoryLevel, $types); - $this->mpn = $mpn; + $this->inventoryLevel = $inventoryLevel; } /** - * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string + * @return string */ - public function getIncludesObject() + public function getGtin13() { - return $this->includesObject; + return $this->gtin13; } /** - * @param \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string $includesObject + * @param string $gtin13 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIncludesObject($includesObject) + public function setGtin13($gtin13) { $types = [ - "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode", "string", ]; - $includesObject = self::checkTypes($includesObject, $types); + $gtin13 = self::checkTypes($gtin13, $types); - $this->includesObject = $includesObject; + $this->gtin13 = $gtin13; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null + * @return string */ - public function getBusinessFunction() + public function getPriceCurrency() { - return $this->businessFunction; + return $this->priceCurrency; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessFunction|null $businessFunction + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBusinessFunction($businessFunction) + public function setPriceCurrency($priceCurrency) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessFunction", - "null", + "string", ]; - $businessFunction = self::checkTypes($businessFunction, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->businessFunction = $businessFunction; + $this->priceCurrency = $priceCurrency; } /** - * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null + * @return string */ - public function getItemCondition() + public function getSerialNumber() { - return $this->itemCondition; + return $this->serialNumber; } /** - * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition + * @param string $serialNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemCondition($itemCondition) + public function setSerialNumber($serialNumber) { $types = [ - "\OpenActive\Enums\SchemaOrg\OfferItemCondition", - "null", + "string", ]; - $itemCondition = self::checkTypes($itemCondition, $types); + $serialNumber = self::checkTypes($serialNumber, $types); - $this->itemCondition = $itemCondition; + $this->serialNumber = $serialNumber; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getGtin() + public function getAddOn() { - return $this->gtin; + return $this->addOn; } /** - * @param string $gtin + * @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 setGtin($gtin) + public function setAddOn($addOn) { $types = [ + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $gtin = self::checkTypes($gtin, $types); + $addOn = self::checkTypes($addOn, $types); - $this->gtin = $gtin; + $this->addOn = $addOn; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getEligibleQuantity() + public function getAsin() { - return $this->eligibleQuantity; + return $this->asin; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity + * @param string $asin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleQuantity($eligibleQuantity) + public function setAsin($asin) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); + $asin = self::checkTypes($asin, $types); - $this->eligibleQuantity = $eligibleQuantity; + $this->asin = $asin; } /** - * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null + * @return string */ - public function getAcceptedPaymentMethod() + public function getGtin() { - return $this->acceptedPaymentMethod; + return $this->gtin; } /** - * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod + * @param string $gtin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcceptedPaymentMethod($acceptedPaymentMethod) + 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 Date|DateTime|string|null */ - public function getWarranty() + public function getAvailabilityStarts() { - return $this->warranty; + return $this->availabilityStarts; } /** - * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty + * @param Date|DateTime|string|null $availabilityStarts * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWarranty($warranty) + public function setAvailabilityStarts($availabilityStarts) { $types = [ - "\OpenActive\Models\SchemaOrg\WarrantyPromise", - "string", + "Date", + "DateTime", + "Time", + "null", ]; - $warranty = self::checkTypes($warranty, $types); + $availabilityStarts = self::checkTypes($availabilityStarts, $types); - $this->warranty = $warranty; + $this->availabilityStarts = $availabilityStarts; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Enums\SchemaOrg\BusinessFunction|null */ - public function getSeller() + public function getBusinessFunction() { - return $this->seller; + return $this->businessFunction; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @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 setSeller($seller) + public function setBusinessFunction($businessFunction) { - $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + $types = [ + "\OpenActive\Enums\SchemaOrg\BusinessFunction", + "null", ]; - $seller = self::checkTypes($seller, $types); + $businessFunction = self::checkTypes($businessFunction, $types); - $this->seller = $seller; + $this->businessFunction = $businessFunction; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape + * @return Date|null */ - public function getIneligibleRegion() + public function getPriceValidUntil() { - return $this->ineligibleRegion; + return $this->priceValidUntil; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\GeoShape $ineligibleRegion + * @param Date|null $priceValidUntil * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIneligibleRegion($ineligibleRegion) + public function setPriceValidUntil($priceValidUntil) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", - "\OpenActive\Models\SchemaOrg\GeoShape", + "Date", + "null", ]; - $ineligibleRegion = self::checkTypes($ineligibleRegion, $types); + $priceValidUntil = self::checkTypes($priceValidUntil, $types); - $this->ineligibleRegion = $ineligibleRegion; + $this->priceValidUntil = $priceValidUntil; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\OfferShippingDetails|string */ - public function getLeaseLength() + public function getShippingDetails() { - return $this->leaseLength; + return $this->shippingDetails; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|DateInterval|string|null $leaseLength + * @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 setLeaseLength($leaseLength) + public function setShippingDetails($shippingDetails) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "DateInterval", + "\OpenActive\Models\SchemaOrg\OfferShippingDetails", "string", - "null", ]; - $leaseLength = self::checkTypes($leaseLength, $types); + $shippingDetails = self::checkTypes($shippingDetails, $types); - $this->leaseLength = $leaseLength; + $this->shippingDetails = $shippingDetails; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return string */ - public function getAggregateRating() + public function getMpn() { - return $this->aggregateRating; + return $this->mpn; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param string $mpn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setMpn($mpn) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $mpn = self::checkTypes($mpn, $types); - $this->aggregateRating = $aggregateRating; + $this->mpn = $mpn; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getOfferedBy() + public function getReviews() { - return $this->offeredBy; + return $this->reviews; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $offeredBy + * @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 setOfferedBy($offeredBy) + public function setReviews($reviews) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $offeredBy = self::checkTypes($offeredBy, $types); + $reviews = self::checkTypes($reviews, $types); - $this->offeredBy = $offeredBy; + $this->reviews = $reviews; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getDeliveryLeadTime() + public function getEligibleTransactionVolume() { - return $this->deliveryLeadTime; + return $this->eligibleTransactionVolume; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $deliveryLeadTime + * @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 setDeliveryLeadTime($deliveryLeadTime) + public function setEligibleTransactionVolume($eligibleTransactionVolume) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $deliveryLeadTime = self::checkTypes($deliveryLeadTime, $types); + $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); - $this->deliveryLeadTime = $deliveryLeadTime; + $this->eligibleTransactionVolume = $eligibleTransactionVolume; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getAvailableDeliveryMethod() + public function getAvailableAtOrFrom() { - return $this->availableDeliveryMethod; + return $this->availableAtOrFrom; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $availableDeliveryMethod + * @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 setAvailableDeliveryMethod($availableDeliveryMethod) + public function setAvailableAtOrFrom($availableAtOrFrom) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $availableDeliveryMethod = self::checkTypes($availableDeliveryMethod, $types); + $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types); - $this->availableDeliveryMethod = $availableDeliveryMethod; + $this->availableAtOrFrom = $availableAtOrFrom; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getValidFrom() + public function getItemOffered() { - return $this->validFrom; + return $this->itemOffered; } /** - * @param Date|DateTime|null $validFrom + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Trip|\OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\MenuItem|\OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\AggregateOffer|\OpenActive\Models\SchemaOrg\CreativeWork|string $itemOffered * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidFrom($validFrom) + public function setItemOffered($itemOffered) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Trip", + "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\MenuItem", + "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\AggregateOffer", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", ]; - $validFrom = self::checkTypes($validFrom, $types); + $itemOffered = self::checkTypes($itemOffered, $types); - $this->validFrom = $validFrom; + $this->itemOffered = $itemOffered; } /** - * @return Date|DateTime|string|null + * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - public function getAvailabilityEnds() + public function getCategory() { - return $this->availabilityEnds; + return $this->category; } /** - * @param Date|DateTime|string|null $availabilityEnds + * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailabilityEnds($availabilityEnds) + public function setCategory($category) { $types = [ - "Date", - "DateTime", - "Time", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Thing", + "string", "null", ]; - $availabilityEnds = self::checkTypes($availabilityEnds, $types); + $category = self::checkTypes($category, $types); - $this->availabilityEnds = $availabilityEnds; + $this->category = $category; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getEligibleRegion() + public function getAggregateRating() { - return $this->eligibleRegion; + return $this->aggregateRating; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $eligibleRegion + * @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 setEligibleRegion($eligibleRegion) + public function setAggregateRating($aggregateRating) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $eligibleRegion = self::checkTypes($eligibleRegion, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->eligibleRegion = $eligibleRegion; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null */ - public function getHasMeasurement() + public function getAcceptedPaymentMethod() { - return $this->hasMeasurement; + return $this->acceptedPaymentMethod; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMeasurement($hasMeasurement) + public function setAcceptedPaymentMethod($acceptedPaymentMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\LoanOrCredit", + "\OpenActive\Enums\SchemaOrg\PaymentMethod", "string", + "null", ]; - $hasMeasurement = self::checkTypes($hasMeasurement, $types); + $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); - $this->hasMeasurement = $hasMeasurement; + $this->acceptedPaymentMethod = $acceptedPaymentMethod; } /** * @return string */ - public function getGtin8() + public function getSku() { - return $this->gtin8; + return $this->sku; } /** - * @param string $gtin8 + * @param string $sku * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin8($gtin8) + public function setSku($sku) { $types = [ "string", ]; - $gtin8 = self::checkTypes($gtin8, $types); + $sku = self::checkTypes($sku, $types); - $this->gtin8 = $gtin8; + $this->sku = $sku; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Date|DateTime|null */ - public function getInventoryLevel() + public function getValidFrom() { - return $this->inventoryLevel; + return $this->validFrom; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $inventoryLevel + * @param Date|DateTime|null $validFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInventoryLevel($inventoryLevel) + public function setValidFrom($validFrom) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Date", + "DateTime", + "null", ]; - $inventoryLevel = self::checkTypes($inventoryLevel, $types); + $validFrom = self::checkTypes($validFrom, $types); - $this->inventoryLevel = $inventoryLevel; + $this->validFrom = $validFrom; } /** * @return string */ - public function getSku() + public function getMobileUrl() { - return $this->sku; + return $this->mobileUrl; } /** - * @param string $sku + * @param string $mobileUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSku($sku) + public function setMobileUrl($mobileUrl) { $types = [ "string", ]; - $sku = self::checkTypes($sku, $types); + $mobileUrl = self::checkTypes($mobileUrl, $types); - $this->sku = $sku; + $this->mobileUrl = $mobileUrl; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return string */ - public function getAddOn() + public function getHasGS1DigitalLink() { - return $this->addOn; + return $this->hasGS1DigitalLink; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $addOn + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddOn($addOn) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $addOn = self::checkTypes($addOn, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->addOn = $addOn; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHasMerchantReturnPolicy() + public function getEligibleDuration() { - return $this->hasMerchantReturnPolicy; + return $this->eligibleDuration; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy + * @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 setHasMerchantReturnPolicy($hasMerchantReturnPolicy) + public function setEligibleDuration($eligibleDuration) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); + $eligibleDuration = self::checkTypes($eligibleDuration, $types); - $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; + $this->eligibleDuration = $eligibleDuration; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getAdvanceBookingRequirement() + public function getEligibleQuantity() { - return $this->advanceBookingRequirement; + return $this->eligibleQuantity; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement + * @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 setAdvanceBookingRequirement($advanceBookingRequirement) + public function setEligibleQuantity($eligibleQuantity) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types); + $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); - $this->advanceBookingRequirement = $advanceBookingRequirement; + $this->eligibleQuantity = $eligibleQuantity; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - public function getGtin14() + public function getHasMerchantReturnPolicy() { - return $this->gtin14; + return $this->hasMerchantReturnPolicy; } /** - * @param string $gtin14 + * @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 setGtin14($gtin14) + public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) { $types = [ + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", ]; - $gtin14 = self::checkTypes($gtin14, $types); + $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); - $this->gtin14 = $gtin14; + $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\TypeAndQuantityNode|string */ - public function getPriceCurrency() + public function getIncludesObject() { - return $this->priceCurrency; + return $this->includesObject; } /** - * @param string $priceCurrency + * @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 setPriceCurrency($priceCurrency) + public function setIncludesObject($includesObject) { $types = [ + "\OpenActive\Models\SchemaOrg\TypeAndQuantityNode", "string", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $includesObject = self::checkTypes($includesObject, $types); - $this->priceCurrency = $priceCurrency; + $this->includesObject = $includesObject; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEligibleTransactionVolume() + public function getHasMeasurement() { - return $this->eligibleTransactionVolume; + return $this->hasMeasurement; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume + * @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 setEligibleTransactionVolume($eligibleTransactionVolume) + public function setHasMeasurement($hasMeasurement) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); + $hasMeasurement = self::checkTypes($hasMeasurement, $types); - $this->eligibleTransactionVolume = $eligibleTransactionVolume; + $this->hasMeasurement = $hasMeasurement; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return string */ - public function getAreaServed() + public function getGtin14() { - return $this->areaServed; + return $this->gtin14; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param string $gtin14 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAreaServed($areaServed) + public function setGtin14($gtin14) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", "string", - "\OpenActive\Models\SchemaOrg\Place", ]; - $areaServed = self::checkTypes($areaServed, $types); + $gtin14 = self::checkTypes($gtin14, $types); - $this->areaServed = $areaServed; + $this->gtin14 = $gtin14; } /** - * @return \OpenActive\Enums\SchemaOrg\BusinessEntityType|null + * @return string */ - public function getEligibleCustomerType() + public function getCheckoutPageURLTemplate() { - return $this->eligibleCustomerType; + return $this->checkoutPageURLTemplate; } /** - * @param \OpenActive\Enums\SchemaOrg\BusinessEntityType|null $eligibleCustomerType + * @param string $checkoutPageURLTemplate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleCustomerType($eligibleCustomerType) + public function setCheckoutPageURLTemplate($checkoutPageURLTemplate) { $types = [ - "\OpenActive\Enums\SchemaOrg\BusinessEntityType", - "null", + "string", ]; - $eligibleCustomerType = self::checkTypes($eligibleCustomerType, $types); + $checkoutPageURLTemplate = self::checkTypes($checkoutPageURLTemplate, $types); - $this->eligibleCustomerType = $eligibleCustomerType; + $this->checkoutPageURLTemplate = $checkoutPageURLTemplate; } /** - * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getAvailability() + public function getOfferedBy() { - return $this->availability; + return $this->offeredBy; } /** - * @param \OpenActive\Enums\SchemaOrg\ItemAvailability|null $availability + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $offeredBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailability($availability) + public function setOfferedBy($offeredBy) { $types = [ - "\OpenActive\Enums\SchemaOrg\ItemAvailability", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $availability = self::checkTypes($availability, $types); + $offeredBy = self::checkTypes($offeredBy, $types); - $this->availability = $availability; + $this->offeredBy = $offeredBy; } /** - * @return string + * @return string|Number|null */ - public function getGtin13() + public function getPrice() { - return $this->gtin13; + return $this->price; } /** - * @param string $gtin13 + * @param string|Number|null $price * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin13($gtin13) + public function setPrice($price) { $types = [ "string", + "Number", + "null", ]; - $gtin13 = self::checkTypes($gtin13, $types); + $price = self::checkTypes($price, $types); - $this->gtin13 = $gtin13; + $this->price = $price; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getReviews() + public function getSeller() { - return $this->reviews; + return $this->seller; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $seller * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviews($reviews) + public function setSeller($seller) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $seller = self::checkTypes($seller, $types); - $this->reviews = $reviews; + $this->seller = $seller; } /** - * @return bool|null + * @return \OpenActive\Enums\SchemaOrg\ItemAvailability|null */ - public function getIsFamilyFriendly() + public function getAvailability() { - return $this->isFamilyFriendly; + return $this->availability; } /** - * @param bool|null $isFamilyFriendly + * @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 setIsFamilyFriendly($isFamilyFriendly) + public function setAvailability($availability) { $types = [ - "bool", + "\OpenActive\Enums\SchemaOrg\ItemAvailability", "null", ]; - $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); + $availability = self::checkTypes($availability, $types); - $this->isFamilyFriendly = $isFamilyFriendly; + $this->availability = $availability; } /** - * @return Date|DateTime|null + * @return string */ - public function getValidThrough() + public function getGtin12() { - return $this->validThrough; + return $this->gtin12; } /** - * @param Date|DateTime|null $validThrough + * @param string $gtin12 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidThrough($validThrough) + public function setGtin12($gtin12) { $types = [ - "Date", - "DateTime", - "null", + "string", ]; - $validThrough = self::checkTypes($validThrough, $types); + $gtin12 = self::checkTypes($gtin12, $types); - $this->validThrough = $validThrough; + $this->gtin12 = $gtin12; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ - public function getPriceSpecification() + public function getAreaServed() { - return $this->priceSpecification; + return $this->areaServed; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place $areaServed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceSpecification($priceSpecification) + public function setAreaServed($areaServed) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", + "\OpenActive\Models\SchemaOrg\Place", ]; - $priceSpecification = self::checkTypes($priceSpecification, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->priceSpecification = $priceSpecification; + $this->areaServed = $areaServed; } /** - * @return string|Number|null + * @return Date|DateTime|string|null */ - public function getPrice() + public function getAvailabilityEnds() { - return $this->price; + return $this->availabilityEnds; } /** - * @param string|Number|null $price + * @param Date|DateTime|string|null $availabilityEnds * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrice($price) + public function setAvailabilityEnds($availabilityEnds) { $types = [ - "string", - "Number", + "Date", + "DateTime", + "Time", "null", ]; - $price = self::checkTypes($price, $types); + $availabilityEnds = self::checkTypes($availabilityEnds, $types); - $this->price = $price; + $this->availabilityEnds = $availabilityEnds; } /** - * @return Date|DateTime|string|null + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getAvailabilityStarts() + public function getReview() { - return $this->availabilityStarts; + return $this->review; } /** - * @param Date|DateTime|string|null $availabilityStarts + * @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 setAvailabilityStarts($availabilityStarts) + public function setReview($review) { $types = [ - "Date", - "DateTime", - "Time", - "null", + "\OpenActive\Models\SchemaOrg\Review", + "string", ]; - $availabilityStarts = self::checkTypes($availabilityStarts, $types); + $review = self::checkTypes($review, $types); - $this->availabilityStarts = $availabilityStarts; + $this->review = $review; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEligibleDuration() + public function getAdvanceBookingRequirement() { - return $this->eligibleDuration; + return $this->advanceBookingRequirement; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleDuration + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $advanceBookingRequirement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleDuration($eligibleDuration) + public function setAdvanceBookingRequirement($advanceBookingRequirement) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $eligibleDuration = self::checkTypes($eligibleDuration, $types); + $advanceBookingRequirement = self::checkTypes($advanceBookingRequirement, $types); - $this->eligibleDuration = $eligibleDuration; + $this->advanceBookingRequirement = $advanceBookingRequirement; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\WarrantyPromise|string */ - public function getAvailableAtOrFrom() + public function getWarranty() { - return $this->availableAtOrFrom; + return $this->warranty; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $availableAtOrFrom + * @param \OpenActive\Models\SchemaOrg\WarrantyPromise|string $warranty * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableAtOrFrom($availableAtOrFrom) + public function setWarranty($warranty) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\WarrantyPromise", "string", ]; - $availableAtOrFrom = self::checkTypes($availableAtOrFrom, $types); + $warranty = self::checkTypes($warranty, $types); - $this->availableAtOrFrom = $availableAtOrFrom; + $this->warranty = $warranty; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - public function getSerialNumber() + public function getItemCondition() { - return $this->serialNumber; + return $this->itemCondition; } /** - * @param string $serialNumber + * @param \OpenActive\Enums\SchemaOrg\OfferItemCondition|null $itemCondition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSerialNumber($serialNumber) + public function setItemCondition($itemCondition) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\OfferItemCondition", + "null", ]; - $serialNumber = self::checkTypes($serialNumber, $types); + $itemCondition = self::checkTypes($itemCondition, $types); - $this->serialNumber = $serialNumber; + $this->itemCondition = $itemCondition; } } diff --git a/src/Models/SchemaOrg/OfferShippingDetails.php b/src/Models/SchemaOrg/OfferShippingDetails.php index 7d7eba60..185027b3 100644 --- a/src/Models/SchemaOrg/OfferShippingDetails.php +++ b/src/Models/SchemaOrg/OfferShippingDetails.php @@ -17,33 +17,54 @@ public static function getType() public static function fieldList() { $fields = [ - "shippingDestination" => "shippingDestination", - "doesNotShip" => "doesNotShip", - "shippingSettingsLink" => "shippingSettingsLink", - "transitTimeLabel" => "transitTimeLabel", - "shippingLabel" => "shippingLabel", + "depth" => "depth", "deliveryTime" => "deliveryTime", "shippingRate" => "shippingRate", + "shippingLabel" => "shippingLabel", + "shippingSettingsLink" => "shippingSettingsLink", + "weight" => "weight", + "shippingDestination" => "shippingDestination", + "width" => "width", + "transitTimeLabel" => "transitTimeLabel", + "shippingOrigin" => "shippingOrigin", + "height" => "height", + "doesNotShip" => "doesNotShip", ]; return array_merge(parent::fieldList(), $fields); } /** - * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges. + * The depth of the item. * * - * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $shippingDestination; + protected $depth; /** - * Indicates when shipping to a particular [[shippingDestination]] is not available. + * The total delay between the receipt of the order and the goods reaching the final customer. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string */ - protected $doesNotShip; + protected $deliveryTime; + + /** + * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. + * + * + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + */ + protected $shippingRate; + + /** + * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). + * + * + * @var string + */ + protected $shippingLabel; /** * Link to a page containing [[ShippingRateSettings]] and [[DeliveryTimeSettings]] details. @@ -53,6 +74,30 @@ public static function fieldList() { */ protected $shippingSettingsLink; + /** + * The weight of the product or person. + * + * + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $weight; + + /** + * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges. + * + * + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + */ + protected $shippingDestination; + + /** + * The width of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $width; + /** * Label to match an [[OfferShippingDetails]] with a [[DeliveryTimeSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). * @@ -62,77 +107,127 @@ public static function fieldList() { protected $transitTimeLabel; /** - * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). + * Indicates the origin of a shipment, i.e. where it should be coming from. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - protected $shippingLabel; + protected $shippingOrigin; /** - * The total delay between the receipt of the order and the goods reaching the final customer. + * The height of the item. * * - * @var \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $deliveryTime; + protected $height; /** - * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. + * Indicates when shipping to a particular [[shippingDestination]] is not available. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var bool|null */ - protected $shippingRate; + protected $doesNotShip; /** - * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getShippingDestination() + public function getDepth() { - return $this->shippingDestination; + return $this->depth; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingDestination + * @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 setShippingDestination($shippingDestination) + public function setDepth($depth) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedRegion", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $shippingDestination = self::checkTypes($shippingDestination, $types); + $depth = self::checkTypes($depth, $types); - $this->shippingDestination = $shippingDestination; + $this->depth = $depth; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string */ - public function getDoesNotShip() + public function getDeliveryTime() { - return $this->doesNotShip; + return $this->deliveryTime; } /** - * @param bool|null $doesNotShip + * @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 setDoesNotShip($doesNotShip) + public function setDeliveryTime($deliveryTime) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime", + "string", ]; - $doesNotShip = self::checkTypes($doesNotShip, $types); + $deliveryTime = self::checkTypes($deliveryTime, $types); - $this->doesNotShip = $doesNotShip; + $this->deliveryTime = $deliveryTime; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + */ + public function getShippingRate() + { + return $this->shippingRate; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setShippingRate($shippingRate) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", + ]; + + $shippingRate = self::checkTypes($shippingRate, $types); + + $this->shippingRate = $shippingRate; + } + + /** + * @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; } /** @@ -159,6 +254,82 @@ public function setShippingSettingsLink($shippingSettingsLink) $this->shippingSettingsLink = $shippingSettingsLink; } + /** + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + public function getWeight() + { + return $this->weight; + } + + /** + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setWeight($weight) + { + $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", + ]; + + $weight = self::checkTypes($weight, $types); + + $this->weight = $weight; + } + + /** + * @return \OpenActive\Models\SchemaOrg\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\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; + } + /** * @return string */ @@ -184,77 +355,79 @@ public function setTransitTimeLabel($transitTimeLabel) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - public function getShippingLabel() + public function getShippingOrigin() { - return $this->shippingLabel; + return $this->shippingOrigin; } /** - * @param string $shippingLabel + * @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 setShippingLabel($shippingLabel) + public function setShippingOrigin($shippingOrigin) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedRegion", "string", ]; - $shippingLabel = self::checkTypes($shippingLabel, $types); + $shippingOrigin = self::checkTypes($shippingOrigin, $types); - $this->shippingLabel = $shippingLabel; + $this->shippingOrigin = $shippingOrigin; } /** - * @return \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getDeliveryTime() + public function getHeight() { - return $this->deliveryTime; + return $this->height; } /** - * @param \OpenActive\Models\SchemaOrg\ShippingDeliveryTime|string $deliveryTime + * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDeliveryTime($deliveryTime) + public function setHeight($height) { $types = [ - "\OpenActive\Models\SchemaOrg\ShippingDeliveryTime", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $deliveryTime = self::checkTypes($deliveryTime, $types); + $height = self::checkTypes($height, $types); - $this->deliveryTime = $deliveryTime; + $this->height = $height; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return bool|null */ - public function getShippingRate() + public function getDoesNotShip() { - return $this->shippingRate; + return $this->doesNotShip; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate + * @param bool|null $doesNotShip * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingRate($shippingRate) + public function setDoesNotShip($doesNotShip) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "bool", + "null", ]; - $shippingRate = self::checkTypes($shippingRate, $types); + $doesNotShip = self::checkTypes($doesNotShip, $types); - $this->shippingRate = $shippingRate; + $this->doesNotShip = $doesNotShip; } } diff --git a/src/Models/SchemaOrg/OpeningHoursSpecification.php b/src/Models/SchemaOrg/OpeningHoursSpecification.php index c6833643..98dfd796 100644 --- a/src/Models/SchemaOrg/OpeningHoursSpecification.php +++ b/src/Models/SchemaOrg/OpeningHoursSpecification.php @@ -17,23 +17,31 @@ public static function getType() public static function fieldList() { $fields = [ - "closes" => "closes", - "dayOfWeek" => "dayOfWeek", - "validFrom" => "validFrom", "opens" => "opens", "validThrough" => "validThrough", + "dayOfWeek" => "dayOfWeek", + "validFrom" => "validFrom", + "closes" => "closes", ]; return array_merge(parent::fieldList(), $fields); } /** - * The closing hour of the place or service on the given day(s) of the week. + * The opening hour of the place or service on the given day(s) of the week. * * * @var string|null */ - protected $closes; + protected $opens; + + /** + * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours. + * + * + * @var Date|DateTime|null + */ + protected $validThrough; /** * The day of the week for which these opening hours are valid. @@ -52,44 +60,62 @@ public static function fieldList() { protected $validFrom; /** - * The opening hour of the place or service on the given day(s) of the week. + * The closing hour of the place or service on the given day(s) of the week. * * * @var string|null */ - protected $opens; + protected $closes; /** - * 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|null */ - protected $validThrough; + public function getOpens() + { + return $this->opens; + } /** - * @return string|null + * @param string|null $opens + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function getCloses() + public function setOpens($opens) { - return $this->closes; + $types = [ + "Time", + "null", + ]; + + $opens = self::checkTypes($opens, $types); + + $this->opens = $opens; } /** - * @param string|null $closes + * @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 setCloses($closes) + public function setValidThrough($validThrough) { $types = [ - "Time", + "Date", + "DateTime", "null", ]; - $closes = self::checkTypes($closes, $types); + $validThrough = self::checkTypes($validThrough, $types); - $this->closes = $closes; + $this->validThrough = $validThrough; } /** @@ -146,52 +172,26 @@ public function setValidFrom($validFrom) /** * @return string|null */ - public function getOpens() + public function getCloses() { - return $this->opens; + return $this->closes; } /** - * @param string|null $opens + * @param string|null $closes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOpens($opens) + public function setCloses($closes) { $types = [ "Time", "null", ]; - $opens = self::checkTypes($opens, $types); - - $this->opens = $opens; - } - - /** - * @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); + $closes = self::checkTypes($closes, $types); - $this->validThrough = $validThrough; + $this->closes = $closes; } } diff --git a/src/Models/SchemaOrg/Order.php b/src/Models/SchemaOrg/Order.php index 45189e75..042aa9f3 100644 --- a/src/Models/SchemaOrg/Order.php +++ b/src/Models/SchemaOrg/Order.php @@ -17,80 +17,72 @@ public static function getType() public static function fieldList() { $fields = [ - "orderDelivery" => "orderDelivery", - "billingAddress" => "billingAddress", - "acceptedOffer" => "acceptedOffer", - "merchant" => "merchant", - "orderStatus" => "orderStatus", - "confirmationNumber" => "confirmationNumber", - "partOfInvoice" => "partOfInvoice", "orderNumber" => "orderNumber", - "seller" => "seller", - "customer" => "customer", - "paymentDueDate" => "paymentDueDate", - "broker" => "broker", - "discountCode" => "discountCode", + "orderStatus" => "orderStatus", "discount" => "discount", - "paymentMethodId" => "paymentMethodId", "paymentUrl" => "paymentUrl", - "discountCurrency" => "discountCurrency", - "paymentDue" => "paymentDue", + "customer" => "customer", + "partOfInvoice" => "partOfInvoice", + "paymentMethodId" => "paymentMethodId", + "merchant" => "merchant", + "discountCode" => "discountCode", "orderDate" => "orderDate", "isGift" => "isGift", "orderedItem" => "orderedItem", "paymentMethod" => "paymentMethod", + "broker" => "broker", + "paymentDue" => "paymentDue", + "confirmationNumber" => "confirmationNumber", + "paymentDueDate" => "paymentDueDate", + "billingAddress" => "billingAddress", + "seller" => "seller", + "acceptedOffer" => "acceptedOffer", + "discountCurrency" => "discountCurrency", + "orderDelivery" => "orderDelivery", ]; return array_merge(parent::fieldList(), $fields); } /** - * The delivery of the parcel related to this order or order item. - * - * - * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string - */ - protected $orderDelivery; - - /** - * The billing address for the order. + * The identifier of the transaction. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string + * @var string */ - protected $billingAddress; + protected $orderNumber; /** - * The offer(s) -- e.g., product, quantity and price combinations -- included in the order. + * The current status of the order. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var \OpenActive\Models\SchemaOrg\OrderStatus|string */ - protected $acceptedOffer; + protected $orderStatus; /** - * 'merchant' is an out-dated term for 'seller'. + * Any discount applied (to an Order). * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string|Number|null */ - protected $merchant; + protected $discount; /** - * The current status of the order. + * The URL for sending a payment. * * - * @var \OpenActive\Models\SchemaOrg\OrderStatus|string + * @var string */ - protected $orderStatus; + protected $paymentUrl; /** - * A number that confirms the given order or payment has been received. + * Party placing the order or paying the invoice. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $confirmationNumber; + protected $customer; /** * The order is being paid as part of the referenced Invoice. @@ -101,273 +93,256 @@ public static function fieldList() { protected $partOfInvoice; /** - * The identifier of the transaction. + * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). * * * @var string */ - protected $orderNumber; + protected $paymentMethodId; /** - * An entity which offers (sells / leases / lends / loans) the services / goods. A seller may also be a provider. + * 'merchant' is an out-dated term for 'seller'. * * * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $seller; + protected $merchant; /** - * Party placing the order or paying the invoice. + * Code used to redeem a discount. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $customer; + protected $discountCode; /** - * 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. + * Indicates whether the offer was accepted as a gift for someone other than the buyer. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var bool|null */ - protected $broker; + protected $isGift; /** - * Code used to redeem a discount. + * The item ordered. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string */ - protected $discountCode; + protected $orderedItem; /** - * Any discount applied (to an Order). + * The name of the credit card or other method of payment for the order. * * - * @var string|Number|null + * @var \OpenActive\Enums\SchemaOrg\PaymentMethod|null */ - protected $discount; + protected $paymentMethod; /** - * An identifier for the method of payment used (e.g. the last 4 digits of the credit card). + * 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 $paymentMethodId; + protected $broker; /** - * The URL for sending a payment. + * The date that payment is due. * * - * @var string + * @var DateTime|null */ - protected $paymentUrl; + protected $paymentDue; /** - * 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". + * A number that confirms the given order or payment has been received. * * * @var string */ - protected $discountCurrency; + protected $confirmationNumber; /** * The date that payment is due. * * - * @var DateTime|null + * @var Date|DateTime|null */ - protected $paymentDue; + protected $paymentDueDate; /** - * Date order was placed. + * The billing address for the order. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $orderDate; + protected $billingAddress; /** - * Was the offer accepted as a gift for someone other than the buyer. + * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $isGift; + protected $seller; /** - * The item ordered. + * The offer(s) -- e.g., product, quantity and price combinations -- included in the order. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\Offer|string */ - protected $orderedItem; + protected $acceptedOffer; /** - * The name of the credit card or other method of payment for the order. + * 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 \OpenActive\Enums\SchemaOrg\PaymentMethod|null - */ - protected $paymentMethod; - - /** - * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string + * @var string */ - public function getOrderDelivery() - { - return $this->orderDelivery; - } + protected $discountCurrency; /** - * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The delivery of the parcel related to this order or order item. + * + * + * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string */ - public function setOrderDelivery($orderDelivery) - { - $types = [ - "\OpenActive\Models\SchemaOrg\ParcelDelivery", - "string", - ]; - - $orderDelivery = self::checkTypes($orderDelivery, $types); - - $this->orderDelivery = $orderDelivery; - } + protected $orderDelivery; /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string + * @return string */ - public function getBillingAddress() + public function getOrderNumber() { - return $this->billingAddress; + return $this->orderNumber; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $billingAddress + * @param string $orderNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBillingAddress($billingAddress) + public function setOrderNumber($orderNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $billingAddress = self::checkTypes($billingAddress, $types); + $orderNumber = self::checkTypes($orderNumber, $types); - $this->billingAddress = $billingAddress; + $this->orderNumber = $orderNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Models\SchemaOrg\OrderStatus|string */ - public function getAcceptedOffer() + public function getOrderStatus() { - return $this->acceptedOffer; + return $this->orderStatus; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $acceptedOffer + * @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 setAcceptedOffer($acceptedOffer) + public function setOrderStatus($orderStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\OrderStatus", "string", ]; - $acceptedOffer = self::checkTypes($acceptedOffer, $types); + $orderStatus = self::checkTypes($orderStatus, $types); - $this->acceptedOffer = $acceptedOffer; + $this->orderStatus = $orderStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string|Number|null */ - public function getMerchant() + public function getDiscount() { - return $this->merchant; + return $this->discount; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $merchant + * @param string|Number|null $discount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMerchant($merchant) + public function setDiscount($discount) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", + "Number", + "null", ]; - $merchant = self::checkTypes($merchant, $types); + $discount = self::checkTypes($discount, $types); - $this->merchant = $merchant; + $this->discount = $discount; } /** - * @return \OpenActive\Models\SchemaOrg\OrderStatus|string + * @return string */ - public function getOrderStatus() + public function getPaymentUrl() { - return $this->orderStatus; + return $this->paymentUrl; } /** - * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderStatus + * @param string $paymentUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderStatus($orderStatus) + public function setPaymentUrl($paymentUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\OrderStatus", "string", ]; - $orderStatus = self::checkTypes($orderStatus, $types); + $paymentUrl = self::checkTypes($paymentUrl, $types); - $this->orderStatus = $orderStatus; + $this->paymentUrl = $paymentUrl; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getConfirmationNumber() + public function getCustomer() { - return $this->confirmationNumber; + return $this->customer; } /** - * @param string $confirmationNumber + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $customer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setConfirmationNumber($confirmationNumber) + public function setCustomer($customer) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $confirmationNumber = self::checkTypes($confirmationNumber, $types); + $customer = self::checkTypes($customer, $types); - $this->confirmationNumber = $confirmationNumber; + $this->customer = $customer; } /** @@ -398,41 +373,41 @@ public function setPartOfInvoice($partOfInvoice) /** * @return string */ - public function getOrderNumber() + public function getPaymentMethodId() { - return $this->orderNumber; + return $this->paymentMethodId; } /** - * @param string $orderNumber + * @param string $paymentMethodId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderNumber($orderNumber) + public function setPaymentMethodId($paymentMethodId) { $types = [ "string", ]; - $orderNumber = self::checkTypes($orderNumber, $types); + $paymentMethodId = self::checkTypes($paymentMethodId, $types); - $this->orderNumber = $orderNumber; + $this->paymentMethodId = $paymentMethodId; } /** * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSeller() + public function getMerchant() { - return $this->seller; + return $this->merchant; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $seller + * @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 setSeller($seller) + public function setMerchant($merchant) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", @@ -440,51 +415,49 @@ public function setSeller($seller) "string", ]; - $seller = self::checkTypes($seller, $types); + $merchant = self::checkTypes($merchant, $types); - $this->seller = $seller; + $this->merchant = $merchant; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getCustomer() + public function getDiscountCode() { - return $this->customer; + return $this->discountCode; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $customer + * @param string $discountCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCustomer($customer) + public function setDiscountCode($discountCode) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $customer = self::checkTypes($customer, $types); + $discountCode = self::checkTypes($discountCode, $types); - $this->customer = $customer; + $this->discountCode = $discountCode; } /** * @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 +465,312 @@ 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 bool|null */ - public function getBroker() + public function getIsGift() { - return $this->broker; + return $this->isGift; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker + * @param bool|null $isGift * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBroker($broker) + public function setIsGift($isGift) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", - "string", + "bool", + "null", ]; - $broker = self::checkTypes($broker, $types); + $isGift = self::checkTypes($isGift, $types); - $this->broker = $broker; + $this->isGift = $isGift; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string */ - public function getDiscountCode() + public function getOrderedItem() { - return $this->discountCode; + return $this->orderedItem; } /** - * @param string $discountCode + * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string $orderedItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscountCode($discountCode) + public function setOrderedItem($orderedItem) { $types = [ + "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\OrderItem", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $discountCode = self::checkTypes($discountCode, $types); + $orderedItem = self::checkTypes($orderedItem, $types); - $this->discountCode = $discountCode; + $this->orderedItem = $orderedItem; } /** - * @return string|Number|null + * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null */ - public function getDiscount() + public function getPaymentMethod() { - return $this->discount; + return $this->paymentMethod; } /** - * @param string|Number|null $discount + * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscount($discount) + public function setPaymentMethod($paymentMethod) { $types = [ - "string", - "Number", + "\OpenActive\Enums\SchemaOrg\PaymentMethod", "null", ]; - $discount = self::checkTypes($discount, $types); + $paymentMethod = self::checkTypes($paymentMethod, $types); - $this->discount = $discount; + $this->paymentMethod = $paymentMethod; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPaymentMethodId() + public function getBroker() { - return $this->paymentMethodId; + return $this->broker; } /** - * @param string $paymentMethodId + * @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 setPaymentMethodId($paymentMethodId) + public function setBroker($broker) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $paymentMethodId = self::checkTypes($paymentMethodId, $types); + $broker = self::checkTypes($broker, $types); - $this->paymentMethodId = $paymentMethodId; + $this->broker = $broker; } /** - * @return string + * @return DateTime|null */ - public function getPaymentUrl() + public function getPaymentDue() { - return $this->paymentUrl; + return $this->paymentDue; } /** - * @param string $paymentUrl + * @param DateTime|null $paymentDue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentUrl($paymentUrl) + public function setPaymentDue($paymentDue) { $types = [ - "string", + "DateTime", + "null", ]; - $paymentUrl = self::checkTypes($paymentUrl, $types); + $paymentDue = self::checkTypes($paymentDue, $types); - $this->paymentUrl = $paymentUrl; + $this->paymentDue = $paymentDue; } /** * @return string */ - public function getDiscountCurrency() + public function getConfirmationNumber() { - return $this->discountCurrency; + return $this->confirmationNumber; } /** - * @param string $discountCurrency + * @param string $confirmationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscountCurrency($discountCurrency) + public function setConfirmationNumber($confirmationNumber) { $types = [ "string", ]; - $discountCurrency = self::checkTypes($discountCurrency, $types); + $confirmationNumber = self::checkTypes($confirmationNumber, $types); - $this->discountCurrency = $discountCurrency; + $this->confirmationNumber = $confirmationNumber; } /** - * @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\PostalAddress|string */ - public function getOrderDate() + public function getBillingAddress() { - return $this->orderDate; + return $this->billingAddress; } /** - * @param Date|DateTime|null $orderDate + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $billingAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderDate($orderDate) + public function setBillingAddress($billingAddress) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\PostalAddress", + "string", ]; - $orderDate = self::checkTypes($orderDate, $types); + $billingAddress = self::checkTypes($billingAddress, $types); - $this->orderDate = $orderDate; + $this->billingAddress = $billingAddress; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getIsGift() + public function getSeller() { - return $this->isGift; + return $this->seller; } /** - * @param bool|null $isGift + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $seller * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsGift($isGift) + public function setSeller($seller) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $isGift = self::checkTypes($isGift, $types); + $seller = self::checkTypes($seller, $types); - $this->isGift = $isGift; + $this->seller = $seller; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getOrderedItem() + public function getAcceptedOffer() { - return $this->orderedItem; + return $this->acceptedOffer; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string $orderedItem + * @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 setOrderedItem($orderedItem) + public function setAcceptedOffer($acceptedOffer) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\OrderItem", - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $orderedItem = self::checkTypes($orderedItem, $types); + $acceptedOffer = self::checkTypes($acceptedOffer, $types); - $this->orderedItem = $orderedItem; + $this->acceptedOffer = $acceptedOffer; } /** - * @return \OpenActive\Enums\SchemaOrg\PaymentMethod|null + * @return string */ - public function getPaymentMethod() + public function getDiscountCurrency() { - return $this->paymentMethod; + return $this->discountCurrency; } /** - * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $paymentMethod + * @param string $discountCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPaymentMethod($paymentMethod) + public function setDiscountCurrency($discountCurrency) { $types = [ - "\OpenActive\Enums\SchemaOrg\PaymentMethod", - "null", + "string", ]; - $paymentMethod = self::checkTypes($paymentMethod, $types); + $discountCurrency = self::checkTypes($discountCurrency, $types); - $this->paymentMethod = $paymentMethod; + $this->discountCurrency = $discountCurrency; + } + + /** + * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string + */ + public function getOrderDelivery() + { + return $this->orderDelivery; + } + + /** + * @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 setOrderDelivery($orderDelivery) + { + $types = [ + "\OpenActive\Models\SchemaOrg\ParcelDelivery", + "string", + ]; + + $orderDelivery = self::checkTypes($orderDelivery, $types); + + $this->orderDelivery = $orderDelivery; } } diff --git a/src/Models/SchemaOrg/OrderItem.php b/src/Models/SchemaOrg/OrderItem.php index 3de3127a..59b8f68a 100644 --- a/src/Models/SchemaOrg/OrderItem.php +++ b/src/Models/SchemaOrg/OrderItem.php @@ -17,180 +17,180 @@ public static function getType() public static function fieldList() { $fields = [ - "orderDelivery" => "orderDelivery", - "orderItemStatus" => "orderItemStatus", "orderQuantity" => "orderQuantity", - "orderItemNumber" => "orderItemNumber", "orderedItem" => "orderedItem", + "orderItemNumber" => "orderItemNumber", + "orderItemStatus" => "orderItemStatus", + "orderDelivery" => "orderDelivery", ]; return array_merge(parent::fieldList(), $fields); } /** - * The delivery of the parcel related to this order or order item. + * The number of the item ordered. If the property is not set, assume the quantity is one. * * - * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string + * @var Number|null */ - protected $orderDelivery; + protected $orderQuantity; /** - * The current status of the order item. + * The item ordered. * * - * @var \OpenActive\Models\SchemaOrg\OrderStatus|string + * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string */ - protected $orderItemStatus; + protected $orderedItem; /** - * The number of the item ordered. If the property is not set, assume the quantity is one. + * The identifier of the order item. * * - * @var Number|null + * @var string */ - protected $orderQuantity; + protected $orderItemNumber; /** - * The identifier of the order item. + * The current status of the order item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OrderStatus|string */ - protected $orderItemNumber; + protected $orderItemStatus; /** - * The item ordered. + * The delivery of the parcel related to this order or order item. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\ParcelDelivery|string */ - protected $orderedItem; + protected $orderDelivery; /** - * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string + * @return Number|null */ - public function getOrderDelivery() + public function getOrderQuantity() { - return $this->orderDelivery; + return $this->orderQuantity; } /** - * @param \OpenActive\Models\SchemaOrg\ParcelDelivery|string $orderDelivery + * @param Number|null $orderQuantity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderDelivery($orderDelivery) + public function setOrderQuantity($orderQuantity) { $types = [ - "\OpenActive\Models\SchemaOrg\ParcelDelivery", - "string", + "Number", + "null", ]; - $orderDelivery = self::checkTypes($orderDelivery, $types); + $orderQuantity = self::checkTypes($orderQuantity, $types); - $this->orderDelivery = $orderDelivery; + $this->orderQuantity = $orderQuantity; } /** - * @return \OpenActive\Models\SchemaOrg\OrderStatus|string + * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string */ - public function getOrderItemStatus() + public function getOrderedItem() { - return $this->orderItemStatus; + return $this->orderedItem; } /** - * @param \OpenActive\Models\SchemaOrg\OrderStatus|string $orderItemStatus + * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string $orderedItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderItemStatus($orderItemStatus) + public function setOrderedItem($orderedItem) { $types = [ - "\OpenActive\Models\SchemaOrg\OrderStatus", + "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\OrderItem", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $orderItemStatus = self::checkTypes($orderItemStatus, $types); + $orderedItem = self::checkTypes($orderedItem, $types); - $this->orderItemStatus = $orderItemStatus; + $this->orderedItem = $orderedItem; } /** - * @return Number|null + * @return string */ - public function getOrderQuantity() + public function getOrderItemNumber() { - return $this->orderQuantity; + return $this->orderItemNumber; } /** - * @param Number|null $orderQuantity + * @param string $orderItemNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOrderQuantity($orderQuantity) + public function setOrderItemNumber($orderItemNumber) { $types = [ - "Number", - "null", + "string", ]; - $orderQuantity = self::checkTypes($orderQuantity, $types); + $orderItemNumber = self::checkTypes($orderItemNumber, $types); - $this->orderQuantity = $orderQuantity; + $this->orderItemNumber = $orderItemNumber; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\OrderStatus|string */ - public function getOrderItemNumber() + public function getOrderItemStatus() { - return $this->orderItemNumber; + return $this->orderItemStatus; } /** - * @param string $orderItemNumber + * @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 setOrderItemNumber($orderItemNumber) + public function setOrderItemStatus($orderItemStatus) { $types = [ + "\OpenActive\Models\SchemaOrg\OrderStatus", "string", ]; - $orderItemNumber = self::checkTypes($orderItemNumber, $types); + $orderItemStatus = self::checkTypes($orderItemStatus, $types); - $this->orderItemNumber = $orderItemNumber; + $this->orderItemStatus = $orderItemStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\ParcelDelivery|string */ - public function getOrderedItem() + public function getOrderDelivery() { - return $this->orderedItem; + return $this->orderDelivery; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\OrderItem|\OpenActive\Models\SchemaOrg\Product|string $orderedItem + * @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 setOrderedItem($orderedItem) + public function setOrderDelivery($orderDelivery) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\OrderItem", - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\ParcelDelivery", "string", ]; - $orderedItem = self::checkTypes($orderedItem, $types); + $orderDelivery = self::checkTypes($orderDelivery, $types); - $this->orderedItem = $orderedItem; + $this->orderDelivery = $orderDelivery; } } diff --git a/src/Models/SchemaOrg/Organization.php b/src/Models/SchemaOrg/Organization.php index 9e50ab4f..e5097f9e 100644 --- a/src/Models/SchemaOrg/Organization.php +++ b/src/Models/SchemaOrg/Organization.php @@ -17,140 +17,208 @@ public static function getType() public static function fieldList() { $fields = [ - "ownershipFundingInfo" => "ownershipFundingInfo", - "hasCredential" => "hasCredential", - "founders" => "founders", + "alumni" => "alumni", + "taxID" => "taxID", "telephone" => "telephone", - "review" => "review", - "knowsAbout" => "knowsAbout", - "award" => "award", - "member" => "member", - "employee" => "employee", - "dissolutionDate" => "dissolutionDate", + "seeks" => "seeks", "funding" => "funding", - "vatID" => "vatID", - "globalLocationNumber" => "globalLocationNumber", - "keywords" => "keywords", - "contactPoints" => "contactPoints", - "subOrganization" => "subOrganization", - "awards" => "awards", - "numberOfEmployees" => "numberOfEmployees", - "funder" => "funder", - "makesOffer" => "makesOffer", - "legalName" => "legalName", - "correctionsPolicy" => "correctionsPolicy", - "aggregateRating" => "aggregateRating", - "interactionStatistic" => "interactionStatistic", - "location" => "location", - "address" => "address", + "email" => "email", + "members" => "members", + "isicV4" => "isicV4", + "naics" => "naics", + "foundingLocation" => "foundingLocation", "memberOf" => "memberOf", - "publishingPrinciples" => "publishingPrinciples", - "diversityStaffingReport" => "diversityStaffingReport", "diversityPolicy" => "diversityPolicy", - "email" => "email", - "employees" => "employees", - "nonprofitStatus" => "nonprofitStatus", + "agentInteractionStatistic" => "agentInteractionStatistic", + "interactionStatistic" => "interactionStatistic", + "faxNumber" => "faxNumber", "slogan" => "slogan", - "ethicsPolicy" => "ethicsPolicy", + "employee" => "employee", + "leiCode" => "leiCode", + "correctionsPolicy" => "correctionsPolicy", + "vatID" => "vatID", + "funder" => "funder", + "keywords" => "keywords", + "serviceArea" => "serviceArea", + "foundingDate" => "foundingDate", + "hasCredential" => "hasCredential", + "globalLocationNumber" => "globalLocationNumber", + "knowsLanguage" => "knowsLanguage", + "makesOffer" => "makesOffer", + "iso6523Code" => "iso6523Code", "brand" => "brand", - "sponsor" => "sponsor", - "logo" => "logo", + "nonprofitStatus" => "nonprofitStatus", + "event" => "event", + "diversityStaffingReport" => "diversityStaffingReport", + "award" => "award", "actionableFeedbackPolicy" => "actionableFeedbackPolicy", - "naics" => "naics", + "founders" => "founders", + "founder" => "founder", + "reviews" => "reviews", + "dissolutionDate" => "dissolutionDate", + "ethicsPolicy" => "ethicsPolicy", + "publishingPrinciples" => "publishingPrinciples", "contactPoint" => "contactPoint", - "serviceArea" => "serviceArea", - "isicV4" => "isicV4", + "aggregateRating" => "aggregateRating", + "acceptedPaymentMethod" => "acceptedPaymentMethod", + "duns" => "duns", + "address" => "address", + "events" => "events", + "location" => "location", + "hasOfferCatalog" => "hasOfferCatalog", + "numberOfEmployees" => "numberOfEmployees", + "hasGS1DigitalLink" => "hasGS1DigitalLink", + "member" => "member", + "contactPoints" => "contactPoints", + "awards" => "awards", "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", "hasPOS" => "hasPOS", - "founder" => "founder", - "unnamedSourcesPolicy" => "unnamedSourcesPolicy", - "foundingLocation" => "foundingLocation", - "duns" => "duns", + "employees" => "employees", "parentOrganization" => "parentOrganization", - "alumni" => "alumni", - "leiCode" => "leiCode", + "logo" => "logo", + "sponsor" => "sponsor", + "legalName" => "legalName", + "ownershipFundingInfo" => "ownershipFundingInfo", + "knowsAbout" => "knowsAbout", "areaServed" => "areaServed", - "foundingDate" => "foundingDate", - "knowsLanguage" => "knowsLanguage", - "reviews" => "reviews", - "seeks" => "seeks", - "taxID" => "taxID", - "owns" => "owns", - "hasOfferCatalog" => "hasOfferCatalog", - "members" => "members", - "events" => "events", - "iso6523Code" => "iso6523Code", + "unnamedSourcesPolicy" => "unnamedSourcesPolicy", + "subOrganization" => "subOrganization", "department" => "department", - "faxNumber" => "faxNumber", - "event" => "event", + "review" => "review", + "owns" => "owns", + "hasCertification" => "hasCertification", ]; 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. + * Alumni of an organization. * * - * @var string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $ownershipFundingInfo; + protected $alumni; /** - * A credential awarded to the Person or Organization. + * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. * * - * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @var string */ - protected $hasCredential; + protected $taxID; /** - * A person who founded this organization. + * The telephone number. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $founders; + protected $telephone; /** - * The telephone number. + * A pointer to products or services sought by the organization or person (demand). + * + * + * @var \OpenActive\Models\SchemaOrg\Demand|string + */ + protected $seeks; + + /** + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * + * + * @var \OpenActive\Models\SchemaOrg\Grant|string + */ + protected $funding; + + /** + * Email address. * * * @var string */ - protected $telephone; + protected $email; /** - * A review of the item. + * A member of this organization. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $review; + protected $members; /** - * 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. + * 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\Thing + * @var string */ - protected $knowsAbout; + protected $isicV4; /** - * An award won by or for this item. + * The North American Industry Classification System (NAICS) code for a particular organization or business person. * * * @var string */ - protected $award; + protected $naics; /** - * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. + * The place where the Organization was founded. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $member; + protected $foundingLocation; + + /** + * An Organization (or ProgramMembership) to which this Person or Organization belongs. + * + * + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string + */ + protected $memberOf; + + /** + * Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data. + * + * + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + */ + protected $diversityPolicy; + + /** + * 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; + + /** + * 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 fax number. + * + * + * @var string + */ + protected $faxNumber; + + /** + * A slogan or motto associated with the item. + * + * + * @var string + */ + protected $slogan; /** * Someone working for this organization. @@ -161,20 +229,20 @@ public static function fieldList() { protected $employee; /** - * The date that this organization was dissolved. + * An organization identifier that uniquely identifies a legal entity as defined in ISO 17442. * * - * @var Date|null + * @var string */ - protected $dissolutionDate; + protected $leiCode; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * 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\Grant|string + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $funding; + protected $correctionsPolicy; /** * The Value-added Tax ID of the organization or person. @@ -185,12 +253,12 @@ public static function fieldList() { protected $vatID; /** - * 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 person or organization that supports (sponsors) something through some kind of financial contribution. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $globalLocationNumber; + protected $funder; /** * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property. @@ -201,239 +269,263 @@ public static function fieldList() { protected $keywords; /** - * A contact point for a person or organization. + * The geographic area where the service is provided. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - protected $contactPoints; + protected $serviceArea; /** - * A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific 'department' property. + * The date that this organization was founded. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var Date|null */ - protected $subOrganization; + protected $foundingDate; /** - * Awards won by or for this item. + * A credential awarded to the Person or Organization. + * + * + * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + */ + protected $hasCredential; + + /** + * 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; /** - * The number of employees in an organization e.g. business. + * 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\QuantitativeValue|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $numberOfEmployees; + protected $knowsLanguage; + + /** + * A pointer to products or services offered by the organization or person. + * + * + * @var \OpenActive\Models\SchemaOrg\Offer|string + */ + protected $makesOffer; + + /** + * 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 string + */ + protected $iso6523Code; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - protected $funder; + protected $brand; /** - * A pointer to products or services offered by the organization or person. + * nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business. * * - * @var \OpenActive\Models\SchemaOrg\Offer|string + * @var \OpenActive\Enums\SchemaOrg\NonprofitType|null */ - protected $makesOffer; + protected $nonprofitStatus; /** - * The official name of the organization, e.g. the registered company name. + * Upcoming or past event associated with this place, organization, or action. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $legalName; + protected $event; /** - * For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors. + * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Article|string */ - protected $correctionsPolicy; + protected $diversityStaffingReport; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * An award won by or for this item. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var string */ - protected $aggregateRating; + protected $award; /** - * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * 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\InteractionCounter|string + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $interactionStatistic; + protected $actionableFeedbackPolicy; /** - * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. + * A person who founded this organization. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $location; + protected $founders; /** - * Physical address of the item. + * A person who founded this organization. * * - * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $address; + protected $founder; /** - * An Organization (or ProgramMembership) to which this Person or Organization belongs. + * Review of the item. * * - * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $memberOf; + protected $reviews; /** - * 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 date that this organization was dissolved. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var Date|null */ - protected $publishingPrinciples; + protected $dissolutionDate; /** - * 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. + * Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization. * * - * @var string|\OpenActive\Models\SchemaOrg\Article + * @var string|\OpenActive\Models\SchemaOrg\CreativeWork */ - protected $diversityStaffingReport; + protected $ethicsPolicy; /** - * 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 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 $diversityPolicy; + protected $publishingPrinciples; /** - * Email address. + * A contact point for a person or organization. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $email; + protected $contactPoint; /** - * People working for this organization. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $employees; + protected $aggregateRating; /** - * nonprofit Status indicates the legal status of a non-profit organization in its primary place of business. + * The payment method(s) that are accepted in general by an organization, or for some specific demand or offer. * * - * @var \OpenActive\Enums\SchemaOrg\NonprofitType|null + * @var \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null */ - protected $nonprofitStatus; + protected $acceptedPaymentMethod; /** - * A slogan or motto associated with the item. + * The Dun & Bradstreet DUNS number for identifying an organization or business person. * * * @var string */ - protected $slogan; + protected $duns; /** - * 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. + * Physical address of the item. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress */ - protected $ethicsPolicy; + protected $address; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * Upcoming or past events associated with this place or organization. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $brand; + protected $events; /** - * A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event. + * The location of, for example, where an event is happening, where an organization is located, or where an action takes place. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation */ - protected $sponsor; + protected $location; /** - * An associated logo. + * Indicates an OfferCatalog listing for this Organization, Person, or Service. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - protected $logo; + protected $hasOfferCatalog; /** - * For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication. + * The number of employees in an organization, e.g. business. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $actionableFeedbackPolicy; + protected $numberOfEmployees; /** - * The North American Industry Classification System (NAICS) code for a particular organization or business person. + * The GS1 digital link associated with the object. This URL should conform to the particular requirements of digital links. The link should only contain the Application Identifiers (AIs) that are relevant for the entity being annotated, for instance a [[Product]] or an [[Organization]], and for the correct granularity. In particular, for products: Other item types should be adapted similarly. * * * @var string */ - protected $naics; + protected $hasGS1DigitalLink; /** - * A contact point for a person or organization. + * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $contactPoint; + protected $member; /** - * The geographic area where the service is provided. + * A contact point for a person or organization. * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $serviceArea; + protected $contactPoints; /** - * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * Awards won by or for this item. * * * @var string */ - protected $isicV4; + protected $awards; /** * Specifies a MerchantReturnPolicy that may be applicable. @@ -452,108 +544,100 @@ public static function fieldList() { protected $hasPOS; /** - * A person who founded this organization. + * People working for this organization. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $founder; + protected $employees; /** - * For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required. + * The larger organization that this organization is a [[subOrganization]] of, if any. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $unnamedSourcesPolicy; + protected $parentOrganization; /** - * The place where the Organization was founded. + * An associated logo. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $foundingLocation; + protected $logo; /** - * The Dun & Bradstreet DUNS number for identifying an organization or business 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 string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $duns; + protected $sponsor; /** - * The larger organization that this organization is a [[subOrganization]] of, if any. + * The official name of the organization, e.g. the registered company name. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $parentOrganization; + protected $legalName; /** - * Alumni of an organization. + * For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $alumni; + protected $ownershipFundingInfo; /** - * An organization identifier that uniquely identifies a legal entity as defined in ISO 17442. + * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $leiCode; + protected $knowsAbout; /** * The geographic area where a service or offered item is provided. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ protected $areaServed; /** - * The date that this organization was founded. - * - * - * @var Date|null - */ - protected $foundingDate; - - /** - * 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]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required. * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $knowsLanguage; + protected $unnamedSourcesPolicy; /** - * Review of the item. + * 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\Review|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $reviews; + protected $subOrganization; /** - * A pointer to products or services sought by the organization or person (demand). + * 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\Demand|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $seeks; + protected $department; /** - * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. + * A review of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $taxID; + protected $review; /** * Products owned by the organization or person. @@ -564,1634 +648,1660 @@ public static function fieldList() { protected $owns; /** - * Indicates an OfferCatalog listing for this Organization, Person, or Service. + * Certification information about a product, organization, service, place, or person. * * - * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $hasOfferCatalog; + protected $hasCertification; /** - * A member of this organization. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - protected $members; + public function getAlumni() + { + return $this->alumni; + } /** - * Upcoming or past events associated with this place or organization. - * - * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @param \OpenActive\Models\SchemaOrg\Person|string $alumni + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $events; + public function setAlumni($alumni) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $alumni = self::checkTypes($alumni, $types); + + $this->alumni = $alumni; + } /** - * An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. - * - * - * @var string + * @return string */ - protected $iso6523Code; + public function getTaxID() + { + return $this->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. - * - * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @param string $taxID + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $department; + public function setTaxID($taxID) + { + $types = [ + "string", + ]; + + $taxID = self::checkTypes($taxID, $types); + + $this->taxID = $taxID; + } /** - * The fax number. - * - * - * @var string + * @return string */ - protected $faxNumber; + public function getTelephone() + { + return $this->telephone; + } /** - * Upcoming or past event associated with this place, organization, or action. - * - * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @param string $telephone + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $event; + public function setTelephone($telephone) + { + $types = [ + "string", + ]; + + $telephone = self::checkTypes($telephone, $types); + + $this->telephone = $telephone; + } /** - * @return string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\Demand|string */ - public function getOwnershipFundingInfo() + public function getSeeks() { - return $this->ownershipFundingInfo; + return $this->seeks; } /** - * @param string|\OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork $ownershipFundingInfo + * @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 setOwnershipFundingInfo($ownershipFundingInfo) + public function setSeeks($seeks) { $types = [ + "\OpenActive\Models\SchemaOrg\Demand", "string", - "\OpenActive\Models\SchemaOrg\AboutPage", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types); + $seeks = self::checkTypes($seeks, $types); - $this->ownershipFundingInfo = $ownershipFundingInfo; + $this->seeks = $seeks; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return \OpenActive\Models\SchemaOrg\Grant|string */ - public function getHasCredential() + public function getFunding() { - return $this->hasCredential; + return $this->funding; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential + * @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 setHasCredential($hasCredential) + public function setFunding($funding) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", + "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $hasCredential = self::checkTypes($hasCredential, $types); + $funding = self::checkTypes($funding, $types); - $this->hasCredential = $hasCredential; + $this->funding = $funding; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getFounders() + public function getEmail() { - return $this->founders; + return $this->email; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $founders + * @param string $email * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFounders($founders) + public function setEmail($email) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $founders = self::checkTypes($founders, $types); + $email = self::checkTypes($email, $types); - $this->founders = $founders; + $this->email = $email; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getTelephone() + public function getMembers() { - return $this->telephone; + return $this->members; } /** - * @param string $telephone + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $members * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTelephone($telephone) + public function setMembers($members) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $telephone = self::checkTypes($telephone, $types); + $members = self::checkTypes($members, $types); - $this->telephone = $telephone; + $this->members = $members; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string */ - public function getReview() + public function getIsicV4() { - return $this->review; + return $this->isicV4; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param string $isicV4 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setIsicV4($isicV4) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $review = self::checkTypes($review, $types); + $isicV4 = self::checkTypes($isicV4, $types); - $this->review = $review; + $this->isicV4 = $isicV4; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return string */ - public function getKnowsAbout() + public function getNaics() { - return $this->knowsAbout; + return $this->naics; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout + * @param string $naics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnowsAbout($knowsAbout) + public function setNaics($naics) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $knowsAbout = self::checkTypes($knowsAbout, $types); + $naics = self::checkTypes($naics, $types); - $this->knowsAbout = $knowsAbout; + $this->naics = $naics; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getAward() + public function getFoundingLocation() { - return $this->award; + return $this->foundingLocation; } /** - * @param string $award + * @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 setAward($award) + public function setFoundingLocation($foundingLocation) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $award = self::checkTypes($award, $types); + $foundingLocation = self::checkTypes($foundingLocation, $types); - $this->award = $award; + $this->foundingLocation = $foundingLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string */ - public function getMember() + public function getMemberOf() { - return $this->member; + return $this->memberOf; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member + * @param \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 setMember($member) + public function setMemberOf($memberOf) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\ProgramMembership", "string", ]; - $member = self::checkTypes($member, $types); + $memberOf = self::checkTypes($memberOf, $types); - $this->member = $member; + $this->memberOf = $memberOf; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getEmployee() + public function getDiversityPolicy() { - return $this->employee; + return $this->diversityPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $employee + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $diversityPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmployee($employee) + public function setDiversityPolicy($diversityPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $employee = self::checkTypes($employee, $types); + $diversityPolicy = self::checkTypes($diversityPolicy, $types); - $this->employee = $employee; + $this->diversityPolicy = $diversityPolicy; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getDissolutionDate() + public function getAgentInteractionStatistic() { - return $this->dissolutionDate; + return $this->agentInteractionStatistic; } /** - * @param Date|null $dissolutionDate + * @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 setDissolutionDate($dissolutionDate) + public function setAgentInteractionStatistic($agentInteractionStatistic) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\InteractionCounter", + "string", ]; - $dissolutionDate = self::checkTypes($dissolutionDate, $types); + $agentInteractionStatistic = self::checkTypes($agentInteractionStatistic, $types); - $this->dissolutionDate = $dissolutionDate; + $this->agentInteractionStatistic = $agentInteractionStatistic; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getFunding() + public function getInteractionStatistic() { - return $this->funding; + return $this->interactionStatistic; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @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 setFunding($funding) + public function setInteractionStatistic($interactionStatistic) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $funding = self::checkTypes($funding, $types); + $interactionStatistic = self::checkTypes($interactionStatistic, $types); - $this->funding = $funding; + $this->interactionStatistic = $interactionStatistic; } /** * @return string */ - public function getVatID() + public function getFaxNumber() { - return $this->vatID; + return $this->faxNumber; } /** - * @param string $vatID + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVatID($vatID) + public function setFaxNumber($faxNumber) { $types = [ "string", ]; - $vatID = self::checkTypes($vatID, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->vatID = $vatID; + $this->faxNumber = $faxNumber; } /** * @return string */ - public function getGlobalLocationNumber() + public function getSlogan() { - return $this->globalLocationNumber; + return $this->slogan; } /** - * @param string $globalLocationNumber + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGlobalLocationNumber($globalLocationNumber) + public function setSlogan($slogan) { $types = [ "string", ]; - $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); + $slogan = self::checkTypes($slogan, $types); - $this->globalLocationNumber = $globalLocationNumber; + $this->slogan = $slogan; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getKeywords() + public function getEmployee() { - return $this->keywords; + return $this->employee; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param \OpenActive\Models\SchemaOrg\Person|string $employee * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setEmployee($employee) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $employee = self::checkTypes($employee, $types); - $this->keywords = $keywords; + $this->employee = $employee; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return string */ - public function getContactPoints() + public function getLeiCode() { - return $this->contactPoints; + return $this->leiCode; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints + * @param string $leiCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoints($contactPoints) + public function setLeiCode($leiCode) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $contactPoints = self::checkTypes($contactPoints, $types); + $leiCode = self::checkTypes($leiCode, $types); - $this->contactPoints = $contactPoints; + $this->leiCode = $leiCode; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getSubOrganization() + public function getCorrectionsPolicy() { - return $this->subOrganization; + return $this->correctionsPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $subOrganization + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubOrganization($subOrganization) + public function setCorrectionsPolicy($correctionsPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $subOrganization = self::checkTypes($subOrganization, $types); + $correctionsPolicy = self::checkTypes($correctionsPolicy, $types); - $this->subOrganization = $subOrganization; + $this->correctionsPolicy = $correctionsPolicy; } /** * @return string */ - public function getAwards() + public function getVatID() { - return $this->awards; + return $this->vatID; } /** - * @param string $awards + * @param string $vatID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setVatID($vatID) { $types = [ "string", ]; - $awards = self::checkTypes($awards, $types); + $vatID = self::checkTypes($vatID, $types); - $this->awards = $awards; + $this->vatID = $vatID; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getNumberOfEmployees() + public function getFunder() { - return $this->numberOfEmployees; + return $this->funder; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfEmployees + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfEmployees($numberOfEmployees) + public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); + $funder = self::checkTypes($funder, $types); - $this->numberOfEmployees = $numberOfEmployees; + $this->funder = $funder; } /** - * @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\Offer|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getMakesOffer() + public function getServiceArea() { - return $this->makesOffer; + return $this->serviceArea; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string $serviceArea * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMakesOffer($makesOffer) + public function setServiceArea($serviceArea) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", ]; - $makesOffer = self::checkTypes($makesOffer, $types); + $serviceArea = self::checkTypes($serviceArea, $types); - $this->makesOffer = $makesOffer; + $this->serviceArea = $serviceArea; } /** - * @return string + * @return Date|null */ - public function getLegalName() + public function getFoundingDate() { - return $this->legalName; + return $this->foundingDate; } /** - * @param string $legalName + * @param Date|null $foundingDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLegalName($legalName) + public function setFoundingDate($foundingDate) { $types = [ - "string", + "Date", + "null", ]; - $legalName = self::checkTypes($legalName, $types); + $foundingDate = self::checkTypes($foundingDate, $types); - $this->legalName = $legalName; + $this->foundingDate = $foundingDate; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - public function getCorrectionsPolicy() + public function getHasCredential() { - return $this->correctionsPolicy; + return $this->hasCredential; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $correctionsPolicy + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCorrectionsPolicy($correctionsPolicy) + public function setHasCredential($hasCredential) { $types = [ + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $correctionsPolicy = self::checkTypes($correctionsPolicy, $types); + $hasCredential = self::checkTypes($hasCredential, $types); - $this->correctionsPolicy = $correctionsPolicy; + $this->hasCredential = $hasCredential; } /** - * @return \OpenActive\Models\SchemaOrg\AggregateRating|string + * @return string */ - public function getAggregateRating() + public function getGlobalLocationNumber() { - return $this->aggregateRating; + return $this->globalLocationNumber; } /** - * @param \OpenActive\Models\SchemaOrg\AggregateRating|string $aggregateRating + * @param string $globalLocationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAggregateRating($aggregateRating) + public function setGlobalLocationNumber($globalLocationNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $aggregateRating = self::checkTypes($aggregateRating, $types); + $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); - $this->aggregateRating = $aggregateRating; + $this->globalLocationNumber = $globalLocationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getInteractionStatistic() + public function getKnowsLanguage() { - return $this->interactionStatistic; + return $this->knowsLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic + * @param string|\OpenActive\Models\SchemaOrg\Language $knowsLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionStatistic($interactionStatistic) + public function setKnowsLanguage($knowsLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $interactionStatistic = self::checkTypes($interactionStatistic, $types); + $knowsLanguage = self::checkTypes($knowsLanguage, $types); - $this->interactionStatistic = $interactionStatistic; + $this->knowsLanguage = $knowsLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getLocation() + public function getMakesOffer() { - return $this->location; + return $this->makesOffer; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location + * @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 setLocation($location) + public function setMakesOffer($makesOffer) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Offer", "string", - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $location = self::checkTypes($location, $types); + $makesOffer = self::checkTypes($makesOffer, $types); - $this->location = $location; + $this->makesOffer = $makesOffer; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return string */ - public function getAddress() + public function getIso6523Code() { - return $this->address; + return $this->iso6523Code; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @param string $iso6523Code * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddress($address) + public function setIso6523Code($iso6523Code) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $address = self::checkTypes($address, $types); + $iso6523Code = self::checkTypes($iso6523Code, $types); - $this->address = $address; + $this->iso6523Code = $iso6523Code; } /** - * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - public function getMemberOf() + public function getBrand() { - return $this->memberOf; + return $this->brand; } /** - * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMemberOf($memberOf) + public function setBrand($brand) { $types = [ - "\OpenActive\Models\SchemaOrg\ProgramMembership", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Brand", "string", ]; - $memberOf = self::checkTypes($memberOf, $types); + $brand = self::checkTypes($brand, $types); - $this->memberOf = $memberOf; + $this->brand = $brand; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Enums\SchemaOrg\NonprofitType|null */ - public function getPublishingPrinciples() + public function getNonprofitStatus() { - return $this->publishingPrinciples; + return $this->nonprofitStatus; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples + * @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 setPublishingPrinciples($publishingPrinciples) + public function setNonprofitStatus($nonprofitStatus) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Enums\SchemaOrg\NonprofitType", + "null", ]; - $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); + $nonprofitStatus = self::checkTypes($nonprofitStatus, $types); - $this->publishingPrinciples = $publishingPrinciples; + $this->nonprofitStatus = $nonprofitStatus; } /** - * @return string|\OpenActive\Models\SchemaOrg\Article + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getDiversityStaffingReport() + public function getEvent() { - return $this->diversityStaffingReport; + return $this->event; } /** - * @param string|\OpenActive\Models\SchemaOrg\Article $diversityStaffingReport + * @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 setDiversityStaffingReport($diversityStaffingReport) + public function setEvent($event) { $types = [ + "\OpenActive\Models\SchemaOrg\Event", "string", - "\OpenActive\Models\SchemaOrg\Article", ]; - $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types); + $event = self::checkTypes($event, $types); - $this->diversityStaffingReport = $diversityStaffingReport; + $this->event = $event; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Article|string */ - public function getDiversityPolicy() + public function getDiversityStaffingReport() { - return $this->diversityPolicy; + return $this->diversityStaffingReport; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $diversityPolicy + * @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 setDiversityPolicy($diversityPolicy) + public function setDiversityStaffingReport($diversityStaffingReport) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Article", "string", ]; - $diversityPolicy = self::checkTypes($diversityPolicy, $types); + $diversityStaffingReport = self::checkTypes($diversityStaffingReport, $types); - $this->diversityPolicy = $diversityPolicy; + $this->diversityStaffingReport = $diversityStaffingReport; } /** * @return string */ - public function getEmail() + public function getAward() { - return $this->email; + return $this->award; } /** - * @param string $email + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmail($email) + public function setAward($award) { $types = [ "string", ]; - $email = self::checkTypes($email, $types); + $award = self::checkTypes($award, $types); - $this->email = $email; + $this->award = $award; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getEmployees() + public function getActionableFeedbackPolicy() { - return $this->employees; + return $this->actionableFeedbackPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $employees + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $actionableFeedbackPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmployees($employees) + public function setActionableFeedbackPolicy($actionableFeedbackPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $employees = self::checkTypes($employees, $types); + $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types); - $this->employees = $employees; + $this->actionableFeedbackPolicy = $actionableFeedbackPolicy; } /** - * @return \OpenActive\Enums\SchemaOrg\NonprofitType|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNonprofitStatus() + public function getFounders() { - return $this->nonprofitStatus; + return $this->founders; } /** - * @param \OpenActive\Enums\SchemaOrg\NonprofitType|null $nonprofitStatus + * @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 setNonprofitStatus($nonprofitStatus) + public function setFounders($founders) { $types = [ - "\OpenActive\Enums\SchemaOrg\NonprofitType", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $nonprofitStatus = self::checkTypes($nonprofitStatus, $types); + $founders = self::checkTypes($founders, $types); - $this->nonprofitStatus = $nonprofitStatus; + $this->founders = $founders; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSlogan() + public function getFounder() { - return $this->slogan; + return $this->founder; } /** - * @param string $slogan + * @param \OpenActive\Models\SchemaOrg\Person|string $founder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSlogan($slogan) + public function setFounder($founder) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $slogan = self::checkTypes($slogan, $types); + $founder = self::checkTypes($founder, $types); - $this->slogan = $slogan; + $this->founder = $founder; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getEthicsPolicy() + public function getReviews() { - return $this->ethicsPolicy; + return $this->reviews; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy + * @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 setEthicsPolicy($ethicsPolicy) + public function setReviews($reviews) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $ethicsPolicy = self::checkTypes($ethicsPolicy, $types); + $reviews = self::checkTypes($reviews, $types); - $this->ethicsPolicy = $ethicsPolicy; + $this->reviews = $reviews; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return Date|null */ - public function getBrand() + public function getDissolutionDate() { - return $this->brand; + return $this->dissolutionDate; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @param Date|null $dissolutionDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBrand($brand) + public function setDissolutionDate($dissolutionDate) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", - "string", + "Date", + "null", ]; - $brand = self::checkTypes($brand, $types); + $dissolutionDate = self::checkTypes($dissolutionDate, $types); - $this->brand = $brand; + $this->dissolutionDate = $dissolutionDate; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\CreativeWork */ - public function getSponsor() + public function getEthicsPolicy() { - return $this->sponsor; + return $this->ethicsPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $ethicsPolicy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSponsor($sponsor) + public function setEthicsPolicy($ethicsPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $sponsor = self::checkTypes($sponsor, $types); + $ethicsPolicy = self::checkTypes($ethicsPolicy, $types); - $this->sponsor = $sponsor; + $this->ethicsPolicy = $ethicsPolicy; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getLogo() + public function getPublishingPrinciples() { - return $this->logo; + return $this->publishingPrinciples; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @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 setLogo($logo) + public function setPublishingPrinciples($publishingPrinciples) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); - $this->logo = $logo; + $this->publishingPrinciples = $publishingPrinciples; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getActionableFeedbackPolicy() + public function getContactPoint() { - return $this->actionableFeedbackPolicy; + return $this->contactPoint; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $actionableFeedbackPolicy + * @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 setActionableFeedbackPolicy($actionableFeedbackPolicy) + public function setContactPoint($contactPoint) { $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $actionableFeedbackPolicy = self::checkTypes($actionableFeedbackPolicy, $types); + $contactPoint = self::checkTypes($contactPoint, $types); - $this->actionableFeedbackPolicy = $actionableFeedbackPolicy; + $this->contactPoint = $contactPoint; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getNaics() + public function getAggregateRating() { - return $this->naics; + return $this->aggregateRating; } /** - * @param string $naics + * @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 setNaics($naics) + public function setAggregateRating($aggregateRating) { $types = [ + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $naics = self::checkTypes($naics, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->naics = $naics; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null */ - public function getContactPoint() + public function getAcceptedPaymentMethod() { - return $this->contactPoint; + return $this->acceptedPaymentMethod; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint + * @param \OpenActive\Models\SchemaOrg\LoanOrCredit|\OpenActive\Enums\SchemaOrg\PaymentMethod|string|null $acceptedPaymentMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoint($contactPoint) + public function setAcceptedPaymentMethod($acceptedPaymentMethod) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\LoanOrCredit", + "\OpenActive\Enums\SchemaOrg\PaymentMethod", "string", + "null", ]; - $contactPoint = self::checkTypes($contactPoint, $types); + $acceptedPaymentMethod = self::checkTypes($acceptedPaymentMethod, $types); - $this->contactPoint = $contactPoint; + $this->acceptedPaymentMethod = $acceptedPaymentMethod; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getServiceArea() + public function getDuns() { - return $this->serviceArea; + return $this->duns; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea + * @param string $duns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceArea($serviceArea) + public function setDuns($duns) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $serviceArea = self::checkTypes($serviceArea, $types); + $duns = self::checkTypes($duns, $types); - $this->serviceArea = $serviceArea; + $this->duns = $duns; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress */ - public function getIsicV4() + public function getAddress() { - return $this->isicV4; + return $this->address; } /** - * @param string $isicV4 + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsicV4($isicV4) + public function setAddress($address) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $isicV4 = self::checkTypes($isicV4, $types); + $address = self::checkTypes($address, $types); - $this->isicV4 = $isicV4; + $this->address = $address; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getHasMerchantReturnPolicy() + public function getEvents() { - return $this->hasMerchantReturnPolicy; + return $this->events; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy + * @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 setHasMerchantReturnPolicy($hasMerchantReturnPolicy) + public function setEvents($events) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); + $events = self::checkTypes($events, $types); - $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; + $this->events = $events; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation */ - public function getHasPOS() + public function getLocation() { - return $this->hasPOS; + return $this->location; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress|\OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\VirtualLocation $location * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasPOS($hasPOS) + public function setLocation($location) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\VirtualLocation", ]; - $hasPOS = self::checkTypes($hasPOS, $types); + $location = self::checkTypes($location, $types); - $this->hasPOS = $hasPOS; + $this->location = $location; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - public function getFounder() + public function getHasOfferCatalog() { - return $this->founder; + return $this->hasOfferCatalog; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $founder + * @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 setFounder($founder) + public function setHasOfferCatalog($hasOfferCatalog) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $founder = self::checkTypes($founder, $types); + $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); - $this->founder = $founder; + $this->hasOfferCatalog = $hasOfferCatalog; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getUnnamedSourcesPolicy() + public function getNumberOfEmployees() { - return $this->unnamedSourcesPolicy; + return $this->numberOfEmployees; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $unnamedSourcesPolicy + * @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 setUnnamedSourcesPolicy($unnamedSourcesPolicy) + public function setNumberOfEmployees($numberOfEmployees) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types); + $numberOfEmployees = self::checkTypes($numberOfEmployees, $types); - $this->unnamedSourcesPolicy = $unnamedSourcesPolicy; + $this->numberOfEmployees = $numberOfEmployees; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getFoundingLocation() + public function getHasGS1DigitalLink() { - return $this->foundingLocation; + return $this->hasGS1DigitalLink; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $foundingLocation + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFoundingLocation($foundingLocation) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $foundingLocation = self::checkTypes($foundingLocation, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->foundingLocation = $foundingLocation; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getDuns() + public function getMember() { - return $this->duns; + return $this->member; } /** - * @param string $duns + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $member * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuns($duns) + public function setMember($member) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $duns = self::checkTypes($duns, $types); + $member = self::checkTypes($member, $types); - $this->duns = $duns; + $this->member = $member; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getParentOrganization() + public function getContactPoints() { - return $this->parentOrganization; + return $this->contactPoints; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $parentOrganization + * @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 setParentOrganization($parentOrganization) + public function setContactPoints($contactPoints) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $parentOrganization = self::checkTypes($parentOrganization, $types); + $contactPoints = self::checkTypes($contactPoints, $types); - $this->parentOrganization = $parentOrganization; + $this->contactPoints = $contactPoints; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getAlumni() + public function getAwards() { - return $this->alumni; + return $this->awards; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $alumni + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlumni($alumni) + public function setAwards($awards) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $alumni = self::checkTypes($alumni, $types); + $awards = self::checkTypes($awards, $types); - $this->alumni = $alumni; + $this->awards = $awards; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - public function getLeiCode() + public function getHasMerchantReturnPolicy() { - return $this->leiCode; + return $this->hasMerchantReturnPolicy; } /** - * @param string $leiCode + * @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 setLeiCode($leiCode) + public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) { $types = [ + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", ]; - $leiCode = self::checkTypes($leiCode, $types); + $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); - $this->leiCode = $leiCode; + $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getAreaServed() + public function getHasPOS() { - return $this->areaServed; + return $this->hasPOS; } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @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 setAreaServed($areaServed) + public function setHasPOS($hasPOS) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\GeoShape", - "string", "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $areaServed = self::checkTypes($areaServed, $types); + $hasPOS = self::checkTypes($hasPOS, $types); - $this->areaServed = $areaServed; + $this->hasPOS = $hasPOS; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getFoundingDate() + public function getEmployees() { - return $this->foundingDate; + return $this->employees; } /** - * @param Date|null $foundingDate + * @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 setFoundingDate($foundingDate) + public function setEmployees($employees) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $foundingDate = self::checkTypes($foundingDate, $types); + $employees = self::checkTypes($employees, $types); - $this->foundingDate = $foundingDate; + $this->employees = $employees; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getKnowsLanguage() + public function getParentOrganization() { - return $this->knowsLanguage; + return $this->parentOrganization; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage + * @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 setKnowsLanguage($knowsLanguage) + public function setParentOrganization($parentOrganization) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $knowsLanguage = self::checkTypes($knowsLanguage, $types); + $parentOrganization = self::checkTypes($parentOrganization, $types); - $this->knowsLanguage = $knowsLanguage; + $this->parentOrganization = $parentOrganization; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getReviews() + public function getLogo() { - return $this->reviews; + return $this->logo; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @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 setReviews($reviews) + public function setLogo($logo) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $logo = self::checkTypes($logo, $types); - $this->reviews = $reviews; + $this->logo = $logo; } /** - * @return \OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSeeks() + public function getSponsor() { - return $this->seeks; + return $this->sponsor; } /** - * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks + * @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 setSeeks($seeks) + public function setSponsor($sponsor) { $types = [ - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $seeks = self::checkTypes($seeks, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->seeks = $seeks; + $this->sponsor = $sponsor; } /** * @return string */ - public function getTaxID() + public function getLegalName() { - return $this->taxID; + return $this->legalName; } /** - * @param string $taxID + * @param string $legalName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTaxID($taxID) + public function setLegalName($legalName) { $types = [ "string", ]; - $taxID = self::checkTypes($taxID, $types); + $legalName = self::checkTypes($legalName, $types); - $this->taxID = $taxID; + $this->legalName = $legalName; } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @return \OpenActive\Models\SchemaOrg\AboutPage|\OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getOwns() + public function getOwnershipFundingInfo() { - return $this->owns; + return $this->ownershipFundingInfo; } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns + * @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 setOwns($owns) + public function setOwnershipFundingInfo($ownershipFundingInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\OwnershipInfo", + "\OpenActive\Models\SchemaOrg\AboutPage", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $owns = self::checkTypes($owns, $types); + $ownershipFundingInfo = self::checkTypes($ownershipFundingInfo, $types); - $this->owns = $owns; + $this->ownershipFundingInfo = $ownershipFundingInfo; } /** - * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getHasOfferCatalog() + public function getKnowsAbout() { - return $this->hasOfferCatalog; + return $this->knowsAbout; } /** - * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @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 setHasOfferCatalog($hasOfferCatalog) + public function setKnowsAbout($knowsAbout) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + $knowsAbout = self::checkTypes($knowsAbout, $types); - $this->hasOfferCatalog = $hasOfferCatalog; + $this->knowsAbout = $knowsAbout; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ - public function getMembers() + public function getAreaServed() { - return $this->members; + return $this->areaServed; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $members + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place $areaServed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMembers($members) + public function setAreaServed($areaServed) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", + "\OpenActive\Models\SchemaOrg\Place", ]; - $members = self::checkTypes($members, $types); + $areaServed = self::checkTypes($areaServed, $types); - $this->members = $members; + $this->areaServed = $areaServed; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getEvents() + public function getUnnamedSourcesPolicy() { - return $this->events; + return $this->unnamedSourcesPolicy; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $events + * @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 setEvents($events) + public function setUnnamedSourcesPolicy($unnamedSourcesPolicy) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $events = self::checkTypes($events, $types); + $unnamedSourcesPolicy = self::checkTypes($unnamedSourcesPolicy, $types); - $this->events = $events; + $this->unnamedSourcesPolicy = $unnamedSourcesPolicy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getIso6523Code() + public function getSubOrganization() { - return $this->iso6523Code; + return $this->subOrganization; } /** - * @param string $iso6523Code + * @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 setIso6523Code($iso6523Code) + public function setSubOrganization($subOrganization) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $iso6523Code = self::checkTypes($iso6523Code, $types); + $subOrganization = self::checkTypes($subOrganization, $types); - $this->iso6523Code = $iso6523Code; + $this->subOrganization = $subOrganization; } /** @@ -2220,52 +2330,79 @@ public function setDepartment($department) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getFaxNumber() + public function getReview() { - return $this->faxNumber; + return $this->review; } /** - * @param string $faxNumber + * @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 setFaxNumber($faxNumber) + public function setReview($review) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $review = self::checkTypes($review, $types); - $this->faxNumber = $faxNumber; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string */ - public function getEvent() + public function getOwns() { - return $this->event; + return $this->owns; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $event + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvent($event) + public function setOwns($owns) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\OwnershipInfo", "string", ]; - $event = self::checkTypes($event, $types); + $owns = self::checkTypes($owns, $types); - $this->event = $event; + $this->owns = $owns; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Certification|string + */ + public function getHasCertification() + { + return $this->hasCertification; + } + + /** + * @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 setHasCertification($hasCertification) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Certification", + "string", + ]; + + $hasCertification = self::checkTypes($hasCertification, $types); + + $this->hasCertification = $hasCertification; } } diff --git a/src/Models/SchemaOrg/OwnershipInfo.php b/src/Models/SchemaOrg/OwnershipInfo.php index 8567084a..5830cf69 100644 --- a/src/Models/SchemaOrg/OwnershipInfo.php +++ b/src/Models/SchemaOrg/OwnershipInfo.php @@ -17,9 +17,9 @@ public static function getType() public static function fieldList() { $fields = [ + "acquiredFrom" => "acquiredFrom", "ownedFrom" => "ownedFrom", "typeOfGood" => "typeOfGood", - "acquiredFrom" => "acquiredFrom", "ownedThrough" => "ownedThrough", ]; @@ -27,28 +27,28 @@ public static function fieldList() { } /** - * 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 product that this structured value is referring to. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string */ - protected $acquiredFrom; + protected $typeOfGood; /** * The date and time of giving up ownership on the product. @@ -59,80 +59,80 @@ public static function fieldList() { protected $ownedThrough; /** - * @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 \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string */ - public function getAcquiredFrom() + public function getTypeOfGood() { - return $this->acquiredFrom; + return $this->typeOfGood; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $acquiredFrom + * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $typeOfGood * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcquiredFrom($acquiredFrom) + public function setTypeOfGood($typeOfGood) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $acquiredFrom = self::checkTypes($acquiredFrom, $types); + $typeOfGood = self::checkTypes($typeOfGood, $types); - $this->acquiredFrom = $acquiredFrom; + $this->typeOfGood = $typeOfGood; } /** diff --git a/src/Models/SchemaOrg/ParcelDelivery.php b/src/Models/SchemaOrg/ParcelDelivery.php index 1d2c5534..7bb9f40c 100644 --- a/src/Models/SchemaOrg/ParcelDelivery.php +++ b/src/Models/SchemaOrg/ParcelDelivery.php @@ -17,38 +17,46 @@ public static function getType() public static function fieldList() { $fields = [ - "originAddress" => "originAddress", "trackingNumber" => "trackingNumber", + "expectedArrivalUntil" => "expectedArrivalUntil", + "hasDeliveryMethod" => "hasDeliveryMethod", "itemShipped" => "itemShipped", - "provider" => "provider", + "originAddress" => "originAddress", "trackingUrl" => "trackingUrl", "deliveryAddress" => "deliveryAddress", - "expectedArrivalUntil" => "expectedArrivalUntil", "deliveryStatus" => "deliveryStatus", - "expectedArrivalFrom" => "expectedArrivalFrom", "carrier" => "carrier", - "hasDeliveryMethod" => "hasDeliveryMethod", "partOfOrder" => "partOfOrder", + "expectedArrivalFrom" => "expectedArrivalFrom", + "provider" => "provider", ]; return array_merge(parent::fieldList(), $fields); } /** - * Shipper's address. + * Shipper tracking number. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string + * @var string */ - protected $originAddress; + protected $trackingNumber; /** - * Shipper tracking number. + * The latest date the package may arrive. * * - * @var string + * @var Date|DateTime|null */ - protected $trackingNumber; + protected $expectedArrivalUntil; + + /** + * Method used for delivery or shipping. + * + * + * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + */ + protected $hasDeliveryMethod; /** * Item(s) being shipped. @@ -59,12 +67,12 @@ public static function fieldList() { protected $itemShipped; /** - * 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. + * Shipper's address. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $provider; + protected $originAddress; /** * Tracking url for the parcel delivery. @@ -82,14 +90,6 @@ public static function fieldList() { */ protected $deliveryAddress; - /** - * The latest date the package may arrive. - * - * - * @var Date|DateTime|null - */ - protected $expectedArrivalUntil; - /** * New entry added as the package passes through each leg of its journey (from shipment to final delivery). * @@ -99,84 +99,110 @@ public static function fieldList() { protected $deliveryStatus; /** - * The earliest date the package may arrive. + * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $expectedArrivalFrom; + protected $carrier; /** - * 'carrier' is an out-dated term indicating the 'provider' for parcel delivery and flights. + * The overall order the items in this delivery were included in. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Order|string */ - protected $carrier; + protected $partOfOrder; /** - * Method used for delivery or shipping. + * The earliest date the package may arrive. * * - * @var \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @var Date|DateTime|null */ - protected $hasDeliveryMethod; + protected $expectedArrivalFrom; /** - * The overall order the items in this delivery were included in. + * 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\Order|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $partOfOrder; + protected $provider; /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string + * @return string */ - public function getOriginAddress() + public function getTrackingNumber() { - return $this->originAddress; + return $this->trackingNumber; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $originAddress + * @param string $trackingNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOriginAddress($originAddress) + public function setTrackingNumber($trackingNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $originAddress = self::checkTypes($originAddress, $types); + $trackingNumber = self::checkTypes($trackingNumber, $types); - $this->originAddress = $originAddress; + $this->trackingNumber = $trackingNumber; } /** - * @return string + * @return Date|DateTime|null */ - public function getTrackingNumber() + public function getExpectedArrivalUntil() { - return $this->trackingNumber; + return $this->expectedArrivalUntil; } /** - * @param string $trackingNumber + * @param Date|DateTime|null $expectedArrivalUntil * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrackingNumber($trackingNumber) + public function setExpectedArrivalUntil($expectedArrivalUntil) { $types = [ - "string", + "Date", + "DateTime", + "null", ]; - $trackingNumber = self::checkTypes($trackingNumber, $types); + $expectedArrivalUntil = self::checkTypes($expectedArrivalUntil, $types); - $this->trackingNumber = $trackingNumber; + $this->expectedArrivalUntil = $expectedArrivalUntil; + } + + /** + * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + */ + public function getHasDeliveryMethod() + { + return $this->hasDeliveryMethod; + } + + /** + * @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 setHasDeliveryMethod($hasDeliveryMethod) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "null", + ]; + + $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types); + + $this->hasDeliveryMethod = $hasDeliveryMethod; } /** @@ -205,29 +231,28 @@ public function setItemShipped($itemShipped) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getProvider() + public function getOriginAddress() { - return $this->provider; + return $this->originAddress; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @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 setProvider($provider) + public function setOriginAddress($originAddress) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", ]; - $provider = self::checkTypes($provider, $types); + $originAddress = self::checkTypes($originAddress, $types); - $this->provider = $provider; + $this->originAddress = $originAddress; } /** @@ -279,32 +304,6 @@ public function setDeliveryAddress($deliveryAddress) $this->deliveryAddress = $deliveryAddress; } - /** - * @return Date|DateTime|null - */ - public function getExpectedArrivalUntil() - { - return $this->expectedArrivalUntil; - } - - /** - * @param Date|DateTime|null $expectedArrivalUntil - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setExpectedArrivalUntil($expectedArrivalUntil) - { - $types = [ - "Date", - "DateTime", - "null", - ]; - - $expectedArrivalUntil = self::checkTypes($expectedArrivalUntil, $types); - - $this->expectedArrivalUntil = $expectedArrivalUntil; - } - /** * @return \OpenActive\Models\SchemaOrg\DeliveryEvent|string */ @@ -331,104 +330,105 @@ public function setDeliveryStatus($deliveryStatus) } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getExpectedArrivalFrom() + public function getCarrier() { - return $this->expectedArrivalFrom; + return $this->carrier; } /** - * @param Date|DateTime|null $expectedArrivalFrom + * @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 setExpectedArrivalFrom($expectedArrivalFrom) + public function setCarrier($carrier) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $expectedArrivalFrom = self::checkTypes($expectedArrivalFrom, $types); + $carrier = self::checkTypes($carrier, $types); - $this->expectedArrivalFrom = $expectedArrivalFrom; + $this->carrier = $carrier; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Order|string */ - public function getCarrier() + public function getPartOfOrder() { - return $this->carrier; + return $this->partOfOrder; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $carrier + * @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 setCarrier($carrier) + public function setPartOfOrder($partOfOrder) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Order", "string", ]; - $carrier = self::checkTypes($carrier, $types); + $partOfOrder = self::checkTypes($partOfOrder, $types); - $this->carrier = $carrier; + $this->partOfOrder = $partOfOrder; } /** - * @return \OpenActive\Enums\SchemaOrg\DeliveryMethod|null + * @return Date|DateTime|null */ - public function getHasDeliveryMethod() + public function getExpectedArrivalFrom() { - return $this->hasDeliveryMethod; + return $this->expectedArrivalFrom; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $hasDeliveryMethod + * @param Date|DateTime|null $expectedArrivalFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasDeliveryMethod($hasDeliveryMethod) + public function setExpectedArrivalFrom($expectedArrivalFrom) { $types = [ - "\OpenActive\Enums\SchemaOrg\DeliveryMethod", + "Date", + "DateTime", "null", ]; - $hasDeliveryMethod = self::checkTypes($hasDeliveryMethod, $types); + $expectedArrivalFrom = self::checkTypes($expectedArrivalFrom, $types); - $this->hasDeliveryMethod = $hasDeliveryMethod; + $this->expectedArrivalFrom = $expectedArrivalFrom; } /** - * @return \OpenActive\Models\SchemaOrg\Order|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPartOfOrder() + public function getProvider() { - return $this->partOfOrder; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\Order|string $partOfOrder + * @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 setPartOfOrder($partOfOrder) + public function setProvider($provider) { $types = [ - "\OpenActive\Models\SchemaOrg\Order", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $partOfOrder = self::checkTypes($partOfOrder, $types); + $provider = self::checkTypes($provider, $types); - $this->partOfOrder = $partOfOrder; + $this->provider = $provider; } } diff --git a/src/Models/SchemaOrg/ParentAudience.php b/src/Models/SchemaOrg/ParentAudience.php index 93358040..f0de9b31 100644 --- a/src/Models/SchemaOrg/ParentAudience.php +++ b/src/Models/SchemaOrg/ParentAudience.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "childMaxAge" => "childMaxAge", "childMinAge" => "childMinAge", + "childMaxAge" => "childMaxAge", ]; return array_merge(parent::fieldList(), $fields); } /** - * Maximal age of the child. + * Minimal age of the child. * * * @var Number|null */ - protected $childMaxAge; + protected $childMinAge; /** - * Minimal age of the child. + * Maximal age of the child. * * * @var Number|null */ - protected $childMinAge; + protected $childMaxAge; /** * @return Number|null */ - public function getChildMaxAge() + public function getChildMinAge() { - return $this->childMaxAge; + return $this->childMinAge; } /** - * @param Number|null $childMaxAge + * @param Number|null $childMinAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setChildMaxAge($childMaxAge) + public function setChildMinAge($childMinAge) { $types = [ "Number", "null", ]; - $childMaxAge = self::checkTypes($childMaxAge, $types); + $childMinAge = self::checkTypes($childMinAge, $types); - $this->childMaxAge = $childMaxAge; + $this->childMinAge = $childMinAge; } /** * @return Number|null */ - public function getChildMinAge() + public function getChildMaxAge() { - return $this->childMinAge; + return $this->childMaxAge; } /** - * @param Number|null $childMinAge + * @param Number|null $childMaxAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setChildMinAge($childMinAge) + public function setChildMaxAge($childMaxAge) { $types = [ "Number", "null", ]; - $childMinAge = self::checkTypes($childMinAge, $types); + $childMaxAge = self::checkTypes($childMaxAge, $types); - $this->childMinAge = $childMinAge; + $this->childMaxAge = $childMaxAge; } } diff --git a/src/Models/SchemaOrg/Patient.php b/src/Models/SchemaOrg/Patient.php index 03ca71cc..0cf34819 100644 --- a/src/Models/SchemaOrg/Patient.php +++ b/src/Models/SchemaOrg/Patient.php @@ -5,7 +5,7 @@ /** * */ -class Patient extends \OpenActive\Models\SchemaOrg\MedicalAudience +class Patient extends \OpenActive\Models\SchemaOrg\Person { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/PayAction.php b/src/Models/SchemaOrg/PayAction.php index 1f0c2cd7..597b8ffc 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\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ public function getRecipient() { @@ -40,17 +40,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRecipient($recipient) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; diff --git a/src/Models/SchemaOrg/PaymentCard.php b/src/Models/SchemaOrg/PaymentCard.php index 4205b446..630e1574 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", + "monthlyMinimumRepaymentAmount" => "monthlyMinimumRepaymentAmount", ]; return array_merge(parent::fieldList(), $fields); @@ -34,14 +34,6 @@ 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. - * - * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null - */ - protected $monthlyMinimumRepaymentAmount; - /** * A floor limit is the amount of money above which credit card transactions must be authorized. * @@ -58,6 +50,14 @@ public static function fieldList() { */ protected $contactlessPayment; + /** + * The minimum payment is the lowest amount of money that one is required to pay on a credit card statement each month. + * + * + * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + */ + protected $monthlyMinimumRepaymentAmount; + /** * @return bool|Number|null */ @@ -85,80 +85,80 @@ public function setCashBack($cashBack) } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getMonthlyMinimumRepaymentAmount() + public function getFloorLimit() { - return $this->monthlyMinimumRepaymentAmount; + return $this->floorLimit; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string|Number|null $monthlyMinimumRepaymentAmount + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $floorLimit * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMonthlyMinimumRepaymentAmount($monthlyMinimumRepaymentAmount) + public function setFloorLimit($floorLimit) { $types = [ "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", - "Number", - "null", ]; - $monthlyMinimumRepaymentAmount = self::checkTypes($monthlyMinimumRepaymentAmount, $types); + $floorLimit = self::checkTypes($floorLimit, $types); - $this->monthlyMinimumRepaymentAmount = $monthlyMinimumRepaymentAmount; + $this->floorLimit = $floorLimit; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return bool|null */ - public function getFloorLimit() + public function getContactlessPayment() { - return $this->floorLimit; + return $this->contactlessPayment; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $floorLimit + * @param bool|null $contactlessPayment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFloorLimit($floorLimit) + public function setContactlessPayment($contactlessPayment) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", + "bool", + "null", ]; - $floorLimit = self::checkTypes($floorLimit, $types); + $contactlessPayment = self::checkTypes($contactlessPayment, $types); - $this->floorLimit = $floorLimit; + $this->contactlessPayment = $contactlessPayment; } /** - * @return bool|null + * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null */ - public function getContactlessPayment() + public function getMonthlyMinimumRepaymentAmount() { - return $this->contactlessPayment; + return $this->monthlyMinimumRepaymentAmount; } /** - * @param bool|null $contactlessPayment + * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|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", + "Number", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", "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..80b627a9 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\Enums\SchemaOrg\PaymentMethod|null */ - 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\Enums\SchemaOrg\PaymentMethod|null */ - public function getAppliesToDeliveryMethod() + public function getAppliesToPaymentMethod() { - return $this->appliesToDeliveryMethod; + return $this->appliesToPaymentMethod; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $appliesToDeliveryMethod + * @param \OpenActive\Enums\SchemaOrg\PaymentMethod|null $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", + "\OpenActive\Enums\SchemaOrg\PaymentMethod", "null", ]; - $appliesToDeliveryMethod = self::checkTypes($appliesToDeliveryMethod, $types); + $appliesToPaymentMethod = self::checkTypes($appliesToPaymentMethod, $types); - $this->appliesToDeliveryMethod = $appliesToDeliveryMethod; + $this->appliesToPaymentMethod = $appliesToPaymentMethod; } } diff --git a/src/Models/SchemaOrg/PeopleAudience.php b/src/Models/SchemaOrg/PeopleAudience.php index 309a33b3..a856becc 100644 --- a/src/Models/SchemaOrg/PeopleAudience.php +++ b/src/Models/SchemaOrg/PeopleAudience.php @@ -18,14 +18,14 @@ public static function getType() public static function fieldList() { $fields = [ "requiredMinAge" => "requiredMinAge", - "suggestedMaxAge" => "suggestedMaxAge", "healthCondition" => "healthCondition", - "suggestedMeasurement" => "suggestedMeasurement", - "suggestedAge" => "suggestedAge", - "requiredMaxAge" => "requiredMaxAge", "suggestedMinAge" => "suggestedMinAge", "requiredGender" => "requiredGender", + "suggestedMaxAge" => "suggestedMaxAge", + "requiredMaxAge" => "requiredMaxAge", "suggestedGender" => "suggestedGender", + "suggestedMeasurement" => "suggestedMeasurement", + "suggestedAge" => "suggestedAge", ]; return array_merge(parent::fieldList(), $fields); @@ -40,36 +40,36 @@ public static function fieldList() { protected $requiredMinAge; /** - * Maximum recommended age in years for the audience or user. + * Specifying the health condition(s) of a patient, medical study, or other target audience. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - protected $suggestedMaxAge; + protected $healthCondition; /** - * Specifying the health condition(s) of a patient, medical study, or other target audience. + * Minimum recommended age in years for the audience or user. * * - * @var \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @var Number|null */ - protected $healthCondition; + protected $suggestedMinAge; /** - * 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 gender. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $suggestedMeasurement; + protected $requiredGender; /** - * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers. + * Maximum recommended age in years for the audience or user. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|null */ - protected $suggestedAge; + protected $suggestedMaxAge; /** * Audiences defined by a person's maximum age. @@ -80,28 +80,28 @@ public static function fieldList() { protected $requiredMaxAge; /** - * Minimum recommended age in years for the audience or user. + * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". * * - * @var Number|null + * @var string|\OpenActive\Enums\SchemaOrg\GenderType|null */ - protected $suggestedMinAge; + protected $suggestedGender; /** - * 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". + * 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\Enums\SchemaOrg\GenderType|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $suggestedGender; + protected $suggestedAge; /** * @return int|null @@ -129,103 +129,102 @@ public function setRequiredMinAge($requiredMinAge) } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string */ - public function getSuggestedMaxAge() + public function getHealthCondition() { - return $this->suggestedMaxAge; + return $this->healthCondition; } /** - * @param Number|null $suggestedMaxAge + * @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 setSuggestedMaxAge($suggestedMaxAge) + public function setHealthCondition($healthCondition) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\MedicalCondition", + "string", ]; - $suggestedMaxAge = self::checkTypes($suggestedMaxAge, $types); + $healthCondition = self::checkTypes($healthCondition, $types); - $this->suggestedMaxAge = $suggestedMaxAge; + $this->healthCondition = $healthCondition; } /** - * @return \OpenActive\Models\SchemaOrg\MedicalCondition|string + * @return Number|null */ - public function getHealthCondition() + public function getSuggestedMinAge() { - return $this->healthCondition; + return $this->suggestedMinAge; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalCondition|string $healthCondition + * @param Number|null $suggestedMinAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHealthCondition($healthCondition) + public function setSuggestedMinAge($suggestedMinAge) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalCondition", - "string", + "Number", + "null", ]; - $healthCondition = self::checkTypes($healthCondition, $types); + $suggestedMinAge = self::checkTypes($suggestedMinAge, $types); - $this->healthCondition = $healthCondition; + $this->suggestedMinAge = $suggestedMinAge; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getSuggestedMeasurement() + public function getRequiredGender() { - return $this->suggestedMeasurement; + return $this->requiredGender; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement + * @param string $requiredGender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMeasurement($suggestedMeasurement) + public function setRequiredGender($requiredGender) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); + $requiredGender = self::checkTypes($requiredGender, $types); - $this->suggestedMeasurement = $suggestedMeasurement; + $this->requiredGender = $requiredGender; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|null */ - public function getSuggestedAge() + public function getSuggestedMaxAge() { - return $this->suggestedAge; + return $this->suggestedMaxAge; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge + * @param Number|null $suggestedMaxAge * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedAge($suggestedAge) + public function setSuggestedMaxAge($suggestedMaxAge) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Number", + "null", ]; - $suggestedAge = self::checkTypes($suggestedAge, $types); + $suggestedMaxAge = self::checkTypes($suggestedMaxAge, $types); - $this->suggestedAge = $suggestedAge; + $this->suggestedMaxAge = $suggestedMaxAge; } /** @@ -254,78 +253,79 @@ public function setRequiredMaxAge($requiredMaxAge) } /** - * @return Number|null + * @return string|\OpenActive\Enums\SchemaOrg\GenderType|null */ - public function getSuggestedMinAge() + public function getSuggestedGender() { - return $this->suggestedMinAge; + return $this->suggestedGender; } /** - * @param Number|null $suggestedMinAge + * @param string|\OpenActive\Enums\SchemaOrg\GenderType|null $suggestedGender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMinAge($suggestedMinAge) + public function setSuggestedGender($suggestedGender) { $types = [ - "Number", + "string", + "\OpenActive\Enums\SchemaOrg\GenderType", "null", ]; - $suggestedMinAge = self::checkTypes($suggestedMinAge, $types); + $suggestedGender = self::checkTypes($suggestedGender, $types); - $this->suggestedMinAge = $suggestedMinAge; + $this->suggestedGender = $suggestedGender; } /** - * @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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSuggestedGender() + public function getSuggestedAge() { - return $this->suggestedGender; + return $this->suggestedAge; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender + * @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 setSuggestedGender($suggestedGender) + public function setSuggestedAge($suggestedAge) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $suggestedGender = self::checkTypes($suggestedGender, $types); + $suggestedAge = self::checkTypes($suggestedAge, $types); - $this->suggestedGender = $suggestedGender; + $this->suggestedAge = $suggestedAge; } } diff --git a/src/Models/SchemaOrg/Permit.php b/src/Models/SchemaOrg/Permit.php index 195b6af0..6d4bc6b4 100644 --- a/src/Models/SchemaOrg/Permit.php +++ b/src/Models/SchemaOrg/Permit.php @@ -17,41 +17,41 @@ public static function getType() public static function fieldList() { $fields = [ - "validFor" => "validFor", "issuedBy" => "issuedBy", - "validUntil" => "validUntil", + "validFor" => "validFor", + "permitAudience" => "permitAudience", "validFrom" => "validFrom", "issuedThrough" => "issuedThrough", "validIn" => "validIn", - "permitAudience" => "permitAudience", + "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 duration of validity of a permit or similar thing. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var DateInterval|string|null */ - protected $issuedBy; + protected $validFor; /** - * 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. @@ -62,7 +62,7 @@ public static function fieldList() { protected $validFrom; /** - * The service through with the permit was granted. + * The service through which the permit was granted. * * * @var \OpenActive\Models\SchemaOrg\Service|string @@ -70,7 +70,7 @@ public static function fieldList() { protected $issuedThrough; /** - * 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,87 +78,87 @@ 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 DateInterval|string|null */ - public function getIssuedBy() + public function getValidFor() { - return $this->issuedBy; + return $this->validFor; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $issuedBy + * @param DateInterval|string|null $validFor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIssuedBy($issuedBy) + public function setValidFor($validFor) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "DateInterval", "string", + "null", ]; - $issuedBy = self::checkTypes($issuedBy, $types); + $validFor = self::checkTypes($validFor, $types); - $this->issuedBy = $issuedBy; + $this->validFor = $validFor; } /** - * @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; } /** @@ -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..dad819f5 100644 --- a/src/Models/SchemaOrg/Person.php +++ b/src/Models/SchemaOrg/Person.php @@ -17,97 +17,91 @@ public static function getType() public static function fieldList() { $fields = [ - "spouse" => "spouse", - "additionalName" => "additionalName", - "hasCredential" => "hasCredential", + "children" => "children", + "taxID" => "taxID", "telephone" => "telephone", - "honorificPrefix" => "honorificPrefix", - "parents" => "parents", - "familyName" => "familyName", + "seeks" => "seeks", + "funding" => "funding", + "email" => "email", "givenName" => "givenName", - "knowsAbout" => "knowsAbout", - "performerIn" => "performerIn", + "isicV4" => "isicV4", "netWorth" => "netWorth", - "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", + "naics" => "naics", + "memberOf" => "memberOf", + "agentInteractionStatistic" => "agentInteractionStatistic", + "interactionStatistic" => "interactionStatistic", + "colleague" => "colleague", + "weight" => "weight", + "faxNumber" => "faxNumber", + "spouse" => "spouse", "jobTitle" => "jobTitle", - "birthDate" => "birthDate", + "familyName" => "familyName", + "vatID" => "vatID", "funder" => "funder", + "hasCredential" => "hasCredential", + "performerIn" => "performerIn", + "siblings" => "siblings", + "globalLocationNumber" => "globalLocationNumber", + "knowsLanguage" => "knowsLanguage", "makesOffer" => "makesOffer", - "children" => "children", + "brand" => "brand", "worksFor" => "worksFor", - "knows" => "knows", - "interactionStatistic" => "interactionStatistic", - "address" => "address", - "memberOf" => "memberOf", - "publishingPrinciples" => "publishingPrinciples", - "colleagues" => "colleagues", + "nationality" => "nationality", + "honorificSuffix" => "honorificSuffix", + "gender" => "gender", + "honorificPrefix" => "honorificPrefix", + "follows" => "follows", + "additionalName" => "additionalName", "deathDate" => "deathDate", - "email" => "email", - "affiliation" => "affiliation", - "siblings" => "siblings", - "birthPlace" => "birthPlace", - "brand" => "brand", - "sponsor" => "sponsor", - "naics" => "naics", + "birthDate" => "birthDate", + "deathPlace" => "deathPlace", + "sibling" => "sibling", + "award" => "award", + "parents" => "parents", + "colleagues" => "colleagues", + "workLocation" => "workLocation", + "publishingPrinciples" => "publishingPrinciples", "contactPoint" => "contactPoint", - "callSign" => "callSign", - "isicV4" => "isicV4", + "relatedTo" => "relatedTo", + "duns" => "duns", + "knows" => "knows", + "address" => "address", + "hasOfferCatalog" => "hasOfferCatalog", + "height" => "height", + "contactPoints" => "contactPoints", + "awards" => "awards", + "homeLocation" => "homeLocation", "hasPOS" => "hasPOS", + "hasOccupation" => "hasOccupation", + "sponsor" => "sponsor", + "parent" => "parent", "alumniOf" => "alumniOf", - "duns" => "duns", - "weight" => "weight", - "knowsLanguage" => "knowsLanguage", - "relatedTo" => "relatedTo", - "colleague" => "colleague", - "seeks" => "seeks", - "taxID" => "taxID", + "callSign" => "callSign", + "birthPlace" => "birthPlace", + "knowsAbout" => "knowsAbout", "owns" => "owns", - "hasOfferCatalog" => "hasOfferCatalog", - "follows" => "follows", - "nationality" => "nationality", - "faxNumber" => "faxNumber", + "hasCertification" => "hasCertification", + "affiliation" => "affiliation", ]; return array_merge(parent::fieldList(), $fields); } /** - * The person's spouse. + * A child of the person. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $spouse; + protected $children; /** - * An additional name for a Person, can be used for a middle name. + * 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 $additionalName; - - /** - * A credential awarded to the Person or Organization. - * - * - * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string - */ - protected $hasCredential; + protected $taxID; /** * The telephone number. @@ -118,28 +112,28 @@ public static function fieldList() { protected $telephone; /** - * An honorific prefix preceding a Person's name such as Dr/Mrs/Mr. + * A pointer to products or services sought by the organization or person (demand). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Demand|string */ - protected $honorificPrefix; + protected $seeks; /** - * A parents of the person. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $parents; + protected $funding; /** - * Family name. In the U.S., the last name of a Person. + * Email address. * * * @var string */ - protected $familyName; + protected $email; /** * Given name. In the U.S., the first name of a Person. @@ -150,20 +144,12 @@ public static function fieldList() { protected $givenName; /** - * Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions. - * - * - * @var string|\OpenActive\Models\SchemaOrg\Thing - */ - protected $knowsAbout; - - /** - * Event that this person is a performer or participant in. + * 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\Event|string + * @var string */ - protected $performerIn; + protected $isicV4; /** * The total financial value of the person as calculated by subtracting assets from liabilities. @@ -174,116 +160,116 @@ public static function fieldList() { protected $netWorth; /** - * An award won by or for this item. + * The North American Industry Classification System (NAICS) code for a particular organization or business person. * * * @var string */ - protected $award; + protected $naics; /** - * A contact location for a person's place of work. + * An Organization (or ProgramMembership) to which this Person or Organization belongs. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string */ - protected $workLocation; + protected $memberOf; /** - * An honorific suffix following a Person's name such as M.D. /PhD/MSCSW. + * 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 $honorificSuffix; + protected $agentInteractionStatistic; /** - * The place where the person died. + * 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\Place|string + * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - protected $deathPlace; + protected $interactionStatistic; /** - * A contact location for a person's residence. + * A colleague of the person. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $homeLocation; + protected $colleague; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * The weight of the product or person. * * - * @var \OpenActive\Models\SchemaOrg\Grant|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $funding; + protected $weight; /** - * The Value-added Tax ID of the organization or person. + * The fax number. * * * @var string */ - protected $vatID; + protected $faxNumber; /** - * The height of the item. + * The person's spouse. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $height; + protected $spouse; /** - * 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 job title of the person (for example, Financial Manager). * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - protected $globalLocationNumber; + protected $jobTitle; /** - * A contact point for a person or organization. + * Family name. In the U.S., the last name of a Person. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var string */ - protected $contactPoints; + protected $familyName; /** - * The Person's occupation. For past professions, use Role for expressing dates. + * The Value-added Tax ID of the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\Occupation|string + * @var string */ - protected $hasOccupation; + protected $vatID; /** - * 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 or organization that supports (sponsors) something through some kind of financial contribution. * * - * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $gender; + protected $funder; /** - * A parent of this person. + * A credential awarded to the Person or Organization. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - protected $parent; + protected $hasCredential; /** - * Awards won by or for this item. + * Event that this person is a performer or participant in. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $awards; + protected $performerIn; /** * A sibling of the person. @@ -291,31 +277,23 @@ public static function fieldList() { * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $sibling; - - /** - * The job title of the person (for example, Financial Manager). - * - * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm - */ - protected $jobTitle; + protected $siblings; /** - * Date of birth. + * 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 Date|null + * @var string */ - protected $birthDate; + protected $globalLocationNumber; /** - * A person or organization that supports (sponsors) something through some kind of financial contribution. + * Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $funder; + protected $knowsLanguage; /** * A pointer to products or services offered by the organization or person. @@ -326,12 +304,12 @@ public static function fieldList() { protected $makesOffer; /** - * A child of the 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\Person|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - protected $children; + protected $brand; /** * Organizations that the person works for. @@ -342,55 +320,52 @@ public static function fieldList() { protected $worksFor; /** - * The most generic bi-directional social/work relation. + * Nationality of the person. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $knows; + protected $nationality; /** - * The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. + * An honorific suffix following a Person's name such as M.D./PhD/MSCSW. * * - * @var \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @var string */ - protected $interactionStatistic; + protected $honorificSuffix; /** - * Physical address of the item. + * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". * * - * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - protected $address; + protected $gender; /** - * An Organization (or ProgramMembership) to which this Person or Organization belongs. + * An honorific prefix preceding a Person's name such as Dr/Mrs/Mr. * * - * @var \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @var string */ - protected $memberOf; + protected $honorificPrefix; /** - * 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 uni-directional social relation. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $publishingPrinciples; + protected $follows; /** - * A colleague of the person. + * An additional name for a Person, can be used for a middle name. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $colleagues; + protected $additionalName; /** * Date of death. @@ -401,20 +376,20 @@ public static function fieldList() { protected $deathDate; /** - * Email address. + * Date of birth. * * - * @var string + * @var Date|null */ - protected $email; + protected $birthDate; /** - * An organization that this person is affiliated with. For example, a school/university, a club, or a team. + * The place where the person died. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $affiliation; + protected $deathPlace; /** * A sibling of the person. @@ -422,39 +397,50 @@ public static function fieldList() { * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $siblings; + protected $sibling; /** - * The place where the person was born. + * An award won by or for this item. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $birthPlace; + protected $award; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * A parents of the person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $brand; + protected $parents; /** - * 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 colleague of the person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $sponsor; + protected $colleagues; /** - * The North American Industry Classification System (NAICS) code for a particular organization or business person. + * A contact location for a person's place of work. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string */ - protected $naics; + protected $workLocation; + + /** + * 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 contact point for a person or organization. @@ -465,552 +451,632 @@ public static function fieldList() { protected $contactPoint; /** - * 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 most generic familial relation. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $callSign; + protected $relatedTo; /** - * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * The Dun & Bradstreet DUNS number for identifying an organization or business person. * * * @var string */ - protected $isicV4; + protected $duns; /** - * Points-of-Sales operated by the organization or person. + * The most generic bi-directional social/work relation. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $hasPOS; + protected $knows; /** - * An organization that the person is an alumni of. + * Physical address of the item. * * - * @var \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress */ - protected $alumniOf; + protected $address; /** - * The Dun & Bradstreet DUNS number for identifying an organization or business person. + * Indicates an OfferCatalog listing for this Organization, Person, or Service. + * + * + * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string + */ + protected $hasOfferCatalog; + + /** + * The height of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $height; + + /** + * A contact point for a person or organization. + * + * + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + */ + protected $contactPoints; + + /** + * Awards won by or for this item. * * * @var string */ - protected $duns; + protected $awards; /** - * The weight of the product or person. + * A contact location for a person's residence. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string */ - protected $weight; + protected $homeLocation; /** - * 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). + * Points-of-Sales operated by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $knowsLanguage; + protected $hasPOS; /** - * The most generic familial relation. + * The Person's occupation. For past professions, use Role for expressing dates. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Occupation|string + */ + protected $hasOccupation; + + /** + * 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 $relatedTo; + protected $sponsor; /** - * A colleague of the person. + * A parent of this person. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $colleague; + protected $parent; /** - * A pointer to products or services sought by the organization or person (demand). + * An organization that the person is an alumni of. * * - * @var \OpenActive\Models\SchemaOrg\Demand|string + * @var \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $seeks; + protected $alumniOf; /** - * The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain. + * 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 $taxID; + protected $callSign; /** - * Products owned by the organization or person. + * The place where the person was born. * * - * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $owns; + protected $birthPlace; /** - * Indicates an OfferCatalog listing for this Organization, Person, or Service. + * 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\OfferCatalog|string + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $hasOfferCatalog; + protected $knowsAbout; /** - * The most generic uni-directional social relation. + * Products owned by the organization or person. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string */ - protected $follows; + protected $owns; /** - * Nationality of the person. + * Certification information about a product, organization, service, place, or person. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - protected $nationality; + protected $hasCertification; /** - * The fax number. + * An organization that this person is affiliated with. For example, a school/university, a club, or a team. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $faxNumber; + protected $affiliation; /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSpouse() + public function getChildren() { - return $this->spouse; + return $this->children; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $spouse + * @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 setSpouse($spouse) + public function setChildren($children) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $spouse = self::checkTypes($spouse, $types); + $children = self::checkTypes($children, $types); - $this->spouse = $spouse; + $this->children = $children; } /** * @return string */ - public function getAdditionalName() + public function getTaxID() { - return $this->additionalName; + return $this->taxID; } /** - * @param string $additionalName + * @param string $taxID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalName($additionalName) + public function setTaxID($taxID) { $types = [ "string", ]; - $additionalName = self::checkTypes($additionalName, $types); + $taxID = self::checkTypes($taxID, $types); - $this->additionalName = $additionalName; + $this->taxID = $taxID; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string + * @return string */ - public function getHasCredential() + public function getTelephone() { - return $this->hasCredential; + return $this->telephone; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential + * @param string $telephone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasCredential($hasCredential) + public function setTelephone($telephone) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", ]; - $hasCredential = self::checkTypes($hasCredential, $types); + $telephone = self::checkTypes($telephone, $types); - $this->hasCredential = $hasCredential; + $this->telephone = $telephone; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Demand|string */ - public function getTelephone() + public function getSeeks() { - return $this->telephone; + return $this->seeks; } /** - * @param string $telephone + * @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 setTelephone($telephone) + public function setSeeks($seeks) { $types = [ + "\OpenActive\Models\SchemaOrg\Demand", "string", ]; - $telephone = self::checkTypes($telephone, $types); + $seeks = self::checkTypes($seeks, $types); - $this->telephone = $telephone; + $this->seeks = $seeks; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Grant|string + */ + public function getFunding() + { + return $this->funding; + } + + /** + * @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 setFunding($funding) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Grant", + "string", + ]; + + $funding = self::checkTypes($funding, $types); + + $this->funding = $funding; } /** * @return string */ - public function getHonorificPrefix() + public function getEmail() { - return $this->honorificPrefix; + return $this->email; } /** - * @param string $honorificPrefix + * @param string $email * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHonorificPrefix($honorificPrefix) + public function setEmail($email) { $types = [ "string", ]; - $honorificPrefix = self::checkTypes($honorificPrefix, $types); + $email = self::checkTypes($email, $types); - $this->honorificPrefix = $honorificPrefix; + $this->email = $email; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getParents() + public function getGivenName() { - return $this->parents; + return $this->givenName; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $parents + * @param string $givenName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setParents($parents) + public function setGivenName($givenName) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $parents = self::checkTypes($parents, $types); + $givenName = self::checkTypes($givenName, $types); - $this->parents = $parents; + $this->givenName = $givenName; } /** * @return string */ - public function getFamilyName() + public function getIsicV4() { - return $this->familyName; + return $this->isicV4; } /** - * @param string $familyName + * @param string $isicV4 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFamilyName($familyName) + public function setIsicV4($isicV4) { $types = [ "string", ]; - $familyName = self::checkTypes($familyName, $types); + $isicV4 = self::checkTypes($isicV4, $types); - $this->familyName = $familyName; + $this->isicV4 = $isicV4; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + */ + public function getNetWorth() + { + return $this->netWorth; + } + + /** + * @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 setNetWorth($netWorth) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\PriceSpecification", + "string", + ]; + + $netWorth = self::checkTypes($netWorth, $types); + + $this->netWorth = $netWorth; } /** * @return string */ - public function getGivenName() + public function getNaics() { - return $this->givenName; + return $this->naics; } /** - * @param string $givenName + * @param string $naics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGivenName($givenName) + public function setNaics($naics) { $types = [ "string", ]; - $givenName = self::checkTypes($givenName, $types); + $naics = self::checkTypes($naics, $types); - $this->givenName = $givenName; + $this->naics = $naics; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ProgramMembership|string */ - public function getKnowsAbout() + public function getMemberOf() { - return $this->knowsAbout; + return $this->memberOf; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $knowsAbout + * @param \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 setKnowsAbout($knowsAbout) + public function setMemberOf($memberOf) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ProgramMembership", "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $knowsAbout = self::checkTypes($knowsAbout, $types); + $memberOf = self::checkTypes($memberOf, $types); - $this->knowsAbout = $knowsAbout; + $this->memberOf = $memberOf; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getPerformerIn() + public function getAgentInteractionStatistic() { - return $this->performerIn; + return $this->agentInteractionStatistic; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $performerIn + * @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 setPerformerIn($performerIn) + public function setAgentInteractionStatistic($agentInteractionStatistic) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $performerIn = self::checkTypes($performerIn, $types); + $agentInteractionStatistic = self::checkTypes($agentInteractionStatistic, $types); - $this->performerIn = $performerIn; + $this->agentInteractionStatistic = $agentInteractionStatistic; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string */ - public function getNetWorth() + public function getInteractionStatistic() { - return $this->netWorth; + return $this->interactionStatistic; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\PriceSpecification|string $netWorth + * @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 setNetWorth($netWorth) + public function setInteractionStatistic($interactionStatistic) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\InteractionCounter", "string", ]; - $netWorth = self::checkTypes($netWorth, $types); + $interactionStatistic = self::checkTypes($interactionStatistic, $types); - $this->netWorth = $netWorth; + $this->interactionStatistic = $interactionStatistic; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getAward() + public function getColleague() { - return $this->award; + return $this->colleague; } /** - * @param string $award + * @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 setAward($award) + public function setColleague($colleague) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $award = self::checkTypes($award, $types); + $colleague = self::checkTypes($colleague, $types); - $this->award = $award; + $this->colleague = $colleague; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getWorkLocation() + public function getWeight() { - return $this->workLocation; + return $this->weight; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string $workLocation + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkLocation($workLocation) + public function setWeight($weight) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $workLocation = self::checkTypes($workLocation, $types); + $weight = self::checkTypes($weight, $types); - $this->workLocation = $workLocation; + $this->weight = $weight; } /** * @return string */ - public function getHonorificSuffix() + public function getFaxNumber() { - return $this->honorificSuffix; + return $this->faxNumber; } /** - * @param string $honorificSuffix + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHonorificSuffix($honorificSuffix) + public function setFaxNumber($faxNumber) { $types = [ "string", ]; - $honorificSuffix = self::checkTypes($honorificSuffix, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->honorificSuffix = $honorificSuffix; + $this->faxNumber = $faxNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDeathPlace() + public function getSpouse() { - return $this->deathPlace; + return $this->spouse; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $deathPlace + * @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 setDeathPlace($deathPlace) + public function setSpouse($spouse) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $deathPlace = self::checkTypes($deathPlace, $types); + $spouse = self::checkTypes($spouse, $types); - $this->deathPlace = $deathPlace; + $this->spouse = $spouse; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm */ - public function getHomeLocation() + public function getJobTitle() { - return $this->homeLocation; + return $this->jobTitle; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ContactPoint|string $homeLocation + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $jobTitle * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHomeLocation($homeLocation) + public function setJobTitle($jobTitle) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\ContactPoint", "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $homeLocation = self::checkTypes($homeLocation, $types); + $jobTitle = self::checkTypes($jobTitle, $types); - $this->homeLocation = $homeLocation; + $this->jobTitle = $jobTitle; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return string */ - public function getFunding() + public function getFamilyName() { - return $this->funding; + return $this->familyName; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @param string $familyName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunding($funding) + public function setFamilyName($familyName) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", "string", ]; - $funding = self::checkTypes($funding, $types); + $familyName = self::checkTypes($familyName, $types); - $this->funding = $funding; + $this->familyName = $familyName; } /** @@ -1038,1127 +1104,1129 @@ public function setVatID($vatID) } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getHeight() + public function getFunder() { - return $this->height; + return $this->funder; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $funder * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeight($height) + public function setFunder($funder) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $height = self::checkTypes($height, $types); + $funder = self::checkTypes($funder, $types); - $this->height = $height; + $this->funder = $funder; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string */ - public function getGlobalLocationNumber() + public function getHasCredential() { - return $this->globalLocationNumber; + return $this->hasCredential; } /** - * @param string $globalLocationNumber + * @param \OpenActive\Models\SchemaOrg\EducationalOccupationalCredential|string $hasCredential * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGlobalLocationNumber($globalLocationNumber) + public function setHasCredential($hasCredential) { $types = [ + "\OpenActive\Models\SchemaOrg\EducationalOccupationalCredential", "string", ]; - $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); + $hasCredential = self::checkTypes($hasCredential, $types); - $this->globalLocationNumber = $globalLocationNumber; + $this->hasCredential = $hasCredential; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getContactPoints() + public function getPerformerIn() { - return $this->contactPoints; + return $this->performerIn; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoints + * @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 setContactPoints($contactPoints) + public function setPerformerIn($performerIn) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $contactPoints = self::checkTypes($contactPoints, $types); + $performerIn = self::checkTypes($performerIn, $types); - $this->contactPoints = $contactPoints; + $this->performerIn = $performerIn; } /** - * @return \OpenActive\Models\SchemaOrg\Occupation|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getHasOccupation() + public function getSiblings() { - return $this->hasOccupation; + return $this->siblings; } /** - * @param \OpenActive\Models\SchemaOrg\Occupation|string $hasOccupation + * @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 setHasOccupation($hasOccupation) + public function setSiblings($siblings) { $types = [ - "\OpenActive\Models\SchemaOrg\Occupation", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $hasOccupation = self::checkTypes($hasOccupation, $types); + $siblings = self::checkTypes($siblings, $types); - $this->hasOccupation = $hasOccupation; + $this->siblings = $siblings; } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return string */ - public function getGender() + public function getGlobalLocationNumber() { - return $this->gender; + return $this->globalLocationNumber; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $gender + * @param string $globalLocationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGender($gender) + public function setGlobalLocationNumber($globalLocationNumber) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", "string", - "null", ]; - $gender = self::checkTypes($gender, $types); + $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); - $this->gender = $gender; + $this->globalLocationNumber = $globalLocationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getParent() + public function getKnowsLanguage() { - return $this->parent; + return $this->knowsLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $parent + * @param string|\OpenActive\Models\SchemaOrg\Language $knowsLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setParent($parent) + public function setKnowsLanguage($knowsLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $parent = self::checkTypes($parent, $types); + $knowsLanguage = self::checkTypes($knowsLanguage, $types); - $this->parent = $parent; + $this->knowsLanguage = $knowsLanguage; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Offer|string */ - public function getAwards() + public function getMakesOffer() { - return $this->awards; + return $this->makesOffer; } /** - * @param string $awards + * @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 setAwards($awards) + public function setMakesOffer($makesOffer) { $types = [ + "\OpenActive\Models\SchemaOrg\Offer", "string", ]; - $awards = self::checkTypes($awards, $types); + $makesOffer = self::checkTypes($makesOffer, $types); - $this->awards = $awards; + $this->makesOffer = $makesOffer; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - public function getSibling() + public function getBrand() { - return $this->sibling; + return $this->brand; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $sibling + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSibling($sibling) + public function setBrand($brand) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Brand", "string", ]; - $sibling = self::checkTypes($sibling, $types); + $brand = self::checkTypes($brand, $types); - $this->sibling = $sibling; + $this->brand = $brand; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getJobTitle() + public function getWorksFor() { - return $this->jobTitle; + return $this->worksFor; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $jobTitle + * @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 setJobTitle($jobTitle) + public function setWorksFor($worksFor) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $jobTitle = self::checkTypes($jobTitle, $types); + $worksFor = self::checkTypes($worksFor, $types); - $this->jobTitle = $jobTitle; + $this->worksFor = $worksFor; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getBirthDate() + public function getNationality() { - return $this->birthDate; + return $this->nationality; } /** - * @param Date|null $birthDate + * @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 setBirthDate($birthDate) + public function setNationality($nationality) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Country", + "string", ]; - $birthDate = self::checkTypes($birthDate, $types); + $nationality = self::checkTypes($nationality, $types); - $this->birthDate = $birthDate; + $this->nationality = $nationality; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getFunder() + public function getHonorificSuffix() { - return $this->funder; + return $this->honorificSuffix; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $funder + * @param string $honorificSuffix * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunder($funder) + public function setHonorificSuffix($honorificSuffix) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $funder = self::checkTypes($funder, $types); + $honorificSuffix = self::checkTypes($honorificSuffix, $types); - $this->funder = $funder; + $this->honorificSuffix = $honorificSuffix; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|string + * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - public function getMakesOffer() + public function getGender() { - return $this->makesOffer; + return $this->gender; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|string $makesOffer + * @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 setMakesOffer($makesOffer) + public function setGender($gender) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Enums\SchemaOrg\GenderType", "string", + "null", ]; - $makesOffer = self::checkTypes($makesOffer, $types); + $gender = self::checkTypes($gender, $types); - $this->makesOffer = $makesOffer; + $this->gender = $gender; } /** - * @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 \OpenActive\Models\SchemaOrg\Person|string */ - public function getWorksFor() + public function getFollows() { - return $this->worksFor; + return $this->follows; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $worksFor + * @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 setWorksFor($worksFor) + public function setFollows($follows) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $worksFor = self::checkTypes($worksFor, $types); + $follows = self::checkTypes($follows, $types); - $this->worksFor = $worksFor; + $this->follows = $follows; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getKnows() + public function getAdditionalName() { - return $this->knows; + return $this->additionalName; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $knows + * @param string $additionalName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKnows($knows) + public function setAdditionalName($additionalName) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $knows = self::checkTypes($knows, $types); + $additionalName = self::checkTypes($additionalName, $types); - $this->knows = $knows; + $this->additionalName = $additionalName; } /** - * @return \OpenActive\Models\SchemaOrg\InteractionCounter|string + * @return Date|null */ - public function getInteractionStatistic() + public function getDeathDate() { - return $this->interactionStatistic; + return $this->deathDate; } /** - * @param \OpenActive\Models\SchemaOrg\InteractionCounter|string $interactionStatistic + * @param Date|null $deathDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInteractionStatistic($interactionStatistic) + public function setDeathDate($deathDate) { $types = [ - "\OpenActive\Models\SchemaOrg\InteractionCounter", - "string", + "Date", + "null", ]; - $interactionStatistic = self::checkTypes($interactionStatistic, $types); + $deathDate = self::checkTypes($deathDate, $types); - $this->interactionStatistic = $interactionStatistic; + $this->deathDate = $deathDate; } /** - * @return string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return Date|null */ - public function getAddress() + public function getBirthDate() { - return $this->address; + return $this->birthDate; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @param Date|null $birthDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddress($address) + public function setBirthDate($birthDate) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", + "Date", + "null", ]; - $address = self::checkTypes($address, $types); + $birthDate = self::checkTypes($birthDate, $types); - $this->address = $address; + $this->birthDate = $birthDate; } /** - * @return \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getMemberOf() + public function getDeathPlace() { - return $this->memberOf; + return $this->deathPlace; } /** - * @param \OpenActive\Models\SchemaOrg\ProgramMembership|\OpenActive\Models\SchemaOrg\Organization|string $memberOf + * @param \OpenActive\Models\SchemaOrg\Place|string $deathPlace * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMemberOf($memberOf) + public function setDeathPlace($deathPlace) { $types = [ - "\OpenActive\Models\SchemaOrg\ProgramMembership", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $memberOf = self::checkTypes($memberOf, $types); + $deathPlace = self::checkTypes($deathPlace, $types); - $this->memberOf = $memberOf; + $this->deathPlace = $deathPlace; } /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getPublishingPrinciples() + public function getSibling() { - return $this->publishingPrinciples; + return $this->sibling; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork $publishingPrinciples + * @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 setPublishingPrinciples($publishingPrinciples) + public function setSibling($sibling) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", ]; - $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); + $sibling = self::checkTypes($sibling, $types); - $this->publishingPrinciples = $publishingPrinciples; + $this->sibling = $sibling; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getColleagues() + public function getAward() { - return $this->colleagues; + return $this->award; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colleagues + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setColleagues($colleagues) + public function setAward($award) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $colleagues = self::checkTypes($colleagues, $types); + $award = self::checkTypes($award, $types); - $this->colleagues = $colleagues; + $this->award = $award; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDeathDate() + public function getParents() { - return $this->deathDate; + return $this->parents; } /** - * @param Date|null $deathDate + * @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 setDeathDate($deathDate) + public function setParents($parents) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $deathDate = self::checkTypes($deathDate, $types); + $parents = self::checkTypes($parents, $types); - $this->deathDate = $deathDate; + $this->parents = $parents; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getEmail() + public function getColleagues() { - return $this->email; + return $this->colleagues; } /** - * @param string $email + * @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 setEmail($email) + public function setColleagues($colleagues) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $email = self::checkTypes($email, $types); + $colleagues = self::checkTypes($colleagues, $types); - $this->email = $email; + $this->colleagues = $colleagues; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string */ - public function getAffiliation() + public function getWorkLocation() { - return $this->affiliation; + return $this->workLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $affiliation + * @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 setAffiliation($affiliation) + public function setWorkLocation($workLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $affiliation = self::checkTypes($affiliation, $types); + $workLocation = self::checkTypes($workLocation, $types); - $this->affiliation = $affiliation; + $this->workLocation = $workLocation; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getSiblings() + public function getPublishingPrinciples() { - return $this->siblings; + return $this->publishingPrinciples; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $siblings + * @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 setSiblings($siblings) + public function setPublishingPrinciples($publishingPrinciples) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $siblings = self::checkTypes($siblings, $types); + $publishingPrinciples = self::checkTypes($publishingPrinciples, $types); - $this->siblings = $siblings; + $this->publishingPrinciples = $publishingPrinciples; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getBirthPlace() + public function getContactPoint() { - return $this->birthPlace; + return $this->contactPoint; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $birthPlace + * @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 setBirthPlace($birthPlace) + public function setContactPoint($contactPoint) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $birthPlace = self::checkTypes($birthPlace, $types); + $contactPoint = self::checkTypes($contactPoint, $types); - $this->birthPlace = $birthPlace; + $this->contactPoint = $contactPoint; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getBrand() + public function getRelatedTo() { - return $this->brand; + return $this->relatedTo; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @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 setBrand($brand) + public function setRelatedTo($relatedTo) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $brand = self::checkTypes($brand, $types); + $relatedTo = self::checkTypes($relatedTo, $types); - $this->brand = $brand; + $this->relatedTo = $relatedTo; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getSponsor() + public function getDuns() { - return $this->sponsor; + return $this->duns; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $sponsor + * @param string $duns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSponsor($sponsor) + public function setDuns($duns) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $sponsor = self::checkTypes($sponsor, $types); + $duns = self::checkTypes($duns, $types); - $this->sponsor = $sponsor; + $this->duns = $duns; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNaics() + public function getKnows() { - return $this->naics; + return $this->knows; } /** - * @param string $naics + * @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 setNaics($naics) + public function setKnows($knows) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $naics = self::checkTypes($naics, $types); + $knows = self::checkTypes($knows, $types); - $this->naics = $naics; + $this->knows = $knows; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress */ - public function getContactPoint() + public function getAddress() { - return $this->contactPoint; + return $this->address; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $contactPoint + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContactPoint($contactPoint) + public function setAddress($address) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $contactPoint = self::checkTypes($contactPoint, $types); + $address = self::checkTypes($address, $types); - $this->contactPoint = $contactPoint; + $this->address = $address; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - public function getCallSign() + public function getHasOfferCatalog() { - return $this->callSign; + return $this->hasOfferCatalog; } /** - * @param string $callSign + * @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 setCallSign($callSign) + public function setHasOfferCatalog($hasOfferCatalog) { $types = [ + "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $callSign = self::checkTypes($callSign, $types); + $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); - $this->callSign = $callSign; + $this->hasOfferCatalog = $hasOfferCatalog; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getIsicV4() + public function getHeight() { - return $this->isicV4; + return $this->height; } /** - * @param string $isicV4 + * @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 setIsicV4($isicV4) + public function setHeight($height) { $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $isicV4 = self::checkTypes($isicV4, $types); + $height = self::checkTypes($height, $types); - $this->isicV4 = $isicV4; + $this->height = $height; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getHasPOS() + public function getContactPoints() { - return $this->hasPOS; + return $this->contactPoints; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $hasPOS + * @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 setHasPOS($hasPOS) + public function setContactPoints($contactPoints) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $hasPOS = self::checkTypes($hasPOS, $types); + $contactPoints = self::checkTypes($contactPoints, $types); - $this->hasPOS = $hasPOS; + $this->contactPoints = $contactPoints; } /** - * @return \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getAlumniOf() + public function getAwards() { - return $this->alumniOf; + return $this->awards; } /** - * @param \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string $alumniOf + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlumniOf($alumniOf) + public function setAwards($awards) { $types = [ - "\OpenActive\Models\SchemaOrg\EducationalOrganization", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $alumniOf = self::checkTypes($alumniOf, $types); + $awards = self::checkTypes($awards, $types); - $this->alumniOf = $alumniOf; + $this->awards = $awards; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Place|string */ - public function getDuns() + public function getHomeLocation() { - return $this->duns; + return $this->homeLocation; } /** - * @param string $duns + * @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 setDuns($duns) + public function setHomeLocation($homeLocation) { $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $duns = self::checkTypes($duns, $types); + $homeLocation = self::checkTypes($homeLocation, $types); - $this->duns = $duns; + $this->homeLocation = $homeLocation; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getWeight() + public function getHasPOS() { - return $this->weight; + return $this->hasPOS; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight + * @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 setWeight($weight) + public function setHasPOS($hasPOS) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $weight = self::checkTypes($weight, $types); + $hasPOS = self::checkTypes($hasPOS, $types); - $this->weight = $weight; + $this->hasPOS = $hasPOS; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return \OpenActive\Models\SchemaOrg\Occupation|string */ - public function getKnowsLanguage() + public function getHasOccupation() { - return $this->knowsLanguage; + return $this->hasOccupation; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $knowsLanguage + * @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 setKnowsLanguage($knowsLanguage) + public function setHasOccupation($hasOccupation) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", + "\OpenActive\Models\SchemaOrg\Occupation", "string", ]; - $knowsLanguage = self::checkTypes($knowsLanguage, $types); + $hasOccupation = self::checkTypes($hasOccupation, $types); - $this->knowsLanguage = $knowsLanguage; + $this->hasOccupation = $hasOccupation; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getRelatedTo() + public function getSponsor() { - return $this->relatedTo; + return $this->sponsor; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $relatedTo + * @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 setRelatedTo($relatedTo) + public function setSponsor($sponsor) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $relatedTo = self::checkTypes($relatedTo, $types); + $sponsor = self::checkTypes($sponsor, $types); - $this->relatedTo = $relatedTo; + $this->sponsor = $sponsor; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getColleague() + public function getParent() { - return $this->colleague; + return $this->parent; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colleague + * @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 setColleague($colleague) + public function setParent($parent) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $colleague = self::checkTypes($colleague, $types); + $parent = self::checkTypes($parent, $types); - $this->colleague = $colleague; + $this->parent = $parent; } /** - * @return \OpenActive\Models\SchemaOrg\Demand|string + * @return \OpenActive\Models\SchemaOrg\EducationalOrganization|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getSeeks() + public function getAlumniOf() { - return $this->seeks; + return $this->alumniOf; } /** - * @param \OpenActive\Models\SchemaOrg\Demand|string $seeks + * @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 setSeeks($seeks) + public function setAlumniOf($alumniOf) { $types = [ - "\OpenActive\Models\SchemaOrg\Demand", + "\OpenActive\Models\SchemaOrg\EducationalOrganization", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $seeks = self::checkTypes($seeks, $types); + $alumniOf = self::checkTypes($alumniOf, $types); - $this->seeks = $seeks; + $this->alumniOf = $alumniOf; } /** * @return string */ - public function getTaxID() + public function getCallSign() { - return $this->taxID; + return $this->callSign; } /** - * @param string $taxID + * @param string $callSign * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTaxID($taxID) + public function setCallSign($callSign) { $types = [ "string", ]; - $taxID = self::checkTypes($taxID, $types); + $callSign = self::checkTypes($callSign, $types); - $this->taxID = $taxID; + $this->callSign = $callSign; } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getOwns() + public function getBirthPlace() { - return $this->owns; + return $this->birthPlace; } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns + * @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 setOwns($owns) + public function setBirthPlace($birthPlace) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\OwnershipInfo", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $owns = self::checkTypes($owns, $types); + $birthPlace = self::checkTypes($birthPlace, $types); - $this->owns = $owns; + $this->birthPlace = $birthPlace; } /** - * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getHasOfferCatalog() + public function getKnowsAbout() { - return $this->hasOfferCatalog; + return $this->knowsAbout; } /** - * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @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 setHasOfferCatalog($hasOfferCatalog) + public function setKnowsAbout($knowsAbout) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + $knowsAbout = self::checkTypes($knowsAbout, $types); - $this->hasOfferCatalog = $hasOfferCatalog; + $this->knowsAbout = $knowsAbout; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string */ - public function getFollows() + public function getOwns() { - return $this->follows; + return $this->owns; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $follows + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\OwnershipInfo|string $owns * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFollows($follows) + public function setOwns($owns) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\OwnershipInfo", "string", ]; - $follows = self::checkTypes($follows, $types); + $owns = self::checkTypes($owns, $types); - $this->follows = $follows; + $this->owns = $owns; } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getNationality() + public function getHasCertification() { - return $this->nationality; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $nationality + * @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 setNationality($nationality) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $nationality = self::checkTypes($nationality, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->nationality = $nationality; + $this->hasCertification = $hasCertification; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getFaxNumber() + public function getAffiliation() { - return $this->faxNumber; + return $this->affiliation; } /** - * @param string $faxNumber + * @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 setFaxNumber($faxNumber) + public function setAffiliation($affiliation) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $affiliation = self::checkTypes($affiliation, $types); - $this->faxNumber = $faxNumber; + $this->affiliation = $affiliation; } } 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..3e23d3fc 100644 --- a/src/Models/SchemaOrg/PhysicalActivity.php +++ b/src/Models/SchemaOrg/PhysicalActivity.php @@ -17,22 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "category" => "category", + "epidemiology" => "epidemiology", "pathophysiology" => "pathophysiology", + "category" => "category", "associatedAnatomy" => "associatedAnatomy", - "epidemiology" => "epidemiology", ]; return array_merge(parent::fieldList(), $fields); } /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * The characteristics of associated patients, such as age, gender, race etc. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var string */ - protected $category; + protected $epidemiology; /** * Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition. @@ -43,47 +43,43 @@ public static function fieldList() { protected $pathophysiology; /** - * The anatomy of the underlying organ system or structures associated with this entity. + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string + * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - protected $associatedAnatomy; + protected $category; /** - * The characteristics of associated patients, such as age, gender, race etc. + * The anatomy of the underlying organ system or structures associated with this entity. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - protected $epidemiology; + protected $associatedAnatomy; /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return string */ - public function getCategory() + public function getEpidemiology() { - return $this->category; + return $this->epidemiology; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param string $epidemiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setEpidemiology($epidemiology) { $types = [ "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", ]; - $category = self::checkTypes($category, $types); + $epidemiology = self::checkTypes($epidemiology, $types); - $this->category = $category; + $this->epidemiology = $epidemiology; } /** @@ -111,54 +107,58 @@ public function setPathophysiology($pathophysiology) } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string + * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - public function getAssociatedAnatomy() + public function getCategory() { - return $this->associatedAnatomy; + return $this->category; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\SuperficialAnatomy|string $associatedAnatomy + * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedAnatomy($associatedAnatomy) + public function setCategory($category) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", - "\OpenActive\Models\SchemaOrg\SuperficialAnatomy", + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Thing", "string", + "null", ]; - $associatedAnatomy = self::checkTypes($associatedAnatomy, $types); + $category = self::checkTypes($category, $types); - $this->associatedAnatomy = $associatedAnatomy; + $this->category = $category; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - public function getEpidemiology() + public function getAssociatedAnatomy() { - return $this->epidemiology; + return $this->associatedAnatomy; } /** - * @param string $epidemiology + * @param \OpenActive\Models\SchemaOrg\SuperficialAnatomy|\OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string $associatedAnatomy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpidemiology($epidemiology) + public function setAssociatedAnatomy($associatedAnatomy) { $types = [ + "\OpenActive\Models\SchemaOrg\SuperficialAnatomy", + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; - $epidemiology = self::checkTypes($epidemiology, $types); + $associatedAnatomy = self::checkTypes($associatedAnatomy, $types); - $this->epidemiology = $epidemiology; + $this->associatedAnatomy = $associatedAnatomy; } } diff --git a/src/Models/SchemaOrg/Physician.php b/src/Models/SchemaOrg/Physician.php index 1431e4a1..e507427e 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 @@ -17,21 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ - "availableService" => "availableService", + "usNPI" => "usNPI", "medicalSpecialty" => "medicalSpecialty", "hospitalAffiliation" => "hospitalAffiliation", + "occupationalCategory" => "occupationalCategory", + "availableService" => "availableService", ]; return array_merge(parent::fieldList(), $fields); } /** - * A medical service available from this provider. + * 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 \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @var string */ - protected $availableService; + protected $usNPI; /** * A medical specialty of the provider. @@ -50,30 +53,44 @@ public static function fieldList() { protected $hospitalAffiliation; /** - * @return \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string + * A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.\n + * Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC. + * + * + * @var string|\OpenActive\Models\SchemaOrg\CategoryCode */ - public function getAvailableService() + protected $occupationalCategory; + + /** + * A medical service available from this provider. + * + * + * @var \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string + */ + protected $availableService; + + /** + * @return string + */ + public function getUsNPI() { - return $this->availableService; + return $this->usNPI; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|\OpenActive\Models\SchemaOrg\MedicalTherapy|string $availableService + * @param string $usNPI * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableService($availableService) + public function setUsNPI($usNPI) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTest", - "\OpenActive\Models\SchemaOrg\MedicalProcedure", - "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $availableService = self::checkTypes($availableService, $types); + $usNPI = self::checkTypes($usNPI, $types); - $this->availableService = $availableService; + $this->usNPI = $usNPI; } /** @@ -126,4 +143,56 @@ public function setHospitalAffiliation($hospitalAffiliation) $this->hospitalAffiliation = $hospitalAffiliation; } + /** + * @return string|\OpenActive\Models\SchemaOrg\CategoryCode + */ + public function getOccupationalCategory() + { + return $this->occupationalCategory; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\CategoryCode $occupationalCategory + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setOccupationalCategory($occupationalCategory) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\CategoryCode", + ]; + + $occupationalCategory = self::checkTypes($occupationalCategory, $types); + + $this->occupationalCategory = $occupationalCategory; + } + + /** + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string + */ + public function getAvailableService() + { + return $this->availableService; + } + + /** + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|\OpenActive\Models\SchemaOrg\MedicalTest|\OpenActive\Models\SchemaOrg\MedicalProcedure|string $availableService + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setAvailableService($availableService) + { + $types = [ + "\OpenActive\Models\SchemaOrg\MedicalTherapy", + "\OpenActive\Models\SchemaOrg\MedicalTest", + "\OpenActive\Models\SchemaOrg\MedicalProcedure", + "string", + ]; + + $availableService = self::checkTypes($availableService, $types); + + $this->availableService = $availableService; + } + } 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", + "geoWithin" => "geoWithin", + "isicV4" => "isicV4", + "map" => "map", + "geoDisjoint" => "geoDisjoint", + "geoIntersects" => "geoIntersects", + "maximumAttendeeCapacity" => "maximumAttendeeCapacity", + "faxNumber" => "faxNumber", + "slogan" => "slogan", "maps" => "maps", "geoContains" => "geoContains", - "maximumAttendeeCapacity" => "maximumAttendeeCapacity", - "containsPlace" => "containsPlace", - "smokingAllowed" => "smokingAllowed", - "globalLocationNumber" => "globalLocationNumber", - "keywords" => "keywords", - "geoIntersects" => "geoIntersects", - "latitude" => "latitude", - "geoTouches" => "geoTouches", + "additionalProperty" => "additionalProperty", + "branchCode" => "branchCode", "geoCoveredBy" => "geoCoveredBy", - "aggregateRating" => "aggregateRating", - "address" => "address", - "geoEquals" => "geoEquals", - "map" => "map", - "publicAccess" => "publicAccess", - "geoCrosses" => "geoCrosses", - "containedInPlace" => "containedInPlace", + "keywords" => "keywords", + "geo" => "geo", + "containedIn" => "containedIn", "amenityFeature" => "amenityFeature", - "slogan" => "slogan", "photos" => "photos", + "globalLocationNumber" => "globalLocationNumber", + "smokingAllowed" => "smokingAllowed", + "tourBookingPage" => "tourBookingPage", + "event" => "event", + "geoTouches" => "geoTouches", "geoCovers" => "geoCovers", - "containedIn" => "containedIn", + "reviews" => "reviews", + "geoEquals" => "geoEquals", + "latitude" => "latitude", "hasDriveThroughService" => "hasDriveThroughService", - "logo" => "logo", - "isAccessibleForFree" => "isAccessibleForFree", - "geoWithin" => "geoWithin", - "geoDisjoint" => "geoDisjoint", - "tourBookingPage" => "tourBookingPage", - "isicV4" => "isicV4", - "geoOverlaps" => "geoOverlaps", - "branchCode" => "branchCode", - "additionalProperty" => "additionalProperty", + "aggregateRating" => "aggregateRating", "openingHoursSpecification" => "openingHoursSpecification", - "reviews" => "reviews", + "address" => "address", + "events" => "events", + "geoOverlaps" => "geoOverlaps", + "hasGS1DigitalLink" => "hasGS1DigitalLink", + "isAccessibleForFree" => "isAccessibleForFree", + "hasMap" => "hasMap", "photo" => "photo", + "logo" => "logo", + "geoCrosses" => "geoCrosses", + "publicAccess" => "publicAccess", "specialOpeningHoursSpecification" => "specialOpeningHoursSpecification", - "hasMap" => "hasMap", + "review" => "review", + "containsPlace" => "containsPlace", "longitude" => "longitude", - "geo" => "geo", - "events" => "events", - "faxNumber" => "faxNumber", - "event" => "event", + "containedInPlace" => "containedInPlace", + "hasCertification" => "hasCertification", ]; return array_merge(parent::fieldList(), $fields); @@ -76,12 +78,20 @@ public static function fieldList() { protected $telephone; /** - * A review of 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 \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $review; + protected $geoWithin; + + /** + * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * + * + * @var string + */ + protected $isicV4; /** * A URL to a map of the place. @@ -89,79 +99,81 @@ public static function fieldList() { * * @var string */ - protected $maps; + protected $map; /** - * Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). + * Represents spatial relations in which two geometries (or the places they represent) are topologically 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 */ - protected $geoContains; + protected $geoDisjoint; /** - * The total number of individuals that may attend an event or venue. + * 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 int|null + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $maximumAttendeeCapacity; + protected $geoIntersects; /** - * The basic containment relation between a place and another that it contains. + * The total number of individuals that may attend an event or venue. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var int|null */ - protected $containsPlace; + protected $maximumAttendeeCapacity; /** - * Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room. + * The fax number. * * - * @var bool|null + * @var string */ - protected $smokingAllowed; + 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. + * A slogan or motto associated with the item. * * * @var string */ - protected $globalLocationNumber; + protected $slogan; /** - * 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 URL to a map of the place. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string */ - protected $keywords; + protected $maps; /** - * 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 containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - protected $geoIntersects; + protected $geoContains; /** - * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). + * 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|Number|null + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $latitude; + protected $additionalProperty; /** - * 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) ) + * 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 \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var string */ - protected $geoTouches; + protected $branchCode; /** * 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). @@ -172,263 +184,269 @@ public static function fieldList() { protected $geoCoveredBy; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * 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\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $aggregateRating; + protected $keywords; /** - * Physical address of the item. + * The geo coordinates of the place. * * - * @var string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string */ - protected $address; + protected $geo; /** - * 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) + * The basic containment relation between a place and one that contains it. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $geoEquals; + protected $containedIn; /** - * A URL to a map of the place. + * 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 string + * @var \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - protected $map; + protected $amenityFeature; /** - * A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value + * Photographs of this place. * * - * @var bool|null + * @var \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $publicAccess; + protected $photos; /** - * 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). + * 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\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var string */ - protected $geoCrosses; + protected $globalLocationNumber; /** - * The basic containment relation between a place and one that contains it. + * Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var bool|null */ - protected $containedInPlace; + protected $smokingAllowed; /** - * 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 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\LocationFeatureSpecification|string + * @var string */ - protected $amenityFeature; + protected $tourBookingPage; /** - * A slogan or motto associated with the item. + * Upcoming or past event associated with this place, organization, or action. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $slogan; + protected $event; /** - * Photographs of this place. + * 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\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $photos; + protected $geoTouches; /** * Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ protected $geoCovers; /** - * The basic containment relation between a place and one that contains it. + * Review of the item. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $containedIn; + protected $reviews; /** - * Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users. + * Represents spatial relations in which two geometries (or the places they represent) are topologically 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\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $hasDriveThroughService; + protected $geoEquals; /** - * An associated logo. + * The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var string|Number|null */ - protected $logo; + protected $latitude; /** - * A flag to signal that the item, event, or place is accessible for free. + * Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users. * * * @var bool|null */ - protected $isAccessibleForFree; + protected $hasDriveThroughService; /** - * 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 overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $geoWithin; + protected $aggregateRating; /** - * 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)) + * The opening hours of a certain place. * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - protected $geoDisjoint; + protected $openingHoursSpecification; /** - * 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. + * Physical address of the item. * * - * @var string + * @var string|\OpenActive\Models\SchemaOrg\PostalAddress */ - protected $tourBookingPage; + protected $address; /** - * The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place. + * Upcoming or past events associated with this place or organization. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $isicV4; + protected $events; /** * Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). * * - * @var \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ protected $geoOverlaps; /** - * 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. - * + * 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 $branchCode; + protected $hasGS1DigitalLink; /** - * 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 flag to signal that the item, event, or place is accessible for free. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var bool|null */ - protected $additionalProperty; + protected $isAccessibleForFree; /** - * The opening hours of a certain place. + * A URL to a map of the place. * * - * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @var string|\OpenActive\Models\SchemaOrg\Map */ - protected $openingHoursSpecification; + protected $hasMap; /** - * Review of the item. + * A photograph of this place. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $reviews; + protected $photo; /** - * A photograph of this place. + * An associated logo. * * - * @var \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $photo; + protected $logo; /** - * The special opening hours of a certain place.\n\nUse this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. - * + * 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\OpeningHoursSpecification|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - protected $specialOpeningHoursSpecification; + protected $geoCrosses; /** - * A URL to a map of the place. + * 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 string|\OpenActive\Models\SchemaOrg\Map + * @var bool|null */ - protected $hasMap; + protected $publicAccess; /** - * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). + * 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 string|Number|null + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - protected $longitude; + protected $specialOpeningHoursSpecification; /** - * The geo coordinates of the place. + * A review of the item. * * - * @var \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $geo; + protected $review; /** - * Upcoming or past events associated with this place or organization. + * The basic containment relation between a place and another that it contains. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $events; + protected $containsPlace; /** - * The fax number. + * The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)). * * - * @var string + * @var string|Number|null */ - protected $faxNumber; + protected $longitude; /** - * Upcoming or past event associated with this place, organization, or action. + * The basic containment relation between a place and one that contains it. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $event; + protected $containedInPlace; + + /** + * Certification information about a product, organization, service, place, or person. + * + * + * @var \OpenActive\Models\SchemaOrg\Certification|string + */ + protected $hasCertification; /** * @return string @@ -455,218 +473,242 @@ public function setTelephone($telephone) } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getReview() + public function getGeoWithin() { - return $this->review; + return $this->geoWithin; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setGeoWithin($geoWithin) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $review = self::checkTypes($review, $types); + $geoWithin = self::checkTypes($geoWithin, $types); - $this->review = $review; + $this->geoWithin = $geoWithin; } /** * @return string */ - public function getMaps() + public function getIsicV4() { - return $this->maps; + return $this->isicV4; } /** - * @param string $maps + * @param string $isicV4 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaps($maps) + public function setIsicV4($isicV4) { $types = [ "string", ]; - $maps = self::checkTypes($maps, $types); + $isicV4 = self::checkTypes($isicV4, $types); - $this->maps = $maps; + $this->isicV4 = $isicV4; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return string */ - public function getGeoContains() + public function getMap() { - return $this->geoContains; + return $this->map; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoContains + * @param string $map * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoContains($geoContains) + public function setMap($map) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $geoContains = self::checkTypes($geoContains, $types); + $map = self::checkTypes($map, $types); - $this->geoContains = $geoContains; + $this->map = $map; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getMaximumAttendeeCapacity() + public function getGeoDisjoint() { - return $this->maximumAttendeeCapacity; + return $this->geoDisjoint; } /** - * @param int|null $maximumAttendeeCapacity + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoDisjoint * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaximumAttendeeCapacity($maximumAttendeeCapacity) + public function setGeoDisjoint($geoDisjoint) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "string", ]; - $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); + $geoDisjoint = self::checkTypes($geoDisjoint, $types); - $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; + $this->geoDisjoint = $geoDisjoint; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getContainsPlace() + public function getGeoIntersects() { - return $this->containsPlace; + return $this->geoIntersects; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $containsPlace + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoIntersects * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContainsPlace($containsPlace) + public function setGeoIntersects($geoIntersects) { $types = [ "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $containsPlace = self::checkTypes($containsPlace, $types); + $geoIntersects = self::checkTypes($geoIntersects, $types); - $this->containsPlace = $containsPlace; + $this->geoIntersects = $geoIntersects; } /** - * @return bool|null + * @return int|null */ - public function getSmokingAllowed() + public function getMaximumAttendeeCapacity() { - return $this->smokingAllowed; + return $this->maximumAttendeeCapacity; } /** - * @param bool|null $smokingAllowed + * @param int|null $maximumAttendeeCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSmokingAllowed($smokingAllowed) + public function setMaximumAttendeeCapacity($maximumAttendeeCapacity) { $types = [ - "bool", + "int", "null", ]; - $smokingAllowed = self::checkTypes($smokingAllowed, $types); + $maximumAttendeeCapacity = self::checkTypes($maximumAttendeeCapacity, $types); - $this->smokingAllowed = $smokingAllowed; + $this->maximumAttendeeCapacity = $maximumAttendeeCapacity; } /** * @return string */ - public function getGlobalLocationNumber() + public function getFaxNumber() { - return $this->globalLocationNumber; + return $this->faxNumber; } /** - * @param string $globalLocationNumber + * @param string $faxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGlobalLocationNumber($globalLocationNumber) + public function setFaxNumber($faxNumber) { $types = [ "string", ]; - $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); + $faxNumber = self::checkTypes($faxNumber, $types); - $this->globalLocationNumber = $globalLocationNumber; + $this->faxNumber = $faxNumber; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string */ - public function getKeywords() + public function getSlogan() { - return $this->keywords; + return $this->slogan; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setSlogan($slogan) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $slogan = self::checkTypes($slogan, $types); - $this->keywords = $keywords; + $this->slogan = $slogan; + } + + /** + * @return string + */ + public function getMaps() + { + return $this->maps; + } + + /** + * @param string $maps + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMaps($maps) + { + $types = [ + "string", + ]; + + $maps = self::checkTypes($maps, $types); + + $this->maps = $maps; } /** * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoIntersects() + public function getGeoContains() { - return $this->geoIntersects; + return $this->geoContains; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoIntersects + * @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 setGeoIntersects($geoIntersects) + public function setGeoContains($geoContains) { $types = [ "\OpenActive\Models\SchemaOrg\GeospatialGeometry", @@ -674,61 +716,58 @@ public function setGeoIntersects($geoIntersects) "string", ]; - $geoIntersects = self::checkTypes($geoIntersects, $types); + $geoContains = self::checkTypes($geoContains, $types); - $this->geoIntersects = $geoIntersects; + $this->geoContains = $geoContains; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getLatitude() + public function getAdditionalProperty() { - return $this->latitude; + return $this->additionalProperty; } /** - * @param string|Number|null $latitude + * @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 setLatitude($latitude) + public function setAdditionalProperty($additionalProperty) { $types = [ + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", - "Number", - "null", ]; - $latitude = self::checkTypes($latitude, $types); + $additionalProperty = self::checkTypes($additionalProperty, $types); - $this->latitude = $latitude; + $this->additionalProperty = $additionalProperty; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return string */ - public function getGeoTouches() + public function getBranchCode() { - return $this->geoTouches; + return $this->branchCode; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches + * @param string $branchCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoTouches($geoTouches) + public function setBranchCode($branchCode) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $geoTouches = self::checkTypes($geoTouches, $types); + $branchCode = self::checkTypes($branchCode, $types); - $this->geoTouches = $geoTouches; + $this->branchCode = $branchCode; } /** @@ -758,258 +797,258 @@ public function setGeoCoveredBy($geoCoveredBy) } /** - * @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 string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string */ - public function getAddress() + public function getGeo() { - return $this->address; + return $this->geo; } /** - * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address + * @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 setAddress($address) + public function setGeo($geo) { $types = [ + "\OpenActive\Models\SchemaOrg\GeoCoordinates", + "\OpenActive\Models\SchemaOrg\GeoShape", "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $address = self::checkTypes($address, $types); + $geo = self::checkTypes($geo, $types); - $this->address = $address; + $this->geo = $geo; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getGeoEquals() + public function getContainedIn() { - return $this->geoEquals; + return $this->containedIn; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals + * @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 setGeoEquals($geoEquals) + public function setContainedIn($containedIn) { $types = [ "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $geoEquals = self::checkTypes($geoEquals, $types); + $containedIn = self::checkTypes($containedIn, $types); - $this->geoEquals = $geoEquals; + $this->containedIn = $containedIn; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string */ - public function getMap() + public function getAmenityFeature() { - return $this->map; + return $this->amenityFeature; } /** - * @param string $map + * @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 setMap($map) + public function setAmenityFeature($amenityFeature) { $types = [ + "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", "string", ]; - $map = self::checkTypes($map, $types); + $amenityFeature = self::checkTypes($amenityFeature, $types); - $this->map = $map; + $this->amenityFeature = $amenityFeature; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getPublicAccess() + public function getPhotos() { - return $this->publicAccess; + return $this->photos; } /** - * @param bool|null $publicAccess + * @param \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string $photos * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublicAccess($publicAccess) + public function setPhotos($photos) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Photograph", + "\OpenActive\Models\SchemaOrg\ImageObject", + "string", ]; - $publicAccess = self::checkTypes($publicAccess, $types); + $photos = self::checkTypes($photos, $types); - $this->publicAccess = $publicAccess; + $this->photos = $photos; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return string */ - public function getGeoCrosses() + public function getGlobalLocationNumber() { - return $this->geoCrosses; + return $this->globalLocationNumber; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCrosses + * @param string $globalLocationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoCrosses($geoCrosses) + public function setGlobalLocationNumber($globalLocationNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geoCrosses = self::checkTypes($geoCrosses, $types); + $globalLocationNumber = self::checkTypes($globalLocationNumber, $types); - $this->geoCrosses = $geoCrosses; + $this->globalLocationNumber = $globalLocationNumber; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return bool|null */ - public function getContainedInPlace() + public function getSmokingAllowed() { - return $this->containedInPlace; + return $this->smokingAllowed; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $containedInPlace + * @param bool|null $smokingAllowed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContainedInPlace($containedInPlace) + public function setSmokingAllowed($smokingAllowed) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", + "bool", + "null", ]; - $containedInPlace = self::checkTypes($containedInPlace, $types); + $smokingAllowed = self::checkTypes($smokingAllowed, $types); - $this->containedInPlace = $containedInPlace; + $this->smokingAllowed = $smokingAllowed; } /** - * @return \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string + * @return string */ - public function getAmenityFeature() + public function getTourBookingPage() { - return $this->amenityFeature; + return $this->tourBookingPage; } /** - * @param \OpenActive\Models\SchemaOrg\LocationFeatureSpecification|string $amenityFeature + * @param string $tourBookingPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAmenityFeature($amenityFeature) + public function setTourBookingPage($tourBookingPage) { $types = [ - "\OpenActive\Models\SchemaOrg\LocationFeatureSpecification", "string", ]; - $amenityFeature = self::checkTypes($amenityFeature, $types); + $tourBookingPage = self::checkTypes($tourBookingPage, $types); - $this->amenityFeature = $amenityFeature; + $this->tourBookingPage = $tourBookingPage; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getSlogan() + public function getEvent() { - return $this->slogan; + return $this->event; } /** - * @param string $slogan + * @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 setSlogan($slogan) + public function setEvent($event) { $types = [ + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $slogan = self::checkTypes($slogan, $types); + $event = self::checkTypes($event, $types); - $this->slogan = $slogan; + $this->event = $event; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getPhotos() + public function getGeoTouches() { - return $this->photos; + return $this->geoTouches; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|\OpenActive\Models\SchemaOrg\Photograph|string $photos + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoTouches * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPhotos($photos) + public function setGeoTouches($geoTouches) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", - "\OpenActive\Models\SchemaOrg\Photograph", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $photos = self::checkTypes($photos, $types); + $geoTouches = self::checkTypes($geoTouches, $types); - $this->photos = $photos; + $this->geoTouches = $geoTouches; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ public function getGeoCovers() { @@ -1017,15 +1056,15 @@ public function getGeoCovers() } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoCovers + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCovers * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setGeoCovers($geoCovers) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; @@ -1035,207 +1074,209 @@ public function setGeoCovers($geoCovers) } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getContainedIn() + public function getReviews() { - return $this->containedIn; + return $this->reviews; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $containedIn + * @param \OpenActive\Models\SchemaOrg\Review|string $reviews * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContainedIn($containedIn) + public function setReviews($reviews) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $containedIn = self::checkTypes($containedIn, $types); + $reviews = self::checkTypes($reviews, $types); - $this->containedIn = $containedIn; + $this->reviews = $reviews; } /** - * @return bool|null + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getHasDriveThroughService() + public function getGeoEquals() { - return $this->hasDriveThroughService; + return $this->geoEquals; } /** - * @param bool|null $hasDriveThroughService + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoEquals * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasDriveThroughService($hasDriveThroughService) + public function setGeoEquals($geoEquals) { $types = [ - "bool", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "string", ]; - $hasDriveThroughService = self::checkTypes($hasDriveThroughService, $types); + $geoEquals = self::checkTypes($geoEquals, $types); - $this->hasDriveThroughService = $hasDriveThroughService; + $this->geoEquals = $geoEquals; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return string|Number|null */ - public function getLogo() + public function getLatitude() { - return $this->logo; + return $this->latitude; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @param string|Number|null $latitude * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLogo($logo) + public function setLatitude($latitude) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\ImageObject", + "Number", + "null", ]; - $logo = self::checkTypes($logo, $types); + $latitude = self::checkTypes($latitude, $types); - $this->logo = $logo; + $this->latitude = $latitude; } /** * @return bool|null */ - public function getIsAccessibleForFree() + public function getHasDriveThroughService() { - return $this->isAccessibleForFree; + return $this->hasDriveThroughService; } /** - * @param bool|null $isAccessibleForFree + * @param bool|null $hasDriveThroughService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsAccessibleForFree($isAccessibleForFree) + public function setHasDriveThroughService($hasDriveThroughService) { $types = [ "bool", "null", ]; - $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); + $hasDriveThroughService = self::checkTypes($hasDriveThroughService, $types); - $this->isAccessibleForFree = $isAccessibleForFree; + $this->hasDriveThroughService = $hasDriveThroughService; } /** - * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string + * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ - public function getGeoWithin() + public function getAggregateRating() { - return $this->geoWithin; + return $this->aggregateRating; } /** - * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoWithin + * @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 setGeoWithin($geoWithin) + public function setAggregateRating($aggregateRating) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", + "\OpenActive\Models\SchemaOrg\AggregateRating", "string", ]; - $geoWithin = self::checkTypes($geoWithin, $types); + $aggregateRating = self::checkTypes($aggregateRating, $types); - $this->geoWithin = $geoWithin; + $this->aggregateRating = $aggregateRating; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - public function getGeoDisjoint() + public function getOpeningHoursSpecification() { - return $this->geoDisjoint; + return $this->openingHoursSpecification; } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoDisjoint + * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $openingHoursSpecification * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGeoDisjoint($geoDisjoint) + public function setOpeningHoursSpecification($openingHoursSpecification) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $geoDisjoint = self::checkTypes($geoDisjoint, $types); + $openingHoursSpecification = self::checkTypes($openingHoursSpecification, $types); - $this->geoDisjoint = $geoDisjoint; + $this->openingHoursSpecification = $openingHoursSpecification; } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\PostalAddress */ - public function getTourBookingPage() + public function getAddress() { - return $this->tourBookingPage; + return $this->address; } /** - * @param string $tourBookingPage + * @param string|\OpenActive\Models\SchemaOrg\PostalAddress $address * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTourBookingPage($tourBookingPage) + public function setAddress($address) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $tourBookingPage = self::checkTypes($tourBookingPage, $types); + $address = self::checkTypes($address, $types); - $this->tourBookingPage = $tourBookingPage; + $this->address = $address; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getIsicV4() + public function getEvents() { - return $this->isicV4; + return $this->events; } /** - * @param string $isicV4 + * @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 setIsicV4($isicV4) + public function setEvents($events) { $types = [ + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $isicV4 = self::checkTypes($isicV4, $types); + $events = self::checkTypes($events, $types); - $this->isicV4 = $isicV4; + $this->events = $events; } /** - * @return \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ public function getGeoOverlaps() { @@ -1243,15 +1284,15 @@ public function getGeoOverlaps() } /** - * @param \OpenActive\Models\SchemaOrg\GeospatialGeometry|\OpenActive\Models\SchemaOrg\Place|string $geoOverlaps + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoOverlaps * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setGeoOverlaps($geoOverlaps) { $types = [ - "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; @@ -1263,302 +1304,328 @@ public function setGeoOverlaps($geoOverlaps) /** * @return string */ - public function getBranchCode() + public function getHasGS1DigitalLink() { - return $this->branchCode; + return $this->hasGS1DigitalLink; } /** - * @param string $branchCode + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBranchCode($branchCode) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ "string", ]; - $branchCode = self::checkTypes($branchCode, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->branchCode = $branchCode; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return bool|null */ - public function getAdditionalProperty() + public function getIsAccessibleForFree() { - return $this->additionalProperty; + return $this->isAccessibleForFree; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @param bool|null $isAccessibleForFree * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalProperty($additionalProperty) + public function setIsAccessibleForFree($isAccessibleForFree) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", - "string", + "bool", + "null", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $isAccessibleForFree = self::checkTypes($isAccessibleForFree, $types); - $this->additionalProperty = $additionalProperty; + $this->isAccessibleForFree = $isAccessibleForFree; } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return string|\OpenActive\Models\SchemaOrg\Map */ - public function getOpeningHoursSpecification() + public function getHasMap() { - return $this->openingHoursSpecification; + return $this->hasMap; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $openingHoursSpecification + * @param string|\OpenActive\Models\SchemaOrg\Map $hasMap * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOpeningHoursSpecification($openingHoursSpecification) + public function setHasMap($hasMap) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", + "\OpenActive\Models\SchemaOrg\Map", ]; - $openingHoursSpecification = self::checkTypes($openingHoursSpecification, $types); + $hasMap = self::checkTypes($hasMap, $types); - $this->openingHoursSpecification = $openingHoursSpecification; + $this->hasMap = $hasMap; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getReviews() + public function getPhoto() { - return $this->reviews; + return $this->photo; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @param \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string $photo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviews($reviews) + public function setPhoto($photo) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\Photograph", + "\OpenActive\Models\SchemaOrg\ImageObject", "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|string */ - public function getPhoto() + public function getLogo() { - return $this->photo; + return $this->logo; } /** - * @param \OpenActive\Models\SchemaOrg\Photograph|\OpenActive\Models\SchemaOrg\ImageObject|string $photo + * @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 setPhoto($photo) + public function setLogo($logo) { $types = [ - "\OpenActive\Models\SchemaOrg\Photograph", "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $photo = self::checkTypes($photo, $types); + $logo = self::checkTypes($logo, $types); - $this->photo = $photo; + $this->logo = $logo; } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string */ - public function getSpecialOpeningHoursSpecification() + public function getGeoCrosses() { - return $this->specialOpeningHoursSpecification; + return $this->geoCrosses; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $specialOpeningHoursSpecification + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeospatialGeometry|string $geoCrosses * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpecialOpeningHoursSpecification($specialOpeningHoursSpecification) + public function setGeoCrosses($geoCrosses) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeospatialGeometry", "string", ]; - $specialOpeningHoursSpecification = self::checkTypes($specialOpeningHoursSpecification, $types); + $geoCrosses = self::checkTypes($geoCrosses, $types); - $this->specialOpeningHoursSpecification = $specialOpeningHoursSpecification; + $this->geoCrosses = $geoCrosses; } /** - * @return string|\OpenActive\Models\SchemaOrg\Map + * @return bool|null */ - public function getHasMap() + public function getPublicAccess() { - return $this->hasMap; + return $this->publicAccess; } /** - * @param string|\OpenActive\Models\SchemaOrg\Map $hasMap + * @param bool|null $publicAccess * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMap($hasMap) + public function setPublicAccess($publicAccess) + { + $types = [ + "bool", + "null", + ]; + + $publicAccess = self::checkTypes($publicAccess, $types); + + $this->publicAccess = $publicAccess; + } + + /** + * @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", - "\OpenActive\Models\SchemaOrg\Map", ]; - $hasMap = self::checkTypes($hasMap, $types); + $specialOpeningHoursSpecification = self::checkTypes($specialOpeningHoursSpecification, $types); - $this->hasMap = $hasMap; + $this->specialOpeningHoursSpecification = $specialOpeningHoursSpecification; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getLongitude() + public function getReview() { - return $this->longitude; + return $this->review; } /** - * @param string|Number|null $longitude + * @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 setLongitude($longitude) + public function setReview($review) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", - "Number", - "null", ]; - $longitude = self::checkTypes($longitude, $types); + $review = self::checkTypes($review, $types); - $this->longitude = $longitude; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getGeo() + public function getContainsPlace() { - return $this->geo; + return $this->containsPlace; } /** - * @param \OpenActive\Models\SchemaOrg\GeoCoordinates|\OpenActive\Models\SchemaOrg\GeoShape|string $geo + * @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 setGeo($geo) + public function setContainsPlace($containsPlace) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoCoordinates", - "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $geo = self::checkTypes($geo, $types); + $containsPlace = self::checkTypes($containsPlace, $types); - $this->geo = $geo; + $this->containsPlace = $containsPlace; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return string|Number|null */ - public function getEvents() + public function getLongitude() { - return $this->events; + return $this->longitude; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $events + * @param string|Number|null $longitude * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvents($events) + public function setLongitude($longitude) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", "string", + "Number", + "null", ]; - $events = self::checkTypes($events, $types); + $longitude = self::checkTypes($longitude, $types); - $this->events = $events; + $this->longitude = $longitude; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getFaxNumber() + public function getContainedInPlace() { - return $this->faxNumber; + return $this->containedInPlace; } /** - * @param string $faxNumber + * @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 setFaxNumber($faxNumber) + public function setContainedInPlace($containedInPlace) { $types = [ + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $faxNumber = self::checkTypes($faxNumber, $types); + $containedInPlace = self::checkTypes($containedInPlace, $types); - $this->faxNumber = $faxNumber; + $this->containedInPlace = $containedInPlace; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getEvent() + public function getHasCertification() { - return $this->event; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $event + * @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 setEvent($event) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $event = self::checkTypes($event, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->event = $event; + $this->hasCertification = $hasCertification; } } diff --git a/src/Models/SchemaOrg/PlanAction.php b/src/Models/SchemaOrg/PlanAction.php index e2590c54..f692e3ad 100644 --- a/src/Models/SchemaOrg/PlanAction.php +++ b/src/Models/SchemaOrg/PlanAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * The time the object is scheduled to. * * - * @var DateTime|null + * @var Date|DateTime|null */ protected $scheduledTime; /** - * @return DateTime|null + * @return Date|DateTime|null */ public function getScheduledTime() { @@ -40,13 +40,14 @@ public function getScheduledTime() } /** - * @param DateTime|null $scheduledTime + * @param Date|DateTime|null $scheduledTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setScheduledTime($scheduledTime) { $types = [ + "Date", "DateTime", "null", ]; diff --git a/src/Models/SchemaOrg/PlayAction.php b/src/Models/SchemaOrg/PlayAction.php index 13454c63..f8455cf5 100644 --- a/src/Models/SchemaOrg/PlayAction.php +++ b/src/Models/SchemaOrg/PlayAction.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "audience" => "audience", "event" => "event", + "audience" => "audience", ]; return array_merge(parent::fieldList(), $fields); } /** - * An intended audience, i.e. a group for whom something was created. + * Upcoming or past event associated with this place, organization, or action. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\Event|string */ - protected $audience; + protected $event; /** - * Upcoming or past event associated with this place, organization, or action. + * An intended audience, i.e. a group for whom something was created. * * - * @var \OpenActive\Models\SchemaOrg\Event|string + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $event; + protected $audience; /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\Event|string */ - public function getAudience() + public function getEvent() { - return $this->audience; + return $this->event; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param \OpenActive\Models\SchemaOrg\Event|string $event * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setEvent($event) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Event", "string", ]; - $audience = self::checkTypes($audience, $types); + $event = self::checkTypes($event, $types); - $this->audience = $audience; + $this->event = $event; } /** - * @return \OpenActive\Models\SchemaOrg\Event|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getEvent() + public function getAudience() { - return $this->event; + return $this->audience; } /** - * @param \OpenActive\Models\SchemaOrg\Event|string $event + * @param \OpenActive\Models\SchemaOrg\Audience|string $audience * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEvent($event) + public function setAudience($audience) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $event = self::checkTypes($event, $types); + $audience = self::checkTypes($audience, $types); - $this->event = $event; + $this->audience = $audience; } } diff --git a/src/Models/SchemaOrg/PlayGameAction.php b/src/Models/SchemaOrg/PlayGameAction.php index 6500c4f7..9577a32d 100644 --- a/src/Models/SchemaOrg/PlayGameAction.php +++ b/src/Models/SchemaOrg/PlayGameAction.php @@ -27,12 +27,12 @@ public static function fieldList() { * Indicates the availability type of the game content associated with this action, such as whether it is a full version or a demo. * * - * @var \OpenActive\Enums\SchemaOrg\GameAvailabilityEnumeration|string|null + * @var string|\OpenActive\Enums\SchemaOrg\GameAvailabilityEnumeration|null */ protected $gameAvailabilityType; /** - * @return \OpenActive\Enums\SchemaOrg\GameAvailabilityEnumeration|string|null + * @return string|\OpenActive\Enums\SchemaOrg\GameAvailabilityEnumeration|null */ public function getGameAvailabilityType() { @@ -40,15 +40,15 @@ public function getGameAvailabilityType() } /** - * @param \OpenActive\Enums\SchemaOrg\GameAvailabilityEnumeration|string|null $gameAvailabilityType + * @param string|\OpenActive\Enums\SchemaOrg\GameAvailabilityEnumeration|null $gameAvailabilityType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setGameAvailabilityType($gameAvailabilityType) { $types = [ - "\OpenActive\Enums\SchemaOrg\GameAvailabilityEnumeration", "string", + "\OpenActive\Enums\SchemaOrg\GameAvailabilityEnumeration", "null", ]; diff --git a/src/Models/SchemaOrg/PodcastSeries.php b/src/Models/SchemaOrg/PodcastSeries.php index 9f300e86..d5e8d45b 100644 --- a/src/Models/SchemaOrg/PodcastSeries.php +++ b/src/Models/SchemaOrg/PodcastSeries.php @@ -25,7 +25,7 @@ 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, 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 @@ -36,7 +36,7 @@ public static function fieldList() { * The URL for a feed, e.g. associated with a podcast series, blog, or series of date-stamped updates. This is usually RSS or Atom. * * - * @var \OpenActive\Models\SchemaOrg\DataFeed|string + * @var string|\OpenActive\Models\SchemaOrg\DataFeed */ protected $webFeed; @@ -66,7 +66,7 @@ public function setActor($actor) } /** - * @return \OpenActive\Models\SchemaOrg\DataFeed|string + * @return string|\OpenActive\Models\SchemaOrg\DataFeed */ public function getWebFeed() { @@ -74,15 +74,15 @@ public function getWebFeed() } /** - * @param \OpenActive\Models\SchemaOrg\DataFeed|string $webFeed + * @param string|\OpenActive\Models\SchemaOrg\DataFeed $webFeed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setWebFeed($webFeed) { $types = [ - "\OpenActive\Models\SchemaOrg\DataFeed", "string", + "\OpenActive\Models\SchemaOrg\DataFeed", ]; $webFeed = self::checkTypes($webFeed, $types); diff --git a/src/Models/SchemaOrg/PoliceStation.php b/src/Models/SchemaOrg/PoliceStation.php index e9f6934c..ac151713 100644 --- a/src/Models/SchemaOrg/PoliceStation.php +++ b/src/Models/SchemaOrg/PoliceStation.php @@ -5,7 +5,7 @@ /** * */ -class PoliceStation extends \OpenActive\Models\SchemaOrg\CivicStructure +class PoliceStation extends \OpenActive\Models\SchemaOrg\EmergencyService { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/PoliticalParty.php b/src/Models/SchemaOrg/PoliticalParty.php new file mode 100644 index 00000000..aeeb0be3 --- /dev/null +++ b/src/Models/SchemaOrg/PoliticalParty.php @@ -0,0 +1,25 @@ + "addressCountry", - "addressRegion" => "addressRegion", - "addressLocality" => "addressLocality", - "postalCode" => "postalCode", "postOfficeBoxNumber" => "postOfficeBoxNumber", + "postalCode" => "postalCode", "streetAddress" => "streetAddress", + "addressLocality" => "addressLocality", + "addressRegion" => "addressRegion", ]; return array_merge(parent::fieldList(), $fields); @@ -32,52 +32,52 @@ public static function fieldList() { * The country. For example, USA. You can also provide the two-letter [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1). * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var string|\OpenActive\Models\SchemaOrg\Country */ protected $addressCountry; /** - * The 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 post office box number for PO box addresses. * * * @var string */ - protected $addressRegion; + protected $postOfficeBoxNumber; /** - * The locality in which the street address is, and which is in the region. For example, Mountain View. + * The postal code. For example, 94043. * * * @var string */ - protected $addressLocality; + protected $postalCode; /** - * The postal code. For example, 94043. + * The street address. For example, 1600 Amphitheatre Pkwy. * * * @var string */ - protected $postalCode; + protected $streetAddress; /** - * The post office box number for PO box addresses. + * The locality in which the street address is, and which is in the region. For example, Mountain View. * * * @var string */ - protected $postOfficeBoxNumber; + protected $addressLocality; /** - * The street address. For example, 1600 Amphitheatre Pkwy. + * The region in which the locality is, and which is in the country. For example, California or another appropriate first-level [Administrative division](https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country). * * * @var string */ - protected $streetAddress; + protected $addressRegion; /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string|\OpenActive\Models\SchemaOrg\Country */ public function getAddressCountry() { @@ -85,15 +85,15 @@ public function getAddressCountry() } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $addressCountry + * @param string|\OpenActive\Models\SchemaOrg\Country $addressCountry * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAddressCountry($addressCountry) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", + "\OpenActive\Models\SchemaOrg\Country", ]; $addressCountry = self::checkTypes($addressCountry, $types); @@ -104,121 +104,121 @@ public function setAddressCountry($addressCountry) /** * @return string */ - public function getAddressRegion() + public function getPostOfficeBoxNumber() { - return $this->addressRegion; + return $this->postOfficeBoxNumber; } /** - * @param string $addressRegion + * @param string $postOfficeBoxNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddressRegion($addressRegion) + public function setPostOfficeBoxNumber($postOfficeBoxNumber) { $types = [ "string", ]; - $addressRegion = self::checkTypes($addressRegion, $types); + $postOfficeBoxNumber = self::checkTypes($postOfficeBoxNumber, $types); - $this->addressRegion = $addressRegion; + $this->postOfficeBoxNumber = $postOfficeBoxNumber; } /** * @return string */ - public function getAddressLocality() + public function getPostalCode() { - return $this->addressLocality; + return $this->postalCode; } /** - * @param string $addressLocality + * @param string $postalCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAddressLocality($addressLocality) + public function setPostalCode($postalCode) { $types = [ "string", ]; - $addressLocality = self::checkTypes($addressLocality, $types); + $postalCode = self::checkTypes($postalCode, $types); - $this->addressLocality = $addressLocality; + $this->postalCode = $postalCode; } /** * @return string */ - public function getPostalCode() + public function getStreetAddress() { - return $this->postalCode; + return $this->streetAddress; } /** - * @param string $postalCode + * @param string $streetAddress * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostalCode($postalCode) + public function setStreetAddress($streetAddress) { $types = [ "string", ]; - $postalCode = self::checkTypes($postalCode, $types); + $streetAddress = self::checkTypes($streetAddress, $types); - $this->postalCode = $postalCode; + $this->streetAddress = $streetAddress; } /** * @return string */ - public function getPostOfficeBoxNumber() + public function getAddressLocality() { - return $this->postOfficeBoxNumber; + return $this->addressLocality; } /** - * @param string $postOfficeBoxNumber + * @param string $addressLocality * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPostOfficeBoxNumber($postOfficeBoxNumber) + public function setAddressLocality($addressLocality) { $types = [ "string", ]; - $postOfficeBoxNumber = self::checkTypes($postOfficeBoxNumber, $types); + $addressLocality = self::checkTypes($addressLocality, $types); - $this->postOfficeBoxNumber = $postOfficeBoxNumber; + $this->addressLocality = $addressLocality; } /** * @return string */ - public function getStreetAddress() + public function getAddressRegion() { - return $this->streetAddress; + return $this->addressRegion; } /** - * @param string $streetAddress + * @param string $addressRegion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStreetAddress($streetAddress) + public function setAddressRegion($addressRegion) { $types = [ "string", ]; - $streetAddress = self::checkTypes($streetAddress, $types); + $addressRegion = self::checkTypes($addressRegion, $types); - $this->streetAddress = $streetAddress; + $this->addressRegion = $addressRegion; } } diff --git a/src/Models/SchemaOrg/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..d1933948 100644 --- a/src/Models/SchemaOrg/PriceSpecification.php +++ b/src/Models/SchemaOrg/PriceSpecification.php @@ -17,14 +17,14 @@ public static function getType() public static function fieldList() { $fields = [ - "minPrice" => "minPrice", - "eligibleQuantity" => "eligibleQuantity", - "validFrom" => "validFrom", - "maxPrice" => "maxPrice", + "validThrough" => "validThrough", "priceCurrency" => "priceCurrency", "valueAddedTaxIncluded" => "valueAddedTaxIncluded", + "maxPrice" => "maxPrice", "eligibleTransactionVolume" => "eligibleTransactionVolume", - "validThrough" => "validThrough", + "validFrom" => "validFrom", + "minPrice" => "minPrice", + "eligibleQuantity" => "eligibleQuantity", "price" => "price", ]; @@ -32,28 +32,28 @@ public static function fieldList() { } /** - * The lowest price if the price is a range. + * 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 Number|null + * @var Date|DateTime|null */ - protected $minPrice; + protected $validThrough; /** - * The interval and unit of measurement of ordering quantities for which the offer or price specification is valid. This allows e.g. specifying that a certain freight charge is valid only for a certain quantity. + * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $eligibleQuantity; + protected $priceCurrency; /** - * The date when the item becomes valid. + * Specifies whether the applicable value-added tax (VAT) is included in the price specification or not. * * - * @var Date|DateTime|null + * @var bool|null */ - protected $validFrom; + protected $valueAddedTaxIncluded; /** * The highest price if the price is a range. @@ -64,39 +64,39 @@ 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 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 string + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $priceCurrency; + protected $eligibleTransactionVolume; /** - * Specifies whether the applicable value-added tax (VAT) is included in the price specification or not. + * The date when the item becomes valid. * * - * @var bool|null + * @var Date|DateTime|null */ - protected $valueAddedTaxIncluded; + protected $validFrom; /** - * 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 lowest price if the price is a range. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @var Number|null */ - protected $eligibleTransactionVolume; + protected $minPrice; /** - * 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 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 Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $validThrough; + protected $eligibleQuantity; /** - * 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 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. * * * @@ -105,79 +105,78 @@ public static function fieldList() { protected $price; /** - * @return Number|null + * @return Date|DateTime|null */ - public function getMinPrice() + public function getValidThrough() { - return $this->minPrice; + return $this->validThrough; } /** - * @param Number|null $minPrice + * @param Date|DateTime|null $validThrough * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinPrice($minPrice) + public function setValidThrough($validThrough) { $types = [ - "Number", + "Date", + "DateTime", "null", ]; - $minPrice = self::checkTypes($minPrice, $types); + $validThrough = self::checkTypes($validThrough, $types); - $this->minPrice = $minPrice; + $this->validThrough = $validThrough; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getEligibleQuantity() + public function getPriceCurrency() { - return $this->eligibleQuantity; + return $this->priceCurrency; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $eligibleQuantity + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleQuantity($eligibleQuantity) + public function setPriceCurrency($priceCurrency) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->eligibleQuantity = $eligibleQuantity; + $this->priceCurrency = $priceCurrency; } /** - * @return Date|DateTime|null + * @return bool|null */ - public function getValidFrom() + public function getValueAddedTaxIncluded() { - return $this->validFrom; + return $this->valueAddedTaxIncluded; } /** - * @param Date|DateTime|null $validFrom + * @param bool|null $valueAddedTaxIncluded * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValidFrom($validFrom) + public function setValueAddedTaxIncluded($valueAddedTaxIncluded) { $types = [ - "Date", - "DateTime", + "bool", "null", ]; - $validFrom = self::checkTypes($validFrom, $types); + $valueAddedTaxIncluded = self::checkTypes($valueAddedTaxIncluded, $types); - $this->validFrom = $validFrom; + $this->valueAddedTaxIncluded = $valueAddedTaxIncluded; } /** @@ -206,103 +205,104 @@ public function setMaxPrice($maxPrice) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getPriceCurrency() + public function getEligibleTransactionVolume() { - return $this->priceCurrency; + return $this->eligibleTransactionVolume; } /** - * @param string $priceCurrency + * @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 setPriceCurrency($priceCurrency) + public function setEligibleTransactionVolume($eligibleTransactionVolume) { $types = [ + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); - $this->priceCurrency = $priceCurrency; + $this->eligibleTransactionVolume = $eligibleTransactionVolume; } /** - * @return bool|null + * @return Date|DateTime|null */ - public function getValueAddedTaxIncluded() + public function getValidFrom() { - return $this->valueAddedTaxIncluded; + return $this->validFrom; } /** - * @param bool|null $valueAddedTaxIncluded + * @param Date|DateTime|null $validFrom * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueAddedTaxIncluded($valueAddedTaxIncluded) + public function setValidFrom($validFrom) { $types = [ - "bool", + "Date", + "DateTime", "null", ]; - $valueAddedTaxIncluded = self::checkTypes($valueAddedTaxIncluded, $types); + $validFrom = self::checkTypes($validFrom, $types); - $this->valueAddedTaxIncluded = $valueAddedTaxIncluded; + $this->validFrom = $validFrom; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return Number|null */ - public function getEligibleTransactionVolume() + public function getMinPrice() { - return $this->eligibleTransactionVolume; + return $this->minPrice; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $eligibleTransactionVolume + * @param Number|null $minPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEligibleTransactionVolume($eligibleTransactionVolume) + public function setMinPrice($minPrice) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", - "string", + "Number", + "null", ]; - $eligibleTransactionVolume = self::checkTypes($eligibleTransactionVolume, $types); + $minPrice = self::checkTypes($minPrice, $types); - $this->eligibleTransactionVolume = $eligibleTransactionVolume; + $this->minPrice = $minPrice; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getValidThrough() + public function getEligibleQuantity() { - return $this->validThrough; + return $this->eligibleQuantity; } /** - * @param Date|DateTime|null $validThrough + * @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 setValidThrough($validThrough) + public function setEligibleQuantity($eligibleQuantity) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $validThrough = self::checkTypes($validThrough, $types); + $eligibleQuantity = self::checkTypes($eligibleQuantity, $types); - $this->validThrough = $validThrough; + $this->eligibleQuantity = $eligibleQuantity; } /** diff --git a/src/Models/SchemaOrg/Product.php b/src/Models/SchemaOrg/Product.php index 2d779e5b..dace470a 100644 --- a/src/Models/SchemaOrg/Product.php +++ b/src/Models/SchemaOrg/Product.php @@ -17,209 +17,205 @@ public static function getType() public static function fieldList() { $fields = [ - "isAccessoryOrSparePartFor" => "isAccessoryOrSparePartFor", - "hasAdultConsideration" => "hasAdultConsideration", - "gtin12" => "gtin12", + "depth" => "depth", + "productID" => "productID", + "isRelatedTo" => "isRelatedTo", + "releaseDate" => "releaseDate", + "color" => "color", + "funding" => "funding", + "gtin8" => "gtin8", + "isConsumableFor" => "isConsumableFor", + "hasEnergyConsumptionDetails" => "hasEnergyConsumptionDetails", + "manufacturer" => "manufacturer", + "weight" => "weight", + "slogan" => "slogan", + "additionalProperty" => "additionalProperty", "nsn" => "nsn", - "material" => "material", - "review" => "review", - "award" => "award", + "countryOfAssembly" => "countryOfAssembly", + "isFamilyFriendly" => "isFamilyFriendly", + "hasAdultConsideration" => "hasAdultConsideration", + "offers" => "offers", + "negativeNotes" => "negativeNotes", + "keywords" => "keywords", + "size" => "size", + "gtin13" => "gtin13", + "brand" => "brand", + "asin" => "asin", + "pattern" => "pattern", "width" => "width", + "gtin" => "gtin", + "mpn" => "mpn", + "productionDate" => "productionDate", + "award" => "award", + "reviews" => "reviews", "countryOfOrigin" => "countryOfOrigin", - "pattern" => "pattern", + "isAccessoryOrSparePartFor" => "isAccessoryOrSparePartFor", "category" => "category", - "funding" => "funding", - "mpn" => "mpn", + "aggregateRating" => "aggregateRating", + "sku" => "sku", + "countryOfLastProcessing" => "countryOfLastProcessing", + "isSimilarTo" => "isSimilarTo", + "positiveNotes" => "positiveNotes", + "material" => "material", + "mobileUrl" => "mobileUrl", "height" => "height", - "keywords" => "keywords", + "hasGS1DigitalLink" => "hasGS1DigitalLink", "purchaseDate" => "purchaseDate", - "hasEnergyConsumptionDetails" => "hasEnergyConsumptionDetails", - "audience" => "audience", - "offers" => "offers", - "productionDate" => "productionDate", - "itemCondition" => "itemCondition", "awards" => "awards", - "gtin" => "gtin", - "productID" => "productID", - "countryOfAssembly" => "countryOfAssembly", - "color" => "color", - "aggregateRating" => "aggregateRating", - "isSimilarTo" => "isSimilarTo", - "depth" => "depth", - "countryOfLastProcessing" => "countryOfLastProcessing", - "isVariantOf" => "isVariantOf", - "slogan" => "slogan", - "brand" => "brand", - "manufacturer" => "manufacturer", + "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", "hasMeasurement" => "hasMeasurement", - "isConsumableFor" => "isConsumableFor", + "colorSwatch" => "colorSwatch", + "gtin14" => "gtin14", "logo" => "logo", - "gtin8" => "gtin8", - "sku" => "sku", - "inProductGroupWithID" => "inProductGroupWithID", "model" => "model", - "hasMerchantReturnPolicy" => "hasMerchantReturnPolicy", - "releaseDate" => "releaseDate", - "gtin14" => "gtin14", - "weight" => "weight", - "size" => "size", - "additionalProperty" => "additionalProperty", - "gtin13" => "gtin13", - "reviews" => "reviews", - "isFamilyFriendly" => "isFamilyFriendly", - "isRelatedTo" => "isRelatedTo", + "gtin12" => "gtin12", + "review" => "review", + "isVariantOf" => "isVariantOf", + "audience" => "audience", + "inProductGroupWithID" => "inProductGroupWithID", + "itemCondition" => "itemCondition", + "hasCertification" => "hasCertification", ]; return array_merge(parent::fieldList(), $fields); } /** - * A pointer to another product (or multiple products) for which this product is an accessory or spare part. - * - * - * @var \OpenActive\Models\SchemaOrg\Product|string - */ - protected $isAccessoryOrSparePartFor; - - /** - * Used to tag an item to be intended or suitable for consumption or use by adults only. + * The depth of the item. * * - * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $hasAdultConsideration; + protected $depth; /** - * 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 product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```. * * * @var string */ - protected $gtin12; + protected $productID; /** - * Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]]. + * A pointer to another, somehow related product (or multiple products). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $nsn; + protected $isRelatedTo; /** - * A material that something is made from, e.g. leather, wool, cotton, paper. + * The release date of a product or product model. This can be used to distinguish the exact variant of a product. * * - * @var string|\OpenActive\Models\SchemaOrg\Product + * @var Date|null */ - protected $material; + protected $releaseDate; /** - * A review of the item. + * The color of the product. * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var string */ - protected $review; + protected $color; /** - * An award won by or for this item. + * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Grant|string */ - protected $award; + protected $funding; /** - * The width of the item. + * 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|\OpenActive\Models\SchemaOrg\Distance|string + * @var string */ - protected $width; + protected $gtin8; /** - * 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 pointer to another product (or multiple products) for which this product is a consumable. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var \OpenActive\Models\SchemaOrg\Product|string */ - protected $countryOfOrigin; + protected $isConsumableFor; /** - * 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. + * 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\DefinedTerm|string + * @var \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string */ - protected $pattern; + protected $hasEnergyConsumptionDetails; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * The manufacturer of the product. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $category; + protected $manufacturer; /** - * A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]]. + * The weight of the product or person. * * - * @var \OpenActive\Models\SchemaOrg\Grant|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $funding; + protected $weight; /** - * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. + * A slogan or motto associated with the item. * * * @var string */ - protected $mpn; + protected $slogan; /** - * The height 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\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\PropertyValue|string */ - protected $height; + protected $additionalProperty; /** - * Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property. + * Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]]. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string */ - protected $keywords; + protected $nsn; /** - * The date the item e.g. vehicle was purchased by the current owner. + * The place where the product was assembled. * * - * @var Date|null + * @var string */ - protected $purchaseDate; + protected $countryOfAssembly; /** - * Defines the energy efficiency Category (also known as "class" or "rating") for a product according to an international energy efficiency standard. + * Indicates whether this content is family friendly. * * - * @var \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string + * @var bool|null */ - protected $hasEnergyConsumptionDetails; + protected $isFamilyFriendly; /** - * An intended audience, i.e. a group for whom something was created. + * Used to tag an item to be intended or suitable for consumption or use by adults only. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null */ - protected $audience; + protected $hasAdultConsideration; /** * 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. @@ -231,181 +227,246 @@ public static function fieldList() { protected $offers; /** - * The date of production of the item, e.g. vehicle. + * 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 Date|null + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem */ - protected $productionDate; + protected $negativeNotes; /** - * 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. + * 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\Enums\SchemaOrg\OfferItemCondition|null + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $itemCondition; + protected $keywords; /** - * Awards won by or for this item. + * 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 string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - protected $awards; + protected $size; /** - * 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-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. * * * @var string */ - protected $gtin; + protected $gtin13; /** - * The product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```. + * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - protected $productID; + protected $brand; /** - * The place where the product was assembled. + * 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 $countryOfAssembly; + protected $asin; /** - * The color of the product. + * A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'. Values are typically expressed as text, although links to controlled value schemes are also supported. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - protected $color; + protected $pattern; /** - * The overall rating, based on a collection of reviews or ratings, of the item. + * The width of the item. * * - * @var \OpenActive\Models\SchemaOrg\AggregateRating|string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $aggregateRating; + protected $width; /** - * A pointer to another, functionally similar product (or multiple products). + * 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\Service|\OpenActive\Models\SchemaOrg\Product|string + * @var string */ - protected $isSimilarTo; + protected $gtin; /** - * The depth of the item. + * The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers. * * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $depth; + protected $mpn; /** - * The place where the item (typically [[Product]]) was last processed and tested before importation. + * The date of production of the item, e.g. vehicle. * * - * @var string + * @var Date|null */ - protected $countryOfLastProcessing; + protected $productionDate; /** - * 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. + * An award won by or for this item. * * - * @var \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string + * @var string */ - protected $isVariantOf; + protected $award; /** - * A slogan or motto associated with the item. + * Review of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $slogan; + protected $reviews; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * The country of origin of something, including products as well as creative works such as movie and TV content. + * + * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. + * + * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $brand; + protected $countryOfOrigin; /** - * The manufacturer of the product. + * A pointer to another product (or multiple products) for which this product is an accessory or spare part. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Product|string */ - protected $manufacturer; + protected $isAccessoryOrSparePartFor; /** - * 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 category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - protected $hasMeasurement; + protected $category; /** - * A pointer to another product (or multiple products) for which this product is a consumable. + * The overall rating, based on a collection of reviews or ratings, of the item. * * - * @var \OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\AggregateRating|string */ - protected $isConsumableFor; + protected $aggregateRating; /** - * An associated logo. + * 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|\OpenActive\Models\SchemaOrg\ImageObject + * @var string */ - protected $logo; + protected $sku; /** - * 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 place where the item (typically [[Product]]) was last processed and tested before importation. * * * @var string */ - protected $gtin8; + protected $countryOfLastProcessing; /** - * 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 pointer to another, functionally similar product (or multiple products). + * + * + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + */ + protected $isSimilarTo; + + /** + * 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 + */ + protected $positiveNotes; + + /** + * A material that something is made from, e.g. leather, wool, cotton, paper. + * + * + * @var string|\OpenActive\Models\SchemaOrg\Product + */ + protected $material; + + /** + * 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 $sku; + protected $mobileUrl; /** - * Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]]. + * The height of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + */ + protected $height; + + /** + * 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 $inProductGroupWithID; + protected $hasGS1DigitalLink; /** - * The model of the product. Use with the URL of a ProductModel or a textual representation of the model identifier. The URL of the ProductModel can be from an external source. It is recommended to additionally provide strong product identifiers via the gtin8/gtin13/gtin14 and mpn properties. + * The date the item, e.g. vehicle, was purchased by the current owner. * * - * @var \OpenActive\Models\SchemaOrg\ProductModel|string + * @var Date|null */ - protected $model; + protected $purchaseDate; + + /** + * Awards won by or for this item. + * + * + * @var string + */ + protected $awards; /** * Specifies a MerchantReturnPolicy that may be applicable. @@ -416,12 +477,20 @@ public static function fieldList() { protected $hasMerchantReturnPolicy; /** - * The release date of a product or product model. This can be used to distinguish the exact variant of a product. + * 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 Date|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $releaseDate; + protected $hasMeasurement; + + /** + * 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\Models\SchemaOrg\ImageObject + */ + protected $colorSwatch; /** * 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. @@ -432,537 +501,774 @@ public static function fieldList() { protected $gtin14; /** - * The weight of the product or person. + * An associated logo. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $weight; + protected $logo; /** - * A standardized size of a product or creative work, specified either through a simple textual string (for example 'XL', '32Wx34L'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. + * The model of the product. Use with the URL of a ProductModel or a textual representation of the model identifier. The URL of the ProductModel can be from an external source. It is recommended to additionally provide strong product identifiers via the gtin8/gtin13/gtin14 and mpn properties. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * @var \OpenActive\Models\SchemaOrg\ProductModel|string */ - protected $size; + protected $model; /** - * 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 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\PropertyValue|string + * @var string */ - protected $additionalProperty; + protected $gtin12; /** - * The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details. + * A review of the item. + * + * + * @var \OpenActive\Models\SchemaOrg\Review|string + */ + protected $review; + + /** + * 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|\OpenActive\Models\SchemaOrg\ProductGroup|string + */ + protected $isVariantOf; + + /** + * An intended audience, i.e. a group for whom something was created. + * + * + * @var \OpenActive\Models\SchemaOrg\Audience|string + */ + protected $audience; + + /** + * Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]]. * * * @var string */ - protected $gtin13; + protected $inProductGroupWithID; + + /** + * 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; + + /** + * Certification information about a product, organization, service, place, or person. + * + * + * @var \OpenActive\Models\SchemaOrg\Certification|string + */ + protected $hasCertification; + + /** + * @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 string + */ + public function getProductID() + { + return $this->productID; + } + + /** + * @param string $productID + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setProductID($productID) + { + $types = [ + "string", + ]; + + $productID = self::checkTypes($productID, $types); + + $this->productID = $productID; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + */ + public function getIsRelatedTo() + { + return $this->isRelatedTo; + } + + /** + * @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 setIsRelatedTo($isRelatedTo) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", + "string", + ]; + + $isRelatedTo = self::checkTypes($isRelatedTo, $types); + + $this->isRelatedTo = $isRelatedTo; + } + + /** + * @return Date|null + */ + public function getReleaseDate() + { + return $this->releaseDate; + } + + /** + * @param Date|null $releaseDate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setReleaseDate($releaseDate) + { + $types = [ + "Date", + "null", + ]; + + $releaseDate = self::checkTypes($releaseDate, $types); + + $this->releaseDate = $releaseDate; + } + + /** + * @return 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\Grant|string + */ + public function getFunding() + { + return $this->funding; + } + + /** + * @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 setFunding($funding) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Grant", + "string", + ]; + + $funding = self::checkTypes($funding, $types); + + $this->funding = $funding; + } + + /** + * @return string + */ + public function getGtin8() + { + return $this->gtin8; + } + + /** + * @param string $gtin8 + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setGtin8($gtin8) + { + $types = [ + "string", + ]; + + $gtin8 = self::checkTypes($gtin8, $types); + + $this->gtin8 = $gtin8; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Product|string + */ + public function getIsConsumableFor() + { + return $this->isConsumableFor; + } /** - * Review of the item. - * - * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @param \OpenActive\Models\SchemaOrg\Product|string $isConsumableFor + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $reviews; + public function setIsConsumableFor($isConsumableFor) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "string", + ]; + + $isConsumableFor = self::checkTypes($isConsumableFor, $types); + + $this->isConsumableFor = $isConsumableFor; + } /** - * Indicates whether this content is family friendly. - * - * - * @var bool|null + * @return \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string */ - protected $isFamilyFriendly; + public function getHasEnergyConsumptionDetails() + { + return $this->hasEnergyConsumptionDetails; + } /** - * A pointer to another, somehow related product (or multiple products). - * - * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @param \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string $hasEnergyConsumptionDetails + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - protected $isRelatedTo; + public function setHasEnergyConsumptionDetails($hasEnergyConsumptionDetails) + { + $types = [ + "\OpenActive\Models\SchemaOrg\EnergyConsumptionDetails", + "string", + ]; + + $hasEnergyConsumptionDetails = self::checkTypes($hasEnergyConsumptionDetails, $types); + + $this->hasEnergyConsumptionDetails = $hasEnergyConsumptionDetails; + } /** - * @return \OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getIsAccessoryOrSparePartFor() + public function getManufacturer() { - return $this->isAccessoryOrSparePartFor; + return $this->manufacturer; } /** - * @param \OpenActive\Models\SchemaOrg\Product|string $isAccessoryOrSparePartFor + * @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 setIsAccessoryOrSparePartFor($isAccessoryOrSparePartFor) + public function setManufacturer($manufacturer) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $isAccessoryOrSparePartFor = self::checkTypes($isAccessoryOrSparePartFor, $types); + $manufacturer = self::checkTypes($manufacturer, $types); - $this->isAccessoryOrSparePartFor = $isAccessoryOrSparePartFor; + $this->manufacturer = $manufacturer; } /** - * @return \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHasAdultConsideration() + public function getWeight() { - return $this->hasAdultConsideration; + return $this->weight; } /** - * @param \OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration|null $hasAdultConsideration + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasAdultConsideration($hasAdultConsideration) + public function setWeight($weight) { $types = [ - "\OpenActive\Enums\SchemaOrg\AdultOrientedEnumeration", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $hasAdultConsideration = self::checkTypes($hasAdultConsideration, $types); + $weight = self::checkTypes($weight, $types); - $this->hasAdultConsideration = $hasAdultConsideration; + $this->weight = $weight; } /** * @return string */ - public function getGtin12() + public function getSlogan() { - return $this->gtin12; + return $this->slogan; } /** - * @param string $gtin12 + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin12($gtin12) + public function setSlogan($slogan) { $types = [ "string", ]; - $gtin12 = self::checkTypes($gtin12, $types); + $slogan = self::checkTypes($slogan, $types); - $this->gtin12 = $gtin12; + $this->slogan = $slogan; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\PropertyValue|string */ - public function getNsn() + public function getAdditionalProperty() { - return $this->nsn; + return $this->additionalProperty; } /** - * @param string $nsn + * @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 setNsn($nsn) + public function setAdditionalProperty($additionalProperty) { $types = [ + "\OpenActive\Models\SchemaOrg\PropertyValue", "string", ]; - $nsn = self::checkTypes($nsn, $types); + $additionalProperty = self::checkTypes($additionalProperty, $types); - $this->nsn = $nsn; + $this->additionalProperty = $additionalProperty; } /** - * @return string|\OpenActive\Models\SchemaOrg\Product + * @return string */ - public function getMaterial() + public function getNsn() { - return $this->material; + return $this->nsn; } /** - * @param string|\OpenActive\Models\SchemaOrg\Product $material + * @param string $nsn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaterial($material) + public function setNsn($nsn) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Product", ]; - $material = self::checkTypes($material, $types); + $nsn = self::checkTypes($nsn, $types); - $this->material = $material; + $this->nsn = $nsn; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string */ - public function getReview() + public function getCountryOfAssembly() { - return $this->review; + return $this->countryOfAssembly; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review + * @param string $countryOfAssembly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReview($review) + public function setCountryOfAssembly($countryOfAssembly) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $review = self::checkTypes($review, $types); + $countryOfAssembly = self::checkTypes($countryOfAssembly, $types); - $this->review = $review; + $this->countryOfAssembly = $countryOfAssembly; } /** - * @return string + * @return bool|null */ - public function getAward() + public function getIsFamilyFriendly() { - return $this->award; + return $this->isFamilyFriendly; } /** - * @param string $award + * @param bool|null $isFamilyFriendly * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAward($award) + public function setIsFamilyFriendly($isFamilyFriendly) { $types = [ - "string", + "bool", + "null", ]; - $award = self::checkTypes($award, $types); + $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); - $this->award = $award; + $this->isFamilyFriendly = $isFamilyFriendly; } /** - * @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\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - public function getCountryOfOrigin() + public function getOffers() { - return $this->countryOfOrigin; + return $this->offers; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @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 setCountryOfOrigin($countryOfOrigin) + public function setOffers($offers) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", + "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Demand", "string", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $offers = self::checkTypes($offers, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->offers = $offers; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem */ - public function getPattern() + public function getNegativeNotes() { - return $this->pattern; + return $this->negativeNotes; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $pattern + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem $negativeNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPattern($pattern) + public function setNegativeNotes($negativeNotes) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\ListItem", ]; - $pattern = self::checkTypes($pattern, $types); + $negativeNotes = self::checkTypes($negativeNotes, $types); - $this->pattern = $pattern; + $this->negativeNotes = $negativeNotes; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getCategory() + public function getKeywords() { - return $this->category; + return $this->keywords; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @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 setCategory($category) + public function setKeywords($keywords) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", ]; - $category = self::checkTypes($category, $types); + $keywords = self::checkTypes($keywords, $types); - $this->category = $category; + $this->keywords = $keywords; } /** - * @return \OpenActive\Models\SchemaOrg\Grant|string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - public function getFunding() + public function getSize() { - return $this->funding; + return $this->size; } /** - * @param \OpenActive\Models\SchemaOrg\Grant|string $funding + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\SizeSpecification|string|\OpenActive\Models\SchemaOrg\QuantitativeValue $size * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFunding($funding) + public function setSize($size) { $types = [ - "\OpenActive\Models\SchemaOrg\Grant", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\SizeSpecification", "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $funding = self::checkTypes($funding, $types); + $size = self::checkTypes($size, $types); - $this->funding = $funding; + $this->size = $size; } /** * @return string */ - public function getMpn() + public function getGtin13() { - return $this->mpn; + return $this->gtin13; } /** - * @param string $mpn + * @param string $gtin13 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMpn($mpn) + public function setGtin13($gtin13) { $types = [ "string", ]; - $mpn = self::checkTypes($mpn, $types); + $gtin13 = self::checkTypes($gtin13, $types); - $this->mpn = $mpn; + $this->gtin13 = $gtin13; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - public function getHeight() + public function getBrand() { - return $this->height; + return $this->brand; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeight($height) + public function setBrand($brand) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Brand", "string", ]; - $height = self::checkTypes($height, $types); + $brand = self::checkTypes($brand, $types); - $this->height = $height; + $this->brand = $brand; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string */ - public function getKeywords() + public function getAsin() { - return $this->keywords; + return $this->asin; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $keywords + * @param string $asin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setKeywords($keywords) + public function setAsin($asin) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $keywords = self::checkTypes($keywords, $types); + $asin = self::checkTypes($asin, $types); - $this->keywords = $keywords; + $this->asin = $asin; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getPurchaseDate() + public function getPattern() { - return $this->purchaseDate; + return $this->pattern; } /** - * @param Date|null $purchaseDate + * @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 setPurchaseDate($purchaseDate) + public function setPattern($pattern) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "string", ]; - $purchaseDate = self::checkTypes($purchaseDate, $types); + $pattern = self::checkTypes($pattern, $types); - $this->purchaseDate = $purchaseDate; + $this->pattern = $pattern; } /** - * @return \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHasEnergyConsumptionDetails() + public function getWidth() { - return $this->hasEnergyConsumptionDetails; + return $this->width; } /** - * @param \OpenActive\Models\SchemaOrg\EnergyConsumptionDetails|string $hasEnergyConsumptionDetails + * @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 setHasEnergyConsumptionDetails($hasEnergyConsumptionDetails) + public function setWidth($width) { $types = [ - "\OpenActive\Models\SchemaOrg\EnergyConsumptionDetails", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $hasEnergyConsumptionDetails = self::checkTypes($hasEnergyConsumptionDetails, $types); + $width = self::checkTypes($width, $types); - $this->hasEnergyConsumptionDetails = $hasEnergyConsumptionDetails; + $this->width = $width; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return string */ - public function getAudience() + public function getGtin() { - return $this->audience; + return $this->gtin; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param string $gtin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setGtin($gtin) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $audience = self::checkTypes($audience, $types); + $gtin = self::checkTypes($gtin, $types); - $this->audience = $audience; + $this->gtin = $gtin; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return string */ - public function getOffers() + public function getMpn() { - return $this->offers; + return $this->mpn; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param string $mpn * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setMpn($mpn) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", "string", ]; - $offers = self::checkTypes($offers, $types); + $mpn = self::checkTypes($mpn, $types); - $this->offers = $offers; + $this->mpn = $mpn; } /** @@ -990,149 +1296,131 @@ public function setProductionDate($productionDate) $this->productionDate = $productionDate; } - /** - * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null - */ - public function getItemCondition() - { - return $this->itemCondition; - } - - /** - * @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 setItemCondition($itemCondition) - { - $types = [ - "\OpenActive\Enums\SchemaOrg\OfferItemCondition", - "null", - ]; - - $itemCondition = self::checkTypes($itemCondition, $types); - - $this->itemCondition = $itemCondition; - } - /** * @return string */ - public function getAwards() + public function getAward() { - return $this->awards; + return $this->award; } /** - * @param string $awards + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAwards($awards) + public function setAward($award) { $types = [ "string", ]; - $awards = self::checkTypes($awards, $types); + $award = self::checkTypes($award, $types); - $this->awards = $awards; + $this->award = $award; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getGtin() + public function getReviews() { - return $this->gtin; + return $this->reviews; } /** - * @param string $gtin + * @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 setGtin($gtin) + public function setReviews($reviews) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $gtin = self::checkTypes($gtin, $types); + $reviews = self::checkTypes($reviews, $types); - $this->gtin = $gtin; + $this->reviews = $reviews; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getProductID() + public function getCountryOfOrigin() { - return $this->productID; + return $this->countryOfOrigin; } /** - * @param string $productID + * @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 setProductID($productID) + public function setCountryOfOrigin($countryOfOrigin) { $types = [ + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $productID = self::checkTypes($productID, $types); + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); - $this->productID = $productID; + $this->countryOfOrigin = $countryOfOrigin; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getCountryOfAssembly() + public function getIsAccessoryOrSparePartFor() { - return $this->countryOfAssembly; + return $this->isAccessoryOrSparePartFor; } /** - * @param string $countryOfAssembly + * @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 setCountryOfAssembly($countryOfAssembly) + public function setIsAccessoryOrSparePartFor($isAccessoryOrSparePartFor) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $countryOfAssembly = self::checkTypes($countryOfAssembly, $types); + $isAccessoryOrSparePartFor = self::checkTypes($isAccessoryOrSparePartFor, $types); - $this->countryOfAssembly = $countryOfAssembly; + $this->isAccessoryOrSparePartFor = $isAccessoryOrSparePartFor; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - public function getColor() + public function getCategory() { - return $this->color; + return $this->category; } /** - * @param string $color + * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setColor($color) + public function setCategory($category) { $types = [ + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Thing", "string", + "null", ]; - $color = self::checkTypes($color, $types); + $category = self::checkTypes($category, $types); - $this->color = $color; + $this->category = $category; } /** @@ -1161,55 +1449,27 @@ public function setAggregateRating($aggregateRating) } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string - */ - public function getIsSimilarTo() - { - return $this->isSimilarTo; - } - - /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isSimilarTo - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setIsSimilarTo($isSimilarTo) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", - "string", - ]; - - $isSimilarTo = self::checkTypes($isSimilarTo, $types); - - $this->isSimilarTo = $isSimilarTo; - } - - /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getDepth() + public function getSku() { - return $this->depth; + return $this->sku; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth + * @param string $sku * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDepth($depth) + public function setSku($sku) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $depth = self::checkTypes($depth, $types); + $sku = self::checkTypes($sku, $types); - $this->depth = $depth; + $this->sku = $sku; } /** @@ -1237,527 +1497,527 @@ public function setCountryOfLastProcessing($countryOfLastProcessing) } /** - * @return \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getIsVariantOf() + public function getIsSimilarTo() { - return $this->isVariantOf; + return $this->isSimilarTo; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string $isVariantOf + * @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 setIsVariantOf($isVariantOf) + public function setIsSimilarTo($isSimilarTo) { $types = [ - "\OpenActive\Models\SchemaOrg\ProductModel", - "\OpenActive\Models\SchemaOrg\ProductGroup", + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $isVariantOf = self::checkTypes($isVariantOf, $types); + $isSimilarTo = self::checkTypes($isSimilarTo, $types); - $this->isVariantOf = $isVariantOf; + $this->isSimilarTo = $isSimilarTo; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList */ - public function getSlogan() + public function getPositiveNotes() { - return $this->slogan; + return $this->positiveNotes; } /** - * @param string $slogan + * @param \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList $positiveNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSlogan($slogan) + public function setPositiveNotes($positiveNotes) { $types = [ + "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\ListItem", + "\OpenActive\Models\SchemaOrg\ItemList", ]; - $slogan = self::checkTypes($slogan, $types); + $positiveNotes = self::checkTypes($positiveNotes, $types); - $this->slogan = $slogan; + $this->positiveNotes = $positiveNotes; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return string|\OpenActive\Models\SchemaOrg\Product */ - public function getBrand() + public function getMaterial() { - return $this->brand; + return $this->material; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @param string|\OpenActive\Models\SchemaOrg\Product $material * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBrand($brand) + public function setMaterial($material) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", "string", + "\OpenActive\Models\SchemaOrg\Product", ]; - $brand = self::checkTypes($brand, $types); + $material = self::checkTypes($material, $types); - $this->brand = $brand; + $this->material = $material; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return string */ - public function getManufacturer() + public function getMobileUrl() { - return $this->manufacturer; + return $this->mobileUrl; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $manufacturer + * @param string $mobileUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setManufacturer($manufacturer) + public function setMobileUrl($mobileUrl) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $manufacturer = self::checkTypes($manufacturer, $types); + $mobileUrl = self::checkTypes($mobileUrl, $types); - $this->manufacturer = $manufacturer; + $this->mobileUrl = $mobileUrl; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getHasMeasurement() + public function getHeight() { - return $this->hasMeasurement; + return $this->height; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @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 setHasMeasurement($hasMeasurement) + public function setHeight($height) { $types = [ + "\OpenActive\Models\SchemaOrg\Distance", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $hasMeasurement = self::checkTypes($hasMeasurement, $types); + $height = self::checkTypes($height, $types); - $this->hasMeasurement = $hasMeasurement; + $this->height = $height; } /** - * @return \OpenActive\Models\SchemaOrg\Product|string + * @return string */ - public function getIsConsumableFor() + public function getHasGS1DigitalLink() { - return $this->isConsumableFor; + return $this->hasGS1DigitalLink; } /** - * @param \OpenActive\Models\SchemaOrg\Product|string $isConsumableFor + * @param string $hasGS1DigitalLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIsConsumableFor($isConsumableFor) + public function setHasGS1DigitalLink($hasGS1DigitalLink) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $isConsumableFor = self::checkTypes($isConsumableFor, $types); + $hasGS1DigitalLink = self::checkTypes($hasGS1DigitalLink, $types); - $this->isConsumableFor = $isConsumableFor; + $this->hasGS1DigitalLink = $hasGS1DigitalLink; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return Date|null */ - public function getLogo() + public function getPurchaseDate() { - return $this->logo; + return $this->purchaseDate; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @param Date|null $purchaseDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLogo($logo) + public function setPurchaseDate($purchaseDate) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\ImageObject", + "Date", + "null", ]; - $logo = self::checkTypes($logo, $types); + $purchaseDate = self::checkTypes($purchaseDate, $types); - $this->logo = $logo; + $this->purchaseDate = $purchaseDate; } /** * @return string */ - public function getGtin8() + public function getAwards() { - return $this->gtin8; + return $this->awards; } /** - * @param string $gtin8 + * @param string $awards * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGtin8($gtin8) + public function setAwards($awards) { $types = [ "string", ]; - $gtin8 = self::checkTypes($gtin8, $types); + $awards = self::checkTypes($awards, $types); - $this->gtin8 = $gtin8; + $this->awards = $awards; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string */ - public function getSku() + public function getHasMerchantReturnPolicy() { - return $this->sku; + return $this->hasMerchantReturnPolicy; } /** - * @param string $sku + * @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 setSku($sku) + public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) { $types = [ + "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", ]; - $sku = self::checkTypes($sku, $types); + $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); - $this->sku = $sku; + $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getInProductGroupWithID() + public function getHasMeasurement() { - return $this->inProductGroupWithID; + return $this->hasMeasurement; } /** - * @param string $inProductGroupWithID + * @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 setInProductGroupWithID($inProductGroupWithID) + public function setHasMeasurement($hasMeasurement) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $inProductGroupWithID = self::checkTypes($inProductGroupWithID, $types); + $hasMeasurement = self::checkTypes($hasMeasurement, $types); - $this->inProductGroupWithID = $inProductGroupWithID; + $this->hasMeasurement = $hasMeasurement; } /** - * @return \OpenActive\Models\SchemaOrg\ProductModel|string + * @return string|\OpenActive\Models\SchemaOrg\ImageObject */ - public function getModel() + public function getColorSwatch() { - return $this->model; + return $this->colorSwatch; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|string $model + * @param string|\OpenActive\Models\SchemaOrg\ImageObject $colorSwatch * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setModel($model) + public function setColorSwatch($colorSwatch) { $types = [ - "\OpenActive\Models\SchemaOrg\ProductModel", "string", + "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $model = self::checkTypes($model, $types); + $colorSwatch = self::checkTypes($colorSwatch, $types); - $this->model = $model; + $this->colorSwatch = $colorSwatch; } /** - * @return \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string + * @return string */ - public function getHasMerchantReturnPolicy() + public function getGtin14() { - return $this->hasMerchantReturnPolicy; + return $this->gtin14; } /** - * @param \OpenActive\Models\SchemaOrg\MerchantReturnPolicy|string $hasMerchantReturnPolicy + * @param string $gtin14 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMerchantReturnPolicy($hasMerchantReturnPolicy) + public function setGtin14($gtin14) { $types = [ - "\OpenActive\Models\SchemaOrg\MerchantReturnPolicy", "string", ]; - $hasMerchantReturnPolicy = self::checkTypes($hasMerchantReturnPolicy, $types); + $gtin14 = self::checkTypes($gtin14, $types); - $this->hasMerchantReturnPolicy = $hasMerchantReturnPolicy; + $this->gtin14 = $gtin14; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getReleaseDate() + public function getLogo() { - return $this->releaseDate; + return $this->logo; } /** - * @param Date|null $releaseDate + * @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 setReleaseDate($releaseDate) + public function setLogo($logo) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\ImageObject", + "string", ]; - $releaseDate = self::checkTypes($releaseDate, $types); + $logo = self::checkTypes($logo, $types); - $this->releaseDate = $releaseDate; + $this->logo = $logo; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ProductModel|string */ - public function getGtin14() + public function getModel() { - return $this->gtin14; + return $this->model; } /** - * @param string $gtin14 + * @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 setGtin14($gtin14) + public function setModel($model) { $types = [ + "\OpenActive\Models\SchemaOrg\ProductModel", "string", ]; - $gtin14 = self::checkTypes($gtin14, $types); + $model = self::checkTypes($model, $types); - $this->gtin14 = $gtin14; + $this->model = $model; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getWeight() + public function getGtin12() { - return $this->weight; + return $this->gtin12; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weight + * @param string $gtin12 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWeight($weight) + public function setGtin12($gtin12) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $weight = self::checkTypes($weight, $types); + $gtin12 = self::checkTypes($gtin12, $types); - $this->weight = $weight; + $this->gtin12 = $gtin12; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getSize() + public function getReview() { - return $this->size; + return $this->review; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|string|\OpenActive\Models\SchemaOrg\SizeSpecification $size + * @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 setSize($size) + public function setReview($review) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\Review", "string", - "\OpenActive\Models\SchemaOrg\SizeSpecification", ]; - $size = self::checkTypes($size, $types); + $review = self::checkTypes($review, $types); - $this->size = $size; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string */ - public function getAdditionalProperty() + public function getIsVariantOf() { - return $this->additionalProperty; + return $this->isVariantOf; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @param \OpenActive\Models\SchemaOrg\ProductModel|\OpenActive\Models\SchemaOrg\ProductGroup|string $isVariantOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalProperty($additionalProperty) + public function setIsVariantOf($isVariantOf) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\ProductModel", + "\OpenActive\Models\SchemaOrg\ProductGroup", "string", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $isVariantOf = self::checkTypes($isVariantOf, $types); - $this->additionalProperty = $additionalProperty; + $this->isVariantOf = $isVariantOf; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getGtin13() + public function getAudience() { - return $this->gtin13; + return $this->audience; } /** - * @param string $gtin13 + * @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 setGtin13($gtin13) + public function setAudience($audience) { $types = [ + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $gtin13 = self::checkTypes($gtin13, $types); + $audience = self::checkTypes($audience, $types); - $this->gtin13 = $gtin13; + $this->audience = $audience; } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return string */ - public function getReviews() + public function getInProductGroupWithID() { - return $this->reviews; + return $this->inProductGroupWithID; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $reviews + * @param string $inProductGroupWithID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviews($reviews) + public function setInProductGroupWithID($inProductGroupWithID) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $reviews = self::checkTypes($reviews, $types); + $inProductGroupWithID = self::checkTypes($inProductGroupWithID, $types); - $this->reviews = $reviews; + $this->inProductGroupWithID = $inProductGroupWithID; } /** - * @return bool|null + * @return \OpenActive\Enums\SchemaOrg\OfferItemCondition|null */ - public function getIsFamilyFriendly() + public function getItemCondition() { - return $this->isFamilyFriendly; + return $this->itemCondition; } /** - * @param bool|null $isFamilyFriendly + * @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 setIsFamilyFriendly($isFamilyFriendly) + public function setItemCondition($itemCondition) { $types = [ - "bool", + "\OpenActive\Enums\SchemaOrg\OfferItemCondition", "null", ]; - $isFamilyFriendly = self::checkTypes($isFamilyFriendly, $types); + $itemCondition = self::checkTypes($itemCondition, $types); - $this->isFamilyFriendly = $isFamilyFriendly; + $this->itemCondition = $itemCondition; } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Certification|string */ - public function getIsRelatedTo() + public function getHasCertification() { - return $this->isRelatedTo; + return $this->hasCertification; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo + * @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 setIsRelatedTo($isRelatedTo) + public function setHasCertification($hasCertification) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Certification", "string", ]; - $isRelatedTo = self::checkTypes($isRelatedTo, $types); + $hasCertification = self::checkTypes($hasCertification, $types); - $this->isRelatedTo = $isRelatedTo; + $this->hasCertification = $hasCertification; } } diff --git a/src/Models/SchemaOrg/ProductGroup.php b/src/Models/SchemaOrg/ProductGroup.php index a33132b4..81e5dd6e 100644 --- a/src/Models/SchemaOrg/ProductGroup.php +++ b/src/Models/SchemaOrg/ProductGroup.php @@ -17,22 +17,14 @@ public static function getType() public static function fieldList() { $fields = [ - "hasVariant" => "hasVariant", "productGroupID" => "productGroupID", "variesBy" => "variesBy", + "hasVariant" => "hasVariant", ]; return array_merge(parent::fieldList(), $fields); } - /** - * Indicates a [[Product]] that is a member of this [[ProductGroup]] (or [[ProductModel]]). - * - * - * @var \OpenActive\Models\SchemaOrg\Product|string - */ - protected $hasVariant; - /** * Indicates a textual identifier for a ProductGroup. * @@ -45,82 +37,90 @@ public static function fieldList() { * Indicates the property or properties by which the variants in a [[ProductGroup]] vary, e.g. their size, color etc. Schema.org properties can be referenced by their short name e.g. "color"; terms defined elsewhere can be referenced with their URIs. * * - * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string */ protected $variesBy; /** - * @return \OpenActive\Models\SchemaOrg\Product|string + * Indicates a [[Product]] that is a member of this [[ProductGroup]] (or [[ProductModel]]). + * + * + * @var \OpenActive\Models\SchemaOrg\Product|string */ - public function getHasVariant() + protected $hasVariant; + + /** + * @return string + */ + public function getProductGroupID() { - return $this->hasVariant; + return $this->productGroupID; } /** - * @param \OpenActive\Models\SchemaOrg\Product|string $hasVariant + * @param string $productGroupID * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasVariant($hasVariant) + public function setProductGroupID($productGroupID) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", "string", ]; - $hasVariant = self::checkTypes($hasVariant, $types); + $productGroupID = self::checkTypes($productGroupID, $types); - $this->hasVariant = $hasVariant; + $this->productGroupID = $productGroupID; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string */ - public function getProductGroupID() + public function getVariesBy() { - return $this->productGroupID; + return $this->variesBy; } /** - * @param string $productGroupID + * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $variesBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductGroupID($productGroupID) + public function setVariesBy($variesBy) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", ]; - $productGroupID = self::checkTypes($productGroupID, $types); + $variesBy = self::checkTypes($variesBy, $types); - $this->productGroupID = $productGroupID; + $this->variesBy = $variesBy; } /** - * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm + * @return \OpenActive\Models\SchemaOrg\Product|string */ - public function getVariesBy() + public function getHasVariant() { - return $this->variesBy; + return $this->hasVariant; } /** - * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm $variesBy + * @param \OpenActive\Models\SchemaOrg\Product|string $hasVariant * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVariesBy($variesBy) + public function setHasVariant($hasVariant) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", "string", - "\OpenActive\Models\SchemaOrg\DefinedTerm", ]; - $variesBy = self::checkTypes($variesBy, $types); + $hasVariant = self::checkTypes($hasVariant, $types); - $this->variesBy = $variesBy; + $this->hasVariant = $hasVariant; } } diff --git a/src/Models/SchemaOrg/ProductModel.php b/src/Models/SchemaOrg/ProductModel.php index edd471d9..b8e95aa0 100644 --- a/src/Models/SchemaOrg/ProductModel.php +++ b/src/Models/SchemaOrg/ProductModel.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "successorOf" => "successorOf", "predecessorOf" => "predecessorOf", + "successorOf" => "successorOf", "isVariantOf" => "isVariantOf", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * A pointer from a newer variant of a product to its previous, often discontinued predecessor. + * A pointer from a previous, often discontinued variant of the product to its newer variant. * * * @var \OpenActive\Models\SchemaOrg\ProductModel|string */ - protected $successorOf; + protected $predecessorOf; /** - * A pointer from a previous, often discontinued variant of the product to its newer variant. + * A pointer from a newer variant of a product to its previous, often discontinued predecessor. * * * @var \OpenActive\Models\SchemaOrg\ProductModel|string */ - protected $predecessorOf; + protected $successorOf; /** * 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. @@ -52,51 +52,51 @@ public static function fieldList() { /** * @return \OpenActive\Models\SchemaOrg\ProductModel|string */ - public function getSuccessorOf() + public function getPredecessorOf() { - return $this->successorOf; + return $this->predecessorOf; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|string $successorOf + * @param \OpenActive\Models\SchemaOrg\ProductModel|string $predecessorOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuccessorOf($successorOf) + public function setPredecessorOf($predecessorOf) { $types = [ "\OpenActive\Models\SchemaOrg\ProductModel", "string", ]; - $successorOf = self::checkTypes($successorOf, $types); + $predecessorOf = self::checkTypes($predecessorOf, $types); - $this->successorOf = $successorOf; + $this->predecessorOf = $predecessorOf; } /** * @return \OpenActive\Models\SchemaOrg\ProductModel|string */ - public function getPredecessorOf() + public function getSuccessorOf() { - return $this->predecessorOf; + return $this->successorOf; } /** - * @param \OpenActive\Models\SchemaOrg\ProductModel|string $predecessorOf + * @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 setPredecessorOf($predecessorOf) + public function setSuccessorOf($successorOf) { $types = [ "\OpenActive\Models\SchemaOrg\ProductModel", "string", ]; - $predecessorOf = self::checkTypes($predecessorOf, $types); + $successorOf = self::checkTypes($successorOf, $types); - $this->predecessorOf = $predecessorOf; + $this->successorOf = $successorOf; } /** diff --git a/src/Models/SchemaOrg/ProgramMembership.php b/src/Models/SchemaOrg/ProgramMembership.php index c73bd560..ffedc330 100644 --- a/src/Models/SchemaOrg/ProgramMembership.php +++ b/src/Models/SchemaOrg/ProgramMembership.php @@ -17,205 +17,205 @@ public static function getType() public static function fieldList() { $fields = [ - "membershipPointsEarned" => "membershipPointsEarned", - "member" => "member", - "membershipNumber" => "membershipNumber", "hostingOrganization" => "hostingOrganization", - "programName" => "programName", "members" => "members", + "programName" => "programName", + "membershipPointsEarned" => "membershipPointsEarned", + "membershipNumber" => "membershipNumber", + "member" => "member", ]; 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, etc.) the membership is made with. * * - * @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. + * A member of this organization. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $member; + protected $members; /** - * A unique identifier for the membership. + * The program providing the membership. * * * @var string */ - protected $membershipNumber; + protected $programName; /** - * 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. + * A unique identifier for the membership. * * * @var string */ - protected $programName; + protected $membershipNumber; /** - * A member of this organization. + * A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. * * * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $members; + protected $member; /** - * @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; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getMember() + public function getMembers() { - return $this->member; + return $this->members; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $member + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $members * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMember($member) + public function setMembers($members) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $member = self::checkTypes($member, $types); + $members = self::checkTypes($members, $types); - $this->member = $member; + $this->members = $members; } /** * @return string */ - public function getMembershipNumber() + public function getProgramName() { - return $this->membershipNumber; + return $this->programName; } /** - * @param string $membershipNumber + * @param string $programName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMembershipNumber($membershipNumber) + public function setProgramName($programName) { $types = [ "string", ]; - $membershipNumber = self::checkTypes($membershipNumber, $types); + $programName = self::checkTypes($programName, $types); - $this->membershipNumber = $membershipNumber; + $this->programName = $programName; } /** - * @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 */ - public function getProgramName() + public function getMembershipNumber() { - return $this->programName; + return $this->membershipNumber; } /** - * @param string $programName + * @param string $membershipNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgramName($programName) + public function setMembershipNumber($membershipNumber) { $types = [ "string", ]; - $programName = self::checkTypes($programName, $types); + $membershipNumber = self::checkTypes($membershipNumber, $types); - $this->programName = $programName; + $this->membershipNumber = $membershipNumber; } /** * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getMembers() + public function getMember() { - return $this->members; + return $this->member; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $members + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $member * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMembers($members) + public function setMember($member) { $types = [ "\OpenActive\Models\SchemaOrg\Person", @@ -223,9 +223,9 @@ public function setMembers($members) "string", ]; - $members = self::checkTypes($members, $types); + $member = self::checkTypes($member, $types); - $this->members = $members; + $this->member = $member; } } diff --git a/src/Models/SchemaOrg/PronounceableText.php b/src/Models/SchemaOrg/PronounceableText.php index 15e10a48..9f373246 100644 --- a/src/Models/SchemaOrg/PronounceableText.php +++ b/src/Models/SchemaOrg/PronounceableText.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "phoneticText" => "phoneticText", "speechToTextMarkup" => "speechToTextMarkup", + "phoneticText" => "phoneticText", "textValue" => "textValue", "inLanguage" => "inLanguage", ]; @@ -27,20 +27,20 @@ public static function fieldList() { } /** - * Representation of a text [[textValue]] using the specified [[speechToTextMarkup]]. For example the city name of Houston in IPA: /ˈhjuːstən/. + * Form of markup used. eg. [SSML](https://www.w3.org/TR/speech-synthesis11) or [IPA](https://www.wikidata.org/wiki/Property:P898). * * * @var string */ - protected $phoneticText; + protected $speechToTextMarkup; /** - * Form of markup used. eg. [SSML](https://www.w3.org/TR/speech-synthesis11) or [IPA](https://www.wikidata.org/wiki/Property:P898). + * Representation of a text [[textValue]] using the specified [[speechToTextMarkup]]. For example the city name of Houston in IPA: /ˈhjuːstən/. * * * @var string */ - protected $speechToTextMarkup; + protected $phoneticText; /** * Text value being annotated. @@ -61,49 +61,49 @@ public static function fieldList() { /** * @return string */ - public function getPhoneticText() + public function getSpeechToTextMarkup() { - return $this->phoneticText; + return $this->speechToTextMarkup; } /** - * @param string $phoneticText + * @param string $speechToTextMarkup * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPhoneticText($phoneticText) + public function setSpeechToTextMarkup($speechToTextMarkup) { $types = [ "string", ]; - $phoneticText = self::checkTypes($phoneticText, $types); + $speechToTextMarkup = self::checkTypes($speechToTextMarkup, $types); - $this->phoneticText = $phoneticText; + $this->speechToTextMarkup = $speechToTextMarkup; } /** * @return string */ - public function getSpeechToTextMarkup() + public function getPhoneticText() { - return $this->speechToTextMarkup; + return $this->phoneticText; } /** - * @param string $speechToTextMarkup + * @param string $phoneticText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpeechToTextMarkup($speechToTextMarkup) + public function setPhoneticText($phoneticText) { $types = [ "string", ]; - $speechToTextMarkup = self::checkTypes($speechToTextMarkup, $types); + $phoneticText = self::checkTypes($phoneticText, $types); - $this->speechToTextMarkup = $speechToTextMarkup; + $this->phoneticText = $phoneticText; } /** diff --git a/src/Models/SchemaOrg/Property.php b/src/Models/SchemaOrg/Property.php index bdc35f9f..671f97c9 100644 --- a/src/Models/SchemaOrg/Property.php +++ b/src/Models/SchemaOrg/Property.php @@ -17,149 +17,149 @@ public static function getType() public static function fieldList() { $fields = [ - "domainIncludes" => "domainIncludes", "supersededBy" => "supersededBy", - "rangeIncludes" => "rangeIncludes", "inverseOf" => "inverseOf", + "domainIncludes" => "domainIncludes", + "rangeIncludes" => "rangeIncludes", ]; return array_merge(parent::fieldList(), $fields); } /** - * Relates a property to a class that is (one of) the type(s) the property is expected to be used on. + * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. * * - * @var \OpenActive\Models\SchemaOrg\Class|string + * @var \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null */ - protected $domainIncludes; + protected $supersededBy; /** - * Relates a term (i.e. a property, class or enumeration) to one that supersedes it. + * Relates a property to a property that is its inverse. Inverse properties relate the same pairs of items to each other, but in reversed direction. For example, the 'alumni' and 'alumniOf' properties are inverseOf each other. Some properties don't have explicit inverses; in these situations RDFa and JSON-LD syntax for reverse properties can be used. * * - * @var \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @var string|\OpenActive\Enums\PropertyEnumeration|null */ - protected $supersededBy; + protected $inverseOf; /** - * Relates a property to a class that constitutes (one of) the expected type(s) for values of the property. + * Relates a property to a class that is (one of) the type(s) the property is expected to be used on. * * * @var \OpenActive\Models\SchemaOrg\Class|string */ - protected $rangeIncludes; + protected $domainIncludes; /** - * Relates a property to a property that is its inverse. Inverse properties relate the same pairs of items to each other, but in reversed direction. For example, the 'alumni' and 'alumniOf' properties are inverseOf each other. Some properties don't have explicit inverses; in these situations RDFa and JSON-LD syntax for reverse properties can be used. + * Relates a property to a class that constitutes (one of) the expected type(s) for values of the property. * * - * @var string|\OpenActive\Enums\PropertyEnumeration|null + * @var \OpenActive\Models\SchemaOrg\Class|string */ - protected $inverseOf; + protected $rangeIncludes; /** - * @return \OpenActive\Models\SchemaOrg\Class|string + * @return \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null */ - public function getDomainIncludes() + public function getSupersededBy() { - return $this->domainIncludes; + return $this->supersededBy; } /** - * @param \OpenActive\Models\SchemaOrg\Class|string $domainIncludes + * @param \OpenActive\Models\SchemaOrg\Class|\OpenActive\Enums\PropertyEnumeration|\OpenActive\Models\SchemaOrg\Enumeration|string|null $supersededBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDomainIncludes($domainIncludes) + public function setSupersededBy($supersededBy) { $types = [ "\OpenActive\Models\SchemaOrg\Class", + "\OpenActive\Enums\PropertyEnumeration", + "\OpenActive\Models\SchemaOrg\Enumeration", "string", + "null", ]; - $domainIncludes = self::checkTypes($domainIncludes, $types); + $supersededBy = self::checkTypes($supersededBy, $types); - $this->domainIncludes = $domainIncludes; + $this->supersededBy = $supersededBy; } /** - * @return \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null + * @return string|\OpenActive\Enums\PropertyEnumeration|null */ - public function getSupersededBy() + public function getInverseOf() { - return $this->supersededBy; + return $this->inverseOf; } /** - * @param \OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Models\SchemaOrg\Class|string|\OpenActive\Enums\PropertyEnumeration|null $supersededBy + * @param string|\OpenActive\Enums\PropertyEnumeration|null $inverseOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupersededBy($supersededBy) + public function setInverseOf($inverseOf) { $types = [ - "\OpenActive\Models\SchemaOrg\Enumeration", - "\OpenActive\Models\SchemaOrg\Class", "string", "\OpenActive\Enums\PropertyEnumeration", "null", ]; - $supersededBy = self::checkTypes($supersededBy, $types); + $inverseOf = self::checkTypes($inverseOf, $types); - $this->supersededBy = $supersededBy; + $this->inverseOf = $inverseOf; } /** * @return \OpenActive\Models\SchemaOrg\Class|string */ - public function getRangeIncludes() + public function getDomainIncludes() { - return $this->rangeIncludes; + return $this->domainIncludes; } /** - * @param \OpenActive\Models\SchemaOrg\Class|string $rangeIncludes + * @param \OpenActive\Models\SchemaOrg\Class|string $domainIncludes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRangeIncludes($rangeIncludes) + public function setDomainIncludes($domainIncludes) { $types = [ "\OpenActive\Models\SchemaOrg\Class", "string", ]; - $rangeIncludes = self::checkTypes($rangeIncludes, $types); + $domainIncludes = self::checkTypes($domainIncludes, $types); - $this->rangeIncludes = $rangeIncludes; + $this->domainIncludes = $domainIncludes; } /** - * @return string|\OpenActive\Enums\PropertyEnumeration|null + * @return \OpenActive\Models\SchemaOrg\Class|string */ - public function getInverseOf() + public function getRangeIncludes() { - return $this->inverseOf; + return $this->rangeIncludes; } /** - * @param string|\OpenActive\Enums\PropertyEnumeration|null $inverseOf + * @param \OpenActive\Models\SchemaOrg\Class|string $rangeIncludes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInverseOf($inverseOf) + public function setRangeIncludes($rangeIncludes) { $types = [ + "\OpenActive\Models\SchemaOrg\Class", "string", - "\OpenActive\Enums\PropertyEnumeration", - "null", ]; - $inverseOf = self::checkTypes($inverseOf, $types); + $rangeIncludes = self::checkTypes($rangeIncludes, $types); - $this->inverseOf = $inverseOf; + $this->rangeIncludes = $rangeIncludes; } } diff --git a/src/Models/SchemaOrg/PropertyValue.php b/src/Models/SchemaOrg/PropertyValue.php index f8056176..247106ae 100644 --- a/src/Models/SchemaOrg/PropertyValue.php +++ b/src/Models/SchemaOrg/PropertyValue.php @@ -17,30 +17,37 @@ public static function getType() public static function fieldList() { $fields = [ - "valueReference" => "valueReference", + "measurementTechnique" => "measurementTechnique", "propertyID" => "propertyID", + "measurementMethod" => "measurementMethod", "maxValue" => "maxValue", - "unitText" => "unitText", - "measurementTechnique" => "measurementTechnique", + "unitCode" => "unitCode", + "valueReference" => "valueReference", "minValue" => "minValue", + "unitText" => "unitText", "value" => "value", - "unitCode" => "unitCode", ]; 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 technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable. + * + * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery. + * + * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". + * + * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]]. * * - * @var \OpenActive\Models\SchemaOrg\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 string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - protected $valueReference; + protected $measurementTechnique; /** * 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. * @@ -49,6 +56,14 @@ public static function fieldList() { */ protected $propertyID; + /** + * A subproperty of [[measurementTechnique]] that can be used for specifying specific methods, in particular via [[MeasurementMethodEnum]]. + * + * + * @var string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null + */ + protected $measurementMethod; + /** * The upper value of some characteristic or property. * @@ -58,29 +73,20 @@ public static function fieldList() { protected $maxValue; /** - * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for - * unitCode. + * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. * * * @var string */ - protected $unitText; + protected $unitCode; /** - * A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), - * corresponding to the method used for measuring the corresponding variable(s) (described using [[variableMeasured]]). This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but rather as a high level summary for dataset discovery. - * - * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". - * - * If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". - * - * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. - * + * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\QuantitativeValue|null */ - protected $measurementTechnique; + protected $valueReference; /** * The lower value of some characteristic or property. @@ -91,51 +97,47 @@ public static function fieldList() { protected $minValue; /** - * 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', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * - * @var string + * @var Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null */ - protected $unitCode; + protected $value; /** - * @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 string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null */ - public function getValueReference() + public function getMeasurementTechnique() { - return $this->valueReference; + return $this->measurementTechnique; } /** - * @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 string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueReference($valueReference) + public function setMeasurementTechnique($measurementTechnique) { $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", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", "null", ]; - $valueReference = self::checkTypes($valueReference, $types); + $measurementTechnique = self::checkTypes($measurementTechnique, $types); - $this->valueReference = $valueReference; + $this->measurementTechnique = $measurementTechnique; } /** @@ -162,6 +164,33 @@ public function setPropertyID($propertyID) $this->propertyID = $propertyID; } + /** + * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null + */ + public function getMeasurementMethod() + { + return $this->measurementMethod; + } + + /** + * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementMethod($measurementMethod) + { + $types = [ + "string", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "null", + ]; + + $measurementMethod = self::checkTypes($measurementMethod, $types); + + $this->measurementMethod = $measurementMethod; + } + /** * @return Number|null */ @@ -190,49 +219,57 @@ public function setMaxValue($maxValue) /** * @return string */ - public function getUnitText() + public function getUnitCode() { - return $this->unitText; + return $this->unitCode; } /** - * @param string $unitText + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setUnitCode($unitCode) { $types = [ "string", ]; - $unitText = self::checkTypes($unitText, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->unitText = $unitText; + $this->unitCode = $unitCode; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\QuantitativeValue|null */ - public function getMeasurementTechnique() + public function getValueReference() { - return $this->measurementTechnique; + return $this->valueReference; } /** - * @param string $measurementTechnique + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\QuantitativeValue|null $valueReference * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMeasurementTechnique($measurementTechnique) + public function setValueReference($valueReference) { $types = [ + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\StructuredValue", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\Enumeration", + "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "null", ]; - $measurementTechnique = self::checkTypes($measurementTechnique, $types); + $valueReference = self::checkTypes($valueReference, $types); - $this->measurementTechnique = $measurementTechnique; + $this->valueReference = $valueReference; } /** @@ -261,55 +298,55 @@ public function setMinValue($minValue) } /** - * @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 Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null */ - public function getUnitCode() + public function getValue() { - return $this->unitCode; + return $this->value; } /** - * @param string $unitCode + * @param Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null $value * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitCode($unitCode) + public function setValue($value) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\StructuredValue", + "bool", "string", + "null", ]; - $unitCode = self::checkTypes($unitCode, $types); + $value = self::checkTypes($value, $types); - $this->unitCode = $unitCode; + $this->value = $value; } } diff --git a/src/Models/SchemaOrg/PropertyValueSpecification.php b/src/Models/SchemaOrg/PropertyValueSpecification.php index e316e8b1..62aebb42 100644 --- a/src/Models/SchemaOrg/PropertyValueSpecification.php +++ b/src/Models/SchemaOrg/PropertyValueSpecification.php @@ -17,30 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "valueMaxLength" => "valueMaxLength", "readonlyValue" => "readonlyValue", - "maxValue" => "maxValue", + "valuePattern" => "valuePattern", "valueName" => "valueName", + "multipleValues" => "multipleValues", + "maxValue" => "maxValue", "defaultValue" => "defaultValue", "valueMinLength" => "valueMinLength", - "valueRequired" => "valueRequired", "minValue" => "minValue", - "valuePattern" => "valuePattern", "stepValue" => "stepValue", - "multipleValues" => "multipleValues", + "valueRequired" => "valueRequired", + "valueMaxLength" => "valueMaxLength", ]; return array_merge(parent::fieldList(), $fields); } - /** - * Specifies the allowed range for number of characters in a literal value. - * - * - * @var Number|null - */ - protected $valueMaxLength; - /** * Whether or not a property is mutable. Default is false. Specifying this for a property that also has a value makes it act similar to a "hidden" input in an HTML form. * @@ -50,12 +42,12 @@ public static function fieldList() { protected $readonlyValue; /** - * The upper value of some characteristic or property. + * Specifies a regular expression for testing literal values according to the HTML spec. * * - * @var Number|null + * @var string */ - protected $maxValue; + protected $valuePattern; /** * Indicates the name of the PropertyValueSpecification to be used in URL templates and form encoding in a manner analogous to HTML's `input@name`. @@ -66,44 +58,44 @@ public static function fieldList() { protected $valueName; /** - * 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 multiple values are allowed for the property. Default is false. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var bool|null */ - protected $defaultValue; + protected $multipleValues; /** - * Specifies the minimum allowed range for number of characters in a literal value. + * The upper value of some characteristic or property. * * * @var Number|null */ - protected $valueMinLength; + protected $maxValue; /** - * Whether the property must be filled in to complete the action. Default is false. + * The 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 bool|null + * @var string|\OpenActive\Models\SchemaOrg\Thing */ - protected $valueRequired; + protected $defaultValue; /** - * 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. + * The lower value of some characteristic or property. * * - * @var string + * @var Number|null */ - protected $valuePattern; + protected $minValue; /** * The stepValue attribute indicates the granularity that is expected (and required) of the value in a PropertyValueSpecification. @@ -114,37 +106,20 @@ public static function fieldList() { protected $stepValue; /** - * 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; - - /** - * @return Number|null - */ - public function getValueMaxLength() - { - return $this->valueMaxLength; - } + protected $valueRequired; /** - * @param Number|null $valueMaxLength - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * Specifies the allowed range for number of characters in a literal value. + * + * + * @var Number|null */ - public function setValueMaxLength($valueMaxLength) - { - $types = [ - "Number", - "null", - ]; - - $valueMaxLength = self::checkTypes($valueMaxLength, $types); - - $this->valueMaxLength = $valueMaxLength; - } + protected $valueMaxLength; /** * @return bool|null @@ -172,28 +147,27 @@ public function setReadonlyValue($readonlyValue) } /** - * @return Number|null + * @return string */ - public function getMaxValue() + public function getValuePattern() { - return $this->maxValue; + return $this->valuePattern; } /** - * @param Number|null $maxValue + * @param string $valuePattern * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMaxValue($maxValue) + public function setValuePattern($valuePattern) { $types = [ - "Number", - "null", + "string", ]; - $maxValue = self::checkTypes($maxValue, $types); + $valuePattern = self::checkTypes($valuePattern, $types); - $this->maxValue = $maxValue; + $this->valuePattern = $valuePattern; } /** @@ -221,127 +195,128 @@ public function setValueName($valueName) } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return bool|null */ - public function getDefaultValue() + public function getMultipleValues() { - return $this->defaultValue; + return $this->multipleValues; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $defaultValue + * @param bool|null $multipleValues * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDefaultValue($defaultValue) + public function setMultipleValues($multipleValues) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\Thing", + "bool", + "null", ]; - $defaultValue = self::checkTypes($defaultValue, $types); + $multipleValues = self::checkTypes($multipleValues, $types); - $this->defaultValue = $defaultValue; + $this->multipleValues = $multipleValues; } /** * @return Number|null */ - public function getValueMinLength() + public function getMaxValue() { - return $this->valueMinLength; + return $this->maxValue; } /** - * @param Number|null $valueMinLength + * @param Number|null $maxValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValueMinLength($valueMinLength) + public function setMaxValue($maxValue) { $types = [ "Number", "null", ]; - $valueMinLength = self::checkTypes($valueMinLength, $types); + $maxValue = self::checkTypes($maxValue, $types); - $this->valueMinLength = $valueMinLength; + $this->maxValue = $maxValue; } /** - * @return bool|null + * @return string|\OpenActive\Models\SchemaOrg\Thing */ - public function getValueRequired() + public function getDefaultValue() { - return $this->valueRequired; + return $this->defaultValue; } /** - * @param bool|null $valueRequired + * @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 setValueRequired($valueRequired) + public function setDefaultValue($defaultValue) { $types = [ - "bool", - "null", + "string", + "\OpenActive\Models\SchemaOrg\Thing", ]; - $valueRequired = self::checkTypes($valueRequired, $types); + $defaultValue = self::checkTypes($defaultValue, $types); - $this->valueRequired = $valueRequired; + $this->defaultValue = $defaultValue; } /** * @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 + * @return Number|null */ - public function getValuePattern() + public function getMinValue() { - return $this->valuePattern; + return $this->minValue; } /** - * @param string $valuePattern + * @param Number|null $minValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValuePattern($valuePattern) + public function setMinValue($minValue) { $types = [ - "string", + "Number", + "null", ]; - $valuePattern = self::checkTypes($valuePattern, $types); + $minValue = self::checkTypes($minValue, $types); - $this->valuePattern = $valuePattern; + $this->minValue = $minValue; } /** @@ -372,26 +347,51 @@ public function setStepValue($stepValue) /** * @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; + } + + /** + * @return Number|null + */ + public function getValueMaxLength() + { + return $this->valueMaxLength; + } + + /** + * @param Number|null $valueMaxLength + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setValueMaxLength($valueMaxLength) + { + $types = [ + "Number", + "null", + ]; + + $valueMaxLength = self::checkTypes($valueMaxLength, $types); + + $this->valueMaxLength = $valueMaxLength; } } 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/PublicationIssue.php b/src/Models/SchemaOrg/PublicationIssue.php index e2bb7f23..a7f6a552 100644 --- a/src/Models/SchemaOrg/PublicationIssue.php +++ b/src/Models/SchemaOrg/PublicationIssue.php @@ -17,87 +17,85 @@ public static function getType() public static function fieldList() { $fields = [ + "pagination" => "pagination", + "issueNumber" => "issueNumber", "pageStart" => "pageStart", "pageEnd" => "pageEnd", - "issueNumber" => "issueNumber", - "pagination" => "pagination", ]; return array_merge(parent::fieldList(), $fields); } /** - * The page on which the work starts; for example "135" or "xiii". + * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". * * - * @var string|int|null + * @var string */ - protected $pageStart; + protected $pagination; /** - * The page on which the work ends; for example "138" or "xvi". + * Identifies the issue of publication; for example, "iii" or "2". * * * @var string|int|null */ - protected $pageEnd; + protected $issueNumber; /** - * 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". + * The page on which the work ends; for example "138" or "xvi". * * - * @var string + * @var string|int|null */ - protected $pagination; + protected $pageEnd; /** - * @return string|int|null + * @return string */ - public function getPageStart() + public function getPagination() { - return $this->pageStart; + return $this->pagination; } /** - * @param string|int|null $pageStart + * @param string $pagination * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageStart($pageStart) + public function setPagination($pagination) { $types = [ "string", - "int", - "null", ]; - $pageStart = self::checkTypes($pageStart, $types); + $pagination = self::checkTypes($pagination, $types); - $this->pageStart = $pageStart; + $this->pagination = $pagination; } /** * @return string|int|null */ - public function getPageEnd() + public function getIssueNumber() { - return $this->pageEnd; + return $this->issueNumber; } /** - * @param string|int|null $pageEnd + * @param string|int|null $issueNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageEnd($pageEnd) + public function setIssueNumber($issueNumber) { $types = [ "string", @@ -105,25 +103,25 @@ public function setPageEnd($pageEnd) "null", ]; - $pageEnd = self::checkTypes($pageEnd, $types); + $issueNumber = self::checkTypes($issueNumber, $types); - $this->pageEnd = $pageEnd; + $this->issueNumber = $issueNumber; } /** * @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,33 +129,35 @@ public function setIssueNumber($issueNumber) "null", ]; - $issueNumber = self::checkTypes($issueNumber, $types); + $pageStart = self::checkTypes($pageStart, $types); - $this->issueNumber = $issueNumber; + $this->pageStart = $pageStart; } /** - * @return string + * @return string|int|null */ - public function getPagination() + public function getPageEnd() { - return $this->pagination; + return $this->pageEnd; } /** - * @param string $pagination + * @param string|int|null $pageEnd * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPagination($pagination) + public function setPageEnd($pageEnd) { $types = [ "string", + "int", + "null", ]; - $pagination = self::checkTypes($pagination, $types); + $pageEnd = self::checkTypes($pageEnd, $types); - $this->pagination = $pagination; + $this->pageEnd = $pageEnd; } } diff --git a/src/Models/SchemaOrg/PublicationVolume.php b/src/Models/SchemaOrg/PublicationVolume.php index 77d18ace..8d68a73f 100644 --- a/src/Models/SchemaOrg/PublicationVolume.php +++ b/src/Models/SchemaOrg/PublicationVolume.php @@ -17,87 +17,85 @@ public static function getType() public static function fieldList() { $fields = [ + "pagination" => "pagination", + "volumeNumber" => "volumeNumber", "pageStart" => "pageStart", "pageEnd" => "pageEnd", - "volumeNumber" => "volumeNumber", - "pagination" => "pagination", ]; return array_merge(parent::fieldList(), $fields); } /** - * The page on which the work starts; for example "135" or "xiii". + * Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49". * * - * @var string|int|null + * @var string */ - protected $pageStart; + protected $pagination; /** - * The page on which the work ends; for example "138" or "xvi". + * Identifies the volume of publication or multi-part work; for example, "iii" or "2". * * * @var string|int|null */ - protected $pageEnd; + protected $volumeNumber; /** - * 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". + * The page on which the work ends; for example "138" or "xvi". * * - * @var string + * @var string|int|null */ - protected $pagination; + protected $pageEnd; /** - * @return string|int|null + * @return string */ - public function getPageStart() + public function getPagination() { - return $this->pageStart; + return $this->pagination; } /** - * @param string|int|null $pageStart + * @param string $pagination * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageStart($pageStart) + public function setPagination($pagination) { $types = [ "string", - "int", - "null", ]; - $pageStart = self::checkTypes($pageStart, $types); + $pagination = self::checkTypes($pagination, $types); - $this->pageStart = $pageStart; + $this->pagination = $pagination; } /** * @return string|int|null */ - public function getPageEnd() + public function getVolumeNumber() { - return $this->pageEnd; + return $this->volumeNumber; } /** - * @param string|int|null $pageEnd + * @param string|int|null $volumeNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPageEnd($pageEnd) + public function setVolumeNumber($volumeNumber) { $types = [ "string", @@ -105,25 +103,25 @@ public function setPageEnd($pageEnd) "null", ]; - $pageEnd = self::checkTypes($pageEnd, $types); + $volumeNumber = self::checkTypes($volumeNumber, $types); - $this->pageEnd = $pageEnd; + $this->volumeNumber = $volumeNumber; } /** * @return string|int|null */ - public function getVolumeNumber() + public function getPageStart() { - return $this->volumeNumber; + return $this->pageStart; } /** - * @param string|int|null $volumeNumber + * @param string|int|null $pageStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVolumeNumber($volumeNumber) + public function setPageStart($pageStart) { $types = [ "string", @@ -131,33 +129,35 @@ public function setVolumeNumber($volumeNumber) "null", ]; - $volumeNumber = self::checkTypes($volumeNumber, $types); + $pageStart = self::checkTypes($pageStart, $types); - $this->volumeNumber = $volumeNumber; + $this->pageStart = $pageStart; } /** - * @return string + * @return string|int|null */ - public function getPagination() + public function getPageEnd() { - return $this->pagination; + return $this->pageEnd; } /** - * @param string $pagination + * @param string|int|null $pageEnd * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPagination($pagination) + public function setPageEnd($pageEnd) { $types = [ "string", + "int", + "null", ]; - $pagination = self::checkTypes($pagination, $types); + $pageEnd = self::checkTypes($pageEnd, $types); - $this->pagination = $pagination; + $this->pageEnd = $pageEnd; } } diff --git a/src/Models/SchemaOrg/QuantitativeValue.php b/src/Models/SchemaOrg/QuantitativeValue.php index 13658c50..c41d9581 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", + "unitCode" => "unitCode", + "valueReference" => "valueReference", "minValue" => "minValue", + "unitText" => "unitText", "value" => "value", - "unitCode" => "unitCode", - "additionalProperty" => "additionalProperty", ]; 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 unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. * * * @var string */ - protected $unitText; + protected $unitCode; /** - * The lower value of some characteristic or property. + * A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement. * * - * @var Number|null + * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\QuantitativeValue|null */ - protected $minValue; + protected $valueReference; /** - * 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 lower value of some characteristic or property. * * - * @var string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @var Number|null */ - protected $value; + protected $minValue; /** - * 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; /** - * 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 value of a [[QuantitativeValue]] (including [[Observation]]) or property value node.\n\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\n* For [[PropertyValue]], it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'.\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator. * * - * @var \OpenActive\Models\SchemaOrg\PropertyValue|string + * @var Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null */ - protected $additionalProperty; + protected $value; /** - * @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; } /** @@ -147,127 +140,134 @@ public function setMaxValue($maxValue) /** * @return string */ - public function getUnitText() + public function getUnitCode() { - return $this->unitText; + return $this->unitCode; } /** - * @param string $unitText + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setUnitCode($unitCode) { $types = [ "string", ]; - $unitText = self::checkTypes($unitText, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->unitText = $unitText; + $this->unitCode = $unitCode; } /** - * @return Number|null + * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\QuantitativeValue|null */ - public function getMinValue() + public function getValueReference() { - return $this->minValue; + return $this->valueReference; } /** - * @param Number|null $minValue + * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Models\SchemaOrg\StructuredValue|\OpenActive\Models\SchemaOrg\PropertyValue|\OpenActive\Models\SchemaOrg\Enumeration|\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration|string|\OpenActive\Models\SchemaOrg\QuantitativeValue|null $valueReference * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMinValue($minValue) + public function setValueReference($valueReference) { $types = [ - "Number", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Models\SchemaOrg\StructuredValue", + "\OpenActive\Models\SchemaOrg\PropertyValue", + "\OpenActive\Models\SchemaOrg\Enumeration", + "\OpenActive\Enums\SchemaOrg\MeasurementTypeEnumeration", + "string", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "null", ]; - $minValue = self::checkTypes($minValue, $types); + $valueReference = self::checkTypes($valueReference, $types); - $this->minValue = $minValue; + $this->valueReference = $valueReference; } /** - * @return string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null + * @return Number|null */ - public function getValue() + public function getMinValue() { - return $this->value; + return $this->minValue; } /** - * @param string|Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|null $value + * @param Number|null $minValue * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setValue($value) + public function setMinValue($minValue) { $types = [ - "string", "Number", - "\OpenActive\Models\SchemaOrg\StructuredValue", - "bool", "null", ]; - $value = self::checkTypes($value, $types); + $minValue = self::checkTypes($minValue, $types); - $this->value = $value; + $this->minValue = $minValue; } /** * @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; } /** - * @return \OpenActive\Models\SchemaOrg\PropertyValue|string + * @return Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null */ - public function getAdditionalProperty() + public function getValue() { - return $this->additionalProperty; + return $this->value; } /** - * @param \OpenActive\Models\SchemaOrg\PropertyValue|string $additionalProperty + * @param Number|\OpenActive\Models\SchemaOrg\StructuredValue|bool|string|null $value * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalProperty($additionalProperty) + public function setValue($value) { $types = [ - "\OpenActive\Models\SchemaOrg\PropertyValue", + "Number", + "\OpenActive\Models\SchemaOrg\StructuredValue", + "bool", "string", + "null", ]; - $additionalProperty = self::checkTypes($additionalProperty, $types); + $value = self::checkTypes($value, $types); - $this->additionalProperty = $additionalProperty; + $this->value = $value; } } diff --git a/src/Models/SchemaOrg/QuantitativeValueDistribution.php b/src/Models/SchemaOrg/QuantitativeValueDistribution.php index 899a1813..d2e1ddbd 100644 --- a/src/Models/SchemaOrg/QuantitativeValueDistribution.php +++ b/src/Models/SchemaOrg/QuantitativeValueDistribution.php @@ -17,11 +17,11 @@ public static function getType() public static function fieldList() { $fields = [ + "percentile90" => "percentile90", "percentile75" => "percentile75", - "median" => "median", "percentile10" => "percentile10", + "median" => "median", "percentile25" => "percentile25", - "percentile90" => "percentile90", "duration" => "duration", ]; @@ -29,20 +29,20 @@ public static function fieldList() { } /** - * The 75th percentile value. + * The 90th percentile value. * * * @var Number|null */ - protected $percentile75; + protected $percentile90; /** - * The median value. + * The 75th percentile value. * * * @var Number|null */ - protected $median; + protected $percentile75; /** * The 10th percentile value. @@ -53,20 +53,20 @@ public static function fieldList() { protected $percentile10; /** - * The 25th percentile value. + * The median value. * * * @var Number|null */ - protected $percentile25; + protected $median; /** - * The 90th percentile value. + * The 25th percentile value. * * * @var Number|null */ - protected $percentile90; + protected $percentile25; /** * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). @@ -79,51 +79,51 @@ public static function fieldList() { /** * @return Number|null */ - public function getPercentile75() + public function getPercentile90() { - return $this->percentile75; + return $this->percentile90; } /** - * @param Number|null $percentile75 + * @param Number|null $percentile90 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPercentile75($percentile75) + public function setPercentile90($percentile90) { $types = [ "Number", "null", ]; - $percentile75 = self::checkTypes($percentile75, $types); + $percentile90 = self::checkTypes($percentile90, $types); - $this->percentile75 = $percentile75; + $this->percentile90 = $percentile90; } /** * @return Number|null */ - public function getMedian() + public function getPercentile75() { - return $this->median; + return $this->percentile75; } /** - * @param Number|null $median + * @param Number|null $percentile75 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMedian($median) + public function setPercentile75($percentile75) { $types = [ "Number", "null", ]; - $median = self::checkTypes($median, $types); + $percentile75 = self::checkTypes($percentile75, $types); - $this->median = $median; + $this->percentile75 = $percentile75; } /** @@ -154,51 +154,51 @@ public function setPercentile10($percentile10) /** * @return Number|null */ - public function getPercentile25() + public function getMedian() { - return $this->percentile25; + return $this->median; } /** - * @param Number|null $percentile25 + * @param Number|null $median * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPercentile25($percentile25) + public function setMedian($median) { $types = [ "Number", "null", ]; - $percentile25 = self::checkTypes($percentile25, $types); + $median = self::checkTypes($median, $types); - $this->percentile25 = $percentile25; + $this->median = $median; } /** * @return Number|null */ - public function getPercentile90() + public function getPercentile25() { - return $this->percentile90; + return $this->percentile25; } /** - * @param Number|null $percentile90 + * @param Number|null $percentile25 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPercentile90($percentile90) + public function setPercentile25($percentile25) { $types = [ "Number", "null", ]; - $percentile90 = self::checkTypes($percentile90, $types); + $percentile25 = self::checkTypes($percentile25, $types); - $this->percentile90 = $percentile90; + $this->percentile25 = $percentile25; } /** diff --git a/src/Models/SchemaOrg/Question.php b/src/Models/SchemaOrg/Question.php index 9049d777..e56271a5 100644 --- a/src/Models/SchemaOrg/Question.php +++ b/src/Models/SchemaOrg/Question.php @@ -17,30 +17,39 @@ public static function getType() public static function fieldList() { $fields = [ - "suggestedAnswer" => "suggestedAnswer", "acceptedAnswer" => "acceptedAnswer", - "answerCount" => "answerCount", + "parentItem" => "parentItem", "eduQuestionType" => "eduQuestionType", + "answerCount" => "answerCount", + "suggestedAnswer" => "suggestedAnswer", ]; return array_merge(parent::fieldList(), $fields); } /** - * An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site. + * The answer(s) that has been accepted as best, typically on a Question/Answer site. Sites vary in their selection mechanisms, e.g. drawing on community opinion and/or the view of the Question author. * * - * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string + * @var \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string */ - protected $suggestedAnswer; + protected $acceptedAnswer; /** - * The answer(s) that has been accepted as best, typically on a Question/Answer site. Sites vary in their selection mechanisms, e.g. drawing on community opinion and/or the view of the Question author. + * The parent of a question, answer or item in general. Typically used for Q/A discussion threads e.g. a chain of comments with the first comment being an [[Article]] or other [[CreativeWork]]. See also [[comment]] which points from something to a comment about it. * * - * @var \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string */ - protected $acceptedAnswer; + protected $parentItem; + + /** + * For questions that are part of learning resources (e.g. Quiz), eduQuestionType indicates the format of question being given. Example: "Multiple choice", "Open ended", "Flashcard". + * + * + * @var string + */ + protected $eduQuestionType; /** * The number of answers this question has received. @@ -51,63 +60,87 @@ public static function fieldList() { protected $answerCount; /** - * For questions that are part of learning resources (e.g. Quiz), eduQuestionType indicates the format of question being given. Example: "Multiple choice", "Open ended", "Flashcard". + * An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string */ - protected $eduQuestionType; + protected $suggestedAnswer; /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string + * @return \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string */ - public function getSuggestedAnswer() + public function getAcceptedAnswer() { - return $this->suggestedAnswer; + return $this->acceptedAnswer; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Answer|string $suggestedAnswer + * @param \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string $acceptedAnswer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedAnswer($suggestedAnswer) + public function setAcceptedAnswer($acceptedAnswer) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", "\OpenActive\Models\SchemaOrg\Answer", + "\OpenActive\Models\SchemaOrg\ItemList", "string", ]; - $suggestedAnswer = self::checkTypes($suggestedAnswer, $types); + $acceptedAnswer = self::checkTypes($acceptedAnswer, $types); - $this->suggestedAnswer = $suggestedAnswer; + $this->acceptedAnswer = $acceptedAnswer; } /** - * @return \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string */ - public function getAcceptedAnswer() + public function getParentItem() { - return $this->acceptedAnswer; + return $this->parentItem; } /** - * @param \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string $acceptedAnswer + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Comment|string $parentItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAcceptedAnswer($acceptedAnswer) + public function setParentItem($parentItem) { $types = [ - "\OpenActive\Models\SchemaOrg\Answer", - "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Comment", "string", ]; - $acceptedAnswer = self::checkTypes($acceptedAnswer, $types); + $parentItem = self::checkTypes($parentItem, $types); - $this->acceptedAnswer = $acceptedAnswer; + $this->parentItem = $parentItem; + } + + /** + * @return string + */ + public function getEduQuestionType() + { + return $this->eduQuestionType; + } + + /** + * @param string $eduQuestionType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setEduQuestionType($eduQuestionType) + { + $types = [ + "string", + ]; + + $eduQuestionType = self::checkTypes($eduQuestionType, $types); + + $this->eduQuestionType = $eduQuestionType; } /** @@ -136,27 +169,29 @@ public function setAnswerCount($answerCount) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string */ - public function getEduQuestionType() + public function getSuggestedAnswer() { - return $this->eduQuestionType; + return $this->suggestedAnswer; } /** - * @param string $eduQuestionType + * @param \OpenActive\Models\SchemaOrg\Answer|\OpenActive\Models\SchemaOrg\ItemList|string $suggestedAnswer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEduQuestionType($eduQuestionType) + public function setSuggestedAnswer($suggestedAnswer) { $types = [ + "\OpenActive\Models\SchemaOrg\Answer", + "\OpenActive\Models\SchemaOrg\ItemList", "string", ]; - $eduQuestionType = self::checkTypes($eduQuestionType, $types); + $suggestedAnswer = self::checkTypes($suggestedAnswer, $types); - $this->eduQuestionType = $eduQuestionType; + $this->suggestedAnswer = $suggestedAnswer; } } diff --git a/src/Models/SchemaOrg/RadioSeries.php b/src/Models/SchemaOrg/RadioSeries.php index 4ae0b3b6..5e6da96c 100644 --- a/src/Models/SchemaOrg/RadioSeries.php +++ b/src/Models/SchemaOrg/RadioSeries.php @@ -17,51 +17,51 @@ public static function getType() public static function fieldList() { $fields = [ - "season" => "season", "containsSeason" => "containsSeason", - "director" => "director", - "actor" => "actor", - "trailer" => "trailer", - "episodes" => "episodes", "numberOfEpisodes" => "numberOfEpisodes", + "trailer" => "trailer", + "actor" => "actor", "seasons" => "seasons", "productionCompany" => "productionCompany", - "actors" => "actors", "numberOfSeasons" => "numberOfSeasons", "musicBy" => "musicBy", - "episode" => "episode", "directors" => "directors", + "director" => "director", + "episode" => "episode", + "episodes" => "episodes", + "actors" => "actors", + "season" => "season", ]; return array_merge(parent::fieldList(), $fields); } /** - * A season in a media series. + * A season that is part of the media series. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $season; + protected $containsSeason; /** - * A season that is part of the media series. + * The number of episodes in this season or series. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var int|null */ - protected $containsSeason; + protected $numberOfEpisodes; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $director; + protected $trailer; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string @@ -69,158 +69,158 @@ public static function fieldList() { protected $actor; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * A season in a media series. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $trailer; + protected $seasons; /** - * An episode of a TV/radio series or season. + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $episodes; + protected $productionCompany; /** - * The number of episodes in this season or series. + * The number of seasons in this series. * * * @var int|null */ - protected $numberOfEpisodes; + protected $numberOfSeasons; /** - * A season in a media series. + * The composer of the soundtrack. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $seasons; + protected $musicBy; /** - * 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. + * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $actors; + protected $director; /** - * The number of seasons in this series. + * An episode of a TV, radio or game media within a series or season. * * - * @var int|null + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $numberOfSeasons; + protected $episode; /** - * The composer of the soundtrack. + * An episode of a TV/radio series or season. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $musicBy; + protected $episodes; /** - * An episode of a tv, radio or game media within a series or season. + * 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\Episode|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $episode; + protected $actors; /** - * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. + * A season in a media series. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $directors; + protected $season; /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getSeason() + public function getContainsSeason() { - return $this->season; + return $this->containsSeason; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @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 setSeason($season) + public function setContainsSeason($containsSeason) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "string", ]; - $season = self::checkTypes($season, $types); + $containsSeason = self::checkTypes($containsSeason, $types); - $this->season = $season; + $this->containsSeason = $containsSeason; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return int|null */ - public function getContainsSeason() + public function getNumberOfEpisodes() { - return $this->containsSeason; + return $this->numberOfEpisodes; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason + * @param int|null $numberOfEpisodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContainsSeason($containsSeason) + public function setNumberOfEpisodes($numberOfEpisodes) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", - "string", + "int", + "null", ]; - $containsSeason = self::checkTypes($containsSeason, $types); + $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); - $this->containsSeason = $containsSeason; + $this->numberOfEpisodes = $numberOfEpisodes; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getDirector() + public function getTrailer() { - return $this->director; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $director = self::checkTypes($director, $types); + $trailer = self::checkTypes($trailer, $types); - $this->director = $director; + $this->trailer = $trailer; } /** @@ -249,254 +249,254 @@ public function setActor($actor) } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getTrailer() + public function getSeasons() { - return $this->trailer; + return $this->seasons; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @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 setTrailer($trailer) + public function setSeasons($seasons) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $seasons = self::checkTypes($seasons, $types); - $this->trailer = $trailer; + $this->seasons = $seasons; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getEpisodes() + public function getProductionCompany() { - return $this->episodes; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes + * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisodes($episodes) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $episodes = self::checkTypes($episodes, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->episodes = $episodes; + $this->productionCompany = $productionCompany; } /** * @return int|null */ - public function getNumberOfEpisodes() + public function getNumberOfSeasons() { - return $this->numberOfEpisodes; + return $this->numberOfSeasons; } /** - * @param int|null $numberOfEpisodes + * @param int|null $numberOfSeasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfEpisodes($numberOfEpisodes) + public function setNumberOfSeasons($numberOfSeasons) { $types = [ "int", "null", ]; - $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); + $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); - $this->numberOfEpisodes = $numberOfEpisodes; + $this->numberOfSeasons = $numberOfSeasons; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSeasons() + public function getMusicBy() { - return $this->seasons; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons + * @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 setSeasons($seasons) + public function setMusicBy($musicBy) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $seasons = self::checkTypes($seasons, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->seasons = $seasons; + $this->musicBy = $musicBy; } /** - * @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 */ - public function getActors() + public function getDirector() { - return $this->actors; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setDirector($director) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actors = self::checkTypes($actors, $types); + $director = self::checkTypes($director, $types); - $this->actors = $actors; + $this->director = $director; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getNumberOfSeasons() + public function getEpisode() { - return $this->numberOfSeasons; + return $this->episode; } /** - * @param int|null $numberOfSeasons + * @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 setNumberOfSeasons($numberOfSeasons) + public function setEpisode($episode) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Episode", + "string", ]; - $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); + $episode = self::checkTypes($episode, $types); - $this->numberOfSeasons = $numberOfSeasons; + $this->episode = $episode; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getMusicBy() + public function getEpisodes() { - return $this->musicBy; + return $this->episodes; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @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 setMusicBy($musicBy) + public function setEpisodes($episodes) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $episodes = self::checkTypes($episodes, $types); - $this->musicBy = $musicBy; + $this->episodes = $episodes; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getEpisode() + public function getActors() { - return $this->episode; + return $this->actors; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @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 setEpisode($episode) + public function setActors($actors) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $episode = self::checkTypes($episode, $types); + $actors = self::checkTypes($actors, $types); - $this->episode = $episode; + $this->actors = $actors; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getDirectors() + public function getSeason() { - return $this->directors; + return $this->season; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @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 setDirectors($directors) + public function setSeason($season) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $directors = self::checkTypes($directors, $types); + $season = self::checkTypes($season, $types); - $this->directors = $directors; + $this->season = $season; } } diff --git a/src/Models/SchemaOrg/Rating.php b/src/Models/SchemaOrg/Rating.php index 1e7d5d9d..1f2dbb0a 100644 --- a/src/Models/SchemaOrg/Rating.php +++ b/src/Models/SchemaOrg/Rating.php @@ -17,32 +17,32 @@ public static function getType() public static function fieldList() { $fields = [ - "reviewAspect" => "reviewAspect", - "worstRating" => "worstRating", - "author" => "author", "bestRating" => "bestRating", - "ratingValue" => "ratingValue", "ratingExplanation" => "ratingExplanation", + "author" => "author", + "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 highest value allowed in this rating system. * * - * @var string + * @var string|Number|null */ - protected $reviewAspect; + protected $bestRating; /** - * The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed. + * A short explanation (e.g. one to two sentences) providing background context and other information that led to the conclusion expressed in the rating. This is particularly applicable to ratings associated with "fact check" markup using [[ClaimReview]]. * * - * @var string|Number|null + * @var string */ - protected $worstRating; + protected $ratingExplanation; /** * The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably. @@ -53,77 +53,77 @@ public static function fieldList() { protected $author; /** - * 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 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 string|Number|null */ - public function getReviewAspect() + public function getBestRating() { - return $this->reviewAspect; + return $this->bestRating; } /** - * @param string $reviewAspect + * @param string|Number|null $bestRating * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewAspect($reviewAspect) + public function setBestRating($bestRating) { $types = [ "string", + "Number", + "null", ]; - $reviewAspect = self::checkTypes($reviewAspect, $types); + $bestRating = self::checkTypes($bestRating, $types); - $this->reviewAspect = $reviewAspect; + $this->bestRating = $bestRating; } /** - * @return string|Number|null + * @return string */ - public function getWorstRating() + public function getRatingExplanation() { - return $this->worstRating; + return $this->ratingExplanation; } /** - * @param string|Number|null $worstRating + * @param string $ratingExplanation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorstRating($worstRating) + public function setRatingExplanation($ratingExplanation) { $types = [ "string", - "Number", - "null", ]; - $worstRating = self::checkTypes($worstRating, $types); + $ratingExplanation = self::checkTypes($ratingExplanation, $types); - $this->worstRating = $worstRating; + $this->ratingExplanation = $ratingExplanation; } /** @@ -155,17 +155,17 @@ public function setAuthor($author) /** * @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,59 @@ 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 string */ - public function getRatingValue() + public function getReviewAspect() { - return $this->ratingValue; + return $this->reviewAspect; } /** - * @param string|Number|null $ratingValue + * @param 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 = [ "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..f463c861 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\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|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\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getDeliveryMethod() + public function getSender() { - return $this->deliveryMethod; + return $this->sender; } /** - * @param \OpenActive\Enums\SchemaOrg\DeliveryMethod|null $deliveryMethod + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\Organization|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\Person", + "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Organization", + "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..c1a1b76c 100644 --- a/src/Models/SchemaOrg/Recipe.php +++ b/src/Models/SchemaOrg/Recipe.php @@ -17,68 +17,68 @@ public static function getType() public static function fieldList() { $fields = [ - "recipeInstructions" => "recipeInstructions", - "ingredients" => "ingredients", "recipeCuisine" => "recipeCuisine", "suitableForDiet" => "suitableForDiet", - "nutrition" => "nutrition", "cookingMethod" => "cookingMethod", + "recipeInstructions" => "recipeInstructions", + "recipeCategory" => "recipeCategory", + "nutrition" => "nutrition", "recipeIngredient" => "recipeIngredient", - "recipeYield" => "recipeYield", "cookTime" => "cookTime", - "recipeCategory" => "recipeCategory", + "recipeYield" => "recipeYield", + "ingredients" => "ingredients", ]; 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 cuisine of the recipe (for example, French or Ethiopian). * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList + * @var string */ - protected $recipeInstructions; + protected $recipeCuisine; /** - * A single ingredient used in the recipe, e.g. sugar, flour or garlic. + * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc. * * - * @var string + * @var \OpenActive\Enums\SchemaOrg\RestrictedDiet|null */ - protected $ingredients; + protected $suitableForDiet; /** - * The cuisine of the recipe (for example, French or Ethiopian). + * The method of cooking, such as Frying, Steaming, ... * * * @var string */ - protected $recipeCuisine; + protected $cookingMethod; /** - * Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal 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 \OpenActive\Enums\SchemaOrg\RestrictedDiet|null + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\ItemList */ - protected $suitableForDiet; + protected $recipeInstructions; /** - * 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, ... + * Nutrition information about the recipe or menu item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\NutritionInformation|string */ - protected $cookingMethod; + protected $nutrition; /** * A single ingredient used in the recipe, e.g. sugar, flour or garlic. @@ -89,175 +89,175 @@ public static function fieldList() { protected $recipeIngredient; /** - * The quantity produced by the recipe (for example, number of people served, number of servings, etc). + * 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\QuantitativeValue + * @var DateInterval|string|null */ - protected $recipeYield; + protected $cookTime; /** - * 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 string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - protected $cookTime; + protected $recipeYield; /** - * The category of the recipe—for example, appetizer, entree, etc. + * A single ingredient used in the recipe, e.g. sugar, flour or garlic. * * * @var string */ - protected $recipeCategory; + protected $ingredients; /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList + * @return string */ - public function getRecipeInstructions() + public function getRecipeCuisine() { - return $this->recipeInstructions; + return $this->recipeCuisine; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\ItemList $recipeInstructions + * @param string $recipeCuisine * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeInstructions($recipeInstructions) + public function setRecipeCuisine($recipeCuisine) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\CreativeWork", - "\OpenActive\Models\SchemaOrg\ItemList", ]; - $recipeInstructions = self::checkTypes($recipeInstructions, $types); + $recipeCuisine = self::checkTypes($recipeCuisine, $types); - $this->recipeInstructions = $recipeInstructions; + $this->recipeCuisine = $recipeCuisine; } /** - * @return string + * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null */ - public function getIngredients() + public function getSuitableForDiet() { - return $this->ingredients; + return $this->suitableForDiet; } /** - * @param string $ingredients + * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIngredients($ingredients) + public function setSuitableForDiet($suitableForDiet) { $types = [ - "string", + "\OpenActive\Enums\SchemaOrg\RestrictedDiet", + "null", ]; - $ingredients = self::checkTypes($ingredients, $types); + $suitableForDiet = self::checkTypes($suitableForDiet, $types); - $this->ingredients = $ingredients; + $this->suitableForDiet = $suitableForDiet; } /** * @return string */ - public function getRecipeCuisine() + public function getCookingMethod() { - return $this->recipeCuisine; + return $this->cookingMethod; } /** - * @param string $recipeCuisine + * @param string $cookingMethod * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeCuisine($recipeCuisine) + public function setCookingMethod($cookingMethod) { $types = [ "string", ]; - $recipeCuisine = self::checkTypes($recipeCuisine, $types); + $cookingMethod = self::checkTypes($cookingMethod, $types); - $this->recipeCuisine = $recipeCuisine; + $this->cookingMethod = $cookingMethod; } /** - * @return \OpenActive\Enums\SchemaOrg\RestrictedDiet|null + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\ItemList */ - public function getSuitableForDiet() + public function getRecipeInstructions() { - return $this->suitableForDiet; + return $this->recipeInstructions; } /** - * @param \OpenActive\Enums\SchemaOrg\RestrictedDiet|null $suitableForDiet + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string|\OpenActive\Models\SchemaOrg\ItemList $recipeInstructions * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuitableForDiet($suitableForDiet) + public function setRecipeInstructions($recipeInstructions) { $types = [ - "\OpenActive\Enums\SchemaOrg\RestrictedDiet", - "null", + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", + "\OpenActive\Models\SchemaOrg\ItemList", ]; - $suitableForDiet = self::checkTypes($suitableForDiet, $types); + $recipeInstructions = self::checkTypes($recipeInstructions, $types); - $this->suitableForDiet = $suitableForDiet; + $this->recipeInstructions = $recipeInstructions; } /** - * @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 + * @return \OpenActive\Models\SchemaOrg\NutritionInformation|string */ - public function getCookingMethod() + public function getNutrition() { - return $this->cookingMethod; + return $this->nutrition; } /** - * @param string $cookingMethod + * @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 setCookingMethod($cookingMethod) + public function setNutrition($nutrition) { $types = [ + "\OpenActive\Models\SchemaOrg\NutritionInformation", "string", ]; - $cookingMethod = self::checkTypes($cookingMethod, $types); + $nutrition = self::checkTypes($nutrition, $types); - $this->cookingMethod = $cookingMethod; + $this->nutrition = $nutrition; } /** @@ -285,78 +285,78 @@ public function setRecipeIngredient($recipeIngredient) } /** - * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue + * @return DateInterval|string|null */ - public function getRecipeYield() + public function getCookTime() { - return $this->recipeYield; + return $this->cookTime; } /** - * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $recipeYield + * @param DateInterval|string|null $cookTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeYield($recipeYield) + public function setCookTime($cookTime) { $types = [ + "DateInterval", "string", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "null", ]; - $recipeYield = self::checkTypes($recipeYield, $types); + $cookTime = self::checkTypes($cookTime, $types); - $this->recipeYield = $recipeYield; + $this->cookTime = $cookTime; } /** - * @return DateInterval|string|null + * @return string|\OpenActive\Models\SchemaOrg\QuantitativeValue */ - public function getCookTime() + public function getRecipeYield() { - return $this->cookTime; + return $this->recipeYield; } /** - * @param DateInterval|string|null $cookTime + * @param string|\OpenActive\Models\SchemaOrg\QuantitativeValue $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", "string", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", ]; - $cookTime = self::checkTypes($cookTime, $types); + $recipeYield = self::checkTypes($recipeYield, $types); - $this->cookTime = $cookTime; + $this->recipeYield = $recipeYield; } /** * @return string */ - public function getRecipeCategory() + public function getIngredients() { - return $this->recipeCategory; + return $this->ingredients; } /** - * @param string $recipeCategory + * @param string $ingredients * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRecipeCategory($recipeCategory) + public function setIngredients($ingredients) { $types = [ "string", ]; - $recipeCategory = self::checkTypes($recipeCategory, $types); + $ingredients = self::checkTypes($ingredients, $types); - $this->recipeCategory = $recipeCategory; + $this->ingredients = $ingredients; } } diff --git a/src/Models/SchemaOrg/Recommendation.php b/src/Models/SchemaOrg/Recommendation.php index 561842f6..dd4aaae9 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\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ protected $category; /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ public function getCategory() { @@ -40,17 +40,17 @@ public function getCategory() } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setCategory($category) { $types = [ - "string", "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Thing", + "string", "null", ]; diff --git a/src/Models/SchemaOrg/RentAction.php b/src/Models/SchemaOrg/RentAction.php index e4936bdd..808deb82 100644 --- a/src/Models/SchemaOrg/RentAction.php +++ b/src/Models/SchemaOrg/RentAction.php @@ -17,78 +17,78 @@ public static function getType() public static function fieldList() { $fields = [ - "landlord" => "landlord", "realEstateAgent" => "realEstateAgent", + "landlord" => "landlord", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of participant. The owner of the real estate property. + * A sub property of participant. The real estate agent involved in the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\RealEstateAgent|string */ - protected $landlord; + protected $realEstateAgent; /** - * A sub property of participant. The real estate agent involved in the action. + * A sub property of participant. The owner of the real estate property. * * - * @var \OpenActive\Models\SchemaOrg\RealEstateAgent|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $realEstateAgent; + protected $landlord; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\RealEstateAgent|string */ - public function getLandlord() + public function getRealEstateAgent() { - return $this->landlord; + return $this->realEstateAgent; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $landlord + * @param \OpenActive\Models\SchemaOrg\RealEstateAgent|string $realEstateAgent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLandlord($landlord) + public function setRealEstateAgent($realEstateAgent) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\RealEstateAgent", "string", ]; - $landlord = self::checkTypes($landlord, $types); + $realEstateAgent = self::checkTypes($realEstateAgent, $types); - $this->landlord = $landlord; + $this->realEstateAgent = $realEstateAgent; } /** - * @return \OpenActive\Models\SchemaOrg\RealEstateAgent|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getRealEstateAgent() + public function getLandlord() { - return $this->realEstateAgent; + return $this->landlord; } /** - * @param \OpenActive\Models\SchemaOrg\RealEstateAgent|string $realEstateAgent + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $landlord * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRealEstateAgent($realEstateAgent) + public function setLandlord($landlord) { $types = [ - "\OpenActive\Models\SchemaOrg\RealEstateAgent", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $realEstateAgent = self::checkTypes($realEstateAgent, $types); + $landlord = self::checkTypes($landlord, $types); - $this->realEstateAgent = $realEstateAgent; + $this->landlord = $landlord; } } diff --git a/src/Models/SchemaOrg/RentalCarReservation.php b/src/Models/SchemaOrg/RentalCarReservation.php index 0b0ae3fe..cc898fe9 100644 --- a/src/Models/SchemaOrg/RentalCarReservation.php +++ b/src/Models/SchemaOrg/RentalCarReservation.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "dropoffLocation" => "dropoffLocation", "dropoffTime" => "dropoffTime", + "dropoffLocation" => "dropoffLocation", "pickupTime" => "pickupTime", "pickupLocation" => "pickupLocation", ]; @@ -27,23 +27,23 @@ public static function fieldList() { } /** - * Where a rental car can be dropped off. + * When a rental car can be dropped off. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var DateTime|null */ - protected $dropoffLocation; + protected $dropoffTime; /** - * When a rental car can be dropped off. + * Where a rental car can be dropped off. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $dropoffTime; + protected $dropoffLocation; /** - * When a taxi will pickup a passenger or a rental car can be picked up. + * When a taxi will pick up a passenger or a rental car can be picked up. * * * @var DateTime|null @@ -59,53 +59,53 @@ public static function fieldList() { protected $pickupLocation; /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return DateTime|null */ - public function getDropoffLocation() + public function getDropoffTime() { - return $this->dropoffLocation; + return $this->dropoffTime; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $dropoffLocation + * @param DateTime|null $dropoffTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDropoffLocation($dropoffLocation) + public function setDropoffTime($dropoffTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", - "string", + "DateTime", + "null", ]; - $dropoffLocation = self::checkTypes($dropoffLocation, $types); + $dropoffTime = self::checkTypes($dropoffTime, $types); - $this->dropoffLocation = $dropoffLocation; + $this->dropoffTime = $dropoffTime; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getDropoffTime() + public function getDropoffLocation() { - return $this->dropoffTime; + return $this->dropoffLocation; } /** - * @param DateTime|null $dropoffTime + * @param \OpenActive\Models\SchemaOrg\Place|string $dropoffLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDropoffTime($dropoffTime) + public function setDropoffLocation($dropoffLocation) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Place", + "string", ]; - $dropoffTime = self::checkTypes($dropoffTime, $types); + $dropoffLocation = self::checkTypes($dropoffLocation, $types); - $this->dropoffTime = $dropoffTime; + $this->dropoffLocation = $dropoffLocation; } /** diff --git a/src/Models/SchemaOrg/RepaymentSpecification.php b/src/Models/SchemaOrg/RepaymentSpecification.php index bdca1b02..1eb13311 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", - "earlyPrepaymentPenalty" => "earlyPrepaymentPenalty", "loanPaymentAmount" => "loanPaymentAmount", - "loanPaymentFrequency" => "loanPaymentFrequency", + "earlyPrepaymentPenalty" => "earlyPrepaymentPenalty", "downPayment" => "downPayment", + "numberOfLoanPayments" => "numberOfLoanPayments", + "loanPaymentFrequency" => "loanPaymentFrequency", ]; 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. + * The amount of money to pay in a single payment. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $numberOfLoanPayments; + protected $loanPaymentAmount; /** * The amount to be paid as a penalty in the event of early payment of the loan. @@ -44,52 +44,52 @@ public static function fieldList() { protected $earlyPrepaymentPenalty; /** - * The amount of money to pay in a single payment. + * 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 \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null */ - protected $loanPaymentAmount; + protected $downPayment; /** - * Frequency of payments due, i.e. number of months between payments. This is defined as a frequency, i.e. the reciprocal of a period of time. + * The number of payments contractually required at origination to repay the loan. For monthly paying loans this is the number of months from the contractual first payment date to the maturity date. * * * @var Number|null */ - protected $loanPaymentFrequency; + protected $numberOfLoanPayments; /** - * 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. + * Frequency of payments due, i.e. number of months between payments. This is defined as a frequency, i.e. the reciprocal of a period of time. * * - * @var Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @var Number|null */ - protected $downPayment; + protected $loanPaymentFrequency; /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getNumberOfLoanPayments() + public function getLoanPaymentAmount() { - return $this->numberOfLoanPayments; + return $this->loanPaymentAmount; } /** - * @param Number|null $numberOfLoanPayments + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $loanPaymentAmount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfLoanPayments($numberOfLoanPayments) + public function setLoanPaymentAmount($loanPaymentAmount) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "string", ]; - $numberOfLoanPayments = self::checkTypes($numberOfLoanPayments, $types); + $loanPaymentAmount = self::checkTypes($loanPaymentAmount, $types); - $this->numberOfLoanPayments = $numberOfLoanPayments; + $this->loanPaymentAmount = $loanPaymentAmount; } /** @@ -118,80 +118,80 @@ public function setEarlyPrepaymentPenalty($earlyPrepaymentPenalty) } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null */ - public function getLoanPaymentAmount() + public function getDownPayment() { - return $this->loanPaymentAmount; + return $this->downPayment; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $loanPaymentAmount + * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $downPayment * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLoanPaymentAmount($loanPaymentAmount) + public function setDownPayment($downPayment) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", + "null", ]; - $loanPaymentAmount = self::checkTypes($loanPaymentAmount, $types); + $downPayment = self::checkTypes($downPayment, $types); - $this->loanPaymentAmount = $loanPaymentAmount; + $this->downPayment = $downPayment; } /** * @return Number|null */ - public function getLoanPaymentFrequency() + public function getNumberOfLoanPayments() { - return $this->loanPaymentFrequency; + return $this->numberOfLoanPayments; } /** - * @param Number|null $loanPaymentFrequency + * @param Number|null $numberOfLoanPayments * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLoanPaymentFrequency($loanPaymentFrequency) + public function setNumberOfLoanPayments($numberOfLoanPayments) { $types = [ "Number", "null", ]; - $loanPaymentFrequency = self::checkTypes($loanPaymentFrequency, $types); + $numberOfLoanPayments = self::checkTypes($numberOfLoanPayments, $types); - $this->loanPaymentFrequency = $loanPaymentFrequency; + $this->numberOfLoanPayments = $numberOfLoanPayments; } /** - * @return Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null + * @return Number|null */ - public function getDownPayment() + public function getLoanPaymentFrequency() { - return $this->downPayment; + return $this->loanPaymentFrequency; } /** - * @param Number|\OpenActive\Models\SchemaOrg\MonetaryAmount|string|null $downPayment + * @param Number|null $loanPaymentFrequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDownPayment($downPayment) + public function setLoanPaymentFrequency($loanPaymentFrequency) { $types = [ "Number", - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "string", "null", ]; - $downPayment = self::checkTypes($downPayment, $types); + $loanPaymentFrequency = self::checkTypes($loanPaymentFrequency, $types); - $this->downPayment = $downPayment; + $this->loanPaymentFrequency = $loanPaymentFrequency; } } diff --git a/src/Models/SchemaOrg/Reservation.php b/src/Models/SchemaOrg/Reservation.php index aa63acae..8d63314f 100644 --- a/src/Models/SchemaOrg/Reservation.php +++ b/src/Models/SchemaOrg/Reservation.php @@ -17,408 +17,407 @@ public static function getType() public static function fieldList() { $fields = [ - "modifiedTime" => "modifiedTime", + "reservationId" => "reservationId", + "programMembershipUsed" => "programMembershipUsed", "totalPrice" => "totalPrice", - "reservedTicket" => "reservedTicket", - "reservationStatus" => "reservationStatus", - "provider" => "provider", - "broker" => "broker", "bookingTime" => "bookingTime", - "programMembershipUsed" => "programMembershipUsed", - "bookingAgent" => "bookingAgent", "priceCurrency" => "priceCurrency", - "reservationId" => "reservationId", - "underName" => "underName", "reservationFor" => "reservationFor", + "bookingAgent" => "bookingAgent", + "reservationStatus" => "reservationStatus", + "reservedTicket" => "reservedTicket", + "broker" => "broker", + "modifiedTime" => "modifiedTime", + "underName" => "underName", + "provider" => "provider", ]; return array_merge(parent::fieldList(), $fields); } /** - * The date and time the reservation was modified. + * A unique identifier for the reservation. * * - * @var DateTime|null + * @var string */ - protected $modifiedTime; + protected $reservationId; /** - * 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. + * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @var \OpenActive\Models\SchemaOrg\ProgramMembership|string */ - protected $totalPrice; + protected $programMembershipUsed; /** - * A ticket associated with the reservation. + * 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\Ticket|string + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null */ - protected $reservedTicket; + protected $totalPrice; /** - * The current status of the reservation. + * The date and time the reservation was booked. * * - * @var \OpenActive\Models\SchemaOrg\ReservationStatusType|string + * @var DateTime|null */ - protected $reservationStatus; + protected $bookingTime; /** - * 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. + * The thing -- flight, event, restaurant, etc. being reserved. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $broker; + protected $reservationFor; /** - * The date and time the reservation was booked. + * 'bookingAgent' is an out-dated term indicating a 'broker' that serves as a booking agent. * * - * @var DateTime|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $bookingTime; + protected $bookingAgent; /** - * Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation. + * The current status of the reservation. * * - * @var \OpenActive\Models\SchemaOrg\ProgramMembership|string + * @var \OpenActive\Models\SchemaOrg\ReservationStatusType|string */ - protected $programMembershipUsed; + protected $reservationStatus; /** - * 'bookingAgent' is an out-dated term indicating a 'broker' that serves as a booking agent. + * A ticket associated with the reservation. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Ticket|string */ - protected $bookingAgent; + protected $reservedTicket; /** - * 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". + * 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 $priceCurrency; + protected $broker; /** - * A unique identifier for the reservation. + * The date and time the reservation was modified. * * - * @var string + * @var DateTime|null */ - protected $reservationId; + protected $modifiedTime; /** * The person or organization the reservation or ticket is for. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ protected $underName; /** - * The thing -- flight, event, restaurant,etc. being reserved. + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $reservationFor; + protected $provider; /** - * @return DateTime|null + * @return string */ - public function getModifiedTime() + public function getReservationId() { - return $this->modifiedTime; + return $this->reservationId; } /** - * @param DateTime|null $modifiedTime + * @param string $reservationId * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setModifiedTime($modifiedTime) + public function setReservationId($reservationId) { $types = [ - "DateTime", - "null", + "string", ]; - $modifiedTime = self::checkTypes($modifiedTime, $types); + $reservationId = self::checkTypes($reservationId, $types); - $this->modifiedTime = $modifiedTime; + $this->reservationId = $reservationId; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @return \OpenActive\Models\SchemaOrg\ProgramMembership|string */ - public function getTotalPrice() + public function getProgramMembershipUsed() { - return $this->totalPrice; + return $this->programMembershipUsed; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice + * @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 setTotalPrice($totalPrice) + public function setProgramMembershipUsed($programMembershipUsed) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", + "\OpenActive\Models\SchemaOrg\ProgramMembership", "string", - "Number", - "null", ]; - $totalPrice = self::checkTypes($totalPrice, $types); + $programMembershipUsed = self::checkTypes($programMembershipUsed, $types); - $this->totalPrice = $totalPrice; + $this->programMembershipUsed = $programMembershipUsed; } /** - * @return \OpenActive\Models\SchemaOrg\Ticket|string + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null */ - public function getReservedTicket() + public function getTotalPrice() { - return $this->reservedTicket; + return $this->totalPrice; } /** - * @param \OpenActive\Models\SchemaOrg\Ticket|string $reservedTicket + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReservedTicket($reservedTicket) + public function setTotalPrice($totalPrice) { $types = [ - "\OpenActive\Models\SchemaOrg\Ticket", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", + "Number", + "null", ]; - $reservedTicket = self::checkTypes($reservedTicket, $types); + $totalPrice = self::checkTypes($totalPrice, $types); - $this->reservedTicket = $reservedTicket; + $this->totalPrice = $totalPrice; } /** - * @return \OpenActive\Models\SchemaOrg\ReservationStatusType|string + * @return DateTime|null */ - public function getReservationStatus() + public function getBookingTime() { - return $this->reservationStatus; + return $this->bookingTime; } /** - * @param \OpenActive\Models\SchemaOrg\ReservationStatusType|string $reservationStatus + * @param DateTime|null $bookingTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReservationStatus($reservationStatus) + public function setBookingTime($bookingTime) { $types = [ - "\OpenActive\Models\SchemaOrg\ReservationStatusType", - "string", + "DateTime", + "null", ]; - $reservationStatus = self::checkTypes($reservationStatus, $types); + $bookingTime = self::checkTypes($bookingTime, $types); - $this->reservationStatus = $reservationStatus; + $this->bookingTime = $bookingTime; } /** - * @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\Thing|string */ - public function getBroker() + public function getReservationFor() { - return $this->broker; + return $this->reservationFor; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $broker + * @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 setBroker($broker) + public function setReservationFor($reservationFor) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $broker = self::checkTypes($broker, $types); + $reservationFor = self::checkTypes($reservationFor, $types); - $this->broker = $broker; + $this->reservationFor = $reservationFor; } /** - * @return DateTime|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getBookingTime() + public function getBookingAgent() { - return $this->bookingTime; + return $this->bookingAgent; } /** - * @param DateTime|null $bookingTime + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $bookingAgent * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBookingTime($bookingTime) + public function setBookingAgent($bookingAgent) { $types = [ - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $bookingTime = self::checkTypes($bookingTime, $types); + $bookingAgent = self::checkTypes($bookingAgent, $types); - $this->bookingTime = $bookingTime; + $this->bookingAgent = $bookingAgent; } /** - * @return \OpenActive\Models\SchemaOrg\ProgramMembership|string + * @return \OpenActive\Models\SchemaOrg\ReservationStatusType|string */ - public function getProgramMembershipUsed() + public function getReservationStatus() { - return $this->programMembershipUsed; + return $this->reservationStatus; } /** - * @param \OpenActive\Models\SchemaOrg\ProgramMembership|string $programMembershipUsed + * @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 setProgramMembershipUsed($programMembershipUsed) + public function setReservationStatus($reservationStatus) { $types = [ - "\OpenActive\Models\SchemaOrg\ProgramMembership", + "\OpenActive\Models\SchemaOrg\ReservationStatusType", "string", ]; - $programMembershipUsed = self::checkTypes($programMembershipUsed, $types); + $reservationStatus = self::checkTypes($reservationStatus, $types); - $this->programMembershipUsed = $programMembershipUsed; + $this->reservationStatus = $reservationStatus; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Ticket|string */ - public function getBookingAgent() + public function getReservedTicket() { - return $this->bookingAgent; + return $this->reservedTicket; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $bookingAgent + * @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 setBookingAgent($bookingAgent) + public function setReservedTicket($reservedTicket) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Ticket", "string", ]; - $bookingAgent = self::checkTypes($bookingAgent, $types); + $reservedTicket = self::checkTypes($reservedTicket, $types); - $this->bookingAgent = $bookingAgent; + $this->reservedTicket = $reservedTicket; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getPriceCurrency() + public function getBroker() { - return $this->priceCurrency; + return $this->broker; } /** - * @param string $priceCurrency + * @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 setPriceCurrency($priceCurrency) + public function setBroker($broker) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $broker = self::checkTypes($broker, $types); - $this->priceCurrency = $priceCurrency; + $this->broker = $broker; } /** - * @return string + * @return DateTime|null */ - public function getReservationId() + public function getModifiedTime() { - return $this->reservationId; + return $this->modifiedTime; } /** - * @param string $reservationId + * @param DateTime|null $modifiedTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReservationId($reservationId) + public function setModifiedTime($modifiedTime) { $types = [ - "string", + "DateTime", + "null", ]; - $reservationId = self::checkTypes($reservationId, $types); + $modifiedTime = self::checkTypes($modifiedTime, $types); - $this->reservationId = $reservationId; + $this->modifiedTime = $modifiedTime; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ public function getUnderName() { @@ -426,15 +425,15 @@ public function getUnderName() } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $underName + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $underName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setUnderName($underName) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; @@ -444,28 +443,29 @@ public function setUnderName($underName) } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getReservationFor() + public function getProvider() { - return $this->reservationFor; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $reservationFor + * @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 setReservationFor($reservationFor) + public function setProvider($provider) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $reservationFor = self::checkTypes($reservationFor, $types); + $provider = self::checkTypes($provider, $types); - $this->reservationFor = $reservationFor; + $this->provider = $provider; } } diff --git a/src/Models/SchemaOrg/ReturnAction.php b/src/Models/SchemaOrg/ReturnAction.php index d6d476a0..ebfd2a89 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\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ public function getRecipient() { @@ -40,17 +40,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRecipient($recipient) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; diff --git a/src/Models/SchemaOrg/Review.php b/src/Models/SchemaOrg/Review.php index 07193ea8..215e0890 100644 --- a/src/Models/SchemaOrg/Review.php +++ b/src/Models/SchemaOrg/Review.php @@ -17,67 +17,72 @@ public static function getType() public static function fieldList() { $fields = [ - "reviewRating" => "reviewRating", - "itemReviewed" => "itemReviewed", + "reviewBody" => "reviewBody", "negativeNotes" => "negativeNotes", "reviewAspect" => "reviewAspect", - "associatedClaimReview" => "associatedClaimReview", - "positiveNotes" => "positiveNotes", - "associatedReview" => "associatedReview", + "reviewRating" => "reviewRating", "associatedMediaReview" => "associatedMediaReview", - "reviewBody" => "reviewBody", + "itemReviewed" => "itemReviewed", + "associatedReview" => "associatedReview", + "positiveNotes" => "positiveNotes", + "associatedClaimReview" => "associatedClaimReview", ]; 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. + * The actual body of the review. * * - * @var \OpenActive\Models\SchemaOrg\Rating|string + * @var string */ - protected $reviewRating; + protected $reviewBody; /** - * The item that is being reviewed/rated. + * 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\Thing|string + * @var \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem */ - protected $itemReviewed; + protected $negativeNotes; /** - * Indicates, in the context of a [[Review]] (e.g. framed as 'pro' vs 'con' considerations), negative considerations - either as unstructured text, or a list. + * This Review or Rating is relevant to this part or facet of the itemReviewed. * * - * @var \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList + * @var string */ - protected $negativeNotes; + protected $reviewAspect; /** - * This Review or Rating is relevant to this part or facet of the itemReviewed. + * 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 $reviewAspect; + protected $reviewRating; /** - * 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]]. + * An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]]. * * * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $associatedClaimReview; + protected $associatedMediaReview; /** - * Indicates, in the context of a [[Review]] (e.g. framed as 'pro' vs 'con' considerations), positive considerations - either as unstructured text, or a list. + * The item that is being reviewed/rated. * * - * @var \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $positiveNotes; + protected $itemReviewed; /** * An associated [[Review]]. @@ -88,172 +93,173 @@ public static function fieldList() { protected $associatedReview; /** - * An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]]. + * Provides 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\Review|string + * @var \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList */ - protected $associatedMediaReview; + protected $positiveNotes; /** - * The actual body of the review. + * An associated [[ClaimReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $reviewBody; + protected $associatedClaimReview; /** - * @return \OpenActive\Models\SchemaOrg\Rating|string + * @return string */ - public function getReviewRating() + public function getReviewBody() { - return $this->reviewRating; + return $this->reviewBody; } /** - * @param \OpenActive\Models\SchemaOrg\Rating|string $reviewRating + * @param string $reviewBody * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReviewRating($reviewRating) + public function setReviewBody($reviewBody) { $types = [ - "\OpenActive\Models\SchemaOrg\Rating", "string", ]; - $reviewRating = self::checkTypes($reviewRating, $types); + $reviewBody = self::checkTypes($reviewBody, $types); - $this->reviewRating = $reviewRating; + $this->reviewBody = $reviewBody; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem */ - public function getItemReviewed() + public function getNegativeNotes() { - return $this->itemReviewed; + return $this->negativeNotes; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $itemReviewed + * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem $negativeNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setItemReviewed($itemReviewed) + public function setNegativeNotes($negativeNotes) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\ItemList", + "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\ListItem", ]; - $itemReviewed = self::checkTypes($itemReviewed, $types); + $negativeNotes = self::checkTypes($negativeNotes, $types); - $this->itemReviewed = $itemReviewed; + $this->negativeNotes = $negativeNotes; } /** - * @return \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList + * @return string */ - public function getNegativeNotes() + public function getReviewAspect() { - return $this->negativeNotes; + return $this->reviewAspect; } /** - * @param \OpenActive\Models\SchemaOrg\ListItem|string|\OpenActive\Models\SchemaOrg\WebContent|\OpenActive\Models\SchemaOrg\ItemList $negativeNotes + * @param string $reviewAspect * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNegativeNotes($negativeNotes) + public function setReviewAspect($reviewAspect) { $types = [ - "\OpenActive\Models\SchemaOrg\ListItem", "string", - "\OpenActive\Models\SchemaOrg\WebContent", - "\OpenActive\Models\SchemaOrg\ItemList", ]; - $negativeNotes = self::checkTypes($negativeNotes, $types); + $reviewAspect = self::checkTypes($reviewAspect, $types); - $this->negativeNotes = $negativeNotes; + $this->reviewAspect = $reviewAspect; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Rating|string */ - public function getReviewAspect() + public function getReviewRating() { - return $this->reviewAspect; + return $this->reviewRating; } /** - * @param string $reviewAspect + * @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 setReviewAspect($reviewAspect) + public function setReviewRating($reviewRating) { $types = [ + "\OpenActive\Models\SchemaOrg\Rating", "string", ]; - $reviewAspect = self::checkTypes($reviewAspect, $types); + $reviewRating = self::checkTypes($reviewRating, $types); - $this->reviewAspect = $reviewAspect; + $this->reviewRating = $reviewRating; } /** * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getAssociatedClaimReview() + public function getAssociatedMediaReview() { - return $this->associatedClaimReview; + return $this->associatedMediaReview; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $associatedClaimReview + * @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 setAssociatedClaimReview($associatedClaimReview) + public function setAssociatedMediaReview($associatedMediaReview) { $types = [ "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $associatedClaimReview = self::checkTypes($associatedClaimReview, $types); + $associatedMediaReview = self::checkTypes($associatedMediaReview, $types); - $this->associatedClaimReview = $associatedClaimReview; + $this->associatedMediaReview = $associatedMediaReview; } /** - * @return \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getPositiveNotes() + public function getItemReviewed() { - return $this->positiveNotes; + return $this->itemReviewed; } /** - * @param \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList $positiveNotes + * @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 setPositiveNotes($positiveNotes) + public function setItemReviewed($itemReviewed) { $types = [ - "\OpenActive\Models\SchemaOrg\WebContent", + "\OpenActive\Models\SchemaOrg\Thing", "string", - "\OpenActive\Models\SchemaOrg\ListItem", - "\OpenActive\Models\SchemaOrg\ItemList", ]; - $positiveNotes = self::checkTypes($positiveNotes, $types); + $itemReviewed = self::checkTypes($itemReviewed, $types); - $this->positiveNotes = $positiveNotes; + $this->itemReviewed = $itemReviewed; } /** @@ -282,52 +288,55 @@ public function setAssociatedReview($associatedReview) } /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @return \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList */ - public function getAssociatedMediaReview() + public function getPositiveNotes() { - return $this->associatedMediaReview; + return $this->positiveNotes; } /** - * @param \OpenActive\Models\SchemaOrg\Review|string $associatedMediaReview + * @param \OpenActive\Models\SchemaOrg\WebContent|string|\OpenActive\Models\SchemaOrg\ListItem|\OpenActive\Models\SchemaOrg\ItemList $positiveNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAssociatedMediaReview($associatedMediaReview) + public function setPositiveNotes($positiveNotes) { $types = [ - "\OpenActive\Models\SchemaOrg\Review", + "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\ListItem", + "\OpenActive\Models\SchemaOrg\ItemList", ]; - $associatedMediaReview = self::checkTypes($associatedMediaReview, $types); + $positiveNotes = self::checkTypes($positiveNotes, $types); - $this->associatedMediaReview = $associatedMediaReview; + $this->positiveNotes = $positiveNotes; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getReviewBody() + public function getAssociatedClaimReview() { - return $this->reviewBody; + return $this->associatedClaimReview; } /** - * @param string $reviewBody + * @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 setReviewBody($reviewBody) + public function setAssociatedClaimReview($associatedClaimReview) { $types = [ + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $reviewBody = self::checkTypes($reviewBody, $types); + $associatedClaimReview = self::checkTypes($associatedClaimReview, $types); - $this->reviewBody = $reviewBody; + $this->associatedClaimReview = $associatedClaimReview; } } diff --git a/src/Models/SchemaOrg/ReviewNewsArticle.php b/src/Models/SchemaOrg/ReviewNewsArticle.php index 5f009dbb..a6b4ed3b 100644 --- a/src/Models/SchemaOrg/ReviewNewsArticle.php +++ b/src/Models/SchemaOrg/ReviewNewsArticle.php @@ -5,7 +5,7 @@ /** * */ -class ReviewNewsArticle extends \OpenActive\Models\SchemaOrg\CriticReview +class ReviewNewsArticle extends \OpenActive\Models\SchemaOrg\NewsArticle { /** * @return string[]|null diff --git a/src/Models/SchemaOrg/Role.php b/src/Models/SchemaOrg/Role.php index 2ac3c878..d4123f2d 100644 --- a/src/Models/SchemaOrg/Role.php +++ b/src/Models/SchemaOrg/Role.php @@ -17,15 +17,23 @@ public static function getType() public static function fieldList() { $fields = [ + "roleName" => "roleName", "namedPosition" => "namedPosition", "startDate" => "startDate", "endDate" => "endDate", - "roleName" => "roleName", ]; return array_merge(parent::fieldList(), $fields); } + /** + * 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 string + */ + protected $roleName; + /** * 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'. * @@ -51,12 +59,28 @@ public static function fieldList() { protected $endDate; /** - * 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 string + * @return string */ - protected $roleName; + public function getRoleName() + { + return $this->roleName; + } + + /** + * @param string $roleName + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setRoleName($roleName) + { + $types = [ + "string", + ]; + + $roleName = self::checkTypes($roleName, $types); + + $this->roleName = $roleName; + } /** * @return string @@ -134,28 +158,4 @@ public function setEndDate($endDate) $this->endDate = $endDate; } - /** - * @return string - */ - public function getRoleName() - { - return $this->roleName; - } - - /** - * @param string $roleName - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setRoleName($roleName) - { - $types = [ - "string", - ]; - - $roleName = self::checkTypes($roleName, $types); - - $this->roleName = $roleName; - } - } diff --git a/src/Models/SchemaOrg/RsvpAction.php b/src/Models/SchemaOrg/RsvpAction.php index e75f683d..a8a96192 100644 --- a/src/Models/SchemaOrg/RsvpAction.php +++ b/src/Models/SchemaOrg/RsvpAction.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "rsvpResponse" => "rsvpResponse", "comment" => "comment", + "rsvpResponse" => "rsvpResponse", "additionalNumberOfGuests" => "additionalNumberOfGuests", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * The response (yes, no, maybe) to the RSVP. + * Comments, typically from users. * * - * @var \OpenActive\Enums\SchemaOrg\RsvpResponseType|null + * @var \OpenActive\Models\SchemaOrg\Comment|string */ - protected $rsvpResponse; + protected $comment; /** - * Comments, typically from users. + * The response (yes, no, maybe) to the RSVP. * * - * @var \OpenActive\Models\SchemaOrg\Comment|string + * @var \OpenActive\Enums\SchemaOrg\RsvpResponseType|null */ - protected $comment; + protected $rsvpResponse; /** * If responding yes, the number of guests who will attend in addition to the invitee. @@ -50,53 +50,53 @@ public static function fieldList() { protected $additionalNumberOfGuests; /** - * @return \OpenActive\Enums\SchemaOrg\RsvpResponseType|null + * @return \OpenActive\Models\SchemaOrg\Comment|string */ - public function getRsvpResponse() + public function getComment() { - return $this->rsvpResponse; + return $this->comment; } /** - * @param \OpenActive\Enums\SchemaOrg\RsvpResponseType|null $rsvpResponse + * @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 setRsvpResponse($rsvpResponse) + public function setComment($comment) { $types = [ - "\OpenActive\Enums\SchemaOrg\RsvpResponseType", - "null", + "\OpenActive\Models\SchemaOrg\Comment", + "string", ]; - $rsvpResponse = self::checkTypes($rsvpResponse, $types); + $comment = self::checkTypes($comment, $types); - $this->rsvpResponse = $rsvpResponse; + $this->comment = $comment; } /** - * @return \OpenActive\Models\SchemaOrg\Comment|string + * @return \OpenActive\Enums\SchemaOrg\RsvpResponseType|null */ - public function getComment() + public function getRsvpResponse() { - return $this->comment; + return $this->rsvpResponse; } /** - * @param \OpenActive\Models\SchemaOrg\Comment|string $comment + * @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 setComment($comment) + public function setRsvpResponse($rsvpResponse) { $types = [ - "\OpenActive\Models\SchemaOrg\Comment", - "string", + "\OpenActive\Enums\SchemaOrg\RsvpResponseType", + "null", ]; - $comment = self::checkTypes($comment, $types); + $rsvpResponse = self::checkTypes($rsvpResponse, $types); - $this->comment = $comment; + $this->rsvpResponse = $rsvpResponse; } /** diff --git a/src/Models/SchemaOrg/Schedule.php b/src/Models/SchemaOrg/Schedule.php index fbc813d2..cb1efd84 100644 --- a/src/Models/SchemaOrg/Schedule.php +++ b/src/Models/SchemaOrg/Schedule.php @@ -17,31 +17,43 @@ public static function getType() public static function fieldList() { $fields = [ - "scheduleTimezone" => "scheduleTimezone", - "startDate" => "startDate", "exceptDate" => "exceptDate", - "startTime" => "startTime", - "repeatCount" => "repeatCount", - "endDate" => "endDate", "repeatFrequency" => "repeatFrequency", - "duration" => "duration", - "byMonthDay" => "byMonthDay", + "startDate" => "startDate", "endTime" => "endTime", - "byMonth" => "byMonth", + "endDate" => "endDate", "byDay" => "byDay", "byMonthWeek" => "byMonthWeek", + "scheduleTimezone" => "scheduleTimezone", + "byMonth" => "byMonth", + "byMonthDay" => "byMonthDay", + "startTime" => "startTime", + "repeatCount" => "repeatCount", + "duration" => "duration", ]; 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 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 string + * @var Date|DateTime|null */ - protected $scheduleTimezone; + protected $exceptDate; + + /** + * 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 DateInterval|string|null + */ + protected $repeatFrequency; /** * The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). @@ -52,56 +64,52 @@ public static function fieldList() { protected $startDate; /** - * 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. + * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * - * @var Date|DateTime|null + * @var DateTime|string|null */ - protected $exceptDate; + protected $endTime; /** - * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * The end 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 $startTime; + protected $endDate; /** - * Defines the number of times a recurring [[Event]] will take place + * 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 int|null + * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null */ - protected $repeatCount; + protected $byDay; /** - * The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)). + * 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 Date|DateTime|null + * @var int|null */ - protected $endDate; + protected $byMonthWeek; /** - * 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. + * 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 DateInterval|string|null + * @var string */ - protected $repeatFrequency; + protected $scheduleTimezone; /** - * The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). + * Defines the month(s) of the year on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-12. January is 1. * * - * @var DateInterval|string|null + * @var int|null */ - protected $duration; + protected $byMonth; /** * Defines the day(s) of the month on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-31. @@ -112,59 +120,79 @@ public static function fieldList() { protected $byMonthDay; /** - * The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. + * The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions. * * * @var DateTime|string|null */ - protected $endTime; + protected $startTime; /** - * Defines the month(s) of the year on which a recurring [[Event]] takes place. Specified as an [[Integer]] between 1-12. January is 1. + * Defines the number of times a recurring [[Event]] will take place. * * * @var int|null */ - protected $byMonth; + protected $repeatCount; /** - * 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 duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). * * - * @var \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null + * @var DateInterval|string|null */ - protected $byDay; + protected $duration; /** - * 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 int|null + * @return Date|DateTime|null */ - protected $byMonthWeek; + public function getExceptDate() + { + return $this->exceptDate; + } /** - * @return string + * @param Date|DateTime|null $exceptDate + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function getScheduleTimezone() + public function setExceptDate($exceptDate) { - return $this->scheduleTimezone; + $types = [ + "Date", + "DateTime", + "null", + ]; + + $exceptDate = self::checkTypes($exceptDate, $types); + + $this->exceptDate = $exceptDate; } /** - * @param string $scheduleTimezone + * @return DateInterval|string|null + */ + public function getRepeatFrequency() + { + return $this->repeatFrequency; + } + + /** + * @param DateInterval|string|null $repeatFrequency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setScheduleTimezone($scheduleTimezone) + public function setRepeatFrequency($repeatFrequency) { $types = [ + "DateInterval", "string", + "null", ]; - $scheduleTimezone = self::checkTypes($scheduleTimezone, $types); + $repeatFrequency = self::checkTypes($repeatFrequency, $types); - $this->scheduleTimezone = $scheduleTimezone; + $this->repeatFrequency = $repeatFrequency; } /** @@ -194,158 +222,155 @@ public function setStartDate($startDate) } /** - * @return Date|DateTime|null + * @return DateTime|string|null */ - public function getExceptDate() + public function getEndTime() { - return $this->exceptDate; + return $this->endTime; } /** - * @param Date|DateTime|null $exceptDate + * @param DateTime|string|null $endTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setExceptDate($exceptDate) + public function setEndTime($endTime) { $types = [ - "Date", "DateTime", + "Time", "null", ]; - $exceptDate = self::checkTypes($exceptDate, $types); + $endTime = self::checkTypes($endTime, $types); - $this->exceptDate = $exceptDate; + $this->endTime = $endTime; } /** - * @return DateTime|string|null + * @return Date|DateTime|null */ - public function getStartTime() + public function getEndDate() { - return $this->startTime; + return $this->endDate; } /** - * @param DateTime|string|null $startTime + * @param Date|DateTime|null $endDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStartTime($startTime) + public function setEndDate($endDate) { $types = [ + "Date", "DateTime", - "Time", "null", ]; - $startTime = self::checkTypes($startTime, $types); + $endDate = self::checkTypes($endDate, $types); - $this->startTime = $startTime; + $this->endDate = $endDate; } /** - * @return int|null + * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null */ - public function getRepeatCount() + public function getByDay() { - return $this->repeatCount; + return $this->byDay; } /** - * @param int|null $repeatCount + * @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 setRepeatCount($repeatCount) + public function setByDay($byDay) { $types = [ - "int", + "\OpenActive\Enums\SchemaOrg\DayOfWeek", + "string", "null", ]; - $repeatCount = self::checkTypes($repeatCount, $types); + $byDay = self::checkTypes($byDay, $types); - $this->repeatCount = $repeatCount; + $this->byDay = $byDay; } /** - * @return Date|DateTime|null + * @return int|null */ - public function getEndDate() + public function getByMonthWeek() { - return $this->endDate; + return $this->byMonthWeek; } /** - * @param Date|DateTime|null $endDate + * @param int|null $byMonthWeek * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndDate($endDate) + public function setByMonthWeek($byMonthWeek) { $types = [ - "Date", - "DateTime", + "int", "null", ]; - $endDate = self::checkTypes($endDate, $types); + $byMonthWeek = self::checkTypes($byMonthWeek, $types); - $this->endDate = $endDate; + $this->byMonthWeek = $byMonthWeek; } /** - * @return DateInterval|string|null + * @return string */ - public function getRepeatFrequency() + public function getScheduleTimezone() { - return $this->repeatFrequency; + return $this->scheduleTimezone; } /** - * @param DateInterval|string|null $repeatFrequency + * @param string $scheduleTimezone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRepeatFrequency($repeatFrequency) + public function setScheduleTimezone($scheduleTimezone) { $types = [ - "DateInterval", "string", - "null", ]; - $repeatFrequency = self::checkTypes($repeatFrequency, $types); + $scheduleTimezone = self::checkTypes($scheduleTimezone, $types); - $this->repeatFrequency = $repeatFrequency; + $this->scheduleTimezone = $scheduleTimezone; } /** - * @return DateInterval|string|null + * @return int|null */ - public function getDuration() + public function getByMonth() { - return $this->duration; + return $this->byMonth; } /** - * @param DateInterval|string|null $duration + * @param int|null $byMonth * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDuration($duration) + public function setByMonth($byMonth) { $types = [ - "DateInterval", - "string", + "int", "null", ]; - $duration = self::checkTypes($duration, $types); + $byMonth = self::checkTypes($byMonth, $types); - $this->duration = $duration; + $this->byMonth = $byMonth; } /** @@ -376,17 +401,17 @@ public function setByMonthDay($byMonthDay) /** * @return DateTime|string|null */ - public function getEndTime() + public function getStartTime() { - return $this->endTime; + return $this->startTime; } /** - * @param DateTime|string|null $endTime + * @param DateTime|string|null $startTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEndTime($endTime) + public function setStartTime($startTime) { $types = [ "DateTime", @@ -394,85 +419,60 @@ public function setEndTime($endTime) "null", ]; - $endTime = self::checkTypes($endTime, $types); + $startTime = self::checkTypes($startTime, $types); - $this->endTime = $endTime; + $this->startTime = $startTime; } /** * @return int|null */ - public function getByMonth() + public function getRepeatCount() { - return $this->byMonth; + return $this->repeatCount; } /** - * @param int|null $byMonth + * @param int|null $repeatCount * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByMonth($byMonth) + public function setRepeatCount($repeatCount) { $types = [ "int", "null", ]; - $byMonth = self::checkTypes($byMonth, $types); + $repeatCount = self::checkTypes($repeatCount, $types); - $this->byMonth = $byMonth; + $this->repeatCount = $repeatCount; } /** - * @return \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null + * @return DateInterval|string|null */ - public function getByDay() + public function getDuration() { - return $this->byDay; + return $this->duration; } /** - * @param \OpenActive\Enums\SchemaOrg\DayOfWeek|string|null $byDay + * @param DateInterval|string|null $duration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setByDay($byDay) + public function setDuration($duration) { $types = [ - "\OpenActive\Enums\SchemaOrg\DayOfWeek", + "DateInterval", "string", "null", ]; - $byDay = self::checkTypes($byDay, $types); - - $this->byDay = $byDay; - } - - /** - * @return int|null - */ - public function getByMonthWeek() - { - return $this->byMonthWeek; - } - - /** - * @param int|null $byMonthWeek - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setByMonthWeek($byMonthWeek) - { - $types = [ - "int", - "null", - ]; - - $byMonthWeek = self::checkTypes($byMonthWeek, $types); + $duration = self::checkTypes($duration, $types); - $this->byMonthWeek = $byMonthWeek; + $this->duration = $duration; } } diff --git a/src/Models/SchemaOrg/ScreeningEvent.php b/src/Models/SchemaOrg/ScreeningEvent.php index 7ad91e7f..e2169195 100644 --- a/src/Models/SchemaOrg/ScreeningEvent.php +++ b/src/Models/SchemaOrg/ScreeningEvent.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "subtitleLanguage" => "subtitleLanguage", - "videoFormat" => "videoFormat", "workPresented" => "workPresented", + "videoFormat" => "videoFormat", ]; return array_merge(parent::fieldList(), $fields); @@ -29,28 +29,28 @@ public static function fieldList() { * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ protected $subtitleLanguage; /** - * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). + * The movie presented during this event. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Movie|string */ - protected $videoFormat; + protected $workPresented; /** - * The movie presented during this event. + * The type of screening or video broadcast used (e.g. IMAX, 3D, SD, HD, etc.). * * - * @var \OpenActive\Models\SchemaOrg\Movie|string + * @var string */ - protected $workPresented; + protected $videoFormat; /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ public function getSubtitleLanguage() { @@ -58,15 +58,15 @@ public function getSubtitleLanguage() } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage + * @param string|\OpenActive\Models\SchemaOrg\Language $subtitleLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSubtitleLanguage($subtitleLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); @@ -75,52 +75,52 @@ public function setSubtitleLanguage($subtitleLanguage) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Movie|string */ - public function getVideoFormat() + public function getWorkPresented() { - return $this->videoFormat; + return $this->workPresented; } /** - * @param string $videoFormat + * @param \OpenActive\Models\SchemaOrg\Movie|string $workPresented * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVideoFormat($videoFormat) + public function setWorkPresented($workPresented) { $types = [ + "\OpenActive\Models\SchemaOrg\Movie", "string", ]; - $videoFormat = self::checkTypes($videoFormat, $types); + $workPresented = self::checkTypes($workPresented, $types); - $this->videoFormat = $videoFormat; + $this->workPresented = $workPresented; } /** - * @return \OpenActive\Models\SchemaOrg\Movie|string + * @return string */ - public function getWorkPresented() + public function getVideoFormat() { - return $this->workPresented; + return $this->videoFormat; } /** - * @param \OpenActive\Models\SchemaOrg\Movie|string $workPresented + * @param string $videoFormat * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWorkPresented($workPresented) + public function setVideoFormat($videoFormat) { $types = [ - "\OpenActive\Models\SchemaOrg\Movie", "string", ]; - $workPresented = self::checkTypes($workPresented, $types); + $videoFormat = self::checkTypes($videoFormat, $types); - $this->workPresented = $workPresented; + $this->videoFormat = $videoFormat; } } diff --git a/src/Models/SchemaOrg/Seat.php b/src/Models/SchemaOrg/Seat.php index 02573abf..494c722f 100644 --- a/src/Models/SchemaOrg/Seat.php +++ b/src/Models/SchemaOrg/Seat.php @@ -19,8 +19,8 @@ public static function fieldList() { $fields = [ "seatingType" => "seatingType", "seatSection" => "seatSection", - "seatRow" => "seatRow", "seatNumber" => "seatNumber", + "seatRow" => "seatRow", ]; return array_merge(parent::fieldList(), $fields); @@ -30,7 +30,7 @@ public static function fieldList() { * The type/class of the seat. * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ protected $seatingType; @@ -43,23 +43,23 @@ public static function fieldList() { protected $seatSection; /** - * The row location of the reserved seat (e.g., B). + * The location of the reserved seat (e.g., 27). * * * @var string */ - protected $seatRow; + protected $seatNumber; /** - * The location of the reserved seat (e.g., 27). + * The row location of the reserved seat (e.g., B). * * * @var string */ - protected $seatNumber; + protected $seatRow; /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ public function getSeatingType() { @@ -67,15 +67,15 @@ public function getSeatingType() } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $seatingType + * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $seatingType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setSeatingType($seatingType) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", "string", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "null", ]; @@ -111,49 +111,49 @@ public function setSeatSection($seatSection) /** * @return string */ - public function getSeatRow() + public function getSeatNumber() { - return $this->seatRow; + return $this->seatNumber; } /** - * @param string $seatRow + * @param string $seatNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatRow($seatRow) + public function setSeatNumber($seatNumber) { $types = [ "string", ]; - $seatRow = self::checkTypes($seatRow, $types); + $seatNumber = self::checkTypes($seatNumber, $types); - $this->seatRow = $seatRow; + $this->seatNumber = $seatNumber; } /** * @return string */ - public function getSeatNumber() + public function getSeatRow() { - return $this->seatNumber; + return $this->seatRow; } /** - * @param string $seatNumber + * @param string $seatRow * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSeatNumber($seatNumber) + public function setSeatRow($seatRow) { $types = [ "string", ]; - $seatNumber = self::checkTypes($seatNumber, $types); + $seatRow = self::checkTypes($seatRow, $types); - $this->seatNumber = $seatNumber; + $this->seatRow = $seatRow; } } 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..335f6f8a 100644 --- a/src/Models/SchemaOrg/SendAction.php +++ b/src/Models/SchemaOrg/SendAction.php @@ -28,7 +28,7 @@ public static function fieldList() { * A sub property of participant. The participant who is at the receiving end of the action. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ protected $recipient; @@ -41,7 +41,7 @@ public static function fieldList() { protected $deliveryMethod; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ public function getRecipient() { @@ -49,17 +49,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRecipient($recipient) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; diff --git a/src/Models/SchemaOrg/Service.php b/src/Models/SchemaOrg/Service.php index 8c90bb1c..56a3a185 100644 --- a/src/Models/SchemaOrg/Service.php +++ b/src/Models/SchemaOrg/Service.php @@ -17,66 +17,60 @@ public static function getType() public static function fieldList() { $fields = [ - "review" => "review", - "award" => "award", - "serviceAudience" => "serviceAudience", - "category" => "category", - "hoursAvailable" => "hoursAvailable", - "audience" => "audience", + "isRelatedTo" => "isRelatedTo", + "slogan" => "slogan", "offers" => "offers", - "serviceOutput" => "serviceOutput", - "provider" => "provider", + "hoursAvailable" => "hoursAvailable", + "serviceArea" => "serviceArea", + "serviceType" => "serviceType", "termsOfService" => "termsOfService", - "providerMobility" => "providerMobility", + "brand" => "brand", + "serviceOutput" => "serviceOutput", + "award" => "award", "broker" => "broker", + "category" => "category", "aggregateRating" => "aggregateRating", "isSimilarTo" => "isSimilarTo", - "availableChannel" => "availableChannel", - "slogan" => "slogan", - "brand" => "brand", - "logo" => "logo", "produces" => "produces", - "serviceArea" => "serviceArea", - "serviceType" => "serviceType", - "areaServed" => "areaServed", - "isRelatedTo" => "isRelatedTo", "hasOfferCatalog" => "hasOfferCatalog", + "logo" => "logo", + "availableChannel" => "availableChannel", + "providerMobility" => "providerMobility", + "serviceAudience" => "serviceAudience", + "provider" => "provider", + "areaServed" => "areaServed", + "review" => "review", + "audience" => "audience", + "hasCertification" => "hasCertification", ]; return array_merge(parent::fieldList(), $fields); } /** - * A review of the item. + * A pointer to another, somehow related product (or multiple products). * * - * @var \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - protected $review; + protected $isRelatedTo; /** - * An award won by or for this item. + * A slogan or motto associated with the item. * * * @var string */ - protected $award; - - /** - * The audience eligible for this service. - * - * - * @var \OpenActive\Models\SchemaOrg\Audience|string - */ - protected $serviceAudience; + protected $slogan; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * 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|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - protected $category; + protected $offers; /** * The hours during which this service or contact is available. @@ -87,62 +81,69 @@ public static function fieldList() { protected $hoursAvailable; /** - * An intended audience, i.e. a group for whom something was created. + * The geographic area where the service is provided. * * - * @var \OpenActive\Models\SchemaOrg\Audience|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - protected $audience; + protected $serviceArea; /** - * An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. - * + * The type of service being offered, e.g. veterans' benefits, emergency relief, etc. * * - * @var \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @var string|\OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|null */ - protected $offers; + protected $serviceType; /** - * The tangible thing generated by the service, e.g. a passport, permit, etc. + * Human-readable terms of service documentation. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var string */ - protected $serviceOutput; + protected $termsOfService; /** - * 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 brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - protected $provider; + protected $brand; /** - * Human-readable terms of service documentation. + * The tangible thing generated by the service, e.g. a passport, permit, etc. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $termsOfService; + protected $serviceOutput; /** - * Indicates the mobility of a provided service (e.g. 'static', 'dynamic'). + * An award won by or for this item. * * * @var string */ - protected $providerMobility; + protected $award; /** * 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\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ protected $broker; + /** + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * + * + * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null + */ + protected $category; + /** * The overall rating, based on a collection of reviews or ratings, of the item. * @@ -155,190 +156,172 @@ public static function fieldList() { * A pointer to another, functionally similar product (or multiple products). * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ protected $isSimilarTo; /** - * A means of accessing the service (e.g. a phone bank, a web site, a location, etc.). + * The tangible thing generated by the service, e.g. a passport, permit, etc. * * - * @var \OpenActive\Models\SchemaOrg\ServiceChannel|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $availableChannel; + protected $produces; /** - * A slogan or motto associated with the item. + * Indicates an OfferCatalog listing for this Organization, Person, or Service. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - protected $slogan; + protected $hasOfferCatalog; /** - * The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person. + * An associated logo. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $brand; + protected $logo; /** - * An associated logo. + * A means of accessing the service (e.g. a phone bank, a web site, a location, etc.). * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var \OpenActive\Models\SchemaOrg\ServiceChannel|string */ - protected $logo; + protected $availableChannel; /** - * The tangible thing generated by the service, e.g. a passport, permit, etc. + * Indicates the mobility of a provided service (e.g. 'static', 'dynamic'). * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var string */ - protected $produces; + protected $providerMobility; /** - * The geographic area where the service is provided. + * The audience eligible for this service. * * - * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - protected $serviceArea; + protected $serviceAudience; /** - * The type of service being offered, e.g. veterans' benefits, emergency relief, etc. + * The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. * * - * @var \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $serviceType; + protected $provider; /** * The geographic area where a service or offered item is provided. * * - * @var \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @var \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ protected $areaServed; /** - * A pointer to another, somehow related product (or multiple products). + * A review of the item. * * - * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @var \OpenActive\Models\SchemaOrg\Review|string */ - protected $isRelatedTo; + protected $review; /** - * Indicates an OfferCatalog listing for this Organization, Person, or Service. + * An intended audience, i.e. a group for whom something was created. * * - * @var \OpenActive\Models\SchemaOrg\OfferCatalog|string - */ - protected $hasOfferCatalog; - - /** - * @return \OpenActive\Models\SchemaOrg\Review|string + * @var \OpenActive\Models\SchemaOrg\Audience|string */ - public function getReview() - { - return $this->review; - } + protected $audience; /** - * @param \OpenActive\Models\SchemaOrg\Review|string $review - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * Certification information about a product, organization, service, place, or person. + * + * + * @var \OpenActive\Models\SchemaOrg\Certification|string */ - public function setReview($review) - { - $types = [ - "\OpenActive\Models\SchemaOrg\Review", - "string", - ]; - - $review = self::checkTypes($review, $types); - - $this->review = $review; - } + protected $hasCertification; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ - public function getAward() + public function getIsRelatedTo() { - return $this->award; + return $this->isRelatedTo; } /** - * @param string $award + * @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 setAward($award) + public function setIsRelatedTo($isRelatedTo) { $types = [ + "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $award = self::checkTypes($award, $types); + $isRelatedTo = self::checkTypes($isRelatedTo, $types); - $this->award = $award; + $this->isRelatedTo = $isRelatedTo; } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return string */ - public function getServiceAudience() + public function getSlogan() { - return $this->serviceAudience; + return $this->slogan; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $serviceAudience + * @param string $slogan * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceAudience($serviceAudience) + public function setSlogan($slogan) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $serviceAudience = self::checkTypes($serviceAudience, $types); + $slogan = self::checkTypes($slogan, $types); - $this->serviceAudience = $serviceAudience; + $this->slogan = $slogan; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ - public function getCategory() + public function getOffers() { - return $this->category; + return $this->offers; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @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 setCategory($category) + public function setOffers($offers) { $types = [ + "\OpenActive\Models\SchemaOrg\Offer", + "\OpenActive\Models\SchemaOrg\Demand", "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", - "null", ]; - $category = self::checkTypes($category, $types); + $offers = self::checkTypes($offers, $types); - $this->category = $category; + $this->offers = $offers; } /** @@ -367,157 +350,159 @@ public function setHoursAvailable($hoursAvailable) } /** - * @return \OpenActive\Models\SchemaOrg\Audience|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string */ - public function getAudience() + public function getServiceArea() { - return $this->audience; + return $this->serviceArea; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $audience + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string $serviceArea * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAudience($audience) + public function setServiceArea($serviceArea) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", ]; - $audience = self::checkTypes($audience, $types); + $serviceArea = self::checkTypes($serviceArea, $types); - $this->audience = $audience; + $this->serviceArea = $serviceArea; } /** - * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string + * @return string|\OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|null */ - public function getOffers() + public function getServiceType() { - return $this->offers; + return $this->serviceType; } /** - * @param \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string $offers + * @param string|\OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|null $serviceType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOffers($offers) + public function setServiceType($serviceType) { $types = [ - "\OpenActive\Models\SchemaOrg\Offer", - "\OpenActive\Models\SchemaOrg\Demand", "string", + "\OpenActive\Enums\SchemaOrg\GovernmentBenefitsType", + "null", ]; - $offers = self::checkTypes($offers, $types); + $serviceType = self::checkTypes($serviceType, $types); - $this->offers = $offers; + $this->serviceType = $serviceType; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return string */ - public function getServiceOutput() + public function getTermsOfService() { - return $this->serviceOutput; + return $this->termsOfService; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $serviceOutput + * @param string $termsOfService * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceOutput($serviceOutput) + public function setTermsOfService($termsOfService) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $serviceOutput = self::checkTypes($serviceOutput, $types); + $termsOfService = self::checkTypes($termsOfService, $types); - $this->serviceOutput = $serviceOutput; + $this->termsOfService = $termsOfService; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string */ - public function getProvider() + public function getBrand() { - return $this->provider; + return $this->brand; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProvider($provider) + public function setBrand($brand) { $types = [ "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Brand", "string", ]; - $provider = self::checkTypes($provider, $types); + $brand = self::checkTypes($brand, $types); - $this->provider = $provider; + $this->brand = $brand; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getTermsOfService() + public function getServiceOutput() { - return $this->termsOfService; + return $this->serviceOutput; } /** - * @param string $termsOfService + * @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 setTermsOfService($termsOfService) + public function setServiceOutput($serviceOutput) { $types = [ + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $termsOfService = self::checkTypes($termsOfService, $types); + $serviceOutput = self::checkTypes($serviceOutput, $types); - $this->termsOfService = $termsOfService; + $this->serviceOutput = $serviceOutput; } /** * @return string */ - public function getProviderMobility() + public function getAward() { - return $this->providerMobility; + return $this->award; } /** - * @param string $providerMobility + * @param string $award * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProviderMobility($providerMobility) + public function setAward($award) { $types = [ "string", ]; - $providerMobility = self::checkTypes($providerMobility, $types); + $award = self::checkTypes($award, $types); - $this->providerMobility = $providerMobility; + $this->award = $award; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ public function getBroker() { @@ -525,15 +510,15 @@ public function getBroker() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $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\Person", "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; @@ -542,6 +527,34 @@ public function setBroker($broker) $this->broker = $broker; } + /** + * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null + */ + public function getCategory() + { + return $this->category; + } + + /** + * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setCategory($category) + { + $types = [ + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Thing", + "string", + "null", + ]; + + $category = self::checkTypes($category, $types); + + $this->category = $category; + } + /** * @return \OpenActive\Models\SchemaOrg\AggregateRating|string */ @@ -568,7 +581,7 @@ public function setAggregateRating($aggregateRating) } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string */ public function getIsSimilarTo() { @@ -576,15 +589,15 @@ public function getIsSimilarTo() } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isSimilarTo + * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $isSimilarTo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setIsSimilarTo($isSimilarTo) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Service", "string", ]; @@ -594,185 +607,182 @@ public function setIsSimilarTo($isSimilarTo) } /** - * @return \OpenActive\Models\SchemaOrg\ServiceChannel|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getAvailableChannel() + public function getProduces() { - return $this->availableChannel; + return $this->produces; } /** - * @param \OpenActive\Models\SchemaOrg\ServiceChannel|string $availableChannel + * @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 setAvailableChannel($availableChannel) + public function setProduces($produces) { $types = [ - "\OpenActive\Models\SchemaOrg\ServiceChannel", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $availableChannel = self::checkTypes($availableChannel, $types); + $produces = self::checkTypes($produces, $types); - $this->availableChannel = $availableChannel; + $this->produces = $produces; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string */ - public function getSlogan() + public function getHasOfferCatalog() { - return $this->slogan; + return $this->hasOfferCatalog; } /** - * @param string $slogan + * @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 setSlogan($slogan) + public function setHasOfferCatalog($hasOfferCatalog) { $types = [ + "\OpenActive\Models\SchemaOrg\OfferCatalog", "string", ]; - $slogan = self::checkTypes($slogan, $types); + $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); - $this->slogan = $slogan; + $this->hasOfferCatalog = $hasOfferCatalog; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getBrand() + public function getLogo() { - return $this->brand; + return $this->logo; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Brand|string $brand + * @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 setBrand($brand) + public function setLogo($logo) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Brand", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $brand = self::checkTypes($brand, $types); + $logo = self::checkTypes($logo, $types); - $this->brand = $brand; + $this->logo = $logo; } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\ServiceChannel|string */ - public function getLogo() + public function getAvailableChannel() { - return $this->logo; + return $this->availableChannel; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $logo + * @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 setLogo($logo) + public function setAvailableChannel($availableChannel) { $types = [ + "\OpenActive\Models\SchemaOrg\ServiceChannel", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $logo = self::checkTypes($logo, $types); + $availableChannel = self::checkTypes($availableChannel, $types); - $this->logo = $logo; + $this->availableChannel = $availableChannel; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return string */ - public function getProduces() + public function getProviderMobility() { - return $this->produces; + return $this->providerMobility; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $produces + * @param string $providerMobility * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProduces($produces) + public function setProviderMobility($providerMobility) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $produces = self::checkTypes($produces, $types); + $providerMobility = self::checkTypes($providerMobility, $types); - $this->produces = $produces; + $this->providerMobility = $providerMobility; } /** - * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getServiceArea() + public function getServiceAudience() { - return $this->serviceArea; + return $this->serviceAudience; } /** - * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\Place|string $serviceArea + * @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 setServiceArea($serviceArea) + public function setServiceAudience($serviceAudience) { $types = [ - "\OpenActive\Models\SchemaOrg\GeoShape", - "\OpenActive\Models\SchemaOrg\AdministrativeArea", - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $serviceArea = self::checkTypes($serviceArea, $types); + $serviceAudience = self::checkTypes($serviceAudience, $types); - $this->serviceArea = $serviceArea; + $this->serviceAudience = $serviceAudience; } /** - * @return \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getServiceType() + public function getProvider() { - return $this->serviceType; + return $this->provider; } /** - * @param \OpenActive\Enums\SchemaOrg\GovernmentBenefitsType|string|null $serviceType + * @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 setServiceType($serviceType) + public function setProvider($provider) { $types = [ - "\OpenActive\Enums\SchemaOrg\GovernmentBenefitsType", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $serviceType = self::checkTypes($serviceType, $types); + $provider = self::checkTypes($provider, $types); - $this->serviceType = $serviceType; + $this->provider = $provider; } /** - * @return \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place + * @return \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place */ public function getAreaServed() { @@ -780,15 +790,15 @@ public function getAreaServed() } /** - * @param \OpenActive\Models\SchemaOrg\AdministrativeArea|\OpenActive\Models\SchemaOrg\GeoShape|string|\OpenActive\Models\SchemaOrg\Place $areaServed + * @param \OpenActive\Models\SchemaOrg\GeoShape|\OpenActive\Models\SchemaOrg\AdministrativeArea|string|\OpenActive\Models\SchemaOrg\Place $areaServed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setAreaServed($areaServed) { $types = [ - "\OpenActive\Models\SchemaOrg\AdministrativeArea", "\OpenActive\Models\SchemaOrg\GeoShape", + "\OpenActive\Models\SchemaOrg\AdministrativeArea", "string", "\OpenActive\Models\SchemaOrg\Place", ]; @@ -799,54 +809,78 @@ public function setAreaServed($areaServed) } /** - * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string + * @return \OpenActive\Models\SchemaOrg\Review|string */ - public function getIsRelatedTo() + public function getReview() { - return $this->isRelatedTo; + return $this->review; } /** - * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $isRelatedTo + * @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 setIsRelatedTo($isRelatedTo) + public function setReview($review) { $types = [ - "\OpenActive\Models\SchemaOrg\Service", - "\OpenActive\Models\SchemaOrg\Product", + "\OpenActive\Models\SchemaOrg\Review", "string", ]; - $isRelatedTo = self::checkTypes($isRelatedTo, $types); + $review = self::checkTypes($review, $types); - $this->isRelatedTo = $isRelatedTo; + $this->review = $review; } /** - * @return \OpenActive\Models\SchemaOrg\OfferCatalog|string + * @return \OpenActive\Models\SchemaOrg\Audience|string */ - public function getHasOfferCatalog() + public function getAudience() { - return $this->hasOfferCatalog; + return $this->audience; } /** - * @param \OpenActive\Models\SchemaOrg\OfferCatalog|string $hasOfferCatalog + * @param \OpenActive\Models\SchemaOrg\Audience|string $audience * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasOfferCatalog($hasOfferCatalog) + public function setAudience($audience) { $types = [ - "\OpenActive\Models\SchemaOrg\OfferCatalog", + "\OpenActive\Models\SchemaOrg\Audience", "string", ]; - $hasOfferCatalog = self::checkTypes($hasOfferCatalog, $types); + $audience = self::checkTypes($audience, $types); - $this->hasOfferCatalog = $hasOfferCatalog; + $this->audience = $audience; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Certification|string + */ + public function getHasCertification() + { + return $this->hasCertification; + } + + /** + * @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 setHasCertification($hasCertification) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Certification", + "string", + ]; + + $hasCertification = self::checkTypes($hasCertification, $types); + + $this->hasCertification = $hasCertification; } } diff --git a/src/Models/SchemaOrg/ServiceChannel.php b/src/Models/SchemaOrg/ServiceChannel.php index cc65836f..3a726905 100644 --- a/src/Models/SchemaOrg/ServiceChannel.php +++ b/src/Models/SchemaOrg/ServiceChannel.php @@ -18,13 +18,13 @@ public static function getType() public static function fieldList() { $fields = [ "providesService" => "providesService", + "availableLanguage" => "availableLanguage", + "serviceLocation" => "serviceLocation", "serviceSmsNumber" => "serviceSmsNumber", - "servicePostalAddress" => "servicePostalAddress", + "processingTime" => "processingTime", "serviceUrl" => "serviceUrl", + "servicePostalAddress" => "servicePostalAddress", "servicePhone" => "servicePhone", - "availableLanguage" => "availableLanguage", - "processingTime" => "processingTime", - "serviceLocation" => "serviceLocation", ]; return array_merge(parent::fieldList(), $fields); @@ -39,60 +39,60 @@ public static function fieldList() { protected $providesService; /** - * The number to access the service by text message. + * 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\ContactPoint|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $serviceSmsNumber; + protected $availableLanguage; /** - * The address for accessing the service by mail. + * The location (e.g. civic structure, local business, etc.) where a person can go to access the service. * * - * @var \OpenActive\Models\SchemaOrg\PostalAddress|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $servicePostalAddress; + protected $serviceLocation; /** - * The website to access the service. + * The number to access the service by text message. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $serviceUrl; + protected $serviceSmsNumber; /** - * The phone number to use to access the service. + * Estimated processing time for the service using this channel. * * - * @var \OpenActive\Models\SchemaOrg\ContactPoint|string + * @var DateInterval|string|null */ - protected $servicePhone; + protected $processingTime; /** - * A language someone may use with or at the item, service or place. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]] + * The website to access the service. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var string */ - protected $availableLanguage; + protected $serviceUrl; /** - * Estimated processing time for the service using this channel. + * The address for accessing the service by mail. * * - * @var DateInterval|string|null + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string */ - protected $processingTime; + protected $servicePostalAddress; /** - * The location (e.g. civic structure, local business, etc.) where a person can go to access the service. + * The phone number to use to access the service. * * - * @var \OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\ContactPoint|string */ - protected $serviceLocation; + protected $servicePhone; /** * @return \OpenActive\Models\SchemaOrg\Service|string @@ -120,178 +120,178 @@ public function setProvidesService($providesService) } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getServiceSmsNumber() + public function getAvailableLanguage() { - return $this->serviceSmsNumber; + return $this->availableLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $serviceSmsNumber + * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceSmsNumber($serviceSmsNumber) + public function setAvailableLanguage($availableLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $serviceSmsNumber = self::checkTypes($serviceSmsNumber, $types); + $availableLanguage = self::checkTypes($availableLanguage, $types); - $this->serviceSmsNumber = $serviceSmsNumber; + $this->availableLanguage = $availableLanguage; } /** - * @return \OpenActive\Models\SchemaOrg\PostalAddress|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getServicePostalAddress() + public function getServiceLocation() { - return $this->servicePostalAddress; + return $this->serviceLocation; } /** - * @param \OpenActive\Models\SchemaOrg\PostalAddress|string $servicePostalAddress + * @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 setServicePostalAddress($servicePostalAddress) + public function setServiceLocation($serviceLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\PostalAddress", + "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $servicePostalAddress = self::checkTypes($servicePostalAddress, $types); + $serviceLocation = self::checkTypes($serviceLocation, $types); - $this->servicePostalAddress = $servicePostalAddress; + $this->serviceLocation = $serviceLocation; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getServiceUrl() + public function getServiceSmsNumber() { - return $this->serviceUrl; + return $this->serviceSmsNumber; } /** - * @param string $serviceUrl + * @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 setServiceUrl($serviceUrl) + public function setServiceSmsNumber($serviceSmsNumber) { $types = [ + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $serviceUrl = self::checkTypes($serviceUrl, $types); + $serviceSmsNumber = self::checkTypes($serviceSmsNumber, $types); - $this->serviceUrl = $serviceUrl; + $this->serviceSmsNumber = $serviceSmsNumber; } /** - * @return \OpenActive\Models\SchemaOrg\ContactPoint|string + * @return DateInterval|string|null */ - public function getServicePhone() + public function getProcessingTime() { - return $this->servicePhone; + return $this->processingTime; } /** - * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $servicePhone + * @param DateInterval|string|null $processingTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServicePhone($servicePhone) + public function setProcessingTime($processingTime) { $types = [ - "\OpenActive\Models\SchemaOrg\ContactPoint", + "DateInterval", "string", + "null", ]; - $servicePhone = self::checkTypes($servicePhone, $types); + $processingTime = self::checkTypes($processingTime, $types); - $this->servicePhone = $servicePhone; + $this->processingTime = $processingTime; } /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return string */ - public function getAvailableLanguage() + public function getServiceUrl() { - return $this->availableLanguage; + return $this->serviceUrl; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage + * @param string $serviceUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableLanguage($availableLanguage) + public function setServiceUrl($serviceUrl) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Language", ]; - $availableLanguage = self::checkTypes($availableLanguage, $types); + $serviceUrl = self::checkTypes($serviceUrl, $types); - $this->availableLanguage = $availableLanguage; + $this->serviceUrl = $serviceUrl; } /** - * @return DateInterval|string|null + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string */ - public function getProcessingTime() + public function getServicePostalAddress() { - return $this->processingTime; + return $this->servicePostalAddress; } /** - * @param DateInterval|string|null $processingTime + * @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 setProcessingTime($processingTime) + public function setServicePostalAddress($servicePostalAddress) { $types = [ - "DateInterval", + "\OpenActive\Models\SchemaOrg\PostalAddress", "string", - "null", ]; - $processingTime = self::checkTypes($processingTime, $types); + $servicePostalAddress = self::checkTypes($servicePostalAddress, $types); - $this->processingTime = $processingTime; + $this->servicePostalAddress = $servicePostalAddress; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\ContactPoint|string */ - public function getServiceLocation() + public function getServicePhone() { - return $this->serviceLocation; + return $this->servicePhone; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $serviceLocation + * @param \OpenActive\Models\SchemaOrg\ContactPoint|string $servicePhone * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setServiceLocation($serviceLocation) + public function setServicePhone($servicePhone) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\ContactPoint", "string", ]; - $serviceLocation = self::checkTypes($serviceLocation, $types); + $servicePhone = self::checkTypes($servicePhone, $types); - $this->serviceLocation = $serviceLocation; + $this->servicePhone = $servicePhone; } } diff --git a/src/Models/SchemaOrg/ShippingDeliveryTime.php b/src/Models/SchemaOrg/ShippingDeliveryTime.php index b0fe0b81..7a3bb8ff 100644 --- a/src/Models/SchemaOrg/ShippingDeliveryTime.php +++ b/src/Models/SchemaOrg/ShippingDeliveryTime.php @@ -17,145 +17,145 @@ public static function getType() public static function fieldList() { $fields = [ - "transitTime" => "transitTime", - "businessDays" => "businessDays", - "handlingTime" => "handlingTime", "cutoffTime" => "cutoffTime", + "handlingTime" => "handlingTime", + "businessDays" => "businessDays", + "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). + * Order cutoff time allows merchants to describe the time after which they will no longer process orders received on that day. For orders processed after cutoff time, one day gets added to the delivery time estimate. This property is expected to be most typically used via the [[ShippingRateSettings]] publication pattern. The time is indicated using the ISO-8601 Time format, e.g. "23:30:00-05:00" would represent 6:30 pm Eastern Standard Time (EST) which is 5 hours behind Coordinated Universal Time (UTC). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string|null */ - protected $transitTime; + protected $cutoffTime; /** - * Days of the week when the merchant typically operates, indicated via opening hours markup. + * The typical delay between the receipt of the order and the goods either leaving the warehouse or being prepared for pickup, in case the delivery method is on site pickup. Typical properties: minValue, maxValue, unitCode (d for DAY). This is by common convention assumed to mean business days (if a unitCode is used, coded as "d"), i.e. only counting days when the business normally operates. * * - * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $businessDays; + protected $handlingTime; /** - * 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. + * Days of the week when the merchant typically operates, indicated via opening hours markup. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - protected $handlingTime; + 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). + * The typical delay the order has been sent for delivery and the goods reach the final customer. Typical properties: minValue, maxValue, unitCode (d for DAY). * * - * @var string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $cutoffTime; + protected $transitTime; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string|null */ - public function getTransitTime() + public function getCutoffTime() { - return $this->transitTime; + return $this->cutoffTime; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $transitTime + * @param string|null $cutoffTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTransitTime($transitTime) + public function setCutoffTime($cutoffTime) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Time", + "null", ]; - $transitTime = self::checkTypes($transitTime, $types); + $cutoffTime = self::checkTypes($cutoffTime, $types); - $this->transitTime = $transitTime; + $this->cutoffTime = $cutoffTime; } /** - * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getBusinessDays() + public function getHandlingTime() { - return $this->businessDays; + return $this->handlingTime; } /** - * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $businessDays + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $handlingTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBusinessDays($businessDays) + public function setHandlingTime($handlingTime) { $types = [ - "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $businessDays = self::checkTypes($businessDays, $types); + $handlingTime = self::checkTypes($handlingTime, $types); - $this->businessDays = $businessDays; + $this->handlingTime = $handlingTime; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string */ - public function getHandlingTime() + public function getBusinessDays() { - return $this->handlingTime; + return $this->businessDays; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $handlingTime + * @param \OpenActive\Models\SchemaOrg\OpeningHoursSpecification|string $businessDays * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHandlingTime($handlingTime) + public function setBusinessDays($businessDays) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\OpeningHoursSpecification", "string", ]; - $handlingTime = self::checkTypes($handlingTime, $types); + $businessDays = self::checkTypes($businessDays, $types); - $this->handlingTime = $handlingTime; + $this->businessDays = $businessDays; } /** - * @return string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getCutoffTime() + public function getTransitTime() { - return $this->cutoffTime; + return $this->transitTime; } /** - * @param string|null $cutoffTime + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $transitTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCutoffTime($cutoffTime) + public function setTransitTime($transitTime) { $types = [ - "Time", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "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..db3ca3a4 100644 --- a/src/Models/SchemaOrg/ShippingRateSettings.php +++ b/src/Models/SchemaOrg/ShippingRateSettings.php @@ -17,40 +17,40 @@ public static function getType() public static function fieldList() { $fields = [ - "shippingDestination" => "shippingDestination", - "doesNotShip" => "doesNotShip", + "shippingRate" => "shippingRate", "shippingLabel" => "shippingLabel", + "shippingDestination" => "shippingDestination", "isUnlabelledFallback" => "isUnlabelledFallback", - "shippingRate" => "shippingRate", "freeShippingThreshold" => "freeShippingThreshold", + "doesNotShip" => "doesNotShip", ]; return array_merge(parent::fieldList(), $fields); } /** - * indicates (possibly multiple) shipping destinations. These can be defined in several ways e.g. postalCode ranges. + * The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate. * * - * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - protected $shippingDestination; + protected $shippingRate; /** - * Indicates when shipping to a particular [[shippingDestination]] is not available. + * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). * * - * @var bool|null + * @var string */ - protected $doesNotShip; + protected $shippingLabel; /** - * Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference). + * indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - protected $shippingLabel; + protected $shippingDestination; /** * This can be marked 'true' to indicate that some published [[DeliveryTimeSettings]] or [[ShippingRateSettings]] are intended to apply to all [[OfferShippingDetails]] published by the same merchant, when referenced by a [[shippingSettingsLink]] in those settings. It is not meaningful to use a 'true' value for this property alongside a transitTimeLabel (for [[DeliveryTimeSettings]]) or shippingLabel (for [[ShippingRateSettings]]), since this property is for use with unlabelled settings. @@ -61,93 +61,93 @@ 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. + * A monetary value above (or at) which the shipping rate becomes free. Intended to be used via an [[OfferShippingDetails]] with [[shippingSettingsLink]] matching this [[ShippingRateSettings]]. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string */ - protected $shippingRate; + protected $freeShippingThreshold; /** - * 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]]. + * Indicates when shipping to a particular [[shippingDestination]] is not available. * * - * @var \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string + * @var bool|null */ - protected $freeShippingThreshold; + protected $doesNotShip; /** - * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string */ - public function getShippingDestination() + public function getShippingRate() { - return $this->shippingDestination; + return $this->shippingRate; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingDestination + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingDestination($shippingDestination) + public function setShippingRate($shippingRate) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedRegion", + "\OpenActive\Models\SchemaOrg\MonetaryAmount", "string", ]; - $shippingDestination = self::checkTypes($shippingDestination, $types); + $shippingRate = self::checkTypes($shippingRate, $types); - $this->shippingDestination = $shippingDestination; + $this->shippingRate = $shippingRate; } /** - * @return bool|null + * @return string */ - public function getDoesNotShip() + public function getShippingLabel() { - return $this->doesNotShip; + return $this->shippingLabel; } /** - * @param bool|null $doesNotShip + * @param string $shippingLabel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDoesNotShip($doesNotShip) + public function setShippingLabel($shippingLabel) { $types = [ - "bool", - "null", + "string", ]; - $doesNotShip = self::checkTypes($doesNotShip, $types); + $shippingLabel = self::checkTypes($shippingLabel, $types); - $this->doesNotShip = $doesNotShip; + $this->shippingLabel = $shippingLabel; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\DefinedRegion|string */ - public function getShippingLabel() + public function getShippingDestination() { - return $this->shippingLabel; + return $this->shippingDestination; } /** - * @param string $shippingLabel + * @param \OpenActive\Models\SchemaOrg\DefinedRegion|string $shippingDestination * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingLabel($shippingLabel) + public function setShippingDestination($shippingDestination) { $types = [ + "\OpenActive\Models\SchemaOrg\DefinedRegion", "string", ]; - $shippingLabel = self::checkTypes($shippingLabel, $types); + $shippingDestination = self::checkTypes($shippingDestination, $types); - $this->shippingLabel = $shippingLabel; + $this->shippingDestination = $shippingDestination; } /** @@ -176,54 +176,54 @@ public function setIsUnlabelledFallback($isUnlabelledFallback) } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|string + * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string */ - public function getShippingRate() + public function getFreeShippingThreshold() { - return $this->shippingRate; + return $this->freeShippingThreshold; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|string $shippingRate + * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string $freeShippingThreshold * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setShippingRate($shippingRate) + public function setFreeShippingThreshold($freeShippingThreshold) { $types = [ "\OpenActive\Models\SchemaOrg\MonetaryAmount", + "\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification", "string", ]; - $shippingRate = self::checkTypes($shippingRate, $types); + $freeShippingThreshold = self::checkTypes($freeShippingThreshold, $types); - $this->shippingRate = $shippingRate; + $this->freeShippingThreshold = $freeShippingThreshold; } /** - * @return \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string + * @return bool|null */ - public function getFreeShippingThreshold() + public function getDoesNotShip() { - return $this->freeShippingThreshold; + return $this->doesNotShip; } /** - * @param \OpenActive\Models\SchemaOrg\MonetaryAmount|\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification|string $freeShippingThreshold + * @param bool|null $doesNotShip * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFreeShippingThreshold($freeShippingThreshold) + public function setDoesNotShip($doesNotShip) { $types = [ - "\OpenActive\Models\SchemaOrg\MonetaryAmount", - "\OpenActive\Models\SchemaOrg\DeliveryChargeSpecification", - "string", + "bool", + "null", ]; - $freeShippingThreshold = self::checkTypes($freeShippingThreshold, $types); + $doesNotShip = self::checkTypes($doesNotShip, $types); - $this->freeShippingThreshold = $freeShippingThreshold; + $this->doesNotShip = $doesNotShip; } } diff --git a/src/Models/SchemaOrg/SingleFamilyResidence.php b/src/Models/SchemaOrg/SingleFamilyResidence.php index d250af9d..435a8ef8 100644 --- a/src/Models/SchemaOrg/SingleFamilyResidence.php +++ b/src/Models/SchemaOrg/SingleFamilyResidence.php @@ -35,7 +35,7 @@ public static function fieldList() { /** * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). - * Typical unit code(s): C62 for person + * Typical unit code(s): C62 for person. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string diff --git a/src/Models/SchemaOrg/SizeSpecification.php b/src/Models/SchemaOrg/SizeSpecification.php index 405d7111..4184c456 100644 --- a/src/Models/SchemaOrg/SizeSpecification.php +++ b/src/Models/SchemaOrg/SizeSpecification.php @@ -18,66 +18,66 @@ public static function getType() public static function fieldList() { $fields = [ "sizeGroup" => "sizeGroup", + "suggestedGender" => "suggestedGender", "suggestedMeasurement" => "suggestedMeasurement", - "suggestedAge" => "suggestedAge", - "hasMeasurement" => "hasMeasurement", "sizeSystem" => "sizeSystem", - "suggestedGender" => "suggestedGender", + "hasMeasurement" => "hasMeasurement", + "suggestedAge" => "suggestedAge", ]; 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" + * The size group (also known as "size type") for a product's size. Size groups are common in the fashion industry to define size segments and suggested audiences for wearable products. Multiple values can be combined, for example "men's big and tall", "petite maternity" or "regular". * * - * @var string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null + * @var \OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|string|null */ protected $sizeGroup; /** - * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. + * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string|\OpenActive\Enums\SchemaOrg\GenderType|null */ - protected $suggestedMeasurement; + protected $suggestedGender; /** - * The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers. + * A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $suggestedAge; + protected $suggestedMeasurement; /** - * 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 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 string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null */ - protected $hasMeasurement; + protected $sizeSystem; /** - * 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"). + * 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\SizeSystemEnumeration|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $sizeSystem; + protected $hasMeasurement; /** - * The suggested gender of the intended person or audience, for example "male", "female", or "unisex". + * 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\Enums\SchemaOrg\GenderType|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $suggestedGender; + protected $suggestedAge; /** - * @return string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null + * @return \OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|string|null */ public function getSizeGroup() { @@ -85,15 +85,15 @@ public function getSizeGroup() } /** - * @param string|\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration|null $sizeGroup + * @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 setSizeGroup($sizeGroup) { $types = [ - "string", "\OpenActive\Enums\SchemaOrg\SizeGroupEnumeration", + "string", "null", ]; @@ -103,130 +103,130 @@ public function setSizeGroup($sizeGroup) } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string|\OpenActive\Enums\SchemaOrg\GenderType|null */ - public function getSuggestedMeasurement() + public function getSuggestedGender() { - return $this->suggestedMeasurement; + return $this->suggestedGender; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedMeasurement + * @param string|\OpenActive\Enums\SchemaOrg\GenderType|null $suggestedGender * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSuggestedMeasurement($suggestedMeasurement) + public function setSuggestedGender($suggestedGender) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "\OpenActive\Enums\SchemaOrg\GenderType", + "null", ]; - $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); + $suggestedGender = self::checkTypes($suggestedGender, $types); - $this->suggestedMeasurement = $suggestedMeasurement; + $this->suggestedGender = $suggestedGender; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSuggestedAge() + public function getSuggestedMeasurement() { - return $this->suggestedAge; + return $this->suggestedMeasurement; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $suggestedAge + * @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 setSuggestedAge($suggestedAge) + public function setSuggestedMeasurement($suggestedMeasurement) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $suggestedAge = self::checkTypes($suggestedAge, $types); + $suggestedMeasurement = self::checkTypes($suggestedMeasurement, $types); - $this->suggestedAge = $suggestedAge; + $this->suggestedMeasurement = $suggestedMeasurement; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null */ - public function getHasMeasurement() + public function getSizeSystem() { - return $this->hasMeasurement; + return $this->sizeSystem; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $hasMeasurement + * @param string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null $sizeSystem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasMeasurement($hasMeasurement) + public function setSizeSystem($sizeSystem) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration", + "null", ]; - $hasMeasurement = self::checkTypes($hasMeasurement, $types); + $sizeSystem = self::checkTypes($sizeSystem, $types); - $this->hasMeasurement = $hasMeasurement; + $this->sizeSystem = $sizeSystem; } /** - * @return string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSizeSystem() + public function getHasMeasurement() { - return $this->sizeSystem; + return $this->hasMeasurement; } /** - * @param string|\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration|null $sizeSystem + * @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 setSizeSystem($sizeSystem) + public function setHasMeasurement($hasMeasurement) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Enums\SchemaOrg\SizeSystemEnumeration", - "null", ]; - $sizeSystem = self::checkTypes($sizeSystem, $types); + $hasMeasurement = self::checkTypes($hasMeasurement, $types); - $this->sizeSystem = $sizeSystem; + $this->hasMeasurement = $hasMeasurement; } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSuggestedGender() + public function getSuggestedAge() { - return $this->suggestedGender; + return $this->suggestedAge; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $suggestedGender + * @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 setSuggestedGender($suggestedGender) + public function setSuggestedAge($suggestedAge) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $suggestedGender = self::checkTypes($suggestedGender, $types); + $suggestedAge = self::checkTypes($suggestedAge, $types); - $this->suggestedGender = $suggestedGender; + $this->suggestedAge = $suggestedAge; } } 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..51fa88cb 100644 --- a/src/Models/SchemaOrg/SoftwareApplication.php +++ b/src/Models/SchemaOrg/SoftwareApplication.php @@ -17,210 +17,210 @@ public static function getType() public static function fieldList() { $fields = [ - "countriesSupported" => "countriesSupported", - "installUrl" => "installUrl", - "operatingSystem" => "operatingSystem", - "memoryRequirements" => "memoryRequirements", - "softwareVersion" => "softwareVersion", - "storageRequirements" => "storageRequirements", - "softwareHelp" => "softwareHelp", + "featureList" => "featureList", "applicationSubCategory" => "applicationSubCategory", - "downloadUrl" => "downloadUrl", - "applicationCategory" => "applicationCategory", - "countriesNotSupported" => "countriesNotSupported", + "softwareHelp" => "softwareHelp", + "installUrl" => "installUrl", "softwareRequirements" => "softwareRequirements", - "softwareAddOn" => "softwareAddOn", + "releaseNotes" => "releaseNotes", + "applicationCategory" => "applicationCategory", "applicationSuite" => "applicationSuite", + "storageRequirements" => "storageRequirements", "requirements" => "requirements", - "permissions" => "permissions", - "processorRequirements" => "processorRequirements", - "screenshot" => "screenshot", - "featureList" => "featureList", - "releaseNotes" => "releaseNotes", + "softwareVersion" => "softwareVersion", + "countriesNotSupported" => "countriesNotSupported", "supportingData" => "supportingData", - "fileSize" => "fileSize", + "memoryRequirements" => "memoryRequirements", + "downloadUrl" => "downloadUrl", + "operatingSystem" => "operatingSystem", "device" => "device", + "screenshot" => "screenshot", + "countriesSupported" => "countriesSupported", + "fileSize" => "fileSize", + "processorRequirements" => "processorRequirements", + "softwareAddOn" => "softwareAddOn", "availableOnDevice" => "availableOnDevice", + "permissions" => "permissions", ]; 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. + * Features or modules provided by this application (and possibly required by other applications). * * * @var string */ - protected $countriesSupported; + protected $featureList; /** - * 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). + * Software application help. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $operatingSystem; + protected $softwareHelp; /** - * Minimum memory requirements. + * URL at which the app may be installed, if different from the URL of the item. * * * @var string */ - protected $memoryRequirements; + protected $installUrl; /** - * Version of the software instance. + * 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 $softwareVersion; + protected $softwareRequirements; /** - * Storage requirements (free space required). + * Description of what changed in this version. * * * @var string */ - protected $storageRequirements; + protected $releaseNotes; /** - * Software application help. + * Type of software application, e.g. 'Game, Multimedia'. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string */ - protected $softwareHelp; + protected $applicationCategory; /** - * Subcategory of the application, e.g. 'Arcade Game'. + * The name of the application suite to which the application belongs (e.g. Excel belongs to Office). * * * @var string */ - protected $applicationSubCategory; + protected $applicationSuite; /** - * If the file can be downloaded, URL to download the binary. + * Storage requirements (free space required). * * * @var string */ - protected $downloadUrl; + protected $storageRequirements; /** - * Type of software application, e.g. 'Game, Multimedia'. + * 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 $applicationCategory; + protected $requirements; /** - * Countries for which the application is not supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. + * Version of the software instance. * * * @var string */ - protected $countriesNotSupported; + protected $softwareVersion; /** - * 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). + * 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 $softwareRequirements; + protected $countriesNotSupported; /** - * Additional content for a software application. + * Supporting data for a SoftwareApplication. * * - * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @var \OpenActive\Models\SchemaOrg\DataFeed|string */ - protected $softwareAddOn; + protected $supportingData; /** - * The name of the application suite to which the application belongs (e.g. Excel belongs to Office). + * Minimum memory requirements. * * * @var string */ - protected $applicationSuite; + protected $memoryRequirements; /** - * 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). + * If the file can be downloaded, URL to download the binary. * * * @var string */ - protected $requirements; + protected $downloadUrl; /** - * Permission(s) required to run the app (for example, a mobile app may require full internet access or may run only on wifi). + * Operating systems supported (Windows 7, OS X 10.6, Android 1.6). * * * @var string */ - protected $permissions; + protected $operatingSystem; /** - * Processor architecture required to run the application (e.g. IA64). + * Device required to run the application. Used in cases where a specific make/model is required to run the application. * * * @var string */ - protected $processorRequirements; + protected $device; /** * A link to a screenshot image of the app. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var string|\OpenActive\Models\SchemaOrg\ImageObject */ protected $screenshot; /** - * Features or modules provided by this application (and possibly required by other applications). + * Countries for which the application is supported. You can also provide the two-letter ISO 3166-1 alpha-2 country code. * * * @var string */ - protected $featureList; + protected $countriesSupported; /** - * Description of what changed in this version. + * Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed. * * * @var string */ - protected $releaseNotes; + protected $fileSize; /** - * Supporting data for a SoftwareApplication. + * Processor architecture required to run the application (e.g. IA64). * * - * @var \OpenActive\Models\SchemaOrg\DataFeed|string + * @var string */ - protected $supportingData; + protected $processorRequirements; /** - * Size of the application / package (e.g. 18MB). In the absence of a unit (MB, KB etc.), KB will be assumed. + * Additional content for a software application. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - protected $fileSize; + protected $softwareAddOn; /** * Device required to run the application. Used in cases where a specific make/model is required to run the application. @@ -228,428 +228,428 @@ public static function fieldList() { * * @var string */ - protected $device; + protected $availableOnDevice; /** - * Device required to run the application. Used in cases where a specific make/model is required to run the application. + * 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 $availableOnDevice; + protected $permissions; /** * @return string */ - public function getCountriesSupported() + public function getFeatureList() { - return $this->countriesSupported; + return $this->featureList; } /** - * @param string $countriesSupported + * @param string $featureList * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountriesSupported($countriesSupported) + public function setFeatureList($featureList) { $types = [ "string", ]; - $countriesSupported = self::checkTypes($countriesSupported, $types); + $featureList = self::checkTypes($featureList, $types); - $this->countriesSupported = $countriesSupported; + $this->featureList = $featureList; } /** * @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 + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getOperatingSystem() + public function getSoftwareHelp() { - return $this->operatingSystem; + return $this->softwareHelp; } /** - * @param string $operatingSystem + * @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 setOperatingSystem($operatingSystem) + public function setSoftwareHelp($softwareHelp) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $operatingSystem = self::checkTypes($operatingSystem, $types); + $softwareHelp = self::checkTypes($softwareHelp, $types); - $this->operatingSystem = $operatingSystem; + $this->softwareHelp = $softwareHelp; } /** * @return string */ - public function getMemoryRequirements() + public function getInstallUrl() { - return $this->memoryRequirements; + return $this->installUrl; } /** - * @param string $memoryRequirements + * @param string $installUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMemoryRequirements($memoryRequirements) + public function setInstallUrl($installUrl) { $types = [ "string", ]; - $memoryRequirements = self::checkTypes($memoryRequirements, $types); + $installUrl = self::checkTypes($installUrl, $types); - $this->memoryRequirements = $memoryRequirements; + $this->installUrl = $installUrl; } /** * @return string */ - public function getSoftwareVersion() + public function getSoftwareRequirements() { - return $this->softwareVersion; + return $this->softwareRequirements; } /** - * @param string $softwareVersion + * @param string $softwareRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareVersion($softwareVersion) + public function setSoftwareRequirements($softwareRequirements) { $types = [ "string", ]; - $softwareVersion = self::checkTypes($softwareVersion, $types); + $softwareRequirements = self::checkTypes($softwareRequirements, $types); - $this->softwareVersion = $softwareVersion; + $this->softwareRequirements = $softwareRequirements; } /** * @return string */ - public function getStorageRequirements() + public function getReleaseNotes() { - return $this->storageRequirements; + return $this->releaseNotes; } /** - * @param string $storageRequirements + * @param string $releaseNotes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setStorageRequirements($storageRequirements) + public function setReleaseNotes($releaseNotes) { $types = [ "string", ]; - $storageRequirements = self::checkTypes($storageRequirements, $types); + $releaseNotes = self::checkTypes($releaseNotes, $types); - $this->storageRequirements = $storageRequirements; + $this->releaseNotes = $releaseNotes; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getSoftwareHelp() + public function getApplicationCategory() { - return $this->softwareHelp; + return $this->applicationCategory; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $softwareHelp + * @param string $applicationCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareHelp($softwareHelp) + public function setApplicationCategory($applicationCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $softwareHelp = self::checkTypes($softwareHelp, $types); + $applicationCategory = self::checkTypes($applicationCategory, $types); - $this->softwareHelp = $softwareHelp; + $this->applicationCategory = $applicationCategory; } /** * @return string */ - public function getApplicationSubCategory() + public function getApplicationSuite() { - return $this->applicationSubCategory; + return $this->applicationSuite; } /** - * @param string $applicationSubCategory + * @param string $applicationSuite * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationSubCategory($applicationSubCategory) + public function setApplicationSuite($applicationSuite) { $types = [ "string", ]; - $applicationSubCategory = self::checkTypes($applicationSubCategory, $types); + $applicationSuite = self::checkTypes($applicationSuite, $types); - $this->applicationSubCategory = $applicationSubCategory; + $this->applicationSuite = $applicationSuite; } /** * @return string */ - public function getDownloadUrl() + public function getStorageRequirements() { - return $this->downloadUrl; + return $this->storageRequirements; } /** - * @param string $downloadUrl + * @param string $storageRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDownloadUrl($downloadUrl) + public function setStorageRequirements($storageRequirements) { $types = [ "string", ]; - $downloadUrl = self::checkTypes($downloadUrl, $types); + $storageRequirements = self::checkTypes($storageRequirements, $types); - $this->downloadUrl = $downloadUrl; + $this->storageRequirements = $storageRequirements; } /** * @return string */ - public function getApplicationCategory() + public function getRequirements() { - return $this->applicationCategory; + return $this->requirements; } /** - * @param string $applicationCategory + * @param string $requirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationCategory($applicationCategory) + public function setRequirements($requirements) { $types = [ "string", ]; - $applicationCategory = self::checkTypes($applicationCategory, $types); + $requirements = self::checkTypes($requirements, $types); - $this->applicationCategory = $applicationCategory; + $this->requirements = $requirements; } /** * @return string */ - public function getCountriesNotSupported() + public function getSoftwareVersion() { - return $this->countriesNotSupported; + return $this->softwareVersion; } /** - * @param string $countriesNotSupported + * @param string $softwareVersion * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountriesNotSupported($countriesNotSupported) + public function setSoftwareVersion($softwareVersion) { $types = [ "string", ]; - $countriesNotSupported = self::checkTypes($countriesNotSupported, $types); + $softwareVersion = self::checkTypes($softwareVersion, $types); - $this->countriesNotSupported = $countriesNotSupported; + $this->softwareVersion = $softwareVersion; } /** * @return string */ - public function getSoftwareRequirements() + public function getCountriesNotSupported() { - return $this->softwareRequirements; + return $this->countriesNotSupported; } /** - * @param string $softwareRequirements + * @param string $countriesNotSupported * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSoftwareRequirements($softwareRequirements) + public function setCountriesNotSupported($countriesNotSupported) { $types = [ "string", ]; - $softwareRequirements = self::checkTypes($softwareRequirements, $types); + $countriesNotSupported = self::checkTypes($countriesNotSupported, $types); - $this->softwareRequirements = $softwareRequirements; + $this->countriesNotSupported = $countriesNotSupported; } /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @return \OpenActive\Models\SchemaOrg\DataFeed|string */ - public function getSoftwareAddOn() + public function getSupportingData() { - return $this->softwareAddOn; + return $this->supportingData; } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $softwareAddOn + * @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 setSoftwareAddOn($softwareAddOn) + public function setSupportingData($supportingData) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", + "\OpenActive\Models\SchemaOrg\DataFeed", "string", ]; - $softwareAddOn = self::checkTypes($softwareAddOn, $types); + $supportingData = self::checkTypes($supportingData, $types); - $this->softwareAddOn = $softwareAddOn; + $this->supportingData = $supportingData; } /** * @return string */ - public function getApplicationSuite() + public function getMemoryRequirements() { - return $this->applicationSuite; + return $this->memoryRequirements; } /** - * @param string $applicationSuite + * @param string $memoryRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setApplicationSuite($applicationSuite) + public function setMemoryRequirements($memoryRequirements) { $types = [ "string", ]; - $applicationSuite = self::checkTypes($applicationSuite, $types); + $memoryRequirements = self::checkTypes($memoryRequirements, $types); - $this->applicationSuite = $applicationSuite; + $this->memoryRequirements = $memoryRequirements; } /** * @return string */ - public function getRequirements() + public function getDownloadUrl() { - return $this->requirements; + return $this->downloadUrl; } /** - * @param string $requirements + * @param string $downloadUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRequirements($requirements) + public function setDownloadUrl($downloadUrl) { $types = [ "string", ]; - $requirements = self::checkTypes($requirements, $types); + $downloadUrl = self::checkTypes($downloadUrl, $types); - $this->requirements = $requirements; + $this->downloadUrl = $downloadUrl; } /** * @return string */ - public function getPermissions() + public function getOperatingSystem() { - return $this->permissions; + return $this->operatingSystem; } /** - * @param string $permissions + * @param string $operatingSystem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPermissions($permissions) + public function setOperatingSystem($operatingSystem) { $types = [ "string", ]; - $permissions = self::checkTypes($permissions, $types); + $operatingSystem = self::checkTypes($operatingSystem, $types); - $this->permissions = $permissions; + $this->operatingSystem = $operatingSystem; } /** * @return string */ - public function getProcessorRequirements() + public function getDevice() { - return $this->processorRequirements; + return $this->device; } /** - * @param string $processorRequirements + * @param string $device * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProcessorRequirements($processorRequirements) + public function setDevice($device) { $types = [ "string", ]; - $processorRequirements = self::checkTypes($processorRequirements, $types); + $device = self::checkTypes($device, $types); - $this->processorRequirements = $processorRequirements; + $this->device = $device; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return string|\OpenActive\Models\SchemaOrg\ImageObject */ public function getScreenshot() { @@ -657,15 +657,15 @@ public function getScreenshot() } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $screenshot + * @param string|\OpenActive\Models\SchemaOrg\ImageObject $screenshot * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setScreenshot($screenshot) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", "string", + "\OpenActive\Models\SchemaOrg\ImageObject", ]; $screenshot = self::checkTypes($screenshot, $types); @@ -676,146 +676,146 @@ public function setScreenshot($screenshot) /** * @return string */ - public function getFeatureList() + public function getCountriesSupported() { - return $this->featureList; + return $this->countriesSupported; } /** - * @param string $featureList + * @param string $countriesSupported * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFeatureList($featureList) + public function setCountriesSupported($countriesSupported) { $types = [ "string", ]; - $featureList = self::checkTypes($featureList, $types); + $countriesSupported = self::checkTypes($countriesSupported, $types); - $this->featureList = $featureList; + $this->countriesSupported = $countriesSupported; } /** * @return string */ - public function getReleaseNotes() + public function getFileSize() { - return $this->releaseNotes; + return $this->fileSize; } /** - * @param string $releaseNotes + * @param string $fileSize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReleaseNotes($releaseNotes) + public function setFileSize($fileSize) { $types = [ "string", ]; - $releaseNotes = self::checkTypes($releaseNotes, $types); + $fileSize = self::checkTypes($fileSize, $types); - $this->releaseNotes = $releaseNotes; + $this->fileSize = $fileSize; } /** - * @return \OpenActive\Models\SchemaOrg\DataFeed|string + * @return string */ - public function getSupportingData() + public function getProcessorRequirements() { - return $this->supportingData; + return $this->processorRequirements; } /** - * @param \OpenActive\Models\SchemaOrg\DataFeed|string $supportingData + * @param string $processorRequirements * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSupportingData($supportingData) + public function setProcessorRequirements($processorRequirements) { $types = [ - "\OpenActive\Models\SchemaOrg\DataFeed", "string", ]; - $supportingData = self::checkTypes($supportingData, $types); + $processorRequirements = self::checkTypes($processorRequirements, $types); - $this->supportingData = $supportingData; + $this->processorRequirements = $processorRequirements; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - public function getFileSize() + public function getSoftwareAddOn() { - return $this->fileSize; + return $this->softwareAddOn; } /** - * @param string $fileSize + * @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 setFileSize($fileSize) + public function setSoftwareAddOn($softwareAddOn) { $types = [ + "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $fileSize = self::checkTypes($fileSize, $types); + $softwareAddOn = self::checkTypes($softwareAddOn, $types); - $this->fileSize = $fileSize; + $this->softwareAddOn = $softwareAddOn; } /** * @return string */ - public function getDevice() + public function getAvailableOnDevice() { - return $this->device; + return $this->availableOnDevice; } /** - * @param string $device + * @param string $availableOnDevice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDevice($device) + public function setAvailableOnDevice($availableOnDevice) { $types = [ "string", ]; - $device = self::checkTypes($device, $types); + $availableOnDevice = self::checkTypes($availableOnDevice, $types); - $this->device = $device; + $this->availableOnDevice = $availableOnDevice; } /** * @return string */ - public function getAvailableOnDevice() + public function getPermissions() { - return $this->availableOnDevice; + return $this->permissions; } /** - * @param string $availableOnDevice + * @param string $permissions * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAvailableOnDevice($availableOnDevice) + public function setPermissions($permissions) { $types = [ "string", ]; - $availableOnDevice = self::checkTypes($availableOnDevice, $types); + $permissions = self::checkTypes($permissions, $types); - $this->availableOnDevice = $availableOnDevice; + $this->permissions = $permissions; } } diff --git a/src/Models/SchemaOrg/SoftwareSourceCode.php b/src/Models/SchemaOrg/SoftwareSourceCode.php index 2bf0a0af..cba4024f 100644 --- a/src/Models/SchemaOrg/SoftwareSourceCode.php +++ b/src/Models/SchemaOrg/SoftwareSourceCode.php @@ -17,26 +17,18 @@ public static function getType() public static function fieldList() { $fields = [ - "programmingLanguage" => "programmingLanguage", "sampleType" => "sampleType", + "codeRepository" => "codeRepository", + "programmingLanguage" => "programmingLanguage", "runtimePlatform" => "runtimePlatform", "runtime" => "runtime", - "targetProduct" => "targetProduct", - "codeRepository" => "codeRepository", "codeSampleType" => "codeSampleType", + "targetProduct" => "targetProduct", ]; return array_merge(parent::fieldList(), $fields); } - /** - * The computer programming language. - * - * - * @var string|\OpenActive\Models\SchemaOrg\ComputerLanguage - */ - protected $programmingLanguage; - /** * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. * @@ -46,36 +38,36 @@ public static function fieldList() { protected $sampleType; /** - * Runtime platform or script interpreter dependencies (Example - Java v1, Python2.3, .Net Framework 3.0). + * Link to the repository where the un-compiled, human readable code and related code is located (SVN, GitHub, CodePlex). * * * @var string */ - protected $runtimePlatform; + protected $codeRepository; /** - * 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 $runtime; + protected $programmingLanguage; /** - * 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 string */ - protected $targetProduct; + protected $runtimePlatform; /** - * Link to the repository where the un-compiled, human readable code and related code is located (SVN, github, CodePlex). + * Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0). * * * @var string */ - protected $codeRepository; + protected $runtime; /** * What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. @@ -86,173 +78,181 @@ public static function fieldList() { protected $codeSampleType; /** - * @return string|\OpenActive\Models\SchemaOrg\ComputerLanguage + * Target Operating System / Product to which the code applies. If applies to several versions, just the product name can be used. + * + * + * @var \OpenActive\Models\SchemaOrg\SoftwareApplication|string */ - public function getProgrammingLanguage() + protected $targetProduct; + + /** + * @return string + */ + public function getSampleType() { - return $this->programmingLanguage; + return $this->sampleType; } /** - * @param string|\OpenActive\Models\SchemaOrg\ComputerLanguage $programmingLanguage + * @param string $sampleType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProgrammingLanguage($programmingLanguage) + public function setSampleType($sampleType) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\ComputerLanguage", ]; - $programmingLanguage = self::checkTypes($programmingLanguage, $types); + $sampleType = self::checkTypes($sampleType, $types); - $this->programmingLanguage = $programmingLanguage; + $this->sampleType = $sampleType; } /** * @return string */ - public function getSampleType() + public function getCodeRepository() { - return $this->sampleType; + return $this->codeRepository; } /** - * @param string $sampleType + * @param string $codeRepository * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSampleType($sampleType) + public function setCodeRepository($codeRepository) { $types = [ "string", ]; - $sampleType = self::checkTypes($sampleType, $types); + $codeRepository = self::checkTypes($codeRepository, $types); - $this->sampleType = $sampleType; + $this->codeRepository = $codeRepository; } /** - * @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; } /** * @return string */ - public function getRuntime() + public function getRuntimePlatform() { - return $this->runtime; + return $this->runtimePlatform; } /** - * @param string $runtime + * @param string $runtimePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRuntime($runtime) + public function setRuntimePlatform($runtimePlatform) { $types = [ "string", ]; - $runtime = self::checkTypes($runtime, $types); + $runtimePlatform = self::checkTypes($runtimePlatform, $types); - $this->runtime = $runtime; + $this->runtimePlatform = $runtimePlatform; } /** - * @return \OpenActive\Models\SchemaOrg\SoftwareApplication|string + * @return string */ - public function getTargetProduct() + public function getRuntime() { - return $this->targetProduct; + return $this->runtime; } /** - * @param \OpenActive\Models\SchemaOrg\SoftwareApplication|string $targetProduct + * @param string $runtime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTargetProduct($targetProduct) + public function setRuntime($runtime) { $types = [ - "\OpenActive\Models\SchemaOrg\SoftwareApplication", "string", ]; - $targetProduct = self::checkTypes($targetProduct, $types); + $runtime = self::checkTypes($runtime, $types); - $this->targetProduct = $targetProduct; + $this->runtime = $runtime; } /** * @return string */ - public function getCodeRepository() + public function getCodeSampleType() { - return $this->codeRepository; + return $this->codeSampleType; } /** - * @param string $codeRepository + * @param string $codeSampleType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCodeRepository($codeRepository) + public function setCodeSampleType($codeSampleType) { $types = [ "string", ]; - $codeRepository = self::checkTypes($codeRepository, $types); + $codeSampleType = self::checkTypes($codeSampleType, $types); - $this->codeRepository = $codeRepository; + $this->codeSampleType = $codeSampleType; } /** - * @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/SpeakableSpecification.php b/src/Models/SchemaOrg/SpeakableSpecification.php index 442445d9..c9aeaf6d 100644 --- a/src/Models/SchemaOrg/SpeakableSpecification.php +++ b/src/Models/SchemaOrg/SpeakableSpecification.php @@ -17,75 +17,75 @@ public static function getType() public static function fieldList() { $fields = [ - "cssSelector" => "cssSelector", "xpath" => "xpath", + "cssSelector" => "cssSelector", ]; return array_merge(parent::fieldList(), $fields); } /** - * A CSS selector, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter case, multiple matches within a page can constitute a single conceptual "Web page element". + * An XPath, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter case, multiple matches within a page can constitute a single conceptual "Web page element". * * - * @var \OpenActive\Models\SchemaOrg\CssSelectorType + * @var \OpenActive\Models\SchemaOrg\XPathType */ - protected $cssSelector; + protected $xpath; /** - * An XPath, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter case, multiple matches within a page can constitute a single conceptual "Web page element". + * A CSS selector, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter case, multiple matches within a page can constitute a single conceptual "Web page element". * * - * @var \OpenActive\Models\SchemaOrg\XPathType + * @var \OpenActive\Models\SchemaOrg\CssSelectorType */ - protected $xpath; + protected $cssSelector; /** - * @return \OpenActive\Models\SchemaOrg\CssSelectorType + * @return \OpenActive\Models\SchemaOrg\XPathType */ - public function getCssSelector() + public function getXpath() { - return $this->cssSelector; + return $this->xpath; } /** - * @param \OpenActive\Models\SchemaOrg\CssSelectorType $cssSelector + * @param \OpenActive\Models\SchemaOrg\XPathType $xpath * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCssSelector($cssSelector) + public function setXpath($xpath) { $types = [ - "\OpenActive\Models\SchemaOrg\CssSelectorType", + "\OpenActive\Models\SchemaOrg\XPathType", ]; - $cssSelector = self::checkTypes($cssSelector, $types); + $xpath = self::checkTypes($xpath, $types); - $this->cssSelector = $cssSelector; + $this->xpath = $xpath; } /** - * @return \OpenActive\Models\SchemaOrg\XPathType + * @return \OpenActive\Models\SchemaOrg\CssSelectorType */ - public function getXpath() + public function getCssSelector() { - return $this->xpath; + return $this->cssSelector; } /** - * @param \OpenActive\Models\SchemaOrg\XPathType $xpath + * @param \OpenActive\Models\SchemaOrg\CssSelectorType $cssSelector * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setXpath($xpath) + public function setCssSelector($cssSelector) { $types = [ - "\OpenActive\Models\SchemaOrg\XPathType", + "\OpenActive\Models\SchemaOrg\CssSelectorType", ]; - $xpath = self::checkTypes($xpath, $types); + $cssSelector = self::checkTypes($cssSelector, $types); - $this->xpath = $xpath; + $this->cssSelector = $cssSelector; } } diff --git a/src/Models/SchemaOrg/SpecialAnnouncement.php b/src/Models/SchemaOrg/SpecialAnnouncement.php index e51824dd..56382b73 100644 --- a/src/Models/SchemaOrg/SpecialAnnouncement.php +++ b/src/Models/SchemaOrg/SpecialAnnouncement.php @@ -17,113 +17,113 @@ public static function getType() public static function fieldList() { $fields = [ + "gettingTestedInfo" => "gettingTestedInfo", + "datePosted" => "datePosted", "governmentBenefitsInfo" => "governmentBenefitsInfo", + "travelBans" => "travelBans", + "schoolClosuresInfo" => "schoolClosuresInfo", "category" => "category", + "webFeed" => "webFeed", "diseaseSpreadStatistics" => "diseaseSpreadStatistics", - "gettingTestedInfo" => "gettingTestedInfo", - "announcementLocation" => "announcementLocation", - "travelBans" => "travelBans", "diseasePreventionInfo" => "diseasePreventionInfo", - "publicTransportClosuresInfo" => "publicTransportClosuresInfo", - "schoolClosuresInfo" => "schoolClosuresInfo", - "datePosted" => "datePosted", "newsUpdatesAndGuidelines" => "newsUpdatesAndGuidelines", + "publicTransportClosuresInfo" => "publicTransportClosuresInfo", "quarantineGuidelines" => "quarantineGuidelines", - "webFeed" => "webFeed", + "announcementLocation" => "announcementLocation", ]; return array_merge(parent::fieldList(), $fields); } /** - * governmentBenefitsInfo provides information about government benefits associated with a SpecialAnnouncement. + * Information about getting tested (for a [[MedicalCondition]]), e.g. in the context of a pandemic. * * - * @var \OpenActive\Models\SchemaOrg\GovernmentService|string + * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $governmentBenefitsInfo; + protected $gettingTestedInfo; /** - * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. + * Publication date of an online listing. * * - * @var string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @var Date|DateTime|null */ - protected $category; + protected $datePosted; /** - * Statistical information about the spread of a disease, either as [[WebContent]], or - * described directly as a [[Dataset]], or the specific [[Observation]]s in the dataset. When a [[WebContent]] URL is - * provided, the page indicated might also contain more such markup. + * governmentBenefitsInfo provides information about government benefits associated with a SpecialAnnouncement. * * - * @var \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string + * @var \OpenActive\Models\SchemaOrg\GovernmentService|string */ - protected $diseaseSpreadStatistics; + protected $governmentBenefitsInfo; /** - * Information about getting tested (for a [[MedicalCondition]]), e.g. in the context of a pandemic. + * Information about travel bans, e.g. in the context of a pandemic. * * - * @var \OpenActive\Models\SchemaOrg\WebContent|string + * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $gettingTestedInfo; + protected $travelBans; /** - * 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]]. + * Information about school closures. * * - * @var \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string + * @var \OpenActive\Models\SchemaOrg\WebContent|string */ - protected $announcementLocation; + protected $schoolClosuresInfo; /** - * Information about travel bans, e.g. in the context of a pandemic. + * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy. * * - * @var string|\OpenActive\Models\SchemaOrg\WebContent + * @var \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - protected $travelBans; + protected $category; /** - * Information about disease prevention. + * The URL for a feed, e.g. associated with a podcast series, blog, or series of date-stamped updates. This is usually RSS or Atom. * * - * @var string|\OpenActive\Models\SchemaOrg\WebContent + * @var string|\OpenActive\Models\SchemaOrg\DataFeed */ - protected $diseasePreventionInfo; + protected $webFeed; /** - * Information about public transport closures. + * 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 string|\OpenActive\Models\SchemaOrg\WebContent + * @var string|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\WebContent */ - protected $publicTransportClosuresInfo; + protected $diseaseSpreadStatistics; /** - * Information about school closures. + * Information about disease prevention. * * - * @var \OpenActive\Models\SchemaOrg\WebContent|string + * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $schoolClosuresInfo; + protected $diseasePreventionInfo; /** - * Publication date of an online listing. + * 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 Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\WebContent|string */ - protected $datePosted; + protected $newsUpdatesAndGuidelines; /** - * 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 public transport closures. * * * @var string|\OpenActive\Models\SchemaOrg\WebContent */ - protected $newsUpdatesAndGuidelines; + protected $publicTransportClosuresInfo; /** * Guidelines about quarantine rules, e.g. in the context of a pandemic. @@ -134,293 +134,292 @@ public static function fieldList() { protected $quarantineGuidelines; /** - * The URL for a feed, e.g. associated with a podcast series, blog, or series of date-stamped updates. This is usually RSS or Atom. + * Indicates a 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\DataFeed|string + * @var \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string */ - protected $webFeed; + protected $announcementLocation; /** - * @return \OpenActive\Models\SchemaOrg\GovernmentService|string + * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getGovernmentBenefitsInfo() + public function getGettingTestedInfo() { - return $this->governmentBenefitsInfo; + return $this->gettingTestedInfo; } /** - * @param \OpenActive\Models\SchemaOrg\GovernmentService|string $governmentBenefitsInfo + * @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 setGovernmentBenefitsInfo($governmentBenefitsInfo) + public function setGettingTestedInfo($gettingTestedInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\GovernmentService", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $governmentBenefitsInfo = self::checkTypes($governmentBenefitsInfo, $types); + $gettingTestedInfo = self::checkTypes($gettingTestedInfo, $types); - $this->governmentBenefitsInfo = $governmentBenefitsInfo; + $this->gettingTestedInfo = $gettingTestedInfo; } /** - * @return string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null + * @return Date|DateTime|null */ - public function getCategory() + public function getDatePosted() { - return $this->category; + return $this->datePosted; } /** - * @param string|\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\Thing|\OpenActive\Models\SchemaOrg\CategoryCode|null $category + * @param Date|DateTime|null $datePosted * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCategory($category) + public function setDatePosted($datePosted) { $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", - "\OpenActive\Models\SchemaOrg\Thing", - "\OpenActive\Models\SchemaOrg\CategoryCode", + "Date", + "DateTime", "null", ]; - $category = self::checkTypes($category, $types); + $datePosted = self::checkTypes($datePosted, $types); - $this->category = $category; + $this->datePosted = $datePosted; } /** - * @return \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string + * @return \OpenActive\Models\SchemaOrg\GovernmentService|string */ - public function getDiseaseSpreadStatistics() + public function getGovernmentBenefitsInfo() { - return $this->diseaseSpreadStatistics; + return $this->governmentBenefitsInfo; } /** - * @param \OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\WebContent|string $diseaseSpreadStatistics + * @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 setDiseaseSpreadStatistics($diseaseSpreadStatistics) + public function setGovernmentBenefitsInfo($governmentBenefitsInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\Dataset", - "\OpenActive\Models\SchemaOrg\Observation", - "\OpenActive\Models\SchemaOrg\WebContent", + "\OpenActive\Models\SchemaOrg\GovernmentService", "string", ]; - $diseaseSpreadStatistics = self::checkTypes($diseaseSpreadStatistics, $types); + $governmentBenefitsInfo = self::checkTypes($governmentBenefitsInfo, $types); - $this->diseaseSpreadStatistics = $diseaseSpreadStatistics; + $this->governmentBenefitsInfo = $governmentBenefitsInfo; } /** - * @return \OpenActive\Models\SchemaOrg\WebContent|string + * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getGettingTestedInfo() + public function getTravelBans() { - return $this->gettingTestedInfo; + return $this->travelBans; } /** - * @param \OpenActive\Models\SchemaOrg\WebContent|string $gettingTestedInfo + * @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 setGettingTestedInfo($gettingTestedInfo) + public function setTravelBans($travelBans) { $types = [ - "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $gettingTestedInfo = self::checkTypes($gettingTestedInfo, $types); + $travelBans = self::checkTypes($travelBans, $types); - $this->gettingTestedInfo = $gettingTestedInfo; + $this->travelBans = $travelBans; } /** - * @return \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string + * @return \OpenActive\Models\SchemaOrg\WebContent|string */ - public function getAnnouncementLocation() + public function getSchoolClosuresInfo() { - return $this->announcementLocation; + return $this->schoolClosuresInfo; } /** - * @param \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string $announcementLocation + * @param \OpenActive\Models\SchemaOrg\WebContent|string $schoolClosuresInfo * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAnnouncementLocation($announcementLocation) + public function setSchoolClosuresInfo($schoolClosuresInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\CivicStructure", - "\OpenActive\Models\SchemaOrg\LocalBusiness", + "\OpenActive\Models\SchemaOrg\WebContent", "string", ]; - $announcementLocation = self::checkTypes($announcementLocation, $types); + $schoolClosuresInfo = self::checkTypes($schoolClosuresInfo, $types); - $this->announcementLocation = $announcementLocation; + $this->schoolClosuresInfo = $schoolClosuresInfo; } /** - * @return string|\OpenActive\Models\SchemaOrg\WebContent + * @return \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null */ - public function getTravelBans() + public function getCategory() { - return $this->travelBans; + return $this->category; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $travelBans + * @param \OpenActive\Enums\SchemaOrg\PhysicalActivityCategory|\OpenActive\Models\SchemaOrg\CategoryCode|\OpenActive\Models\SchemaOrg\Thing|string|null $category * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTravelBans($travelBans) + public function setCategory($category) { $types = [ + "\OpenActive\Enums\SchemaOrg\PhysicalActivityCategory", + "\OpenActive\Models\SchemaOrg\CategoryCode", + "\OpenActive\Models\SchemaOrg\Thing", "string", - "\OpenActive\Models\SchemaOrg\WebContent", + "null", ]; - $travelBans = self::checkTypes($travelBans, $types); + $category = self::checkTypes($category, $types); - $this->travelBans = $travelBans; + $this->category = $category; } /** - * @return string|\OpenActive\Models\SchemaOrg\WebContent + * @return string|\OpenActive\Models\SchemaOrg\DataFeed */ - public function getDiseasePreventionInfo() + public function getWebFeed() { - return $this->diseasePreventionInfo; + return $this->webFeed; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $diseasePreventionInfo + * @param string|\OpenActive\Models\SchemaOrg\DataFeed $webFeed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiseasePreventionInfo($diseasePreventionInfo) + public function setWebFeed($webFeed) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\WebContent", + "\OpenActive\Models\SchemaOrg\DataFeed", ]; - $diseasePreventionInfo = self::checkTypes($diseasePreventionInfo, $types); + $webFeed = self::checkTypes($webFeed, $types); - $this->diseasePreventionInfo = $diseasePreventionInfo; + $this->webFeed = $webFeed; } /** - * @return string|\OpenActive\Models\SchemaOrg\WebContent + * @return string|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\WebContent */ - public function getPublicTransportClosuresInfo() + public function getDiseaseSpreadStatistics() { - return $this->publicTransportClosuresInfo; + return $this->diseaseSpreadStatistics; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $publicTransportClosuresInfo + * @param string|\OpenActive\Models\SchemaOrg\Observation|\OpenActive\Models\SchemaOrg\Dataset|\OpenActive\Models\SchemaOrg\WebContent $diseaseSpreadStatistics * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPublicTransportClosuresInfo($publicTransportClosuresInfo) + public function setDiseaseSpreadStatistics($diseaseSpreadStatistics) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\Observation", + "\OpenActive\Models\SchemaOrg\Dataset", "\OpenActive\Models\SchemaOrg\WebContent", ]; - $publicTransportClosuresInfo = self::checkTypes($publicTransportClosuresInfo, $types); + $diseaseSpreadStatistics = self::checkTypes($diseaseSpreadStatistics, $types); - $this->publicTransportClosuresInfo = $publicTransportClosuresInfo; + $this->diseaseSpreadStatistics = $diseaseSpreadStatistics; } /** - * @return \OpenActive\Models\SchemaOrg\WebContent|string + * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getSchoolClosuresInfo() + public function getDiseasePreventionInfo() { - return $this->schoolClosuresInfo; + return $this->diseasePreventionInfo; } /** - * @param \OpenActive\Models\SchemaOrg\WebContent|string $schoolClosuresInfo + * @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 setSchoolClosuresInfo($schoolClosuresInfo) + public function setDiseasePreventionInfo($diseasePreventionInfo) { $types = [ - "\OpenActive\Models\SchemaOrg\WebContent", "string", + "\OpenActive\Models\SchemaOrg\WebContent", ]; - $schoolClosuresInfo = self::checkTypes($schoolClosuresInfo, $types); + $diseasePreventionInfo = self::checkTypes($diseasePreventionInfo, $types); - $this->schoolClosuresInfo = $schoolClosuresInfo; + $this->diseasePreventionInfo = $diseasePreventionInfo; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\WebContent|string */ - public function getDatePosted() + public function getNewsUpdatesAndGuidelines() { - return $this->datePosted; + return $this->newsUpdatesAndGuidelines; } /** - * @param Date|DateTime|null $datePosted + * @param \OpenActive\Models\SchemaOrg\WebContent|string $newsUpdatesAndGuidelines * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDatePosted($datePosted) + public function setNewsUpdatesAndGuidelines($newsUpdatesAndGuidelines) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\WebContent", + "string", ]; - $datePosted = self::checkTypes($datePosted, $types); + $newsUpdatesAndGuidelines = self::checkTypes($newsUpdatesAndGuidelines, $types); - $this->datePosted = $datePosted; + $this->newsUpdatesAndGuidelines = $newsUpdatesAndGuidelines; } /** * @return string|\OpenActive\Models\SchemaOrg\WebContent */ - public function getNewsUpdatesAndGuidelines() + public function getPublicTransportClosuresInfo() { - return $this->newsUpdatesAndGuidelines; + return $this->publicTransportClosuresInfo; } /** - * @param string|\OpenActive\Models\SchemaOrg\WebContent $newsUpdatesAndGuidelines + * @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 setNewsUpdatesAndGuidelines($newsUpdatesAndGuidelines) + public function setPublicTransportClosuresInfo($publicTransportClosuresInfo) { $types = [ "string", "\OpenActive\Models\SchemaOrg\WebContent", ]; - $newsUpdatesAndGuidelines = self::checkTypes($newsUpdatesAndGuidelines, $types); + $publicTransportClosuresInfo = self::checkTypes($publicTransportClosuresInfo, $types); - $this->newsUpdatesAndGuidelines = $newsUpdatesAndGuidelines; + $this->publicTransportClosuresInfo = $publicTransportClosuresInfo; } /** @@ -449,28 +448,29 @@ public function setQuarantineGuidelines($quarantineGuidelines) } /** - * @return \OpenActive\Models\SchemaOrg\DataFeed|string + * @return \OpenActive\Models\SchemaOrg\CivicStructure|\OpenActive\Models\SchemaOrg\LocalBusiness|string */ - public function getWebFeed() + public function getAnnouncementLocation() { - return $this->webFeed; + return $this->announcementLocation; } /** - * @param \OpenActive\Models\SchemaOrg\DataFeed|string $webFeed + * @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 setWebFeed($webFeed) + public function setAnnouncementLocation($announcementLocation) { $types = [ - "\OpenActive\Models\SchemaOrg\DataFeed", + "\OpenActive\Models\SchemaOrg\CivicStructure", + "\OpenActive\Models\SchemaOrg\LocalBusiness", "string", ]; - $webFeed = self::checkTypes($webFeed, $types); + $announcementLocation = self::checkTypes($announcementLocation, $types); - $this->webFeed = $webFeed; + $this->announcementLocation = $announcementLocation; } } diff --git a/src/Models/SchemaOrg/SportsEvent.php b/src/Models/SchemaOrg/SportsEvent.php index 4bed306f..359ad7e0 100644 --- a/src/Models/SchemaOrg/SportsEvent.php +++ b/src/Models/SchemaOrg/SportsEvent.php @@ -17,22 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "homeTeam" => "homeTeam", + "sport" => "sport", "awayTeam" => "awayTeam", "competitor" => "competitor", - "sport" => "sport", + "homeTeam" => "homeTeam", ]; return array_merge(parent::fieldList(), $fields); } /** - * The home team in a sports event. + * A type of sport (e.g. Baseball). * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string + * @var string */ - protected $homeTeam; + protected $sport; /** * The away team in a sports event. @@ -51,37 +51,35 @@ public static function fieldList() { protected $competitor; /** - * A type of sport (e.g. Baseball). + * The home team in a sports event. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - protected $sport; + protected $homeTeam; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string + * @return string */ - public function getHomeTeam() + public function getSport() { - return $this->homeTeam; + return $this->sport; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string $homeTeam + * @param string $sport * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHomeTeam($homeTeam) + public function setSport($sport) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\SportsTeam", "string", ]; - $homeTeam = self::checkTypes($homeTeam, $types); + $sport = self::checkTypes($sport, $types); - $this->homeTeam = $homeTeam; + $this->sport = $sport; } /** @@ -137,27 +135,29 @@ public function setCompetitor($competitor) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\SportsTeam|string */ - public function getSport() + public function getHomeTeam() { - return $this->sport; + return $this->homeTeam; } /** - * @param string $sport + * @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 setSport($sport) + public function setHomeTeam($homeTeam) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\SportsTeam", "string", ]; - $sport = self::checkTypes($sport, $types); + $homeTeam = self::checkTypes($homeTeam, $types); - $this->sport = $sport; + $this->homeTeam = $homeTeam; } } diff --git a/src/Models/SchemaOrg/SportsTeam.php b/src/Models/SchemaOrg/SportsTeam.php index 0adf96cb..c6554359 100644 --- a/src/Models/SchemaOrg/SportsTeam.php +++ b/src/Models/SchemaOrg/SportsTeam.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "athlete" => "athlete", "gender" => "gender", + "athlete" => "athlete", "coach" => "coach", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * A person that acts as performing member of a sports team; a player as opposed to a coach. + * Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed". * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - protected $athlete; + protected $gender; /** - * 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 as performing member of a sports team; a player as opposed to a coach. * * - * @var \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $gender; + protected $athlete; /** * A person that acts in a coaching role for a sports team. @@ -50,54 +50,54 @@ public static function fieldList() { protected $coach; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null */ - public function getAthlete() + public function getGender() { - return $this->athlete; + return $this->gender; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $athlete + * @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 setAthlete($athlete) + public function setGender($gender) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Enums\SchemaOrg\GenderType", "string", + "null", ]; - $athlete = self::checkTypes($athlete, $types); + $gender = self::checkTypes($gender, $types); - $this->athlete = $athlete; + $this->gender = $gender; } /** - * @return \OpenActive\Enums\SchemaOrg\GenderType|string|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGender() + public function getAthlete() { - return $this->gender; + return $this->athlete; } /** - * @param \OpenActive\Enums\SchemaOrg\GenderType|string|null $gender + * @param \OpenActive\Models\SchemaOrg\Person|string $athlete * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGender($gender) + public function setAthlete($athlete) { $types = [ - "\OpenActive\Enums\SchemaOrg\GenderType", + "\OpenActive\Models\SchemaOrg\Person", "string", - "null", ]; - $gender = self::checkTypes($gender, $types); + $athlete = self::checkTypes($athlete, $types); - $this->gender = $gender; + $this->athlete = $athlete; } /** 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..ad2efff1 --- /dev/null +++ b/src/Models/SchemaOrg/StatisticalVariable.php @@ -0,0 +1,275 @@ + "measurementTechnique", + "populationType" => "populationType", + "measurementDenominator" => "measurementDenominator", + "measurementMethod" => "measurementMethod", + "statType" => "statType", + "measurementQualifier" => "measurementQualifier", + "measuredProperty" => "measuredProperty", + ]; + + return array_merge(parent::fieldList(), $fields); + } + + /** + * A technique, method or technology used in an [[Observation]], [[StatisticalVariable]] or [[Dataset]] (or [[DataDownload]], [[DataCatalog]]), corresponding to the method used for measuring the corresponding variable(s) (for datasets, described using [[variableMeasured]]; for [[Observation]], a [[StatisticalVariable]]). Often but not necessarily each [[variableMeasured]] will have an explicit representation as (or mapping to) an property such as those defined in Schema.org, or other RDF vocabularies and "knowledge graphs". In that case the subproperty of [[variableMeasured]] called [[measuredProperty]] is applicable. + * + * The [[measurementTechnique]] property helps when extra clarification is needed about how a [[measuredProperty]] was measured. This is oriented towards scientific and scholarly dataset publication but may have broader applicability; it is not intended as a full representation of measurement, but can often serve as a high level summary for dataset discovery. + * + * For example, if [[variableMeasured]] is: molecule concentration, [[measurementTechnique]] could be: "mass spectrometry" or "nmr spectroscopy" or "colorimetry" or "immunofluorescence". If the [[variableMeasured]] is "depression rating", the [[measurementTechnique]] could be "Zung Scale" or "HAM-D" or "Beck Depression Inventory". + * + * If there are several [[variableMeasured]] properties recorded for some given data object, use a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]]. The value can also be from an enumeration, organized as a [[MeasurementMetholdEnumeration]]. + * + * + * @var string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null + */ + protected $measurementTechnique; + + /** + * Indicates the populationType common to all members of a [[StatisticalPopulation]] or all cases within the scope of a [[StatisticalVariable]]. + * + * + * @var \OpenActive\Models\SchemaOrg\Class|string + */ + protected $populationType; + + /** + * 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 string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null + */ + protected $measurementMethod; + + /** + * 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. [[count]], [[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; + + /** + * Provides additional qualification to an observation. For example, a GDP observation measures the Nominal value. + * + * + * @var \OpenActive\Models\SchemaOrg\Enumeration|string + */ + protected $measurementQualifier; + + /** + * The measuredProperty of an [[Observation]], typically via its [[StatisticalVariable]]. There are various kinds of applicable [[Property]]: a schema.org property, a property from other RDF-compatible systems, e.g. W3C RDF Data Cube, Data Commons, Wikidata, or schema.org extensions such as [GS1's](https://www.gs1.org/voc/?show=properties). + * + * + * @var string|\OpenActive\Enums\PropertyEnumeration|null + */ + protected $measuredProperty; + + /** + * @return string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null + */ + public function getMeasurementTechnique() + { + return $this->measurementTechnique; + } + + /** + * @param string|\OpenActive\Models\SchemaOrg\DefinedTerm|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|null $measurementTechnique + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementTechnique($measurementTechnique) + { + $types = [ + "string", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "null", + ]; + + $measurementTechnique = self::checkTypes($measurementTechnique, $types); + + $this->measurementTechnique = $measurementTechnique; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Class|string + */ + public function getPopulationType() + { + return $this->populationType; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Class|string $populationType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setPopulationType($populationType) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Class", + "string", + ]; + + $populationType = self::checkTypes($populationType, $types); + + $this->populationType = $populationType; + } + + /** + * @return \OpenActive\Models\SchemaOrg\StatisticalVariable|string + */ + public function getMeasurementDenominator() + { + return $this->measurementDenominator; + } + + /** + * @param \OpenActive\Models\SchemaOrg\StatisticalVariable|string $measurementDenominator + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementDenominator($measurementDenominator) + { + $types = [ + "\OpenActive\Models\SchemaOrg\StatisticalVariable", + "string", + ]; + + $measurementDenominator = self::checkTypes($measurementDenominator, $types); + + $this->measurementDenominator = $measurementDenominator; + } + + /** + * @return string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null + */ + public function getMeasurementMethod() + { + return $this->measurementMethod; + } + + /** + * @param string|\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum|\OpenActive\Models\SchemaOrg\DefinedTerm|null $measurementMethod + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementMethod($measurementMethod) + { + $types = [ + "string", + "\OpenActive\Enums\SchemaOrg\MeasurementMethodEnum", + "\OpenActive\Models\SchemaOrg\DefinedTerm", + "null", + ]; + + $measurementMethod = self::checkTypes($measurementMethod, $types); + + $this->measurementMethod = $measurementMethod; + } + + /** + * @return string|\OpenActive\Enums\PropertyEnumeration|null + */ + public function getStatType() + { + return $this->statType; + } + + /** + * @param string|\OpenActive\Enums\PropertyEnumeration|null $statType + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setStatType($statType) + { + $types = [ + "string", + "\OpenActive\Enums\PropertyEnumeration", + "null", + ]; + + $statType = self::checkTypes($statType, $types); + + $this->statType = $statType; + } + + /** + * @return \OpenActive\Models\SchemaOrg\Enumeration|string + */ + public function getMeasurementQualifier() + { + return $this->measurementQualifier; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Enumeration|string $measurementQualifier + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasurementQualifier($measurementQualifier) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Enumeration", + "string", + ]; + + $measurementQualifier = self::checkTypes($measurementQualifier, $types); + + $this->measurementQualifier = $measurementQualifier; + } + + /** + * @return string|\OpenActive\Enums\PropertyEnumeration|null + */ + public function getMeasuredProperty() + { + return $this->measuredProperty; + } + + /** + * @param string|\OpenActive\Enums\PropertyEnumeration|null $measuredProperty + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setMeasuredProperty($measuredProperty) + { + $types = [ + "string", + "\OpenActive\Enums\PropertyEnumeration", + "null", + ]; + + $measuredProperty = self::checkTypes($measuredProperty, $types); + + $this->measuredProperty = $measuredProperty; + } + +} 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..b4b76430 100644 --- a/src/Models/SchemaOrg/Suite.php +++ b/src/Models/SchemaOrg/Suite.php @@ -18,8 +18,8 @@ public static function getType() public static function fieldList() { $fields = [ "numberOfRooms" => "numberOfRooms", - "bed" => "bed", "occupancy" => "occupancy", + "bed" => "bed", ]; return array_merge(parent::fieldList(), $fields); @@ -35,22 +35,22 @@ public static function fieldList() { protected $numberOfRooms; /** - * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text. - * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property. + * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). + * Typical unit code(s): C62 for person. * * - * @var \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $bed; + protected $occupancy; /** - * The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). - * Typical unit code(s): C62 for person + * The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text. + * If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType */ - protected $occupancy; + protected $bed; /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null @@ -80,54 +80,54 @@ public function setNumberOfRooms($numberOfRooms) } /** - * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getBed() + public function getOccupancy() { - return $this->bed; + return $this->occupancy; } /** - * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBed($bed) + public function setOccupancy($occupancy) { $types = [ - "\OpenActive\Models\SchemaOrg\BedDetails", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Models\SchemaOrg\BedType", ]; - $bed = self::checkTypes($bed, $types); + $occupancy = self::checkTypes($occupancy, $types); - $this->bed = $bed; + $this->occupancy = $occupancy; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType */ - public function getOccupancy() + public function getBed() { - return $this->occupancy; + return $this->bed; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $occupancy + * @param \OpenActive\Models\SchemaOrg\BedDetails|string|\OpenActive\Models\SchemaOrg\BedType $bed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setOccupancy($occupancy) + public function setBed($bed) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\BedDetails", "string", + "\OpenActive\Models\SchemaOrg\BedType", ]; - $occupancy = self::checkTypes($occupancy, $types); + $bed = self::checkTypes($bed, $types); - $this->occupancy = $occupancy; + $this->bed = $bed; } } diff --git a/src/Models/SchemaOrg/SuperficialAnatomy.php b/src/Models/SchemaOrg/SuperficialAnatomy.php index 4432f6ac..cb9bf431 100644 --- a/src/Models/SchemaOrg/SuperficialAnatomy.php +++ b/src/Models/SchemaOrg/SuperficialAnatomy.php @@ -17,16 +17,24 @@ public static function getType() public static function fieldList() { $fields = [ + "associatedPathophysiology" => "associatedPathophysiology", "relatedTherapy" => "relatedTherapy", "significance" => "significance", - "relatedAnatomy" => "relatedAnatomy", "relatedCondition" => "relatedCondition", - "associatedPathophysiology" => "associatedPathophysiology", + "relatedAnatomy" => "relatedAnatomy", ]; return array_merge(parent::fieldList(), $fields); } + /** + * 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 $associatedPathophysiology; + /** * A medical therapy related to this anatomy. * @@ -43,14 +51,6 @@ public static function fieldList() { */ protected $significance; - /** - * Anatomical systems or structures that relate to the superficial anatomy. - * - * - * @var \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string - */ - protected $relatedAnatomy; - /** * A medical condition associated with this anatomy. * @@ -60,86 +60,84 @@ 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. + * Anatomical systems or structures that relate to the superficial anatomy. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - protected $associatedPathophysiology; + protected $relatedAnatomy; /** - * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string + * @return string */ - public function getRelatedTherapy() + public function getAssociatedPathophysiology() { - return $this->relatedTherapy; + return $this->associatedPathophysiology; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy + * @param string $associatedPathophysiology * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedTherapy($relatedTherapy) + public function setAssociatedPathophysiology($associatedPathophysiology) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $relatedTherapy = self::checkTypes($relatedTherapy, $types); + $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); - $this->relatedTherapy = $relatedTherapy; + $this->associatedPathophysiology = $associatedPathophysiology; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\MedicalTherapy|string */ - public function getSignificance() + public function getRelatedTherapy() { - return $this->significance; + return $this->relatedTherapy; } /** - * @param string $significance + * @param \OpenActive\Models\SchemaOrg\MedicalTherapy|string $relatedTherapy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSignificance($significance) + public function setRelatedTherapy($relatedTherapy) { $types = [ + "\OpenActive\Models\SchemaOrg\MedicalTherapy", "string", ]; - $significance = self::checkTypes($significance, $types); + $relatedTherapy = self::checkTypes($relatedTherapy, $types); - $this->significance = $significance; + $this->relatedTherapy = $relatedTherapy; } /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string + * @return string */ - public function getRelatedAnatomy() + public function getSignificance() { - return $this->relatedAnatomy; + return $this->significance; } /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $relatedAnatomy + * @param string $significance * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setRelatedAnatomy($relatedAnatomy) + public function setSignificance($significance) { $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", "string", ]; - $relatedAnatomy = self::checkTypes($relatedAnatomy, $types); + $significance = self::checkTypes($significance, $types); - $this->relatedAnatomy = $relatedAnatomy; + $this->significance = $significance; } /** @@ -168,27 +166,29 @@ public function setRelatedCondition($relatedCondition) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - public function getAssociatedPathophysiology() + public function getRelatedAnatomy() { - return $this->associatedPathophysiology; + return $this->relatedAnatomy; } /** - * @param string $associatedPathophysiology + * @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 setAssociatedPathophysiology($associatedPathophysiology) + public function setRelatedAnatomy($relatedAnatomy) { $types = [ + "\OpenActive\Models\SchemaOrg\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", "string", ]; - $associatedPathophysiology = self::checkTypes($associatedPathophysiology, $types); + $relatedAnatomy = self::checkTypes($relatedAnatomy, $types); - $this->associatedPathophysiology = $associatedPathophysiology; + $this->relatedAnatomy = $relatedAnatomy; } } 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", + "countryOfOrigin" => "countryOfOrigin", + "titleEIDR" => "titleEIDR", ]; 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). + * + * + * @var string|\OpenActive\Models\SchemaOrg\Language + */ + protected $subtitleLanguage; + + /** + * The TV series to which this episode or season belongs. + * + * + * @var \OpenActive\Models\SchemaOrg\TVSeries|string + */ + protected $partOfTVSeries; + /** * The country of origin of something, including products as well as creative works such as movie and TV content. * @@ -43,7 +59,7 @@ public static function fieldList() { * * For example, the motion picture known as "Ghostbusters" has a titleEIDR of "10.5240/7EC7-228A-510A-053E-CBB8-J". This title (or work) may have several variants, which EIDR calls "edits". See [[editEIDR]]. * - * Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. + * Since schema.org types like [[Movie]], [[TVEpisode]], [[TVSeason]], and [[TVSeries]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. * * * @@ -52,118 +68,102 @@ public static function fieldList() { protected $titleEIDR; /** - * Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47). - * - * - * @var \OpenActive\Models\SchemaOrg\Language|string - */ - protected $subtitleLanguage; - - /** - * The TV series to which this episode or season belongs. - * - * - * @var \OpenActive\Models\SchemaOrg\TVSeries|string - */ - protected $partOfTVSeries; - - /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getCountryOfOrigin() + public function getSubtitleLanguage() { - return $this->countryOfOrigin; + return $this->subtitleLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @param string|\OpenActive\Models\SchemaOrg\Language $subtitleLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfOrigin($countryOfOrigin) + public function setSubtitleLanguage($subtitleLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->subtitleLanguage = $subtitleLanguage; } /** - * @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; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getSubtitleLanguage() + public function getCountryOfOrigin() { - return $this->subtitleLanguage; + return $this->countryOfOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $subtitleLanguage + * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubtitleLanguage($subtitleLanguage) + public function setCountryOfOrigin($countryOfOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $subtitleLanguage = self::checkTypes($subtitleLanguage, $types); + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); - $this->subtitleLanguage = $subtitleLanguage; + $this->countryOfOrigin = $countryOfOrigin; } /** - * @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..f3e59da5 100644 --- a/src/Models/SchemaOrg/TVSeason.php +++ b/src/Models/SchemaOrg/TVSeason.php @@ -5,7 +5,7 @@ /** * */ -class TVSeason extends \OpenActive\Models\SchemaOrg\CreativeWorkSeason +class TVSeason extends \OpenActive\Models\SchemaOrg\CreativeWork { /** * @return string[]|null @@ -17,13 +17,22 @@ public static function getType() public static function fieldList() { $fields = [ - "countryOfOrigin" => "countryOfOrigin", "partOfTVSeries" => "partOfTVSeries", + "countryOfOrigin" => "countryOfOrigin", + "titleEIDR" => "titleEIDR", ]; return array_merge(parent::fieldList(), $fields); } + /** + * The TV series to which this episode or season belongs. + * + * + * @var \OpenActive\Models\SchemaOrg\TVSeries|string + */ + protected $partOfTVSeries; + /** * The country of origin of something, including products as well as creative works such as movie and TV content. * @@ -37,12 +46,42 @@ public static function fieldList() { protected $countryOfOrigin; /** - * 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\TVSeries|string + */ + public function getPartOfTVSeries() + { + return $this->partOfTVSeries; + } + + /** + * @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 setPartOfTVSeries($partOfTVSeries) + { + $types = [ + "\OpenActive\Models\SchemaOrg\TVSeries", + "string", + ]; + + $partOfTVSeries = self::checkTypes($partOfTVSeries, $types); + + $this->partOfTVSeries = $partOfTVSeries; + } /** * @return \OpenActive\Models\SchemaOrg\Country|string @@ -70,28 +109,27 @@ public function setCountryOfOrigin($countryOfOrigin) } /** - * @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/TVSeries.php b/src/Models/SchemaOrg/TVSeries.php index a8df402b..962b0d3a 100644 --- a/src/Models/SchemaOrg/TVSeries.php +++ b/src/Models/SchemaOrg/TVSeries.php @@ -17,34 +17,27 @@ public static function getType() public static function fieldList() { $fields = [ - "season" => "season", "containsSeason" => "containsSeason", - "countryOfOrigin" => "countryOfOrigin", - "director" => "director", - "actor" => "actor", - "trailer" => "trailer", - "episodes" => "episodes", "numberOfEpisodes" => "numberOfEpisodes", + "trailer" => "trailer", + "actor" => "actor", "seasons" => "seasons", "productionCompany" => "productionCompany", - "actors" => "actors", "numberOfSeasons" => "numberOfSeasons", "musicBy" => "musicBy", - "episode" => "episode", + "countryOfOrigin" => "countryOfOrigin", "directors" => "directors", + "director" => "director", + "episode" => "episode", + "episodes" => "episodes", + "actors" => "actors", + "titleEIDR" => "titleEIDR", + "season" => "season", ]; return array_merge(parent::fieldList(), $fields); } - /** - * A season in a media series. - * - * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason - */ - protected $season; - /** * A season that is part of the media series. * @@ -54,27 +47,23 @@ public static function fieldList() { protected $containsSeason; /** - * The country of origin of something, including products as well as creative works such as movie and TV content. - * - * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. - * - * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here. + * The number of episodes in this season or series. * * - * @var \OpenActive\Models\SchemaOrg\Country|string + * @var int|null */ - protected $countryOfOrigin; + protected $numberOfEpisodes; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * The trailer of a movie or TV/radio series, season, episode, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ - protected $director; + protected $trailer; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string @@ -82,109 +71,109 @@ public static function fieldList() { protected $actor; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * A season in a media series. * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $trailer; + protected $seasons; /** - * An episode of a TV/radio series or season. + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $episodes; + protected $productionCompany; /** - * The number of episodes in this season or series. + * The number of seasons in this series. * * * @var int|null */ - protected $numberOfEpisodes; + protected $numberOfSeasons; /** - * A season in a media series. + * The composer of the soundtrack. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $seasons; + protected $musicBy; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * The country of origin of something, including products as well as creative works such as movie and TV content. + * + * In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. + * + * In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\Country|string */ - protected $productionCompany; + protected $countryOfOrigin; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $actors; + protected $directors; /** - * The number of seasons in this series. + * 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 $numberOfSeasons; + protected $director; /** - * The composer of the soundtrack. + * An episode of a TV, radio or game media within a series or season. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $musicBy; + protected $episode; /** - * An episode of a tv, radio or game media within a series or season. + * An episode of a TV/radio series or season. * * * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $episode; + protected $episodes; /** - * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $directors; + protected $actors; /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * 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 */ - public function getSeason() - { - return $this->season; - } + protected $titleEIDR; /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * A season in a media series. + * + * + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function setSeason($season) - { - $types = [ - "string", - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", - ]; - - $season = self::checkTypes($season, $types); - - $this->season = $season; - } + protected $season; /** * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string @@ -212,53 +201,53 @@ public function setContainsSeason($containsSeason) } /** - * @return \OpenActive\Models\SchemaOrg\Country|string + * @return int|null */ - public function getCountryOfOrigin() + public function getNumberOfEpisodes() { - return $this->countryOfOrigin; + return $this->numberOfEpisodes; } /** - * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin + * @param int|null $numberOfEpisodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCountryOfOrigin($countryOfOrigin) + public function setNumberOfEpisodes($numberOfEpisodes) { $types = [ - "\OpenActive\Models\SchemaOrg\Country", - "string", + "int", + "null", ]; - $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); + $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); - $this->countryOfOrigin = $countryOfOrigin; + $this->numberOfEpisodes = $numberOfEpisodes; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getDirector() + public function getTrailer() { - return $this->director; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $director = self::checkTypes($director, $types); + $trailer = self::checkTypes($trailer, $types); - $this->director = $director; + $this->trailer = $trailer; } /** @@ -287,254 +276,303 @@ public function setActor($actor) } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getTrailer() + public function getSeasons() { - return $this->trailer; + return $this->seasons; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @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 setTrailer($trailer) + public function setSeasons($seasons) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $seasons = self::checkTypes($seasons, $types); - $this->trailer = $trailer; + $this->seasons = $seasons; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getEpisodes() + public function getProductionCompany() { - return $this->episodes; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes + * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisodes($episodes) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $episodes = self::checkTypes($episodes, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->episodes = $episodes; + $this->productionCompany = $productionCompany; } /** * @return int|null */ - public function getNumberOfEpisodes() + public function getNumberOfSeasons() { - return $this->numberOfEpisodes; + return $this->numberOfSeasons; } /** - * @param int|null $numberOfEpisodes + * @param int|null $numberOfSeasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfEpisodes($numberOfEpisodes) + public function setNumberOfSeasons($numberOfSeasons) { $types = [ "int", "null", ]; - $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); + $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); - $this->numberOfEpisodes = $numberOfEpisodes; + $this->numberOfSeasons = $numberOfSeasons; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getSeasons() + public function getMusicBy() { - return $this->seasons; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $seasons + * @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 setSeasons($seasons) + public function setMusicBy($musicBy) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $seasons = self::checkTypes($seasons, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->seasons = $seasons; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Country|string */ - public function getProductionCompany() + public function getCountryOfOrigin() { - return $this->productionCompany; + return $this->countryOfOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @param \OpenActive\Models\SchemaOrg\Country|string $countryOfOrigin * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionCompany($productionCompany) + public function setCountryOfOrigin($countryOfOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Country", "string", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $countryOfOrigin = self::checkTypes($countryOfOrigin, $types); - $this->productionCompany = $productionCompany; + $this->countryOfOrigin = $countryOfOrigin; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getActors() + public function getDirectors() { - return $this->actors; + return $this->directors; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param \OpenActive\Models\SchemaOrg\Person|string $directors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setDirectors($directors) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actors = self::checkTypes($actors, $types); + $directors = self::checkTypes($directors, $types); - $this->actors = $actors; + $this->directors = $directors; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNumberOfSeasons() + public function getDirector() { - return $this->numberOfSeasons; + return $this->director; } /** - * @param int|null $numberOfSeasons + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfSeasons($numberOfSeasons) + public function setDirector($director) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); + $director = self::checkTypes($director, $types); - $this->numberOfSeasons = $numberOfSeasons; + $this->director = $director; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getMusicBy() + public function getEpisode() { - return $this->musicBy; + return $this->episode; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @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 setMusicBy($musicBy) + public function setEpisode($episode) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $episode = self::checkTypes($episode, $types); - $this->musicBy = $musicBy; + $this->episode = $episode; } /** * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getEpisode() + public function getEpisodes() { - return $this->episode; + return $this->episodes; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEpisode($episode) + public function setEpisodes($episodes) { $types = [ "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $episode = self::checkTypes($episode, $types); + $episodes = self::checkTypes($episodes, $types); - $this->episode = $episode; + $this->episodes = $episodes; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDirectors() + public function getActors() { - return $this->directors; + return $this->actors; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @param \OpenActive\Models\SchemaOrg\Person|string $actors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirectors($directors) + public function setActors($actors) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $directors = self::checkTypes($directors, $types); + $actors = self::checkTypes($actors, $types); - $this->directors = $directors; + $this->actors = $actors; + } + + /** + * @return string + */ + public function getTitleEIDR() + { + return $this->titleEIDR; + } + + /** + * @param string $titleEIDR + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setTitleEIDR($titleEIDR) + { + $types = [ + "string", + ]; + + $titleEIDR = self::checkTypes($titleEIDR, $types); + + $this->titleEIDR = $titleEIDR; + } + + /** + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + */ + public function getSeason() + { + return $this->season; + } + + /** + * @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 setSeason($season) + { + $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "string", + ]; + + $season = self::checkTypes($season, $types); + + $this->season = $season; } } diff --git a/src/Models/SchemaOrg/TaxiReservation.php b/src/Models/SchemaOrg/TaxiReservation.php index 2da50e7c..535654d5 100644 --- a/src/Models/SchemaOrg/TaxiReservation.php +++ b/src/Models/SchemaOrg/TaxiReservation.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "partySize" => "partySize", "pickupTime" => "pickupTime", + "partySize" => "partySize", "pickupLocation" => "pickupLocation", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * Number of people the reservation should accommodate. + * When a taxi will pick up a passenger or a rental car can be picked up. * * - * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var DateTime|null */ - protected $partySize; + protected $pickupTime; /** - * When a taxi will pickup a passenger or a rental car can be picked up. + * Number of people the reservation should accommodate. * * - * @var DateTime|null + * @var int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $pickupTime; + protected $partySize; /** * Where a taxi will pick up a passenger or a rental car can be picked up. @@ -50,55 +50,55 @@ public static function fieldList() { protected $pickupLocation; /** - * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return DateTime|null */ - public function getPartySize() + public function getPickupTime() { - return $this->partySize; + return $this->pickupTime; } /** - * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $partySize + * @param DateTime|null $pickupTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPartySize($partySize) + public function setPickupTime($pickupTime) { $types = [ - "int", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "DateTime", "null", ]; - $partySize = self::checkTypes($partySize, $types); + $pickupTime = self::checkTypes($pickupTime, $types); - $this->partySize = $partySize; + $this->pickupTime = $pickupTime; } /** - * @return DateTime|null + * @return int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getPickupTime() + public function getPartySize() { - return $this->pickupTime; + return $this->partySize; } /** - * @param DateTime|null $pickupTime + * @param int|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $partySize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPickupTime($pickupTime) + public function setPartySize($partySize) { $types = [ - "DateTime", + "int", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", "null", ]; - $pickupTime = self::checkTypes($pickupTime, $types); + $partySize = self::checkTypes($partySize, $types); - $this->pickupTime = $pickupTime; + $this->partySize = $partySize; } /** diff --git a/src/Models/SchemaOrg/Taxon.php b/src/Models/SchemaOrg/Taxon.php index cc2eebde..73da6295 100644 --- a/src/Models/SchemaOrg/Taxon.php +++ b/src/Models/SchemaOrg/Taxon.php @@ -18,9 +18,9 @@ public static function getType() public static function fieldList() { $fields = [ "parentTaxon" => "parentTaxon", + "hasDefinedTerm" => "hasDefinedTerm", "taxonRank" => "taxonRank", "childTaxon" => "childTaxon", - "hasDefinedTerm" => "hasDefinedTerm", ]; return array_merge(parent::fieldList(), $fields); @@ -35,28 +35,28 @@ public static function fieldList() { protected $parentTaxon; /** - * The taxonomic rank of this taxon given preferably as a URI from a controlled vocabulary – (typically the ranks from TDWG TaxonRank ontology or equivalent Wikidata URIs). + * 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. + * The taxonomic rank of this taxon given preferably as a URI from a controlled vocabulary – typically the ranks from TDWG TaxonRank ontology or equivalent Wikidata URIs. * * - * @var string|\OpenActive\Models\SchemaOrg\Taxon + * @var string|\OpenActive\Models\SchemaOrg\PropertyValue */ - protected $childTaxon; + protected $taxonRank; /** - * A Defined Term contained in this term set. + * Closest child taxa of the taxon in question. * * - * @var \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @var string|\OpenActive\Models\SchemaOrg\Taxon */ - protected $hasDefinedTerm; + protected $childTaxon; /** * @return string|\OpenActive\Models\SchemaOrg\Taxon @@ -84,78 +84,78 @@ public function setParentTaxon($parentTaxon) } /** - * @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 string|\OpenActive\Models\SchemaOrg\PropertyValue */ - public function getChildTaxon() + public function getTaxonRank() { - return $this->childTaxon; + return $this->taxonRank; } /** - * @param string|\OpenActive\Models\SchemaOrg\Taxon $childTaxon + * @param string|\OpenActive\Models\SchemaOrg\PropertyValue $taxonRank * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setChildTaxon($childTaxon) + public function setTaxonRank($taxonRank) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Taxon", + "\OpenActive\Models\SchemaOrg\PropertyValue", ]; - $childTaxon = self::checkTypes($childTaxon, $types); + $taxonRank = self::checkTypes($taxonRank, $types); - $this->childTaxon = $childTaxon; + $this->taxonRank = $taxonRank; } /** - * @return \OpenActive\Models\SchemaOrg\DefinedTerm|string + * @return string|\OpenActive\Models\SchemaOrg\Taxon */ - public function getHasDefinedTerm() + public function getChildTaxon() { - return $this->hasDefinedTerm; + return $this->childTaxon; } /** - * @param \OpenActive\Models\SchemaOrg\DefinedTerm|string $hasDefinedTerm + * @param string|\OpenActive\Models\SchemaOrg\Taxon $childTaxon * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHasDefinedTerm($hasDefinedTerm) + public function setChildTaxon($childTaxon) { $types = [ - "\OpenActive\Models\SchemaOrg\DefinedTerm", "string", + "\OpenActive\Models\SchemaOrg\Taxon", ]; - $hasDefinedTerm = self::checkTypes($hasDefinedTerm, $types); + $childTaxon = self::checkTypes($childTaxon, $types); - $this->hasDefinedTerm = $hasDefinedTerm; + $this->childTaxon = $childTaxon; } } diff --git a/src/Models/SchemaOrg/TechArticle.php b/src/Models/SchemaOrg/TechArticle.php index 560d9995..f38c3497 100644 --- a/src/Models/SchemaOrg/TechArticle.php +++ b/src/Models/SchemaOrg/TechArticle.php @@ -17,75 +17,75 @@ public static function getType() public static function fieldList() { $fields = [ - "dependencies" => "dependencies", "proficiencyLevel" => "proficiencyLevel", + "dependencies" => "dependencies", ]; return array_merge(parent::fieldList(), $fields); } /** - * Prerequisites needed to fulfill steps in article. + * Proficiency needed for this content; expected values: 'Beginner', 'Expert'. * * * @var string */ - protected $dependencies; + protected $proficiencyLevel; /** - * Proficiency needed for this content; expected values: 'Beginner', 'Expert'. + * Prerequisites needed to fulfill steps in article. * * * @var string */ - protected $proficiencyLevel; + protected $dependencies; /** * @return string */ - public function getDependencies() + public function getProficiencyLevel() { - return $this->dependencies; + return $this->proficiencyLevel; } /** - * @param string $dependencies + * @param string $proficiencyLevel * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDependencies($dependencies) + public function setProficiencyLevel($proficiencyLevel) { $types = [ "string", ]; - $dependencies = self::checkTypes($dependencies, $types); + $proficiencyLevel = self::checkTypes($proficiencyLevel, $types); - $this->dependencies = $dependencies; + $this->proficiencyLevel = $proficiencyLevel; } /** * @return string */ - public function getProficiencyLevel() + public function getDependencies() { - return $this->proficiencyLevel; + return $this->dependencies; } /** - * @param string $proficiencyLevel + * @param string $dependencies * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProficiencyLevel($proficiencyLevel) + public function setDependencies($dependencies) { $types = [ "string", ]; - $proficiencyLevel = self::checkTypes($proficiencyLevel, $types); + $dependencies = self::checkTypes($dependencies, $types); - $this->proficiencyLevel = $proficiencyLevel; + $this->dependencies = $dependencies; } } diff --git a/src/Models/SchemaOrg/TextObject.php b/src/Models/SchemaOrg/TextObject.php new file mode 100644 index 00000000..f2e989ee --- /dev/null +++ b/src/Models/SchemaOrg/TextObject.php @@ -0,0 +1,25 @@ + "adverseOutcome", "drug" => "drug", + "adverseOutcome" => "adverseOutcome", "doseSchedule" => "doseSchedule", ]; @@ -26,20 +26,20 @@ public static function fieldList() { } /** - * A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or is otherwise life-threatening or requires immediate medical attention), tag it as a seriouseAdverseOutcome instead. + * Specifying a drug or medicine used in a medication procedure. * * - * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string + * @var \OpenActive\Models\SchemaOrg\Drug|string */ - protected $adverseOutcome; + protected $drug; /** - * Specifying a drug or medicine used in a medication procedure. + * 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\Drug|string + * @var \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - protected $drug; + protected $adverseOutcome; /** * A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used. @@ -50,53 +50,53 @@ public static function fieldList() { protected $doseSchedule; /** - * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string + * @return \OpenActive\Models\SchemaOrg\Drug|string */ - public function getAdverseOutcome() + public function getDrug() { - return $this->adverseOutcome; + return $this->drug; } /** - * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome + * @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 setAdverseOutcome($adverseOutcome) + public function setDrug($drug) { $types = [ - "\OpenActive\Models\SchemaOrg\MedicalEntity", + "\OpenActive\Models\SchemaOrg\Drug", "string", ]; - $adverseOutcome = self::checkTypes($adverseOutcome, $types); + $drug = self::checkTypes($drug, $types); - $this->adverseOutcome = $adverseOutcome; + $this->drug = $drug; } /** - * @return \OpenActive\Models\SchemaOrg\Drug|string + * @return \OpenActive\Models\SchemaOrg\MedicalEntity|string */ - public function getDrug() + public function getAdverseOutcome() { - return $this->drug; + return $this->adverseOutcome; } /** - * @param \OpenActive\Models\SchemaOrg\Drug|string $drug + * @param \OpenActive\Models\SchemaOrg\MedicalEntity|string $adverseOutcome * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDrug($drug) + public function setAdverseOutcome($adverseOutcome) { $types = [ - "\OpenActive\Models\SchemaOrg\Drug", + "\OpenActive\Models\SchemaOrg\MedicalEntity", "string", ]; - $drug = self::checkTypes($drug, $types); + $adverseOutcome = self::checkTypes($adverseOutcome, $types); - $this->drug = $drug; + $this->adverseOutcome = $adverseOutcome; } /** diff --git a/src/Models/SchemaOrg/Thing.php b/src/Models/SchemaOrg/Thing.php index 938171a4..8b3e362a 100644 --- a/src/Models/SchemaOrg/Thing.php +++ b/src/Models/SchemaOrg/Thing.php @@ -20,15 +20,15 @@ public static function fieldList() { "identifier" => "identifier", "name" => "name", "description" => "description", + "sameAs" => "sameAs", + "additionalType" => "additionalType", "mainEntityOfPage" => "mainEntityOfPage", - "alternateName" => "alternateName", "potentialAction" => "potentialAction", - "image" => "image", - "url" => "url", "subjectOf" => "subjectOf", - "additionalType" => "additionalType", + "url" => "url", + "image" => "image", + "alternateName" => "alternateName", "disambiguatingDescription" => "disambiguatingDescription", - "sameAs" => "sameAs", ]; return array_merge(parent::fieldList(), $fields); @@ -55,25 +55,34 @@ 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. + * 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 \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string */ - protected $mainEntityOfPage; + protected $sameAs; /** - * An alias for the item. + * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the + * use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org style guide. * * * @var string */ - protected $alternateName; + protected $additionalType; + + /** + * Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details. + * + * + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + */ + protected $mainEntityOfPage; /** * Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role. @@ -84,12 +93,12 @@ public static function fieldList() { protected $potentialAction; /** - * An image of the item. This can be a [[URL]] or a fully described [[ImageObject]]. + * A CreativeWork or Event about this Thing. * * - * @var string|\OpenActive\Models\SchemaOrg\ImageObject + * @var \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|string */ - protected $image; + protected $subjectOf; /** * URL of the item. @@ -100,20 +109,20 @@ public static function fieldList() { protected $url; /** - * A CreativeWork or Event about this Thing. + * An image of the item. This can be a [[URL]] or a fully described [[ImageObject]]. * * - * @var \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $subjectOf; + protected $image; /** - * An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally. + * An alias for the item. * * * @var string */ - protected $additionalType; + protected $alternateName; /** * 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. @@ -123,14 +132,6 @@ public static function fieldList() { */ protected $disambiguatingDescription; - /** - * 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 $sameAs; - /** * @return string|\OpenActive\Models\SchemaOrg\PropertyValue */ @@ -181,7 +182,7 @@ public function setName($name) } /** - * @return string + * @return string|\OpenActive\Models\SchemaOrg\TextObject */ public function getDescription() { @@ -189,7 +190,7 @@ public function getDescription() } /** - * @param string $description + * @param string|\OpenActive\Models\SchemaOrg\TextObject $description * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ @@ -197,6 +198,7 @@ public function setDescription($description) { $types = [ "string", + "\OpenActive\Models\SchemaOrg\TextObject", ]; $description = self::checkTypes($description, $types); @@ -205,52 +207,76 @@ public function setDescription($description) } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getMainEntityOfPage() + public function getSameAs() { - return $this->mainEntityOfPage; + return $this->sameAs; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $mainEntityOfPage + * @param string $sameAs * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMainEntityOfPage($mainEntityOfPage) + public function setSameAs($sameAs) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $mainEntityOfPage = self::checkTypes($mainEntityOfPage, $types); + $sameAs = self::checkTypes($sameAs, $types); - $this->mainEntityOfPage = $mainEntityOfPage; + $this->sameAs = $sameAs; } /** * @return string */ - public function getAlternateName() + public function getAdditionalType() { - return $this->alternateName; + return $this->additionalType; } /** - * @param string $alternateName + * @param string $additionalType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAlternateName($alternateName) + public function setAdditionalType($additionalType) { $types = [ "string", ]; - $alternateName = self::checkTypes($alternateName, $types); + $additionalType = self::checkTypes($additionalType, $types); - $this->alternateName = $alternateName; + $this->additionalType = $additionalType; + } + + /** + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + */ + public function getMainEntityOfPage() + { + return $this->mainEntityOfPage; + } + + /** + * @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 setMainEntityOfPage($mainEntityOfPage) + { + $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "string", + ]; + + $mainEntityOfPage = self::checkTypes($mainEntityOfPage, $types); + + $this->mainEntityOfPage = $mainEntityOfPage; } /** @@ -279,28 +305,29 @@ public function setPotentialAction($potentialAction) } /** - * @return string|\OpenActive\Models\SchemaOrg\ImageObject + * @return \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|string */ - public function getImage() + public function getSubjectOf() { - return $this->image; + return $this->subjectOf; } /** - * @param string|\OpenActive\Models\SchemaOrg\ImageObject $image + * @param \OpenActive\Models\SchemaOrg\CreativeWork|\OpenActive\Models\SchemaOrg\Event|string $subjectOf * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setImage($image) + public function setSubjectOf($subjectOf) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Event", "string", - "\OpenActive\Models\SchemaOrg\ImageObject", ]; - $image = self::checkTypes($image, $types); + $subjectOf = self::checkTypes($subjectOf, $types); - $this->image = $image; + $this->subjectOf = $subjectOf; } /** @@ -328,53 +355,52 @@ public function setUrl($url) } /** - * @return \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getSubjectOf() + public function getImage() { - return $this->subjectOf; + return $this->image; } /** - * @param \OpenActive\Models\SchemaOrg\Event|\OpenActive\Models\SchemaOrg\CreativeWork|string $subjectOf + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $image * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubjectOf($subjectOf) + public function setImage($image) { $types = [ - "\OpenActive\Models\SchemaOrg\Event", - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $subjectOf = self::checkTypes($subjectOf, $types); + $image = self::checkTypes($image, $types); - $this->subjectOf = $subjectOf; + $this->image = $image; } /** * @return string */ - public function getAdditionalType() + public function getAlternateName() { - return $this->additionalType; + return $this->alternateName; } /** - * @param string $additionalType + * @param string $alternateName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAdditionalType($additionalType) + public function setAlternateName($alternateName) { $types = [ "string", ]; - $additionalType = self::checkTypes($additionalType, $types); + $alternateName = self::checkTypes($alternateName, $types); - $this->additionalType = $additionalType; + $this->alternateName = $alternateName; } /** @@ -401,28 +427,4 @@ public function setDisambiguatingDescription($disambiguatingDescription) $this->disambiguatingDescription = $disambiguatingDescription; } - /** - * @return string - */ - public function getSameAs() - { - return $this->sameAs; - } - - /** - * @param string $sameAs - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setSameAs($sameAs) - { - $types = [ - "string", - ]; - - $sameAs = self::checkTypes($sameAs, $types); - - $this->sameAs = $sameAs; - } - } diff --git a/src/Models/SchemaOrg/Ticket.php b/src/Models/SchemaOrg/Ticket.php index a75f6f70..9dbcdf21 100644 --- a/src/Models/SchemaOrg/Ticket.php +++ b/src/Models/SchemaOrg/Ticket.php @@ -17,282 +17,282 @@ public static function getType() public static function fieldList() { $fields = [ - "ticketToken" => "ticketToken", - "ticketedSeat" => "ticketedSeat", - "totalPrice" => "totalPrice", "issuedBy" => "issuedBy", "ticketNumber" => "ticketNumber", - "dateIssued" => "dateIssued", + "ticketToken" => "ticketToken", + "totalPrice" => "totalPrice", "priceCurrency" => "priceCurrency", + "ticketedSeat" => "ticketedSeat", "underName" => "underName", + "dateIssued" => "dateIssued", ]; return array_merge(parent::fieldList(), $fields); } /** - * Reference to an asset (e.g., Barcode, QR code image or PDF) usable for entrance. + * The organization issuing the item, for example a [[Permit]], [[Ticket]], or [[Certification]]. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $ticketToken; + protected $issuedBy; /** - * The seat associated with the ticket. + * The unique identifier for the ticket. * * - * @var \OpenActive\Models\SchemaOrg\Seat|string + * @var string */ - protected $ticketedSeat; + protected $ticketNumber; /** - * 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. + * Reference to an asset (e.g., Barcode, QR code image or PDF) usable for entrance. * * - * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @var string */ - protected $totalPrice; + protected $ticketToken; /** - * The organization issuing the ticket or permit. + * 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|string + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null */ - protected $issuedBy; + protected $totalPrice; /** - * The unique identifier for the ticket. + * The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.\n\nUse standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR". * * * @var string */ - protected $ticketNumber; + protected $priceCurrency; /** - * The date the ticket was issued. + * The 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 person or organization the reservation or ticket is for. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $priceCurrency; + protected $underName; /** - * The person or organization the reservation or ticket is for. + * The date the ticket was issued. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var Date|DateTime|null */ - protected $underName; + protected $dateIssued; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getTicketToken() + public function getIssuedBy() { - return $this->ticketToken; + return $this->issuedBy; } /** - * @param string $ticketToken + * @param \OpenActive\Models\SchemaOrg\Organization|string $issuedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTicketToken($ticketToken) + public function setIssuedBy($issuedBy) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $ticketToken = self::checkTypes($ticketToken, $types); + $issuedBy = self::checkTypes($issuedBy, $types); - $this->ticketToken = $ticketToken; + $this->issuedBy = $issuedBy; } /** - * @return \OpenActive\Models\SchemaOrg\Seat|string + * @return string */ - public function getTicketedSeat() + public function getTicketNumber() { - return $this->ticketedSeat; + return $this->ticketNumber; } /** - * @param \OpenActive\Models\SchemaOrg\Seat|string $ticketedSeat + * @param string $ticketNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTicketedSeat($ticketedSeat) + public function setTicketNumber($ticketNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\Seat", "string", ]; - $ticketedSeat = self::checkTypes($ticketedSeat, $types); + $ticketNumber = self::checkTypes($ticketNumber, $types); - $this->ticketedSeat = $ticketedSeat; + $this->ticketNumber = $ticketNumber; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null + * @return string */ - public function getTotalPrice() + public function getTicketToken() { - return $this->totalPrice; + return $this->ticketToken; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice + * @param string $ticketToken * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTotalPrice($totalPrice) + public function setTicketToken($ticketToken) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", - "Number", - "null", ]; - $totalPrice = self::checkTypes($totalPrice, $types); + $ticketToken = self::checkTypes($ticketToken, $types); - $this->totalPrice = $totalPrice; + $this->ticketToken = $ticketToken; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null */ - public function getIssuedBy() + public function getTotalPrice() { - return $this->issuedBy; + return $this->totalPrice; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $issuedBy + * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string|Number|null $totalPrice * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setIssuedBy($issuedBy) + public function setTotalPrice($totalPrice) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", + "Number", + "null", ]; - $issuedBy = self::checkTypes($issuedBy, $types); + $totalPrice = self::checkTypes($totalPrice, $types); - $this->issuedBy = $issuedBy; + $this->totalPrice = $totalPrice; } /** * @return string */ - public function getTicketNumber() + public function getPriceCurrency() { - return $this->ticketNumber; + return $this->priceCurrency; } /** - * @param string $ticketNumber + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTicketNumber($ticketNumber) + public function setPriceCurrency($priceCurrency) { $types = [ "string", ]; - $ticketNumber = self::checkTypes($ticketNumber, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->ticketNumber = $ticketNumber; + $this->priceCurrency = $priceCurrency; } /** - * @return Date|DateTime|null + * @return \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 \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getPriceCurrency() + public function getUnderName() { - return $this->priceCurrency; + return $this->underName; } /** - * @param string $priceCurrency + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $underName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceCurrency($priceCurrency) + public function setUnderName($underName) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $underName = self::checkTypes($underName, $types); - $this->priceCurrency = $priceCurrency; + $this->underName = $underName; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return Date|DateTime|null */ - public function getUnderName() + public function getDateIssued() { - return $this->underName; + return $this->dateIssued; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $underName + * @param Date|DateTime|null $dateIssued * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnderName($underName) + public function setDateIssued($dateIssued) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "DateTime", + "null", ]; - $underName = self::checkTypes($underName, $types); + $dateIssued = self::checkTypes($dateIssued, $types); - $this->underName = $underName; + $this->dateIssued = $dateIssued; } } diff --git a/src/Models/SchemaOrg/TipAction.php b/src/Models/SchemaOrg/TipAction.php index 1096c425..908a26f4 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\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ protected $recipient; /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string */ public function getRecipient() { @@ -40,17 +40,17 @@ public function getRecipient() } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Organization|string $recipient + * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\ContactPoint|\OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Audience|string $recipient * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setRecipient($recipient) { $types = [ + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\ContactPoint", "\OpenActive\Models\SchemaOrg\Person", "\OpenActive\Models\SchemaOrg\Audience", - "\OpenActive\Models\SchemaOrg\ContactPoint", - "\OpenActive\Models\SchemaOrg\Organization", "string", ]; diff --git a/src/Models/SchemaOrg/TouristAttraction.php b/src/Models/SchemaOrg/TouristAttraction.php index dc3dd23b..519c1981 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 string|\OpenActive\Models\SchemaOrg\Language */ - 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 string|\OpenActive\Models\SchemaOrg\Language */ - public function getTouristType() + public function getAvailableLanguage() { - return $this->touristType; + return $this->availableLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Audience|string $touristType + * @param string|\OpenActive\Models\SchemaOrg\Language $availableLanguage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTouristType($touristType) + public function setAvailableLanguage($availableLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Audience", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $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..12eaeddc 100644 --- a/src/Models/SchemaOrg/TradeAction.php +++ b/src/Models/SchemaOrg/TradeAction.php @@ -17,8 +17,8 @@ public static function getType() public static function fieldList() { $fields = [ - "priceCurrency" => "priceCurrency", "priceSpecification" => "priceSpecification", + "priceCurrency" => "priceCurrency", "price" => "price", ]; @@ -26,23 +26,23 @@ public static function fieldList() { } /** - * 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". + * One or more detailed price specifications, indicating the unit price and delivery or payment charges. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - protected $priceCurrency; + protected $priceSpecification; /** - * One or more detailed price specifications, indicating the unit price and delivery or payment charges. + * 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 + * @var string */ - protected $priceSpecification; + protected $priceCurrency; /** - * 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 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. * * * @@ -51,52 +51,52 @@ public static function fieldList() { protected $price; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string */ - public function getPriceCurrency() + public function getPriceSpecification() { - return $this->priceCurrency; + return $this->priceSpecification; } /** - * @param string $priceCurrency + * @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 setPriceCurrency($priceCurrency) + public function setPriceSpecification($priceSpecification) { $types = [ + "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $priceCurrency = self::checkTypes($priceCurrency, $types); + $priceSpecification = self::checkTypes($priceSpecification, $types); - $this->priceCurrency = $priceCurrency; + $this->priceSpecification = $priceSpecification; } /** - * @return \OpenActive\Models\SchemaOrg\PriceSpecification|string + * @return string */ - public function getPriceSpecification() + public function getPriceCurrency() { - return $this->priceSpecification; + return $this->priceCurrency; } /** - * @param \OpenActive\Models\SchemaOrg\PriceSpecification|string $priceSpecification + * @param string $priceCurrency * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceSpecification($priceSpecification) + public function setPriceCurrency($priceCurrency) { $types = [ - "\OpenActive\Models\SchemaOrg\PriceSpecification", "string", ]; - $priceSpecification = self::checkTypes($priceSpecification, $types); + $priceCurrency = self::checkTypes($priceCurrency, $types); - $this->priceSpecification = $priceSpecification; + $this->priceCurrency = $priceCurrency; } /** diff --git a/src/Models/SchemaOrg/TrainTrip.php b/src/Models/SchemaOrg/TrainTrip.php index 7160d977..b60f40ad 100644 --- a/src/Models/SchemaOrg/TrainTrip.php +++ b/src/Models/SchemaOrg/TrainTrip.php @@ -17,24 +17,32 @@ public static function getType() public static function fieldList() { $fields = [ - "trainName" => "trainName", + "arrivalPlatform" => "arrivalPlatform", + "trainNumber" => "trainNumber", "departureStation" => "departureStation", "departurePlatform" => "departurePlatform", - "trainNumber" => "trainNumber", - "arrivalPlatform" => "arrivalPlatform", "arrivalStation" => "arrivalStation", + "trainName" => "trainName", ]; 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 unique identifier for the train. + * + * + * @var string + */ + protected $trainNumber; /** * The station from which the train departs. @@ -53,51 +61,67 @@ public static function fieldList() { protected $departurePlatform; /** - * The unique identifier for the train. + * The station where the train trip ends. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\TrainStation|string */ - protected $trainNumber; + protected $arrivalStation; /** - * 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. - * - * - * @var \OpenActive\Models\SchemaOrg\TrainStation|string + * @return string */ - protected $arrivalStation; + public function getArrivalPlatform() + { + return $this->arrivalPlatform; + } + + /** + * @param string $arrivalPlatform + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setArrivalPlatform($arrivalPlatform) + { + $types = [ + "string", + ]; + + $arrivalPlatform = self::checkTypes($arrivalPlatform, $types); + + $this->arrivalPlatform = $arrivalPlatform; + } /** * @return string */ - public function getTrainName() + public function getTrainNumber() { - return $this->trainName; + return $this->trainNumber; } /** - * @param string $trainName + * @param string $trainNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTrainName($trainName) + public function setTrainNumber($trainNumber) { $types = [ "string", ]; - $trainName = self::checkTypes($trainName, $types); + $trainNumber = self::checkTypes($trainNumber, $types); - $this->trainName = $trainName; + $this->trainNumber = $trainNumber; } /** @@ -150,76 +174,52 @@ public function setDeparturePlatform($departurePlatform) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\TrainStation|string */ - public function getTrainNumber() + public function getArrivalStation() { - return $this->trainNumber; + return $this->arrivalStation; } /** - * @param string $trainNumber + * @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 setTrainNumber($trainNumber) + public function setArrivalStation($arrivalStation) { $types = [ + "\OpenActive\Models\SchemaOrg\TrainStation", "string", ]; - $trainNumber = self::checkTypes($trainNumber, $types); + $arrivalStation = self::checkTypes($arrivalStation, $types); - $this->trainNumber = $trainNumber; + $this->arrivalStation = $arrivalStation; } /** * @return string */ - public function getArrivalPlatform() - { - return $this->arrivalPlatform; - } - - /** - * @param string $arrivalPlatform - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setArrivalPlatform($arrivalPlatform) - { - $types = [ - "string", - ]; - - $arrivalPlatform = self::checkTypes($arrivalPlatform, $types); - - $this->arrivalPlatform = $arrivalPlatform; - } - - /** - * @return \OpenActive\Models\SchemaOrg\TrainStation|string - */ - public function getArrivalStation() + public function getTrainName() { - return $this->arrivalStation; + return $this->trainName; } /** - * @param \OpenActive\Models\SchemaOrg\TrainStation|string $arrivalStation + * @param string $trainName * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setArrivalStation($arrivalStation) + public function setTrainName($trainName) { $types = [ - "\OpenActive\Models\SchemaOrg\TrainStation", "string", ]; - $arrivalStation = self::checkTypes($arrivalStation, $types); + $trainName = self::checkTypes($trainName, $types); - $this->arrivalStation = $arrivalStation; + $this->trainName = $trainName; } } diff --git a/src/Models/SchemaOrg/TransferAction.php b/src/Models/SchemaOrg/TransferAction.php index 7c5ae7d7..1693bc7d 100644 --- a/src/Models/SchemaOrg/TransferAction.php +++ b/src/Models/SchemaOrg/TransferAction.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "fromLocation" => "fromLocation", "toLocation" => "toLocation", + "fromLocation" => "fromLocation", ]; return array_merge(parent::fieldList(), $fields); } /** - * A sub property of location. The original location of the object or the agent before the action. + * A sub property of location. The final location of the object or the agent after the action. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $fromLocation; + protected $toLocation; /** - * A sub property of location. The final location of the object or the agent after the action. + * A sub property of location. The original location of the object or the agent before the action. * * * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $toLocation; + protected $fromLocation; /** * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getFromLocation() + public function getToLocation() { - return $this->fromLocation; + return $this->toLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation + * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFromLocation($fromLocation) + public function setToLocation($toLocation) { $types = [ "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $fromLocation = self::checkTypes($fromLocation, $types); + $toLocation = self::checkTypes($toLocation, $types); - $this->fromLocation = $fromLocation; + $this->toLocation = $toLocation; } /** * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getToLocation() + public function getFromLocation() { - return $this->toLocation; + return $this->fromLocation; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string $toLocation + * @param \OpenActive\Models\SchemaOrg\Place|string $fromLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setToLocation($toLocation) + public function setFromLocation($fromLocation) { $types = [ "\OpenActive\Models\SchemaOrg\Place", "string", ]; - $toLocation = self::checkTypes($toLocation, $types); + $fromLocation = self::checkTypes($fromLocation, $types); - $this->toLocation = $toLocation; + $this->fromLocation = $fromLocation; } } diff --git a/src/Models/SchemaOrg/Trip.php b/src/Models/SchemaOrg/Trip.php index 552d9ac3..7ccd964e 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", + "subTrip" => "subTrip", "offers" => "offers", "departureTime" => "departureTime", - "provider" => "provider", - "subTrip" => "subTrip", - "itinerary" => "itinerary", "partOfTrip" => "partOfTrip", + "itinerary" => "itinerary", + "provider" => "provider", + "tripOrigin" => "tripOrigin", ]; return array_merge(parent::fieldList(), $fields); @@ -37,6 +38,14 @@ public static function fieldList() { */ protected $arrivalTime; + /** + * Identifies a [[Trip]] that is a subTrip of this Trip. For example Day 1, Day 2, etc. of a multi-day trip. + * + * + * @var \OpenActive\Models\SchemaOrg\Trip|string + */ + protected $subTrip; + /** * 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. * @@ -55,36 +64,36 @@ public static function fieldList() { protected $departureTime; /** - * 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. + * 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\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Trip|string */ - protected $provider; + protected $partOfTrip; /** - * Identifies a [[Trip]] that is a subTrip of this Trip. For example Day 1, Day 2, etc. of a multi-day trip. + * 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\Trip|string + * @var \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ItemList|string */ - protected $subTrip; + protected $itinerary; /** - * 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 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\ItemList|\OpenActive\Models\SchemaOrg\Place|string + * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - protected $itinerary; + protected $provider; /** - * Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip. + * The location of origin of the trip, prior to any destination(s). * * - * @var \OpenActive\Models\SchemaOrg\Trip|string + * @var \OpenActive\Models\SchemaOrg\Place|string */ - protected $partOfTrip; + protected $tripOrigin; /** * @return DateTime|string|null @@ -112,6 +121,31 @@ public function setArrivalTime($arrivalTime) $this->arrivalTime = $arrivalTime; } + /** + * @return \OpenActive\Models\SchemaOrg\Trip|string + */ + public function getSubTrip() + { + return $this->subTrip; + } + + /** + * @param \OpenActive\Models\SchemaOrg\Trip|string $subTrip + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setSubTrip($subTrip) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Trip", + "string", + ]; + + $subTrip = self::checkTypes($subTrip, $types); + + $this->subTrip = $subTrip; + } + /** * @return \OpenActive\Models\SchemaOrg\Offer|\OpenActive\Models\SchemaOrg\Demand|string */ @@ -165,105 +199,105 @@ public function setDepartureTime($departureTime) } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Trip|string */ - public function getProvider() + public function getPartOfTrip() { - return $this->provider; + return $this->partOfTrip; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $provider + * @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 setProvider($provider) + public function setPartOfTrip($partOfTrip) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Trip", "string", ]; - $provider = self::checkTypes($provider, $types); + $partOfTrip = self::checkTypes($partOfTrip, $types); - $this->provider = $provider; + $this->partOfTrip = $partOfTrip; } /** - * @return \OpenActive\Models\SchemaOrg\Trip|string + * @return \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ItemList|string */ - public function getSubTrip() + public function getItinerary() { - return $this->subTrip; + return $this->itinerary; } /** - * @param \OpenActive\Models\SchemaOrg\Trip|string $subTrip + * @param \OpenActive\Models\SchemaOrg\Place|\OpenActive\Models\SchemaOrg\ItemList|string $itinerary * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSubTrip($subTrip) + public function setItinerary($itinerary) { $types = [ - "\OpenActive\Models\SchemaOrg\Trip", + "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\ItemList", "string", ]; - $subTrip = self::checkTypes($subTrip, $types); + $itinerary = self::checkTypes($itinerary, $types); - $this->subTrip = $subTrip; + $this->itinerary = $itinerary; } /** - * @return \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string + * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string */ - public function getItinerary() + public function getProvider() { - return $this->itinerary; + return $this->provider; } /** - * @param \OpenActive\Models\SchemaOrg\ItemList|\OpenActive\Models\SchemaOrg\Place|string $itinerary + * @param \OpenActive\Models\SchemaOrg\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 setItinerary($itinerary) + public function setProvider($provider) { $types = [ - "\OpenActive\Models\SchemaOrg\ItemList", - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $itinerary = self::checkTypes($itinerary, $types); + $provider = self::checkTypes($provider, $types); - $this->itinerary = $itinerary; + $this->provider = $provider; } /** - * @return \OpenActive\Models\SchemaOrg\Trip|string + * @return \OpenActive\Models\SchemaOrg\Place|string */ - public function getPartOfTrip() + public function getTripOrigin() { - return $this->partOfTrip; + return $this->tripOrigin; } /** - * @param \OpenActive\Models\SchemaOrg\Trip|string $partOfTrip + * @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 setPartOfTrip($partOfTrip) + public function setTripOrigin($tripOrigin) { $types = [ - "\OpenActive\Models\SchemaOrg\Trip", + "\OpenActive\Models\SchemaOrg\Place", "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..e340cb03 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", - "businessFunction" => "businessFunction", - "typeOfGood" => "typeOfGood", "amountOfThisGood" => "amountOfThisGood", + "businessFunction" => "businessFunction", "unitCode" => "unitCode", + "typeOfGood" => "typeOfGood", + "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. @@ -45,51 +44,53 @@ public static function fieldList() { protected $businessFunction; /** - * The product that this structured value is referring to. + * 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\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + * @var string */ - protected $typeOfGood; + protected $unitCode; /** - * The quantity of the goods included in the offer. + * The product that this structured value is referring to. * * - * @var Number|null + * @var \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string */ - protected $amountOfThisGood; + protected $typeOfGood; /** - * 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; } /** @@ -118,78 +119,77 @@ public function setBusinessFunction($businessFunction) } /** - * @return \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string + * @return string */ - public function getTypeOfGood() + public function getUnitCode() { - return $this->typeOfGood; + return $this->unitCode; } /** - * @param \OpenActive\Models\SchemaOrg\Product|\OpenActive\Models\SchemaOrg\Service|string $typeOfGood + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTypeOfGood($typeOfGood) + public function setUnitCode($unitCode) { $types = [ - "\OpenActive\Models\SchemaOrg\Product", - "\OpenActive\Models\SchemaOrg\Service", "string", ]; - $typeOfGood = self::checkTypes($typeOfGood, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->typeOfGood = $typeOfGood; + $this->unitCode = $unitCode; } /** - * @return Number|null + * @return \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string */ - public function getAmountOfThisGood() + public function getTypeOfGood() { - return $this->amountOfThisGood; + return $this->typeOfGood; } /** - * @param Number|null $amountOfThisGood + * @param \OpenActive\Models\SchemaOrg\Service|\OpenActive\Models\SchemaOrg\Product|string $typeOfGood * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAmountOfThisGood($amountOfThisGood) + public function setTypeOfGood($typeOfGood) { $types = [ - "Number", - "null", + "\OpenActive\Models\SchemaOrg\Service", + "\OpenActive\Models\SchemaOrg\Product", + "string", ]; - $amountOfThisGood = self::checkTypes($amountOfThisGood, $types); + $typeOfGood = self::checkTypes($typeOfGood, $types); - $this->amountOfThisGood = $amountOfThisGood; + $this->typeOfGood = $typeOfGood; } /** * @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..b3655e39 100644 --- a/src/Models/SchemaOrg/UnitPriceSpecification.php +++ b/src/Models/SchemaOrg/UnitPriceSpecification.php @@ -17,67 +17,66 @@ public static function getType() public static function fieldList() { $fields = [ + "referenceQuantity" => "referenceQuantity", + "billingDuration" => "billingDuration", "priceType" => "priceType", - "unitText" => "unitText", - "billingIncrement" => "billingIncrement", + "billingStart" => "billingStart", "unitCode" => "unitCode", - "billingDuration" => "billingDuration", - "referenceQuantity" => "referenceQuantity", + "billingIncrement" => "billingIncrement", "priceComponentType" => "priceComponentType", - "billingStart" => "billingStart", + "unitText" => "unitText", ]; return array_merge(parent::fieldList(), $fields); } /** - * Defines the type of a price specified for an offered product, for example a list price, a (temporary) sale price or a manufacturer suggested retail price. If multiple prices are specified for an offer the [[priceType]] property can be used to identify the type of each such specified price. The value of priceType can be specified as a value from enumeration PriceTypeEnumeration or as a free form text string for price types that are not already predefined in PriceTypeEnumeration. + * The reference quantity for which a certain price applies, e.g. 1 EUR per 4 kWh of electricity. This property is a replacement for unitOfMeasurement for the advanced cases where the price does not relate to a standard unit. * * - * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $priceType; + protected $referenceQuantity; /** - * A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for - * unitCode. + * Specifies for how long this price (or price component) will be billed. Can be used, for example, to model the contractual duration of a subscription or payment plan. Type can be either a Duration or a Number (in which case the unit of measurement, for example month, is specified by the unitCode property). * * - * @var string + * @var DateInterval|string|Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|null */ - protected $unitText; + protected $billingDuration; /** - * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. + * Defines the type of a price specified for an offered product, for example a list price, a (temporary) sale price or a manufacturer suggested retail price. If multiple prices are specified for an offer the [[priceType]] property can be used to identify the type of each such specified price. The value of priceType can be specified as a value from enumeration PriceTypeEnumeration or as a free form text string for price types that are not already predefined in PriceTypeEnumeration. * * - * @var Number|null + * @var \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null */ - protected $billingIncrement; + protected $priceType; /** - * The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon. + * 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 string + * @var Number|null */ - protected $unitCode; + protected $billingStart; /** - * Specifies for how long this price (or price component) will be billed. Can be used, for example, to model the contractual duration of a subscription or payment plan. Type can be either a Duration or a Number (in which case the unit of measurement, for example month, is specified by the unitCode property). + * The 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 DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var string */ - protected $billingDuration; + protected $unitCode; /** - * The reference quantity for which a certain price applies, e.g. 1 EUR per 4 kWh of electricity. This property is a replacement for unitOfMeasurement for the advanced cases where the price does not relate to a standard unit. + * This property specifies the minimal quantity and rounding increment that will be the basis for the billing. The unit of measurement is specified by the unitCode property. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|null */ - protected $referenceQuantity; + protected $billingIncrement; /** * Identifies a price component (for example, a line item on an invoice), part of the total price for an offer. @@ -88,163 +87,165 @@ public static function fieldList() { protected $priceComponentType; /** - * 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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getPriceType() + public function getReferenceQuantity() { - return $this->priceType; + return $this->referenceQuantity; } /** - * @param \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null $priceType + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $referenceQuantity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPriceType($priceType) + public function setReferenceQuantity($referenceQuantity) { $types = [ - "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $priceType = self::checkTypes($priceType, $types); + $referenceQuantity = self::checkTypes($referenceQuantity, $types); - $this->priceType = $priceType; + $this->referenceQuantity = $referenceQuantity; } /** - * @return string + * @return DateInterval|string|Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|null */ - public function getUnitText() + public function getBillingDuration() { - return $this->unitText; + return $this->billingDuration; } /** - * @param string $unitText + * @param DateInterval|string|Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|null $billingDuration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitText($unitText) + public function setBillingDuration($billingDuration) { $types = [ + "DateInterval", "string", + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "null", ]; - $unitText = self::checkTypes($unitText, $types); + $billingDuration = self::checkTypes($billingDuration, $types); - $this->unitText = $unitText; + $this->billingDuration = $billingDuration; } /** - * @return Number|null + * @return \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null */ - public function getBillingIncrement() + public function getPriceType() { - return $this->billingIncrement; + return $this->priceType; } /** - * @param Number|null $billingIncrement + * @param \OpenActive\Enums\SchemaOrg\PriceTypeEnumeration|string|null $priceType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBillingIncrement($billingIncrement) + public function setPriceType($priceType) { $types = [ - "Number", + "\OpenActive\Enums\SchemaOrg\PriceTypeEnumeration", + "string", "null", ]; - $billingIncrement = self::checkTypes($billingIncrement, $types); + $priceType = self::checkTypes($priceType, $types); - $this->billingIncrement = $billingIncrement; + $this->priceType = $priceType; } /** - * @return string + * @return Number|null */ - public function getUnitCode() + public function getBillingStart() { - return $this->unitCode; + return $this->billingStart; } /** - * @param string $unitCode + * @param Number|null $billingStart * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setUnitCode($unitCode) + public function setBillingStart($billingStart) { $types = [ - "string", + "Number", + "null", ]; - $unitCode = self::checkTypes($unitCode, $types); + $billingStart = self::checkTypes($billingStart, $types); - $this->unitCode = $unitCode; + $this->billingStart = $billingStart; } /** - * @return DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return string */ - public function getBillingDuration() + public function getUnitCode() { - return $this->billingDuration; + return $this->unitCode; } /** - * @param DateInterval|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $billingDuration + * @param string $unitCode * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBillingDuration($billingDuration) + public function setUnitCode($unitCode) { $types = [ - "DateInterval", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $billingDuration = self::checkTypes($billingDuration, $types); + $unitCode = self::checkTypes($unitCode, $types); - $this->billingDuration = $billingDuration; + $this->unitCode = $unitCode; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|null */ - public function getReferenceQuantity() + public function getBillingIncrement() { - return $this->referenceQuantity; + return $this->billingIncrement; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $referenceQuantity + * @param Number|null $billingIncrement * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setReferenceQuantity($referenceQuantity) + public function setBillingIncrement($billingIncrement) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", + "Number", + "null", ]; - $referenceQuantity = self::checkTypes($referenceQuantity, $types); + $billingIncrement = self::checkTypes($billingIncrement, $types); - $this->referenceQuantity = $referenceQuantity; + $this->billingIncrement = $billingIncrement; } /** @@ -273,28 +274,27 @@ public function setPriceComponentType($priceComponentType) } /** - * @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..52309fef 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", "creator" => "creator", + "replyToUrl" => "replyToUrl", + "commentTime" => "commentTime", ]; return array_merge(parent::fieldList(), $fields); } /** - * The URL at which a reply may be posted to the specified UserComment. + * Specifies the CreativeWork associated with the UserComment. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $replyToUrl; + protected $discusses; /** - * Specifies the CreativeWork associated with the UserComment. + * The text of the UserComment. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var string */ - protected $discusses; + protected $commentText; /** - * The time at which the UserComment was made. + * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. * * - * @var Date|DateTime|null + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $commentTime; + protected $creator; /** - * The text of the UserComment. + * The URL at which a reply may be posted to the specified UserComment. * * * @var string */ - protected $commentText; + protected $replyToUrl; /** - * The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork. + * The time at which the UserComment was made. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var Date|DateTime|null */ - protected $creator; + protected $commentTime; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getReplyToUrl() + public function getDiscusses() { - return $this->replyToUrl; + return $this->discusses; } /** - * @param string $replyToUrl + * @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 setReplyToUrl($replyToUrl) + public function setDiscusses($discusses) { $types = [ + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $replyToUrl = self::checkTypes($replyToUrl, $types); + $discusses = self::checkTypes($discusses, $types); - $this->replyToUrl = $replyToUrl; + $this->discusses = $discusses; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return string */ - public function getDiscusses() + public function getCommentText() { - return $this->discusses; + return $this->commentText; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $discusses + * @param string $commentText * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDiscusses($discusses) + public function setCommentText($commentText) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $discusses = self::checkTypes($discusses, $types); + $commentText = self::checkTypes($commentText, $types); - $this->discusses = $discusses; + $this->commentText = $commentText; } /** - * @return Date|DateTime|null + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getCommentTime() + public function getCreator() { - return $this->commentTime; + return $this->creator; } /** - * @param Date|DateTime|null $commentTime + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $creator * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCommentTime($commentTime) + public function setCreator($creator) { $types = [ - "Date", - "DateTime", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", + "string", ]; - $commentTime = self::checkTypes($commentTime, $types); + $creator = self::checkTypes($creator, $types); - $this->commentTime = $commentTime; + $this->creator = $creator; } /** * @return string */ - public function getCommentText() + public function getReplyToUrl() { - return $this->commentText; + return $this->replyToUrl; } /** - * @param string $commentText + * @param string $replyToUrl * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCommentText($commentText) + public function setReplyToUrl($replyToUrl) { $types = [ "string", ]; - $commentText = self::checkTypes($commentText, $types); + $replyToUrl = self::checkTypes($replyToUrl, $types); - $this->commentText = $commentText; + $this->replyToUrl = $replyToUrl; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return Date|DateTime|null */ - public function getCreator() + public function getCommentTime() { - return $this->creator; + return $this->commentTime; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $creator + * @param Date|DateTime|null $commentTime * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCreator($creator) + public function setCommentTime($commentTime) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", - "string", + "Date", + "DateTime", + "null", ]; - $creator = self::checkTypes($creator, $types); + $commentTime = self::checkTypes($commentTime, $types); - $this->creator = $creator; + $this->commentTime = $commentTime; } } 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", + "vehicleInteriorColor" => "vehicleInteriorColor", + "numberOfDoors" => "numberOfDoors", "numberOfPreviousOwners" => "numberOfPreviousOwners", - "steeringPosition" => "steeringPosition", - "wheelbase" => "wheelbase", - "vehicleInteriorType" => "vehicleInteriorType", "numberOfAirbags" => "numberOfAirbags", "fuelType" => "fuelType", - "cargoVolume" => "cargoVolume", - "vehicleTransmission" => "vehicleTransmission", - "payload" => "payload", - "driveWheelConfiguration" => "driveWheelConfiguration", - "knownVehicleDamages" => "knownVehicleDamages", - "fuelConsumption" => "fuelConsumption", - "vehicleInteriorColor" => "vehicleInteriorColor", - "numberOfAxles" => "numberOfAxles", + "vehicleInteriorType" => "vehicleInteriorType", + "weightTotal" => "weightTotal", + "speed" => "speed", "modelDate" => "modelDate", - "numberOfDoors" => "numberOfDoors", + "seatingCapacity" => "seatingCapacity", + "meetsEmissionStandard" => "meetsEmissionStandard", "vehicleSeatingCapacity" => "vehicleSeatingCapacity", - "callSign" => "callSign", - "tongueWeight" => "tongueWeight", - "fuelEfficiency" => "fuelEfficiency", - "vehicleModelDate" => "vehicleModelDate", + "vehicleTransmission" => "vehicleTransmission", + "numberOfForwardGears" => "numberOfForwardGears", + "emissionsCO2" => "emissionsCO2", + "vehicleIdentificationNumber" => "vehicleIdentificationNumber", + "fuelConsumption" => "fuelConsumption", "vehicleConfiguration" => "vehicleConfiguration", - "mileageFromOdometer" => "mileageFromOdometer", - "seatingCapacity" => "seatingCapacity", + "vehicleModelDate" => "vehicleModelDate", + "fuelEfficiency" => "fuelEfficiency", + "productionDate" => "productionDate", + "tongueWeight" => "tongueWeight", + "cargoVolume" => "cargoVolume", + "trailerWeight" => "trailerWeight", + "driveWheelConfiguration" => "driveWheelConfiguration", + "payload" => "payload", "bodyType" => "bodyType", + "knownVehicleDamages" => "knownVehicleDamages", + "mileageFromOdometer" => "mileageFromOdometer", + "purchaseDate" => "purchaseDate", + "accelerationTime" => "accelerationTime", + "wheelbase" => "wheelbase", + "fuelCapacity" => "fuelCapacity", "dateVehicleFirstRegistered" => "dateVehicleFirstRegistered", - "vehicleIdentificationNumber" => "vehicleIdentificationNumber", - "meetsEmissionStandard" => "meetsEmissionStandard", + "callSign" => "callSign", + "steeringPosition" => "steeringPosition", + "numberOfAxles" => "numberOfAxles", "vehicleSpecialUsage" => "vehicleSpecialUsage", + "vehicleEngine" => "vehicleEngine", ]; 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). - * - * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string - */ - protected $fuelCapacity; - - /** - * The time needed to accelerate the vehicle from a given start velocity to a given target velocity.\n\nTypical unit code(s): SEC for seconds\n\n* Note: There are unfortunately no standard unit codes for seconds/0..100 km/h or seconds/0..60 mph. Simply use "SEC" for seconds and indicate the velocities in the [[name]] of the [[QuantitativeValue]], or use [[valueReference]] with a [[QuantitativeValue]] of 0..60 mph or 0..100 km/h to specify the reference speeds. + * The color or color combination of the interior of the vehicle. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $accelerationTime; + protected $vehicleInteriorColor; /** - * The speed range of the vehicle. If the vehicle is powered by an engine, the upper limit of the speed range (indicated by [[maxValue]] should be the maximum speed achievable under regular conditions.\n\nTypical unit code(s): KMH for km/h, HM for mile per hour (0.447 04 m/s), KNT for knot\n\n*Note 1: Use [[minValue]] and [[maxValue]] to indicate the range. Typically, the minimal value is zero.\n* Note 2: There are many different ways of measuring the speed range. You can link to information about how the given value has been determined using the [[valueReference]] property. + * The number of doors.\n\nTypical unit code(s): C62. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - protected $speed; + protected $numberOfDoors; /** - * 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 number of owners of the vehicle, including the current one.\n\nTypical unit code(s): C62. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $trailerWeight; + protected $numberOfPreviousOwners; /** - * Information about the engine or engines of the vehicle. + * The number or type of airbags in the vehicle. * * - * @var \OpenActive\Models\SchemaOrg\EngineSpecification|string + * @var string|Number|null */ - protected $vehicleEngine; + protected $numberOfAirbags; /** - * The CO2 emissions in g/km. When used in combination with a QuantitativeValue, put "g/km" into the unitText property of that value, since there is no UN/CEFACT Common Code for "g/km". + * The 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 Number|null + * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - protected $emissionsCO2; + protected $fuelType; /** - * The date the item e.g. vehicle was purchased by the current owner. + * The type or material of the interior of the vehicle (e.g. synthetic fabric, leather, wood, etc.). While most interior types are characterized by the material used, an interior type can also be based on vehicle usage or target audience. * * - * @var Date|null + * @var string */ - protected $purchaseDate; + protected $vehicleInteriorType; /** - * The total number of forward gears available for the transmission system of the vehicle.\n\nTypical unit code(s): C62 + * The permitted total weight of the loaded vehicle, including passengers and cargo and the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfForwardGears; + protected $weightTotal; /** - * 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 speed range of the vehicle. If the vehicle is powered by an engine, the upper limit of the speed range (indicated by [[maxValue]]) should be the maximum speed achievable under regular conditions.\n\nTypical unit code(s): KMH for km/h, HM for mile per hour (0.447 04 m/s), KNT for knot\n\n*Note 1: Use [[minValue]] and [[maxValue]] to indicate the range. Typically, the minimal value is zero.\n* Note 2: There are many different ways of measuring the speed range. You can link to information about how the given value has been determined using the [[valueReference]] property. * * * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $weightTotal; + protected $speed; /** - * The date of production of the item, e.g. vehicle. + * The release date of a vehicle model (often used to differentiate versions of the same make and model). * * * @var Date|null */ - protected $productionDate; + protected $modelDate; /** - * The number of owners of the vehicle, including the current one.\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 $numberOfPreviousOwners; + protected $seatingCapacity; /** - * 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 string|\OpenActive\Enums\SchemaOrg\QualitativeValue|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 number of passengers that can be seated in the vehicle, both in terms of the physical space available, and in terms of limitations set by law.\n\nTypical unit code(s): C62 for persons. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - protected $wheelbase; + protected $vehicleSeatingCapacity; /** - * 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 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 string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - protected $vehicleInteriorType; + protected $vehicleTransmission; /** - * The number or type of airbags in the vehicle. + * The total number of forward gears available for the transmission system of the vehicle.\n\nTypical unit code(s): C62. * * - * @var string|Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - protected $numberOfAirbags; + protected $numberOfForwardGears; /** - * 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 CO2 emissions in g/km. When used in combination with a QuantitativeValue, put "g/km" into the unitText property of that value, since there is no UN/CEFACT Common Code for "g/km". * * - * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var Number|null */ - protected $fuelType; + protected $emissionsCO2; /** - * 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 Vehicle Identification Number (VIN) is a unique serial number used by the automotive industry to identify individual motor vehicles. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $cargoVolume; + protected $vehicleIdentificationNumber; /** - * 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 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 string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleTransmission; + protected $fuelConsumption; /** - * 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. + * 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 $payload; + protected $vehicleConfiguration; /** - * The drive wheel configuration, i.e. which roadwheels will receive torque from the vehicle's engine via the drivetrain. + * The release date of a vehicle model (often used to differentiate versions of the same make and model). * * - * @var string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue + * @var Date|null */ - protected $driveWheelConfiguration; + protected $vehicleModelDate; /** - * A textual description of known damages, both repaired and unrepaired. + * The distance traveled per unit of fuel used; most commonly miles per gallon (mpg) or kilometers per liter (km/L).\n\n* Note 1: There are unfortunately no standard unit codes for miles per gallon or kilometers per liter. Use [[unitText]] to indicate the unit of measurement, e.g. mpg or km/L.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel economy to another value. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $knownVehicleDamages; + protected $fuelEfficiency; /** - * 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 permitted vertical load (TWR) of a trailer attached to the vehicle. Also referred to as Tongue Load Rating (TLR) or Vertical Load Rating (VLR).\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 2: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 3: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleInteriorColor; + protected $tongueWeight; /** - * The number of axles.\n\nTypical unit code(s): C62 + * 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 Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $numberOfAxles; + protected $cargoVolume; /** - * The release date of a vehicle model (often used to differentiate versions of the same make and model). + * 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 Date|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $modelDate; + protected $trailerWeight; /** - * The number of doors.\n\nTypical unit code(s): C62 + * The drive wheel configuration, i.e. which roadwheels will receive torque from the vehicle's engine via the drivetrain. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue */ - protected $numberOfDoors; + protected $driveWheelConfiguration; /** - * 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 weight of passengers and cargo, EXCLUDING the weight of the empty vehicle.\n\nTypical unit code(s): KGM for kilogram, LBR for pound\n\n* Note 1: Many databases specify the permitted TOTAL weight instead, which is the sum of [[weight]] and [[payload]]\n* Note 2: You can indicate additional information in the [[name]] of the [[QuantitativeValue]] node.\n* Note 3: You may also link to a [[QualitativeValue]] node that provides additional information using [[valueReference]].\n* Note 4: Note that you can use [[minValue]] and [[maxValue]] to indicate ranges. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleSeatingCapacity; + protected $payload; /** - * 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. + * Indicates the design and body style of the vehicle (e.g. station wagon, hatchback, etc.). * * - * @var string + * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - protected $callSign; + protected $bodyType; /** - * 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 textual description of known damages, both repaired and unrepaired. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var string */ - protected $tongueWeight; + protected $knownVehicleDamages; /** - * The distance traveled per unit of fuel used; most commonly miles per gallon (mpg) or kilometers per liter (km/L).\n\n* Note 1: There are unfortunately no standard unit codes for miles per gallon or kilometers per liter. Use [[unitText]] to indicate the unit of measurement, e.g. mpg or km/L.\n* Note 2: There are two ways of indicating the fuel consumption, [[fuelConsumption]] (e.g. 8 liters per 100 km) and [[fuelEfficiency]] (e.g. 30 miles per gallon). They are reciprocal.\n* Note 3: Often, the absolute value is useful only when related to driving speed ("at 80 km/h") or usage pattern ("city traffic"). You can use [[valueReference]] to link the value for the fuel economy to another value. + * The 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 $fuelEfficiency; + protected $mileageFromOdometer; /** - * The release date of a vehicle model (often used to differentiate versions of the same make and model). + * The date the item, e.g. vehicle, was purchased by the current owner. * * * @var Date|null */ - protected $vehicleModelDate; + protected $purchaseDate; /** - * A short text indicating the configuration of the vehicle, e.g. '5dr hatchback ST 2.5 MT 225 hp' or 'limited edition'. + * 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 string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $vehicleConfiguration; + protected $accelerationTime; /** - * 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 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\Models\SchemaOrg\QuantitativeValue|string */ - protected $mileageFromOdometer; + protected $wheelbase; /** - * 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 capacity of the fuel tank or in the case of electric cars, the battery. If there are multiple components for storage, this should indicate the total of all storage of the same type.\n\nTypical unit code(s): LTR for liters, GLL of US gallons, GLI for UK / imperial gallons, AMH for ampere-hours (for electrical vehicles). * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $seatingCapacity; + protected $fuelCapacity; /** - * Indicates the design and body style of the vehicle (e.g. station wagon, hatchback, etc.). + * The date of the first registration of the vehicle with the respective public authorities. * * - * @var \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @var Date|null */ - protected $bodyType; + protected $dateVehicleFirstRegistered; /** - * The date of the first registration of the vehicle with the respective public authorities. + * 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 Date|null + * @var string */ - protected $dateVehicleFirstRegistered; + protected $callSign; /** - * The Vehicle Identification Number (VIN) is a unique serial number used by the automotive industry to identify individual motor vehicles. + * The position of the steering wheel or similar device (mostly for cars). * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SteeringPositionValue|string */ - protected $vehicleIdentificationNumber; + protected $steeringPosition; /** - * Indicates that the vehicle meets the respective emission standard. + * The number of axles.\n\nTypical unit code(s): C62. * * - * @var string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @var Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - protected $meetsEmissionStandard; + protected $numberOfAxles; /** * 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. @@ -374,271 +366,256 @@ public static function fieldList() { protected $vehicleSpecialUsage; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string - */ - public function getFuelCapacity() - { - return $this->fuelCapacity; - } - - /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelCapacity - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * Information about the engine or engines of the vehicle. + * + * + * @var \OpenActive\Models\SchemaOrg\EngineSpecification|string */ - public function setFuelCapacity($fuelCapacity) - { - $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "string", - ]; - - $fuelCapacity = self::checkTypes($fuelCapacity, $types); - - $this->fuelCapacity = $fuelCapacity; - } + protected $vehicleEngine; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getAccelerationTime() + public function getVehicleInteriorColor() { - return $this->accelerationTime; + return $this->vehicleInteriorColor; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $accelerationTime + * @param string $vehicleInteriorColor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setAccelerationTime($accelerationTime) + public function setVehicleInteriorColor($vehicleInteriorColor) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $accelerationTime = self::checkTypes($accelerationTime, $types); + $vehicleInteriorColor = self::checkTypes($vehicleInteriorColor, $types); - $this->accelerationTime = $accelerationTime; + $this->vehicleInteriorColor = $vehicleInteriorColor; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - public function getSpeed() + public function getNumberOfDoors() { - return $this->speed; + return $this->numberOfDoors; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $speed + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfDoors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpeed($speed) + public function setNumberOfDoors($numberOfDoors) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "Number", + "null", ]; - $speed = self::checkTypes($speed, $types); + $numberOfDoors = self::checkTypes($numberOfDoors, $types); - $this->speed = $speed; + $this->numberOfDoors = $numberOfDoors; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getTrailerWeight() + public function getNumberOfPreviousOwners() { - return $this->trailerWeight; + return $this->numberOfPreviousOwners; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $trailerWeight + * @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 setTrailerWeight($trailerWeight) + public function setNumberOfPreviousOwners($numberOfPreviousOwners) { $types = [ + "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "null", ]; - $trailerWeight = self::checkTypes($trailerWeight, $types); + $numberOfPreviousOwners = self::checkTypes($numberOfPreviousOwners, $types); - $this->trailerWeight = $trailerWeight; + $this->numberOfPreviousOwners = $numberOfPreviousOwners; } /** - * @return \OpenActive\Models\SchemaOrg\EngineSpecification|string + * @return string|Number|null */ - public function getVehicleEngine() + public function getNumberOfAirbags() { - return $this->vehicleEngine; + return $this->numberOfAirbags; } /** - * @param \OpenActive\Models\SchemaOrg\EngineSpecification|string $vehicleEngine + * @param string|Number|null $numberOfAirbags * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleEngine($vehicleEngine) + public function setNumberOfAirbags($numberOfAirbags) { $types = [ - "\OpenActive\Models\SchemaOrg\EngineSpecification", "string", + "Number", + "null", ]; - $vehicleEngine = self::checkTypes($vehicleEngine, $types); + $numberOfAirbags = self::checkTypes($numberOfAirbags, $types); - $this->vehicleEngine = $vehicleEngine; + $this->numberOfAirbags = $numberOfAirbags; } /** - * @return Number|null + * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - public function getEmissionsCO2() + public function getFuelType() { - return $this->emissionsCO2; + return $this->fuelType; } /** - * @param Number|null $emissionsCO2 + * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $fuelType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmissionsCO2($emissionsCO2) + public function setFuelType($fuelType) { $types = [ - "Number", + "string", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", "null", ]; - $emissionsCO2 = self::checkTypes($emissionsCO2, $types); + $fuelType = self::checkTypes($fuelType, $types); - $this->emissionsCO2 = $emissionsCO2; + $this->fuelType = $fuelType; } /** - * @return Date|null + * @return string */ - public function getPurchaseDate() + public function getVehicleInteriorType() { - return $this->purchaseDate; + return $this->vehicleInteriorType; } /** - * @param Date|null $purchaseDate + * @param string $vehicleInteriorType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPurchaseDate($purchaseDate) + public function setVehicleInteriorType($vehicleInteriorType) { $types = [ - "Date", - "null", + "string", ]; - $purchaseDate = self::checkTypes($purchaseDate, $types); + $vehicleInteriorType = self::checkTypes($vehicleInteriorType, $types); - $this->purchaseDate = $purchaseDate; + $this->vehicleInteriorType = $vehicleInteriorType; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfForwardGears() + public function getWeightTotal() { - return $this->numberOfForwardGears; + return $this->weightTotal; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfForwardGears + * @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 setNumberOfForwardGears($numberOfForwardGears) + public function setWeightTotal($weightTotal) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $numberOfForwardGears = self::checkTypes($numberOfForwardGears, $types); + $weightTotal = self::checkTypes($weightTotal, $types); - $this->numberOfForwardGears = $numberOfForwardGears; + $this->weightTotal = $weightTotal; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getWeightTotal() + public function getSpeed() { - return $this->weightTotal; + return $this->speed; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $weightTotal + * @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 setWeightTotal($weightTotal) + public function setSpeed($speed) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $weightTotal = self::checkTypes($weightTotal, $types); + $speed = self::checkTypes($speed, $types); - $this->weightTotal = $weightTotal; + $this->speed = $speed; } /** * @return Date|null */ - public function getProductionDate() + public function getModelDate() { - return $this->productionDate; + return $this->modelDate; } /** - * @param Date|null $productionDate + * @param Date|null $modelDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionDate($productionDate) + public function setModelDate($modelDate) { $types = [ "Date", "null", ]; - $productionDate = self::checkTypes($productionDate, $types); + $modelDate = self::checkTypes($modelDate, $types); - $this->productionDate = $productionDate; + $this->modelDate = $modelDate; } /** * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getNumberOfPreviousOwners() + public function getSeatingCapacity() { - return $this->numberOfPreviousOwners; + return $this->seatingCapacity; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfPreviousOwners + * @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 setNumberOfPreviousOwners($numberOfPreviousOwners) + public function setSeatingCapacity($seatingCapacity) { $types = [ "Number", @@ -647,691 +624,689 @@ public function setNumberOfPreviousOwners($numberOfPreviousOwners) "null", ]; - $numberOfPreviousOwners = self::checkTypes($numberOfPreviousOwners, $types); + $seatingCapacity = self::checkTypes($seatingCapacity, $types); - $this->numberOfPreviousOwners = $numberOfPreviousOwners; + $this->seatingCapacity = $seatingCapacity; } /** - * @return \OpenActive\Models\SchemaOrg\SteeringPositionValue|string + * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - public function getSteeringPosition() + public function getMeetsEmissionStandard() { - return $this->steeringPosition; + return $this->meetsEmissionStandard; } /** - * @param \OpenActive\Models\SchemaOrg\SteeringPositionValue|string $steeringPosition + * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|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", "string", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "null", ]; - $steeringPosition = self::checkTypes($steeringPosition, $types); + $meetsEmissionStandard = self::checkTypes($meetsEmissionStandard, $types); - $this->steeringPosition = $steeringPosition; + $this->meetsEmissionStandard = $meetsEmissionStandard; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - public function getWheelbase() + public function getVehicleSeatingCapacity() { - return $this->wheelbase; + return $this->vehicleSeatingCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $wheelbase + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $vehicleSeatingCapacity * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setWheelbase($wheelbase) + public function setVehicleSeatingCapacity($vehicleSeatingCapacity) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", + "Number", + "null", ]; - $wheelbase = self::checkTypes($wheelbase, $types); + $vehicleSeatingCapacity = self::checkTypes($vehicleSeatingCapacity, $types); - $this->wheelbase = $wheelbase; + $this->vehicleSeatingCapacity = $vehicleSeatingCapacity; } /** - * @return string + * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - public function getVehicleInteriorType() + public function getVehicleTransmission() { - return $this->vehicleInteriorType; + return $this->vehicleTransmission; } /** - * @param string $vehicleInteriorType + * @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 setVehicleInteriorType($vehicleInteriorType) + public function setVehicleTransmission($vehicleTransmission) { $types = [ "string", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "null", ]; - $vehicleInteriorType = self::checkTypes($vehicleInteriorType, $types); + $vehicleTransmission = self::checkTypes($vehicleTransmission, $types); - $this->vehicleInteriorType = $vehicleInteriorType; + $this->vehicleTransmission = $vehicleTransmission; } /** - * @return string|Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null */ - public function getNumberOfAirbags() + public function getNumberOfForwardGears() { - return $this->numberOfAirbags; + return $this->numberOfForwardGears; } /** - * @param string|Number|null $numberOfAirbags + * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfForwardGears * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfAirbags($numberOfAirbags) + public function setNumberOfForwardGears($numberOfForwardGears) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", "Number", "null", ]; - $numberOfAirbags = self::checkTypes($numberOfAirbags, $types); + $numberOfForwardGears = self::checkTypes($numberOfForwardGears, $types); - $this->numberOfAirbags = $numberOfAirbags; + $this->numberOfForwardGears = $numberOfForwardGears; } /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return Number|null */ - public function getFuelType() + public function getEmissionsCO2() { - return $this->fuelType; + return $this->emissionsCO2; } /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $fuelType + * @param Number|null $emissionsCO2 * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setFuelType($fuelType) + public function setEmissionsCO2($emissionsCO2) { $types = [ - "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "Number", "null", ]; - $fuelType = self::checkTypes($fuelType, $types); + $emissionsCO2 = self::checkTypes($emissionsCO2, $types); - $this->fuelType = $fuelType; + $this->emissionsCO2 = $emissionsCO2; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getCargoVolume() + public function getVehicleIdentificationNumber() { - return $this->cargoVolume; + return $this->vehicleIdentificationNumber; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $cargoVolume + * @param string $vehicleIdentificationNumber * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCargoVolume($cargoVolume) + public function setVehicleIdentificationNumber($vehicleIdentificationNumber) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $cargoVolume = self::checkTypes($cargoVolume, $types); + $vehicleIdentificationNumber = self::checkTypes($vehicleIdentificationNumber, $types); - $this->cargoVolume = $cargoVolume; + $this->vehicleIdentificationNumber = $vehicleIdentificationNumber; } /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleTransmission() + public function getFuelConsumption() { - return $this->vehicleTransmission; + return $this->fuelConsumption; } /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $vehicleTransmission + * @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 setVehicleTransmission($vehicleTransmission) + public function setFuelConsumption($fuelConsumption) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "null", ]; - $vehicleTransmission = self::checkTypes($vehicleTransmission, $types); + $fuelConsumption = self::checkTypes($fuelConsumption, $types); - $this->vehicleTransmission = $vehicleTransmission; + $this->fuelConsumption = $fuelConsumption; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getPayload() + public function getVehicleConfiguration() { - return $this->payload; + return $this->vehicleConfiguration; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $payload + * @param string $vehicleConfiguration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPayload($payload) + public function setVehicleConfiguration($vehicleConfiguration) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $payload = self::checkTypes($payload, $types); + $vehicleConfiguration = self::checkTypes($vehicleConfiguration, $types); - $this->payload = $payload; + $this->vehicleConfiguration = $vehicleConfiguration; } /** - * @return string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue + * @return Date|null */ - public function getDriveWheelConfiguration() + public function getVehicleModelDate() { - return $this->driveWheelConfiguration; + return $this->vehicleModelDate; } /** - * @param string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue $driveWheelConfiguration + * @param Date|null $vehicleModelDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDriveWheelConfiguration($driveWheelConfiguration) + public function setVehicleModelDate($vehicleModelDate) { $types = [ - "string", - "\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue", + "Date", + "null", ]; - $driveWheelConfiguration = self::checkTypes($driveWheelConfiguration, $types); + $vehicleModelDate = self::checkTypes($vehicleModelDate, $types); - $this->driveWheelConfiguration = $driveWheelConfiguration; + $this->vehicleModelDate = $vehicleModelDate; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getKnownVehicleDamages() + public function getFuelEfficiency() { - return $this->knownVehicleDamages; + return $this->fuelEfficiency; } /** - * @param string $knownVehicleDamages + * @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 setKnownVehicleDamages($knownVehicleDamages) + public function setFuelEfficiency($fuelEfficiency) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $knownVehicleDamages = self::checkTypes($knownVehicleDamages, $types); + $fuelEfficiency = self::checkTypes($fuelEfficiency, $types); - $this->knownVehicleDamages = $knownVehicleDamages; + $this->fuelEfficiency = $fuelEfficiency; } /** - * @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 \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleInteriorColor() + public function getTongueWeight() { - return $this->vehicleInteriorColor; + return $this->tongueWeight; } /** - * @param string $vehicleInteriorColor + * @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 setVehicleInteriorColor($vehicleInteriorColor) + public function setTongueWeight($tongueWeight) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $vehicleInteriorColor = self::checkTypes($vehicleInteriorColor, $types); + $tongueWeight = self::checkTypes($tongueWeight, $types); - $this->vehicleInteriorColor = $vehicleInteriorColor; + $this->tongueWeight = $tongueWeight; } /** - * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getNumberOfAxles() + public function getCargoVolume() { - return $this->numberOfAxles; + return $this->cargoVolume; } /** - * @param Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null $numberOfAxles + * @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 setNumberOfAxles($numberOfAxles) + public function setCargoVolume($cargoVolume) { $types = [ - "Number", "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "null", ]; - $numberOfAxles = self::checkTypes($numberOfAxles, $types); + $cargoVolume = self::checkTypes($cargoVolume, $types); - $this->numberOfAxles = $numberOfAxles; + $this->cargoVolume = $cargoVolume; } /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getModelDate() + public function getTrailerWeight() { - return $this->modelDate; + return $this->trailerWeight; } /** - * @param Date|null $modelDate + * @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 setModelDate($modelDate) + public function setTrailerWeight($trailerWeight) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "string", ]; - $modelDate = self::checkTypes($modelDate, $types); + $trailerWeight = self::checkTypes($trailerWeight, $types); - $this->modelDate = $modelDate; + $this->trailerWeight = $trailerWeight; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue */ - public function getNumberOfDoors() + public function getDriveWheelConfiguration() { - return $this->numberOfDoors; + return $this->driveWheelConfiguration; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $numberOfDoors + * @param string|\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue $driveWheelConfiguration * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfDoors($numberOfDoors) + public function setDriveWheelConfiguration($driveWheelConfiguration) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", + "\OpenActive\Models\SchemaOrg\DriveWheelConfigurationValue", ]; - $numberOfDoors = self::checkTypes($numberOfDoors, $types); + $driveWheelConfiguration = self::checkTypes($driveWheelConfiguration, $types); - $this->numberOfDoors = $numberOfDoors; + $this->driveWheelConfiguration = $driveWheelConfiguration; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleSeatingCapacity() + public function getPayload() { - return $this->vehicleSeatingCapacity; + return $this->payload; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $vehicleSeatingCapacity + * @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 setVehicleSeatingCapacity($vehicleSeatingCapacity) + public function setPayload($payload) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $vehicleSeatingCapacity = self::checkTypes($vehicleSeatingCapacity, $types); + $payload = self::checkTypes($payload, $types); - $this->vehicleSeatingCapacity = $vehicleSeatingCapacity; + $this->payload = $payload; } /** - * @return string + * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null */ - public function getCallSign() + public function getBodyType() { - return $this->callSign; + return $this->bodyType; } /** - * @param string $callSign + * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $bodyType * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCallSign($callSign) + public function setBodyType($bodyType) { $types = [ "string", + "\OpenActive\Enums\SchemaOrg\QualitativeValue", + "null", ]; - $callSign = self::checkTypes($callSign, $types); + $bodyType = self::checkTypes($bodyType, $types); - $this->callSign = $callSign; + $this->bodyType = $bodyType; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return string */ - public function getTongueWeight() + public function getKnownVehicleDamages() { - return $this->tongueWeight; + return $this->knownVehicleDamages; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $tongueWeight + * @param string $knownVehicleDamages * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setTongueWeight($tongueWeight) + public function setKnownVehicleDamages($knownVehicleDamages) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $tongueWeight = self::checkTypes($tongueWeight, $types); + $knownVehicleDamages = self::checkTypes($knownVehicleDamages, $types); - $this->tongueWeight = $tongueWeight; + $this->knownVehicleDamages = $knownVehicleDamages; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getFuelEfficiency() + public function getMileageFromOdometer() { - return $this->fuelEfficiency; + return $this->mileageFromOdometer; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $fuelEfficiency + * @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 setFuelEfficiency($fuelEfficiency) + public function setMileageFromOdometer($mileageFromOdometer) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $fuelEfficiency = self::checkTypes($fuelEfficiency, $types); + $mileageFromOdometer = self::checkTypes($mileageFromOdometer, $types); - $this->fuelEfficiency = $fuelEfficiency; + $this->mileageFromOdometer = $mileageFromOdometer; } /** * @return Date|null */ - public function getVehicleModelDate() + public function getPurchaseDate() { - return $this->vehicleModelDate; + return $this->purchaseDate; } /** - * @param Date|null $vehicleModelDate + * @param Date|null $purchaseDate * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVehicleModelDate($vehicleModelDate) + public function setPurchaseDate($purchaseDate) { $types = [ "Date", "null", ]; - $vehicleModelDate = self::checkTypes($vehicleModelDate, $types); + $purchaseDate = self::checkTypes($purchaseDate, $types); - $this->vehicleModelDate = $vehicleModelDate; + $this->purchaseDate = $purchaseDate; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getVehicleConfiguration() + public function getAccelerationTime() { - return $this->vehicleConfiguration; + return $this->accelerationTime; } /** - * @param string $vehicleConfiguration + * @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 setVehicleConfiguration($vehicleConfiguration) + public function setAccelerationTime($accelerationTime) { $types = [ + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $vehicleConfiguration = self::checkTypes($vehicleConfiguration, $types); + $accelerationTime = self::checkTypes($accelerationTime, $types); - $this->vehicleConfiguration = $vehicleConfiguration; + $this->accelerationTime = $accelerationTime; } /** * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getMileageFromOdometer() + public function getWheelbase() { - return $this->mileageFromOdometer; + return $this->wheelbase; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $mileageFromOdometer + * @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 setMileageFromOdometer($mileageFromOdometer) + public function setWheelbase($wheelbase) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $mileageFromOdometer = self::checkTypes($mileageFromOdometer, $types); + $wheelbase = self::checkTypes($wheelbase, $types); - $this->mileageFromOdometer = $mileageFromOdometer; + $this->wheelbase = $wheelbase; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getSeatingCapacity() + public function getFuelCapacity() { - return $this->seatingCapacity; + return $this->fuelCapacity; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string|Number|null $seatingCapacity + * @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 setSeatingCapacity($seatingCapacity) + public function setFuelCapacity($fuelCapacity) { $types = [ "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "Number", - "null", ]; - $seatingCapacity = self::checkTypes($seatingCapacity, $types); + $fuelCapacity = self::checkTypes($fuelCapacity, $types); - $this->seatingCapacity = $seatingCapacity; + $this->fuelCapacity = $fuelCapacity; } /** - * @return \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null + * @return Date|null */ - public function getBodyType() + public function getDateVehicleFirstRegistered() { - return $this->bodyType; + return $this->dateVehicleFirstRegistered; } /** - * @param \OpenActive\Enums\SchemaOrg\QualitativeValue|string|null $bodyType + * @param Date|null $dateVehicleFirstRegistered * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBodyType($bodyType) + public function setDateVehicleFirstRegistered($dateVehicleFirstRegistered) { $types = [ - "\OpenActive\Enums\SchemaOrg\QualitativeValue", - "string", + "Date", "null", ]; - $bodyType = self::checkTypes($bodyType, $types); + $dateVehicleFirstRegistered = self::checkTypes($dateVehicleFirstRegistered, $types); - $this->bodyType = $bodyType; + $this->dateVehicleFirstRegistered = $dateVehicleFirstRegistered; } /** - * @return Date|null + * @return string */ - public function getDateVehicleFirstRegistered() + public function getCallSign() { - return $this->dateVehicleFirstRegistered; + return $this->callSign; } /** - * @param Date|null $dateVehicleFirstRegistered + * @param string $callSign * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDateVehicleFirstRegistered($dateVehicleFirstRegistered) + public function setCallSign($callSign) { $types = [ - "Date", - "null", + "string", ]; - $dateVehicleFirstRegistered = self::checkTypes($dateVehicleFirstRegistered, $types); + $callSign = self::checkTypes($callSign, $types); - $this->dateVehicleFirstRegistered = $dateVehicleFirstRegistered; + $this->callSign = $callSign; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SteeringPositionValue|string */ - public function getVehicleIdentificationNumber() + public function getSteeringPosition() { - return $this->vehicleIdentificationNumber; + return $this->steeringPosition; } /** - * @param string $vehicleIdentificationNumber + * @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 setVehicleIdentificationNumber($vehicleIdentificationNumber) + public function setSteeringPosition($steeringPosition) { $types = [ + "\OpenActive\Models\SchemaOrg\SteeringPositionValue", "string", ]; - $vehicleIdentificationNumber = self::checkTypes($vehicleIdentificationNumber, $types); + $steeringPosition = self::checkTypes($steeringPosition, $types); - $this->vehicleIdentificationNumber = $vehicleIdentificationNumber; + $this->steeringPosition = $steeringPosition; } /** - * @return string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null + * @return Number|\OpenActive\Models\SchemaOrg\QuantitativeValue|string|null */ - public function getMeetsEmissionStandard() + public function getNumberOfAxles() { - return $this->meetsEmissionStandard; + return $this->numberOfAxles; } /** - * @param string|\OpenActive\Enums\SchemaOrg\QualitativeValue|null $meetsEmissionStandard + * @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 setMeetsEmissionStandard($meetsEmissionStandard) + public function setNumberOfAxles($numberOfAxles) { $types = [ + "Number", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", - "\OpenActive\Enums\SchemaOrg\QualitativeValue", "null", ]; - $meetsEmissionStandard = self::checkTypes($meetsEmissionStandard, $types); + $numberOfAxles = self::checkTypes($numberOfAxles, $types); - $this->meetsEmissionStandard = $meetsEmissionStandard; + $this->numberOfAxles = $numberOfAxles; } /** @@ -1360,4 +1335,29 @@ public function setVehicleSpecialUsage($vehicleSpecialUsage) $this->vehicleSpecialUsage = $vehicleSpecialUsage; } + /** + * @return \OpenActive\Models\SchemaOrg\EngineSpecification|string + */ + public function getVehicleEngine() + { + return $this->vehicleEngine; + } + + /** + * @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 setVehicleEngine($vehicleEngine) + { + $types = [ + "\OpenActive\Models\SchemaOrg\EngineSpecification", + "string", + ]; + + $vehicleEngine = self::checkTypes($vehicleEngine, $types); + + $this->vehicleEngine = $vehicleEngine; + } + } diff --git a/src/Models/SchemaOrg/Vein.php b/src/Models/SchemaOrg/Vein.php index 98279ab1..0b24b417 100644 --- a/src/Models/SchemaOrg/Vein.php +++ b/src/Models/SchemaOrg/Vein.php @@ -17,22 +17,14 @@ public static function getType() public static function fieldList() { $fields = [ - "regionDrained" => "regionDrained", "tributary" => "tributary", "drainsTo" => "drainsTo", + "regionDrained" => "regionDrained", ]; return array_merge(parent::fieldList(), $fields); } - /** - * 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 - */ - protected $regionDrained; - /** * The anatomical or organ system that the vein flows into; a larger structure that the vein connects to. * @@ -50,30 +42,12 @@ public static function fieldList() { protected $drainsTo; /** - * @return \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string - */ - public function getRegionDrained() - { - return $this->regionDrained; - } - - /** - * @param \OpenActive\Models\SchemaOrg\AnatomicalSystem|\OpenActive\Models\SchemaOrg\AnatomicalStructure|string $regionDrained - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The anatomical or organ system drained by this vessel; generally refers to a specific part of an organ. + * + * + * @var \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string */ - public function setRegionDrained($regionDrained) - { - $types = [ - "\OpenActive\Models\SchemaOrg\AnatomicalSystem", - "\OpenActive\Models\SchemaOrg\AnatomicalStructure", - "string", - ]; - - $regionDrained = self::checkTypes($regionDrained, $types); - - $this->regionDrained = $regionDrained; - } + protected $regionDrained; /** * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|string @@ -125,4 +99,30 @@ public function setDrainsTo($drainsTo) $this->drainsTo = $drainsTo; } + /** + * @return \OpenActive\Models\SchemaOrg\AnatomicalStructure|\OpenActive\Models\SchemaOrg\AnatomicalSystem|string + */ + public function getRegionDrained() + { + return $this->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\AnatomicalStructure", + "\OpenActive\Models\SchemaOrg\AnatomicalSystem", + "string", + ]; + + $regionDrained = self::checkTypes($regionDrained, $types); + + $this->regionDrained = $regionDrained; + } + } diff --git a/src/Models/SchemaOrg/VideoGame.php b/src/Models/SchemaOrg/VideoGame.php index 4dcc4416..57c3b2ca 100644 --- a/src/Models/SchemaOrg/VideoGame.php +++ b/src/Models/SchemaOrg/VideoGame.php @@ -17,55 +17,47 @@ public static function getType() public static function fieldList() { $fields = [ - "director" => "director", - "actor" => "actor", + "gamePlatform" => "gamePlatform", + "gameTip" => "gameTip", "trailer" => "trailer", - "gameEdition" => "gameEdition", "cheatCode" => "cheatCode", - "gameServer" => "gameServer", - "gameTip" => "gameTip", - "actors" => "actors", - "playMode" => "playMode", - "gamePlatform" => "gamePlatform", + "actor" => "actor", "musicBy" => "musicBy", "directors" => "directors", + "playMode" => "playMode", + "gameEdition" => "gameEdition", + "director" => "director", + "actors" => "actors", + "gameServer" => "gameServer", ]; return array_merge(parent::fieldList(), $fields); } /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * The electronic systems used to play video games. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $director; + protected $gamePlatform; /** - * 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. + * Links to tips, tactics, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $actor; + protected $gameTip; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * The trailer of a movie or TV/radio series, season, episode, etc. * * * @var \OpenActive\Models\SchemaOrg\VideoObject|string */ protected $trailer; - /** - * The edition of a video game. - * - * - * @var string - */ - protected $gameEdition; - /** * Cheat codes to the game. * @@ -75,28 +67,28 @@ public static function fieldList() { protected $cheatCode; /** - * The server on which it is possible to play the game. + * 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\GameServer|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $gameServer; + protected $actor; /** - * Links to tips, tactics, etc. + * The composer of the soundtrack. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $gameTip; + protected $musicBy; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $actors; + protected $directors; /** * 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,77 +99,85 @@ public static function fieldList() { protected $playMode; /** - * The electronic systems used to play video games. + * The edition of a video game. * * - * @var string|\OpenActive\Models\SchemaOrg\Thing + * @var string */ - protected $gamePlatform; + protected $gameEdition; /** - * The composer of the soundtrack. + * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $musicBy; + protected $director; /** - * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $directors; + protected $actors; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * The server on which it is possible to play the game. + * + * + * @var \OpenActive\Models\SchemaOrg\GameServer|string */ - public function getDirector() + protected $gameServer; + + /** + * @return \OpenActive\Models\SchemaOrg\Thing|string + */ + public function getGamePlatform() { - return $this->director; + return $this->gamePlatform; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param \OpenActive\Models\SchemaOrg\Thing|string $gamePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setGamePlatform($gamePlatform) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $director = self::checkTypes($director, $types); + $gamePlatform = self::checkTypes($gamePlatform, $types); - $this->director = $director; + $this->gamePlatform = $gamePlatform; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getActor() + public function getGameTip() { - return $this->actor; + return $this->gameTip; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $gameTip * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setGameTip($gameTip) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $actor = self::checkTypes($actor, $types); + $gameTip = self::checkTypes($gameTip, $types); - $this->actor = $actor; + $this->gameTip = $gameTip; } /** @@ -205,30 +205,6 @@ public function setTrailer($trailer) $this->trailer = $trailer; } - /** - * @return string - */ - public function getGameEdition() - { - return $this->gameEdition; - } - - /** - * @param string $gameEdition - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. - */ - public function setGameEdition($gameEdition) - { - $types = [ - "string", - ]; - - $gameEdition = self::checkTypes($gameEdition, $types); - - $this->gameEdition = $gameEdition; - } - /** * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ @@ -255,78 +231,79 @@ public function setCheatCode($cheatCode) } /** - * @return \OpenActive\Models\SchemaOrg\GameServer|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGameServer() + public function getActor() { - return $this->gameServer; + return $this->actor; } /** - * @param \OpenActive\Models\SchemaOrg\GameServer|string $gameServer + * @param \OpenActive\Models\SchemaOrg\Person|string $actor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGameServer($gameServer) + public function setActor($actor) { $types = [ - "\OpenActive\Models\SchemaOrg\GameServer", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $gameServer = self::checkTypes($gameServer, $types); + $actor = self::checkTypes($actor, $types); - $this->gameServer = $gameServer; + $this->actor = $actor; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getGameTip() + public function getMusicBy() { - return $this->gameTip; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $gameTip + * @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 setGameTip($gameTip) + public function setMusicBy($musicBy) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $gameTip = self::checkTypes($gameTip, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->gameTip = $gameTip; + $this->musicBy = $musicBy; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getActors() + public function getDirectors() { - return $this->actors; + return $this->directors; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param \OpenActive\Models\SchemaOrg\Person|string $directors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setDirectors($directors) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actors = self::checkTypes($actors, $types); + $directors = self::checkTypes($directors, $types); - $this->actors = $actors; + $this->directors = $directors; } /** @@ -355,79 +332,102 @@ public function setPlayMode($playMode) } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return string */ - public function getGamePlatform() + public function getGameEdition() { - return $this->gamePlatform; + return $this->gameEdition; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform + * @param string $gameEdition * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGamePlatform($gamePlatform) + public function setGameEdition($gameEdition) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $gamePlatform = self::checkTypes($gamePlatform, $types); + $gameEdition = self::checkTypes($gameEdition, $types); - $this->gamePlatform = $gamePlatform; + $this->gameEdition = $gameEdition; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getMusicBy() + public function getDirector() { - return $this->musicBy; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setDirector($director) { $types = [ "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $director = self::checkTypes($director, $types); - $this->musicBy = $musicBy; + $this->director = $director; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getDirectors() + public function getActors() { - return $this->directors; + return $this->actors; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @param \OpenActive\Models\SchemaOrg\Person|string $actors * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirectors($directors) + public function setActors($actors) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $directors = self::checkTypes($directors, $types); + $actors = self::checkTypes($actors, $types); - $this->directors = $directors; + $this->actors = $actors; + } + + /** + * @return \OpenActive\Models\SchemaOrg\GameServer|string + */ + public function getGameServer() + { + return $this->gameServer; + } + + /** + * @param \OpenActive\Models\SchemaOrg\GameServer|string $gameServer + * @return void + * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + */ + public function setGameServer($gameServer) + { + $types = [ + "\OpenActive\Models\SchemaOrg\GameServer", + "string", + ]; + + $gameServer = self::checkTypes($gameServer, $types); + + $this->gameServer = $gameServer; } } diff --git a/src/Models/SchemaOrg/VideoGameSeries.php b/src/Models/SchemaOrg/VideoGameSeries.php index 16fd6ce6..037c4416 100644 --- a/src/Models/SchemaOrg/VideoGameSeries.php +++ b/src/Models/SchemaOrg/VideoGameSeries.php @@ -17,96 +17,96 @@ public static function getType() public static function fieldList() { $fields = [ - "season" => "season", "containsSeason" => "containsSeason", - "director" => "director", - "actor" => "actor", - "trailer" => "trailer", - "episodes" => "episodes", - "characterAttribute" => "characterAttribute", "numberOfEpisodes" => "numberOfEpisodes", - "seasons" => "seasons", + "quest" => "quest", + "gamePlatform" => "gamePlatform", + "characterAttribute" => "characterAttribute", + "trailer" => "trailer", "cheatCode" => "cheatCode", - "gameItem" => "gameItem", + "actor" => "actor", + "seasons" => "seasons", "productionCompany" => "productionCompany", - "actors" => "actors", - "playMode" => "playMode", - "gamePlatform" => "gamePlatform", "numberOfSeasons" => "numberOfSeasons", "musicBy" => "musicBy", - "numberOfPlayers" => "numberOfPlayers", - "quest" => "quest", + "gameItem" => "gameItem", "gameLocation" => "gameLocation", - "episode" => "episode", "directors" => "directors", + "playMode" => "playMode", + "director" => "director", + "episode" => "episode", + "episodes" => "episodes", + "actors" => "actors", + "numberOfPlayers" => "numberOfPlayers", + "season" => "season", ]; return array_merge(parent::fieldList(), $fields); } /** - * A season in a media series. + * A season that is part of the media series. * * - * @var string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $season; + protected $containsSeason; /** - * A season that is part of the media series. + * The number of episodes in this season or series. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @var int|null */ - protected $containsSeason; + protected $numberOfEpisodes; /** - * A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. + * The task that a player-controlled character, or group of characters may complete in order to gain a reward. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $director; + protected $quest; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * The electronic systems used to play video games. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $actor; + protected $gamePlatform; /** - * The trailer of a movie or tv/radio series, season, episode, etc. + * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage). * * - * @var \OpenActive\Models\SchemaOrg\VideoObject|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $trailer; + protected $characterAttribute; /** - * An episode of a TV/radio 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 $episodes; + protected $trailer; /** - * A piece of data that represents a particular aspect of a fictional character (skill, power, character points, advantage, disadvantage). + * Cheat codes to the game. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\CreativeWork|string */ - protected $characterAttribute; + protected $cheatCode; /** - * The number of episodes in this season or series. + * 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 int|null + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $numberOfEpisodes; + protected $actor; /** * A season in a media series. @@ -117,307 +117,307 @@ public static function fieldList() { protected $seasons; /** - * Cheat codes to the game. + * The production company or studio responsible for the item, e.g. series, video game, episode etc. * * - * @var \OpenActive\Models\SchemaOrg\CreativeWork|string + * @var \OpenActive\Models\SchemaOrg\Organization|string */ - protected $cheatCode; + protected $productionCompany; /** - * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character. + * The number of seasons in this series. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var int|null */ - protected $gameItem; + protected $numberOfSeasons; /** - * The production company or studio responsible for the item e.g. series, video game, episode etc. + * The composer of the soundtrack. * * - * @var \OpenActive\Models\SchemaOrg\Organization|string + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $productionCompany; + protected $musicBy; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * An item is an object within the game world that can be collected by a player or, occasionally, a non-player character. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Thing|string */ - protected $actors; + protected $gameItem; /** - * Indicates whether this game is multi-player, co-op or single-player. The game can be marked as multi-player, co-op and single-player at the same time. + * Real or fictional location of the game (or part of game). * * - * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null + * @var \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place */ - protected $playMode; + protected $gameLocation; /** - * The electronic systems used to play video games. + * 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|\OpenActive\Models\SchemaOrg\Thing + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $gamePlatform; + protected $directors; /** - * The number of seasons in this series. + * 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 int|null + * @var \OpenActive\Enums\SchemaOrg\GamePlayMode|null */ - protected $numberOfSeasons; + protected $playMode; /** - * The composer of the soundtrack. + * A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $musicBy; + protected $director; /** - * Indicate how many people can play this game (minimum, maximum, or range). + * An episode of a TV, radio or game media within a series or season. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $numberOfPlayers; + protected $episode; /** - * The task that a player-controlled character, or group of characters may complete in order to gain a reward. + * An episode of a TV/radio series or season. * * - * @var \OpenActive\Models\SchemaOrg\Thing|string + * @var \OpenActive\Models\SchemaOrg\Episode|string */ - protected $quest; + protected $episodes; /** - * Real or fictional location of the game (or part of game). + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * - * @var \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $gameLocation; + protected $actors; /** - * An episode of a tv, radio or game media within a series or season. + * Indicate how many people can play this game (minimum, maximum, or range). * * - * @var \OpenActive\Models\SchemaOrg\Episode|string + * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $episode; + protected $numberOfPlayers; /** - * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. + * A season in a media series. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - protected $directors; + protected $season; /** - * @return string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getSeason() + public function getContainsSeason() { - return $this->season; + return $this->containsSeason; } /** - * @param string|\OpenActive\Models\SchemaOrg\CreativeWorkSeason $season + * @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 setSeason($season) + public function setContainsSeason($containsSeason) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", + "string", ]; - $season = self::checkTypes($season, $types); + $containsSeason = self::checkTypes($containsSeason, $types); - $this->season = $season; + $this->containsSeason = $containsSeason; } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string + * @return int|null */ - public function getContainsSeason() + public function getNumberOfEpisodes() { - return $this->containsSeason; + return $this->numberOfEpisodes; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string $containsSeason + * @param int|null $numberOfEpisodes * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setContainsSeason($containsSeason) + public function setNumberOfEpisodes($numberOfEpisodes) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", - "string", + "int", + "null", ]; - $containsSeason = self::checkTypes($containsSeason, $types); + $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); - $this->containsSeason = $containsSeason; + $this->numberOfEpisodes = $numberOfEpisodes; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getDirector() + public function getQuest() { - return $this->director; + return $this->quest; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @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 setDirector($director) + public function setQuest($quest) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $director = self::checkTypes($director, $types); + $quest = self::checkTypes($quest, $types); - $this->director = $director; + $this->quest = $quest; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getActor() + public function getGamePlatform() { - return $this->actor; + return $this->gamePlatform; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param \OpenActive\Models\SchemaOrg\Thing|string $gamePlatform * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setGamePlatform($gamePlatform) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $actor = self::checkTypes($actor, $types); + $gamePlatform = self::checkTypes($gamePlatform, $types); - $this->actor = $actor; + $this->gamePlatform = $gamePlatform; } /** - * @return \OpenActive\Models\SchemaOrg\VideoObject|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getTrailer() + public function getCharacterAttribute() { - return $this->trailer; + return $this->characterAttribute; } /** - * @param \OpenActive\Models\SchemaOrg\VideoObject|string $trailer + * @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 setTrailer($trailer) + public function setCharacterAttribute($characterAttribute) { $types = [ - "\OpenActive\Models\SchemaOrg\VideoObject", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $trailer = self::checkTypes($trailer, $types); + $characterAttribute = self::checkTypes($characterAttribute, $types); - $this->trailer = $trailer; + $this->characterAttribute = $characterAttribute; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\VideoObject|string */ - public function getEpisodes() + public function getTrailer() { - return $this->episodes; + return $this->trailer; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episodes + * @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 setEpisodes($episodes) + public function setTrailer($trailer) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\VideoObject", "string", ]; - $episodes = self::checkTypes($episodes, $types); + $trailer = self::checkTypes($trailer, $types); - $this->episodes = $episodes; + $this->trailer = $trailer; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\CreativeWork|string */ - public function getCharacterAttribute() + public function getCheatCode() { - return $this->characterAttribute; + return $this->cheatCode; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $characterAttribute + * @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 setCharacterAttribute($characterAttribute) + public function setCheatCode($cheatCode) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\CreativeWork", "string", ]; - $characterAttribute = self::checkTypes($characterAttribute, $types); + $cheatCode = self::checkTypes($cheatCode, $types); - $this->characterAttribute = $characterAttribute; + $this->cheatCode = $cheatCode; } /** - * @return int|null + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getNumberOfEpisodes() + public function getActor() { - return $this->numberOfEpisodes; + return $this->actor; } /** - * @param int|null $numberOfEpisodes + * @param \OpenActive\Models\SchemaOrg\Person|string $actor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setNumberOfEpisodes($numberOfEpisodes) + public function setActor($actor) { $types = [ - "int", - "null", + "\OpenActive\Models\SchemaOrg\Person", + "string", ]; - $numberOfEpisodes = self::checkTypes($numberOfEpisodes, $types); + $actor = self::checkTypes($actor, $types); - $this->numberOfEpisodes = $numberOfEpisodes; + $this->actor = $actor; } /** @@ -446,330 +446,330 @@ public function setSeasons($seasons) } /** - * @return \OpenActive\Models\SchemaOrg\CreativeWork|string + * @return \OpenActive\Models\SchemaOrg\Organization|string */ - public function getCheatCode() + public function getProductionCompany() { - return $this->cheatCode; + return $this->productionCompany; } /** - * @param \OpenActive\Models\SchemaOrg\CreativeWork|string $cheatCode + * @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 setCheatCode($cheatCode) + public function setProductionCompany($productionCompany) { $types = [ - "\OpenActive\Models\SchemaOrg\CreativeWork", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $cheatCode = self::checkTypes($cheatCode, $types); + $productionCompany = self::checkTypes($productionCompany, $types); - $this->cheatCode = $cheatCode; + $this->productionCompany = $productionCompany; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return int|null */ - public function getGameItem() + public function getNumberOfSeasons() { - return $this->gameItem; + return $this->numberOfSeasons; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem + * @param int|null $numberOfSeasons * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setGameItem($gameItem) + public function setNumberOfSeasons($numberOfSeasons) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", - "string", + "int", + "null", ]; - $gameItem = self::checkTypes($gameItem, $types); + $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); - $this->gameItem = $gameItem; + $this->numberOfSeasons = $numberOfSeasons; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|string + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getProductionCompany() + public function getMusicBy() { - return $this->productionCompany; + return $this->musicBy; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|string $productionCompany + * @param \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string $musicBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setProductionCompany($productionCompany) + public function setMusicBy($musicBy) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $productionCompany = self::checkTypes($productionCompany, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->productionCompany = $productionCompany; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Thing|string */ - public function getActors() + public function getGameItem() { - return $this->actors; + return $this->gameItem; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actors + * @param \OpenActive\Models\SchemaOrg\Thing|string $gameItem * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActors($actors) + public function setGameItem($gameItem) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Thing", "string", ]; - $actors = self::checkTypes($actors, $types); + $gameItem = self::checkTypes($gameItem, $types); - $this->actors = $actors; + $this->gameItem = $gameItem; } /** - * @return \OpenActive\Enums\SchemaOrg\GamePlayMode|null + * @return \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place */ - public function getPlayMode() + public function getGameLocation() { - return $this->playMode; + return $this->gameLocation; } /** - * @param \OpenActive\Enums\SchemaOrg\GamePlayMode|null $playMode + * @param \OpenActive\Models\SchemaOrg\PostalAddress|string|\OpenActive\Models\SchemaOrg\Place $gameLocation * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPlayMode($playMode) + public function setGameLocation($gameLocation) { $types = [ - "\OpenActive\Enums\SchemaOrg\GamePlayMode", - "null", + "\OpenActive\Models\SchemaOrg\PostalAddress", + "string", + "\OpenActive\Models\SchemaOrg\Place", ]; - $playMode = self::checkTypes($playMode, $types); + $gameLocation = self::checkTypes($gameLocation, $types); - $this->playMode = $playMode; + $this->gameLocation = $gameLocation; } /** - * @return string|\OpenActive\Models\SchemaOrg\Thing + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGamePlatform() + public function getDirectors() { - return $this->gamePlatform; + return $this->directors; } /** - * @param string|\OpenActive\Models\SchemaOrg\Thing $gamePlatform + * @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 setGamePlatform($gamePlatform) + public function setDirectors($directors) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\Thing", ]; - $gamePlatform = self::checkTypes($gamePlatform, $types); + $directors = self::checkTypes($directors, $types); - $this->gamePlatform = $gamePlatform; + $this->directors = $directors; } /** - * @return int|null + * @return \OpenActive\Enums\SchemaOrg\GamePlayMode|null */ - public function getNumberOfSeasons() + public function getPlayMode() { - return $this->numberOfSeasons; + return $this->playMode; } /** - * @param int|null $numberOfSeasons + * @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 setNumberOfSeasons($numberOfSeasons) + public function setPlayMode($playMode) { $types = [ - "int", + "\OpenActive\Enums\SchemaOrg\GamePlayMode", "null", ]; - $numberOfSeasons = self::checkTypes($numberOfSeasons, $types); + $playMode = self::checkTypes($playMode, $types); - $this->numberOfSeasons = $numberOfSeasons; + $this->playMode = $playMode; } /** - * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getMusicBy() + public function getDirector() { - return $this->musicBy; + return $this->director; } /** - * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string $musicBy + * @param \OpenActive\Models\SchemaOrg\Person|string $director * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMusicBy($musicBy) + public function setDirector($director) { $types = [ "\OpenActive\Models\SchemaOrg\Person", - "\OpenActive\Models\SchemaOrg\MusicGroup", "string", ]; - $musicBy = self::checkTypes($musicBy, $types); + $director = self::checkTypes($director, $types); - $this->musicBy = $musicBy; + $this->director = $director; } /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getNumberOfPlayers() + public function getEpisode() { - return $this->numberOfPlayers; + return $this->episode; } /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|string $numberOfPlayers + * @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 setNumberOfPlayers($numberOfPlayers) + public function setEpisode($episode) { $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); + $episode = self::checkTypes($episode, $types); - $this->numberOfPlayers = $numberOfPlayers; + $this->episode = $episode; } /** - * @return \OpenActive\Models\SchemaOrg\Thing|string + * @return \OpenActive\Models\SchemaOrg\Episode|string */ - public function getQuest() + public function getEpisodes() { - return $this->quest; + return $this->episodes; } /** - * @param \OpenActive\Models\SchemaOrg\Thing|string $quest + * @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 setQuest($quest) + public function setEpisodes($episodes) { $types = [ - "\OpenActive\Models\SchemaOrg\Thing", + "\OpenActive\Models\SchemaOrg\Episode", "string", ]; - $quest = self::checkTypes($quest, $types); + $episodes = self::checkTypes($episodes, $types); - $this->quest = $quest; + $this->episodes = $episodes; } /** - * @return \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getGameLocation() + public function getActors() { - return $this->gameLocation; + return $this->actors; } /** - * @param \OpenActive\Models\SchemaOrg\Place|string|\OpenActive\Models\SchemaOrg\PostalAddress $gameLocation + * @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 setGameLocation($gameLocation) + public function setActors($actors) { $types = [ - "\OpenActive\Models\SchemaOrg\Place", + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\PostalAddress", ]; - $gameLocation = self::checkTypes($gameLocation, $types); + $actors = self::checkTypes($actors, $types); - $this->gameLocation = $gameLocation; + $this->actors = $actors; } /** - * @return \OpenActive\Models\SchemaOrg\Episode|string + * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getEpisode() + public function getNumberOfPlayers() { - return $this->episode; + return $this->numberOfPlayers; } /** - * @param \OpenActive\Models\SchemaOrg\Episode|string $episode + * @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 setEpisode($episode) + public function setNumberOfPlayers($numberOfPlayers) { $types = [ - "\OpenActive\Models\SchemaOrg\Episode", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $episode = self::checkTypes($episode, $types); + $numberOfPlayers = self::checkTypes($numberOfPlayers, $types); - $this->episode = $episode; + $this->numberOfPlayers = $numberOfPlayers; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\CreativeWorkSeason|string */ - public function getDirectors() + public function getSeason() { - return $this->directors; + return $this->season; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @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 setDirectors($directors) + public function setSeason($season) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\CreativeWorkSeason", "string", ]; - $directors = self::checkTypes($directors, $types); + $season = self::checkTypes($season, $types); - $this->directors = $directors; + $this->season = $season; } } diff --git a/src/Models/SchemaOrg/VideoObject.php b/src/Models/SchemaOrg/VideoObject.php index 0b78c4c5..f8e7fcbe 100644 --- a/src/Models/SchemaOrg/VideoObject.php +++ b/src/Models/SchemaOrg/VideoObject.php @@ -17,88 +17,87 @@ public static function getType() public static function fieldList() { $fields = [ - "embeddedTextCaption" => "embeddedTextCaption", - "director" => "director", "actor" => "actor", - "caption" => "caption", - "thumbnail" => "thumbnail", "transcript" => "transcript", - "videoQuality" => "videoQuality", "videoFrameSize" => "videoFrameSize", - "actors" => "actors", "musicBy" => "musicBy", + "videoQuality" => "videoQuality", "directors" => "directors", + "director" => "director", + "embeddedTextCaption" => "embeddedTextCaption", + "actors" => "actors", + "caption" => "caption", ]; return array_merge(parent::fieldList(), $fields); } /** - * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. + * 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 string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $embeddedTextCaption; + 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. + * If this MediaObject is an AudioObject or VideoObject, the transcript of that object. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $director; + protected $transcript; /** - * An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. + * The frame size of the video. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $actor; + protected $videoFrameSize; /** - * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. + * The composer of the soundtrack. * * - * @var string|\OpenActive\Models\SchemaOrg\MediaObject + * @var \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - protected $caption; + protected $musicBy; /** - * Thumbnail image for an image or video. + * The quality of the video. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var string */ - protected $thumbnail; + protected $videoQuality; /** - * 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. + * 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 string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $videoQuality; + protected $director; /** - * The frame size of the video. + * Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'. * * * @var string */ - protected $videoFrameSize; + protected $embeddedTextCaption; /** - * An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. + * An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip. * * * @var \OpenActive\Models\SchemaOrg\Person|string @@ -106,215 +105,208 @@ public static function fieldList() { protected $actors; /** - * The composer of the soundtrack. - * - * - * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\MusicGroup|string - */ - protected $musicBy; - - /** - * A director of e.g. tv, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip. + * The caption for this object. For downloadable machine formats (closed caption, subtitles etc.) use MediaObject and indicate the [[encodingFormat]]. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\MediaObject|string */ - protected $directors; + protected $caption; /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getEmbeddedTextCaption() + public function getActor() { - return $this->embeddedTextCaption; + return $this->actor; } /** - * @param string $embeddedTextCaption + * @param \OpenActive\Models\SchemaOrg\Person|string $actor * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setEmbeddedTextCaption($embeddedTextCaption) + public function setActor($actor) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); + $actor = self::checkTypes($actor, $types); - $this->embeddedTextCaption = $embeddedTextCaption; + $this->actor = $actor; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getDirector() + public function getTranscript() { - return $this->director; + return $this->transcript; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $director + * @param string $transcript * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setDirector($director) + public function setTranscript($transcript) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $director = self::checkTypes($director, $types); + $transcript = self::checkTypes($transcript, $types); - $this->director = $director; + $this->transcript = $transcript; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getActor() + public function getVideoFrameSize() { - return $this->actor; + return $this->videoFrameSize; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $actor + * @param string $videoFrameSize * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setActor($actor) + public function setVideoFrameSize($videoFrameSize) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $actor = self::checkTypes($actor, $types); + $videoFrameSize = self::checkTypes($videoFrameSize, $types); - $this->actor = $actor; + $this->videoFrameSize = $videoFrameSize; } /** - * @return string|\OpenActive\Models\SchemaOrg\MediaObject + * @return \OpenActive\Models\SchemaOrg\MusicGroup|\OpenActive\Models\SchemaOrg\Person|string */ - public function getCaption() + public function getMusicBy() { - return $this->caption; + return $this->musicBy; } /** - * @param string|\OpenActive\Models\SchemaOrg\MediaObject $caption + * @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 setCaption($caption) + public function setMusicBy($musicBy) { $types = [ + "\OpenActive\Models\SchemaOrg\MusicGroup", + "\OpenActive\Models\SchemaOrg\Person", "string", - "\OpenActive\Models\SchemaOrg\MediaObject", ]; - $caption = self::checkTypes($caption, $types); + $musicBy = self::checkTypes($musicBy, $types); - $this->caption = $caption; + $this->musicBy = $musicBy; } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return string */ - public function getThumbnail() + public function getVideoQuality() { - return $this->thumbnail; + return $this->videoQuality; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $thumbnail + * @param string $videoQuality * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setThumbnail($thumbnail) + public function setVideoQuality($videoQuality) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", "string", ]; - $thumbnail = self::checkTypes($thumbnail, $types); + $videoQuality = self::checkTypes($videoQuality, $types); - $this->thumbnail = $thumbnail; + $this->videoQuality = $videoQuality; } /** - * @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 + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getVideoQuality() + public function getDirector() { - return $this->videoQuality; + return $this->director; } /** - * @param string $videoQuality + * @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 setVideoQuality($videoQuality) + public function setDirector($director) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $videoQuality = self::checkTypes($videoQuality, $types); + $director = self::checkTypes($director, $types); - $this->videoQuality = $videoQuality; + $this->director = $director; } /** * @return string */ - public function getVideoFrameSize() + public function getEmbeddedTextCaption() { - return $this->videoFrameSize; + return $this->embeddedTextCaption; } /** - * @param string $videoFrameSize + * @param string $embeddedTextCaption * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setVideoFrameSize($videoFrameSize) + public function setEmbeddedTextCaption($embeddedTextCaption) { $types = [ "string", ]; - $videoFrameSize = self::checkTypes($videoFrameSize, $types); + $embeddedTextCaption = self::checkTypes($embeddedTextCaption, $types); - $this->videoFrameSize = $videoFrameSize; + $this->embeddedTextCaption = $embeddedTextCaption; } /** @@ -343,54 +335,28 @@ public function setActors($actors) } /** - * @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\MediaObject|string */ - public function getDirectors() + public function getCaption() { - return $this->directors; + return $this->caption; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $directors + * @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 setDirectors($directors) + public function setCaption($caption) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\MediaObject", "string", ]; - $directors = self::checkTypes($directors, $types); + $caption = self::checkTypes($caption, $types); - $this->directors = $directors; + $this->caption = $caption; } } diff --git a/src/Models/SchemaOrg/VisualArtwork.php b/src/Models/SchemaOrg/VisualArtwork.php index 43135cf8..9aae5b97 100644 --- a/src/Models/SchemaOrg/VisualArtwork.php +++ b/src/Models/SchemaOrg/VisualArtwork.php @@ -17,71 +17,65 @@ public static function getType() public static function fieldList() { $fields = [ - "width" => "width", - "letterer" => "letterer", - "height" => "height", - "surface" => "surface", - "colorist" => "colorist", + "depth" => "depth", "inker" => "inker", - "artform" => "artform", + "letterer" => "letterer", + "artist" => "artist", "artworkSurface" => "artworkSurface", + "artform" => "artform", + "width" => "width", "artEdition" => "artEdition", - "depth" => "depth", "penciler" => "penciler", - "artist" => "artist", + "height" => "height", "artMedium" => "artMedium", + "surface" => "surface", + "colorist" => "colorist", ]; return array_merge(parent::fieldList(), $fields); } /** - * The width of the item. + * The depth of the item. * * - * @var \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $width; + protected $depth; /** - * The individual who adds lettering, including speech balloons and sound effects, to artwork. + * The individual who traces over the pencil drawings in ink after pencils are complete. * * * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $letterer; - - /** - * The height of the item. - * - * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string - */ - protected $height; + protected $inker; /** - * A material used as a surface in some artwork, e.g. Canvas, Paper, Wood, Board, etc. + * The individual who adds lettering, including speech balloons and sound effects, to artwork. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Person|string */ - protected $surface; + protected $letterer; /** - * The individual who adds color to inked drawings. + * 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 $colorist; + protected $artist; /** - * The individual who traces over the pencil drawings in ink after pencils are complete. + * The supporting materials for the artwork, e.g. Canvas, Paper, Wood, Board, etc. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var string */ - protected $inker; + protected $artworkSurface; /** * e.g. Painting, Drawing, Sculpture, Print, Photograph, Assemblage, Collage, etc. @@ -92,12 +86,12 @@ public static function fieldList() { protected $artform; /** - * The supporting materials for the artwork, e.g. Canvas, Paper, Wood, Board, etc. + * The width of the item. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $artworkSurface; + protected $width; /** * 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"). @@ -107,14 +101,6 @@ public static function fieldList() { */ protected $artEdition; - /** - * The depth of the item. - * - * - * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string - */ - protected $depth; - /** * The individual who draws the primary narrative artwork. * @@ -124,17 +110,15 @@ public static function fieldList() { protected $penciler; /** - * The primary artist for a work - * in a medium other than pencils or digital line art--for example, if the - * primary artwork is done in watercolors or digital paints. + * The height of the item. * * - * @var \OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - protected $artist; + protected $height; /** - * The material used. (e.g. Oil, Watercolour, Acrylic, Linoprint, Marble, Cyanotype, Digital, Lithograph, DryPoint, Intaglio, Pastel, Woodcut, Pencil, Mixed Media, etc.) + * The material used. (E.g. Oil, Watercolour, Acrylic, Linoprint, Marble, Cyanotype, Digital, Lithograph, DryPoint, Intaglio, Pastel, Woodcut, Pencil, Mixed Media, etc.) * * * @var string @@ -142,154 +126,144 @@ public static function fieldList() { protected $artMedium; /** - * @return \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string + * A material used as a surface in some artwork, e.g. Canvas, Paper, Wood, Board, etc. + * + * + * @var string */ - public function getWidth() - { - return $this->width; - } + protected $surface; /** - * @param \OpenActive\Models\SchemaOrg\QuantitativeValue|\OpenActive\Models\SchemaOrg\Distance|string $width - * @return void - * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. + * The individual who adds color to inked drawings. + * + * + * @var \OpenActive\Models\SchemaOrg\Person|string */ - public function setWidth($width) - { - $types = [ - "\OpenActive\Models\SchemaOrg\QuantitativeValue", - "\OpenActive\Models\SchemaOrg\Distance", - "string", - ]; - - $width = self::checkTypes($width, $types); - - $this->width = $width; - } + protected $colorist; /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getLetterer() + public function getDepth() { - return $this->letterer; + return $this->depth; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $letterer + * @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 setLetterer($letterer) + public function setDepth($depth) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $letterer = self::checkTypes($letterer, $types); + $depth = self::checkTypes($depth, $types); - $this->letterer = $letterer; + $this->depth = $depth; } /** - * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getHeight() + public function getInker() { - return $this->height; + return $this->inker; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $height + * @param \OpenActive\Models\SchemaOrg\Person|string $inker * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setHeight($height) + public function setInker($inker) { $types = [ - "\OpenActive\Models\SchemaOrg\Distance", - "\OpenActive\Models\SchemaOrg\QuantitativeValue", + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $height = self::checkTypes($height, $types); + $inker = self::checkTypes($inker, $types); - $this->height = $height; + $this->inker = $inker; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getSurface() + public function getLetterer() { - return $this->surface; + return $this->letterer; } /** - * @param string $surface + * @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 setSurface($surface) + public function setLetterer($letterer) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $surface = self::checkTypes($surface, $types); + $letterer = self::checkTypes($letterer, $types); - $this->surface = $surface; + $this->letterer = $letterer; } /** * @return \OpenActive\Models\SchemaOrg\Person|string */ - public function getColorist() + public function getArtist() { - return $this->colorist; + return $this->artist; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $colorist + * @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 setColorist($colorist) + public function setArtist($artist) { $types = [ "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $colorist = self::checkTypes($colorist, $types); + $artist = self::checkTypes($artist, $types); - $this->colorist = $colorist; + $this->artist = $artist; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getInker() + public function getArtworkSurface() { - return $this->inker; + return $this->artworkSurface; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $inker + * @param string $artworkSurface * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInker($inker) + public function setArtworkSurface($artworkSurface) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $inker = self::checkTypes($inker, $types); + $artworkSurface = self::checkTypes($artworkSurface, $types); - $this->inker = $inker; + $this->artworkSurface = $artworkSurface; } /** @@ -317,27 +291,29 @@ public function setArtform($artform) } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getArtworkSurface() + public function getWidth() { - return $this->artworkSurface; + return $this->width; } /** - * @param string $artworkSurface + * @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 setArtworkSurface($artworkSurface) + public function setWidth($width) { $types = [ + "\OpenActive\Models\SchemaOrg\Distance", + "\OpenActive\Models\SchemaOrg\QuantitativeValue", "string", ]; - $artworkSurface = self::checkTypes($artworkSurface, $types); + $width = self::checkTypes($width, $types); - $this->artworkSurface = $artworkSurface; + $this->width = $width; } /** @@ -366,20 +342,45 @@ public function setArtEdition($artEdition) $this->artEdition = $artEdition; } + /** + * @return \OpenActive\Models\SchemaOrg\Person|string + */ + public function getPenciler() + { + return $this->penciler; + } + + /** + * @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 setPenciler($penciler) + { + $types = [ + "\OpenActive\Models\SchemaOrg\Person", + "string", + ]; + + $penciler = self::checkTypes($penciler, $types); + + $this->penciler = $penciler; + } + /** * @return \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string */ - public function getDepth() + public function getHeight() { - return $this->depth; + return $this->height; } /** - * @param \OpenActive\Models\SchemaOrg\Distance|\OpenActive\Models\SchemaOrg\QuantitativeValue|string $depth + * @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 setDepth($depth) + public function setHeight($height) { $types = [ "\OpenActive\Models\SchemaOrg\Distance", @@ -387,83 +388,82 @@ public function setDepth($depth) "string", ]; - $depth = self::checkTypes($depth, $types); + $height = self::checkTypes($height, $types); - $this->depth = $depth; + $this->height = $height; } /** - * @return \OpenActive\Models\SchemaOrg\Person|string + * @return string */ - public function getPenciler() + public function getArtMedium() { - return $this->penciler; + return $this->artMedium; } /** - * @param \OpenActive\Models\SchemaOrg\Person|string $penciler + * @param string $artMedium * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPenciler($penciler) + public function setArtMedium($artMedium) { $types = [ - "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $penciler = self::checkTypes($penciler, $types); + $artMedium = self::checkTypes($artMedium, $types); - $this->penciler = $penciler; + $this->artMedium = $artMedium; } /** - * @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\Person|string */ - public function getArtMedium() + public function getColorist() { - return $this->artMedium; + return $this->colorist; } /** - * @param string $artMedium + * @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 setArtMedium($artMedium) + public function setColorist($colorist) { $types = [ + "\OpenActive\Models\SchemaOrg\Person", "string", ]; - $artMedium = self::checkTypes($artMedium, $types); + $colorist = self::checkTypes($colorist, $types); - $this->artMedium = $artMedium; + $this->colorist = $colorist; } } 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..34a1c3fe 100644 --- a/src/Models/SchemaOrg/WebPage.php +++ b/src/Models/SchemaOrg/WebPage.php @@ -17,28 +17,28 @@ public static function getType() public static function fieldList() { $fields = [ - "lastReviewed" => "lastReviewed", - "specialty" => "specialty", "primaryImageOfPage" => "primaryImageOfPage", - "significantLink" => "significantLink", - "reviewedBy" => "reviewedBy", - "mainContentOfPage" => "mainContentOfPage", - "relatedLink" => "relatedLink", + "specialty" => "specialty", + "lastReviewed" => "lastReviewed", "speakable" => "speakable", "breadcrumb" => "breadcrumb", + "relatedLink" => "relatedLink", "significantLinks" => "significantLinks", + "significantLink" => "significantLink", + "reviewedBy" => "reviewedBy", + "mainContentOfPage" => "mainContentOfPage", ]; return array_merge(parent::fieldList(), $fields); } /** - * Date on which the content on this web page was last reviewed for accuracy and/or completeness. + * Indicates the main image on the page. * * - * @var Date|null + * @var \OpenActive\Models\SchemaOrg\ImageObject|string */ - protected $lastReviewed; + protected $primaryImageOfPage; /** * One of the domain specialities to which this web page's content applies. @@ -49,105 +49,105 @@ public static function fieldList() { protected $specialty; /** - * Indicates the main image on the page. + * Date on which the content on this web page was last reviewed for accuracy and/or completeness. * * - * @var \OpenActive\Models\SchemaOrg\ImageObject|string + * @var Date|null */ - protected $primaryImageOfPage; + protected $lastReviewed; /** - * One of the more significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. + * Indicates sections of a Web page that are particularly 'speakable' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the 'speakable' property serves to indicate the parts most likely to be generally useful for speech. + * + * The *speakable* property can be repeated an arbitrary number of times, with three kinds of possible 'content-locator' values: + * + * 1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned. + * + * 2.) CSS Selectors - addresses content in the annotated page, e.g. via class attribute. Use the [[cssSelector]] property. + * + * 3.) XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property. + * + * + * For more sophisticated markup of speakable sections beyond simple ID references, either CSS selectors or XPath expressions to pick out document section(s) as speakable. For this + * we define a supporting type, [[SpeakableSpecification]] which is defined to be a possible value of the *speakable* property. + * * * - * @var string + * @var \OpenActive\Models\SchemaOrg\SpeakableSpecification|string */ - protected $significantLink; + protected $speakable; /** - * People or organizations that have reviewed the content on this web page for accuracy and/or completeness. + * A set of links that can help a user understand and navigate a website hierarchy. * * - * @var \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @var \OpenActive\Models\SchemaOrg\BreadcrumbList|string */ - protected $reviewedBy; + protected $breadcrumb; /** - * Indicates if this web page element is the main subject of the page. + * A link related to this web page, for example to other related web pages. * * - * @var \OpenActive\Models\SchemaOrg\WebPageElement|string + * @var string */ - protected $mainContentOfPage; + protected $relatedLink; /** - * 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. - * - * The *speakable* property can be repeated an arbitrary number of times, with three kinds of possible 'content-locator' values: - * - * 1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned. - * - * 2.) CSS Selectors - addresses content in the annotated page, eg. via class attribute. Use the [[cssSelector]] property. - * - * 3.) XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property. - * - * - * For more sophisticated markup of speakable sections beyond simple ID references, either CSS selectors or XPath expressions to pick out document section(s) as speakable. For this - * we define a supporting type, [[SpeakableSpecification]] which is defined to be a possible value of the *speakable* property. - * + * One of the more significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. * * - * @var string|\OpenActive\Models\SchemaOrg\SpeakableSpecification + * @var string */ - protected $speakable; + protected $significantLink; /** - * A set of links that can help a user understand and navigate a website hierarchy. + * People or organizations that have reviewed the content on this web page for accuracy and/or completeness. * * - * @var \OpenActive\Models\SchemaOrg\BreadcrumbList|string + * @var \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - protected $breadcrumb; + protected $reviewedBy; /** - * The most significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. + * Indicates if this web page element is the main subject of the page. * * - * @var string + * @var \OpenActive\Models\SchemaOrg\WebPageElement|string */ - protected $significantLinks; + protected $mainContentOfPage; /** - * @return Date|null + * @return \OpenActive\Models\SchemaOrg\ImageObject|string */ - public function getLastReviewed() + public function getPrimaryImageOfPage() { - return $this->lastReviewed; + return $this->primaryImageOfPage; } /** - * @param Date|null $lastReviewed + * @param \OpenActive\Models\SchemaOrg\ImageObject|string $primaryImageOfPage * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setLastReviewed($lastReviewed) + public function setPrimaryImageOfPage($primaryImageOfPage) { $types = [ - "Date", - "null", + "\OpenActive\Models\SchemaOrg\ImageObject", + "string", ]; - $lastReviewed = self::checkTypes($lastReviewed, $types); + $primaryImageOfPage = self::checkTypes($primaryImageOfPage, $types); - $this->lastReviewed = $lastReviewed; + $this->primaryImageOfPage = $primaryImageOfPage; } /** @@ -176,201 +176,201 @@ public function setSpecialty($specialty) } /** - * @return \OpenActive\Models\SchemaOrg\ImageObject|string + * @return Date|null */ - public function getPrimaryImageOfPage() + public function getLastReviewed() { - return $this->primaryImageOfPage; + return $this->lastReviewed; } /** - * @param \OpenActive\Models\SchemaOrg\ImageObject|string $primaryImageOfPage + * @param Date|null $lastReviewed * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setPrimaryImageOfPage($primaryImageOfPage) + public function setLastReviewed($lastReviewed) { $types = [ - "\OpenActive\Models\SchemaOrg\ImageObject", - "string", + "Date", + "null", ]; - $primaryImageOfPage = self::checkTypes($primaryImageOfPage, $types); + $lastReviewed = self::checkTypes($lastReviewed, $types); - $this->primaryImageOfPage = $primaryImageOfPage; + $this->lastReviewed = $lastReviewed; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\SpeakableSpecification|string */ - public function getSignificantLink() + public function getSpeakable() { - return $this->significantLink; + return $this->speakable; } /** - * @param string $significantLink + * @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 setSignificantLink($significantLink) + public function setSpeakable($speakable) { $types = [ + "\OpenActive\Models\SchemaOrg\SpeakableSpecification", "string", ]; - $significantLink = self::checkTypes($significantLink, $types); + $speakable = self::checkTypes($speakable, $types); - $this->significantLink = $significantLink; + $this->speakable = $speakable; } /** - * @return \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string + * @return \OpenActive\Models\SchemaOrg\BreadcrumbList|string */ - public function getReviewedBy() + public function getBreadcrumb() { - return $this->reviewedBy; + return $this->breadcrumb; } /** - * @param \OpenActive\Models\SchemaOrg\Organization|\OpenActive\Models\SchemaOrg\Person|string $reviewedBy + * @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 setReviewedBy($reviewedBy) + public function setBreadcrumb($breadcrumb) { $types = [ - "\OpenActive\Models\SchemaOrg\Organization", - "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\BreadcrumbList", "string", ]; - $reviewedBy = self::checkTypes($reviewedBy, $types); + $breadcrumb = self::checkTypes($breadcrumb, $types); - $this->reviewedBy = $reviewedBy; + $this->breadcrumb = $breadcrumb; } /** - * @return \OpenActive\Models\SchemaOrg\WebPageElement|string + * @return string */ - public function getMainContentOfPage() + public function getRelatedLink() { - return $this->mainContentOfPage; + return $this->relatedLink; } /** - * @param \OpenActive\Models\SchemaOrg\WebPageElement|string $mainContentOfPage + * @param string $relatedLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setMainContentOfPage($mainContentOfPage) + public function setRelatedLink($relatedLink) { $types = [ - "\OpenActive\Models\SchemaOrg\WebPageElement", "string", ]; - $mainContentOfPage = self::checkTypes($mainContentOfPage, $types); + $relatedLink = self::checkTypes($relatedLink, $types); - $this->mainContentOfPage = $mainContentOfPage; + $this->relatedLink = $relatedLink; } /** * @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 string */ - public function getSpeakable() + public function getSignificantLink() { - return $this->speakable; + return $this->significantLink; } /** - * @param string|\OpenActive\Models\SchemaOrg\SpeakableSpecification $speakable + * @param string $significantLink * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setSpeakable($speakable) + public function setSignificantLink($significantLink) { $types = [ "string", - "\OpenActive\Models\SchemaOrg\SpeakableSpecification", ]; - $speakable = self::checkTypes($speakable, $types); + $significantLink = self::checkTypes($significantLink, $types); - $this->speakable = $speakable; + $this->significantLink = $significantLink; } /** - * @return \OpenActive\Models\SchemaOrg\BreadcrumbList|string + * @return \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string */ - public function getBreadcrumb() + public function getReviewedBy() { - return $this->breadcrumb; + return $this->reviewedBy; } /** - * @param \OpenActive\Models\SchemaOrg\BreadcrumbList|string $breadcrumb + * @param \OpenActive\Models\SchemaOrg\Person|\OpenActive\Models\SchemaOrg\Organization|string $reviewedBy * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setBreadcrumb($breadcrumb) + public function setReviewedBy($reviewedBy) { $types = [ - "\OpenActive\Models\SchemaOrg\BreadcrumbList", + "\OpenActive\Models\SchemaOrg\Person", + "\OpenActive\Models\SchemaOrg\Organization", "string", ]; - $breadcrumb = self::checkTypes($breadcrumb, $types); + $reviewedBy = self::checkTypes($reviewedBy, $types); - $this->breadcrumb = $breadcrumb; + $this->reviewedBy = $reviewedBy; } /** - * @return string + * @return \OpenActive\Models\SchemaOrg\WebPageElement|string */ - public function getSignificantLinks() + public function getMainContentOfPage() { - return $this->significantLinks; + return $this->mainContentOfPage; } /** - * @param string $significantLinks + * @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 setSignificantLinks($significantLinks) + public function setMainContentOfPage($mainContentOfPage) { $types = [ + "\OpenActive\Models\SchemaOrg\WebPageElement", "string", ]; - $significantLinks = self::checkTypes($significantLinks, $types); + $mainContentOfPage = self::checkTypes($mainContentOfPage, $types); - $this->significantLinks = $significantLinks; + $this->mainContentOfPage = $mainContentOfPage; } } diff --git a/src/Models/SchemaOrg/WebPageElement.php b/src/Models/SchemaOrg/WebPageElement.php index 9194ab65..42323904 100644 --- a/src/Models/SchemaOrg/WebPageElement.php +++ b/src/Models/SchemaOrg/WebPageElement.php @@ -17,75 +17,75 @@ public static function getType() public static function fieldList() { $fields = [ - "cssSelector" => "cssSelector", "xpath" => "xpath", + "cssSelector" => "cssSelector", ]; return array_merge(parent::fieldList(), $fields); } /** - * A CSS selector, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter case, multiple matches within a page can constitute a single conceptual "Web page element". + * An XPath, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter case, multiple matches within a page can constitute a single conceptual "Web page element". * * - * @var \OpenActive\Models\SchemaOrg\CssSelectorType + * @var \OpenActive\Models\SchemaOrg\XPathType */ - protected $cssSelector; + protected $xpath; /** - * An XPath, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter case, multiple matches within a page can constitute a single conceptual "Web page element". + * A CSS selector, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter case, multiple matches within a page can constitute a single conceptual "Web page element". * * - * @var \OpenActive\Models\SchemaOrg\XPathType + * @var \OpenActive\Models\SchemaOrg\CssSelectorType */ - protected $xpath; + protected $cssSelector; /** - * @return \OpenActive\Models\SchemaOrg\CssSelectorType + * @return \OpenActive\Models\SchemaOrg\XPathType */ - public function getCssSelector() + public function getXpath() { - return $this->cssSelector; + return $this->xpath; } /** - * @param \OpenActive\Models\SchemaOrg\CssSelectorType $cssSelector + * @param \OpenActive\Models\SchemaOrg\XPathType $xpath * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setCssSelector($cssSelector) + public function setXpath($xpath) { $types = [ - "\OpenActive\Models\SchemaOrg\CssSelectorType", + "\OpenActive\Models\SchemaOrg\XPathType", ]; - $cssSelector = self::checkTypes($cssSelector, $types); + $xpath = self::checkTypes($xpath, $types); - $this->cssSelector = $cssSelector; + $this->xpath = $xpath; } /** - * @return \OpenActive\Models\SchemaOrg\XPathType + * @return \OpenActive\Models\SchemaOrg\CssSelectorType */ - public function getXpath() + public function getCssSelector() { - return $this->xpath; + return $this->cssSelector; } /** - * @param \OpenActive\Models\SchemaOrg\XPathType $xpath + * @param \OpenActive\Models\SchemaOrg\CssSelectorType $cssSelector * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setXpath($xpath) + public function setCssSelector($cssSelector) { $types = [ - "\OpenActive\Models\SchemaOrg\XPathType", + "\OpenActive\Models\SchemaOrg\CssSelectorType", ]; - $xpath = self::checkTypes($xpath, $types); + $cssSelector = self::checkTypes($cssSelector, $types); - $this->xpath = $xpath; + $this->cssSelector = $cssSelector; } } diff --git a/src/Models/SchemaOrg/WorkBasedProgram.php b/src/Models/SchemaOrg/WorkBasedProgram.php index bbfb2b27..68616f72 100644 --- a/src/Models/SchemaOrg/WorkBasedProgram.php +++ b/src/Models/SchemaOrg/WorkBasedProgram.php @@ -37,7 +37,7 @@ public static function fieldList() { * 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 + * @var string|\OpenActive\Models\SchemaOrg\CategoryCode */ protected $occupationalCategory; @@ -67,7 +67,7 @@ public function setTrainingSalary($trainingSalary) } /** - * @return \OpenActive\Models\SchemaOrg\CategoryCode|string + * @return string|\OpenActive\Models\SchemaOrg\CategoryCode */ public function getOccupationalCategory() { @@ -75,15 +75,15 @@ public function getOccupationalCategory() } /** - * @param \OpenActive\Models\SchemaOrg\CategoryCode|string $occupationalCategory + * @param string|\OpenActive\Models\SchemaOrg\CategoryCode $occupationalCategory * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ public function setOccupationalCategory($occupationalCategory) { $types = [ - "\OpenActive\Models\SchemaOrg\CategoryCode", "string", + "\OpenActive\Models\SchemaOrg\CategoryCode", ]; $occupationalCategory = self::checkTypes($occupationalCategory, $types); diff --git a/src/Models/SchemaOrg/WriteAction.php b/src/Models/SchemaOrg/WriteAction.php index 36aaa059..717712f3 100644 --- a/src/Models/SchemaOrg/WriteAction.php +++ b/src/Models/SchemaOrg/WriteAction.php @@ -17,77 +17,77 @@ public static function getType() public static function fieldList() { $fields = [ - "inLanguage" => "inLanguage", "language" => "language", + "inLanguage" => "inLanguage", ]; return array_merge(parent::fieldList(), $fields); } /** - * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. + * A sub property of instrument. The language used on this action. * * - * @var string|\OpenActive\Models\SchemaOrg\Language + * @var \OpenActive\Models\SchemaOrg\Language|string */ - protected $inLanguage; + protected $language; /** - * A sub property of instrument. The language used on this action. + * The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]]. * * - * @var \OpenActive\Models\SchemaOrg\Language|string + * @var string|\OpenActive\Models\SchemaOrg\Language */ - protected $language; + protected $inLanguage; /** - * @return string|\OpenActive\Models\SchemaOrg\Language + * @return \OpenActive\Models\SchemaOrg\Language|string */ - public function getInLanguage() + public function getLanguage() { - return $this->inLanguage; + return $this->language; } /** - * @param string|\OpenActive\Models\SchemaOrg\Language $inLanguage + * @param \OpenActive\Models\SchemaOrg\Language|string $language * @return void * @throws \OpenActive\Exceptions\InvalidArgumentException If the provided argument is not of a supported type. */ - public function setInLanguage($inLanguage) + public function setLanguage($language) { $types = [ - "string", "\OpenActive\Models\SchemaOrg\Language", + "string", ]; - $inLanguage = self::checkTypes($inLanguage, $types); + $language = self::checkTypes($language, $types); - $this->inLanguage = $inLanguage; + $this->language = $language; } /** - * @return \OpenActive\Models\SchemaOrg\Language|string + * @return string|\OpenActive\Models\SchemaOrg\Language */ - public function getLanguage() + public function getInLanguage() { - return $this->language; + return $this->inLanguage; } /** - * @param \OpenActive\Models\SchemaOrg\Language|string $language + * @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 setLanguage($language) + public function setInLanguage($inLanguage) { $types = [ - "\OpenActive\Models\SchemaOrg\Language", "string", + "\OpenActive\Models\SchemaOrg\Language", ]; - $language = self::checkTypes($language, $types); + $inLanguage = self::checkTypes($inLanguage, $types); - $this->language = $language; + $this->inLanguage = $inLanguage; } }